/* PrimalCore Studios. Tokens and rules are in DESIGN.md. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-wdth.woff2) format("woff2-variations"), url(/fonts/archivo-latin-wdth.woff2) format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0c0b0a;
  --bg-2: #131110;
  --surface: #1a1715;
  --surface-2: #221e1b;
  --line: rgba(242, 236, 226, 0.1);
  --line-strong: rgba(242, 236, 226, 0.22);
  --text: #f2ece2;
  --muted: #b0a698;
  --accent: #d1a464;
  --accent-hi: #ecd29b;
  --on-accent: #160f08;
  --glow: rgba(209, 164, 100, 0.22);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --radius: 14px;
  --wrap: 1180px;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4efe6;
  --bg-2: #ebe4d8;
  --surface: #fffaf2;
  --surface-2: #efe8dc;
  --line: rgba(27, 22, 17, 0.12);
  --line-strong: rgba(27, 22, 17, 0.26);
  --text: #1b1611;
  --muted: #5a5147;
  --accent: #7d5824;
  --accent-hi: #5f421a;
  --on-accent: #fffaf2;
  --glow: rgba(125, 88, 36, 0.16);
  --shadow: 0 18px 40px -22px rgba(60, 40, 20, 0.35);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f4efe6;
    --bg-2: #ebe4d8;
    --surface: #fffaf2;
    --surface-2: #efe8dc;
    --line: rgba(27, 22, 17, 0.12);
    --line-strong: rgba(27, 22, 17, 0.26);
    --text: #1b1611;
    --muted: #5a5147;
    --accent: #7d5824;
    --accent-hi: #5f421a;
    --on-accent: #fffaf2;
    --glow: rgba(125, 88, 36, 0.16);
    --shadow: 0 18px 40px -22px rgba(60, 40, 20, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
p a, li a, dd a { color: var(--accent); }
p a:hover, li a:hover, dd a:hover { color: var(--accent-hi); }
:where(a, button, summary):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display, h1, h2, h3 {
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 7vw, 5.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; line-height: 1.15; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; margin: 18px 0 0; }
.prose { max-width: 68ch; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose h2 { margin: 1.6em 0 0.6em; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.muted { color: var(--muted); }
.placeholder {
  font-family: var(--mono); font-size: 0.85em;
  border: 1px dashed var(--line-strong); border-radius: 6px;
  padding: 1px 7px; color: var(--muted); white-space: nowrap;
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  text-decoration: none; color: var(--text); background: transparent;
  transition: background-color .2s, border-color .2s, transform .2s, color .2s;
}
.btn:hover { border-color: var(--text); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--on-accent); }
.ext::after { content: "\2197"; font-weight: 400; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
/* Logo slot: 36px tall in the header, 48px in the footer. Ice's wordmark is set in brand() in scripts/build.mjs. */
.brand { display: inline-flex; align-items: center; height: 36px; text-decoration: none; flex: none; min-width: 0; }
.brand-foot { height: 48px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.wordmark img { width: 190px; height: auto; flex: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.brand-foot .wordmark img { width: 300px; max-width: 70vw; }
@media (max-width: 400px) { .site-header .wordmark img { width: 150px; } .site-header .wordmark small { display: none; } }
.wordmark small { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em; color: var(--muted); align-self: flex-end; margin-bottom: 2px; }
.brand-foot .wordmark small { font-size: 0.72rem; margin-bottom: 4px; }

.nav { display: none; margin-left: auto; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--muted); border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.theme-btn {
  margin-left: auto; width: 44px; height: 44px; flex: none;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer;
}
.theme-btn:hover { border-color: var(--line-strong); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="dark"]) .theme-btn .moon { display: block; }
}
.mnav { position: relative; }
.mnav > summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px;
}
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary span, .mnav > summary span::before, .mnav > summary span::after {
  display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: "";
}
.mnav > summary span::before { position: absolute; top: -5px; }
.mnav > summary span::after { position: absolute; top: 5px; }
.mnav-panel {
  position: absolute; right: 0; top: 54px; width: min(280px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow);
}
.mnav-panel a {
  display: flex; align-items: center; min-height: 48px; padding: 0 14px;
  text-decoration: none; font-weight: 600; border-radius: 10px;
}
.mnav-panel a:hover, .mnav-panel a[aria-current="page"] { background: var(--surface-2); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .theme-btn { margin-left: 8px; }
  .mnav { display: none; }
}

/* ---------- sections ---------- */
main { display: block; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lede { margin-top: 12px; }
.link-more { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; gap: 6px; }
.link-more::after { content: "\2192"; color: var(--accent); transition: transform .2s; }
.link-more:hover::after { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 10vw, 120px); overflow: hidden; isolation: isolate; }
.hero-copy { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.hero-logo { margin: 0; display: grid; justify-items: center; gap: 14px; text-transform: none; }
.hero-logo img { width: min(760px, 88vw); filter: drop-shadow(0 12px 28px rgba(0,0,0,.45)); }
.hero-logo span {
  font-family: var(--mono); font-stretch: 100%; font-weight: 500; font-size: clamp(.8rem, 1.6vw, 1.05rem);
  letter-spacing: .6em; margin-right: -.6em; color: var(--muted);
}
.hero-line {
  margin: clamp(28px, 4vw, 44px) 0 0; font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.35rem, 3.4vw, 2.4rem); line-height: 1.05; letter-spacing: -.01em; text-wrap: balance;
}
.hero-line .accent { color: var(--accent); }
.hero .lede { margin-inline: auto; }
.hero .btns { justify-content: center; }
.hero .core-art {
  position: absolute; z-index: -1; left: 50%; top: 50%; transform: translate(-50%, -54%);
  width: min(920px, 150vw); opacity: .9;
}
.core-art { width: min(440px, 64vw); justify-self: center; aspect-ratio: 1; }
.core-art .ring { fill: none; stroke: var(--line-strong); transform-origin: 200px 200px; }
.core-art .ring.dash { stroke-dasharray: 2 9; }
.core-art .ring.thick { stroke-width: 14; stroke: var(--surface-2); }
.core-art .spin-a { animation: spin 90s linear infinite; transform-origin: 200px 200px; }
.core-art .spin-b { animation: spin 140s linear infinite reverse; transform-origin: 200px 200px; }
.core-art .tick { stroke: var(--accent); stroke-width: 2; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ---------- game cards ---------- */
.games { display: grid; gap: 20px; }
@media (min-width: 900px) { .games { grid-template-columns: 2fr 1fr; } .games.full { grid-template-columns: 1fr; } }
.game-card {
  --accent: var(--g-accent); --accent-hi: var(--g-accent-hi); --on-accent: var(--g-on-accent);
  position: relative; display: grid; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  background: #0c0b0a; color: #f2ece2; border: 1px solid rgba(242, 236, 226, 0.1);
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
.game-card:hover, .game-card:focus-within { transform: translateY(-4px); border-color: color-mix(in srgb, var(--g-accent) 55%, transparent); }
.game-art {
  position: relative; min-height: 260px; display: grid; place-items: center; padding: 40px 28px;
  background:
    radial-gradient(60% 70% at 50% 55%, color-mix(in srgb, var(--g-accent) 26%, transparent), transparent 70%),
    repeating-radial-gradient(circle at 50% 120%, transparent 0 22px, rgba(242,236,226,.05) 22px 23px),
    linear-gradient(180deg, #121010, #0a0909);
  overflow: hidden;
}
.game-art .game-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.game-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,11,10,.78) 0%, rgba(12,11,10,.2) 42%, rgba(12,11,10,.3) 72%, #0c0b0a 100%),
              radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--g-accent) 18%, transparent), transparent 70%);
}
.game-art:has(.game-bg) { place-items: start; padding: clamp(18px, 3vw, 28px); }
.game-art:has(.game-bg) .game-logo { width: min(280px, 62%); }
.game-art .game-logo { position: relative; z-index: 1; width: min(460px, 86%); filter: drop-shadow(0 10px 30px rgba(0,0,0,.7)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.game-card:hover .game-bg, .game-card:focus-within .game-bg { transform: scale(1.03); }
.game-card:hover .game-logo, .game-card:focus-within .game-logo { transform: scale(1.02); }
@media (min-width: 900px) { .games .game-art { min-height: 340px; } }
.game-body { padding: 24px clamp(20px, 3vw, 32px) 28px; display: grid; gap: 12px; }
.game-body h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.game-body h3 a { text-decoration: none; }
.game-body h3 a::after { content: ""; position: absolute; inset: 0; }
.game-body p { margin: 0; color: #b0a698; }
.game-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid rgba(242,236,226,.18); border-radius: 999px; padding: 5px 10px; color: #d8d0c4;
}
.pill.live { border-color: var(--g-accent); color: var(--g-accent-hi); }
.pill.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--g-accent); margin-right: 7px; vertical-align: 1px; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.game-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; position: relative; z-index: 1; }
.game-links .btn { min-height: 44px; padding: 0 18px; border-color: rgba(242,236,226,.22); color: #f2ece2; }
.game-links .btn-accent { color: var(--on-accent); border-color: var(--accent); }
.soon-card {
  border: 1px dashed var(--line-strong); border-radius: calc(var(--radius) + 4px);
  padding: 32px 28px; display: grid; align-content: center; gap: 10px; min-height: 220px;
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--line) 60%, transparent) 14px 15px);
}
.soon-card h3 { color: var(--muted); }
.soon-card p { margin: 0; color: var(--muted); max-width: 36ch; }

/* ---------- news ---------- */
.news-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card {
  position: relative; display: grid; gap: 10px; align-content: start;
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
.news-card:hover, .news-card:focus-within { transform: translateY(-4px); border-color: var(--line-strong); }
.news-card time, .news-card .tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.news-card h3 { font-size: 1.12rem; text-transform: none; font-stretch: 112%; font-weight: 750; line-height: 1.25; letter-spacing: 0; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.news-card .top { display: flex; gap: 12px; justify-content: space-between; }

/* ---------- pillars / cards ---------- */
.pillars { display: grid; gap: 16px; counter-reset: p; }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); counter-increment: p; }
.pillar::before { content: "0" counter(p); font-family: var(--mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.12em; display: block; margin-bottom: 14px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { margin: 0; color: var(--muted); }

.cta-band {
  border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 56px);
  background: radial-gradient(80% 140% at 100% 0%, var(--glow), transparent 60%), var(--surface);
  border: 1px solid var(--line);
  display: grid; gap: 20px; align-items: center;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } .cta-band .btns { margin: 0; } }

/* ---------- page head ---------- */
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }

/* ---------- game page ---------- */
.game-page { --accent: var(--g-accent); --accent-hi: var(--g-accent-hi); --on-accent: var(--g-on-accent); }
.game-hero {
  position: relative; overflow: hidden; color: #f2ece2; background: #0b0a09;
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}
.game-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.game-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(55% 65% at 50% 40%, color-mix(in srgb, var(--g-accent) 24%, transparent), transparent 70%),
    repeating-radial-gradient(circle at 50% 130%, transparent 0 26px, rgba(242,236,226,.045) 26px 27px);
}
.game-hero .wrap { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 18px; }
.game-hero .logo { width: min(620px, 92%); filter: drop-shadow(0 14px 40px rgba(0,0,0,.6)); }
.game-hero .tagline { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #d8d0c4; max-width: 46ch; margin: 0; }
.game-hero .btns { justify-content: center; margin-top: 10px; }
.game-hero .btn { color: #f2ece2; border-color: rgba(242,236,226,.24); }
.game-hero .btn-accent { color: var(--on-accent); border-color: var(--accent); }
.crumbs { font-family: var(--mono); font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; color: #b0a698; }
.crumbs a { color: inherit; }
.game-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 960px) { .game-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.features h3 { font-size: 0.98rem; margin-bottom: 8px; }
.features p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 8px 22px; margin: 0; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; }
.side h2 { font-size: 1rem; margin-bottom: 14px; }
.side + .side { margin-top: 28px; }
.linklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.linklist a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--text); }
.linklist a:hover { color: var(--accent); }

/* ---------- contact / press ---------- */
.tiles { display: grid; gap: 16px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; align-content: start; }
.tile h2 { font-size: 1.1rem; }
.tile p { margin: 0; color: var(--muted); }
.tile .btns { margin-top: 8px; }
.asset { display: grid; gap: 14px; }
.asset .swatch { border-radius: 10px; background: #0c0b0a; padding: 24px; border: 1px solid var(--line); }
.asset .swatch.empty { min-height: 120px; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); font-family: var(--mono); font-size: .8rem; border-style: dashed; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 32px; margin-top: 0; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-grid p { color: var(--muted); margin: 14px 0 0; max-width: 34ch; font-size: .95rem; }
.foot-col h2 { font-family: var(--mono); font-stretch: 100%; font-weight: 500; font-size: 0.72rem; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text); }
.foot-col a:hover { color: var(--accent); }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--muted); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* A game's own accent is tuned for dark art. On the light theme its text and buttons use the game's
   darker "accentOnLight" so they keep AA contrast on bone. The hero and cards stay dark in both themes. */
:root[data-theme="light"] .game-page { --accent: var(--g-accent-light); --accent-hi: var(--g-accent-light); --on-accent: #fffaf2; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .game-page { --accent: var(--g-accent-light); --accent-hi: var(--g-accent-light); --on-accent: #fffaf2; }
}
.game-page .game-hero { --accent: var(--g-accent); --accent-hi: var(--g-accent-hi); --on-accent: var(--g-on-accent); }

/* The render behind the game hero: darkened so the logo and buttons stay readable over the fog. */
.game-hero:has(.game-hero-bg)::before {
  background:
    linear-gradient(180deg, rgba(11,10,9,.72) 0%, rgba(11,10,9,.55) 45%, rgba(11,10,9,.92) 100%),
    radial-gradient(55% 65% at 50% 40%, color-mix(in srgb, var(--g-accent) 20%, transparent), transparent 70%);
}
.game-hero { min-height: min(78vh, 760px); display: grid; align-items: center; }

/* ---------- creatures ---------- */
.creatures { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.creature {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #0c0b0a; color: #f2ece2;
  border: 1px solid rgba(242,236,226,.1); transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
.creature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--g-accent, var(--accent)) 50%, transparent); }
.creature-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.creature-body { padding: 14px 18px 18px; display: grid; gap: 4px; }
.creature-body h3 { font-size: 1.05rem; }
.creature-body p { margin: 0; color: #b0a698; font-size: .95rem; }
.diet {
  justify-self: start; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #d8d0c4;
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 4px;
}
.diet::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--diet); }
.strip {
  list-style: none; margin: 0; padding: 4px max(16px, calc((100vw - var(--wrap)) / 2)) 12px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100vw - var(--wrap)) / 2));
  scrollbar-width: thin;
}
.strip .creature { scroll-snap-align: start; }
.press-renders { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.press-renders a { display: grid; gap: 6px; text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--text); }
.press-renders img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.press-renders a:hover img { border-color: var(--accent); }
/* Desktop: text on the left, the render on the right, so the logo never sits on the animal. */
@media (min-width: 960px) {
  .game-hero:has(.game-hero-bg) .wrap { justify-items: start; text-align: left; }
  .game-hero:has(.game-hero-bg) .logo { width: min(460px, 38vw); }
  .game-hero:has(.game-hero-bg) .tagline { max-width: 34ch; }
  .game-hero:has(.game-hero-bg) .btns { justify-content: flex-start; }
  .game-hero .game-hero-bg {
    left: auto; right: 0; width: 76%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
  }
  .game-hero:has(.game-hero-bg)::before {
    background:
      linear-gradient(90deg, rgba(11,10,9,.96) 0%, rgba(11,10,9,.75) 34%, rgba(11,10,9,.1) 62%, rgba(11,10,9,.15) 100%),
      linear-gradient(180deg, rgba(11,10,9,.35) 0%, transparent 30%, transparent 70%, rgba(11,10,9,.9) 100%);
  }
}
/* Phones: centre the rings on the logo, not behind the paragraph. */
@media (max-width: 700px) {
  .hero .core-art { top: 0; transform: translate(-50%, -29%); }
}
