/* Cue Run: "Midnight Lounge" (matches the game's palette.gd) */
:root {
  --midnight: #0C1310;
  --booth: #16201B;
  --booth-line: #26332C;
  --felt: #1D5A45;
  --walnut: #3A2619;
  --brass: #E8B04B;
  --ember: #FF7A59;
  --chalk: #5AA9E6;
  --ivory: #F3EBDD;
  --muted: #A9B8AF;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--midnight);
  color: var(--ivory);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: var(--brass); }
a:hover { color: var(--ivory); }
.hl { color: var(--brass); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 760px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }

/* Header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 18px; }
.brand:hover { color: var(--ivory); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a, .site-footer nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .site-footer nav a:hover { color: var(--ivory); }
.site-footer { margin-top: auto; border-top: 1px solid var(--booth-line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 48px; }
.site-footer nav { display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
.copyright { font-size: 14px; color: var(--muted); }

/* App Store badge (Apple's official artwork) */
.badge { display: inline-block; line-height: 0; border-radius: 10px; }
.badge img { height: 54px; width: auto; }
.badge.small img { height: 44px; }

/* Phone frame around a cut-out game screen (images are 940x2042 screens) */
.phone {
  position: relative;
  width: min(100%, var(--phone-w, 340px));
  padding: 3.2%;
  background: #101413;
  border: 2px solid #4A524E;
  border-radius: 15% / 7%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.phone img { width: 100%; height: auto; aspect-ratio: 940 / 2042; object-fit: cover; border-radius: 12.5% / 5.8%; }
.glow { position: relative; display: flex; justify-content: center; }
.glow::before {
  content: ""; position: absolute; inset: -8% -25%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(29, 90, 69, 0.75), rgba(29, 90, 69, 0) 75%);
}
.glow.wood::before { background: radial-gradient(closest-side, rgba(58, 38, 25, 0.95), rgba(58, 38, 25, 0) 75%); }

/* Home: hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; padding-top: 32px; padding-bottom: 96px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
h1, h2 { margin: 0; font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.025em; }
.lede { margin: 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--muted); max-width: 30ch; }
.cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 8px; }
.cta span { font-size: 14px; color: var(--muted); }
.hero .phone { --phone-w: 360px; }

/* Home: features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; padding-bottom: 96px; }
.feature {
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  background: var(--booth); border: 1px solid var(--booth-line); border-radius: 20px; padding: 32px 28px 0;
}
.feature h2 { font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
/* The phone peeks up from the bottom of the card. */
.feature .shots { margin-top: auto; padding-top: 24px; height: 400px; display: flex; justify-content: center; gap: 12px; overflow: hidden; }
.feature .phone { --phone-w: 250px; align-self: flex-start; border-bottom: 0; box-shadow: none; }
.feature .shots.pair .phone { --phone-w: 175px; }
.feature .shots.pair .phone + .phone { margin-top: 36px; }

/* Home: collection */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; padding-bottom: 96px; }
.split .text { display: flex; flex-direction: column; gap: 20px; }
.split h2 { font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.split p { margin: 0; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; color: var(--muted); max-width: 32ch; }
.dots { display: flex; gap: 8px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; }

/* Home: club */
.club { margin-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; background: var(--booth); border: 1px solid var(--booth-line); border-radius: 20px; padding: clamp(28px, 5vw, 56px); }
.club div { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.club h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.club p { margin: 0; font-size: 18px; line-height: 1.55; }
.pill { padding: 12px 20px; border: 1px solid var(--booth-line); border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); background: var(--midnight); }

/* Text pages (privacy, terms, support) */
.doc { display: flex; flex-direction: column; gap: 22px; padding-top: 32px; padding-bottom: 80px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.doc h1 { font-weight: 800; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; color: var(--ivory); }
.doc h2 { font-family: var(--body); font-weight: 800; font-size: 18px; letter-spacing: 0; color: var(--ivory); }
.doc p { margin: 0; }
.doc strong { color: var(--ivory); }
.doc a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.email { align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: clamp(18px, 3vw, 24px); text-decoration: none; overflow-wrap: anywhere; }
.faq { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.faq div { background: var(--booth); border: 1px solid var(--booth-line); border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 520px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { gap: 40px; padding-bottom: 72px; }
  .features, .split { padding-bottom: 72px; }
  .club { margin-bottom: 72px; }
  .feature { padding: 26px 22px 0; }
  .feature .shots { height: 360px; }
}
