/* Eucna. Colours sampled from the logo: charcoal green, off-white, and the sun. */
:root {
  --bg: #0c1512;
  --ink: #e8e6e1;
  --ink-2: rgba(232, 230, 225, 0.74);
  --ink-3: rgba(232, 230, 225, 0.52);
  --line: rgba(232, 230, 225, 0.12);
  --stroke: #d6d4cf;
  --sun: #e2582c;
  /* Road to GOAT brings its own colours to its card. */
  --game-bg: #0b0f14;
  --game-ink: #f2f5f8;
  --game-ink-2: rgba(242, 245, 248, 0.62);
  --gold: #f5c518;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--sun); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* --- The mark ---------------------------------------------------------------------- */
.mark { width: clamp(132px, 22vw, 196px); height: auto; margin: 0 auto; overflow: visible; }

/* --- Hero: sunrise over a sea of clouds -------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 92vh;
  min-height: 92svh;
  display: grid;
  place-items: center;
  padding: 72px 16px 120px;
  text-align: center;
}
.hero::before {
  /* Dawn: a warm glow that comes up with the sun. */
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 4%;
  width: min(920px, 150vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(226, 88, 44, 0.15), rgba(226, 88, 44, 0.05) 45%, transparent 72%);
  animation: dawn 3.6s ease-out 1.1s both;
}
.hero::after {
  /* Blend the clouds into the page. */
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.mist { position: absolute; z-index: -1; left: -15%; right: -15%; bottom: 0; height: 48%; pointer-events: none; }
.mist span {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(36% 46% at 18% 72%, rgba(232, 230, 225, 0.075), transparent 70%),
    radial-gradient(30% 40% at 52% 84%, rgba(232, 230, 225, 0.06), transparent 70%),
    radial-gradient(34% 44% at 86% 70%, rgba(232, 230, 225, 0.065), transparent 70%);
  filter: blur(12px);
  animation: drift 40s ease-in-out infinite alternate;
}
.mist span + span {
  background:
    radial-gradient(28% 36% at 34% 90%, rgba(232, 230, 225, 0.06), transparent 70%),
    radial-gradient(32% 40% at 70% 92%, rgba(232, 230, 225, 0.05), transparent 70%);
  animation-duration: 56s;
  animation-direction: alternate-reverse;
}

.hero .diamond { animation: draw 1.5s ease-in-out 0.2s both; }
.hero .peak { animation: fade 0.6s ease-out 0.15s both; }
.hero .sun { animation: rise 2.8s cubic-bezier(0.16, 0.84, 0.3, 1) 1s both; }

.wordmark {
  margin: 30px 0 0;
  font-size: clamp(30px, 5.4vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.34em;
  padding-left: 0.34em; /* letter-spacing trails the last letter; this re-centres the word */
}
.tagline { margin: 30px 0 0; font-size: 18px; color: var(--ink-2); }
.hero-text > * { animation: up 0.9s ease-out both; }
.hero-text > :nth-child(1) { animation-delay: 1.4s; }
.hero-text > :nth-child(2) { animation-delay: 1.6s; }

/* --- Sections ------------------------------------------------------------------------ */
.section { padding: 56px 0; }
@media (min-width: 720px) { .section { padding: 72px 0; } }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }

/* --- Game card ----------------------------------------------------------------------- */
.game {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--game-bg);
  color: var(--game-ink);
}
.game-art {
  display: grid;
  place-items: center;
  padding: 44px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(110% 80% at 50% 100%, rgba(245, 197, 24, 0.12), transparent 62%), var(--game-bg);
}
.game-art img { width: 100%; max-width: 420px; height: auto; }
.game-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 36px 32px; }
.game h3 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; }
.game h3 a { text-decoration: none; }
.game h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.game .pitch { margin: 0; font-size: 19px; text-wrap: balance; }
.game .meta { margin: 0; font-size: 15px; color: var(--game-ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-gold { background: var(--gold); color: var(--game-bg); }
.btn-sun { background: var(--sun); color: var(--bg); }
.btn-ghost { border: 1px solid rgba(242, 245, 248, 0.22); color: var(--game-ink); }
.btn-ghost:hover { border-color: var(--gold); }
.soon { font-size: 14px; color: var(--game-ink-2); }
.game-links { margin: 6px 0 0; font-size: 14px; color: var(--game-ink-2); }
.game-links a { margin-right: 14px; }
@media (max-width: 760px) {
  .game { grid-template-columns: 1fr; }
  .game-art { padding: 36px 24px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .game-body { padding: 28px 20px 32px; }
}

/* --- About --------------------------------------------------------------------------- */
.lede { text-wrap: balance; max-width: 32ch; margin: 0; font-size: clamp(22px, 3.2vw, 30px); font-weight: 500; line-height: 1.4; }
.sig { margin: 24px 0 0; color: var(--ink-3); }

/* --- Footer -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-3); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand svg { width: 22px; height: 22px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* --- Inner pages (privacy, deletion, 404) ------------------------------------------- */
.topbar { display: flex; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 20px; font-size: 15px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.32em; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.crumb { color: var(--ink-3); }
.doc { max-width: 720px; padding-top: 24px; padding-bottom: 72px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 38px); line-height: 1.2; }
.doc h2 { margin: 0 0 10px; font-size: 21px; }
.doc section { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc .muted { color: var(--ink-3); }
.doc a { color: var(--ink); text-decoration-color: var(--sun); overflow-wrap: anywhere; }
.doc li { margin: 8px 0; }
.doc .pagelinks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; }
.doc .btn { margin: 4px 0; }
.doc a.btn-sun { color: var(--bg); text-decoration: none; }
.narrow { max-width: 720px; }
@media (min-width: 720px) { .narrow { padding-left: 16px; padding-right: 16px; box-sizing: content-box; } }

.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 48px 16px; text-align: center; }
.lost h1 { margin: 28px 0 8px; font-size: 28px; }
.lost p { margin: 0 0 28px; color: var(--ink-2); }

/* --- Motion -------------------------------------------------------------------------- */
@keyframes draw { from { stroke-dasharray: 100; stroke-dashoffset: 100; } to { stroke-dasharray: 100; stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
/* Starts fully below the ridge clip, so nothing shows before the mountain is up. */
@keyframes rise { from { transform: translateY(36px); } }
@keyframes dawn { from { opacity: 0; transform: translate(-50%, 6%); } }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }
@keyframes drift { from { transform: translateX(-5%); } to { transform: translateX(5%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Game page ----------------------------------------------------------------------- */
.game-hero {
  padding: 40px 16px 56px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 70% at 50% 100%, rgba(245, 197, 24, 0.12), transparent 70%), var(--game-bg);
  color: var(--game-ink);
  text-align: center;
}
.game-hero h1 { margin: 0; }
.game-hero h1 img { width: min(460px, 86vw); height: auto; margin: 0 auto; }
.game-hero .pitch { margin: 22px 0 0; font-size: clamp(18px, 2.4vw, 22px); text-wrap: balance; }
.game-hero .meta { margin: 8px 0 0; font-size: 15px; color: var(--game-ink-2); }
.game-hero .actions { justify-content: center; margin-top: 26px; }
.game-hero .soon { display: block; margin-top: 14px; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--game-bg);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.8);
}
.shots figcaption { margin-top: 12px; font-size: 15px; text-align: center; color: var(--ink-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.features h3 { margin: 0 0 6px; font-size: 18px; }
.features p { margin: 0; color: var(--ink-2); }
.notice { max-width: 72ch; margin: 0; font-size: 14px; color: var(--ink-3); }
.page-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; font-size: 15px; }

/* --- Support ------------------------------------------------------------------------- */
.page-head { padding-top: 24px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 40px); line-height: 1.15; }
.page-head p { max-width: 60ch; margin: 0; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(232, 230, 225, 0.03); }
.card h2 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0 0 16px; color: var(--ink-2); }
.card .btn { min-height: 44px; padding: 10px 18px; }
.btn-line { border: 1px solid rgba(232, 230, 225, 0.22); color: var(--ink); }
.btn-line:hover { border-color: var(--sun); }

.faq { max-width: 760px; }
.faq details { padding: 16px 0; border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--sun); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.faq a, .press a:not(.btn):not(.download) { text-decoration-color: var(--sun); }

/* --- Press kit ----------------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 32px; max-width: 760px; margin: 0; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 14px; color: var(--ink-2); }
.prose p.lead { font-size: 20px; color: var(--ink); }
.prose ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.prose li { margin: 6px 0; }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.download { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--game-bg); text-decoration: none; }
.download img { width: 100%; height: 150px; object-fit: contain; padding: 12px; }
.download.tall img { height: 260px; padding: 0; object-fit: cover; object-position: top; }
.download.studio img { background: var(--bg); }
.download span { display: block; padding: 10px 14px 12px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); }
.download b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.download:hover { border-color: rgba(232, 230, 225, 0.3); }
