/* Components of the approved mockup C "Sun Dial" + the states it did not draw. */

/* ── icons ────────────────────────────────────────────────────────────── */
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; }
.icon--missing { display: inline-block; width: 1em; height: 1em; outline: 1px dashed var(--color-error); }
.mono, .num { font-variant-numeric: tabular-nums; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: inherit; font: 600 15px/1 var(--font-body); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"], .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--color-brand); color: var(--color-brand-ink); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px -8px rgba(249,115,22,.7); }
.btn--primary:hover { background: var(--color-brand-hover); }
.btn--primary:active { background: var(--color-brand-active); }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.4) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost, .btn--line { background: rgba(255,255,255,.04); color: var(--color-text); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.btn--ghost:hover, .btn--line:hover { background: rgba(255,255,255,.09); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; min-height: 44px; padding: 0; }

/* ── eyebrow / label with the sun dot (signature) ─────────────────────── */
.t-label, .eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); }
.t-label::before, .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-brand); box-shadow: var(--sun-glow); flex: none; }
.t-label--live::before { background: var(--color-live); box-shadow: 0 0 0 4px rgba(239,68,68,.16); animation: pulse 1.8s infinite; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-live); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); } 70% { box-shadow: 0 0 0 7px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }

/* ── section head ─────────────────────────────────────────────────────── */
.sec-head, .sh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 28px; }
.sec-head h2, .sh h2 { margin: 12px 0 0; font: 800 var(--fs-h2)/1.04 var(--font-display); letter-spacing: -.04em; text-wrap: balance; }
.sec-head p, .sh p { margin: 12px 0 0; max-width: 560px; color: var(--color-muted); text-wrap: pretty; }
.sh__side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) { .sec-head, .sh { margin-bottom: 20px; } }

/* ── chips ────────────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); font: 600 14px/1 var(--font-body); color: var(--color-muted); background: rgba(255,255,255,.03); box-shadow: 0 0 0 1px var(--line-strong) inset; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.chip b { font: 600 12px/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--color-faint); }
.chip:hover { color: #fff; background: rgba(255,255,255,.07); }
.chip[aria-pressed="true"], .chip[aria-current] { color: #fff; background: var(--tint-brand); box-shadow: 0 0 0 1px rgba(249,115,22,.55) inset; }
.chip[aria-pressed="true"]::before, .chip[aria-current]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 8px var(--color-brand); }
.chip[aria-pressed="true"] b { color: var(--color-muted); }
@media (max-width: 760px) {
  .chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--container-pad) * -1); padding: 2px var(--container-pad); scrollbar-width: none; }
  .chips--scroll::-webkit-scrollbar { display: none; }
  .chips--scroll .chip { flex: none; }
}

/* ── segmented control with sliding pill ──────────────────────────────── */
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: var(--radius-pill); background: rgba(32,43,61,.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow-card); z-index: 3; }
.seg-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; min-width: 96px; padding: 0 16px; border: 0; background: none; border-radius: var(--radius-pill); font: 600 14px/1 var(--font-body); color: var(--color-muted); cursor: pointer; transition: color .25s; white-space: nowrap; }
.seg-btn:hover, .seg-btn[aria-selected="true"], .seg-btn[aria-pressed="true"] { color: #fff; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: var(--radius-pill); background: var(--surface-3); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 4px 12px rgba(0,0,0,.35); transition: transform .45s var(--ease), width .45s var(--ease); }
@media (max-width: 760px) { .seg { width: 100%; } .seg-btn { min-width: 0; padding: 0 8px; font-size: 13.5px; height: 40px; } }

/* ── tags / badges ────────────────────────────────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font: 600 12px/1 var(--font-body); background: var(--tint-accent); color: #BAE6FD; box-shadow: 0 0 0 1px rgba(56,189,248,.3) inset; white-space: nowrap; }
.tag--brand { background: var(--tint-brand); color: #FED7AA; box-shadow: 0 0 0 1px rgba(249,115,22,.4) inset; }
.tag--live { background: var(--tint-live); color: #FECACA; box-shadow: 0 0 0 1px rgba(239,68,68,.35) inset; }
.tag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-live); animation: pulse 1.8s infinite; }
.tag--ok { background: var(--tint-ok); color: #BBF7D0; box-shadow: 0 0 0 1px rgba(34,197,94,.35) inset; }
.tag--mute { background: rgba(188,199,215,.08); color: var(--color-muted); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.tag .icon { width: 13px; height: 13px; }
.tag-new { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 4px 8px; border-radius: var(--radius-pill); font: 700 10.5px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #04121c; background: var(--color-accent); }

/* ── tile (bento card, from the mockup) ───────────────────────────────── */
.tile { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow-card); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-strong) inset, var(--shadow-pop); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.08) 48%, transparent 60%); transform: translateX(-110%); transition: transform .9s var(--ease); }
.tile:hover::after { transform: translateX(110%); }
.tile--static:hover { transform: none; }
.tile--static::after { display: none; }
.tile-pad { position: relative; z-index: 2; height: 100%; padding: 22px; display: flex; flex-direction: column; }
.t-photo { position: absolute; inset: 0; z-index: 0; }
.t-photo picture, .t-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .t-photo img { transform: scale(1.04); }
.t-photo::after { content: ""; position: absolute; inset: 0; }
.t-kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); }
.tile h3 { margin: 8px 0 0; font: 800 var(--fs-h3)/1.15 var(--font-display); letter-spacing: -.03em; }
.tile p { margin: 8px 0 0; color: var(--color-muted); font-size: 15px; line-height: 1.5; }
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
a.tile { display: block; color: inherit; text-decoration: none; }
@media (max-width: 760px) { .tile-pad { padding: 18px; } }

/* ── round arrows (sliders, shelves) ──────────────────────────────────── */
.arrows, .mini-nav { display: flex; gap: 6px; }
.arrows button, .mini-nav button, .round-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--color-text); box-shadow: 0 0 0 1px var(--line-strong) inset; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.arrows button:hover, .mini-nav button:hover, .round-btn:hover { background: rgba(255,255,255,.12); }
.arrows button:active, .round-btn:active { transform: scale(.94); }
.arrows .icon, .mini-nav .icon { width: 18px; height: 18px; }
.dots { display: flex; gap: 2px; align-items: center; }
.dots button { width: 24px; height: 24px; display: grid; place-items: center; border: 0; background: none; padding: 0; cursor: pointer; }
.dots button::before { content: ""; width: 6px; height: 6px; border-radius: 6px; background: rgba(188,199,215,.35); transition: width .3s var(--ease), background-color .3s; }
.dots button[aria-current="true"]::before { width: 18px; background: var(--color-brand); }

/* ── game card (cover 1:1, never stretched) ───────────────────────────── */
.gcard { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.gcard .cv { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-3); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 8px 18px -8px rgba(0,0,0,.6); }
.gcard .cv picture, .gcard .cv img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease); }
.gcard .cv::after { content: ""; position: absolute; inset: 0; background: rgba(18,24,39,.45); opacity: 0; transition: opacity .25s; }
.gcard .pl { position: absolute; left: 50%; top: 50%; z-index: 2; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; display: grid; place-items: center; background: var(--color-brand); color: var(--color-brand-ink); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s var(--ease); }
.gcard .pl .icon { width: 20px; height: 20px; fill: currentColor; }
.gcard:hover .cv img, .gcard:focus-visible .cv img { transform: scale(1.06); }
.gcard:hover .cv::after, .gcard:focus-visible .cv::after { opacity: 1; }
.gcard:hover .pl, .gcard:focus-visible .pl { opacity: 1; transform: scale(1); }
.gcard .nm { display: block; margin-top: 10px; font-weight: 600; font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard .pv { display: block; margin-top: 2px; font-size: 12.5px; color: var(--color-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard .badge { position: absolute; right: 8px; top: 8px; z-index: 2; }
@media (hover: none) { .gcard .pl { opacity: 1; transform: scale(.82); left: auto; top: auto; right: 8px; bottom: 8px; margin: 0; width: 40px; height: 40px; } }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 16px; }
@media (max-width: 520px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
.game-wrap { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ── shelf (horizontal scroll with snap) ──────────────────────────────── */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 176px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; overscroll-behavior-x: contain; }
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; }
.shelf.is-drag { scroll-snap-type: none; cursor: grabbing; }
@media (max-width: 760px) { .shelf { grid-auto-columns: 42%; margin-inline: calc(var(--container-pad) * -1); padding-inline: var(--container-pad); scroll-padding-inline: var(--container-pad); } }

/* ── progress bar with a sun dot ──────────────────────────────────────── */
.bar { position: relative; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--color-accent), var(--color-brand)); transition: width 1.2s var(--ease); }
.bar i::after { content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px var(--color-brand); }

/* ── stat ─────────────────────────────────────────────────────────────── */
.stat { display: grid; gap: 2px; }
.stat b { font: 800 30px/1.05 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--color-faint); }

/* ── fields & forms ───────────────────────────────────────────────────── */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: 13.5px; font-weight: 600; color: var(--color-muted); }
.field input:not(.visually-hidden):not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 0 14px; border: 0; border-radius: var(--radius-md);
  background: var(--surface-0); color: var(--color-text); font-size: 16px; box-shadow: 0 0 0 1px var(--line-strong) inset;
  transition: box-shadow var(--dur-fast);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%), linear-gradient(135deg, var(--color-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { min-height: 140px; padding-block: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 1px var(--color-brand) inset, var(--focus-ring); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-faint); }
.field__hint { font-size: 12.5px; color: var(--color-faint); }
.field__error { color: var(--color-error); font-size: 13.5px; }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field [aria-invalid="true"] { box-shadow: 0 0 0 1px var(--color-error) inset !important; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-brand); }
.field--check .field__label { display: inline; font-weight: 400; color: var(--color-muted); }
.field--check .field__label a { color: var(--color-brand); }
.field--check .field__error { grid-column: 1 / -1; }
.form__error { color: var(--color-error); font-size: 14px; padding: 10px 14px; border-radius: var(--radius-md); background: rgba(255,138,128,.1); }
.form__success { color: var(--color-success); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.link-btn { border: 0; background: none; color: var(--color-brand); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ── overlays: modal, sheet, gates ────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; background: rgba(8,12,22,.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--dur-base) var(--ease); overflow-y: auto; }
.overlay.is-open { opacity: 1; }
.overlay__panel { position: relative; width: min(100%, 440px); max-height: calc(100dvh - 32px); overflow: auto; padding: 30px 26px 24px; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); box-shadow: 0 0 0 1px var(--line-strong) inset, 0 30px 80px -20px rgba(0,0,0,.8); transform: translateY(12px) scale(.98); transition: transform .3s var(--ease); }
.overlay.is-open .overlay__panel { transform: none; }
/* sunrise light at the top of every dialog (signature) */
.overlay__panel::before { content: ""; position: absolute; left: 50%; top: -80px; width: 260px; height: 160px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(249,115,22,.28), transparent); pointer-events: none; }
.overlay__title { position: relative; font: 800 26px/1.15 var(--font-display); letter-spacing: -.03em; margin: 12px 0 8px; }
.overlay__lead { position: relative; color: var(--color-muted); margin-bottom: 20px; font-size: 15px; }
.overlay__x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: var(--color-muted); cursor: pointer; }
.overlay__x:hover { color: #fff; background: rgba(255,255,255,.06); }
.overlay__actions { position: relative; display: grid; gap: 10px; margin-top: 20px; }
.overlay__actions--2 { grid-template-columns: 1fr 1fr; }
.overlay__switch { position: relative; margin-top: 18px; font-size: 14.5px; color: var(--color-muted); text-align: center; }
.overlay__switch button { border: 0; background: none; color: var(--color-brand); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.overlay__icon { position: relative; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--tint-brand); color: var(--color-brand); }
.overlay__icon .icon { width: 28px; height: 28px; }
.overlay__icon--warn { background: rgba(56,189,248,.12); color: var(--color-accent); }
.m-sun { position: relative; width: 64px; height: 34px; margin: 0 auto 14px; }
.m-sun::before { content: ""; position: absolute; left: 12px; bottom: 2px; width: 40px; height: 20px; border-radius: 40px 40px 0 0; background: var(--color-brand); }
.m-sun::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--color-accent); }
.overlay__panel--center { text-align: center; }
.overlay__panel--center .overlay__icon { margin-inline: auto; }

/* ── toast ────────────────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 96px; z-index: var(--z-toast); display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: var(--radius-md); background: var(--color-text); color: var(--color-bg); box-shadow: var(--shadow-pop); transform: translate(-50%, 24px); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .3s, visibility 0s .45s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }

/* ── accordion (FAQ) ──────────────────────────────────────────────────── */
.acc { border-radius: var(--radius-md); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); box-shadow: 0 0 0 1px var(--line) inset; margin-bottom: 10px; overflow: hidden; transition: box-shadow var(--dur-base); }
.acc:has(> button[aria-expanded="true"]) { box-shadow: 0 0 0 1px rgba(249,115,22,.4) inset; }
.acc > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 20px; border: 0; background: none; color: var(--color-text); font: 600 16.5px/1.35 var(--font-body); text-align: left; cursor: pointer; }
.acc > button .icon { transition: transform var(--dur-base) var(--ease); color: var(--color-brand); }
.acc > button[aria-expanded="true"] .icon { transform: rotate(45deg); }
.acc > button:hover { background: rgba(255,255,255,.03); }
.acc__body > div > div { padding: 0 20px 20px; color: var(--color-muted); }
.acc__body p + p { margin-top: 10px; }
.acc__body a { color: var(--color-brand); }

/* ── breadcrumb ───────────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--color-faint); }
.crumbs a { color: var(--color-muted); text-decoration: none; }
.crumbs a:hover { color: var(--color-brand); }
.crumbs .icon { width: 14px; height: 14px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--color-brand); font-weight: 600; font-size: 15px; text-decoration: none; }
.more-link .icon { transition: transform var(--dur-base) var(--ease); }
.more-link:hover .icon { transform: translateX(4px); }

/* ── document pages (legal / info) ────────────────────────────────────── */
.doc-hero { position: relative; overflow: hidden; padding: 128px 0 40px; border-bottom: 1px solid var(--line); isolation: isolate; }
.doc-hero::before { content: ""; position: absolute; left: 50%; bottom: -1px; z-index: -1; width: min(1100px, 140%); aspect-ratio: 2 / 1; transform: translateX(-50%); border-radius: 999px 999px 0 0; background: radial-gradient(closest-side at 50% 100%, rgba(249,115,22,.2), rgba(249,115,22,.06) 50%, transparent 80%); }
.doc-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(188,199,215,.4) 18%, rgba(249,115,22,.9) 50%, rgba(188,199,215,.4) 82%, transparent); }
.doc-hero h1 { font: 800 var(--fs-h1)/1.02 var(--font-display); letter-spacing: -.045em; margin: 16px 0 14px; text-wrap: balance; max-width: 900px; }
.doc-hero p { color: var(--color-muted); max-width: 680px; font-size: 17px; text-wrap: pretty; }
.doc-hero__meta { display: flex; gap: 10px 24px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--color-faint); }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-block: 48px 96px; }
.toc { position: sticky; top: 90px; align-self: start; display: grid; gap: 2px; max-height: calc(100vh - 200px); overflow: auto; scrollbar-width: thin; }
.toc a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--color-muted); font-size: 14px; text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast); }
.toc a:hover { color: var(--color-text); background: var(--surface-1); }
.toc a[aria-current="true"] { color: var(--color-text); background: var(--surface-1); box-shadow: inset 3px 0 0 var(--color-brand); }
.prose { max-width: 760px; }
.prose h2 { font: 800 24px/1.2 var(--font-display); letter-spacing: -.03em; margin: 48px 0 14px; scroll-margin-top: 100px; display: flex; gap: 12px; align-items: baseline; }
.prose h2 .n { font: 700 13px var(--font-body); font-variant-numeric: tabular-nums; color: var(--color-brand); }
.prose > section:first-child h2, .prose h2:first-child { margin-top: 0; }
.prose h3 { font: 700 18px/1.3 var(--font-display); margin: 26px 0 10px; }
.prose p, .prose li { color: var(--color-muted); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { margin: 12px 0; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 6px rgba(249,115,22,.6); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; position: relative; padding-left: 32px; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; font: 700 13px/1.75 var(--font-body); color: var(--color-brand); font-variant-numeric: tabular-nums; }
.prose a { color: var(--color-brand); text-underline-offset: 3px; }
.prose a.btn { text-decoration: none; }
.prose a.btn--primary { color: var(--color-brand-ink); }
.prose a.btn--line, .prose a.btn--ghost { color: var(--color-text); }
.prose strong { color: var(--color-text); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--color-faint); font: 600 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.prose td { color: var(--color-muted); }
.prose td:first-child { color: var(--color-text); font-weight: 600; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); background: var(--surface-1); box-shadow: 0 0 0 1px var(--line) inset; margin: 16px 0; }
.table-wrap table { margin: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }
.callout { position: relative; display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--tint-brand); box-shadow: 0 0 0 1px rgba(249,115,22,.3) inset; margin: 20px 0; color: var(--color-text); }
.callout .icon { color: var(--color-brand); margin-top: 3px; }
.callout p { color: var(--color-text); }
.callout--sky { background: var(--tint-accent); box-shadow: 0 0 0 1px rgba(56,189,248,.35) inset; }
.callout--sky .icon { color: var(--color-accent); }
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block-start: 24px; }
  .toc { position: static; display: flex; overflow-x: auto; max-height: none; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .toc a { white-space: nowrap; box-shadow: 0 0 0 1px var(--line) inset; border-radius: var(--radius-pill); }
  .doc-hero { padding-top: 104px; }
}

/* ── steps (how it works) ─────────────────────────────────────────────── */
.steps { display: grid; gap: 14px; }
.step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 22px; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); box-shadow: 0 0 0 1px var(--line) inset; }
.step__n { position: relative; width: 56px; height: 30px; margin-top: 10px; display: grid; place-items: end center; padding-bottom: 3px; color: var(--color-brand-ink); font: 800 14px var(--font-display); isolation: isolate; }
.step__n::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 56px 56px 0 0; background: var(--color-brand); }
.step__n::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--color-accent); }
.step h2, .step h3 { font: 800 19px/1.25 var(--font-display); letter-spacing: -.02em; margin: 6px 0 8px; }
.step p, .step li { color: var(--color-muted); }
@media (max-width: 520px) { .step { grid-template-columns: 1fr; gap: 6px; } .step__n { margin-top: 0; } }

/* ── help cards (RG organisations) ────────────────────────────────────── */
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 18px 0; }
.help { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--radius-md); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); box-shadow: 0 0 0 1px var(--line) inset; }
.help b { font-size: 16px; color: var(--color-text); }
.help p { font-size: 14.5px; }
.help a.tel { display: inline-flex; align-items: center; gap: 8px; font: 800 19px var(--font-display); color: var(--color-brand); text-decoration: none; }

/* ── payment method row (banking) ─────────────────────────────────────── */
.logo-plate { display: grid; place-items: center; width: 100%; height: 84px; border-radius: var(--radius-md); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); box-shadow: 0 0 0 1px var(--line) inset; }
.logo-plate img { height: 30px; width: auto; }
.logo-plate .lp-mc { height: 44px; }
.logo-plate .lp-psc { height: 16px; max-width: 86%; filter: invert(1) brightness(.85); }

/* ── game details dialog ──────────────────────────────────────────────── */
.gdlg { width: min(100%, 420px); }
.gdlg__cv { position: relative; width: 132px; aspect-ratio: 1; margin-bottom: 14px; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 0 0 2px var(--color-brand), 0 0 0 7px rgba(249,115,22,.18), 0 18px 40px -10px rgba(0,0,0,.8); }
.gdlg__cv img { width: 100%; height: 100%; object-fit: cover; }
.gdlg__dl { position: relative; display: grid; gap: 1px; margin: 6px 0 0; border-radius: var(--radius-md); overflow: hidden; background: var(--line); }
.gdlg__dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; background: rgba(18,24,39,.55); font-size: 14px; }
.gdlg__dl dt { color: var(--color-faint); }
.gdlg__dl dd { margin: 0; text-align: right; color: var(--color-text); }
.btn[data-fav][aria-pressed="true"] { color: var(--color-brand); box-shadow: 0 0 0 1px rgba(249,115,22,.6) inset; }
.btn[data-fav][aria-pressed="true"] .icon { fill: currentColor; }
[data-play] .icon, .di-play .icon { fill: currentColor; }

/* game names wrap instead of being cut with an ellipsis (flow.js: no clipped text) */
.gcard .nm, .gcard .pv { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.gcard .nm { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }

/* half-sun badges paint their own background (contrast checks read the element, not ::before) */
.step__n { background: var(--color-brand); border-radius: 56px 56px 0 0; }
.step__n::before { display: none; }
.gate__age { background: var(--color-brand); border-radius: 84px 84px 0 0; }
.gate__age::before { display: none; }
/* key–value tables: the key cell is a row header (th scope=row) and looks like the old first cell */
.prose th[scope="row"] { font: 600 15px/1.5 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--color-text); }
