/* ===========================================================================
 * Tally — landing page.
 *
 * One screen, no scroll: a full-bleed shot of the running build with the
 * wordmark and the entry points over it. Everything *about* the game lives
 * behind the How to Play / Docs buttons rather than in sections below the fold.
 *
 * The chrome wears the game's own HUD — the same translucent slate panels and
 * the same accent colours as play/game.css — so the site and the game match.
 * ========================================================================= */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/site/css/fonts/space-grotesk.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  /* lifted verbatim from the in-game HUD */
  --panel:    rgba(28, 40, 54, 0.86);
  --panel-hi: rgba(40, 56, 74, 0.94);
  --panel-bd: rgba(255, 255, 255, 0.16);
  --ink:      #f2f6fb;
  --ink-soft: rgba(242, 246, 251, 0.72);
  --ink-mute: rgba(242, 246, 251, 0.5);
  --accent:   #ff8a3a;
  --good:     #54e07f;
  --gold:     #ffd76a;
  --night:    #0c141d;

  --display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body.one {
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--night); color: var(--ink);
  font-family: var(--ui); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- backdrop ----------------------------------------------------------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.05); } to { transform: scale(1.13) translateY(-1.2%); } }
@media (prefers-reduced-motion: reduce) { .bg img { animation: none; transform: scale(1.05); } }
.bg__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(115% 75% at 50% 44%, rgba(12, 20, 29, 0.10) 0%, rgba(12, 20, 29, 0.60) 58%, rgba(12, 20, 29, 0.88) 100%),
    linear-gradient(180deg, rgba(12, 20, 29, 0.62) 0%, transparent 22%, transparent 66%, rgba(12, 20, 29, 0.80) 100%);
}

/* ---- header -------------------------------------------------------------
 * Kintara puts one white glass bar across the top; ours is a dark HUD rail
 * with the brand as its own chip, so the two never read as the same site. */
.hdr {
  position: relative; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: 14px clamp(12px, 2.4vw, 22px);
  background: linear-gradient(180deg, rgba(12, 18, 26, 0.78), rgba(12, 18, 26, 0.34) 70%, transparent);
}
.hdr__brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.2em;
  padding: 10px 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--panel-bd);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hdr__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 7px var(--good); }
.hdr__beta {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--good); padding: 3px 7px; border-radius: 999px;
  background: rgba(84, 224, 127, 0.14); border: 1px solid rgba(84, 224, 127, 0.4);
}
.hdr__nav { display: flex; gap: 4px; margin-left: 6px; }
.hdr__nav a {
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  padding: 9px 15px; border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.hdr__nav a:hover { background: rgba(255, 255, 255, 0.10); color: var(--ink); }
.hdr__sp { flex: 1; }
.hdr__ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  color: var(--ink-soft);
  background: var(--panel); border: 1px solid var(--panel-bd);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.hdr__ico:hover { color: var(--ink); background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }

/* ---- buttons ------------------------------------------------------------
 * Kintara's are orange with a rounded-rect fill; ours are the game's green
 * with a hard bottom edge that compresses on press, like a console button. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.03em;
  padding: 14px 26px; border-radius: 11px; border: none; cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease;
}
.btn--play {
  background: linear-gradient(180deg, #6ef09a, #35c06a); color: #06301a;
  box-shadow: 0 5px 0 #1d7d43, 0 12px 26px rgba(53, 192, 106, 0.34);
}
.btn--play:hover { filter: brightness(1.06); }
.btn--play:active { transform: translateY(4px); box-shadow: 0 1px 0 #1d7d43, 0 6px 14px rgba(53, 192, 106, 0.3); }
.btn--ghost {
  background: var(--panel); color: var(--ink); border: 1px solid var(--panel-bd);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.28), 0 12px 26px rgba(0, 0, 0, 0.30);
}
.btn--ghost:hover { background: var(--panel-hi); }
.btn--ghost:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28), 0 6px 14px rgba(0, 0, 0, 0.28); }
.btn--sm { font-size: 13px; padding: 10px 18px; border-radius: 9px; box-shadow: 0 4px 0 #1d7d43, 0 8px 18px rgba(53, 192, 106, 0.28); }
.btn--sm:active { transform: translateY(3px); box-shadow: 0 1px 0 #1d7d43; }
.btn--xl { font-size: 17px; padding: 17px 34px; min-width: 178px; }

/* ---- centre stage ------------------------------------------------------- */
.stage {
  position: relative; z-index: 5;
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; text-align: center;
  padding: 18px clamp(16px, 4vw, 32px) 26px;
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--panel-bd);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; color: var(--ink-soft); white-space: nowrap;
}
.pill b { font-family: var(--display); font-weight: 700; color: var(--ink); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 7px var(--good); }
.pill--beta {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.pill--ca {
  margin-top: 8px; font-family: var(--display); font-size: 12.5px; letter-spacing: 0.04em;
}
.pill--ca b { color: var(--gold); }

.mark {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(60px, 13vw, 158px); line-height: 0.9; letter-spacing: 0.02em;
  margin: 20px 0 2px;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.30), 0 22px 60px rgba(0, 0, 0, 0.62);
}
.lede {
  max-width: 54ch; font-size: clamp(15.5px, 1.7vw, 18px); color: var(--ink-soft);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }

.gateline {
  max-width: 58ch; margin-top: 20px; padding: 11px 18px; border-radius: 11px;
  font-size: 13.5px; color: var(--ink-soft);
  background: rgba(255, 138, 58, 0.10); border: 1px solid rgba(255, 138, 58, 0.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.gateline b { color: var(--accent); }

.pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }

/* ---- footer ------------------------------------------------------------- */
.btm {
  position: relative; z-index: 5;
  padding: 0 20px 20px; text-align: center;
  font-size: 13px; color: var(--ink-mute);
}
.btm a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ---- narrow ------------------------------------------------------------- */
@media (max-width: 720px) {
  .hdr__nav { display: none; }
  .btn--xl { font-size: 15.5px; padding: 15px 24px; min-width: 148px; }
  .acts { gap: 10px; }
}
@media (max-width: 420px) {
  .acts { flex-direction: column; align-self: stretch; }
  .btn--xl { width: 100%; }
}
