/* a valley seen through time: the diorama and its instruments at the top, the story below, one season per chapter */
:root {
  --paper: #f7f4ec;
  --sky: #e2ecef;
  --card: #fffdf8;
  --ink: #1b2130;
  --ink-soft: #4f586b;
  --line: #d8d2c3;
  --water: #2f6290;
  --water-soft: #c7dbe8;
  --rice: #b8861f;
  --rice-bright: #e3be47;
  --persimmon: #c2452c;
  --persimmon-soft: #f3d4ca;
  --cedar: #2a5e38;
  --sweet: #8a5a9e;
  --night: rgba(16, 22, 40, 0);
  --glass: rgba(255, 253, 248, 0.62);
  --glass-strong: rgba(255, 253, 248, 0.55);
  --glass-edge: rgba(255, 255, 255, 0.6);
  --glass-shine: rgba(255, 255, 255, 0.7);
  --pixel: "DotGothic16", "Hiragino Maru Gothic ProN", ui-monospace, monospace;
  --display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", ui-rounded, system-ui, sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, -apple-system, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10141c; --sky: #161f2c; --card: #171d29; --ink: #efe9dc; --ink-soft: #a7afbd; --line: #2a3243;
    --water: #8ab8db; --water-soft: #20344a; --rice: #e3be47; --rice-bright: #efd270; --persimmon: #f08f74;
    --persimmon-soft: #3c2520; --cedar: #8cc79a; --sweet: #c39ad6; --night: rgba(16, 22, 40, 0.42); color-scheme: dark;
    --glass: rgba(18, 23, 34, 0.6); --glass-strong: rgba(18, 23, 34, 0.5); --glass-edge: rgba(255, 255, 255, 0.12); --glass-shine: rgba(255, 255, 255, 0.08);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--body);
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; }
a { color: var(--water); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.3; letter-spacing: 0.01em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rice); }

/* ---------------------------------------------------------------- top bar */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px var(--gutter);
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--glass-edge);
}
#story section, #game, #act { scroll-margin-top: 70px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 1.1rem; }
.brand img { image-rendering: pixelated; }
.brand .kana { font-weight: 500; font-size: 0.8rem; color: var(--ink-soft); }
.top nav { display: flex; gap: 18px; margin-left: auto; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.top nav a:hover { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { font: 500 0.82rem var(--body); border: 0; background: transparent; color: var(--ink-soft); padding: 4px 12px; cursor: pointer; min-height: 32px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .top nav { display: none; } .lang { margin-left: auto; } }

/* ---------------------------------------------------------------- the simulator */
/* the valley fills the first screen; everything you read or touch floats over it on frosted glass */
.sim { position: relative; }
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #9ec3d6; }
#valley { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges;
  touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.hero.zoomed #valley { touch-action: none; }
.hero.dragging #valley { cursor: grabbing; }
.dusk { position: absolute; inset: 0; background: var(--night); mix-blend-mode: multiply; pointer-events: none; }
.glass {
  background: var(--glass); color: var(--ink);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--glass-edge); border-radius: 20px;
  box-shadow: 0 18px 44px -26px rgba(16, 22, 40, 0.6), inset 0 1px 0 var(--glass-shine);
}
.intro, .stats, .dock, .zoom { position: absolute; z-index: 2; }
.intro { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(76px + env(safe-area-inset-top, 0px)); width: min(440px, calc(100% - 32px)); padding: 20px 22px; display: grid; gap: 10px; }
.intro h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; }
.lede { color: var(--ink-soft); font-size: 0.95rem; }
.stats { right: max(16px, env(safe-area-inset-right, 0px)); top: calc(76px + env(safe-area-inset-top, 0px)); width: min(520px, calc(100% - 32px)); padding: 18px 20px 20px; display: grid; gap: 14px; }
.clock { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.year { font-family: var(--pixel); font-size: clamp(3.6rem, 7vw, 6rem); line-height: 0.9; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.when { display: grid; gap: 4px; padding-bottom: 6px; }
.tag { justify-self: start; font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--water-soft); color: var(--water); }
.tag.future { background: var(--persimmon-soft); color: var(--persimmon); }
.tag.future.act { background: var(--water-soft); color: var(--water); }
.date { font-size: 0.85rem; color: var(--ink-soft); }
.readouts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.ro { display: grid; gap: 2px; min-width: 0; }
.ro dt { font-size: 0.74rem; color: var(--ink-soft); line-height: 1.3; }
.ro dd { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ro b { font-family: var(--pixel); font-weight: 400; font-size: 1.45rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ro i { font-style: normal; font-size: 0.74rem; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.ro i.down { color: var(--persimmon); }
.ro i.up { color: var(--cedar); }
.ro.live dt::after { content: " ●"; color: var(--cedar); font-size: 0.7rem; }
.dock { left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: min(980px, calc(100% - 32px)); padding: 12px 14px; display: grid; gap: 10px; }
.controls { display: flex; gap: 14px; align-items: center; }
.play { display: inline-flex; align-items: center; gap: 10px; font: 700 1rem var(--display); color: var(--paper); background: var(--ink); border: 0; border-radius: 999px; padding: 0 20px; min-height: 46px; cursor: pointer; white-space: nowrap; }
.play:hover { background: var(--water); }
.play .ico { font-size: 0.85rem; }
.scrub { flex: 1; display: flex; min-width: 0; }
.scrub input { width: 100%; accent-color: var(--ink); min-height: 44px; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-edge); }
.seg button { font: 500 0.86rem var(--body); border: 0; border-radius: 999px; padding: 6px 14px; min-height: 36px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.seg button[data-path="act"][aria-checked="true"] { background: var(--water); color: #fff; }
.seg button[data-path="base"][aria-checked="true"] { background: var(--persimmon); color: #fff; }
.seg.small button { font-size: 0.78rem; padding: 6px 11px; }
.live-line { font-size: 0.78rem; color: var(--ink-soft); }
.place { margin: 0; font-size: 0.8rem; color: var(--ink-soft); }
.place #wild-share { font-family: var(--pixel); color: var(--ink); }
.zoom { right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.zoom button { width: 44px; height: 44px; border-radius: 999px; cursor: pointer; font: 700 1.3rem/1 var(--display); padding: 0; }
.timeline { max-width: 1180px; margin: 0 auto; padding: 40px max(16px, env(safe-area-inset-right, 0px)) 8px var(--gutter); display: grid; gap: 8px; }
.timeline svg { width: 100%; height: auto; display: block; overflow: visible; }
.timeline figcaption { font-size: 0.85rem; color: var(--ink-soft); }
.timeline .note { opacity: 0.85; }
.ax { font: 12px var(--body); fill: var(--ink-soft); }
.ax-line { stroke: var(--line); stroke-width: 1; }
.lbl { font: 700 13px var(--display); }

/* narrow screens: one stats card on top, the controls at the bottom, the title moves below the valley */
@media (max-width: 900px) {
  .intro { position: static; width: auto; margin: 0; border-radius: 0; border-width: 1px 0 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper);
    padding: 28px max(16px, env(safe-area-inset-right, 0px)) 4px var(--gutter); }
  .stats { left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: auto; top: calc(64px + env(safe-area-inset-top, 0px)); padding: 12px 14px 14px; gap: 10px; border-radius: 18px; }
  .year { font-size: 3.2rem; }
  .readouts { gap: 8px 12px; }
  .ro b { font-size: 1.12rem; }
  .ro dt { font-size: 0.68rem; }
  .ro i { font-size: 0.68rem; }
  .dock { left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: auto; transform: none; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 10px; gap: 8px; border-radius: 18px; }
  .live-line { display: none; }
  .seg button { padding: 6px 10px; font-size: 0.8rem; }
  .seg.small button { padding: 6px 8px; font-size: 0.72rem; }
  .zoom { right: max(12px, env(safe-area-inset-right, 0px)); top: 54%; }
  .zoom button { width: 40px; height: 40px; }
  .place { font-size: 0.74rem; }
}
@media (max-width: 420px) {
  .play { padding: 0 14px; font-size: 0.92rem; }
  .readouts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- the story, as a deck of paper slides */
/* cream sheets on a desk, like a printed presentation: big geometric numerals, small serif titles,
   vertical words, a monogram and blocks of colour. the sheets stay paper in dark mode; only the desk darkens */
:root {
  --d-desk: #e5e1d8; --d-paper: #f8f4ea; --d-ink: #1f1e1b; --d-ink-soft: #5a5850; --d-line: #ddd5c4; --d-grey: #b5ae9f;
  --d-blue: #2a63c4; --d-orange: #df6a43; --d-ochre: #e8b54d; --d-green: #3ea65a; --d-lilac: #8a5a9e;
  --geo: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --serif: "Libre Baskerville", "Baskerville", Georgia, serif;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
@media (prefers-color-scheme: dark) { :root { --d-desk: #121419; } }
.deck {
  /* inside the sheets every colour is a paper colour, whatever the theme */
  --ink: var(--d-ink); --ink-soft: var(--d-ink-soft); --line: var(--d-line); --card: #fffdf7; --sky: #efeee6;
  --water: var(--d-blue); --water-soft: #dfe7f3; --rice: #c8932a; --sweet: var(--d-lilac); --persimmon: var(--d-orange);
  --pad: clamp(24px, 4.6vw, 64px);
  background: var(--d-desk); color: var(--d-ink);
  padding-block: clamp(40px, 7vw, 88px);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; gap: clamp(28px, 5vw, 64px);
}
.slide {
  position: relative; width: 100%; max-width: 1180px; margin: 0 auto; background: var(--d-paper); color: var(--d-ink);
  padding: var(--pad); overflow: hidden; border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 30px 46px -32px rgba(24, 20, 12, 0.55), 0 12px 22px -20px rgba(24, 20, 12, 0.35);
  font-family: var(--geo); font-weight: 400;
}
.slide p { margin: 0; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
:lang(ja) .serif { font-family: var(--mincho); font-weight: 500; }
:lang(ja) .slide { font-family: var(--body); }
.slide h2.serif { font-size: clamp(1.45rem, 2.5vw, 2.1rem); line-height: 1.28; text-wrap: balance; }
.part { display: flex; align-items: baseline; gap: 4px; font-family: var(--geo); line-height: 0.8; }
.part span { font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.25rem); }
.part b { font-weight: 800; font-size: clamp(3.2rem, 7vw, 5.4rem); letter-spacing: -0.03em; }
.kicker { font-family: var(--geo); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--d-ink-soft); }
:lang(ja) .kicker { font-family: var(--body); letter-spacing: 0.12em; }
.body { font-size: 0.98rem; line-height: 1.72; color: var(--d-ink-soft); max-width: 58ch; }
.d-tag { font-size: 1.02rem; line-height: 1.2; white-space: pre-line; }
.vert { writing-mode: vertical-rl; font-family: var(--geo); font-weight: 700; font-size: clamp(0.95rem, 1.5vw, 1.3rem); letter-spacing: 0.32em; text-transform: uppercase; line-height: 1.2; }
:lang(ja) .vert { font-family: var(--mincho); font-weight: 700; letter-spacing: 0.24em; text-transform: none; }
.mono { position: absolute; right: calc(var(--pad) * 0.7); bottom: calc(var(--pad) * 0.55); font-family: var(--geo); font-weight: 500; font-size: 1.15rem; color: var(--d-grey); line-height: 1; }
.mono::after { content: ""; position: absolute; left: -26px; top: 26px; width: 40px; height: 1px; background: var(--d-grey); transform: rotate(-40deg); }
.block { position: absolute; width: 38px; height: 26px; right: calc(var(--pad) * 0.7); bottom: calc(var(--pad) * 0.6); }
.bar { position: absolute; width: clamp(80px, 12vw, 136px); height: 16px; left: var(--pad); top: calc(var(--pad) * 0.55); }
:is(.block, .bar).blue { background: var(--d-blue); } :is(.block, .bar).orange { background: var(--d-orange); }
:is(.block, .bar).ochre { background: var(--d-ochre); } :is(.block, .bar).green { background: var(--d-green); }
.slide .art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.copy { display: grid; gap: 16px; align-content: start; min-width: 0; }
.fig { margin: 4px 0 0; min-width: 0; display: grid; gap: 8px; }
.fig svg { width: 100%; height: auto; overflow: visible; }
.slide figcaption { font-size: 0.78rem; line-height: 1.5; color: var(--d-ink-soft); }
.slide .small { font-size: 0.82rem; color: var(--d-ink-soft); }
.big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.big span { font-family: var(--geo); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--d-orange); }
.big small { color: var(--d-ink-soft); }
.quote { margin: 4px 0 0; padding-left: 16px; border-left: 2px solid var(--d-ochre); display: grid; gap: 4px; }
.quote p { font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.5; }
:lang(ja) .quote p { font-family: var(--mincho); font-style: normal; }
.quote cite { font-style: normal; font-size: 0.78rem; color: var(--d-ink-soft); letter-spacing: 0.04em; }

/* the cover: a word under a painting, a few lines on the left, a vertical line of words on the right */
.cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 0.55fr); grid-template-rows: auto 1fr auto; gap: 22px clamp(20px, 3.4vw, 48px); min-height: min(760px, 86vh); }
.cover .d-tag { grid-area: 1 / 1; }
.cover .cover-art { grid-area: 1 / 2 / 3 / 3; justify-self: center; align-self: end; width: min(100%, 470px); height: auto; mix-blend-mode: multiply; }
.cover .cover-body { grid-area: 2 / 1; align-self: end; font-size: 0.88rem; line-height: 1.6; color: var(--d-ink-soft); max-width: 30ch; }
.cover .stack { grid-area: 3 / 1; align-self: end; display: grid; gap: 6px; }
.cover .stack b { font-family: var(--geo); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.14em; }
.cover .cover-title { grid-area: 3 / 2; text-align: center; font-family: var(--geo); font-weight: 700; font-size: clamp(2.8rem, 7.4vw, 6rem); letter-spacing: 0.08em; line-height: 0.9; }
:lang(ja) .cover .cover-title { font-family: "Zen Maru Gothic", var(--body); font-weight: 900; letter-spacing: 0.1em; }
.cover .vert { grid-area: 1 / 3 / 3 / 4; justify-self: end; }
.cover .block { position: static; grid-area: 3 / 3; justify-self: end; align-self: end; width: 58px; height: 34px; }
.cover .mono { right: auto; bottom: auto; left: 62%; top: calc(var(--pad) * 1.4); }

/* a painting flush to one side, the words on the other */
.art-left, .art-right { display: grid; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.art-left { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.art-right { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.art-left .art, .art-right .art { display: grid; place-items: center; background: var(--panel, transparent); margin-block: calc(var(--pad) * -1); }
.art-left .art { margin-left: calc(var(--pad) * -1); }
.art-right .art { margin-right: calc(var(--pad) * -1); }
.art-left .art img, .art-right .art img { width: min(100%, 520px); }
.art-right .vert.side { position: absolute; left: calc(var(--pad) * 0.32); top: var(--pad); }
.art-right .copy { padding-left: clamp(0px, 2.4vw, 28px); }
.art-right .block { right: auto; left: calc(50% - 19px); }
.slide.ochre { --panel: #edc56c; }
#imo { --panel: #ece2ef; }
.art-right:has(#ch2) { --panel: #e3e9f2; }

/* a painting in the middle, words either side, three numbers under it */
.centered { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr); grid-template-areas: "copy art note" "stats stats stats"; gap: 28px clamp(20px, 3.4vw, 44px); align-items: center; padding-top: calc(var(--pad) * 1.5); }
.centered .copy { grid-area: copy; }
.centered .art { grid-area: art; }
.centered .side-note { grid-area: note; font-size: 0.9rem; }
.centered .d-stats { grid-area: stats; }
.centered .art img { width: min(100%, 340px); margin: 0 auto; }

.trio, .duo { display: grid; gap: 12px; }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trio div, .duo div { background: transparent; border-top: 2px solid var(--d-ink); padding: 14px 2px 0; display: grid; gap: 6px; align-content: start; }
.trio b, .duo b { font-family: var(--geo); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1; letter-spacing: -0.02em; }
.trio span, .duo span, .duo small { font-size: 0.82rem; color: var(--d-ink-soft); }
.duo .base b { color: var(--d-orange); }
.duo .act b { color: var(--d-blue); }

.kcal { display: grid; gap: 7px; }
.kbar { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 4.5em; gap: 10px; align-items: center; font-size: 0.8rem; }
.kbar .track { height: 10px; background: #ece6d8; overflow: hidden; position: relative; }
.kbar .all { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(135deg, #d6cdb9 0 3px, transparent 3px 6px); }
.kbar .dom { position: absolute; inset: 0 auto 0 0; background: var(--d-blue); }
.kbar .v { font-variant-numeric: tabular-nums; color: var(--d-ink-soft); text-align: right; }
.deck .ax { fill: var(--d-ink-soft); font-family: var(--geo); font-size: 12px; }
.deck .ax-line { stroke: #e3dccb; }
.deck .lbl { font-family: var(--geo); font-weight: 600; font-size: 12px; }

/* the imo bars: two ways of planting against the line a person needs */
.imo-fig { gap: 16px; }
.imo-bars { display: grid; gap: 12px; }
.imo-row { display: grid; gap: 6px; }
.imo-label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; }
.imo-label b { font-variant-numeric: tabular-nums; }
.imo-track { position: relative; height: 12px; background: #ebe4d6; }
.imo-track i { position: absolute; inset: 0 auto 0 0; background: var(--d-ochre); }
.imo-row.imo .imo-track i { background: var(--d-lilac); }
.imo-track em { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--d-ink); }
.imo-need { margin: 0; font-size: 0.78rem; color: var(--d-ink-soft); }
.imo-ha { display: grid; gap: 8px; }
.imo-ha-title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d-ink-soft); }
.imo-fig .trio div { padding-top: 10px; }

/* what would change it: the steps, then what anyone can do */
.wide { display: grid; gap: clamp(24px, 3.4vw, 40px); }
.wide .head { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.wide .art.tiny img { width: min(100%, 320px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--d-line); padding: 16px 0 18px; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--geo); font-weight: 800; font-size: 1.3rem; color: var(--d-blue); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.02rem; line-height: 1.35; }
:lang(ja) .steps h3 { font-family: var(--mincho); font-weight: 600; }
.steps .lift { font-family: var(--geo); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--d-orange); }
.steps p { font-size: 0.84rem; line-height: 1.6; color: var(--d-ink-soft); }
.you { border-top: 2px solid var(--d-ink); padding-top: 18px; display: grid; gap: 12px; }
.you h3 { font-size: 1.25rem; }
.you ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px 28px; }
.you li { font-size: 0.9rem; line-height: 1.6; color: var(--d-ink-soft); padding-left: 22px; position: relative; }
.you li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; background: var(--d-green); }

/* the game: its cover with three phones, then what you can do */
.game.cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) auto; grid-template-rows: auto 1fr; gap: 24px clamp(20px, 3.6vw, 52px); min-height: 0; padding-top: calc(var(--pad) * 1.5); }
.game.cover .d-tag { grid-area: 1 / 1; }
.game.cover .copy { grid-area: 2 / 1; align-self: center; gap: 18px; }
.game.cover .cover-title { text-align: left; font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
.game.cover .cover-title { grid-area: auto; }
.game.cover .lead { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.3; }
.game.cover .phones { grid-area: 1 / 2 / 3 / 3; }
.game.cover .vert { grid-area: 1 / 3 / 3 / 4; align-self: start; }
.game.cover .bar { top: calc(var(--pad) * 0.55); }
.store { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 12px; padding: 8px 16px 8px 12px; min-height: 52px; }
.badge small { display: block; font-size: 0.68rem; line-height: 1.1; opacity: 0.85; }
.badge b { display: block; font: 600 1.25rem/1.1 -apple-system, "Helvetica Neue", sans-serif; letter-spacing: -0.01em; }
.badge img { image-rendering: pixelated; }
.meta { font-size: 0.85rem; color: var(--d-ink-soft); }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.phones img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--d-line); box-shadow: 0 22px 34px -26px rgba(24, 20, 12, 0.6); }
.phones img:nth-child(2) { transform: translateY(28px); }
.features { display: grid; gap: clamp(22px, 3vw, 36px); }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.feats li { display: grid; gap: 10px; align-content: start; }
.feats img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; mix-blend-mode: multiply; }
.feats b { font-size: 1.05rem; line-height: 1.3; }
.feats p { font-size: 0.86rem; line-height: 1.6; color: var(--d-ink-soft); }

@media (max-width: 1000px) {
  .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game.cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .game.cover .vert { display: none; }
}
@media (max-width: 760px) {
  .cover, .game.cover { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; min-height: 0; }
  .cover > *, .game.cover > * { grid-area: auto !important; }
  .cover .vert, .game.cover .vert { display: none; }
  .cover .cover-art { width: min(100%, 360px); }
  .cover .cover-title { order: 3; }
  .cover .d-tag { order: 1; } .cover .cover-art { order: 2; } .cover .cover-body { order: 4; max-width: none; } .cover .stack { order: 5; }
  .game.cover .d-tag { order: 0; } .game.cover .copy { order: 1; } .game.cover .phones { order: 2; }
  .game.cover .cover-title { order: 0; }
  .cover .block { position: absolute; right: var(--pad); bottom: var(--pad); width: 40px; height: 26px; }
  .cover .mono { display: none; }
  .art-left, .art-right { grid-template-columns: minmax(0, 1fr); }
  .art-left .art, .art-right .art { margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 0; order: -1; }
  .art-left .art img, .art-right .art img { width: min(100%, 380px); }
  .art-right .vert.side { display: none; }
  .art-right .copy { padding-left: 0; }
  .art-right .block { left: auto; right: calc(var(--pad) * 0.7); }
  .centered { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art" "note" "stats"; }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .trio b { font-size: 1.5rem; }
  .wide .head { grid-template-columns: minmax(0, 1fr); }
  .wide .art.tiny img { width: min(100%, 240px); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones img:nth-child(2) { transform: none; }
  .mono { display: none; }
  .kbar { grid-template-columns: 6em minmax(0, 1fr) 4em; }
}
@media (max-width: 420px) { .feats { grid-template-columns: minmax(0, 1fr); } .trio span { font-size: 0.74rem; } }

/* ---------------------------------------------------------------- sources */
.sources { background: var(--ink); color: var(--paper); padding-block: 64px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px), calc((100% - 1180px) / 2)); padding-right: max(16px, env(safe-area-inset-right, 0px), calc((100% - 1180px) / 2)); display: grid; gap: 18px; }
.sources a { color: var(--rice-bright); }
.sources p { max-width: 75ch; color: color-mix(in srgb, var(--paper) 80%, transparent); font-size: 0.9rem; }
.sources ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 24px; font-size: 0.82rem; }
.sources li { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.sources .fine { font-size: 0.8rem; }
@media (prefers-color-scheme: dark) { .sources { background: #0a0d13; } }
