/* Backyard Die website: shared tokens, nav, buttons and footer.
   Used by / (home), /support/ and /privacy/. The invite page (/r/) keeps its own styles on purpose. */
:root {
  --midnight: #13213A; --deep: #0B1426; --ink: #070F1C; --navy: #1D3557; --navy-lip: #0A1426;
  --steel: #2A4A78; --steel-light: #3A5E92;
  --trophy: #FFC93C; --trophy-lip: #D99A0B; --trophy-drop: #A86F00;
  --cup: #E5473F; --cup-lip: #A92C26; --yard: #2E9E4C; --yard-glow: #46C163;
  --sky: #3FA9F5; --sky-text: #6CC0FF;
  --cream: #FFF3DB; --paper: #FFFAEF; --paper-drop: #C9B48D; --fog: #A9B8D0; --ink2: #45556E;
  --gutter: 16px; --max: 1160px;
  --stripe: repeating-linear-gradient(90deg, var(--steel) 0 38px, var(--midnight) 38px 41px, var(--steel-light) 41px 70px, var(--midnight) 70px 72px);
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --body: Rubik, -apple-system, system-ui, sans-serif;
}
@media (min-width: 430px) { :root { --gutter: 20px; } }
@media (min-width: 900px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--midnight); color: var(--cream); }
body { font-family: var(--body); line-height: 1.55; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--sky-text); }
:focus-visible { outline: 3px solid var(--trophy); outline-offset: 3px; border-radius: 6px; }
.display { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--trophy); color: var(--midnight); padding: 10px 14px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.stripe { height: 8px; background: var(--stripe); }

/* ---------- Nav ---------- */
.nav { position: absolute; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 22px; line-height: 1; white-space: nowrap;
  text-shadow: 0 2px 0 var(--ink); }
.logo img { width: 30px; height: 30px; transform: rotate(-12deg); filter: drop-shadow(0 2px 0 rgba(7,15,28,.5)); }
.logo b { color: var(--trophy); font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  border-radius: 999px; text-shadow: 0 1px 2px rgba(7,15,28,.6); transition: background .15s; }
.nav-links a:hover { background: rgba(19,33,58,.45); }
.nav-links a[aria-current="page"] { background: rgba(19,33,58,.6); box-shadow: inset 0 -3px 0 var(--trophy); }
.nav-links .nav-cta { background: var(--trophy); color: var(--midnight); text-shadow: none; box-shadow: 0 3px 0 var(--trophy-lip); margin-left: 6px; font-family: var(--display);
  font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 17px; letter-spacing: .02em; }
.nav-links .nav-cta:hover { background: #FFD45E; }
.menu-btn { display: none; }
@media (max-width: 719px) {
  .menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
    background: rgba(19,33,58,.72); color: #fff; cursor: pointer; padding: 0; }
  .menu-btn svg { width: 22px; height: 22px; }
  .nav-links { position: absolute; top: calc(env(safe-area-inset-top) + 62px); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 2px;
    min-width: 210px; padding: 8px; background: var(--midnight); border: 1px solid rgba(255,255,255,.14); border-radius: 18px;
    box-shadow: 0 18px 40px rgba(7,15,28,.5); opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
    transition: opacity .15s, transform .15s, visibility 0s .15s; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .15s, transform .15s; }
  .nav-links a { padding: 0 14px; border-radius: 12px; text-shadow: none; }
  .nav-links .nav-cta { margin: 6px 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 16px;
  text-decoration: none; border: 0; cursor: pointer; transition: transform .08s ease-out, box-shadow .08s ease-out, background .15s; }
.btn-primary { background: var(--trophy); color: var(--midnight); box-shadow: inset 0 3px 0 rgba(255,255,255,.55), 0 6px 0 var(--trophy-lip), 0 12px 24px rgba(7,15,28,.3);
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 24px; letter-spacing: .03em; }
.btn-primary:hover { background: #FFD45E; }
.btn-primary:active { transform: translateY(5px); box-shadow: inset 0 3px 0 rgba(255,255,255,.55), 0 1px 0 var(--trophy-lip); }
.btn-ghost { background: rgba(19,33,58,.72); color: #fff; border: 2px solid rgba(255,255,255,.22); font-weight: 700; font-size: 16px; }
.btn-ghost:hover { background: rgba(19,33,58,.9); }

/* App Store button. "Coming soon" state until APP_STORE_URL is set (see /index.html). */
.store { min-height: 60px; padding: 0 22px 0 18px; border-radius: 16px; background: #000; color: #fff; border: 1.5px solid rgba(255,255,255,.35);
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; text-align: left; box-shadow: 0 10px 24px rgba(7,15,28,.3); }
.store svg { width: 26px; height: 31px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 500; line-height: 1.1; letter-spacing: .01em; }
.store strong { display: block; font-size: 23px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
a.store:hover { background: #1a1a1a; }
.store.soon { cursor: default; }
.store.soon small { color: var(--trophy); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: var(--fog); padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer .wrap { display: grid; gap: 24px; }
.footer .logo { font-size: 24px; }
.footer p { margin: 6px 0 0; max-width: 34ch; }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 4px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px 0 0; color: var(--cream); text-decoration: none; font-weight: 600; }
.footer nav a:hover { color: var(--trophy); }
.footer .fine { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
@media (min-width: 760px) { .footer .wrap { grid-template-columns: 1fr auto; align-items: start; } .footer .fine { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
