@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink-950: #070b0d;
  --ink-900: #0b1114;
  --ink-800: #121b20;
  --ink-700: #1b272e;
  --ink-500: #3a4a53;
  --paper: #f4ecd8;
  --paper-dim: #b9b3a2;
  --lacquer: #c9382c;
  --gold: #e8b54a;
  --gold-line: rgba(232, 181, 74, 0.28);
  --fire: #ff5a1f;
  --water: #1fa8ff;
  --earth: #c98a3a;
  --air: #7df0d2;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink-900); color: var(--paper);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink-900); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(11, 17, 20, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--gold-line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 650 18px/1 var(--serif); letter-spacing: 0.01em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-size: 15px; }
.nav a { text-decoration: none; color: var(--paper-dim); transition: color .2s; }
.nav a:hover { color: var(--paper); }
.nav .lang { border: 1px solid var(--gold-line); border-radius: 999px; padding: 5px 12px; color: var(--paper); font-weight: 600; font-size: 13px; letter-spacing: .06em; }
@media (max-width: 560px) { .nav .hide-s { display: none; } }

/* Seal */
.seal path { fill: none; stroke-linecap: round; }

/* Hero */
.hero { position: relative; padding: clamp(56px, 10vw, 128px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero h1 { font: 700 clamp(42px, 7.2vw, 88px)/1.02 var(--serif); letter-spacing: -0.02em; margin: 18px 0 24px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--fire), var(--earth) 35%, var(--air) 65%, var(--water)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--paper-dim); max-width: 34em; margin: 0; }
.hero-seal { justify-self: center; width: min(100%, 360px); aspect-ratio: 1; }
.hero-seal svg { width: 100%; height: 100%; overflow: visible; }
.hero-seal .spin { transform-origin: 50% 50%; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-seal .spin { animation: none; } }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-seal { order: -1; width: 120px; justify-self: start; }
}

/* Principles */
.principles { border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }
.principles ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--wrap); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principles li { padding: 28px 24px 30px; border-left: 1px solid var(--gold-line); }
.principles li:first-child { border-left: 0; padding-left: 0; }
.principles b { display: block; font: 650 20px/1.3 var(--serif); margin-bottom: 6px; }
.principles span { color: var(--paper-dim); font-size: 15px; }
@media (max-width: 760px) {
  .principles ul { grid-template-columns: 1fr; }
  .principles li, .principles li:first-child { border-left: 0; padding: 22px 0; border-top: 1px solid var(--gold-line); }
  .principles li:first-child { border-top: 0; }
}

/* Game chapters */
.chapter { padding: clamp(72px, 11vw, 140px) 0 0; }
.chapter-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 28px; }
.chapter-num { font: 700 15px/1 var(--serif); color: var(--gold); letter-spacing: .1em; }
.chapter-rule { flex: 1; height: 1px; background: var(--gold-line); }

.banner { position: relative; border-radius: 22px; overflow: hidden; background: var(--ink-800); border: 1px solid var(--gold-line); }
.banner > img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 11, 13, .88)); pointer-events: none; }
.banner-title { position: absolute; left: clamp(16px, 3vw, 36px); right: 16px; bottom: clamp(16px, 3vw, 32px); z-index: 1; display: flex; align-items: center; gap: clamp(12px, 2vw, 20px); }
.app-icon { width: clamp(56px, 7vw, 84px); height: auto; aspect-ratio: 1; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(244, 236, 216, .14), 0 8px 24px rgba(0, 0, 0, .45); flex: none; }
.banner-title h2, .game-title h2 { font: 700 clamp(28px, 4.6vw, 52px)/1.05 var(--serif); margin: 0; letter-spacing: -0.01em; }
.banner-title p, .game-title p { margin: 6px 0 0; color: var(--paper-dim); font-size: clamp(14px, 1.6vw, 17px); }
@media (max-width: 560px) { .banner > img { aspect-ratio: 4 / 3; object-position: 50% 40%; } }

.game-title { display: flex; align-items: center; gap: clamp(12px, 2vw, 20px); margin-bottom: 28px; }

.game-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 64px); margin-top: clamp(28px, 4vw, 44px); }
.game-body .pitch { font: 500 clamp(20px, 2.3vw, 26px)/1.4 var(--serif); margin: 0 0 18px; }
.game-body p { margin: 0 0 14px; color: var(--paper-dim); }
@media (max-width: 820px) { .game-body { grid-template-columns: 1fr; } }

.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gold-line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--gold-line); font-size: 15px; }
.facts li span:first-child { color: var(--paper-dim); }
.facts li span:last-child { text-align: right; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(232, 181, 74, .18); }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.links a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--gold-line); transition: border-color .2s, background .2s; }
.links a:hover { border-color: var(--gold); background: rgba(232, 181, 74, .08); }

/* Screenshot strips */
.strip { margin-top: clamp(32px, 5vw, 56px); display: grid; gap: clamp(10px, 1.6vw, 18px); }
.strip img { width: 100%; border-radius: 14px; border: 1px solid rgba(244, 236, 216, .08); background: var(--ink-800); }
.strip.portrait { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip.portrait img { aspect-ratio: 1320 / 2868; object-fit: cover; }
.strip.landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.strip.landscape img { aspect-ratio: 2868 / 1320; object-fit: cover; }
@media (max-width: 760px) {
  .strip.portrait { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .strip.portrait::-webkit-scrollbar { display: none; }
  .strip.portrait img { flex: 0 0 62%; width: 62%; min-width: 0; scroll-snap-align: start; }
  .strip.landscape { grid-template-columns: 1fr; }
}

/* Contact */
.contact { padding: clamp(88px, 12vw, 160px) 0 clamp(64px, 9vw, 112px); }
.contact h2 { font: 700 clamp(32px, 5vw, 56px)/1.1 var(--serif); margin: 14px 0 18px; }
.contact p { color: var(--paper-dim); max-width: 36em; margin: 0 0 28px; }
.mail { display: inline-flex; align-items: center; gap: 10px; font: 600 clamp(18px, 2.6vw, 26px)/1.2 var(--sans); text-decoration: none; color: var(--ink-950); background: var(--paper); padding: 16px 24px; border-radius: 14px; box-shadow: 0 2px 0 #b9b3a2; transition: transform .15s, box-shadow .15s; word-break: break-all; }
.mail:hover { transform: translateY(-1px); box-shadow: 0 3px 0 #b9b3a2; }
.mail:active { transform: translateY(2px); box-shadow: 0 0 0 #b9b3a2; }

/* Footer */
.foot { border-top: 1px solid var(--gold-line); padding: 28px 0 40px; font-size: 14px; color: var(--paper-dim); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paper); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Legal text pages */
.doc { padding: clamp(48px, 8vw, 96px) 0 64px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font: 700 clamp(32px, 5vw, 48px)/1.1 var(--serif); margin: 0 0 8px; }
.doc h2 { font: 650 22px/1.3 var(--serif); margin: 36px 0 8px; }
.doc p, .doc li { color: var(--paper-dim); }
.doc strong { color: var(--paper); font-weight: 600; }
.doc hr { border: 0; border-top: 1px solid var(--gold-line); margin: 56px 0; }
.doc .switch { margin: 0 0 32px; font-size: 14px; }
