@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #1a0d27;
  --rail: #170b23;
  --panel: #271535;
  --panel-raised: #321d42;
  --panel-quiet: #21122e;
  --text: #fff8ef;
  --muted: #d5c2db;
  --quiet: #bda9c7;
  --line: rgba(233, 199, 255, 0.14);
  --line-strong: rgba(243, 205, 255, 0.26);
  --violet: #7544ff;
  --coral: #ff4f9b;
  --amber: #ffc857;
  --cyan: #37dff2;
  --blue: #4b80ff;
  --brand-gradient: linear-gradient(110deg, #7544ff 0%, #ff4f9b 25%, #ffc857 50%, #37dff2 75%, #4b80ff 100%);
  --button-gradient: linear-gradient(110deg, #c2a8ff 0%, #ff9bc3 25%, #ffdc8d 50%, #8aedf5 75%, #a5bdff 100%);
  --panel-gradient: linear-gradient(125deg, #34204e 0%, #3f213e 25%, #3c302d 50%, #19363e 75%, #202b4b 100%);
  --accent: #b59aff;
  --accent-rgb: 117, 68, 255;
  --focus: #ffdc8c;
  --positive: #91ebc1;
  --error: #ffb2bd;
  --rail-width: 218px;
  --topbar-height: 76px;
  --bottom-height: 72px;
  --radius: 14px;
  --shadow: 0 16px 42px rgba(8, 2, 17, 0.24);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: 100px; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--text); line-height: 1.65; }
body, button, input, textarea, select { font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif; }
button, input, textarea, select { font-size: 1rem; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { color: inherit; }
button { cursor: pointer; }
button, a { touch-action: manipulation; }
button:disabled, [aria-disabled="true"] { opacity: 0.52; cursor: not-allowed; }
button:disabled { filter: saturate(0.45); }
img, picture { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
svg { flex-shrink: 0; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0 0 0.75rem; line-height: 1.15; font-weight: 850; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 3.6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
small { font-size: 0.875rem; }
strong { font-weight: 800; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: 0.4rem; }
[hidden] { display: none !important; }
::selection { background: #a76aeb; color: #fff8ef; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 2px; }
.sr-only, .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; padding: 12px 20px; background: var(--amber); color: #2a1035; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.app-shell {
  min-height: 100dvh;
  --accent: #b59aff;
  --accent-rgb: 117, 68, 255;
  --ambient-soft: rgba(117, 68, 255, 0.13);
  --ambient-edge: rgba(167, 129, 255, 0.42);
}
.app-shell[data-ambience="coral"] {
  --accent: #ffabd0;
  --accent-rgb: 255, 79, 155;
  --ambient-soft: rgba(255, 79, 155, 0.13);
  --ambient-edge: rgba(255, 133, 188, 0.45);
}
.app-shell[data-ambience="amber"] {
  --accent: #ffdc90;
  --accent-rgb: 255, 200, 87;
  --ambient-soft: rgba(255, 200, 87, 0.12);
  --ambient-edge: rgba(255, 210, 118, 0.46);
}

.side-rail {
  position: fixed; z-index: 60; inset: 0 auto 0 0;
  width: var(--rail-width); padding: 17px 14px 22px;
  background: linear-gradient(180deg, #251135, var(--rail) 42%);
  border-right: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #624275 transparent;
}
.rail-brand { display: flex; align-items: center; justify-content: center; min-height: 61px; width: 190px; max-width: 100%; margin: 0 auto 20px; }
.rail-brand img { width: 190px; height: auto; max-height: 64px; object-fit: contain; }
.rail-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.rail-list li { margin: 0; min-width: 0; }
.nav-item {
  display: flex; align-items: center; gap: 11px; min-height: 45px;
  width: 100%; padding: 10px 12px; border: 1px solid transparent;
  border-radius: 10px; background: transparent; color: #e8d9ed;
  text-align: left; font-size: 0.9rem; font-weight: 750; line-height: 1.3;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.nav-item:hover { background: rgba(243, 212, 255, 0.07); color: #fff; }
.nav-item.active, .nav-item[aria-current="page"], .nav-item[aria-selected="true"] {
  background: linear-gradient(100deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.1));
  border-color: var(--ambient-edge); color: #fff7ed;
  box-shadow: inset 3px 0 0 var(--accent), 0 4px 16px rgba(var(--accent-rgb), 0.08);
}
.nav-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 21px; width: 21px; height: 23px; color: var(--accent); font-size: 1.15rem; }
.nav-icon svg { width: 20px; height: 20px; }
.rail-divider { height: 1px; background: var(--line); margin: 16px 8px; border: 0; }
.rail-caption { display: block; margin: 17px 12px 12px; color: var(--quiet); font-size: 0.875rem; line-height: 1.5; font-weight: 750; }

.topbar {
  position: fixed; z-index: 50; top: 0; right: 0; left: var(--rail-width);
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  min-height: var(--topbar-height); padding: 12px 24px;
  background: rgba(29, 14, 42, 0.96); border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(9, 2, 17, 0.14);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.topbar .rail-brand { display: none; }
.topbar > :first-child:not(.button):not(.balance-pill):not(.profile-pill) { margin-right: auto; }
.balance-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 7px 15px; border: 1px solid rgba(255, 200, 87, 0.27);
  border-radius: 11px; color: #ffe4ab;
  background: linear-gradient(130deg, rgba(255, 200, 87, 0.1), rgba(117, 68, 255, 0.1));
  font-size: 0.9rem; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.balance-pill strong { color: #fff3d8; font-size: 1.05rem; font-weight: 900; }
.balance-pill small { display: block; color: #ddc7a8; font-size: 0.875rem; line-height: 1.15; }
.profile-pill { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; max-width: 230px; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 11px; background: #35203f; color: var(--text); font-size: 0.9rem; font-weight: 750; }
.profile-pill > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-pill img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
.profile-pill:hover { border-color: var(--ambient-edge); background: #41244d; }
.mobile-menu-button { display: none; }
.mobile-bottom, .mobile-drawer { display: none; }

.content-stage {
  width: calc(100% - var(--rail-width)); max-width: 1600px; min-height: 100dvh;
  margin-left: var(--rail-width); padding: calc(var(--topbar-height) + 24px) 24px 30px;
}
.content-stage > * { min-width: 0; }
.content-stage > section + section { margin-top: 34px; }
.screen-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.screen-header h1, .screen-header p { margin-bottom: 0; }
.screen-header p { color: var(--muted); max-width: 60ch; }
.surface { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #2c193a, #23122f); box-shadow: var(--shadow); }
.surface > :last-child { margin-bottom: 0; }
.surface h2, .surface h3 { color: #fff3e4; }
.surface p { color: var(--muted); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; max-width: 100%; padding: 11px 19px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: #4a2b5e; color: var(--text); font-size: 1rem; font-weight: 850;
  line-height: 1.25; text-align: center; text-decoration: none;
  box-shadow: 0 3px 0 rgba(7, 1, 13, 0.32), inset 0 1px rgba(255, 255, 255, 0.08);
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.button:hover:not(:disabled):not([aria-disabled="true"]) { border-color: rgba(255, 222, 243, 0.55); background-color: #5c3670; transform: translateY(-1px); box-shadow: 0 5px 0 rgba(7, 1, 13, 0.24), 0 8px 20px rgba(5, 0, 12, 0.13); }
.button:active:not(:disabled):not([aria-disabled="true"]) { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(8, 2, 18, 0.18); }
.button-primary {
  border-color: #ffdaa0; color: #2a1138;
  background: var(--button-gradient);
  box-shadow: 0 3px 0 #8d4674, inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 5px 22px rgba(var(--accent-rgb), 0.18);
}
.button-primary:hover:not(:disabled):not([aria-disabled="true"]) { background: linear-gradient(110deg, #d4c1ff, #ffb2d0 56%, #ffdf9d); border-color: #fff0ce; color: #2a1138; }
.button-subtle { background: rgba(244, 214, 255, 0.055); border-color: var(--line-strong); box-shadow: inset 0 1px rgba(255, 255, 255, 0.03); }
.button-subtle:hover:not(:disabled):not([aria-disabled="true"]) { background: rgba(244, 214, 255, 0.13); }
.button-small { min-height: 44px; padding: 9px 13px; font-size: 0.875rem; border-radius: 9px; }
.button svg { width: 18px; height: 18px; }
.text-link { display: inline; color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(var(--accent-rgb), 0.65); }
.text-link:hover { color: #ffe3a3; text-decoration-color: currentColor; }

.hero {
  position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: 390px; padding: 0; overflow: hidden; border: 1px solid rgba(255, 189, 220, 0.24);
  border-radius: 18px; background: #49215e;
  box-shadow: 0 14px 45px rgba(5, 0, 13, 0.24), 0 0 35px rgba(var(--accent-rgb), 0.12);
}
.hero-art { position: absolute; z-index: -2; inset: 0; height: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; object-position: right center; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #402052 0%, rgba(64, 27, 83, 0.84) 18%, rgba(64, 27, 83, 0.2) 39%, transparent 52%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 24% 42%, var(--ambient-soft), transparent 65%); box-shadow: inset 0 0 60px rgba(var(--accent-rgb), 0.1); transition: background-color 250ms ease, box-shadow 250ms ease; }
.hero-copy { position: relative; width: 45%; max-width: 570px; padding: 35px 0 36px 34px; }
.hero-copy h1 { margin-bottom: 16px; font-size: clamp(2rem, 3.15vw, 3.2rem); line-height: 1.04; letter-spacing: -0.04em; text-shadow: 0 2px 14px rgba(30, 5, 46, 0.36); }
.hero-copy > p:not(.eyebrow) { max-width: 40ch; margin-bottom: 20px; color: #f4e1ee; font-size: 1rem; line-height: 1.55; }
.eyebrow { display: block; margin: 0 0 12px; color: #ffdc8c; font-size: 0.875rem; font-weight: 900; line-height: 1.4; letter-spacing: 0.09em; text-transform: uppercase; }
.gradient-text { color: #ffcd91; background: linear-gradient(105deg, #d7c1ff 0%, #ffbad8 52%, #ffe0a1 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-actions .button { padding-inline: 18px; }
.boundary { display: flex; align-items: center; justify-content: flex-start; gap: 10px; flex-wrap: wrap; margin: 15px 0 28px; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.boundary strong, .boundary .pill { color: #ffe0a1; }
.boundary p { margin: 0; }
.boundary a { color: #edcbff; text-decoration: underline; text-underline-offset: 3px; }
.boundary > span + span::before { content: "·"; margin-right: 10px; color: #aa8fba; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; padding: 4px 10px; border: 1px solid rgba(255, 210, 124, 0.25); border-radius: 7px; background: rgba(255, 200, 87, 0.08); color: #ffe0a1; font-size: 0.875rem; font-weight: 800; line-height: 1.25; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 30px 0 17px; }
.section-head h2, .section-head h3 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.section-head > a { flex-shrink: 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 22px; }
.game-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: start; }
.game-grid > * { min-width: 0; }
.game-card, .game-grid > article { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #2a1739; box-shadow: 0 5px 16px rgba(8, 1, 17, 0.18); transition: border-color 150ms ease, box-shadow 150ms ease; }
.game-card:hover, .game-card:focus-within, .game-grid > article:hover { border-color: var(--ambient-edge); box-shadow: 0 7px 22px rgba(var(--accent-rgb), 0.13); }
.game-cover, .game-card > picture, .game-grid > article > picture { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #321946; }
.game-cover img, .game-card > picture img, .game-grid > article > picture img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.game-card h3, .game-grid > article h3 { margin: 12px 11px 7px; font-size: 1rem; line-height: 1.25; letter-spacing: -0.015em; }
.game-card p { margin: 0 11px 10px; color: var(--muted); font-size: 0.875rem; line-height: 1.4; }
.game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 9px 10px; }
.game-actions .button { min-width: 0; min-height: 44px; padding: 8px 5px; border-radius: 8px; font-size: 0.875rem; }
.empty-games { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; grid-column: 1 / -1; min-height: 178px; padding: 25px; border: 1px solid var(--line-strong); border-radius: 14px; background: radial-gradient(ellipse at 100% 0, var(--ambient-soft), transparent 65%), #251433; }
.empty-games h2, .empty-games h3 { margin-bottom: 10px; }
.empty-games p { max-width: 70ch; margin-bottom: 16px; color: var(--muted); }
.empty-games > :last-child { margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { min-width: 0; overflow: hidden; padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(150deg, #342044, #271536); box-shadow: 0 8px 24px rgba(5, 0, 13, 0.12); }
.feature-card > img, .feature-card > picture { width: calc(100% + 46px); max-width: none; margin: -23px -23px 20px; aspect-ratio: 16 / 9; object-fit: contain; }
.feature-card > picture img { width: 100%; height: 100%; object-fit: contain; }
.feature-card h3 { margin-bottom: 11px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.feature-card .button, .feature-card .text-link { margin-top: 5px; }
.feature-card > :last-child { margin-bottom: 0; }

.prism-mix { position: relative; overflow: hidden; padding: 24px; border: 1px solid var(--ambient-edge); border-radius: 14px; background: radial-gradient(ellipse at 100% 10%, rgba(var(--accent-rgb), 0.23), transparent 75%), #2b173a; box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 9px 30px rgba(var(--accent-rgb), 0.08); transition: border-color 200ms ease, box-shadow 200ms ease; }
.prism-mix p { color: var(--muted); max-width: 65ch; }
.prism-mix .swatches, .prism-mix [role="group"] { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 46px; padding: 10px 13px; margin: 0 5px 8px 0; border: 1px solid var(--line-strong); border-radius: 9px; background: #271435; color: #f9eaf6; font-size: 0.875rem; font-weight: 800; line-height: 1.3; }
.swatch::before { content: ""; flex-shrink: 0; width: 15px; height: 15px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 50%; background: radial-gradient(circle at 30% 25%, #e4d6ff, #7544ff 55%, #3a197c); box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.25); }
.swatch[value="coral"]::before, .swatch[data-ambience="coral"]::before, .swatch:nth-of-type(2)::before { background: radial-gradient(circle at 30% 25%, #ffd4ea, #ff4f9b 55%, #941c5b); }
.swatch[value="amber"]::before, .swatch[data-ambience="amber"]::before, .swatch:nth-of-type(3)::before { background: radial-gradient(circle at 30% 25%, #fff4cf, #ffc857 55%, #b37618); }
.swatch:hover { border-color: #e0bcf6; background: #3d234b; }
.swatch[aria-pressed="true"] { border-color: #ffdc8c; background: #443044; color: #fff0cf; box-shadow: inset 0 0 0 1px #ffdc8c, 0 0 16px rgba(255, 200, 87, 0.11); }
.swatch[aria-pressed="true"]::after { content: "✓"; color: #ffe5a7; font-weight: 900; }
.prism-mix [role="status"] { margin: 11px 0 0; color: #ffe5b6; font-size: 0.875rem; font-weight: 750; }
.reward-stage { position: relative; overflow: hidden; padding: 28px; border: 1px solid rgba(255, 200, 87, 0.28); border-radius: 16px; background: radial-gradient(ellipse at 90% 10%, var(--ambient-soft), transparent 65%), linear-gradient(130deg, #3a204b, #291736); box-shadow: var(--shadow); }
.reward-stage h2 { color: #ffe1a6; }
.reward-stage p { color: var(--muted); }
.reward-stage .chip-stat { margin: 12px 0 18px; }
.chip-stat { display: flex; flex-direction: column; gap: 2px; color: #ffe3ab; }
.chip-stat strong { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.chip-stat span, .chip-stat small { color: #dfc6e4; font-size: 0.875rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.metric-grid > * { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: #2b1838; }
.metric-grid strong { display: block; color: #ffe0a0; font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.metric-grid p, .metric-grid span, .metric-grid small { margin: 4px 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }

.scene-panel { position: relative; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 15px; background: #2c173b; box-shadow: var(--shadow); }
.scene-panel > picture, .scene-panel > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #32193f; }
.scene-panel > picture img { width: 100%; height: 100%; object-fit: contain; }
.scene-panel > div, .scene-panel > figcaption { padding: 22px 24px; background: linear-gradient(145deg, #321e41, #281635); }
.scene-panel > h2, .scene-panel > h3, .scene-panel > p { margin-left: 24px; margin-right: 24px; }
.scene-panel > h2, .scene-panel > h3 { margin-top: 22px; }
.scene-panel > p { color: var(--muted); }
.scene-panel > :last-child:not(img):not(picture) { margin-bottom: 22px; }
.scene-panel > div:last-child, .scene-panel > figcaption:last-child { margin-bottom: 0; }
.page-intro { max-width: 900px; margin: 6px 0 27px; }
.page-intro h1 { margin-bottom: 13px; }
.page-intro p:not(.eyebrow) { max-width: 75ch; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 22px; }
.profile-grid > * { min-width: 0; }
.marquee { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 178px; padding: 25px; border: 2px solid #b67eff; border-radius: 13px; background: linear-gradient(135deg, #543581, #351e53 45%, #702a67); color: #fff1d7; text-align: center; box-shadow: inset 0 0 0 5px #2a123d, inset 0 0 0 6px rgba(255, 220, 152, 0.3), 0 8px 28px rgba(5, 0, 12, 0.15); }
.marquee strong, .marquee h2, .marquee h3 { position: relative; z-index: 1; max-width: 100%; margin: 0; overflow-wrap: anywhere; font-size: clamp(1.5rem, 2.5vw, 2.3rem); font-weight: 900; letter-spacing: 0.015em; text-shadow: 0 2px #6e3a76, 0 0 18px rgba(255, 202, 120, 0.3); }
.marquee p, .marquee span { position: relative; z-index: 1; margin: 0; color: #f0d7ed; font-size: 0.9rem; }
.marquee[data-design="prism"] { border-color: #bb91ff; background: linear-gradient(135deg, transparent 52%, rgba(255, 200, 87, 0.12) 52%, transparent 77%), linear-gradient(35deg, #5a398b, #32194e 45%, #7c2b65); }
.marquee[data-design="curtain"] { border-color: #ff9fca; border-radius: 13px 13px 5px 5px; background: repeating-linear-gradient(90deg, rgba(30, 1, 32, 0.18) 0 10px, rgba(255, 155, 204, 0.08) 16px, transparent 30px), linear-gradient(100deg, #7b2357, #471b46 45%, #7b2357); box-shadow: inset 0 8px 0 #ca9e57, inset 0 10px 0 #4a173f, 0 8px 28px rgba(5, 0, 12, 0.15); }
.marquee[data-design="starlight"] { border-color: #ffce7b; background: radial-gradient(circle at 14% 23%, #ffe4a6 0 1.5px, transparent 2px), radial-gradient(circle at 81% 23%, #ffe4a6 0 1.5px, transparent 2px), radial-gradient(circle at 21% 78%, #e8c0ff 0 1px, transparent 2px), radial-gradient(circle at 89% 71%, #e8c0ff 0 1px, transparent 2px), radial-gradient(ellipse at center, #5b3773, #271638); box-shadow: inset 0 0 0 5px #2a123d, inset 0 0 0 7px rgba(255, 213, 128, 0.25), inset 0 0 36px rgba(255, 200, 87, 0.1); }
.account-notice { margin: 20px 0; padding: 17px 19px; border: 1px solid rgba(255, 208, 132, 0.25); border-left: 3px solid #ffd085; border-radius: 10px; background: #35203d; color: #f3dfdf; line-height: 1.6; }
.account-notice > :last-child { margin-bottom: 0; }

.form-panel { width: 100%; max-width: 640px; margin: 0 auto; padding: 29px; border: 1px solid var(--line-strong); border-radius: 16px; background: radial-gradient(ellipse at 100% 0, var(--ambient-soft), transparent 65%), #2a1738; box-shadow: var(--shadow); }
.form-panel h1 { font-size: clamp(1.9rem, 3vw, 2.65rem); }
.form-panel p { color: var(--muted); }
.form-panel > :last-child { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full-width, .form-grid .checkbox, .form-grid > .button, .form-grid > [role="status"], .form-grid > [role="alert"] { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0 0 18px; }
.form-grid .field { margin-bottom: 0; }
.field label, .field > span:first-child { color: #f6e9f3; font-size: 0.875rem; font-weight: 800; line-height: 1.4; }
.field input, .field textarea, .field select, .inline-form input, .inline-form select {
  display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px 13px;
  border: 1px solid #735184; border-radius: 9px; background: #1e102b;
  color: #fff8f0; line-height: 1.4; box-shadow: inset 0 2px 5px rgba(7, 1, 14, 0.17);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: #a47cba; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #d8b1ff; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15); }
.field input::placeholder, .field textarea::placeholder { color: #b9a4c4; opacity: 1; }
.field textarea { min-height: 145px; resize: vertical; }
.field select, .inline-form select { padding-right: 38px; -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #ead6f1 50%), linear-gradient(135deg, #ead6f1 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #ff93b0; }
.field .error, .field [role="alert"], .field .phx-form-error { margin: 0; color: var(--error); font-size: 0.875rem; line-height: 1.4; }
.field small, .field .hint { color: var(--quiet); font-size: 0.875rem; line-height: 1.5; }
.checkbox { position: relative; display: block; min-height: 44px; margin: 8px 0; padding: 0 0 4px 30px; color: #e8d8ed; font-size: 0.9rem; line-height: 1.6; cursor: pointer; }
.checkbox input { position: absolute; top: 3px; left: 0; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; border-radius: 4px; accent-color: #d1adff; cursor: pointer; }
.checkbox a { color: #e6c7ff; text-decoration: underline; text-underline-offset: 3px; }
.form-panel .button-primary { margin-top: 7px; }
.inline-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 11px; }
.inline-form .field { flex: 1 1 190px; margin: 0; }
.inline-form > input, .inline-form > select { flex: 1 1 200px; width: auto; }
.inline-form .button { flex-shrink: 0; min-height: 48px; }
fieldset { min-width: 0; margin: 0 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; }
legend { padding: 0 7px; color: #f5e2ef; font-weight: 800; }
.consent-settings { display: grid; gap: 12px; }
.consent-settings > label, .consent-settings > .checkbox, .consent-settings > fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #21112f; }
.consent-settings .button { justify-self: start; margin-top: 6px; }
.cookie-note { margin: 23px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 11px; background: #251632; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.cookie-note p { margin-bottom: 8px; }
.cookie-note p:last-child { margin: 0; }
.cookie-note .button { margin: 6px 6px 0 0; }

.policy-layout { display: block; margin-top: 28px; }
.policy-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 25px; }
.policy-toc { position: sticky; top: calc(var(--topbar-height) + 22px); display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #251433; }
.policy-toc strong { margin-bottom: 5px; color: #ffe3aa; font-size: 0.9rem; }
.policy-toc a { display: block; min-height: 44px; padding: 9px 10px; border-radius: 7px; color: #dfcbe9; font-size: 0.875rem; line-height: 1.5; }
.policy-toc a:hover, .policy-toc a[aria-current="true"] { background: var(--ambient-soft); color: #fff1e2; }
.prose { min-width: 0; max-width: 88ch; padding: 29px; border: 1px solid var(--line); border-radius: 14px; background: #281736; color: #e4d4e9; overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: #fff3e4; }
.prose h2 { margin: 1.8rem 0 0.85rem; font-size: 1.5rem; }
.prose h3 { margin: 1.4rem 0 0.7rem; }
.prose h1 + p, .prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose li { font-size: 1rem; line-height: 1.75; }
.prose a { color: #e2c1ff; text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { color: #ffe0a0; }
.prose code { padding: 2px 5px; border-radius: 4px; background: #3b2350; color: #ffdbac; font-size: 0.92em; }
.prose section { scroll-margin-top: 100px; }
.prose blockquote { margin: 22px 0; padding: 13px 18px; border-left: 3px solid var(--amber); background: #321d3f; color: #f4d9e8; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.support-grid .form-panel { max-width: none; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { position: relative; min-height: 52px; padding: 16px 34px 16px 0; color: #fff1e6; font-weight: 800; line-height: 1.5; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; top: 13px; right: 4px; color: #f9cd88; font-size: 1.45rem; font-weight: 650; line-height: 1.3; }
details[open] > summary::after { content: "−"; }
details > p, details > div { margin: 0; padding: 0 18px 18px 0; color: var(--muted); line-height: 1.7; }

.activity-table { display: block; width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #785087 transparent; border: 1px solid var(--line); border-radius: 11px; }
table { width: 100%; border-collapse: collapse; border-spacing: 0; font-size: 0.9rem; line-height: 1.5; }
table.activity-table { display: table; }
.activity-table table { min-width: 540px; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #342040; color: #f4d9e9; font-size: 0.875rem; font-weight: 850; white-space: nowrap; }
td { color: #dfcde7; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(var(--accent-rgb), 0.045); }
td strong { color: #fff1df; }
.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 15px; color: var(--muted); font-size: 0.875rem; }
.pagination .button { min-width: 85px; }

.site-footer { margin: 48px 0 0; padding: 27px 0 3px; border-top: 1px solid var(--line-strong); color: var(--muted); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 19px; }
.footer-top > img, .footer-top > a > img { width: 210px; max-width: 100%; height: auto; }
.footer-top p { max-width: 66ch; margin: 0; font-size: 0.9rem; line-height: 1.65; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 21px; margin-bottom: 15px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #ead8ed; font-size: 0.875rem; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(234, 216, 237, 0.24); }
.footer-links a:hover { color: #ffe0a0; text-decoration-color: currentColor; }
.site-footer > p, .site-footer > small { display: block; max-width: 115ch; margin: 0 0 11px; color: var(--quiet); font-size: 0.875rem; line-height: 1.7; }
.site-footer .boundary { margin: 0 0 14px; }
.site-footer .rail-brand { margin: 0; }
.site-footer .cookie-note { margin-bottom: 12px; }

.flash { position: relative; padding: 14px 18px; margin: 0 0 20px; border: 1px solid #7b9f8f; border-radius: 11px; background: #223b32; color: #daf8e8; font-size: 0.95rem; line-height: 1.5; }
.flash[role="alert"], .flash.error, .flash[data-kind="error"] { border-color: #ba6a88; background: #492238; color: #ffe3eb; }
.flash p { margin: 0; }
.toast { position: fixed; z-index: 120; top: calc(var(--topbar-height) + 14px); right: 24px; width: min(440px, calc(100vw - 48px)); padding: 15px 18px; border: 1px solid #b59a76; border-radius: 11px; background: #38213f; color: #fff0df; box-shadow: 0 14px 35px rgba(0, 0, 0, 0.34); font-size: 0.95rem; line-height: 1.5; }
.toast p { margin: 0; }
dialog.modal { position: fixed; z-index: 110; inset: 0; width: min(640px, calc(100vw - 32px)); max-width: none; max-height: min(850px, calc(100dvh - 32px)); padding: 28px; margin: auto; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 17px; background: #2a1838; color: var(--text); box-shadow: 0 25px 90px rgba(0, 0, 0, 0.55); }
dialog.modal::backdrop { background: rgba(12, 4, 21, 0.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal:not(dialog) { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(12, 4, 21, 0.8); }
.modal:not(dialog) > .surface, .modal:not(dialog) > .form-panel { width: min(100%, 640px); max-height: calc(100dvh - 40px); overflow-y: auto; margin: auto; }
.modal .form-panel { max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; }
.modal .modal-close { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 9px; background: #392146; color: #fff1e7; font-size: 1.5rem; }
.phx-click-loading { opacity: 0.7; cursor: progress; }
.phx-submit-loading .button[type="submit"] { opacity: 0.7; cursor: progress; }
.phx-disconnected .content-stage { cursor: progress; }

.rail-bottom { display: flex; align-items: center; gap: 11px; margin: 20px 9px 0; color: var(--quiet); font-size: 0.875rem; line-height: 1.45; }
.age-badge { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; min-width: 39px; min-height: 35px; padding: 4px 7px; border: 1px solid rgba(255, 210, 127, 0.42); border-radius: 8px; background: #3b2541; color: #ffe3aa; font-size: 0.95rem; font-weight: 900; line-height: 1.2; }
.mobile-brand { display: none; }
.topbar-discovery { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; color: #e7d4ed; font-size: 0.95rem; font-weight: 750; }
.topbar-discovery svg { width: 20px; height: 20px; color: var(--accent); }
.topbar-discovery:hover { color: #ffe1a2; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 11px; min-width: 0; }
.balance-pill img { width: 31px; height: 31px; object-fit: contain; }
.profile-pill svg { width: 21px; height: 21px; color: #ffe0a0; }
button.text-link { min-height: 44px; padding: 7px 0; border: 0; background: transparent; font-family: inherit; font-size: 1rem; line-height: 1.5; }
.catalogue-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 250px); gap: 13px; margin: 0 0 18px; }
.catalogue-tools .field { margin: 0; }
.game-cover > .pill, .game-cover > .game-tag { position: absolute; bottom: 8px; left: 7px; max-width: calc(100% - 14px); padding: 4px 7px; border: 1px solid rgba(255, 223, 165, 0.42); border-radius: 6px; background: rgba(36, 13, 49, 0.94); color: #ffe4ac; font-size: 0.875rem; font-weight: 850; line-height: 1.3; }
.game-cover > .pill + .game-tag { top: 8px; bottom: auto; }
.feature-card h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.18; }
.feature-card.prism-mix > img { float: right; width: 66px; height: 66px; max-width: 30%; margin: -6px 0 8px 12px; aspect-ratio: 1; object-fit: contain; }
.prism-mix > .eyebrow { min-height: 47px; padding-top: 6px; }
.prism-mix > h2 { clear: both; }
.small-copy { margin-top: 13px; color: var(--muted); font-size: 0.875rem; line-height: 1.65; }
.mission-list article + article { margin-top: 23px; padding-top: 23px; border-top: 1px solid var(--line); }
.mission-list article > :last-child { margin-bottom: 0; }
.marquee > .eyebrow { color: #ffdda1; font-size: 0.875rem; }
.marquee .form-grid { position: relative; z-index: 1; width: 100%; margin-top: 16px; text-align: left; }
.marquee .chip-stat { align-items: center; }
.marquee form[action="/auth/logout"] { margin-top: 15px; }
.recovery-receipt code { display: block; max-width: 100%; padding: 13px; border: 1px solid rgba(255, 211, 140, 0.35); border-radius: 7px; background: #20102c; color: #ffe2ae; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; user-select: all; }
.form-grid .field:has(textarea), .form-grid > p { grid-column: 1 / -1; }
.form-grid[action="/auth/login"], .form-grid[action="/auth/recover"] { grid-template-columns: 1fr; }
.password-field { position: relative; }
.password-field input { padding-right: 68px; }
.password-field button { position: absolute; top: 2px; right: 2px; min-width: 58px; min-height: 44px; padding: 7px; border: 0; border-radius: 6px; background: #3b244a; color: #f6d9ff; font-size: 0.875rem; font-weight: 800; }
.password-field button:hover { background: #50325f; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 15px; margin-top: 20px; }
.auth-links a { display: inline-flex; align-items: center; min-height: 44px; color: #e4c1ff; font-size: 0.9rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.policy-layout > .page-intro { max-width: 900px; margin-bottom: 25px; }
.support-grid > div > .scene-panel + .surface { margin-top: 20px; }
.footer-brand { display: inline-block; flex-shrink: 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 0.875rem; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: #e9c8f6; overflow-wrap: anywhere; }

@media (min-width: 1818px) {
  .content-stage { margin-left: calc(var(--rail-width) + (100vw - var(--rail-width) - 1600px) / 2); }
}

@media (max-width: 1279px) {
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-copy { width: 47%; padding-left: 27px; }
  .hero-copy h1 { font-size: 2.65rem; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { padding-inline: 13px; font-size: 0.9rem; }
  .feature-grid { gap: 14px; }
  .feature-card { padding: 19px; }
  .feature-card > img, .feature-card > picture { width: calc(100% + 38px); margin: -19px -19px 18px; }
  .policy-body { grid-template-columns: 185px minmax(0, 1fr); gap: 18px; }
}

@media (min-width: 801px) and (max-width: 1050px) {
  .content-stage { padding-inline: 20px; }
  .topbar { padding-inline: 20px; gap: 9px; }
  .hero { min-height: 370px; }
  .hero-copy { width: 52%; padding: 26px 0 26px 22px; }
  .hero-copy h1 { font-size: 2.35rem; }
  .hero-copy > p:not(.eyebrow) { font-size: 0.95rem; }
  .hero::before { background: linear-gradient(90deg, #402052, rgba(64, 27, 83, 0.9) 25%, rgba(64, 27, 83, 0.38) 48%, transparent 65%); }
  .content-grid, .support-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .profile-grid { grid-template-columns: 1fr; }
  .policy-body { grid-template-columns: 1fr; }
  .policy-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-toc > strong { grid-column: 1 / -1; }
  .footer-top { align-items: flex-start; }
  .footer-top > img, .footer-top > a > img { width: 170px; }
}

@media (max-width: 800px) {
  :root { --topbar-height: 70px; --bottom-height: 72px; }
  html { scroll-padding-top: 88px; }
  .content-stage { width: 100%; max-width: none; margin-left: 0; padding: calc(var(--topbar-height) + 18px) 18px calc(var(--bottom-height) + 27px + env(safe-area-inset-bottom, 0px)); }
  .content-stage > section + section { margin-top: 26px; }
  .topbar { left: 0; min-height: var(--topbar-height); padding: 10px 16px; gap: 9px; }
  .topbar .rail-brand { display: flex; justify-content: flex-start; width: clamp(132px, 21vw, 175px); min-height: 44px; margin: 0 auto 0 0; }
  .topbar .rail-brand img { width: 100%; max-height: 48px; }
  .topbar-discovery { display: none; }
  .mobile-brand { display: block; flex: 0 1 170px; width: clamp(132px, 21vw, 175px); min-width: 0; margin-right: auto; }
  .mobile-brand img { width: 100%; max-height: 49px; object-fit: contain; }
  .topbar-actions { gap: 8px; }
  .topbar > :first-child:not(.button):not(.balance-pill):not(.profile-pill) { margin-right: 0; }
  .topbar .button { padding: 10px 13px; font-size: 0.875rem; }
  .topbar .profile-pill { max-width: 150px; padding-inline: 10px; }
  .topbar .balance-pill { min-height: 44px; padding: 7px 10px; gap: 6px; }
  .topbar .balance-pill strong { font-size: 0.95rem; }
  .balance-pill small { font-size: 0.875rem; }
  .mobile-menu-button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; gap: 4px; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: #382044; color: #fce8f7; }
  .mobile-menu-button svg { width: 22px; height: 22px; }
  .mobile-menu-button > span { display: block; width: 19px; height: 2px; border-radius: 1px; background: #f4deef; }
  .side-rail { z-index: 80; top: var(--topbar-height); bottom: calc(var(--bottom-height) + env(safe-area-inset-bottom, 0px)); width: min(280px, calc(100vw - 44px)); padding: 16px; border-top: 1px solid var(--line); transform: translateX(-105%); visibility: hidden; transition: transform 180ms ease, visibility 180ms ease; }
  .side-rail .rail-brand { min-height: 45px; margin-bottom: 17px; }
  .app-shell.menu-open .side-rail { transform: translateX(0); visibility: visible; box-shadow: 14px 0 40px rgba(0, 0, 0, 0.35); }
  .mobile-drawer { position: fixed; z-index: 75; inset: var(--topbar-height) 0 calc(var(--bottom-height) + env(safe-area-inset-bottom, 0px)); width: 100%; height: auto; padding: 0; margin: 0; border: 0; border-radius: 0; background: rgba(12, 4, 19, 0.68); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  .app-shell.menu-open .mobile-drawer { display: block; }
  .mobile-bottom { position: fixed; z-index: 85; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: var(--bottom-height); padding: 5px 8px calc(5px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #634075; background: rgba(27, 12, 40, 0.98); box-shadow: 0 -7px 28px rgba(5, 0, 13, 0.2); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); }
  .mobile-bottom a, .mobile-bottom button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 59px; padding: 5px 2px; margin: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #d8c1e3; font-size: 0.875rem; font-weight: 800; line-height: 1.3; text-align: center; }
  .mobile-bottom a[aria-current="page"], .mobile-bottom a.active, .mobile-bottom button[aria-expanded="true"] { border-color: rgba(var(--accent-rgb), 0.28); background: rgba(var(--accent-rgb), 0.15); color: #ffe3ad; }
  .mobile-bottom svg, .mobile-bottom .nav-icon { width: 20px; height: 20px; margin: 0; font-size: 1.1rem; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; overflow: hidden; border-radius: 15px; background: #402052; }
  .hero-art { position: relative; z-index: 0; inset: auto; width: 100%; height: auto; aspect-ratio: 1942 / 809; }
  .hero-art img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
  .hero::before { display: none; }
  .hero::after { z-index: 0; top: auto; height: 68%; background: radial-gradient(ellipse at 85% 100%, var(--ambient-soft), transparent 75%); }
  .hero-copy { z-index: 1; width: 100%; max-width: none; padding: 23px; background: linear-gradient(130deg, #45225b, #351b48); }
  .hero-copy h1 { max-width: 20ch; margin-bottom: 12px; font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.06; }
  .hero-copy > p:not(.eyebrow) { max-width: 60ch; margin-bottom: 18px; font-size: 1rem; }
  .eyebrow { margin-bottom: 10px; }
  .hero-actions .button { min-height: 46px; padding: 11px 18px; font-size: 0.95rem; }
  .boundary { gap: 8px; margin: 13px 0 24px; }
  .boundary > span + span::before { margin-right: 8px; }
  .section-head { align-items: flex-start; gap: 14px; margin-top: 25px; }
  .section-head h2 { font-size: 1.6rem; }
  .section-head p { font-size: 0.9rem; }
  .content-grid, .profile-grid, .support-grid { grid-template-columns: 1fr; gap: 20px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .feature-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .surface, .prism-mix, .reward-stage { padding: 22px; }
  .scene-panel > div, .scene-panel > figcaption { padding: 21px; }
  .page-intro { margin-top: 3px; margin-bottom: 23px; }
  .page-intro h1 { font-size: 2.25rem; }
  .page-intro p:not(.eyebrow) { font-size: 1rem; }
  .policy-body { grid-template-columns: 1fr; gap: 19px; }
  .policy-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
  .policy-toc > strong { grid-column: 1 / -1; }
  .prose { max-width: none; padding: 24px; }
  .site-footer { margin-top: 34px; padding-top: 24px; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 15px; }
  .footer-top > img, .footer-top > a > img { width: 190px; }
  .footer-links { gap: 3px 18px; }
  .toast { top: calc(var(--topbar-height) + 10px); right: 16px; width: min(440px, calc(100vw - 32px)); }
}

@media (max-width: 560px) {
  .content-stage { padding-inline: 14px; }
  .topbar { padding-inline: 12px; gap: 7px; }
  .topbar .rail-brand { width: 136px; }
  .mobile-brand { flex: 0 1 auto; width: clamp(104px, 26vw, 136px); }
  .topbar-actions { gap: 7px; }
  .topbar-actions:has(.login-button) .balance-pill, .topbar .login-button { display: none; }
  .topbar .button { min-height: 44px; padding-inline: 11px; font-size: 0.875rem; }
  .topbar .balance-pill { flex-direction: row; gap: 0; min-width: 94px; padding: 5px 9px; line-height: 1.2; }
  .topbar .balance-pill img { display: none; }
  .topbar .balance-pill strong { font-size: 0.95rem; }
  .topbar .balance-pill small { font-size: 0.875rem; }
  .topbar .profile-pill { max-width: 110px; min-height: 44px; padding: 8px; }
  .topbar .profile-pill img { width: 26px; height: 26px; }
  .topbar .profile-pill { justify-content: center; min-width: 44px; max-width: 44px; }
  .topbar .profile-pill > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .hero-copy { padding: 22px 20px 23px; }
  .hero-copy h1 { font-size: 2.1rem; }
  .hero-actions .button { flex: 1 1 120px; padding-inline: 12px; }
  .boundary { font-size: 0.875rem; line-height: 1.55; }
  .section-head { flex-wrap: wrap; gap: 12px; }
  .section-head h2 { font-size: 1.5rem; }
  .section-head > .button { min-height: 44px; font-size: 0.875rem; }
  .game-grid { gap: 10px; }
  .game-card h3, .game-grid > article h3 { margin: 10px 9px 8px; font-size: 0.95rem; }
  .game-card p { margin-inline: 9px; }
  .game-actions { gap: 5px; padding: 0 7px 9px; }
  .game-actions .button { padding-inline: 3px; font-size: 0.875rem; }
  .empty-games { min-height: 0; padding: 21px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .feature-card { padding: 22px; }
  .feature-card > img, .feature-card > picture { width: calc(100% + 44px); margin: -22px -22px 19px; }
  .surface, .prism-mix, .reward-stage { padding: 21px; }
  .swatch { padding-inline: 10px; margin-right: 3px; }
  .prism-mix .swatches, .prism-mix [role="group"] { gap: 6px; }
  .metric-grid { gap: 9px; }
  .metric-grid > * { padding: 13px 11px; }
  .metric-grid strong { font-size: 1.3rem; }
  .form-panel { padding: 24px 21px; border-radius: 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .form-grid .full-width, .form-grid .checkbox, .form-grid > .button, .form-grid > [role="status"], .form-grid > [role="alert"] { grid-column: auto; }
  .form-panel > .button[type="submit"], .form-panel form > .button[type="submit"] { width: 100%; }
  .inline-form { align-items: stretch; }
  .inline-form .field, .inline-form > input, .inline-form > select { flex-basis: 100%; }
  .inline-form .button { flex: 1 1 140px; }
  .page-intro h1 { font-size: 2rem; }
  .policy-toc { grid-template-columns: 1fr; padding: 14px; }
  .prose { padding: 22px 20px; }
  .prose h2 { font-size: 1.4rem; }
  th, td { padding: 12px; }
  table.activity-table { display: block; }
  .activity-table table, table.activity-table { min-width: 0; }
  .activity-table th, .activity-table td { min-width: 105px; }
  .footer-links { gap: 2px 17px; }
  .footer-links a { font-size: 0.875rem; }
  .screen-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  dialog.modal { width: calc(100vw - 22px); max-height: calc(100dvh - 22px); padding: 25px 20px; border-radius: 13px; }
  .modal:not(dialog) { padding: 11px; }
  .modal:not(dialog) > .surface, .modal:not(dialog) > .form-panel { max-height: calc(100dvh - 22px); }
}

@media (max-width: 380px) {
  .content-stage { padding-inline: 12px; }
  .topbar { padding-inline: 8px; gap: 6px; }
  .topbar .rail-brand { width: 116px; min-width: 105px; }
  .mobile-brand { width: 105px; }
  .topbar .button { padding-inline: 9px; }
  .topbar .profile-pill { max-width: 82px; }
  .topbar .balance-pill { min-width: 83px; padding-inline: 7px; }
  .topbar .balance-pill small { font-size: 0.875rem; }
  .topbar .mobile-menu-button { width: 44px; min-width: 44px; }
  .hero-copy { padding: 20px 18px; }
  .hero-copy h1 { font-size: 1.95rem; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { flex-basis: 100%; }
  .surface, .prism-mix, .reward-stage, .form-panel { padding: 19px 17px; }
  .swatch { gap: 5px; padding-inline: 8px; margin-right: 0; }
  .swatch::before { width: 12px; height: 12px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid > * { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .mobile-bottom { padding-inline: 3px; }
  .mobile-bottom a, .mobile-bottom button { font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .button:hover:not(:disabled):not([aria-disabled="true"]), .button:active:not(:disabled):not([aria-disabled="true"]) { transform: none; }
}

@media (forced-colors: active) {
  .gradient-text { background: none; -webkit-text-fill-color: CanvasText; color: CanvasText; }
  .button, .nav-item, .surface, .form-panel, .swatch, .balance-pill, .profile-pill { border: 1px solid ButtonText; }
  .swatch[aria-pressed="true"], .nav-item[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -3px; }
  .hero::before, .hero::after { display: none; }
}

/* Composition refined against the supplied designer-case tablet mockup. */
.button{border-radius:999px}
.side-rail{overflow-y:auto;scrollbar-width:thin}
.rail-daily{margin:12px 9px 17px;padding:12px;border:1px solid #c387c22e;border-radius:13px;background:linear-gradient(130deg,#603267b3,#341647e8);box-shadow:inset 0 1px #ffffff0c}
.rail-daily-heading{display:flex;align-items:center;gap:7px}.rail-daily-heading img{width:30px;height:30px;object-fit:contain}.rail-daily-heading strong{font-size:.86rem}
.rail-daily-count{display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin:10px 0}.rail-daily-count>strong{font-size:1.35rem;line-height:1;color:#ffdd98}.rail-daily-count>span{font-size:.75rem;color:#eed2f3}
.rail-daily progress{display:block;width:100%;height:9px;accent-color:#ff80b5}.rail-daily>small{display:block;margin:7px 0;color:#eed6f1;font-size:.7rem;line-height:1.4}
.rail-daily-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:10px 0 11px}.rail-daily-days>span{display:flex;align-items:center;flex-direction:column;gap:3px;min-width:0}.rail-daily-days b{display:grid;place-items:center;height:27px;width:100%;border:1px solid #ab71ad4d;border-radius:5px;background:#2b1239;font-size:.9rem;color:#d3b4de}.rail-daily-days small{font-size:.625rem;line-height:1.2;color:#e0c5e8}.rail-daily-days [data-claimed=true] b{color:#b5ff9a;border-color:#c68ab267;background:#52255b}.rail-daily .button{display:flex;width:100%;font-size:.78rem;min-height:38px;padding:8px 7px}
.content-stage>.hero{min-height:310px}.hero-copy h1{font-size:clamp(2rem,3.4vw,3.35rem)}.hero-copy{max-width:480px}.hero-copy>p{max-width:370px;font-size:1rem}
.game-card{position:relative;background:transparent;border:0;box-shadow:none;border-radius:12px}.game-card:hover,.game-card:focus-within{border-color:transparent;box-shadow:none}
.game-cover{aspect-ratio:3/4;border-radius:12px;box-shadow:0 5px 15px #09021245;background:#392044}.card-art-link{display:block;position:relative;width:100%;height:100%;text-decoration:none}.card-art-link::after{content:"";position:absolute;inset:54% 0 0;border-radius:0 0 12px 12px;background:linear-gradient(transparent,#28103312 25%,#180620cf)}
.game-cover img{width:100%;height:100%;object-fit:contain}.game-card .game-title{position:absolute;left:8px;right:8px;bottom:12px;z-index:2;margin:0;text-align:center;font-size:clamp(.9rem,1.2vw,1.18rem);font-weight:1000;line-height:1.07;letter-spacing:-.03em;color:#fff2d5;text-wrap:balance;text-shadow:0 2px 0 #8f3065,0 4px 0 #462050,0 5px 9px #16051bc7}
.game-favourite{position:absolute;right:8px;top:8px;z-index:4;display:grid;place-items:center;width:33px;height:33px;min-height:33px;border:0;border-radius:50%;padding:6px;background:#27103266;color:#fff6fc;cursor:pointer;backdrop-filter:blur(4px)}.game-favourite svg{width:23px;height:23px}.game-favourite[aria-pressed=true]{color:#ffc0d4;background:#612651b8}.game-favourite[aria-pressed=true] svg{fill:currentColor}.game-favourite:focus-visible{outline:3px solid #ffd991;outline-offset:3px}
.game-actions{padding:9px 0 5px;gap:6px}.game-actions .button{min-height:38px;padding:8px 7px;font-size:.78rem}.game-cover>.pill,.game-cover>.game-tag{left:6px;top:7px;bottom:auto;max-width:calc(100% - 50px);font-size:.625rem;padding:4px 5px;border-radius:5px}.game-cover>.pill+.game-tag{top:31px}
.game-queue{display:block;width:100%;padding:7px 3px;min-height:32px;background:transparent;border:0;border-radius:5px;font:inherit;font-size:.75rem;color:#e9c9f0;cursor:pointer}.game-queue[aria-pressed=true]{color:#ffdb95;background:#7043a72e}.game-queue:hover{color:#fff2d4}.game-queue:focus-visible{outline:3px solid #ffda93;outline-offset:2px}
.nav-icon img{width:28px;height:28px;object-fit:contain;filter:drop-shadow(0 2px 3px #10051c50)}
.mission-list{display:grid;gap:14px}.mission-card{padding:21px}.mission-card h2{font-size:1.1rem;margin:0}.mission-card .section-head{gap:10px}.mission-card .pill{white-space:nowrap}.mission-progress{display:flex;align-items:center;gap:12px;margin:15px 0}.mission-progress progress{width:100%;height:13px;accent-color:#ff8db2}.mission-progress>span{white-space:nowrap;font-size:.875rem;color:#eed4f2}
.topbar-links{display:flex;gap:18px;align-items:center}.topbar-links>a{font-size:.85rem;color:#ecd8f3;text-decoration:none;white-space:nowrap}.topbar-links>a:hover{color:#ffd795}
@media(max-width:1150px){.topbar-links{display:none}}
@media(max-width:800px){.content-stage>.hero{min-height:0}.hero-copy{max-width:none}.hero-copy>p{max-width:500px}.rail-daily{margin-top:12px}.game-card .game-title{font-size:1.08rem}.game-actions .button{min-height:40px;font-size:.82rem}.game-queue{min-height:36px}.game-cover>.pill,.game-cover>.game-tag{font-size:.65rem}}

/* Original Prism Club expansion: portrait shelves, collections and 3D props. */
.topbar-discovery{display:flex;align-items:center;gap:22px;font-size:.9rem;white-space:nowrap}.topbar-discovery>a{color:#e6cdec;text-decoration:none;font-weight:800}.topbar-discovery>a:hover{color:#ffda94}
.lobby-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0 32px}.lobby-categories>a{display:flex;align-items:center;gap:9px;padding:9px 12px;background:linear-gradient(140deg,#66317066,#41214e);border:1px solid #a16aa044;border-radius:13px;text-decoration:none;box-shadow:inset 0 1px #ffffff0a}.lobby-categories img{width:62px;height:62px;object-fit:contain;filter:drop-shadow(0 6px 4px #180b2b55)}.lobby-categories strong,.lobby-categories small{display:block}.lobby-categories strong{color:#fff0f8;font-size:.94rem;line-height:1.2}.lobby-categories small{color:#d7b8e1;font-size:.8rem;margin-top:6px}
.world-shelf{margin:30px 0 36px}.game-shelf{display:grid;grid-auto-columns:calc((100% - 75px)/6);grid-auto-flow:column;gap:15px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#af78ae #241330;padding:2px 2px 14px}.game-shelf>.game-card{scroll-snap-align:start;min-width:0}.game-card:focus-within .game-cover{outline:2px solid #f8c48b;outline-offset:3px}.world-shelf:first-of-type .game-shelf{grid-auto-columns:calc((100% - 45px)/4)}
.club-promo-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:32px 0}.club-promo{position:relative;overflow:hidden;min-height:240px;border:1px solid #bf86b345;border-radius:16px;padding:28px 155px 26px 25px;text-decoration:none;box-shadow:inset 0 1px #ffffff1b,0 6px 20px #180b242a}.club-promo h2{font-size:1.65rem;line-height:1.15;max-width:250px;margin:10px 0}.club-promo p{font-size:.94rem;color:#eedaf1;max-width:285px;line-height:1.5}.club-promo>img{position:absolute;right:-15px;bottom:10px;width:190px;height:190px;object-fit:contain;filter:drop-shadow(0 14px 10px #250c4466);transform:rotate(-8deg)}.club-promo .button{font-size:.875rem;min-height:40px}.promo-gift{background:radial-gradient(ellipse at 95% 60%,#ff9abf50,transparent 65%),linear-gradient(130deg,#4e2b84,#6a2c69)}.promo-mission{background:radial-gradient(ellipse at 95% 60%,#ffc96045,transparent 65%),linear-gradient(130deg,#6b3358,#593d73)}
.collection-section{margin:35px 0}.collection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.collection-tile{position:relative;display:block;overflow:hidden;border-radius:15px;border:1px solid #ca89b53d;background:linear-gradient(140deg,#643365,#3a204e);color:#fff1fa;text-decoration:none;box-shadow:inset 0 1px #fff1,0 7px 16px #140a2429;transition:transform .2s}.collection-tile:hover{transform:translateY(-4px)}.collection-tile>div:last-child{padding:18px 20px 22px}.collection-tile h3{font-size:1.25rem;line-height:1.18;margin:7px 0 14px;min-height:2.4em}.collection-tile .eyebrow{font-size:.75rem}.collection-tile .text-link{font-size:.875rem}.collection-art{height:180px;position:relative;background:radial-gradient(ellipse at 50% 70%,#ffb4ac3a,transparent 72%)}.collection-prop{position:absolute;width:138px;height:138px;right:-5px;bottom:-5px;z-index:2;object-fit:contain;filter:drop-shadow(0 10px 7px #210c3a70)}.collection-fan{position:absolute;display:flex;align-items:center;justify-content:center;gap:0;inset:18px 40px 5px 2px}.collection-fan img{width:37%;max-width:100px;height:133px;object-fit:contain;border-radius:10px;box-shadow:0 5px 12px #170b304d;transform:rotate(-13deg);margin-right:-20px}.collection-fan img:nth-child(2){transform:translateY(-7px);z-index:1}.collection-fan img:nth-child(3){transform:rotate(13deg)}.collection-colour-1{background:linear-gradient(140deg,#753a68,#3c2457)}.collection-colour-2{background:linear-gradient(140deg,#53448a,#352351)}.collection-colour-3{background:linear-gradient(140deg,#95584f,#4e2b54)}.collection-heading{display:flex;align-items:center;gap:30px;margin-bottom:25px;background:radial-gradient(ellipse at 0 50%,#9e5fe62b,transparent 65%),#3a1d4a}.collection-heading>img{width:190px;height:190px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 12px 10px #1e0a2c55)}.collection-heading h1{font-size:2.7rem;line-height:1.08;margin:8px 0 16px}.collection-heading p{max-width:800px;line-height:1.7}
.mascot-introduction{display:grid;grid-template-columns:230px 1fr;align-items:center;gap:35px;margin:36px 0;min-height:300px;background:radial-gradient(ellipse at 10% 70%,#b46eee38,transparent 65%),linear-gradient(115deg,#492365,#3a1d4e)}.mascot-cutout{width:230px;height:285px;object-fit:contain;filter:drop-shadow(0 12px 16px #19072b77)}.mascot-introduction p{max-width:670px;line-height:1.75}.mascot-introduction h2{font-size:2rem;margin:10px 0}
.guide-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:25px}.guide-card{display:flex;flex-direction:column;align-items:flex-start;text-decoration:none;padding:22px;background:linear-gradient(145deg,#4e2c64,#321b46);border:1px solid #98619f55}.guide-card img{width:90px;height:90px;object-fit:contain;margin-bottom:10px}.guide-card h3{font-size:1.3rem;line-height:1.2;margin:8px 0 12px;color:#fff0f9}.guide-card .eyebrow{font-size:.75rem}.guide-card p{font-size:.95rem;line-height:1.65;color:#e3cde9;flex:1}.guide-card .text-link{font-size:.875rem}.guide-breadcrumb{margin-bottom:22px;color:#dbc4e5;font-size:.875rem}.guide-breadcrumb a{color:#ffdb9d}
.recent-rounds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.recent-rounds article{display:flex;gap:12px;border:1px solid #9863a84a;border-radius:12px;padding:12px;background:#281438}.recent-rounds img{width:65px;height:87px;object-fit:contain;border-radius:8px}.recent-rounds h3{font-size:1rem;margin:0 0 6px}.recent-rounds p,.recent-rounds small{font-size:.8rem;line-height:1.5;margin:0 0 6px;color:#dfc9e8}.recent-rounds small{display:block}.recent-rounds a{display:block;font-size:.875rem}.pending-round-notice{display:flex;align-items:center;gap:24px;border-color:#ffc879aa;margin:24px 0}.pending-round-notice>img{object-fit:contain}.pending-round-notice h2{margin:6px 0}.world-progress{margin:32px 0}.world-progress>p{max-width:850px;color:#e4cce9;line-height:1.7}.world-progress-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.world-progress-grid>article{display:flex;gap:15px;align-items:flex-start;padding:18px}.world-progress-grid img{width:75px;height:100px;object-fit:contain;border-radius:8px}.world-progress-grid h3{font-size:1rem;line-height:1.3;margin:0 0 12px}.saved-world-level{margin:10px 0 14px}.saved-world-level strong,.saved-world-level span,.saved-world-level small{display:block}.saved-world-level strong{color:#ffe1a7;font-size:.875rem}.saved-world-level span,.saved-world-level small{font-size:.8rem;color:#d7bfdf;line-height:1.5;margin-top:4px}.saved-world-level meter{width:100%;height:14px;accent-color:#ff88b6}.world-progress-grid .text-link{font-size:.875rem}
.game-actions .button,.game-queue,.rail-daily .button,.rail-daily-heading strong{font-size:.875rem}.game-actions .button,.game-queue{min-height:42px}.rail-daily-count>span{font-size:.8rem}.rail-daily>small{font-size:.75rem}.rail-daily-days small{font-size:.7rem}.rail-daily-days b{height:29px}.game-favourite{width:40px;height:40px;min-height:40px}.game-cover>.pill,.game-cover>.game-tag{font-size:.7rem;max-width:calc(100% - 56px)}
@media(min-width:1450px){.content-stage{max-width:1750px}.game-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1250px){.collection-grid,.guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-shelf{grid-auto-columns:calc((100% - 45px)/4)}.lobby-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.world-progress-grid,.recent-rounds{grid-template-columns:repeat(2,minmax(0,1fr))}.club-promo{padding-right:130px}.club-promo>img{width:150px;height:150px}}
@media(max-width:1000px){.topbar-discovery{display:none}.club-promo-strip{gap:14px}.club-promo{padding:22px 105px 22px 20px}.club-promo>img{width:128px;height:128px;right:-12px}.club-promo h2{font-size:1.4rem}.mascot-introduction{grid-template-columns:180px 1fr;gap:20px}.mascot-cutout{width:180px;height:240px}.world-progress-grid{grid-template-columns:1fr}}
@media(max-width:800px){.game-shelf{grid-auto-columns:calc((100% - 30px)/3)}.collection-art{height:175px}.hero-art{aspect-ratio:3/1}.hero-art img{object-fit:contain}.club-promo{min-height:225px}.recent-rounds{grid-template-columns:1fr}}
@media(max-width:560px){.lobby-categories{gap:8px;margin:16px 0 25px}.lobby-categories>a{padding:8px;gap:5px}.lobby-categories img{width:44px;height:44px}.lobby-categories strong{font-size:.875rem}.lobby-categories small{font-size:.75rem}.game-shelf{grid-auto-columns:calc((100% - 20px)/2.25);gap:10px}.world-shelf{margin:22px 0}.club-promo-strip{grid-template-columns:1fr}.club-promo{min-height:205px;padding:23px 145px 23px 20px}.club-promo>img{width:165px;height:165px;right:-10px}.club-promo h2{font-size:1.5rem}.collection-grid{gap:11px}.collection-art{height:135px}.collection-prop{width:95px;height:95px}.collection-fan{inset:10px 22px 3px 0}.collection-fan img{height:100px;width:42%;margin-right:-16px}.collection-tile>div:last-child{padding:14px}.collection-tile h3{font-size:1.05rem;min-height:3.5em}.collection-tile .eyebrow{font-size:.7rem}.collection-heading{display:block;padding:22px}.collection-heading>img{float:right;width:100px;height:100px;margin:0 0 10px 12px}.collection-heading h1{font-size:2rem}.mascot-introduction{grid-template-columns:1fr;gap:12px;text-align:center}.mascot-cutout{width:180px;height:225px;margin:auto}.mascot-introduction h2{font-size:1.65rem}.mascot-introduction p{font-size:1rem}.guide-grid{grid-template-columns:1fr;gap:12px}.guide-card{position:relative;padding:22px 22px 22px 100px;min-height:180px}.guide-card img{position:absolute;left:14px;top:24px;width:70px;height:70px}.guide-card p{font-size:1rem}.guide-card h3{font-size:1.2rem}.pending-round-notice{align-items:flex-start;gap:13px}.pending-round-notice>img{width:65px;height:65px}.pending-round-notice h2{font-size:1.3rem}.world-progress-grid>article{padding:15px}.world-progress-grid img{width:65px;height:87px}.game-actions .button,.game-queue{font-size:.875rem}.game-cover>.pill,.game-cover>.game-tag{font-size:.65rem}}
@media(prefers-reduced-motion:reduce){.collection-tile:hover{transform:none}}

.hero-art img{object-fit:contain}.mobile-bottom img{width:28px;height:28px;object-fit:contain;filter:drop-shadow(0 2px 2px #14082766)}
.content-grid:has(>.scene-panel:not(.game-detail-art)),.profile-grid:has(>.scene-panel){grid-template-columns:1fr}.content-grid>.scene-panel:not(.game-detail-art),.profile-grid>.scene-panel{grid-column:1/-1;margin:0;padding:0;min-height:0;background:#30173e}.scene-panel:not(.game-detail-art)>img{display:block;width:100%;height:auto;aspect-ratio:3/1;object-fit:contain}.content-grid>.surface,.profile-grid>.surface{min-width:0}.content-grid>.mission-list{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid.auth-stage>.form-panel{width:min(680px,100%);margin:auto}.support-grid{grid-template-columns:1fr 1fr}.support-grid .scene-panel{margin:0 0 20px}.profile-grid>.marquee{max-width:900px;width:100%;margin:auto}.reward-stage{padding:0;background:none;border:0}.reward-stage>.surface{max-width:850px;width:100%;margin:auto}
.world-character{display:flex;gap:22px;align-items:center}.world-character>img{width:150px;height:150px;object-fit:contain}.world-character h2{font-size:1.65rem;margin:8px 0}.world-character p{color:#e6ceec;line-height:1.7}.world-symbols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:25px;border-top:1px solid #9f6e9f50;padding-top:20px}.world-symbols figure{margin:0;text-align:center}.world-symbols img{width:130px;height:130px;object-fit:contain;margin:auto}.world-symbols figcaption{font-size:.875rem;color:#e5cdeb;line-height:1.4}.game-world-intro{margin:25px 0}.character-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}.character-gallery>a{display:flex;flex-direction:column;align-items:center;padding:15px 10px;border:1px solid #9763ac48;border-radius:13px;background:radial-gradient(ellipse at 50% 40%,#7e438c42,transparent 75%),#321944;text-align:center;text-decoration:none}.character-gallery img{width:140px;height:140px;object-fit:contain;transition:transform .2s}.character-gallery>a:hover img{transform:translateY(-4px)}.character-gallery strong{font-size:1.1rem;color:#ffe2ab;margin:9px 0 5px}.character-gallery span{color:#dfc7e7;font-size:.875rem;line-height:1.4}.character-gallery-section{margin:30px 0}
@media(max-width:1250px){.character-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){.content-grid>.mission-list{grid-template-columns:1fr}.support-grid{grid-template-columns:1fr}.character-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.character-gallery img{width:115px;height:115px}.world-symbols{gap:9px}.world-symbols img{width:100px;height:100px}}
@media(max-width:560px){.character-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.world-character{gap:14px;align-items:flex-start}.world-character>img{width:90px;height:90px}.world-character h2{font-size:1.2rem}.world-character p{font-size:1rem}.world-symbols{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid>.scene-panel:not(.game-detail-art),.profile-grid>.scene-panel{border-radius:12px}.scene-panel:not(.game-detail-art)>img{aspect-ratio:3/1;object-fit:contain}}

/* Five-colour Prism identity, requested by the operator. */
body{background:radial-gradient(ellipse at 4% 10%,#7544ff15,transparent 45%),radial-gradient(ellipse at 90% 25%,#37dff20e,transparent 45%),radial-gradient(ellipse at 55% 85%,#ff4f9b0c,transparent 45%),#160c24}
.side-rail{background:linear-gradient(165deg,#2e1645 0%,#2d1631 24%,#2c211f 48%,#10252c 73%,#151b35 100%);border-right-color:#9e8fe33b}.topbar{background:linear-gradient(105deg,#26123b 0%,#30152f 25%,#2e2425 50%,#142c35 75%,#1a2240 100%)}
.surface,.feature-card,.guide-card,.form-panel{background:var(--panel-gradient)}.button-primary{background:var(--button-gradient);color:#281233;border-color:#f8cfee;box-shadow:inset 0 1px #ffffffa6,0 4px 0 #4a2358,0 7px 20px #5e54d32a}.button-primary:hover:not(:disabled):not([aria-disabled=true]){background:linear-gradient(110deg,#d4c1ff,#ffb6d4 25%,#ffe4aa 50%,#adf8ff 75%,#c3d3ff);color:#281233;border-color:#e5e6ff}.gradient-text{background:var(--button-gradient);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.rail-daily{background:linear-gradient(125deg,#51336b,#62334d 25%,#53402f 50%,#204452 75%,#2e3d6c);border-color:#cdb8f347}.nav-item.active,.nav-item[aria-current=page]{background:linear-gradient(100deg,#7544ff40,#ff4f9b24 25%,#ffc85718 50%,#37dff21c 75%,#4b80ff28);border-color:#b9b1ed66;box-shadow:inset 3px 0 #b8abff,0 4px 16px #594eab15}.nav-icon{flex-basis:30px;width:30px;height:32px}.nav-icon img{width:30px;height:30px}
.lobby-categories>a{background:linear-gradient(125deg,#503060,#573044 25%,#4b3c2f 50%,#20424b 75%,#29385a);border-color:#a89bd23d}.collection-tile{background:linear-gradient(140deg,#59316c,#603447 25%,#51402e 50%,#214b53 75%,#2d3d69)}.collection-colour-1{background:linear-gradient(130deg,#674079,#703c55 25%,#624f36 50%,#2c5962 75%,#3e4c78)}.collection-colour-2{background:linear-gradient(150deg,#432b65,#56304f 25%,#493b31 50%,#1b3e4c 75%,#283560)}.collection-colour-3{background:linear-gradient(130deg,#61315b,#783d4b 25%,#72543a 50%,#2d5157 75%,#3b456b)}
.club-promo{background:radial-gradient(ellipse at 95% 70%,#37dff22a,transparent 60%),linear-gradient(125deg,#543080,#6a3357 25%,#68503a 50%,#235263 75%,#344d8a)}.mascot-introduction{background:radial-gradient(ellipse at 10% 60%,#a374ef35,transparent 65%),var(--panel-gradient)}.collection-heading{background:radial-gradient(ellipse at 0 40%,#9f63ed33,transparent 65%),var(--panel-gradient)}
.prism-mix{background:radial-gradient(ellipse at 100% 10%,var(--ambient-soft),transparent 70%),var(--panel-gradient)}.marquee[data-design=prism]{background:linear-gradient(135deg,#64428c,#763656 25%,#685134 50%,#245260 75%,#344d81);border-color:#bdb8f5}.character-gallery>a{background:radial-gradient(ellipse at 50% 35%,#ae8bcc2e,transparent 70%),var(--panel-gradient)}.site-footer{border-image:var(--brand-gradient) 1}
.game-cover{border:1px solid #cfafff55;box-shadow:0 5px 16px #11051c55,0 0 12px #5273f00b}.game-favourite[aria-pressed=true]{background:linear-gradient(135deg,#7544ffb8,#ff4f9ba8 35%,#ffc85778 60%,#37dff278 80%,#4b80ffa8)}
.app-shell[data-ambience=cyan]{--accent:#a8f3fa;--accent-rgb:55,223,242;--ambient-soft:#37dff222;--ambient-edge:#8beaf575}.app-shell[data-ambience=blue]{--accent:#b3c8ff;--accent-rgb:75,128,255;--ambient-soft:#4b80ff22;--ambient-edge:#91b5ff75}.swatch-cyan::before{background:radial-gradient(circle at 30% 25%,#d8fbff,#37dff2 55%,#0c7089)}.swatch-blue::before{background:radial-gradient(circle at 30% 25%,#e0eaff,#4b80ff 55%,#203b99)}
@media(max-width:800px){.hero-copy{background:var(--panel-gradient)}.mobile-bottom{background:linear-gradient(105deg,#241335,#2e182d 25%,#2d2623 50%,#142c34 75%,#1b2544)}}
@media(forced-colors:active){.gradient-text{background:none;-webkit-text-fill-color:CanvasText;color:CanvasText}}

.game-favourite{width:44px;height:44px;min-height:44px}.game-actions .button,.game-queue,.rail-daily .button{min-height:44px}

.game-cover>.pill,.game-cover>.game-tag,.rail-daily-days small{font-size:.75rem}

.game-favourite img{width:28px;height:28px;object-fit:contain;filter:grayscale(.7) brightness(.9)}.game-favourite[aria-pressed=true] img{filter:drop-shadow(0 1px 3px #ff9bb050)}
/* Full-frame v4 lobby art: every character and machine remains visible. */
.content-stage>.hero.hero-full-scene{display:block;min-height:0;padding:0;border-radius:24px;background:#242044;isolation:isolate;overflow:hidden;border:1px solid #ffd37870;box-shadow:0 18px 60px #10072066,0 0 30px #7544ff26}.hero.hero-full-scene::before,.hero.hero-full-scene::after{display:none}.hero.hero-full-scene .hero-art{position:relative;display:block;z-index:0;inset:auto;width:100%;height:auto;aspect-ratio:2/1;background:#4b80ff}.hero.hero-full-scene .hero-art img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:contain;object-position:center}.hero.hero-full-scene .hero-copy{position:relative;z-index:1;display:grid;grid-template-columns:minmax(230px,.9fr) minmax(230px,1.1fr) auto;gap:12px 26px;align-items:center;width:100%;max-width:none;padding:24px 30px 28px;background:linear-gradient(110deg,#37234e,#43253f 27%,#3b3036 50%,#203b49 75%,#292f59);border-top:2px solid #ffcf7459}.hero.hero-full-scene .hero-copy .eyebrow{grid-column:1/-1;margin:0;color:#ffe4a1;font-size:.8rem;letter-spacing:.12em}.hero.hero-full-scene .hero-copy h1{margin:0;font-size:clamp(1.8rem,2.6vw,2.65rem);line-height:1.07;max-width:none}.hero.hero-full-scene .hero-copy>p{max-width:none;margin:0;color:#f8efff;font-size:1rem;line-height:1.65}.hero.hero-full-scene .hero-actions{display:flex;flex-direction:column;align-items:stretch;gap:9px;margin:0;min-width:170px}.hero.hero-full-scene .hero-actions .button{justify-content:center;white-space:nowrap;min-height:46px}.hero.hero-full-scene .gradient-text{background-image:linear-gradient(95deg,#bd9aff,#ff9ccc 26%,#ffe697 50%,#8bf4ff 75%,#9bbfff)}@media(max-width:1200px){.hero.hero-full-scene .hero-copy{grid-template-columns:1fr 1.1fr;gap:12px 22px;padding:23px}.hero.hero-full-scene .hero-actions{grid-column:1/-1;flex-direction:row;min-width:0}.hero.hero-full-scene .hero-copy h1{font-size:2.2rem}}@media(max-width:650px){.content-stage>.hero.hero-full-scene{border-radius:18px}.hero.hero-full-scene .hero-art,.hero.hero-full-scene .hero-art img{aspect-ratio:3/4}.hero.hero-full-scene .hero-copy{display:block;padding:22px 20px}.hero.hero-full-scene .hero-copy .eyebrow{font-size:.75rem;margin-bottom:9px}.hero.hero-full-scene .hero-copy h1{font-size:2.15rem;margin-bottom:12px}.hero.hero-full-scene .hero-copy>p{font-size:.95rem;line-height:1.6;margin-bottom:18px}.hero.hero-full-scene .hero-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:9px}.hero.hero-full-scene .hero-actions .button{flex:1;padding:11px 12px;font-size:.875rem}}
