/* Components — moved from the approved mockup (b-night-liner.html) and extended
 * in its language for what the mockup did not draw (forms, overlays, tables,
 * accordion, toast, status). Tokens only; numbers outside tokens are local
 * geometry of a component (notch radius, stub width) and named in place. */

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: var(--r-pill);
  font: 600 .95rem/1 var(--font-body); letter-spacing: -.005em; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur), color var(--dur);
}
.btn--gold, .btn--primary {
  background: var(--color-brand); color: var(--color-brand-ink);
  box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 10px 24px -12px color-mix(in oklch, var(--color-brand) 70%, transparent);
}
.btn--gold:hover, .btn--primary:hover { transform: translateY(-2px); background: var(--color-brand-hover); }
.btn--gold::after, .btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--gold:hover::after, .btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { color: var(--color-text); background: rgb(16 24 39 / .35); border: 1px solid rgb(255 255 255 / .38); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--color-text); background: rgb(16 24 39 / .55); transform: translateY(-2px); }
.btn--line { color: var(--color-text); border: 1px solid var(--hair-2); background: var(--surface-2); }
.btn--line:hover { border-color: var(--hair-gold); transform: translateY(-2px); }
.btn--danger { color: var(--color-error); border: 1px solid color-mix(in oklch, var(--color-error) 45%, transparent); background: var(--tint-error); }
.btn--danger:hover { transform: translateY(-2px); border-color: var(--color-error); }
.btn--sm { --h: 44px; padding: 0 16px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
  color: var(--color-text-2); border: 1px solid var(--hair);
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.icon-btn:hover { color: var(--color-text); border-color: var(--hair-gold); background: var(--tint-gold); }

.link { color: var(--color-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--color-brand-hover); }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--color-text); font-weight: 600; }
.more:hover { color: var(--color-brand); }
.more .icon { transition: transform var(--dur) var(--ease); }
.more:hover .icon { transform: translateX(3px); }

/* ---------- pills (gold = action, teal = live/available) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font: 600 .72rem/1 var(--font-body); letter-spacing: .02em; white-space: nowrap;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill--live { color: var(--color-accent); background: var(--tint-teal); box-shadow: 0 0 0 1px color-mix(in oklch, var(--color-accent) 30%, transparent) inset; }
.pill--live i { animation: pulse 2s var(--ease) infinite; }
.pill--soon { color: var(--color-text-2); background: rgb(192 203 216 / .08); box-shadow: 0 0 0 1px var(--hair) inset; }
.pill--gold { color: var(--color-brand); background: var(--tint-gold); box-shadow: 0 0 0 1px color-mix(in oklch, var(--color-brand) 28%, transparent) inset; }
.pill--error { color: var(--color-error); background: var(--tint-error); box-shadow: 0 0 0 1px color-mix(in oklch, var(--color-error) 30%, transparent) inset; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, currentColor 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- art-deco stepped corners (photo frames) ---------- */
.corners {
  position: absolute; inset: 12px; pointer-events: none; z-index: 3; --c: var(--hair-gold); --l: 22px;
  background:
    linear-gradient(var(--c),var(--c)) left top/var(--l) 1px, linear-gradient(var(--c),var(--c)) left top/1px var(--l),
    linear-gradient(var(--c),var(--c)) right top/var(--l) 1px, linear-gradient(var(--c),var(--c)) right top/1px var(--l),
    linear-gradient(var(--c),var(--c)) left bottom/var(--l) 1px, linear-gradient(var(--c),var(--c)) left bottom/1px var(--l),
    linear-gradient(var(--c),var(--c)) right bottom/var(--l) 1px, linear-gradient(var(--c),var(--c)) right bottom/1px var(--l);
  background-repeat: no-repeat;
}
.corners::before {
  content: ""; position: absolute; inset: 5px; --l: 10px;
  background:
    linear-gradient(var(--c),var(--c)) left top/var(--l) 1px, linear-gradient(var(--c),var(--c)) left top/1px var(--l),
    linear-gradient(var(--c),var(--c)) right top/var(--l) 1px, linear-gradient(var(--c),var(--c)) right top/1px var(--l),
    linear-gradient(var(--c),var(--c)) left bottom/var(--l) 1px, linear-gradient(var(--c),var(--c)) left bottom/1px var(--l),
    linear-gradient(var(--c),var(--c)) right bottom/var(--l) 1px, linear-gradient(var(--c),var(--c)) right bottom/1px var(--l);
  background-repeat: no-repeat;
}

/* ---------- "stop" eyebrow (route signature) ---------- */
.stop { display: flex; align-items: center; gap: 12px; font: 700 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--color-brand); }
.stop__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--color-brand); background: var(--color-bg); flex: none; box-shadow: 0 0 0 4px var(--tint-gold); }
.stop__line { height: 1px; flex: 0 1 72px; background: linear-gradient(90deg, var(--color-brand), transparent); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .2s; }
.is-in .stop__line, .stop.is-in .stop__line { transform: scaleX(1); }
.stop .muted { color: var(--color-text-3); letter-spacing: .08em; white-space: nowrap; }

/* ---------- logo: CSS lettering + route mark ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.6rem/1 var(--font-head); letter-spacing: -.035em; color: var(--color-text); white-space: nowrap; transition: font-size .35s var(--ease); }
.logo b { font-weight: 800; color: var(--color-brand); }
.logo__mark { position: relative; width: 34px; height: 10px; flex: none; }
.logo__mark::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: linear-gradient(90deg, var(--color-brand), var(--color-accent)); border-radius: 2px; }
.logo__mark i, .logo__mark i::after { position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; }
.logo__mark i { left: 0; background: var(--color-brand); }
.logo__mark i::after { content: ""; left: 25px; background: var(--color-bg); border: 2px solid var(--color-accent); }
.logo__mark em { position: absolute; top: 50%; left: 4px; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 1px rgb(255 255 255 / .6); animation: travel 3.2s var(--ease) infinite; }
@keyframes travel { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateX(22px); opacity: 0; } }

/* ---------- search with results ---------- */
.search { position: relative; width: 340px; max-width: 100%; }
.search__in { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface-1); box-shadow: 0 0 0 1px var(--hair-2) inset, var(--sh-1); color: var(--color-text-3); transition: box-shadow var(--dur); }
.search__in:focus-within { box-shadow: 0 0 0 1px var(--color-brand) inset, 0 0 0 4px var(--tint-gold); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--color-text); font: 500 .9rem var(--font-body); }
.search input::placeholder { color: var(--color-text-3); }
.search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.search kbd { font: 600 .7rem/1 var(--font-body); padding: 5px 7px; border-radius: 6px; color: var(--color-text-3); box-shadow: 0 0 0 1px var(--hair-2) inset; }
.search__res { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; list-style: none; margin: 0; padding: 6px; border-radius: var(--r-md); background: var(--surface-3); box-shadow: var(--sh-3), 0 0 0 1px var(--hair-2) inset; display: none; }
.search__res.is-open { display: block; animation: pop .25s var(--ease); }
.search__res li { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 10px; }
.search__res li:hover { background: rgb(255 255 255 / .05); }
.search__res img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; aspect-ratio: 1; }
.search__res .t { flex: 1; min-width: 0; font-size: .85rem; line-height: 1.25; }
.search__res .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search__res .t small { color: var(--color-text-3); }
.search__res .empty { padding: 12px; color: var(--color-text-2); font-size: .85rem; }

/* ---------- boarding-pass ticket (signature) ---------- */
.tkt { --stub: 100px; position: relative; display: flex; filter: drop-shadow(0 18px 24px rgb(4 8 16 / .55)) drop-shadow(0 1px 1px rgb(4 8 16 / .5)); transition: transform .35s var(--ease); }
.tkt--in { animation: tktIn .9s var(--ease-spring) both; animation-delay: calc(var(--d, 0) * 110ms + 250ms); }
@keyframes tktIn { from { opacity: 0; transform: translateY(46px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
.tkt:hover { transform: translateY(-6px); }
.tkt__body {
  position: relative; display: flex; flex: 1; min-height: 212px; border-radius: var(--r-md); overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in oklch, var(--tc, var(--color-brand)) 12%, transparent), transparent 55%),
    linear-gradient(160deg, var(--surface-3), var(--surface-2) 55%, var(--surface-1));
  box-shadow: 0 0 0 1px var(--hair-2) inset, 0 1px 0 rgb(255 255 255 / .06) inset;
  -webkit-mask: radial-gradient(circle 11px at calc(100% - var(--stub)) 0, #0000 98%, #000), radial-gradient(circle 11px at calc(100% - var(--stub)) 100%, #0000 98%, #000);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 11px at calc(100% - var(--stub)) 0, #0000 98%, #000), radial-gradient(circle 11px at calc(100% - var(--stub)) 100%, #0000 98%, #000);
  mask-composite: intersect;
}
.tkt__body::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .09) 50%, transparent 65%); transform: translateX(-100%); transition: transform .9s var(--ease); pointer-events: none; }
.tkt:hover .tkt__body::after { transform: translateX(100%); }
.tkt__main { flex: 1; min-width: 0; padding: 18px 18px 18px 20px; display: flex; flex-direction: column; }
.tkt__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tkt__line { font: 700 .68rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-3); }
.tkt__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-top: 16px; color: var(--tc, var(--color-brand)); background: color-mix(in oklch, var(--tc, var(--color-brand)) 14%, transparent); box-shadow: 0 0 0 1px color-mix(in oklch, var(--tc, var(--color-brand)) 30%, transparent) inset; }
.tkt__name { margin-top: 14px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.tkt__meta { padding-top: 14px; display: flex; gap: 16px; border-top: 1px solid var(--hair); margin-top: auto; }
.tkt__name + .tkt__meta, .tkt__name + p + .tkt__meta { margin-top: 16px; }
.tkt__meta div { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--color-text-2); }
.tkt__meta small { font: 600 .6875rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-3); }
.tkt__meta b { font: 800 1.05rem/1 var(--font-head); color: var(--color-text); font-variant-numeric: tabular-nums; }
.tkt__stub { width: var(--stub); flex: none; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 20px 8px 16px; background: linear-gradient(180deg, rgb(255 255 255 / .03), transparent); }
.tkt__stub::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: repeating-linear-gradient(180deg, var(--hair-gold) 0 5px, transparent 5px 10px); }
.tkt__stub small { font: 600 .6875rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-3); }
.route { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 800 1.02rem/1 var(--font-head); letter-spacing: .04em; }
.route .icon { width: 14px; height: 14px; color: var(--color-text-3); transform: rotate(90deg); }
.route span:last-child { color: var(--tc, var(--color-brand)); }
.tkt__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--color-brand); color: var(--color-brand-ink); transition: transform .35s var(--ease-spring); }
.tkt:hover .tkt__go { transform: translateX(3px) rotate(-45deg); }
.tkt__bar { position: absolute; left: 20px; right: calc(var(--stub) + 18px); top: 0; height: 2px; background: linear-gradient(90deg, var(--tc, var(--color-brand)), transparent); }

/* ---------- provider marquee ---------- */
.marquee { border-block: 1px solid var(--hair); background: var(--surface-0); overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--surface-0), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--surface-0), transparent); }
.marquee__row { display: flex; align-items: center; gap: 20px; }
.marquee__label { flex: none; position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 24px 0 var(--gutter); background: var(--surface-0); font: 700 .7rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--color-brand); box-shadow: 20px 0 20px var(--surface-0); }
.marquee__label .stop__dot { width: 10px; height: 10px; }
.marquee__track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font: 700 1.05rem/64px var(--font-head); letter-spacing: -.01em; color: var(--color-text-2); white-space: nowrap; }
.marquee__track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--color-brand); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- photo frame ---------- */
.frame { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; min-height: 560px; box-shadow: var(--sh-3), 0 0 0 1px var(--hair) inset; background: var(--surface-1); }
.frame picture, .frame > img { position: absolute; inset: 0; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); transform: scale(1.04); transition: transform 1.4s var(--ease); }
.frame:hover img { transform: scale(1.08); }
.frame__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgb(16 24 39 / .92), rgb(16 24 39 / .1) 55%, rgb(16 24 39 / .35)); }
.frame__cap { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 4; display: flex; flex-direction: column; gap: 12px; }
.frame__cap strong { font: 800 1.4rem/1.15 var(--font-head); letter-spacing: -.025em; }
.frame__cap p { color: var(--color-text-2); font-size: .9rem; max-width: 340px; }
.frame__tag { position: absolute; top: 28px; left: 28px; z-index: 4; }

/* ---------- segmented control ---------- */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-0); box-shadow: 0 0 0 1px var(--hair-2) inset, 0 1px 0 rgb(255 255 255 / .04); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--surface-3); box-shadow: 0 0 0 1px var(--hair-gold) inset, var(--sh-1); transition: left .35s var(--ease-spring), width .35s var(--ease-spring); }
.seg__btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-pill); font: 600 .88rem/1 var(--font-body); color: var(--color-text-2); white-space: nowrap; transition: color var(--dur); }
.seg__btn:hover, .seg__btn[aria-selected="true"], .seg__btn[aria-pressed="true"] { color: var(--color-text); }
.seg__btn span { font: 700 .7rem/1 var(--font-body); font-variant-numeric: tabular-nums; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: var(--r-pill); background: rgb(255 255 255 / .07); color: var(--color-text-2); }
.seg__btn[aria-selected="true"] span, .seg__btn[aria-pressed="true"] span { background: var(--color-brand); color: var(--color-brand-ink); }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--r-pill); font: 600 .84rem/1 var(--font-body); color: var(--color-text-2); background: var(--surface-1); box-shadow: 0 0 0 1px var(--hair-2) inset; transition: all var(--dur) var(--ease); white-space: nowrap; }
.chip:hover { color: var(--color-text); box-shadow: 0 0 0 1px var(--hair-gold) inset; }
.chip[aria-pressed="true"], .chip.is-on { background: var(--color-brand); color: var(--color-brand-ink); box-shadow: none; }
.chip small { font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }

.car-arrows { display: flex; gap: 8px; }
.car-arrows button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hair-2); background: var(--surface-1); transition: all var(--dur) var(--ease); }
.car-arrows button:hover:not(:disabled) { border-color: var(--color-brand); color: var(--color-brand); }
.car-arrows button:disabled { opacity: .35; cursor: default; }

/* ---------- game card ---------- */
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.gc { position: relative; padding: 10px 10px 14px; border-radius: var(--r-md); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); box-shadow: var(--sh-2), 0 0 0 1px var(--hair) inset; transition: transform .35s var(--ease), box-shadow .35s var(--ease); overflow: hidden; animation: cardIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.gc:hover { transform: translateY(-4px); box-shadow: var(--sh-3), 0 0 0 1px var(--hair-gold) inset; }
.gc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .1) 50%, transparent 65%); transform: translateX(-110%); transition: transform .8s var(--ease); pointer-events: none; }
.gc:hover::after { transform: translateX(110%); }
.gc__img { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; max-width: 300px; background: var(--surface-0); }
.gc__img img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.gc:hover .gc__img img { transform: scale(1.05); }
.gc__img .pill { position: absolute; top: 8px; left: 8px; background: rgb(11 17 29 / .78); backdrop-filter: blur(6px); }
.gc__img .pill + .pill { top: auto; bottom: 8px; }
.gc__name { margin-top: 12px; padding-inline: 4px; font: 700 .98rem/1.25 var(--font-head); letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.gc__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding-inline: 4px; }
.gc__prov { flex-basis: 100%; font-size: .78rem; color: var(--color-text-3); min-width: 0; }
.gc__acts { display: flex; gap: 6px; width: 100%; }
.gc__acts .gc__play { flex: 1; }
.gc__info { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--color-text-2); box-shadow: 0 0 0 1px var(--hair-2) inset; transition: color var(--dur), box-shadow var(--dur); }
.gc__info:hover { color: var(--color-brand); box-shadow: 0 0 0 1px var(--hair-gold) inset; }
.gc__info .icon { width: 16px; height: 16px; }
.gc__play { height: 40px; padding: 0 14px; font-size: .8rem; }
.gc--end { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 22px; background: transparent; box-shadow: none; border: 1px dashed var(--hair-gold); }
.gc--end strong { font: 800 1.1rem/1.2 var(--font-head); letter-spacing: -.02em; }
.gc--end p { font-size: .85rem; color: var(--color-text-2); }
.gc--end a { display: inline-flex; align-items: center; gap: 6px; color: var(--color-brand); font-weight: 600; font-size: .88rem; min-height: 44px; }

/* ---------- reward ticket (Bonus Shop / offers / promotions) ---------- */
.rt { position: relative; display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(170deg, var(--surface-3), var(--surface-2) 45%, var(--surface-1)); box-shadow: var(--sh-2), 0 0 0 1px var(--hair) inset; transition: transform .35s var(--ease), box-shadow .35s; animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.rt:hover { transform: translateY(-4px); box-shadow: var(--sh-3), 0 0 0 1px var(--hair-gold) inset; }
.rt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .07) 50%, transparent 65%); transform: translateX(-110%); transition: transform .8s var(--ease); pointer-events: none; }
.rt:hover::after { transform: translateX(110%); }
.rt__media { position: relative; aspect-ratio: 16/8; overflow: hidden; }
.rt__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.rt:hover .rt__media img { transform: scale(1.05); }
.rt__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface-3), transparent 70%); }
.rt__top { padding: 20px 20px 18px; flex: 1; }
.rt__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rt__code { font: 800 .78rem/1 var(--font-head); letter-spacing: .12em; color: var(--color-text-3); text-transform: uppercase; }
.rt__name { display: flex; align-items: center; gap: 12px; margin-top: 18px; font: 800 1.15rem/1.2 var(--font-head); letter-spacing: -.02em; }
.rt__name .ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--color-brand); background: var(--tint-gold); box-shadow: 0 0 0 1px color-mix(in oklch, var(--color-brand) 26%, transparent) inset; }
.rt.is-soon .rt__name .ic, .rt.is-off .rt__name .ic { color: var(--color-text-2); background: rgb(255 255 255 / .05); box-shadow: 0 0 0 1px var(--hair-2) inset; }
.rt.is-off { opacity: .72; }
.rt__desc { margin-top: 12px; font-size: .88rem; color: var(--color-text-2); line-height: 1.55; }
.rt__stub { position: relative; padding: 16px 20px 18px; background: rgb(0 0 0 / .16); display: grid; gap: 10px; }
.rt__stub::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--hair-gold) 0 5px, transparent 5px 10px); }
.rt__notch { position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--notch-bg, var(--color-bg)); box-shadow: 0 0 0 1px var(--hair) inset; }
.rt__notch--l { left: -11px; } .rt__notch--r { right: -11px; }
.rt__dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 0; font-size: .8rem; line-height: 1.4; }
.rt__dl dt { display: flex; align-items: center; gap: 6px; color: var(--color-text-3); font-weight: 600; }
.rt__dl dt .icon { width: 14px; height: 14px; }
.rt__dl dd { margin: 0; color: var(--color-text-2); }
.rt__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.rt__foot small { font-size: .74rem; color: var(--color-text-3); }
.rt__cost { font: 800 1rem/1 var(--font-head); color: var(--color-brand); font-variant-numeric: tabular-nums; }
.rt__cost small { font: 600 .7rem/1 var(--font-body); color: var(--color-text-3); margin-left: 4px; }

/* scroll track + rail indicator */
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 3); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 26px; margin-inline: -2px; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; min-width: 0; }
.rail-bar { position: relative; height: 2px; border-radius: 2px; background: var(--hair-2); margin-top: 2px; }
.rail-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 30%); transform: translateX(var(--x, 0)); background: var(--color-brand); border-radius: 2px; transition: transform .2s linear; }
.rail-bar i::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--color-bg); border: 2px solid var(--color-brand); }

/* ---------- panel / card ---------- */
.panel { position: relative; border-radius: var(--r-lg); background: linear-gradient(170deg, var(--surface-2), var(--surface-1)); box-shadow: var(--sh-2), 0 0 0 1px var(--hair) inset; padding: clamp(20px, 3vw, 32px); }
.panel--flat { background: var(--surface-1); box-shadow: 0 0 0 1px var(--hair) inset; }
.panel h2, .panel h3 { letter-spacing: -.02em; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel__head h2 { font-size: 1.35rem; font-weight: 800; }
.panel__head h3 { font-size: 1.1rem; font-weight: 800; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field__label { font: 600 .82rem/1.2 var(--font-body); color: var(--color-text-2); }
.field__hint { font-size: .78rem; color: var(--color-text-3); }
.field input:not([type=checkbox]):not([type=radio]):not(.visually-hidden),
.field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-md); border: 0;
  background: var(--surface-0); color: var(--color-text); font: 500 .95rem/1.4 var(--font-body);
  box-shadow: 0 0 0 1px var(--hair-2) inset; transition: box-shadow var(--dur);
}
.field textarea { min-height: 140px; resize: vertical; }
.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) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-text-3); }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: 0 0 0 1px var(--hair-gold) inset; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; box-shadow: 0 0 0 1px var(--color-brand) inset, 0 0 0 4px var(--tint-gold); }
.field [aria-invalid="true"] { box-shadow: 0 0 0 1px var(--color-error) inset !important; }
.field__error { font-size: .8rem; color: var(--color-error); display: flex; gap: 6px; align-items: center; }
.field__error::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-error); font-weight: 800; font-size: .7rem; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 4px 12px; }
.field--check .field__error { grid-column: 1 / -1; }
.field--check input { appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px; background: var(--surface-0); box-shadow: 0 0 0 1px var(--hair-2) inset; display: grid; place-items: center; cursor: pointer; transition: background var(--dur), box-shadow var(--dur); }
.field--check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--color-brand-ink); border-bottom: 2px solid var(--color-brand-ink); transform: rotate(-45deg) translate(1px,-1px) scale(0); transition: transform .2s var(--ease-spring); }
.field--check input:checked { background: var(--color-brand); box-shadow: none; }
.field--check input:checked::after { transform: rotate(-45deg) translate(1px,-1px) scale(1); }
.field--check .field__label { font-weight: 500; line-height: 1.45; color: var(--color-text-2); cursor: pointer; }
.field--check .field__label a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 2px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface-0); box-shadow: 0 0 0 1px var(--hair-2) inset; font: 600 .85rem/1 var(--font-body); color: var(--color-text-2); transition: all var(--dur); }
.radio input:checked + span { background: var(--tint-gold); color: var(--color-text); box-shadow: 0 0 0 1px var(--color-brand) inset; }
.radio input:focus-visible + span { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.radio img { height: 18px; width: auto; }
.form__error { padding: 12px 14px; border-radius: var(--r-md); background: var(--tint-error); color: var(--color-error); font-size: .88rem; box-shadow: 0 0 0 1px color-mix(in oklch, var(--color-error) 30%, transparent) inset; }
.form__success, .notice { padding: 14px 16px; border-radius: var(--r-md); background: var(--tint-teal); color: var(--color-text); font-size: .9rem; box-shadow: 0 0 0 1px color-mix(in oklch, var(--color-accent) 35%, transparent) inset; display: flex; gap: 10px; align-items: flex-start; }
.form__success .icon, .notice .icon { color: var(--color-accent); margin-top: 1px; }
.notice--gold { background: var(--tint-gold); box-shadow: 0 0 0 1px var(--hair-gold) inset; }
.notice--gold .icon { color: var(--color-brand); }
.notice--error { background: var(--tint-error); box-shadow: 0 0 0 1px color-mix(in oklch, var(--color-error) 30%, transparent) inset; }
.notice--error .icon { color: var(--color-error); }
.form__note { font-size: .78rem; color: var(--color-text-3); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- overlays (template app.js contract) ---------- */
.overlay { position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; place-items: center; padding: 16px; background: rgb(6 10 18 / .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s var(--ease); overflow-y: auto; }
.overlay.is-open { opacity: 1; }
.overlay__panel { position: relative; width: 100%; max-width: 460px; border-radius: var(--r-lg); background: linear-gradient(170deg, var(--surface-3), var(--surface-2)); box-shadow: var(--sh-3), 0 0 0 1px var(--hair-2) inset; overflow: hidden; transform: translateY(16px) scale(.96); transition: transform .4s var(--ease-spring); }
.overlay.is-open .overlay__panel { transform: none; }
.overlay__panel--wide { max-width: 640px; }
.overlay__top { padding: 30px 28px 24px; }
.overlay__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--color-brand); background: var(--tint-gold); box-shadow: 0 0 0 1px var(--hair-gold) inset; }
.overlay__ic .icon { width: 24px; height: 24px; }
.overlay__ic--teal { color: var(--color-accent); background: var(--tint-teal); box-shadow: 0 0 0 1px color-mix(in oklch, var(--color-accent) 35%, transparent) inset; }
.overlay__title { margin-top: 18px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.overlay__text { margin-top: 8px; color: var(--color-text-2); font-size: .92rem; }
.overlay__route { margin-top: 4px; font: 700 .7rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-3); }
.overlay__bottom { position: relative; padding: 20px 28px 26px; background: rgb(0 0 0 / .18); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.overlay__bottom::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--hair-gold) 0 5px, transparent 5px 10px); }
.overlay__bottom > .btn:only-child { grid-column: 1 / -1; }
.overlay__bottom small { grid-column: 1 / -1; text-align: center; color: var(--color-text-3); font-size: .75rem; margin-top: 4px; }
.overlay__x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.overlay__facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 18px 0 0; font-size: .88rem; }
.overlay__facts dt { color: var(--color-text-3); font-weight: 600; }
.overlay__facts dd { margin: 0; color: var(--color-text); }
.overlay__cover { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.overlay__cover img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex: none; }

/* ---------- accordion (FAQ) ---------- */
.acc { border-radius: var(--r-md); background: var(--surface-1); box-shadow: 0 0 0 1px var(--hair) inset; transition: box-shadow var(--dur); }
.acc + .acc { margin-top: 10px; }
.acc:has([aria-expanded="true"]) { box-shadow: 0 0 0 1px var(--hair-gold) inset; }
.acc__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 16px 20px; text-align: left; font: 700 1rem/1.35 var(--font-head); letter-spacing: -.01em; }
.acc__q:hover { color: var(--color-brand); }
.acc__q .icon { flex: none; transition: transform .35s var(--ease-spring); color: var(--color-brand); }
.acc__q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.acc__a > div { padding: 0 20px; }
.acc__a.is-open > div { padding-bottom: 20px; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--hair) inset; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--hair); vertical-align: top; }
.table th { font: 700 .7rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-3); background: var(--surface-0); white-space: nowrap; }
.table td { color: var(--color-text-2); }
.table td b { color: var(--color-text); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table .num { white-space: nowrap; }

/* ---------- empty state ---------- */
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; text-align: center; border-radius: var(--r-md); border: 1px dashed var(--hair-gold); color: var(--color-text-2); }
.empty-state .icon { width: 28px; height: 28px; color: var(--color-brand); }
.empty-state strong { font: 800 1.05rem/1.2 var(--font-head); color: var(--color-text); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); transform: translate(-50%, 30px); opacity: 0; display: flex; align-items: center; gap: 10px; max-width: min(520px, calc(100vw - 32px)); padding: 14px 18px; border-radius: var(--r-md); background: var(--surface-3); box-shadow: var(--sh-3), 0 0 0 1px var(--hair-2) inset; font-size: .9rem; transition: transform .35s var(--ease-spring), opacity .3s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast .icon { color: var(--color-accent); }
.toast--error .icon { color: var(--color-error); }

/* ---------- prose (legal & long text) ---------- */
.prose { max-width: var(--container-text); color: var(--color-text-2); font-size: 1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); font-weight: 800; letter-spacing: -.025em; color: var(--color-text); margin-top: 0; }
.prose h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-text); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--color-brand); }
.prose strong { color: var(--color-text); font-weight: 600; }
.prose a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--color-brand-hover); }
.prose table { width: 100%; border-collapse: collapse; font-size: .88rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--hair); }
.prose th { font: 700 .72rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-3); background: var(--surface-0); }

/* ---------- stat ---------- */
.stat { display: grid; gap: 6px; }
.stat small { font: 700 .6875rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-3); }
.stat b { font: 800 1.6rem/1 var(--font-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ---------- route timeline (streak / steps) ---------- */
.streak__line { position: relative; display: grid; grid-template-columns: repeat(7,1fr); margin-top: 16px; }
.streak__line::before { content: ""; position: absolute; left: calc(100%/14); right: calc(100%/14); top: 8px; height: 2px; background: linear-gradient(90deg, var(--hair-gold), var(--hair-2)); }
.st { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 .68rem/1 var(--font-body); color: var(--color-text-3); letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.st b { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-1); border: 2px solid var(--hair-2); }
.st em { font-style: normal; font-weight: 700; color: var(--color-text-2); letter-spacing: 0; text-transform: none; }
.st.is-done b { background: var(--color-brand); border-color: var(--color-brand); }
.st.is-today { color: var(--color-accent); }
.st.is-today b { border-color: var(--color-accent); background: var(--color-accent); animation: pulse 2s infinite; color: var(--color-accent); }

@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }

/* ---------- cookie banner + switches ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-overlay); display: flex; justify-content: center; pointer-events: none; animation: pop .5s var(--ease-spring) .6s both; }
.cookie__in { pointer-events: auto; width: 100%; max-width: 980px; display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: var(--r-lg); background: color-mix(in oklch, var(--surface-3) 94%, transparent); backdrop-filter: blur(14px); box-shadow: var(--sh-3), 0 0 0 1px var(--hair-gold) inset; }
.cookie__ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--color-brand); background: var(--tint-gold); }
.cookie p { flex: 1; font-size: .86rem; color: var(--color-text-2); }
.cookie__btns { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.ck-list { display: grid; gap: 8px; margin-top: 18px; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: var(--r-md); background: rgb(0 0 0 / .18); box-shadow: 0 0 0 1px var(--hair) inset; cursor: pointer; }
.ck-row b { display: block; font: 700 .95rem/1.3 var(--font-head); }
.ck-row small { display: block; margin-top: 2px; font-size: .8rem; color: var(--color-text-3); }
.switch { appearance: none; flex: none; position: relative; width: 48px; height: 28px; border-radius: var(--r-pill); background: var(--surface-0); box-shadow: 0 0 0 1px var(--hair-2) inset; cursor: pointer; transition: background var(--dur); }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-text-2); transition: transform .3s var(--ease-spring), background var(--dur); }
.switch:checked { background: var(--color-accent); box-shadow: none; }
.switch:checked::after { transform: translateX(20px); background: #fff; }
@media (max-width: 760px) {
  .cookie { bottom: calc(80px + env(safe-area-inset-bottom)); left: 10px; right: 10px; }
  .cookie__in { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie__ic { display: none; }
  .cookie__btns { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie__btns .btn--gold { grid-column: 1 / -1; order: -1; }
}
/* the ring sits on .search__in; the input itself also shows focus for keyboard users */
.search input:focus-visible { outline: none; box-shadow: 0 2px 0 0 var(--color-brand); }
