:root {
  --bg: #faf8f5;
  --ink: #171923;
  --muted: #5f6573;
  --card: #ffffff;
  --line: #e7e2d9;
  --link: #c2410c;
  --night: #12141c;
  --night-2: #1c1f2b;
  --night-ink: #f4f1ec;
  --orange: #ff6b3d;
  --teal: #2ec4b6;
  --sun: #ffd23f;
  --violet: #8b7cf6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1117;
    --ink: #eeebe5;
    --muted: #a3a9b6;
    --card: #181b25;
    --line: #2a2e3b;
    --link: #ff9a76;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1117;
  --ink: #eeebe5;
  --muted: #a3a9b6;
  --card: #181b25;
  --line: #2a2e3b;
  --link: #ff9a76;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); margin: 0 0 .45em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0 0 .5em; }
h3 { font-size: 1.2rem; margin: 0 0 .3em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
mark.todo { background: #ffe26b; color: #4a3a00; padding: 0 .35em; border-radius: 4px; font: 600 .78em/1.4 ui-monospace, monospace; letter-spacing: 0; }

/* header */
.top { background: var(--night); color: var(--night-ink); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #ffffff12; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--night-ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--orange); color: var(--night); font-size: 1.1rem; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: #c9c5bd; text-decoration: none; font-weight: 600; font-size: .95rem; }
.top nav a:hover { color: #fff; }

/* buttons, pills */
.btn {
  display: inline-block; background: var(--orange); color: #12141c; text-decoration: none;
  font-weight: 700; padding: 11px 20px; border-radius: 12px;
}
.btn:hover { filter: brightness(1.07); }
.btn.ghost-dark { background: transparent; color: var(--night-ink); box-shadow: inset 0 0 0 2px #ffffff30; }
.pill { display: inline-block; background: var(--teal); color: #08231f; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.pill.quiet { background: var(--line); color: var(--muted); }

/* home hero */
.hero { background: radial-gradient(1200px 500px at 85% 20%, #2a2140 0%, transparent 60%), var(--night); color: var(--night-ink); padding: 64px 0 80px; overflow: hidden; }
.hero-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--orange); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--teal); margin: 0 0 14px; }
.eyebrow a { color: inherit; }
.lede { font-size: 1.15rem; color: #cfcac2; max-width: 34em; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.hero-art { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; justify-self: center; }
.tile { position: absolute; border-radius: 24%; box-shadow: 0 20px 50px #0007; }
.t1 { inset: 18% 18% 18% 18%; background: var(--orange); color: var(--night); display: grid; place-items: center; font-size: clamp(5rem, 13vw, 9rem); font-weight: 900; letter-spacing: -.04em; transform: rotate(-6deg); z-index: 2; }
.t2 { width: 30%; height: 30%; left: 0; top: 4%; background: var(--teal); transform: rotate(12deg); }
.t3 { width: 22%; height: 22%; right: 2%; top: 0; background: var(--sun); border-radius: 50%; }
.t4 { width: 26%; height: 26%; right: 0; bottom: 6%; background: var(--violet); transform: rotate(-14deg); z-index: 3; }
.t5 { width: 16%; height: 16%; left: 8%; bottom: 4%; background: #f4f1ec; border-radius: 50%; }

/* sections */
.block { padding: 64px 16px 8px; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 20px; }
.block-head h2 { margin: 0; }
.block-head p { margin: 0; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.game-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
a.game-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px #0000001a; }
.game-card img, .next-icon { width: 96px; height: 96px; border-radius: 22%; margin-bottom: 10px; }
.game-card h3 { margin: 4px 0 0; }
.game-card p { margin: 0; color: var(--muted); }
.game-card .meta { margin-top: auto; padding-top: 10px; font-size: .85rem; color: var(--muted); }
.game-card.next { border-style: dashed; background: transparent; }
.next-icon { display: grid; place-items: center; border: 2px dashed var(--line); font-size: 2.4rem; color: var(--muted); font-weight: 300; }

.studio-intro { font-size: 1.15rem; max-width: 40em; margin: 0 0 28px; }
.studio-intro em { color: var(--link); font-style: normal; font-weight: 700; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 28px; }
.pillars h3 { position: relative; padding-top: 14px; }
.pillars h3::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 4px; border-radius: 2px; background: var(--orange); }
.pillars div:nth-child(2) h3::before { background: var(--teal); }
.pillars div:nth-child(3) h3::before { background: var(--violet); }
.pillars p { margin: 0; color: var(--muted); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.card p { margin: .3em 0; overflow-wrap: anywhere; }

/* game page */
.game-hero { background: var(--night); color: var(--night-ink); padding: 48px 0 56px; }
.game-hero-row { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.game-hero img { border-radius: 22%; box-shadow: 0 20px 50px #0008; }
.game-hero h1 { margin-bottom: .2em; }
.game-hero .lede { margin-bottom: 16px; }
.platforms { color: #cfcac2; margin-left: 8px; font-size: .95rem; }

/* legal pages */
.prose { max-width: 820px; }
article.prose { padding-top: 44px; padding-bottom: 24px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose .meta { color: var(--muted); }
.prose .eyebrow { color: var(--link); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; background: var(--card); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--night-2); color: var(--night-ink); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* footer */
.foot { margin-top: 72px; background: var(--night); color: #a9a49b; font-size: .9rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 24px 16px; }
.foot p { margin: 0; }
.foot a { color: var(--night-ink); }

@media (max-width: 760px) {
  .hero { padding: 36px 0 52px; }
  .hero-row { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 230px; order: -1; }
  .pillars, .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .game-hero-row { grid-template-columns: 1fr; gap: 20px; }
  .game-hero img { width: 140px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: .88rem; }
  .brand { font-size: 1.05rem; }
}
