/* Infinity Arcade site: the header shared by every page, and the landing page.
   The roadmap board's own styles are in roadmap/app.css. */

:root {
  --ia-ground: #130417;
  --ia-ground-2: #1b0620;
  --ia-ground-3: #0d0210;
  --ia-surface: #1e0824;
  --ia-line: #2c0b31;
  --ia-line-2: #3a1340;
  --ia-text: #fff3f8;
  --ia-soft: #e6cbd9;
  --ia-muted: #c9a9bb;
  --ia-pink: #f4468a;
  --ia-pink-btn: #d4145f;
  --ia-pink-deep: #a01348;
  --ia-plum: #5c0d33;
  --ia-accent: #ff8fbd;
  --ia-gold: #ffd23f;
  --ia-pixel: "Press Start 2P", ui-monospace, monospace;
  --ia-sans: "Chakra Petch", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ia-gutter: 24px;
}

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

.site-head {
  position: relative;
  z-index: 10;
  background: var(--ia-ground);
  border-bottom: 2px solid var(--ia-line);
}
.site-head-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px var(--ia-gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 16px;
}
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo img { display: block; width: 40px; height: 40px; }
.site-word { display: flex; flex-direction: column; gap: 5px; font: 12px/1 var(--ia-pixel); color: var(--ia-text); text-shadow: 2px 2px 0 var(--ia-plum); }
.site-word span:last-child { color: var(--ia-pink); }
.site-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: var(--ia-surface);
  border: 1px solid var(--ia-line-2);
}
.site-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--ia-soft);
  text-decoration: none;
  font: 10px/1 var(--ia-pixel);
}
.site-tabs a:hover { color: #ffffff; background: rgba(255, 143, 189, 0.1); }
.site-tabs a[aria-current="page"] { background: var(--ia-pink-btn); box-shadow: 0 3px 0 var(--ia-pink-deep); color: #ffffff; }
.site-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 2px solid var(--ia-pink);
  color: #ffffff;
  text-decoration: none;
  font: 10px/1 var(--ia-pixel);
}
.site-cta:hover { background: var(--ia-pink-btn); }
.site-head a:focus-visible, .landing a:focus-visible { outline: 2px solid var(--ia-accent); outline-offset: 3px; }

/* ---------- Landing page ---------- */

.landing {
  margin: 0;
  background: var(--ia-ground);
  color: var(--ia-text);
  font: 16px/1.5 var(--ia-sans);
  -webkit-text-size-adjust: 100%;
}
.landing * { box-sizing: border-box; }
.landing h1, .landing h2, .landing h3, .landing h4, .landing p { margin: 0; }
.landing a { color: var(--ia-accent); }
.landing a:hover { color: #ffffff; }
html:has(.landing) { scroll-behavior: smooth; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--ia-gutter); }
.px { font-family: var(--ia-pixel); font-weight: 400; }
.pink { color: var(--ia-pink); }
.kicker { font: 10px/1.2 var(--ia-pixel); color: var(--ia-pink); }

/* Hero */
.hero {
  overflow: hidden;
  background-color: var(--ia-ground);
  background-image:
    linear-gradient(rgba(255, 143, 189, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 143, 189, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 72px 88px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--ia-line);
  border: 1px solid #4a1650;
  font: 10px/1.2 var(--ia-pixel);
  color: var(--ia-accent);
}
.badge::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--ia-gold); }
.hero h1 { font: 400 clamp(24px, 3.2vw, 42px)/1.3 var(--ia-pixel); text-shadow: 4px 4px 0 var(--ia-plum); }
.hero h1 span { display: block; }
.hero h1 b { font-weight: 400; color: var(--ia-pink); }
.hero-lede { max-width: 31em; font-size: 20px; color: var(--ia-soft); }

.stores { display: flex; flex-wrap: wrap; gap: 16px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 22px 10px 18px;
  border-radius: 14px;
  text-decoration: none;
}
.store svg { flex: none; width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; gap: 7px; }
.store small { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; line-height: 1; }
.store b { font: 400 14px/1 var(--ia-pixel); }
.landing .store-get { background: var(--ia-pink-btn); box-shadow: 0 5px 0 var(--ia-pink-deep); color: #ffffff; }
.landing .store-get:hover { color: #ffffff; box-shadow: 0 5px 0 var(--ia-pink-deep), 0 0 26px rgba(244, 70, 138, 0.55); }
.landing .store-get:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ia-pink-deep); }
.store-soon { border: 2px dashed #7a3470; color: var(--ia-soft); }
.on-pink .store-get { background: var(--ia-ground); box-shadow: 0 5px 0 var(--ia-plum); }
.on-pink .store-get:hover { box-shadow: 0 5px 0 var(--ia-plum), 0 0 26px rgba(19, 4, 23, 0.5); }
.on-pink .store-get:active { box-shadow: 0 2px 0 var(--ia-plum); }
.on-pink .store-soon { border-color: rgba(255, 255, 255, 0.75); color: #ffffff; }

.stats { display: flex; flex-wrap: wrap; gap: 20px 40px; padding-top: 8px; }
.stats div { display: flex; flex-direction: column; gap: 10px; }
.stats b { font: 400 22px/1 var(--ia-pixel); }
.stats span { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; color: var(--ia-accent); }
.stats .gold { color: var(--ia-gold); }

/* Phones. The screens are real captures from the game (360x640, saved at 2x). */
.phone {
  position: relative;
  border-radius: 20px;
  padding: 6px;
  background: linear-gradient(160deg, #4a2550 0%, #1a0820 35%, #0c0310 100%);
  box-shadow: 0 0 0 1px #000000, inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 32px rgba(0, 0, 0, 0.45);
}
.phone-screen { position: relative; overflow: hidden; border-radius: 15px; aspect-ratio: 9 / 16; background: #000000; }
.phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-lg { border-radius: 16% / 9%; padding: 4%; box-shadow: 0 0 0 1px #000000, inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 36px 64px rgba(0, 0, 0, 0.6); }
.phone-lg .phone-screen { border-radius: 12% / 6.75%; }
.phone-lg .phone-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 32%); }
.phone-lg::before, .phone-lg::after { content: ""; position: absolute; width: 3px; background: #3a1a40; }
.phone-lg::before { right: -3px; top: 22%; height: 11%; border-radius: 0 3px 3px 0; }
.phone-lg::after { left: -3px; top: 18%; height: 14%; border-radius: 3px 0 0 3px; }

.fan-col { flex: 1 1 420px; min-width: 0; }
.fan { position: relative; width: 100%; max-width: 560px; aspect-ratio: 560 / 620; margin: 0 auto; }
.fan .phone { position: absolute; }
.fan-left { left: 0; top: 13%; width: 41%; transform: rotate(-9deg); }
.fan-right { right: 0; top: 13%; width: 41%; transform: rotate(9deg); }
.fan-front {
  left: 24%;
  top: 0;
  width: 52%;
  z-index: 2;
  background: linear-gradient(160deg, #5a2c60 0%, #1a0820 35%, #0c0310 100%);
  box-shadow: 0 0 0 1px #000000, inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 44px 80px rgba(0, 0, 0, 0.65), 0 0 90px rgba(244, 70, 138, 0.28);
}

/* Ticker */
.ticker { overflow: hidden; padding: 16px 0; background: var(--ia-pink-btn); border-block: 3px solid var(--ia-pink-deep); }
.ticker-track { display: flex; width: max-content; animation: ia-scroll 70s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 24px; padding-right: 24px; white-space: nowrap; font: 14px/1 var(--ia-pixel); color: #ffffff; }
.ticker span::after { content: ""; width: 10px; height: 10px; background: var(--ia-gold); }
@keyframes ia-scroll { to { transform: translateX(-50%); } }

/* Games */
.games { padding-block: 96px; }
.games > .wrap { display: flex; flex-direction: column; gap: 56px; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.section-head h2 { font: 400 clamp(20px, 2.5vw, 34px)/1.4 var(--ia-pixel); text-shadow: 3px 3px 0 var(--ia-plum); }
.section-head h2 span { display: block; color: var(--ia-pink); }
.section-head p { font-size: 19px; color: var(--ia-soft); }
.group { display: flex; flex-direction: column; gap: 28px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-bottom: 20px; border-bottom: 2px solid var(--ia-line); }
.group-head h3 { font: 400 16px/1.4 var(--ia-pixel); }
.group-head p { max-width: 540px; color: var(--ia-muted); }
.cabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 36px 20px; }
.cab { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cab > div:last-child { display: flex; flex-direction: column; gap: 8px; }
.cab h4 { font: 400 11px/1.5 var(--ia-pixel); }
.cab p { font-size: 15px; line-height: 1.35; color: var(--ia-muted); }
.tag { align-self: flex-start; padding: 6px 8px; border-radius: 6px; background: var(--ia-line); font: 8px/1 var(--ia-pixel); color: var(--ia-accent); }
.tag-solo { color: var(--ia-gold); }

/* About */
.about { padding-block: 96px; background: var(--ia-ground-2); border-block: 2px solid var(--ia-line); }
.about > .wrap { display: flex; flex-direction: column; gap: 64px; }
.about-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; }
.about-title { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.about-title h2 { font: 400 clamp(18px, 2.3vw, 32px)/1.5 var(--ia-pixel); text-shadow: 3px 3px 0 var(--ia-plum); }
.about-title h2 span { display: block; }
.about-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-copy p { font-size: 20px; line-height: 1.55; }
.about-copy p + p { font-size: 18px; color: var(--ia-muted); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pillar { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 18px; background: var(--ia-ground); border: 2px solid var(--ia-line-2); }
.pillar svg { display: block; height: 30px; width: auto; }
.pillar h3 { font: 400 13px/1.5 var(--ia-pixel); }
.pillar p { color: var(--ia-muted); }
.pillar a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font: 10px/1 var(--ia-pixel); }

/* Download */
.download { padding-block: 104px 112px; }
.cta-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 56px 48px 0;
  border-radius: 28px;
  background: var(--ia-pink-btn);
  box-shadow: 10px 10px 0 var(--ia-plum);
}
.cta-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding-bottom: 56px; }
.cta-copy .kicker { color: #ffe0ec; }
.cta-copy h2 { font: 400 clamp(28px, 4vw, 52px)/1.2 var(--ia-pixel); color: #ffffff; text-shadow: 4px 4px 0 #8a0f3d; }
.cta-copy > p:not(.kicker) { max-width: 28em; font-size: 20px; color: #ffffff; }
.cta-copy .stores { padding-top: 6px; }
.cta-phone { flex: 0 1 300px; min-width: 0; display: flex; justify-content: center; align-items: flex-end; }
.cta-phone .phone { width: 250px; max-width: 100%; margin-bottom: -150px; transform: rotate(7deg); box-shadow: 0 0 0 1px #000000, inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 30px 60px rgba(60, 0, 20, 0.55); }

/* Footer */
.site-foot { padding: 36px 0; background: var(--ia-ground-3); border-top: 2px solid var(--ia-line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.site-foot-brand img { display: block; width: 28px; height: 28px; }
.site-foot-brand b { font: 400 10px/1 var(--ia-pixel); }
.site-foot-brand span { font-size: 15px; color: var(--ia-muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  :root { --ia-gutter: 16px; }
  .site-tabs { order: 3; flex: 1 1 100%; justify-content: space-between; }
  .site-tabs a { padding: 0 10px; font-size: 9px; }
  .hero-inner { gap: 40px; padding-block: 40px 56px; }
  .hero-lede { font-size: 18px; }
  .fan { width: 88%; }
  .games, .about { padding-block: 64px; }
  .download { padding-block: 64px 72px; }
  .cta-panel { padding: 36px 24px 0; box-shadow: 6px 6px 0 var(--ia-plum); }
  .cta-copy { padding-bottom: 36px; }
  .about-copy p { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.landing) { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .landing .store-get:active { transform: none; }
}
