/* Components. From the mockup: buttons, bulbs, kicker, plates, chips, search, stubs, seg, dialog.
 * Designed in the same language (S3.2): fields, notices, prose, accordion, info cards, steps,
 * status pills, gate + cookie banner, data tables. */

/* ---------- buttons ---------- */
.btn { --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h); padding: 0 22px; border-radius: var(--radius-pill); font: 600 15px/1 var(--font-body); letter-spacing: .01em; white-space: nowrap; transition: transform .2s var(--ease-spring), background-color .2s, box-shadow .2s, border-color .2s, color .2s, opacity .2s; }
.btn .icon { width: 18px; height: 18px; }
.btn--gold { background: var(--color-brand); color: var(--color-ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand-hi) 60%, transparent) inset, 0 8px 22px -8px rgba(212,175,55,.6); overflow: hidden; }
.btn--gold::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.btn--gold:hover::before { transform: translateX(120%); }
.btn--gold:hover { background: var(--color-brand-hi); transform: translateY(-2px); box-shadow: 0 0 0 1px var(--color-brand-hi) inset, 0 14px 30px -10px rgba(212,175,55,.75); }
.btn--ghost { background: color-mix(in srgb, var(--color-surface-1) 70%, transparent); color: var(--color-text); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand) 55%, var(--color-border)) inset; }
.btn--ghost:hover { background: color-mix(in srgb, var(--color-brand) 14%, var(--color-surface-1)); transform: translateY(-2px); box-shadow: 0 0 0 1px var(--color-brand) inset; }
.btn--quiet { color: var(--color-muted); box-shadow: 0 0 0 1px var(--color-border) inset; }
.btn--quiet:hover { color: var(--color-text); box-shadow: 0 0 0 1px var(--color-muted) inset; }
.btn--danger { color: var(--color-error); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-error) 55%, transparent) inset; }
.btn--danger:hover { background: color-mix(in srgb, var(--color-error) 12%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn.is-busy { opacity: .75; pointer-events: none; }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn--xs { --h: 36px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--color-surface-2); box-shadow: 0 0 0 1px var(--color-border) inset; transition: background-color .2s, box-shadow .2s, transform .2s var(--ease-spring), opacity .2s; }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--color-surface-3); box-shadow: 0 0 0 1px var(--color-brand) inset; transform: translateY(-1px); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }
.textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font: 600 14px/1 var(--font-body); color: var(--color-brand-hi); transition: gap .2s, color .2s; }
.textlink .icon { width: 16px; height: 16px; }
.textlink:hover { gap: 10px; color: #fff; }
.link { color: var(--color-brand-hi); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
.link:hover { color: #fff; }

/* ---------- bulbs (signature 1) ---------- */
.bulbs { position: absolute; inset: 10px; pointer-events: none; z-index: 2; }
.bulbs i { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--bulb-on); box-shadow: var(--bulb-glow); opacity: .28; animation: chase 1.2s linear infinite; }
@keyframes chase { 0%, 30% { opacity: 1; transform: scale(1.15); } 36%, 100% { opacity: .26; transform: scale(.85); } }
.bulb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bulb-on); box-shadow: var(--bulb-glow); flex: none; }

/* ---------- kicker, legal line, age ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; align-self: start; padding: 7px 14px 7px 10px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--color-brand) 14%, var(--color-ink)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand) 45%, transparent) inset; font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--color-brand-hi); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bulb-on); box-shadow: var(--bulb-glow); }
.legal-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; font-size: 13.5px; color: var(--color-muted); }
.legal-line .icon { width: 16px; height: 16px; color: var(--color-brand); }
.legal-line span { display: inline-flex; align-items: center; gap: 6px; }
.age { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: var(--radius-xs); background: var(--color-ink); box-shadow: 0 0 0 1.5px var(--color-live) inset; font: 800 13px/1 var(--font-head); color: #fff; }

/* ---------- number plates (signature 3) ---------- */
.plates { display: flex; flex-wrap: wrap; gap: 10px; }
.plate { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: var(--radius-sm); background: linear-gradient(180deg, #1A1828, #0F0E19); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand) 40%, var(--color-border)) inset, var(--shadow-1); }
.digits { display: inline-flex; gap: 3px; }
.digits b { display: grid; place-items: center; width: 24px; height: 32px; border-radius: 5px; background: linear-gradient(180deg, #24213A 50%, #1A182B 50%); box-shadow: 0 0 0 1px #2F2C45 inset; font: 800 18px/1 var(--font-head); color: var(--color-brand-hi); font-variant-numeric: tabular-nums; }
.plate small { font: 600 11px/1.25 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); }

/* ---------- chips, toolbar, search, seg ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 18px; padding: 8px; border-radius: var(--radius-pill); background: var(--color-surface-1); box-shadow: 0 0 0 1px var(--color-border) inset; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); font: 600 14px/1 var(--font-body); color: var(--color-muted); transition: background-color .2s, color .2s, box-shadow .2s; }
.chip small { min-width: 22px; padding: 3px 6px; border-radius: var(--radius-pill); background: var(--color-surface-3); font: 600 11px/1 var(--font-body); color: var(--color-muted); font-variant-numeric: tabular-nums; text-align: center; transition: inherit; }
.chip:hover { color: var(--color-text); background: var(--color-surface-2); }
.chip:focus-visible, .seg button:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--color-brand-hi) inset; }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip[aria-current] { background: var(--color-brand); color: var(--color-ink); }
.chip[aria-pressed="true"] small, .chip[aria-selected="true"] small, .chip[aria-current] small { background: color-mix(in srgb, var(--color-ink) 18%, transparent); color: var(--color-ink); }
.search { position: relative; flex: 0 1 260px; }
.search .icon { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--color-muted); pointer-events: none; }
.search input { width: 100%; height: 40px; padding: 0 14px 0 38px; border: 0; border-radius: var(--radius-pill); background: var(--color-bg); color: var(--color-text); font: 500 14px/1 var(--font-body); box-shadow: 0 0 0 1px var(--color-border) inset; transition: box-shadow .2s; }
.search input::placeholder { color: #8F8CA3; }
.search input:hover { box-shadow: 0 0 0 1px #57536F inset; }
.search input:focus { outline: 0; box-shadow: 0 0 0 2px var(--color-brand) inset; }
.select { height: 40px; padding: 0 36px 0 14px; border: 0; border-radius: var(--radius-pill); background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5C3D4' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/16px; color: var(--color-text); font: 500 14px/1 var(--font-body); box-shadow: 0 0 0 1px var(--color-border) inset; appearance: none; cursor: pointer; }
.select:focus { outline: 0; box-shadow: 0 0 0 2px var(--color-brand) inset; }
.arrows { display: flex; gap: 8px; }
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--radius-pill); background: var(--color-surface-1); box-shadow: 0 0 0 1px var(--color-border) inset; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); font: 600 14px/1 var(--font-body); color: var(--color-muted); transition: background-color .2s, color .2s; }
.seg button:hover { color: var(--color-text); background: var(--color-surface-2); }
.seg button[aria-selected="true"] { background: var(--color-brand); color: var(--color-ink); }

/* ---------- shelf + ticket stubs (signature 2) ---------- */
.shelf { --w: 232px; display: grid; grid-auto-flow: column; grid-auto-columns: var(--w); gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 10px 2px 22px; scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; }
.shelf::-webkit-scrollbar { height: 6px; } .shelf::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 6px; }
.shelf-item { scroll-snap-align: start; min-width: 0; }
.grid-stubs { --w: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 18px; }
.grid-stubs .stub { --w: 196px; }
.stub { --w: 232px; scroll-snap-align: start; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); transition: transform .28s var(--ease-spring), filter .28s; }
.stub:hover, .stub:focus-within { transform: translateY(-6px); filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)) drop-shadow(0 0 14px rgba(212,175,55,.28)); }
.stub-in { position: relative; height: 100%; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--color-surface-2), var(--color-surface-1)); border-radius: var(--radius-md);
  -webkit-mask: radial-gradient(circle at 0 var(--notch, var(--w)), #0000 10px, #000 10.5px) 0 0/51% 100% no-repeat, radial-gradient(circle at 100% var(--notch, var(--w)), #0000 10px, #000 10.5px) 100% 0/51% 100% no-repeat;
  mask: radial-gradient(circle at 0 var(--notch, var(--w)), #0000 10px, #000 10.5px) 0 0/51% 100% no-repeat, radial-gradient(circle at 100% var(--notch, var(--w)), #0000 10px, #000 10.5px) 100% 0/51% 100% no-repeat; }
.stub-in::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px var(--color-border) inset; pointer-events: none; }
.stub-cover { position: relative; margin: 10px; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--color-surface-3); }
.stub-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.stub:hover .stub-cover img { transform: scale(1.05); }
.stub-flag { position: absolute; left: 8px; top: 8px; padding: 5px 8px; border-radius: var(--radius-pill); background: rgba(11,11,20,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 600 11px/1 var(--font-body); letter-spacing: .06em; color: var(--color-brand-hi); }
.stub-flag--new { color: #fff; background: #6D28D9; }
.stub-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; border-top: 2px dashed color-mix(in srgb, var(--color-border) 90%, #fff 10%); }
.stub-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 600 10.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--color-brand); }
.stub-meta .tnum { color: var(--color-dim); letter-spacing: .08em; }
.stub h3 { font: 700 15.5px/1.3 var(--font-head); letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.stub-prov { font-size: 13px; color: var(--color-muted); }
.stub-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 10px; }
.stub-act .btn { padding: 0 10px; }
.empty { grid-column: 1 / -1; width: min(100%, 560px); padding: 36px; border-radius: var(--radius-md); background: var(--color-surface-1); box-shadow: 0 0 0 1px var(--color-border) inset; color: var(--color-muted); }
.empty strong { display: block; color: var(--color-text); font: 700 17px/1.3 var(--font-head); margin-bottom: 6px; }

/* horizontal ticket (live tables) */
.tables { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lstub { --cx: 88px; position: relative; display: grid; grid-template-columns: var(--cx) minmax(0, 1fr) auto; align-items: center; min-height: 88px; background: linear-gradient(90deg, var(--color-surface-2), var(--color-surface-1)); border-radius: var(--radius-md); filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); transition: transform .25s var(--ease-spring), filter .25s;
  -webkit-mask: radial-gradient(circle at var(--cx) 0, #0000 9px, #000 9.5px) 0 0/100% 51% no-repeat, radial-gradient(circle at var(--cx) 100%, #0000 9px, #000 9.5px) 0 100%/100% 51% no-repeat;
  mask: radial-gradient(circle at var(--cx) 0, #0000 9px, #000 9.5px) 0 0/100% 51% no-repeat, radial-gradient(circle at var(--cx) 100%, #0000 9px, #000 9.5px) 0 100%/100% 51% no-repeat; animation: inR .45s var(--ease-out) backwards; }
@keyframes inR { from { opacity: 0; transform: translateX(14px); } }
.lstub:hover { transform: translateX(-4px); }
.lstub:hover .lstub-body h3 { color: var(--color-brand-hi); }
.lstub img { width: 64px; height: 64px; margin-left: 12px; border-radius: 10px; object-fit: cover; }
.lstub-body { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 14px 12px 16px; border-left: 2px dashed color-mix(in srgb, var(--color-border) 90%, #fff 10%); min-width: 0; }
.lstub-body h3 { font: 700 15px/1.25 var(--font-head); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.lstub-body p { display: block; font-size: 12.5px; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lstub-body p i { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.lstub-body p i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); flex: none; }
.lstub .btn { margin-right: 14px; }

/* ---------- info cards, steps ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.card { position: relative; padding: 24px; border-radius: var(--radius-md); background: linear-gradient(180deg, var(--color-surface-2), var(--color-surface-1)); box-shadow: 0 0 0 1px var(--color-border) inset, var(--shadow-2); transition: transform .28s var(--ease-spring), box-shadow .28s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand) 55%, var(--color-border)) inset, var(--shadow-3); }
.card-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--color-brand) 14%, var(--color-ink)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand) 40%, transparent) inset; color: var(--color-brand-hi); margin-bottom: 16px; }
.card-ico .icon { width: 22px; height: 22px; }
.card h3 { font: 700 18px/1.3 var(--font-head); letter-spacing: 0; }
.card p { margin-top: 8px; color: var(--color-muted); font-size: 15px; }
.card .textlink { margin-top: 10px; }
.steps { counter-reset: step; display: grid; gap: 14px; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px; border-radius: var(--radius-md); background: var(--color-surface-1); box-shadow: 0 0 0 1px var(--color-border) inset; }
.step-n { display: grid; place-items: center; height: 56px; border-radius: 12px; background: linear-gradient(180deg, #24213A 50%, #1A182B 50%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand) 40%, var(--color-border)) inset; font: 800 22px/1 var(--font-head); color: var(--color-brand-hi); font-variant-numeric: tabular-nums; }
.step h2, .step h3 { font: 700 19px/1.3 var(--font-head); letter-spacing: 0; }
.step p { margin-top: 8px; color: var(--color-muted); }
.step p + p { margin-top: 8px; }

/* ---------- status pills, notices ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font: 600 12px/1 var(--font-body); background: var(--color-surface-3); color: var(--color-muted); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--ok { color: var(--color-success); background: color-mix(in srgb, var(--color-success) 14%, transparent); }
.pill--wait { color: var(--color-warning); background: color-mix(in srgb, var(--color-warning) 14%, transparent); }
.pill--no { color: var(--color-error); background: color-mix(in srgb, var(--color-error) 14%, transparent); }
.pill--live { color: #fff; background: color-mix(in srgb, var(--color-live) 30%, transparent); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-brand) 8%, var(--color-surface-1)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand) 35%, var(--color-border)) inset; color: var(--color-muted); font-size: 14.5px; }
.notice .icon { width: 20px; height: 20px; color: var(--color-brand); margin-top: 2px; }
.notice strong { color: var(--color-text); }
.notice--warn { background: color-mix(in srgb, var(--color-live) 9%, var(--color-surface-1)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-live) 40%, var(--color-border)) inset; }
.notice--warn .icon { color: var(--color-live); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field__label { font: 600 13.5px/1.3 var(--font-body); color: var(--color-muted); }
.field__hint { font-size: 12.5px; color: var(--color-dim); }
.field input:not([type="checkbox"]):not([type="radio"]):not(.visually-hidden), .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--radius-sm); background: var(--color-bg); color: var(--color-text); font: 500 15px/1.3 var(--font-body); box-shadow: 0 0 0 1px var(--color-border) inset; transition: box-shadow .2s, background-color .2s; }
.field select { appearance: none; padding-right: 40px; background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5C3D4' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/16px; }
.field textarea { min-height: 140px; padding-block: 12px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7E7B94; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: 0 0 0 1px #57536F inset; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; box-shadow: 0 0 0 2px var(--color-brand) inset; }
.field [aria-invalid="true"] { box-shadow: 0 0 0 2px var(--color-error) inset !important; }
.field__error { color: var(--color-error); font-size: 13px; }
.field--check { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-brand); cursor: pointer; }
.field--check .field__label { color: var(--color-muted); font-weight: 500; font-size: 14px; }
.field--check .field__error { grid-column: 2; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--color-bg); box-shadow: 0 0 0 1px var(--color-border) inset; font: 600 14px/1 var(--font-body); color: var(--color-muted); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.radios input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radios label:has(input:checked) { background: var(--color-brand); color: var(--color-ink); box-shadow: none; }
.radios label:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.form__error { padding: 12px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--color-error) 12%, transparent); color: var(--color-error); font-size: 14px; }
.form__done { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-success) 10%, var(--color-surface-1)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-success) 40%, transparent) inset; }
.form__done .icon { width: 22px; height: 22px; color: var(--color-success); margin-top: 1px; }
.form__done strong { display: block; font: 700 16px/1.3 var(--font-head); }
.form__done p { margin-top: 4px; color: var(--color-muted); font-size: 14.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px !important; }
.pw-toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: var(--color-muted); transition: color .2s, background-color .2s; }
.pw-toggle:hover { color: var(--color-text); background: var(--color-surface-2); }
.pw-toggle .icon { width: 18px; height: 18px; }
.meter { height: 6px; border-radius: 6px; background: var(--color-surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--color-brand); transition: width .3s var(--ease-out), background-color .3s; }

/* ---------- dialog / modal ---------- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; background: rgba(6,6,12,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.modal.is-open { opacity: 1; }
.dialog { position: relative; width: min(100%, 440px); max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px 26px 24px; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--color-surface-2), var(--color-surface-1)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand) 40%, var(--color-border)) inset, var(--shadow-3); text-align: center; transform: translateY(14px) scale(.97); transition: transform .3s var(--ease-spring); }
.modal.is-open .dialog { transform: none; }
.dialog .bulbs { inset: 8px; }
.dialog .bulbs i { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
.dialog-x { position: absolute; right: 14px; top: 14px; z-index: 3; width: 40px; height: 40px; }
.dialog-game { display: flex; align-items: center; gap: 12px; margin: 6px auto 18px; padding: 8px 14px 8px 8px; width: max-content; max-width: 100%; border-radius: var(--radius-pill); background: var(--color-ink); box-shadow: 0 0 0 1px var(--color-border) inset; text-align: left; }
.dialog-game img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.dialog-game strong { display: block; font: 700 14px/1.2 var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-game small { color: var(--color-muted); font-size: 12px; }
.dialog-game div { min-width: 0; }
.dialog-ico { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: color-mix(in srgb, var(--color-live) 16%, var(--color-ink)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-live) 50%, transparent) inset; color: var(--color-live); }
.dialog-ico .icon { width: 26px; height: 26px; }
.dialog h2 { font-size: 1.45rem; }
.dialog p { margin-top: 8px; color: var(--color-muted); font-size: 14.5px; }
.dialog-act { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.dialog-note { margin-top: 14px; font-size: 12px; color: var(--color-dim); }
.dialog--wide { width: min(100%, 560px); text-align: left; }

/* age gate */
.gate { z-index: var(--z-gate); background: rgba(6,6,12,.9); }
.gate .dialog { text-align: center; }
.gate .age-big { display: inline-grid; place-items: center; width: 72px; height: 72px; margin: 6px auto 16px; border-radius: 50%; background: var(--color-ink); box-shadow: 0 0 0 2px var(--color-live) inset, 0 0 24px -4px rgba(240,93,108,.6); font: 800 24px/1 var(--font-head); }
.gate-act { display: grid; gap: 10px; margin-top: 22px; }
.gate-act form { display: contents; }

/* cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-banner); max-width: 760px; margin-inline: auto; padding: 20px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--color-surface-2) 96%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand) 40%, var(--color-border)) inset, var(--shadow-3); transform: translateY(20px); opacity: 0; transition: transform .35s var(--ease-spring), opacity .25s; }
.cookie.is-open { transform: none; opacity: 1; }
.cookie h2 { display: flex; align-items: center; gap: 8px; font: 700 16px/1.3 var(--font-head); }
.cookie h2 .icon { width: 20px; height: 20px; color: var(--color-brand); }
.cookie p { margin-top: 8px; font-size: 14px; color: var(--color-muted); }
.cookie-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cookie-prefs { display: grid; gap: 10px; margin-top: 14px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--color-bg); box-shadow: 0 0 0 1px var(--color-border) inset; }
.toggle-row strong { display: block; font-size: 14px; } .toggle-row small { color: var(--color-dim); font-size: 12.5px; }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 26px; background: var(--color-surface-3); box-shadow: 0 0 0 1px var(--color-border) inset; transition: background-color .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease-spring); }
.switch input:checked + span { background: var(--color-brand); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { box-shadow: var(--focus-ring); }

/* ---------- accordion (FAQ) ---------- */
.acc { display: grid; gap: 10px; }
.acc-item { border-radius: var(--radius-md); background: var(--color-surface-1); box-shadow: 0 0 0 1px var(--color-border) inset; transition: box-shadow .2s; }
.acc-item:has([aria-expanded="true"]) { box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand) 50%, var(--color-border)) inset; }
.acc-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; text-align: left; font: 700 16px/1.35 var(--font-head); transition: color .2s; }
.acc-q:hover { color: var(--color-brand-hi); }
.acc-q .icon { width: 20px; height: 20px; color: var(--color-brand); transition: transform .3s var(--ease-out); }
.acc-q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out); }
.acc-a.is-open { grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s .3s; }
.acc-a.is-open > div { visibility: visible; transition-delay: 0s; }
.acc-a .acc-body { padding: 0 20px 20px; color: var(--color-muted); }
.acc-a .acc-body p + p { margin-top: 10px; }
.acc-body a:not(.btn) { color: var(--color-brand-hi); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.acc-body a:not(.btn):hover { color: #fff; }

/* ---------- prose (legal / content pages) ---------- */
.prose { min-width: 0; }
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: 84px; padding: 18px; border-radius: var(--radius-md); background: var(--color-surface-1); box-shadow: 0 0 0 1px var(--color-border) inset; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; }
.toc h2 { font: 700 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--color-brand); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; line-height: 1.35; color: var(--color-muted); transition: background-color .2s, color .2s; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--color-dim); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--color-surface-2); color: var(--color-text); }
.toc a.is-active { background: color-mix(in srgb, var(--color-brand) 14%, transparent); color: var(--color-brand-hi); }
.prose { max-width: 78ch; color: var(--color-muted); font-size: 16px; }
.prose > * + *, .prose section > * + * { margin-top: 14px; }
.prose h2 { margin-top: 44px; scroll-margin-top: 84px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); color: var(--color-text); display: flex; align-items: baseline; gap: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose > section + section { margin-top: 48px; padding-top: 40px; border-top: 1px dashed color-mix(in srgb, var(--color-border) 80%, transparent); }
.prose h2 .n { font: 800 .8em/1 var(--font-head); color: var(--color-brand); font-variant-numeric: tabular-nums; }
.prose h3 { margin-top: 26px; font: 700 17px/1.35 var(--font-head); color: var(--color-text); letter-spacing: 0; }
.prose strong { color: var(--color-text); }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 6px; }
.prose ul li::marker { color: var(--color-brand); }
.prose a:not(.btn) { color: var(--color-brand-hi); text-decoration: underline; text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: #fff; }
.prose .notice { margin-top: 18px; }
.prose table, .data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--color-border) inset; }
.data th, .data td, .prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.data th, .prose th { font: 600 12px/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--color-brand); background: var(--color-surface-1); white-space: nowrap; }
.data td, .prose td { color: var(--color-muted); }
.data tr:last-child td, .prose tr:last-child td { border-bottom: 0; }
.updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--color-dim); }
.updated .icon { width: 15px; height: 15px; }

@media (max-width: 1024px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; max-height: none; } }
@media (max-width: 640px) {
  .toolbar { border-radius: var(--radius-md); flex-direction: column; align-items: stretch; }
  .search { flex: none; width: 100%; }
  .toolbar .chips { flex: none; width: 100%; }
  .shelf { --w: 204px; gap: 14px; }
  .shelf .stub { --w: 204px; }
  .grid-stubs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid-stubs .stub { --w: calc((100vw - 2 * var(--gutter) - 12px) / 2); }
  .grid-stubs .stub-body { padding: 12px; }
  .grid-stubs .stub h3 { font-size: 14px; }
  .stub-act { grid-template-columns: 1fr; }
  .lstub { --cx: 76px; }
  .lstub img { width: 56px; height: 56px; margin-left: 10px; }
  .lstub .btn { margin-right: 10px; padding: 0 12px; }
  .lstub .btn span { display: none; }
  .lstub-body h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .form-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .step-n { width: 56px; }
  .dialog-act { grid-template-columns: 1fr; }
  .cookie-act .btn { flex: 1 1 100%; }
}
