/* Page-level structure from mockup B: two-tier header (bar + sport chip rail),
 * mobile menu + bottom tab bar, footer with a full-width data band. */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--container-pad); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--alt { background: linear-gradient(180deg, var(--surface-0), var(--color-bg)); border-block: 1px solid var(--line); }

/* ── header ───────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: color-mix(in oklab, var(--color-bg) 84%, transparent); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); transition: box-shadow var(--dur-base); }
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgb(0 0 0 / .8); }
.bar { display: flex; align-items: center; gap: 18px; height: 68px; }

/* logo: raster lockup on a transparent background (brand_logo(), source in source/brand) */
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo__pic, .logo__pic img { display: block; width: 144px; height: 44px; }
.logo__pic img { transition: opacity var(--dur-fast) var(--ease); }
.logo:hover .logo__pic img { opacity: .88; }

.nav { display: flex; gap: 2px; }
.nav a { position: relative; display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-pill); font-size: .94rem; color: var(--color-muted); text-decoration: none; transition: color var(--dur-fast), background var(--dur-fast); }
.nav a:hover, .nav a[aria-current] { color: var(--color-text); background: var(--surface-1); }
.nav .live { width: 6px; height: 6px; border-radius: 50%; background: var(--color-live); animation: blink 1.4s infinite; }

.search { position: relative; flex: 1; max-width: 320px; margin-left: auto; }
.search__box { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 14px; border-radius: var(--radius-pill); background: var(--surface-1); border: 1px solid var(--line); color: var(--color-faint); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.search__box:focus-within { border-color: var(--color-brand); box-shadow: var(--focus-ring); }
.search__box input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--color-text); font-size: .9rem; }
.search__box input:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 4px; }
.search__box input::placeholder { color: var(--color-faint); }
.search__box kbd { font: 500 .72rem var(--font-mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); }
.search__list { position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 320px; max-height: 420px; overflow: auto; padding: 6px; border-radius: var(--radius-md); background: var(--surface-1); border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); }
.search__list a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--color-text); text-decoration: none; }
.search__list a span { font-size: .78rem; color: var(--color-faint); }
.search__list a:hover, .search__list a.is-active { background: var(--surface-2); }
.search__empty { padding: 14px 12px; color: var(--color-faint); font-size: .9rem; }

.actions { display: flex; align-items: center; gap: 8px; flex: none; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface-1); color: var(--color-text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.user-chip i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); font: 700 .8rem var(--font-mono); font-style: normal; }
.user-chip:hover { border-color: var(--color-brand); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-1); color: var(--color-text); place-items: center; cursor: pointer; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 12px; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }

@media (max-width: 1180px) { .nav, .search { display: none; } .burger { display: grid; } .actions { margin-left: auto; } }
@media (max-width: 560px) { .actions .btn--line { display: none; } .bar { gap: 10px; } .user-chip b { display: none; } .user-chip { padding-right: 6px; } }

/* ── mobile menu (sheet) ──────────────────────────────────────────────── */
.overlay--menu { place-items: stretch end; padding: 0; }
.overlay--menu .overlay__panel { width: min(100%, 380px); height: 100%; max-height: none; border-radius: 0; border-width: 0 0 0 1px; display: flex; flex-direction: column; gap: 20px; transform: translateX(30px); }
.overlay--menu.is-open .overlay__panel { transform: none; }
.mm__top { display: flex; justify-content: space-between; align-items: center; }
.mm__search .search { display: block; max-width: none; margin: 0; }
.mm__search .search__list { position: static; margin-top: 8px; box-shadow: none; min-width: 0; }
.mm__nav { display: grid; gap: 4px; }
.mm__nav a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 14px; border-radius: var(--radius-md); font: 600 1.1rem var(--font-display); color: var(--color-text); text-decoration: none; }
.mm__nav a:hover, .mm__nav a[aria-current] { background: var(--surface-2); }
.mm__nav a .icon { color: var(--color-faint); }
.mm__actions { display: grid; gap: 10px; margin-top: auto; }
.mm__note { font-size: .8rem; color: var(--color-faint); }

/* ── bottom tab bar (mobile as an app) ────────────────────────────────── */
.tabbar { display: none; }
@media (max-width: 820px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--surface-0) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; min-height: 52px; padding-top: 6px; border: 0; background: none; border-radius: var(--radius-sm); color: var(--color-faint); font: 600 .7rem var(--font-body); text-decoration: none; cursor: pointer; }
  .tabbar .icon { width: 22px; height: 22px; }
  .tabbar [aria-current] { color: var(--color-brand); }
  body { padding-bottom: 72px; }
}

/* ── footer ───────────────────────────────────────────────────────────── */
.site-footer { margin-top: var(--section-y); border-top: 1px solid var(--line); background: var(--surface-0); padding-block: 56px 32px; color: var(--color-muted); }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.ft-brand p { margin-top: 14px; font-size: .92rem; max-width: 340px; }
.ft-col h2 { font: 700 var(--fs-label)/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--color-faint); margin-bottom: 14px; }
.ft-col ul { display: grid; gap: 4px; }
.ft-col a { display: inline-block; padding: 5px 0; color: var(--color-muted); text-decoration: none; font-size: .94rem; }
.ft-col a:hover { color: var(--color-brand); }
.ft-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 40px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.ft-data div { padding: 14px 16px; background: var(--surface-0); }
.ft-data dt { font: 700 .68rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--color-faint); }
.ft-data dd { margin: 4px 0 0; color: var(--color-text); font-size: .9rem; }
.ft-pay { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; }
.ft-pay img { height: 30px; width: auto; padding: 6px 10px; border-radius: 8px; background: #fff; }
.ft-rg { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--surface-1); border: 1px solid var(--line); font-size: .88rem; }
.ft-rg .age { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--color-brand); color: var(--color-brand); font: 700 .95rem var(--font-mono); }
.ft-rg a { color: var(--color-brand); }
.ft-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--color-faint); }
.ft-bottom ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ft-bottom a { color: var(--color-muted); text-decoration: none; }
.ft-bottom a:hover { color: var(--color-brand); }
.ft-bottom .link-btn { color: var(--color-muted); font-weight: 400; text-decoration: none; font-size: .84rem; }
@media (max-width: 900px) { .ft-top { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } .ft-data { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ft-data { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ft-top { grid-template-columns: 1fr; } }

/* ── back to top ──────────────────────────────────────────────────────── */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-header); width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-1); color: var(--color-text); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-card); transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast); }
.to-top:hover { transform: translateY(-3px); border-color: var(--color-brand); }
@media (max-width: 820px) { .to-top { bottom: 84px; right: 14px; } }

/* ── cookie banner ────────────────────────────────────────────────────── */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-overlay); max-width: 980px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--surface-1); border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); }
.cookie p { font-size: .92rem; color: var(--color-muted); }
.cookie p a { color: var(--color-brand); }
.cookie__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__prefs { grid-column: 1 / -1; display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.cookie__row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 10px 0; }
.cookie__row b { display: block; color: var(--color-text); font-size: .95rem; }
.cookie__row span { font-size: .84rem; color: var(--color-faint); }
.switch { position: relative; flex: none; width: 46px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); transition: background var(--dur-fast); }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--dur-base) var(--ease); }
.switch input:checked + i { background: var(--color-accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:disabled + i { opacity: .6; }
.switch input:focus-visible + i { box-shadow: var(--focus-ring); }
@media (max-width: 820px) {
  .cookie { grid-template-columns: 1fr; bottom: 84px; max-height: calc(100dvh - 110px); overflow: auto; }
  .cookie__btns { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie__btns .btn:first-child { grid-column: 1 / -1; }
  .cookie__btns .btn { padding-inline: .8em; }
}

/* ── age gate ─────────────────────────────────────────────────────────── */
.overlay--gate { z-index: calc(var(--z-modal) + 10); background: rgb(6 10 13 / .88); }
.overlay--gate .overlay__panel { width: min(100%, 480px); text-align: left; }
.gate__age { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--color-brand); color: var(--color-brand); font: 700 1.2rem var(--font-mono); }
.gate__note { font-size: .82rem; color: var(--color-faint); margin-top: 14px; }
.gate-closed { max-width: 640px; margin: 80px auto; text-align: center; }

/* 320–374: the long wordmark yields to the mark, button padding gives way so the bar fits */
@media (max-width: 374px) { .bar .logo__pic, .bar .logo__pic img { width: 118px; height: 36px; } .actions .btn { padding: 0 .85em; } .bar { gap: 8px; } }
/* 1180–1400: the full nav, search and account share the bar */
@media (max-width: 1400px) { .search { max-width: 210px; } .nav a { padding: 0 9px; } .search__box kbd { display: none; } }
