/* Galaxican — shared styles for galaxican.com
   Palette taken from the game itself: assets/icon/app_icon.svg and
   lib/render/palette.dart, so the site and the app look related. */

:root {
  --bg: #05070C;
  --panel: #0B0E17;
  --text: #D6DCE8;
  --dim: #8A93A6;
  --cyan: #00F0FF;
  --magenta: #FF2A6D;
  --gold: #FFD24A;
  --line: #1B2233;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 96px; }
.narrow { max-width: 720px; }

/* ── site nav ─────────────────────────────────────────────────────────── */
nav {
  display: flex; gap: 22px; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
  max-width: 760px; margin: 0 auto; flex-wrap: wrap;
}
nav .home {
  color: var(--cyan); letter-spacing: 3px; font-size: 13px;
  font-weight: 700; border: 0; margin-right: auto;
}
nav a { font-size: 14px; }

/* ── type ─────────────────────────────────────────────────────────────── */
h1 { font-size: 30px; margin: 0 0 10px; letter-spacing: .5px; line-height: 1.25; }
h2 { font-size: 19px; margin: 44px 0 12px; color: var(--cyan); letter-spacing: .4px; font-weight: 600; }
h3 { font-size: 16px; margin: 26px 0 6px; color: #fff; font-weight: 600; }
p, li { color: var(--text); }
strong { color: #fff; }
a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(0, 240, 255, .35); }
a:hover { border-bottom-color: var(--cyan); }
.dim { color: var(--dim); font-size: 14px; }
.date { color: var(--dim); font-size: 13px; margin: 0; }
ul { padding-left: 22px; }
li { margin: 6px 0; }

header.page { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 26px; }
.brand { color: var(--cyan); letter-spacing: 4px; font-size: 13px; font-weight: 700; margin: 0 0 12px; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 44px 0 8px; }
.hero img.icon {
  width: 128px; height: 128px; border-radius: 28px; display: block; margin: 0 auto 24px;
  box-shadow: 0 0 60px rgba(255, 42, 109, .22);
}
.hero h1 { font-size: 42px; letter-spacing: 2px; }
.tagline { font-size: 20px; color: var(--cyan); margin: 0 0 6px; }
.subline { color: var(--dim); margin: 0 0 28px; }

.hero-media {
  position: relative;
  width: 100%; max-width: 720px;
  margin: 28px auto 4px;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
  /* The footage is near-black at the edges, so a glow reads better than a
     hard frame against the page background. */
  box-shadow: 0 0 48px rgba(255, 42, 109, .18);
  background: var(--bg);
  line-height: 0;               /* kill the inline-descender gap under <video> */
}
/* Applied once the YouTube iframe replaces the local loop: the player is 16:9,
   the local capture is not. */
.hero-media.is-embed { aspect-ratio: 16 / 9; }
.hero-media.is-embed .hero-video { position: absolute; inset: 0; height: 100%; }

.hero-video { width: 100%; height: auto; display: block; border: 0; }

/* Play affordance over the silent loop. Deliberately a small corner pill, not
   a full-bleed overlay: this button hands the visitor to YouTube, where the
   related-videos rail competes for them. It should be available, not dominant
   — the install CTA is the control this page exists to get clicked. */
.hero-play {
  position: absolute; right: 12px; bottom: 12px;
  display: flex; gap: 9px; align-items: center;
  padding: 7px 15px 7px 8px; border-radius: 999px;
  cursor: pointer; font: inherit; line-height: 1;
  color: #fff;
  border: 1px solid rgba(0, 240, 255, .45);
  background: rgba(5, 7, 12, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .18s ease, border-color .18s ease;
}
.hero-play:hover, .hero-play:focus-visible {
  background: rgba(5, 7, 12, .92); border-color: var(--cyan);
}
.hero-play:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hero-play .tri {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  border: 1px solid var(--cyan);
  background: rgba(0, 240, 255, .10);
  /* CSS triangle, centred by nudging left for its own optical weight. */
  position: relative;
}
.hero-play .tri::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-35%, -50%);
  border-left: 8px solid var(--cyan);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.hero-play .lbl {
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  font-weight: 600; white-space: nowrap;
}

.badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 0; }
.badge {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line);
}
.badge:hover { border-color: var(--cyan); }
.badge.soon { color: var(--dim); pointer-events: none; }

/* Primary CTA. Cyan rather than magenta: magenta reads as a warning or an
   error state, which is the wrong signal on the one control the whole page
   exists to get clicked. Cyan is already the brand accent, and #000 on
   #00F0FF is the highest-contrast pair available in this palette. */
.badge.cta-button {
  padding: 17px 40px; border-radius: 10px;
  font-size: 16px; font-weight: 700; letter-spacing: .6px;
  background: var(--cyan); color: #04131A;
  border: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  box-shadow: 0 0 34px rgba(0, 240, 255, .30);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.badge.cta-button:hover,
.badge.cta-button:focus-visible {
  background: #5CF7FF; border-color: #5CF7FF;
  box-shadow: 0 0 52px rgba(0, 240, 255, .55);
  transform: translateY(-2px);
}
.badge.cta-button:active { transform: translateY(0); }

.cta-note {
  color: var(--dim); font-size: 14px; line-height: 1.7;
  margin: 14px 0 0;
}
.cta-note .dim { font-size: 13px; }
/* Gold, not cyan: this line is the reason to act today rather than bookmark
   the page, and it should not read as just another link-coloured aside. */
.cta-urgent { color: var(--gold); font-size: 15px; }

/* Repeat CTA further down the page. */
.cta-repeat {
  text-align: center; margin: 44px 0 8px;
  padding: 30px 24px;
  background: var(--panel); border: 1px solid var(--line);
  border-top: 2px solid var(--cyan); border-radius: 8px;
}
.cta-repeat-head {
  font-size: 21px; font-weight: 700; color: #fff; margin: 0;
  letter-spacing: .3px;
}
.cta-repeat-sub {
  color: var(--dim); font-size: 14px; line-height: 1.65;
  max-width: 44ch; margin: 10px auto 0;
}
.cta-repeat .badges { margin-top: 22px; }

/* ── beta code claim form ─────────────────────────────────────────────── */
.claim { margin: 26px 0 8px; }
.claim label {
  display: block; color: var(--dim); font-size: 13px;
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px;
}
.claim input {
  width: 100%; padding: 14px 16px; margin-bottom: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
}
.claim input:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, .15);
}
.claim button { width: 100%; cursor: pointer; }
.claim button:disabled { opacity: .55; cursor: default; transform: none; }

.claim-result {
  margin: 22px 0; padding: 22px 24px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line);
}
.claim-result.is-ok { border-left: 3px solid var(--cyan); text-align: center; }
.claim-result.is-error { border-left: 3px solid var(--gold); color: var(--text); }
.claim-label {
  color: var(--dim); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; margin: 0 0 10px;
}
.claim-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 26px; font-weight: 700; color: var(--cyan);
  letter-spacing: 2px; word-break: break-all;
  margin: 0 0 14px; user-select: all; /* one tap selects the whole code */
}
.claim-redeem { display: inline-block; margin: 4px 0 16px; }
.claim-result p:last-child { margin-bottom: 0; }

/* ── panels ───────────────────────────────────────────────────────────── */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--cyan); border-radius: 6px;
  padding: 20px 22px; margin: 22px 0;
}
.panel.gold { border-left-color: var(--gold); }
.panel.magenta { border-left-color: var(--magenta); }
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin: 0; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.card h3 { margin: 0 0 6px; font-size: 15px; color: var(--cyan); }
.card p { margin: 0; font-size: 14px; color: var(--dim); line-height: 1.6; }

/* ── press kit screenshot grid ─────────────────────────────────────────── */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.shots a { border: 0; display: block; line-height: 0; }
.shots img {
  width: 100%; height: auto; display: block; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg);
  transition: border-color .18s ease;
}
.shots a:hover img { border-color: var(--cyan); }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 600; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
details {
  border-bottom: 1px solid var(--line); padding: 14px 0;
}
details summary {
  cursor: pointer; color: #fff; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; gap: 10px; align-items: flex-start;
}
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+"; color: var(--cyan); font-weight: 700; }
details[open] summary::before { content: "\2013"; }
details p, details ul { margin: 10px 0 0; color: var(--text); font-size: 15px; }
details p:first-of-type { margin-top: 12px; }

.contact {
  background: var(--panel); border: 1px solid var(--cyan); border-radius: 6px;
  padding: 18px 20px; margin: 0 0 8px; text-align: center;
}
.contact a { font-size: 18px; font-weight: 600; }

footer {
  margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--dim); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap;
}
footer .spacer { margin-left: auto; }

code {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 6px; font-size: 14px; color: var(--cyan);
}

@media (max-width: 560px) {
  .wrap { padding: 28px 18px 64px; }
  .hero h1 { font-size: 32px; }
  .tagline { font-size: 17px; }
  .grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  h1 { font-size: 25px; }
  .hero-play { right: 8px; bottom: 8px; padding: 6px 12px 6px 7px; gap: 7px; }
  .hero-play .tri { width: 20px; height: 20px; }
  .hero-play .tri::after { border-left-width: 7px; border-top-width: 4px; border-bottom-width: 4px; }
  .hero-play .lbl { font-size: 10px; letter-spacing: 1px; }
  /* Full-width stacked buttons convert better than side-by-side on a phone. */
  .badge.cta-button { width: 100%; padding: 16px 20px; }
}
