@layer reset, base, components;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 90px; }
  body, h1, h2, h3, p { margin: 0; }
  button, input, select { font: inherit; }
  button, a, input, select { -webkit-tap-highlight-color: transparent; }
  button, a { touch-action: manipulation; }
  button { cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  img, svg { display: block; max-width: 100%; }
  button { color: inherit; }
  [hidden] { display: none !important; }
}
@layer base {
  :root { --page: #140b0d; --panel: #241317; --panel-soft: #30191e; --line: #48272b; --gold: #efd191; --gold-bright: #ffebbe; --muted: #bfa5a8; --text: #fff5e9; --red: #b9142b; --radius: 14px; }
  body { background: var(--page); color: var(--text); font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.5; min-width: 300px; }
  button { border: 0; background: none; }
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }
  ::selection { background: #e4ba6a; color: #23090c; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .skip { position: fixed; z-index: 100; left: 12px; top: -100px; padding: 12px 20px; background: var(--gold); color: #320c12; border-radius: 8px; }
  .skip:focus { top: 12px; }
  .icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
  .icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
  .wrap { width: min(100% - 28px, 1200px); margin-inline: auto; }
  .eyebrow { color: var(--gold); text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
}
@layer components {
  .site-header { position: sticky; top: 0; z-index: 30; background: linear-gradient(110deg,#9a0719,#6f0712); border-bottom: 1px solid #dca45445; padding-top: env(safe-area-inset-top); }
  .header-inner { height: 66px; display: flex; align-items: center; gap: 7px; }
  .brand { flex: 0 0 auto; }
  .brand img { width: 127px; height: 44px; }
  .icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 8px; }
  .icon-button:hover { background: #ffffff12; }
  .header-inner > .icon-button { width: 44px; margin-left: -6px; }
  .header-actions { display: flex; align-items: center; margin-left: auto; gap: 6px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 19px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 700; line-height: 1.2; transition: background .18s, transform .18s, border-color .18s; }
  .btn:hover { transform: translateY(-1px); }
  .btn-gold { background: linear-gradient(120deg,#f8dfa5,#dfb566); color: #3e1015; border-color: #ffe6af; box-shadow: 0 3px 10px #2b000b30; }
  .btn-gold:hover { background: #ffe4ac; }
  .btn-outline { border-color: #d29d68; color: #fff0d4; background: #50080d30; }
  .btn-outline:hover { background: #ffffff0f; }
  .header-actions .btn { padding: 9px 12px; font-size: 12px; }
  .desktop-nav, .locale-link { display: none; }
  .site-footer { border-top: 1px solid var(--line); padding: 27px 0 30px; margin-top: 26px; color: var(--muted); font-size: 11px; }
  .footer-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
  .footer-brand { width: 134px; height: 42px; opacity: .85; }
  .age-badge { display: inline-flex; justify-content: center; align-items: center; border: 1px solid #8f6d55; color: var(--gold); border-radius: 50%; width: 37px; height: 37px; font-weight: 700; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 12px 0 10px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links a:hover { color: var(--gold); }
  .footer-note { max-width: 680px; line-height: 1.8; }
  .copyright { margin-top: 12px; font-size: 10px; opacity: .75; }
  .menu-dialog { position: fixed; inset: 0 auto 0 0; margin: 0; width: min(340px,90vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; padding: 20px; border: 0; border-right: 1px solid var(--line); background: #211115; color: var(--text); }
  dialog::backdrop { background: #070203c7; backdrop-filter: blur(4px); }
  body:has(dialog[open]) { overflow: hidden; }
  .menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
  .menu-top img { width: 170px; }
  .menu-dialog nav { display: grid; gap: 4px; }
  .menu-dialog nav a { display: flex; gap: 14px; align-items: center; min-height: 52px; border-bottom: 1px solid #ffffff08; }
  .menu-dialog nav .icon { color: var(--gold); }
  .menu-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .menu-legal { margin-top: 24px; color: var(--muted); font-size: 12px; }
  .menu-legal a { display: flex; align-items: center; min-height: 44px; }
  .page-header .header-inner { justify-content: space-between; }
  .back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--gold); font-size: 12px; }
  .account-main { max-width: 970px; margin: 28px auto 40px; padding: 0 16px; }
  .account-card { overflow: hidden; border: 1px solid var(--line); background: var(--panel); border-radius: 18px; }
  .account-art { min-height: 170px; position: relative; background: #6b0912 url('/assets/lobby/hero-cola.webp') 70% 50% / cover; }
  .account-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#3c0309e6,transparent); }
  .account-art-copy { position: relative; z-index: 1; padding: 28px; width: 60%; }
  .account-art-copy p { font: italic 29px/1.1 Georgia,serif; color: var(--gold-bright); }
  .account-content { padding: 27px 23px; }
  .account-content h1 { font-size: 27px; line-height: 1.15; margin: 9px 0 13px; letter-spacing: -.6px; }
  .account-content > p { color: var(--muted); font-size: 13px; line-height: 1.75; }
  .account-steps { display: grid; gap: 14px; padding: 0; margin: 24px 0; list-style: none; counter-reset: steps; }
  .account-steps li { counter-increment: steps; display: flex; align-items: center; gap: 12px; font-size: 13px; }
  .account-steps li::before { content: counter(steps); display: flex; justify-content: center; align-items: center; width: 30px; height: 30px; flex: 0 0 auto; background: #cda65c15; color: var(--gold); border: 1px solid #cda65c30; border-radius: 50%; font-weight: 700; }
  .account-primary { width: 100%; min-height: 48px; }
  .account-secondary { display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: center; margin-top: 11px; color: var(--muted); font-size: 12px; }
  .account-secondary a { color: var(--gold); display: inline-flex; align-items: center; min-height: 44px; }
  .account-secondary span { align-self: center; }
  .account-faq { margin: 24px 0; }
  .account-faq summary { min-height: 48px; padding: 12px 0; cursor: pointer; color: var(--gold); }
  .account-faq p { color: var(--muted); font-size: 13px; line-height: 1.75; }
  .legal-main { max-width: 780px; padding: 38px 20px 20px; margin-inline: auto; }
  .legal-main h1 { font-size: clamp(29px,5vw,42px); line-height: 1.18; margin: 12px 0 18px; letter-spacing: -.8px; }
  .legal-intro { color: #e1ccca; font-size: 16px; line-height: 1.8; }
  .legal-main section { padding-top: 27px; }
  .legal-main h2 { font-size: 19px; margin-bottom: 9px; }
  .legal-main section p, .legal-main section li { color: var(--muted); font-size: 14px; line-height: 1.9; }
  .legal-main ul { padding-left: 20px; }
  .legal-main a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
  .legal-callout { margin-top: 22px; padding: 18px 20px; border-left: 3px solid var(--gold); background: var(--panel); color: var(--gold-bright); line-height: 1.8; }
  .error-main { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 40px 20px; }
  .error-code { font: italic 100px/.9 Georgia,serif; color: var(--gold); margin-bottom: 25px; }
  .error-main h1 { font-size: 28px; margin-bottom: 12px; }
  .error-main p { color: var(--muted); max-width: 430px; margin: 0 auto 24px; }
  .error-main .btn { justify-self: center; }
}
@media (min-width: 700px) {
  .wrap { width: min(100% - 48px,1200px); }
  .brand img { width: 170px; height: 52px; }
  .header-inner { height: 78px; gap: 18px; }
  .header-actions .btn { padding: 10px 23px; font-size: 13px; }
  .locale-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: #f5dbc2; font-size: 12px; }
  .account-main { margin-top: 52px; }
  .account-card { display: grid; grid-template-columns: .85fr 1fr; }
  .account-art { background-position: 63% center; }
  .account-art-copy { padding: 36px; width: 85%; }
  .account-art-copy p { font-size: 39px; }
  .account-content { padding: 38px; }
  .legal-main { padding-top: 58px; }
  .footer-links { margin-top: 0; }
}
@media (min-width: 1000px) {
  .desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: 24px; }
  .desktop-nav a { min-height: 44px; display: flex; align-items: center; gap: 7px; font-size: 13px; opacity: .85; }
  .desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--gold-bright); opacity: 1; }
  .desktop-nav .icon { width: 18px; height: 18px; }
  .header-inner > .menu-toggle { display: none; }
}
@media (max-width: 359px) {
  .brand img { width: 110px; }
  .header-actions .btn { padding: 9px; }
  .header-inner { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
