/* Lucky Shot — shared design system for every page.
   One dark theme. Gold is the only accent and means "act" or "found";
   red and blue appear only where they mean the game's target rings.
   Archivo carries everything (its width axis does the display face);
   Geist Mono is for numbers and readouts. Page-specific styles stay
   inline in each page. Bump ?v= in the pages' <link> after editing:
   Cloudflare caches this file. */

:root {
  --bg: #0a0b0e;
  --bg-2: #0e1014;
  --panel: #121419;
  --panel-2: #171a20;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.11);
  --line-3: rgba(255, 255, 255, 0.18);
  --ink: #f4f2ed;
  --ink-2: #b2b5be;
  --ink-3: #82868f;
  --gold: #f5d431;
  --gold-hi: #ffe680;
  --gold-lo: #d9a21e;
  --gold-ink: #1d1700;
  --gold-soft: rgba(245, 212, 49, 0.12);
  --red: #e5484d;
  --blue: #3d9be9;
  --felt: #16171b;
  --felt-hi: #212228;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(70% 520px at 50% -140px, rgba(245, 212, 49, 0.075), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, video, iframe { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button:disabled { cursor: default; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(245, 212, 49, 0.3); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  /* notches and rounded corners in landscape */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.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;
}

/* ---- type ---- */

.display {
  font-weight: 800;
  font-stretch: 116%;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-wrap: balance;
}

.mono {
  font-family: var(--mono);
  font-feature-settings: "tnum" 1, "zero" 1;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow-gold { color: var(--gold); }

.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(245, 212, 49, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s, color 0.15s;
}

.link:hover { color: var(--gold-hi); text-decoration-color: var(--gold); }

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.15s, border-color 0.15s, box-shadow 0.2s, filter 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active:not(:disabled) { transform: translateY(1px) scale(0.99); }

.btn svg { flex-shrink: 0; }

.btn-gold {
  color: var(--gold-ink);
  background: linear-gradient(180deg, #ffe676 0%, var(--gold) 52%, #ebbd22 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(120, 80, 0, 0.35),
    0 0 0 1px rgba(160, 110, 0, 0.55),
    0 10px 28px -10px rgba(245, 212, 49, 0.55);
}

.btn-gold:hover:not(:disabled) {
  filter: brightness(1.06) saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(120, 80, 0, 0.35),
    0 0 0 1px rgba(160, 110, 0, 0.6),
    0 14px 34px -10px rgba(245, 212, 49, 0.7);
}

.btn-gold:disabled { filter: saturate(0.4) brightness(0.8); }

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--line-3);
}

.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 13px; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 9px; gap: 7px; }
.btn-block { width: 100%; }

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  background: var(--panel-2);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -2px 0 rgba(255, 255, 255, 0.06);
}

/* ---- the brand mark ---- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand-mark { width: 26px; height: 26px; flex-shrink: 0; }

.wordmark {
  white-space: nowrap;
  font-size: 17px;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.025em;
  line-height: 1;
}

/* ---- header ---- */

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 7px 11px;
  border-radius: 8px;
  transition: color 0.15s, background-color 0.15s;
}

.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 7px 8px;
}

.nav-text:hover { color: var(--ink); }

.account { display: flex; align-items: center; gap: 8px; min-height: 34px; }

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(245, 212, 49, 0.3);
  white-space: nowrap;
}

/* account menu: one control on every screen width */

.menu { position: relative; }

.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { opacity: 0.6; transition: transform 0.2s var(--ease); }
.menu[open] > summary svg { transform: rotate(180deg); }

.menu-paid > summary { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(245, 212, 49, 0.35); background: var(--gold-soft); }

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: 240px;
  padding: 6px;
  background: var(--panel-2);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px -12px rgba(0, 0, 0, 0.85);
}

@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-panel { animation: menu-in 0.18s var(--ease); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
}

.menu-who {
  padding: 10px 10px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.menu-email {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--ink);
}

.menu-plan { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.menu-plan-paid { color: var(--gold); }

.menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--ink-2);
  text-align: left;
  border-radius: 9px;
}

.menu-item:hover, .menu-item:focus-visible { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.menu-item-gold { color: var(--gold); }
.menu-item-gold:hover { color: var(--gold-hi); }

@media (min-width: 820px) {
  :root { --gutter: 32px; }
  .nav { height: 72px; }
  .nav-links { display: flex; }
  .nav-text-m { display: none; }
}

/* ---- footer ---- */

.foot {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 140px);
}

.foot-grid {
  display: grid;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

.foot-brand p {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 14px;
  color: var(--ink-3);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--ink-2);
}

.foot-links a:hover { color: var(--ink); }

.foot-legal {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 72ch;
}

@media (min-width: 820px) {
  .foot-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .foot-legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); max-width: none; }
}

/* ---- flash toast ---- */

.flash {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  max-width: min(92vw, 460px);
  transform: translateX(-50%);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  background: var(--panel-2);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -8px rgba(0, 0, 0, 0.7);
}

@media (prefers-reduced-motion: no-preference) {
  .flash { animation: flash-in 0.35s var(--ease); }
  @keyframes flash-in { from { opacity: 0; transform: translate(-50%, 10px); } }
}

/* ---- sign-in sheet ---- */

.login-overlay[hidden] { display: none; }

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.login-sheet {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px 22px;
  background: var(--panel);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -10px rgba(0, 0, 0, 0.8);
}

@media (prefers-reduced-motion: no-preference) {
  .login-sheet { animation: sheet-in 0.3s var(--ease); }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
}

.login-sheet h2 {
  font-size: 24px;
  font-weight: 800;
  font-stretch: 114%;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.login-sub { font-size: 14px; color: var(--ink-2); margin-top: -6px; }

.login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  border-radius: 8px;
}

.login-close:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1f;
  background: #fff;
  border-radius: 11px;
  transition: background-color 0.15s;
}

.google-btn:hover { background: #ececec; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.login-divider::before, .login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-2);
}

.login-email-form { display: flex; flex-direction: column; gap: 10px; }

.field {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-2);
  border: 0;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.15s;
}

.field::placeholder { color: var(--ink-3); }
.field:focus { outline: none; box-shadow: inset 0 0 0 1px var(--gold-lo), 0 0 0 4px rgba(245, 212, 49, 0.12); }

.login-note { font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* ---- long-form pages: guide, FAQ, privacy, terms ---- */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
}

.doc-head {
  padding-bottom: 32px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.doc-head .eyebrow { margin-bottom: 14px; }

.doc-head h1 { font-size: clamp(34px, 6vw, 52px); }

.doc-head .lede {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 56ch;
}

.prose { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  margin-top: 2.4em;
  font-size: 21px;
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  scroll-margin-top: 24px;
}

.prose h2 + * { margin-top: 0.6em; }

.prose strong { color: var(--ink); font-weight: 600; }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(245, 212, 49, 0.55);
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--gold-hi); text-decoration-color: var(--gold); }

.prose ol, .prose ul { display: flex; flex-direction: column; gap: 10px; }
.prose li { position: relative; padding-left: 30px; }

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; }

.prose ol > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.18em;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--gold);
}

.callout {
  padding: 16px 18px;
  font-size: 15px;
  color: var(--ink-2);
  background: var(--panel);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* FAQ entries: question, answer, hairline between */
.qa { padding: 26px 0; border-bottom: 1px solid var(--line); }
.qa h2 { margin-top: 0; font-size: 19px; }
.qa p { margin-top: 10px; }

.doc-cta {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(245, 212, 49, 0.09), transparent 60%),
    var(--panel);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.doc-cta p { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.doc-cta span { display: block; font-size: 14px; font-weight: 400; color: var(--ink-3); }
