/* 刷り出しの世界。地は作業台の灰色、紙は白、文字は墨。色はプロセスカラーとその刷り重ねだけ。 */

@font-face { font-family: "Archivo Display"; src: url("../fonts/archivo-display.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Commit Mono"; src: url("../fonts/commit-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("../fonts/zen-kaku-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #e6e9ed;
  --paper: #fcfcfb;
  --ink: #14171c;
  --ink-soft: #4a4f58;
  --well: #e9ebee;
  --well-deep: #dcdfe4;
  --line: #c3c8d0;
  --c: #00a0e0;
  --m: #e4007f;
  --y: #ffe600;
  --r: #e8380d;
  --g: #009a44;
  --c-text: #00719f;
  --m-text: #c2006b;
  --r-text: #bf2d0a;
  --g-text: #0a7638;
  --grey-text: #666d77;
  --display: "Archivo Display", "Zen Kaku Gothic New", sans-serif;
  --head: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", sans-serif;
  --mono: "Commit Mono", ui-monospace, Menlo, Consolas, monospace;
  --spring: linear(0, 0.203, 0.459, 0.765, 0.995, 1.111, 1.166, 1.155, 1.118, 1.065, 1.019, 0.992, 0.975, 0.972, 0.977, 0.984, 0.993, 1, 1.003, 1.005, 1.004, 1.003, 1);
  --settle: linear(0, 0.09, 0.232, 0.36, 0.516, 0.654, 0.768, 0.84, 0.909, 0.958, 0.989, 1.005, 1.017, 1.021, 1.022, 1.02, 1.017, 1.014, 1.01, 1.007, 1.005, 1.003, 1);
  --shadow: 0 1px 0 rgba(20, 23, 28, .05), 0 28px 56px -28px rgba(20, 23, 28, .34);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--ground); scrollbar-width: thin; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.9 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--y); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 4px var(--y); }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
code, .num { font-family: var(--mono); font-size: .92em; font-variant-numeric: tabular-nums; }
i { font-style: normal; }

/* ---- 空間 ---- */
#field { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.no-gl #field { display: none; }
.is-still #field { position: absolute; height: 100svh; }
.can-pick, .can-pick .stage { cursor: pointer; }

/* 環境で変わる文。空間が無い時や止めている時に、起きないことを書いたままにしない。 */
.nogl-only, .no-gl .gl-only, .no-gl .motion-only, .is-still .motion-only { display: none; }
.no-gl .nogl-only { display: block; }

/* ---- 画面の枠。紙の端に付く角の印と色玉 ---- */
.frame { position: fixed; inset: 12px; z-index: 3; pointer-events: none; }
.frame-corner { position: absolute; width: 16px; height: 16px; border: 0 solid var(--ink); opacity: .7; }
.frame-corner:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.frame-corner:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.frame-corner:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.frame-corner:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.frame-strip { position: absolute; right: 0; top: 50%; display: grid; gap: 2px; transform: translateY(-50%); }
.frame-strip i { display: block; width: 8px; height: 16px; background: var(--c); }
.frame-strip i:nth-child(2) { background: var(--m); }
.frame-strip i:nth-child(3) { background: var(--y); }
.frame-strip i:nth-child(4) { background: var(--ink); }
.frame-strip i:nth-child(5) { background: var(--r); }
.frame-strip i:nth-child(6) { background: var(--g); }

/* ---- 上の帯 ---- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 40px 0; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar-mark { display: inline-flex; align-items: baseline; gap: 8px; height: 40px; padding: 0 16px; background: var(--ink); color: var(--paper); text-decoration: none; line-height: 40px; }
.bar-mark b { font: 700 20px/40px var(--display); letter-spacing: .01em; }
.bar-mark span { font: 700 13px/40px var(--head); }
.bar-read { font: 400 12px/1 var(--mono); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.no-gl .bar-read, .is-still .bar-read { display: none; }
.bar-nav { display: flex; gap: 4px; padding: 4px; background: var(--paper); border-radius: 999px; box-shadow: 0 1px 0 rgba(20, 23, 28, .06), 0 12px 24px -12px rgba(20, 23, 28, .3); }
.bar-nav a { display: block; height: 32px; padding: 0 16px; border-radius: 999px; font: 700 14px/32px var(--head); text-decoration: none; transition: background-color .15s; }
.bar-nav a:hover { background: var(--well); }

/* ---- 題字の段 ---- */
main { position: relative; z-index: 1; }
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 120px 56px 56px; }
.hero-fade { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.hero-title { position: absolute; left: 56px; right: 56px; top: 18svh; font: 700 clamp(88px, 24vw, 380px)/.84 var(--display); letter-spacing: -.01em; text-align: center; animation: late .4s 1.6s both; }
.hero-title span { white-space: nowrap; }
.has-gl .hero-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); animation: none; }
.no-gl .hero-title { animation: none; }
@keyframes late { from { opacity: 0; } to { opacity: 1; } }
.hero-text { max-width: 34em; display: grid; gap: 16px; justify-items: start; }
.hero-lead { font: 700 clamp(22px, 2.6vw, 32px)/1.45 var(--head); font-feature-settings: "palt"; word-break: keep-all; overflow-wrap: anywhere; }
.hero-text p:not(.hero-lead) { color: var(--ink-soft); }
.readout { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 32px; font: 400 12px/1.6 var(--mono); }
.readout div { display: flex; justify-content: space-between; gap: 16px; }
.readout dt { font-family: var(--body); color: var(--ink-soft); }
.readout dd { font-variant-numeric: tabular-nums; }

/* ---- 操作の部品 ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 14px/1 var(--head); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, transform .5s var(--spring); }
.btn:hover { background: var(--well); }
.btn:active { transform: scale(.95); transition-duration: .08s; }
.btn-ink { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2b3038; }
.link { padding: 0; border: 0; background: none; font: 700 13px/1.6 var(--head); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link:hover { text-decoration-thickness: 2px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--well); }
.seg-item { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: 700 13px/1 var(--head); cursor: pointer; transition: background-color .15s; }
.seg-item[aria-pressed="true"] { background: var(--paper); box-shadow: 0 1px 2px rgba(20, 23, 28, .24); }
.dot { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 999px; background: var(--ink); vertical-align: -1px; }
.dot-m { background: var(--m); } .dot-c { background: var(--c); } .dot-r { background: var(--r); } .dot-g { background: var(--g); } .dot-k { background: #a9aeb6; }

/* ---- 段と紙 ---- */
.stage { min-height: 100svh; display: grid; place-items: center; padding: 96px 56px; margin-top: 70svh; }
.stage-last { margin-bottom: 24svh; }
.sheet { position: relative; width: min(1180px, 100%); padding: 64px; background: var(--paper); border-radius: 2px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
/* 紙の四隅の、断ち落としの角 */
.sheet::before { --t: 20px; content: ""; position: absolute; inset: calc(var(--t) * -1); pointer-events: none; opacity: .75;
  background:
    linear-gradient(var(--ink), var(--ink)) left 0 top var(--t) / 12px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left var(--t) top 0 / 1px 12px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right 0 top var(--t) / 12px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right var(--t) top 0 / 1px 12px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left 0 bottom var(--t) / 12px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left var(--t) bottom 0 / 1px 12px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right 0 bottom var(--t) / 12px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right var(--t) bottom 0 / 1px 12px no-repeat; }
.sheet h2 { font: 700 clamp(56px, 9.5vw, 136px)/1 var(--head); font-feature-settings: "palt"; letter-spacing: -.02em; }
.sheet p { max-width: 36em; }
.sheet-head { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; }
.sheet-head h2 { grid-column: span 5; }
.sheet-lead { grid-column: span 7; display: grid; gap: 12px; }
.sheet-side { grid-column: span 4; display: grid; gap: 16px; align-content: start; }
.sheet-main { grid-column: span 8; min-width: 0; }
.sheet-game .sheet-main { grid-column: span 7; }
.sheet-game .sheet-side { grid-column: span 5; }
.sheet-foot { grid-column: 1 / -1; max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--well-deep); }
.sheet-foot span { font: 400 12px/1.6 var(--mono); color: var(--grey-text); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; color: var(--ink-soft); }

/* ---- 面積図 ---- */
.map { grid-column: 1 / -1; position: relative; aspect-ratio: 16 / 7; background: var(--well-deep); }
.map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-cell { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 16px; border: 0; background: none; text-align: left; cursor: pointer; overflow: hidden; }
.map-cell:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.map-cell:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 6px var(--y); }
.map-name { font: 400 13px/1.3 var(--mono); white-space: nowrap; }
.map-meta { font: 400 11px/1.5 var(--mono); color: var(--grey-text); white-space: nowrap; }
.map-cell.is-tiny { padding: 4px 8px; }
.map-cell.is-tiny .map-meta { display: none; }
.map-cell.is-tiny .map-name { font-size: 11px; }

/* ---- 音 ---- */
.seq { display: grid; gap: 20px; }
.seq-scope { width: 100%; height: 72px; display: block; background: var(--well); border-radius: 4px; }
.seq-grid { --label: 56px; --gap: 4px; position: relative; display: grid; gap: var(--gap); }
.seq-row { display: grid; grid-template-columns: var(--label) repeat(16, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.seq-row-gap { margin-top: 12px; }
.seq-label { font: 400 11px/1 var(--mono); color: var(--grey-text); white-space: nowrap; }
.seq-row:nth-child(n+6) .seq-label { font-family: var(--body); }
.seq-cell { height: 36px; padding: 0; border: 0; border-radius: 4px; background: var(--well); cursor: pointer; transition: background-color .1s, transform .45s var(--spring); }
.seq-cell-beat { background: var(--well-deep); }
.seq-cell:hover { background: #cdd1d8; }
.seq-cell[aria-pressed="true"] { background: var(--ink); }
.seq-cell:active { transform: scale(.84); transition-duration: .06s; }
.seq-cell:focus-visible { position: relative; z-index: 2; }
.seq-head { position: absolute; top: 0; bottom: 0; left: calc(var(--label) + var(--gap) / 2); width: calc((100% - var(--label)) / 16); background: var(--y); mix-blend-mode: multiply; border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.is-playing .seq-head { opacity: 1; }
.seq-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.seq-play { min-width: 104px; }
.seq-play .i-stop, .is-playing .seq-play .i-play { display: none; }
.is-playing .seq-play .i-stop { display: inline; }
.seq-play path { fill: currentColor; }
.seq-range { display: grid; gap: 4px; font: 400 12px/1.4 var(--body); color: var(--ink-soft); }
.seq-range output { font-family: var(--mono); color: var(--ink); }
.seq-note { font-size: 13px; color: var(--ink-soft); }
.seq-note:empty { display: none; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 128px; height: 20px; margin: 0; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: var(--line); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border: 0; border-radius: 999px; background: var(--ink); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 999px; background: var(--ink); }

/* ---- 対局 ---- */
.hex { display: grid; gap: 16px; }
.hex-board { width: 100%; height: auto; display: block; overflow: visible; }
.hex-edge-ai { fill: var(--c); }
.hex-edge-me { fill: var(--ink); }
.hex-cell { outline: none; }
.hex-cell polygon { fill: var(--paper); stroke: var(--line); stroke-width: .05; transition: fill .12s; }
.hex-ghost { fill: var(--ink); opacity: 0; transition: opacity .12s; }
.is-my-turn .hex-cell:not(.is-full) { cursor: pointer; }
.is-my-turn .hex-cell:not(.is-full):hover .hex-ghost { opacity: .22; }
.hex-cell:focus-visible polygon { fill: var(--y); stroke: var(--ink); stroke-width: .12; }
.hex-heat-dot { fill: var(--c); opacity: .36; pointer-events: none; }
.hex-stone { pointer-events: none; transform-box: fill-box; transform-origin: center; transition: transform .52s var(--spring), opacity .1s; }
.hex-stone.is-in { transform: scale(.3); opacity: 0; }
.hex-stone-shade { fill: rgba(20, 23, 28, .22); }
.hex-stone-me .hex-stone-body { fill: var(--ink); }
.hex-stone-ai .hex-stone-body { fill: var(--c); }
.hex-stone-shine { fill: #fff; opacity: .2; }
.hex-stone-last { fill: var(--y); opacity: 0; }
.is-last .hex-stone-last { opacity: 1; }
.is-chain .hex-stone-body { stroke: var(--y); stroke-width: .16; }
.hex-status { min-height: 30px; font: 700 15px/1.9 var(--head); }
.hex-meter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.hex-meter-label { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.hex-meter-label output { font-family: var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.hex-meter-bar { flex: 1 1 96px; height: 8px; border-radius: 999px; background: var(--ink); overflow: hidden; }
.hex-meter-bar i { display: block; height: 100%; background: var(--c); transform-origin: left; transform: scaleX(.5); transition: transform .4s var(--settle); }
.hex-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---- 奥付。本の最後のページのように、小さい字で詰めて組む ---- */
.sheet-colophon .sheet-side { grid-column: span 5; gap: 32px; justify-items: start; }
.colophon { grid-column: span 7; border-top: 1px solid var(--ink); font-size: 14px; line-height: 1.8; }
.colophon div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--well-deep); }
.colophon dt { font: 700 13px/1.95 var(--head); }
.colophon dd a { font-family: var(--mono); font-size: 12px; white-space: nowrap; }

/* ---- 読む窓 ---- */
.reader { width: min(980px, calc(100vw - 32px)); height: min(88svh, 920px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 2px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -24px rgba(20, 23, 28, .5); overflow: hidden; }
.reader[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: rise .42s var(--settle); }
.reader::backdrop { background: rgba(20, 23, 28, .46); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.reader-head { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 24px; background: var(--ink); color: var(--paper); }
.reader-path { font: 400 14px/1.4 var(--mono); }
.reader-meta { flex: 1; font: 400 12px/1.4 var(--body); color: #b9bec7; }
.reader-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; transition: background-color .15s; }
.reader-close:hover { background: #2f343d; }
.reader-body { overflow: auto; outline-offset: -2px; scrollbar-color: var(--line) var(--paper); }
.reader pre { margin: 0; padding: 16px 0 32px; font: 400 12.5px/1.75 var(--mono); tab-size: 2; counter-reset: l; min-width: max-content; }
.ln { display: block; padding: 0 24px 0 72px; position: relative; counter-increment: l; white-space: pre; }
.ln::before { content: counter(l); position: absolute; left: 0; width: 56px; text-align: right; color: #a3a9b2; }
.ln.is-hit { background: #fff6a6; }
.tk { color: var(--m-text); } .ts { color: var(--c-text); } .tn { color: var(--r-text); } .tf { color: var(--g-text); } .tc { color: var(--grey-text); }

.noscript { position: relative; z-index: 2; margin: 0; padding: 24px 56px; }

/* ---- 裏側ページ。読み物の組み ---- */
.read { overflow-x: clip; }
.article { padding: 120px 56px 96px; display: grid; justify-items: center; }
.sheet-article { display: block; width: min(960px, 100%); padding: 72px 96px 56px; }
.article-head { display: grid; gap: 24px; padding-bottom: 40px; }
.article-head h1 { font: 700 clamp(64px, 12vw, 152px)/1 var(--head); letter-spacing: -.02em; }
.article-head p { font: 700 18px/1.9 var(--head); max-width: 32em; }
.sheet-article section { padding-top: 56px; display: grid; gap: 16px; }
.sheet-article h2 { font: 700 32px/1.3 var(--head); letter-spacing: 0; padding-top: 24px; border-top: 1px solid var(--ink); }
.sheet-article h3 { font: 700 18px/1.5 var(--head); padding-top: 16px; }
.sheet-article p, .sheet-article li, .sheet-article dd { max-width: 38em; font-size: 16px; line-height: 2; }
.sheet-article a { text-decoration-color: var(--c); text-decoration-thickness: 2px; }
.plain { display: grid; gap: 8px; }
.plain li { position: relative; padding-left: 20px; }
.plain li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 2px; background: var(--ink); }
.cands { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: cand; }
.cands li { counter-increment: cand; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 8px; border-radius: 999px; background: var(--well); font: 700 14px/1 var(--head); }
.cands li::before { content: counter(cand); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--paper); font: 400 12px/1 var(--mono); }
.cands .is-picked { background: var(--ink); color: var(--paper); }
.cands .is-picked::before { background: var(--y); color: var(--ink); }
.fig { margin: 16px -40px; padding: 32px 40px 24px; background: var(--well); display: grid; gap: 16px; }
.fig svg { width: 100%; height: auto; display: block; }
.fig figcaption { font-size: 13px; line-height: 1.8; color: var(--ink-soft); max-width: 44em; }
.fig-box rect, .fig-sheet rect { fill: var(--paper); }
.fig-sheet rect { stroke: var(--line); }
.fig-shadow rect { fill: rgba(20, 23, 28, .16); }
.fig-arrow path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fig-ink, .fig-ink rect { fill: var(--ink); }
.f-m { fill: var(--m); } .f-c { fill: var(--c); } .f-r { fill: var(--r); } .f-g { fill: var(--g); } .f-k { fill: #a9aeb6; }
.fig-head text { font: 700 14px var(--head); fill: var(--ink); }
.fig-note text { font: 400 12px var(--body); fill: var(--ink-soft); }
.sheet-article pre { margin: 8px -40px; padding: 24px 40px; background: var(--ink); color: #e9ebee; font: 400 13px/1.9 var(--mono); overflow-x: auto; tab-size: 2; }
.sheet-article pre .tk { color: #ff7cc0; } .sheet-article pre .ts { color: #6fd0ff; } .sheet-article pre .tn { color: #ff9d7a; } .sheet-article pre .tf { color: #6fe0a0; } .sheet-article pre .tc { color: #9aa1ab; }
.snags { display: grid; gap: 0; }
.snags div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--well-deep); }
.snags dt { font: 700 16px/1.7 var(--head); }
.snags dd { font-size: 15px; line-height: 1.95; }
.checks { width: 100%; border-collapse: collapse; font-size: 14px; }
.checks th, .checks td { padding: 12px 16px 12px 0; text-align: left; border-bottom: 1px solid var(--well-deep); font-weight: 400; }
.checks thead th { font: 700 13px/1.5 var(--head); border-bottom-color: var(--ink); }
.checks td:not(:first-child) { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.weights { display: grid; gap: 4px; padding-top: 8px; }
.weight { display: grid; grid-template-columns: 200px minmax(0, 1fr) 72px; align-items: center; gap: 16px; font: 400 12px/2 var(--mono); }
.weight-bar { height: 12px; background: var(--well); }
.weight-bar i { display: block; height: 100%; transform-origin: left; background: var(--ink); }
.weight-bar .weight-c { background: var(--c); } .weight-bar .weight-m { background: var(--m); } .weight-bar .weight-y { background: var(--y); }
.weight-num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet-article .sheet-foot { margin-top: 56px; align-items: center; }

/* ---- 狭い画面 ---- */
@media (max-width: 860px) {
  .frame { inset: 8px; }
  .frame-strip { display: none; }
  .bar { padding: 16px 16px 0; gap: 8px; }
  .bar-read { display: none; }
  .bar-mark { padding: 0 12px; }
  .bar-mark span { display: none; }
  .bar-nav a { padding: 0 12px; font-size: 13px; }
  .hero { padding: 96px 24px 40px; }
  .hero-fade { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-title { left: 24px; right: 24px; top: 16svh; font-size: clamp(88px, 34vw, 200px); }
  .hero-title span { display: block; }
  .readout { justify-self: start; }
  .stage { padding: 72px 16px; margin-top: 56svh; }
  .sheet { padding: 32px 20px; gap: 28px 0; grid-template-columns: minmax(0, 1fr); }
  .sheet::before { --t: 12px; background-size: 8px 1px, 1px 8px, 8px 1px, 1px 8px, 8px 1px, 1px 8px, 8px 1px, 1px 8px; }
  .sheet > *, .sheet-head h2, .sheet-lead, .sheet-game .sheet-main, .sheet-game .sheet-side { grid-column: 1 / -1; }
  .sheet-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sheet-game .sheet-side { order: -1; }
  .map { aspect-ratio: 4 / 5; }
  .seq-grid { --label: 40px; --gap: 2px; }
  .seq-cell { height: 32px; border-radius: 2px; }
  .seq-label { font-size: 10px; }
  .colophon { font-size: 13px; }
  .colophon div { grid-template-columns: 3em minmax(0, 1fr); gap: 12px; }
  .ln { padding-left: 52px; padding-right: 16px; }
  .ln::before { width: 40px; }
  .article { padding: 96px 16px 64px; }
  .sheet-article { padding: 40px 20px 32px; }
  .fig, .sheet-article pre { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .fig svg { min-width: 640px; }
  .fig { overflow-x: auto; }
  .snags div { grid-template-columns: minmax(0, 1fr); }
  .weight { grid-template-columns: 124px minmax(0, 1fr) 56px; gap: 8px; font-size: 11px; }
}

/* ---- 動きを減らす設定 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms; animation-duration: .01ms; animation-delay: 0s; }
}
