/* Components. From the mockup: spark, buttons, chips, tabs, arrows, shelf,
 * game card, badge, ticket, gate modal. Added in its language: fields and form
 * states, overlays (age gate, cookie banner and settings), accordion, steps,
 * fact list, notice, prose, tables, empty state. */

.icon { width: 20px; height: 20px; flex: none; }
.icon--missing { display: inline-block; outline: 1px dashed var(--color-error); }

/* ── signature: amber four-point spark ──────────────────────────────────── */
.spark {
  display: inline-block; width: .7em; height: .7em; flex: none; background: var(--color-accent);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.spark--spin { animation: spark-spin 9s linear infinite; }
@keyframes spark-spin { to { transform: rotate(360deg); } }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: var(--radius-pill); border: 1px solid transparent;
  background: transparent; color: inherit; font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--color-button); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 10px 24px -12px rgb(147 51 234 / .9); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn--primary:hover { background: var(--color-button-hover); transform: translateY(-2px); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:active { background: var(--color-button-active); transform: translateY(0); }
.btn--ghost { background: rgb(16 20 29 / .35); border-color: var(--line-strong); color: #fff; backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--color-brand); background: var(--tint-brand); transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: .875rem; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* ── chips ──────────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-pill); background: rgb(28 35 48 / .7); border: 1px solid var(--line);
  color: var(--color-text-2); font-size: var(--fs-small); font-weight: 500; text-decoration: none;
  backdrop-filter: blur(6px); transition: color .2s, border-color .2s, background-color .2s, transform .2s var(--ease);
}
.chip:hover { color: #fff; border-color: var(--color-brand); transform: translateY(-2px); }
.chip .icon { width: 16px; height: 16px; color: var(--color-brand); }
.chip b { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; }
button.chip[aria-pressed="true"] { color: #fff; background: var(--tint-brand); border-color: var(--color-brand); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: rgb(16 20 29 / .5);
  backdrop-filter: blur(8px); font-size: var(--fs-small); color: var(--color-text-2); font-weight: 500;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 0 rgb(245 158 11 / .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(245 158 11 / 0); } 100% { box-shadow: 0 0 0 0 rgb(245 158 11 / 0); } }

/* ── segmented tabs with a moving pill ──────────────────────────────────── */
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--radius-pill); background: var(--surface-1); border: 1px solid var(--line); max-width: 100%; }
.tab {
  position: relative; z-index: 1; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--color-text-2); font-weight: 600; font-size: .9rem; white-space: nowrap; transition: color .2s;
}
.tab:hover, .tab[aria-selected="true"] { color: #fff; }
.tabs__pill {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: var(--radius-pill);
  background: var(--color-button); box-shadow: 0 8px 20px -10px rgb(147 51 234 / .9);
  transition: transform .35s var(--spring), width .35s var(--spring);
}
.shelf-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.arrows { display: flex; gap: 8px; }
.arrow {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface-1); color: #fff;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.arrow:hover { border-color: var(--color-brand); background: var(--tint-brand); }
.arrow:active { transform: scale(.94); }

/* ── shelf (horizontal, snap) ───────────────────────────────────────────── */
.shelf {
  --edge: max(var(--gutter), (100vw - var(--container)) / 2);
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(176px, 15.4vw, 216px); gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge); padding: 6px var(--edge) 22px; scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf .gcard { scroll-snap-align: start; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 18px; }

/* ── game card ──────────────────────────────────────────────────────────── */
.gcard {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 8px;
  border-radius: var(--radius-lg); background: var(--surface-1); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.gcard:hover, .gcard:focus-within { transform: translateY(-4px); border-color: rgb(168 85 247 / .55); box-shadow: var(--shadow-2); }
.gcard__img { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg); }
.gcard__img img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .5s var(--ease); }
.gcard:hover .gcard__img img { transform: scale(1.04); }
.gcard__play {
  position: absolute; inset: auto 10px 10px auto; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--color-button); color: #fff; opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s var(--ease); pointer-events: none;
}
.gcard__play .icon { width: 18px; height: 18px; fill: currentColor; }
.gcard:hover .gcard__play, .gcard:focus-within .gcard__play { opacity: 1; transform: none; }
.badge {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--radius-pill); background: rgb(16 20 29 / .82); backdrop-filter: blur(6px);
  font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: #fff; border: 1px solid var(--line);
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-brand); }
.badge--live i, .badge--new i { background: var(--color-accent); }
.gcard__body { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 12px 6px 4px; min-width: 0; }
/* names wrap instead of being cut: "Who Wants To Be A Millionaire Megapots" must be readable */
.gcard__name { font-family: var(--font-body); font-weight: 600; font-size: .98rem; line-height: 1.25; overflow-wrap: anywhere; }
.gcard__prov { font-size: var(--fs-small); color: var(--color-text-2); overflow-wrap: anywhere; }
.gcard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.gcard__cat { min-width: 0; font-size: var(--fs-xs); color: var(--color-text-2); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; line-height: 1.3; }
.gcard .details {
  flex: none; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  background: transparent; color: #fff; font-size: .82rem; font-weight: 600; transition: background-color .2s, border-color .2s;
}
.gcard .details:hover { background: var(--color-button); border-color: var(--color-button); }
/* the whole card opens the game: the button's hit area stretches over it */
.gcard .details::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.gcard.is-hidden { display: none; }

/* ── promotion ticket (signature: notches + perforation) ────────────────── */
.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ticket {
  --cut: 208px; position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  transition: transform .35s var(--ease), border-color .35s;
  -webkit-mask: radial-gradient(circle 15px at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 15px at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 15px at 0 var(--cut), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 15px at 100% var(--cut), #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket:hover { transform: translateY(-4px); border-color: rgb(245 158 11 / .45); }
.ticket__media { position: relative; height: var(--cut); border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.ticket__media picture, .ticket__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ticket:hover .ticket__media img { transform: scale(1.05); }
.ticket__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(28 35 48 / .95), rgb(28 35 48 / .1) 60%); }
.ticket__tag {
  position: absolute; left: 18px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: var(--radius-pill); background: rgb(16 20 29 / .8); backdrop-filter: blur(6px); border: 1px solid var(--line-strong);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.ticket__tag .spark { width: 10px; height: 10px; }
.ticket__perf { height: 0; margin: 0 24px; border-top: 2px dashed rgb(183 192 208 / .2); }
.ticket__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 22px 24px 24px; }
.ticket h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.ticket p { color: var(--color-text-2); font-size: .95rem; }
.ticket dl { display: grid; gap: 10px; margin: 4px 0 0; padding: 14px; border-radius: var(--radius-md); background: var(--surface-1); border: 1px solid var(--line); }
.ticket dl div { display: grid; grid-template-columns: 20px 92px 1fr; align-items: start; gap: 8px; font-size: var(--fs-small); }
.ticket dt { color: var(--color-text-2); }
.ticket dd { margin: 0; color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
.ticket dl .icon { width: 16px; height: 16px; color: var(--color-brand); margin-top: 3px; }
.ticket__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.terms-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--fs-small); font-weight: 600;
  color: var(--color-text-2); text-decoration: underline; text-decoration-color: rgb(183 192 208 / .4); text-underline-offset: 4px; transition: color .2s;
}
.terms-link .icon { width: 16px; height: 16px; }
.terms-link:hover { color: var(--color-accent); }
.note { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; font-size: var(--fs-small); color: var(--color-text-2); }
.note .icon { width: 18px; height: 18px; color: var(--color-accent); margin-top: 2px; }

/* ── surfaces: panel / tile ─────────────────────────────────────────────── */
.panel { padding: 28px; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border-radius: var(--radius-lg); background: var(--surface-1); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s;
}
.tile:hover { transform: translateY(-3px); border-color: rgb(168 85 247 / .45); }
.tile h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.tile p { color: var(--color-text-2); font-size: .95rem; }
.tile__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint-brand); color: var(--color-brand); }
.tile__icon .icon { width: 22px; height: 22px; }
.tile a.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: var(--fs-small); color: #fff; text-decoration: none; }
.tile a.more:hover { color: var(--color-accent); }
.tile a.more .icon { width: 16px; height: 16px; }

/* ── fact list (operator data) ──────────────────────────────────────────── */
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-1); }
.facts div { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 16px; padding: 16px 20px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--color-text-2); font-size: var(--fs-small); font-weight: 500; }
.facts dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.facts dd small { display: block; margin-top: 4px; color: var(--color-text-2); font-size: var(--fs-xs); }

/* ── notice ─────────────────────────────────────────────────────────────── */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-md); border: 1px solid rgb(245 158 11 / .35); background: var(--tint-accent); }
.notice .icon { color: var(--color-accent); margin-top: 2px; }
.notice p { color: #fff; font-size: .95rem; }
.notice--brand { border-color: rgb(168 85 247 / .4); background: var(--tint-brand); }
.notice--brand .icon { color: var(--color-brand); }

/* ── forms ──────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field__label { font-size: var(--fs-small); font-weight: 600; color: #fff; }
.field__hint { font-size: var(--fs-xs); color: var(--color-text-2); }
.field input:not(.visually-hidden):not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--surface-1); color: #fff; font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-text-2) 50%), linear-gradient(135deg, var(--color-text-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--surface-2); color: #fff; }
.field textarea { min-height: 150px; padding-block: 14px; resize: vertical; line-height: 1.5; }
.field ::placeholder { color: rgb(183 192 208 / .6); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(183 192 208 / .38); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-brand); box-shadow: 0 0 0 3px var(--tint-brand); outline: none; background: var(--surface-2); }
.field__error { display: flex; gap: 6px; align-items: center; color: var(--color-error); font-size: var(--fs-small); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-error); background: var(--color-error-bg); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input { width: 24px; height: 24px; margin-top: 1px; accent-color: var(--color-button); }
.field--check .field__label { font-weight: 500; color: var(--color-text-2); }
.field--check .field__label a { color: #fff; text-underline-offset: 3px; }
.field--check .field__error { grid-column: 1 / -1; }
.field-pass { position: relative; }
.field-pass input { padding-right: 56px !important; }
.field-pass button { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--color-text-2); }
.field-pass button:hover { color: #fff; background: rgb(255 255 255 / .06); }
.form__error { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--color-error-bg); color: var(--color-error); font-size: var(--fs-small); }
.form__success { color: var(--color-success); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp-field input { min-height: 44px; }
.done {
  display: grid; justify-items: start; gap: 12px; padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid rgb(74 222 128 / .35); background: var(--color-success-bg);
}
.done .icon { width: 32px; height: 32px; color: var(--color-success); }
.done h3 { font-size: 1.2rem; font-weight: 600; }
.done p { color: var(--color-text-2); }

/* ── overlays (app.js): modal, game gate, age gate, cookies ──────────────── */
.overlay {
  position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px;
  background: rgb(8 10 16 / .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--dur-slow) var(--ease);
}
.overlay.is-open { opacity: 1; }
.overlay__panel {
  position: relative; width: min(100%, 460px); max-height: calc(100vh - 32px); overflow: auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-2); color: #fff; box-shadow: var(--shadow-3);
  transform: translateY(12px) scale(.97); transition: transform var(--dur-slow) var(--spring);
}
.overlay.is-open .overlay__panel { transform: none; }
.overlay__close {
  position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: transparent; color: var(--color-text-2);
}
.overlay__close:hover { background: rgb(255 255 255 / .08); color: #fff; }
.modal__body { padding: 28px 24px 24px; }
.modal__body h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; padding-right: 36px; }
.modal__body h2 .icon { color: var(--color-accent); }
.modal__body p { margin-top: 10px; color: var(--color-text-2); font-size: .95rem; }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }

/* game gate (mockup dialog) */
.gate__head { display: flex; gap: 16px; align-items: center; padding: 22px 64px 0 22px; }
.gate__head img { width: 84px; height: 84px; border-radius: var(--radius-md); background: var(--color-bg); flex: none; }
.gate__head small { display: block; color: var(--color-text-2); font-size: var(--fs-small); }
.gate__head b { font-size: 1.05rem; }
.gate__state[hidden] { display: none; }
.gate__region { display: flex; gap: 12px; padding: 14px; margin-top: 16px; border-radius: var(--radius-md); background: var(--tint-accent); border: 1px solid rgb(245 158 11 / .35); }
.gate__region .icon { color: var(--color-accent); margin-top: 2px; }
.gate__region p { margin: 0; color: #fff; }
.gate__loading { display: flex; align-items: center; gap: 12px; padding: 28px 24px; color: var(--color-text-2); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--color-accent); animation: spark-spin .8s linear infinite; }

/* age gate */
.overlay--gate { background: rgb(8 10 16 / .9); z-index: calc(var(--z-modal) + 10); }
.overlay--gate .overlay__panel { width: min(100%, 520px); text-align: left; }
.agegate { padding: 32px 28px 28px; }
.agegate__mark { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.agegate__mark img { width: 52px; height: 52px; }
.agegate__mark .logo { padding: 0; font-size: 1.25rem; }
.agegate h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); font-weight: 600; letter-spacing: -.03em; }
.agegate p { margin-top: 12px; color: var(--color-text-2); }
.agegate__actions { display: grid; gap: 10px; margin-top: 24px; }
.agegate__note { margin-top: 18px; font-size: var(--fs-xs); color: var(--color-text-2); }
.agegate__denied { display: grid; gap: 12px; }
.agegate__denied a { color: #fff; }

/* cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-banner);
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px 20px; align-items: center;
  width: min(1120px, 100% - 32px); margin-inline: auto; padding: 18px 20px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: rgb(28 35 48 / .96);
  backdrop-filter: blur(14px); box-shadow: var(--shadow-3);
}
.cookie-banner > .icon { width: 28px; height: 28px; color: var(--color-accent); }
.cookie-banner p { font-size: var(--fs-small); color: var(--color-text-2); }
.cookie-banner p a { color: #fff; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-settings .overlay__panel { width: min(100%, 560px); }
.cookie-cats { display: grid; gap: 10px; margin-top: 18px; }
.cookie-cat { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-1); border: 1px solid var(--line); }
.cookie-cat b { grid-column: 1; grid-row: 1; font-size: .95rem; }
.cookie-cat > span:not(.switch) { grid-column: 1; grid-row: 2; font-size: var(--fs-small); color: var(--color-text-2); }
.switch { position: relative; grid-row: 1 / span 2; grid-column: 2; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-strong); transition: background-color .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.switch input:checked + i { background: var(--color-button); }
.switch input:checked + i::after { transform: translateX(22px); }
.switch input:focus-visible + i { box-shadow: var(--focus-ring); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + i { opacity: .6; }

/* ── accordion (FAQ) ────────────────────────────────────────────────────── */
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.accordion { display: grid; gap: 10px; }
.acc-item { border-radius: var(--radius-md); background: var(--surface-1); border: 1px solid var(--line); transition: border-color .2s; }
.acc-item:has([aria-expanded="true"]) { border-color: rgb(168 85 247 / .45); }
.acc-item h3 { font-family: var(--font-body); font-size: 1rem; }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 60px; padding: 14px 20px;
  border: 0; background: transparent; color: #fff; font-weight: 600; font-size: 1rem; text-align: left;
}
.acc-trigger .icon { flex: none; color: var(--color-text-2); transition: transform .3s var(--ease); }
.acc-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--color-accent); }
.acc-panel > div > div { padding: 0 20px 20px; color: var(--color-text-2); }
.acc-panel p + p { margin-top: 10px; }
.acc-panel a { color: #fff; text-underline-offset: 3px; }

/* ── steps ──────────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface-1); border: 1px solid var(--line); }
.step__num { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--tint-brand); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.step h2, .step h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.step p { margin-top: 8px; color: var(--color-text-2); }
.step ul { margin-top: 10px; display: grid; gap: 6px; color: var(--color-text-2); }
.step li { position: relative; padding-left: 18px; }
.step li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--color-accent); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }

/* ── prose (legal and long text) ────────────────────────────────────────── */
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; padding: 18px; border-radius: var(--radius-lg); background: var(--surface-1); border: 1px solid var(--line); }
.toc b { display: block; margin-bottom: 10px; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent); }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: flex; gap: 8px; min-height: 32px; align-items: center; padding: 4px 8px; border-radius: 8px; font-size: var(--fs-small); color: var(--color-text-2); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: #fff; background: rgb(255 255 255 / .05); }
.prose { max-width: 76ch; color: var(--color-text-2); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 48px; padding-top: 8px; color: #fff; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 600; letter-spacing: -.025em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; color: #fff; font-family: var(--font-body); font-size: 1.08rem; font-weight: 600; }
.prose a { color: #fff; text-underline-offset: 3px; text-decoration-color: rgb(168 85 247 / .7); }
.prose a:hover { color: var(--color-accent); }
.prose strong { color: #fff; }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--color-accent); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 30px; counter-increment: li; }
.prose ol li::before { content: counter(li) "."; position: absolute; left: 0; color: var(--color-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.prose .updated { font-size: var(--fs-small); }

/* ── data table ─────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-1); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: middle; }
.table thead th { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-2); font-weight: 600; background: var(--surface-0); }
.table tbody tr + tr td, .table tbody tr + tr th { border-top: 1px solid var(--line); }
.table td { color: var(--color-text-2); }
.table tbody th { color: #fff; font-weight: 600; }
.yes, .no { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.yes { color: var(--color-success); }
.no { color: var(--color-text-2); }
.yes .icon, .no .icon { width: 16px; height: 16px; }

/* ── empty state ────────────────────────────────────────────────────────── */
.empty { display: grid; justify-items: center; gap: 10px; padding: 48px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--color-text-2); }
.empty .icon { width: 32px; height: 32px; color: var(--color-brand); }
.empty b { color: #fff; font-size: 1.05rem; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid .ticket:last-child { grid-column: 1 / -1; }
  .doc { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; max-height: none; }
}
@media (max-width: 900px) {
  .promo-grid { grid-template-columns: 1fr; }
  .promo-grid .ticket:last-child { grid-column: auto; }
  .ticket { --cut: 180px; }
  .cookie-banner { grid-template-columns: 1fr; bottom: 84px; }
  .cookie-banner > .icon { display: none; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1 1 auto; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .step__num { width: 52px; height: 52px; border-radius: 14px; }
  .modal__actions { grid-template-columns: 1fr; }
  .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tab { padding: 0 14px; flex: none; }
  .arrows { display: none; }
  .shelf { grid-auto-columns: 64%; gap: 14px; }
  .ticket dl div { grid-template-columns: 20px 84px 1fr; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gcard .details { padding: 0 12px; }
  .table th, .table td { padding: 12px 14px; }
}
