@font-face {
  font-family: "Cormorant";
  src: url("assets/fonts/cormorant-latin.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ground: #0d1c17;
  --felt: #173329;
  --panel: #152b23;
  --line: #2e4a3f;
  --ivory: #f2ecdc;
  --muted: #b9b29c;
  --gold: #c9a45c;
  --gold-text: #e9c77e;
  --amber: #f0b44c;
  --ink: #1f1409;
  --paper: #f5efdf;
  --paper-ink: #1d1a14;
  --paper-muted: #5d5446;
  --paper-line: #e3d8bd;
  --display: "Cormorant", Georgia, serif;
  --body: ui-sans-serif, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold-text); }
a:hover { color: #f5dca4; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(13, 28, 23, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font-family: var(--display); font-size: 24px; font-weight: 700; }
.brand img { width: 36px; height: 36px; }
.brand { white-space: nowrap; }
@media (max-width: 420px) { .brand { font-size: 20px; } .nav { gap: 14px; } }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ivory); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--gold-text); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--body); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #f5c46a; color: var(--ink); }
.btn-outline { border-color: var(--gold); color: var(--ivory); background: transparent; }
.btn-outline:hover { background: rgba(201, 164, 92, 0.12); color: var(--ivory); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background: url("assets/hero.webp") center / cover no-repeat; opacity: 0.35; }
.hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 0 72px; gap: 18px; }
.hero-logo { width: min(520px, 90%); height: auto; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(34px, 6vw, 56px); line-height: 1.05; font-weight: 700; }
.hero p { margin: 0; max-width: 620px; color: var(--ivory); font-size: 19px; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-text); margin: 0 0 8px; }
h2 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; font-weight: 700; }
h3 { margin: 0 0 8px; font-family: var(--display); font-size: 26px; line-height: 1.15; font-weight: 700; }
.lede { color: var(--muted); max-width: 680px; margin: 0 0 32px; font-size: 18px; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 820px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .shots { grid-template-columns: minmax(0, 1fr); } }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .features { grid-template-columns: minmax(0, 1fr); } }

.trailer { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.trailer video { width: 100%; height: auto; }

.devices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.devices li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.devices strong { display: block; font-size: 17px; }
.devices span { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pricing */
.price-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; background: var(--felt); border: 1px solid var(--gold); border-radius: 20px; padding: 32px; }
.price { font-family: var(--display); font-size: 64px; font-weight: 700; line-height: 1; color: var(--ivory); }
.price small { font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.price-card ul { margin: 16px 0 0; padding-left: 20px; color: var(--ivory); }
.price-card li { margin: 4px 0; }
.price-card .actions { display: flex; flex-direction: column; gap: 12px; }
.fine { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
@media (max-width: 820px) { .price-card { grid-template-columns: minmax(0, 1fr); padding: 24px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer p { margin: 4px 0; }

/* Legal pages: paper, like the game's printed card */
.legal { background: var(--paper); color: var(--paper-ink); }
.legal .doc { width: min(780px, 100% - 32px); margin: 40px auto 64px; }
.legal h1 { font-family: var(--display); font-size: clamp(36px, 6vw, 48px); line-height: 1.05; margin: 0 0 6px; }
.legal h2 { font-size: 28px; margin: 36px 0 10px; color: var(--paper-ink); }
.legal h3 { font-size: 21px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--paper-ink); }
.legal .updated { color: var(--paper-muted); margin: 0 0 28px; font-size: 15px; }
.legal a { color: #135f3e; }
.legal a:hover { color: #0c4a30; }
.legal hr { border: 0; border-top: 1px solid var(--paper-line); margin: 32px 0; }
.legal .callout { background: #fbf7ec; border: 1px solid var(--paper-line); border-radius: 12px; padding: 16px 18px; }
.legal .callout p { margin: 0; }
.legal .site-header { background: rgba(245, 239, 223, 0.94); border-bottom-color: var(--paper-line); }
.legal .site-header .brand, .legal .site-header .nav a { color: var(--paper-ink); }
.legal .site-footer { border-top-color: var(--paper-line); color: var(--paper-muted); }
.legal .site-footer a { color: #135f3e; }

/* Launch phases: pre-launch, launch sale, regular price (set by the script in index.html) */
[data-show] { display: none !important; }
body[data-phase="pre"] [data-show~="pre"],
body[data-phase="sale"] [data-show~="sale"],
body[data-phase="post"] [data-show~="post"] { display: revert !important; }
body[data-phase="pre"] .btn[data-show~="pre"], body[data-phase="sale"] .btn[data-show~="sale"], body[data-phase="post"] .btn[data-show~="post"] { display: inline-flex !important; }
body[data-phase="pre"] .sale-bar[data-show~="pre"], body[data-phase="sale"] .sale-bar[data-show~="sale"] { display: block !important; }
.sale-bar { background: var(--amber); color: var(--ink); text-align: center; font-weight: 700; font-size: 15px; padding: 10px 16px; }
.was { color: var(--muted); font-size: 0.5em; font-weight: 600; text-decoration-thickness: 2px; vertical-align: 0.35em; margin-right: 6px; }
.sale-note { margin: 10px 0 0; max-width: 520px; color: var(--gold-text); font-size: 14px; line-height: 1.5; }
