/* Rejoice! The splash page: the game's own night of stained glass. Deep navy, gilt, the rose
   window's jewels; Cinzel for titles, Source Sans 3 to read. The fonts are the game's (OFL). */

@font-face { font-family: "Cinzel Decorative"; src: url("fonts/CinzelDecorative-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-It.ttf") format("truetype"); font-style: italic; font-display: swap; }

:root {
  --night: #0a0e1c;
  --night-2: #11162a;
  --glass: rgba(20, 26, 46, 0.78);
  --glass-edge: rgba(240, 196, 96, 0.28);
  --ink: #ece6da;
  --ink-dim: #b9b2a5;
  --gilt: #f0c460;
  --gilt-deep: #c9a227;
  --sapphire: #3b6fd8;
  --ruby: #c03a4a;
  --emerald: #3fae7a;
  --amethyst: #8e5fd6;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --display: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(59, 111, 216, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(142, 95, 214, 0.12), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, #0c1122 40%, var(--night) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gilt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffe0a0; }

:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gilt); color: #111; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }

/* --- The bar along the top ------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(10, 14, 28, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240, 196, 96, 0.14);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 24px; }
.brand:hover { color: var(--gilt); }

.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--ink-dim); text-decoration: none; font-family: var(--serif); font-size: 15px; letter-spacing: 0.04em; }
.nav nav a:hover { color: var(--gilt); }

/* --- Buttons ----------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid #ffd98a;
  background: linear-gradient(180deg, #f6cf72, #d7a63a);
  color: #1b1408;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(240, 196, 96, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover { color: #1b1408; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(240, 196, 96, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.button.small { padding: 9px 18px; font-size: 14px; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--glass-edge); box-shadow: none; }
.button.ghost:hover { color: var(--gilt); border-color: var(--gilt); }

/* --- Steam ------------------------------------------------------------------------------------- */

.steam-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, #1b2838, #0e1621);
  color: #ffffff;
  cursor: pointer;
  font-family: var(--sans);
  text-align: left;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.steam-badge:hover { transform: translateY(-1px); border-color: #66c0f4; }
.steam-badge span { display: flex; flex-direction: column; font-size: 20px; font-weight: 600; line-height: 1.05; letter-spacing: 0.02em; }
.steam-badge small { font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: #c7d5e0; }
.steam-icon { width: 30px; height: 30px; fill: currentColor; flex-shrink: 0; }
.steam-badge.large { padding: 10px 22px 10px 14px; }
.steam-badge.large .steam-icon { width: 36px; height: 36px; }
.price-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }

.notice { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(4, 6, 12, 0.78); }
.notice[hidden] { display: none; }
.notice-card { max-width: 420px; padding: 28px 30px 24px; text-align: center; border-radius: var(--radius); background: linear-gradient(180deg, #1b2838, #101a26); border: 1px solid rgba(102, 192, 244, 0.45); box-shadow: var(--shadow); }
.notice-icon { width: 54px; height: 54px; margin: 0 auto 10px; color: #ffffff; display: block; }
.notice-title { font-family: var(--serif); font-weight: 700; font-size: 24px; margin: 0 0 8px; color: #ffffff; }
.notice-body { color: #c7d5e0; font-size: 16px; margin: 0 0 18px; }

/* --- The first fold ---------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 64px) var(--gutter) clamp(32px, 5vh, 56px);
  min-height: calc(100vh - 62px);
}

.glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(420px 420px at 70% 40%, rgba(240, 196, 96, 0.13), transparent 70%),
    conic-gradient(from 0deg at 70% 45%, rgba(59, 111, 216, 0.12), rgba(192, 58, 74, 0.1), rgba(63, 174, 122, 0.1), rgba(142, 95, 214, 0.12), rgba(59, 111, 216, 0.12));
  mask-image: radial-gradient(closest-side at 70% 45%, black, transparent);
  -webkit-mask-image: radial-gradient(closest-side at 70% 45%, black, transparent);
  pointer-events: none;
}

.hero > *, .feature > * { min-width: 0; }

.kicker { font-family: var(--serif); color: var(--gilt); letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; margin: 0 0 14px; }

.hero h1 { margin-bottom: 18px; }
.hero .title {
  display: block;
  font-family: var(--display);
  font-size: clamp(56px, 7.4vw, 112px);
  line-height: 1;
  color: #fbeec6;
  text-shadow: 0 0 40px rgba(240, 196, 96, 0.35), 0 4px 18px rgba(0, 0, 0, 0.6);
}
.hero .tagline { display: block; margin-top: 14px; font-size: clamp(20px, 2vw, 28px); color: var(--ink); }

.lede { font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-dim); margin: 0 0 26px; max-width: 34em; }
.lede strong { color: var(--ink); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.launch { padding: 16px 18px; border: 1px solid var(--glass-edge); border-radius: var(--radius); background: var(--glass); max-width: 460px; }
.launch-label { margin: 0 0 10px; font-size: 15px; color: var(--ink-dim); }
.launch-label strong { color: var(--gilt); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.countdown span { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); color: var(--ink); font-variant-numeric: tabular-nums; }
.countdown small { color: var(--ink-dim); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow), 0 0 0 6px rgba(240, 196, 96, 0.06);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }

.play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: radial-gradient(circle at center, rgba(10, 14, 28, 0.15), rgba(10, 14, 28, 0.55));
  color: var(--ink);
  cursor: pointer;
  font-family: var(--serif);
}
.play span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  padding-left: 8px;
  border-radius: 50%;
  font-size: 38px;
  color: #1b1408;
  background: linear-gradient(180deg, #f6cf72, #d7a63a);
  box-shadow: 0 0 0 10px rgba(240, 196, 96, 0.18), 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}
.play:hover span { transform: scale(1.06); }
.play em { font-style: normal; font-size: 17px; letter-spacing: 0.06em; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
.video-frame.playing .play { display: none; }

/* --- The numbers ------------------------------------------------------------------------------- */

.numbers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 0 var(--gutter);
}
.numbers div { padding: 18px 12px; text-align: center; background: var(--glass); border-top: 2px solid var(--glass-edge); }
.numbers div:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.numbers div:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.numbers strong { display: block; font-family: var(--serif); font-size: 40px; color: var(--gilt); line-height: 1.1; }
.numbers span { font-size: 14px; color: var(--ink-dim); }

/* --- The game, feature by feature -------------------------------------------------------------- */

.features { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(40px, 7vh, 80px) 0;
  border-bottom: 1px solid rgba(240, 196, 96, 0.08);
}
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-text { order: 2; }
.feature.wide-shot { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.eyebrow { font-family: var(--serif); color: var(--gilt); text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; margin: 0 0 8px; }
.feature p { color: var(--ink-dim); }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 28px; margin: 8px 0; color: var(--ink-dim); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gilt), var(--gilt-deep)); }
.ticks strong { color: var(--ink); font-weight: 600; }

.feature-shots { margin: 0; display: grid; gap: 14px; }
.feature-shots.two { display: block; position: relative; padding-bottom: 16%; }
.feature-shots.two a:first-child { width: 86%; }
.feature-shots.two a:last-child { position: absolute; right: 0; bottom: 0; width: 52%; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6); }
.feature.flip .feature-shots.two a:first-child { margin-left: auto; }
.feature.flip .feature-shots.two a:last-child { right: auto; left: 0; }

.feature-shots a, .mosaic a, .grid a {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(240, 196, 96, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-shots a:hover, .mosaic a:hover, .grid a:hover { transform: translateY(-2px); border-color: var(--gilt); }
.feature-shots img, .mosaic img, .grid img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mosaic span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(10, 14, 28, 0.82);
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gilt);
}

/* --- Gallery -------------------------------------------------------------------------------- */

.gallery { max-width: var(--max); margin: 0 auto; padding: 60px var(--gutter); text-align: center; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }

/* --- Price ------------------------------------------------------------------------------------ */

.price { max-width: 1040px; margin: 0 auto; padding: 60px var(--gutter); text-align: center; }
.section-lede { color: var(--ink-dim); margin-top: -6px; }
.tiers { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { padding: 26px 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid rgba(240, 196, 96, 0.16); }
.tier.best { border-color: var(--gilt); background: linear-gradient(180deg, rgba(240, 196, 96, 0.14), var(--glass)); box-shadow: 0 0 40px rgba(240, 196, 96, 0.15); }
.when { font-family: var(--serif); font-weight: 700; margin: 0; color: var(--ink); }
.when span { font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--ink-dim); }
.amount { font-family: var(--serif); font-size: 52px; font-weight: 700; color: var(--gilt); margin: 12px 0 2px; line-height: 1; }
.note { margin: 0; color: var(--ink-dim); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.center { text-align: center; }

/* --- Questions -------------------------------------------------------------------------------- */

.faq { max-width: 860px; margin: 0 auto; padding: 60px var(--gutter); }
.faq h2 { text-align: center; }
.faq details { border-bottom: 1px solid rgba(240, 196, 96, 0.14); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 36px 14px 0; position: relative; font-family: var(--serif); font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font-size: 26px; color: var(--gilt); font-family: var(--sans); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-dim); margin: 0 0 16px; }

/* --- Press and studio ----------------------------------------------------------------------- */

.press { max-width: var(--max); margin: 0 auto; padding: 60px var(--gutter); }
.press h2 { text-align: center; }
.press-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }
.facts { margin: 0; padding: 22px 24px; background: var(--glass); border-radius: var(--radius); border: 1px solid rgba(240, 196, 96, 0.16); display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.facts dt { font-family: var(--serif); color: var(--gilt); font-size: 14px; letter-spacing: 0.06em; }
.facts dd { margin: 0; color: var(--ink); }
.downloads p { color: var(--ink-dim); }
.downloads ul { padding-left: 20px; color: var(--ink-dim); }
.downloads li { margin: 6px 0; }

.studio { max-width: 760px; margin: 0 auto; padding: 50px var(--gutter) 70px; text-align: center; color: var(--ink-dim); }
.studio-logo { width: 300px; height: auto; margin: 0 auto 18px; }

.footer { border-top: 1px solid rgba(240, 196, 96, 0.14); padding: 32px var(--gutter); text-align: center; color: var(--ink-dim); font-size: 15px; background: rgba(6, 9, 18, 0.6); }
.footer img { width: 150px; height: auto; margin: 0 auto 12px; opacity: 0.9; }
.footer p { margin: 6px 0; }

/* --- The lightbox ------------------------------------------------------------------------------ */

.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(4, 6, 12, 0.92); padding: 24px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1600px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 8px; box-shadow: var(--shadow); }
.lightbox figcaption { text-align: center; color: var(--ink); margin-top: 12px; font-size: 16px; }
.lightbox button { position: absolute; border: 0; background: rgba(20, 26, 46, 0.8); color: var(--ink); font-size: 34px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { color: var(--gilt); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 14px; top: calc(50% - 26px); }
.lightbox-next { right: 14px; top: calc(50% - 26px); }

/* --- Smaller screens ---------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .nav nav { display: none; }
  .nav .button { margin-left: auto; }
  .numbers { grid-template-columns: repeat(3, 1fr); }
  .numbers div { border-radius: 0 !important; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-video { order: -1; }
  .feature, .feature.wide-shot { grid-template-columns: minmax(0, 1fr); }
  .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-text { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .feature-shots.two { padding-bottom: 0; }
  .feature-shots.two a:first-child { width: 100%; }
  .feature-shots.two a:last-child { position: static; width: 100%; margin-top: 12px; }
  .brand span { display: none; }
  .lightbox { padding: 16px; }
  .lightbox-prev, .lightbox-next { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
