@font-face { font-family: Anton; src: url('../assets/anton-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --paper: #f3e5c5; --light: #fbefd3; --ink: #211816; --muted: #615248;
  --red: #a11921; --red-deep: #7e131b; --line: #b6a383; --green: #25513a;
  --display: Anton, Impact, "Arial Narrow", "Liberation Sans Narrow", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Courier New", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
  font: 16px var(--sans);
}
* { box-sizing: border-box; }
body { margin: 0; background-color: var(--paper); color: var(--ink); }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .14;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='1' cy='1' r='.35' fill='%23764a31'/%3E%3C/svg%3E");
}
button, input, select { font: inherit; }
button { color: inherit; border: 0; background: none; cursor: pointer; padding: 0; touch-action: manipulation; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #315d89; outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
img { width: 100%; display: block; object-fit: cover; }
figure, p, h1, h2 { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
#app { min-height: 100svh; position: relative; display: flex; flex-direction: column; }
.topbar { border-top: 5px solid var(--red); border-bottom: 1px solid var(--ink); }
.top-inner, .page-body, .footer { width: min(1168px, 100% - 72px); margin-inline: auto; }
.top-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 61px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 9px; justify-self: start; min-height: 46px; text-align: left; }
.brand-mark {
  display: grid; place-items: center; height: 34px; width: 35px;
  border: 1px solid var(--ink); background: var(--red); color: var(--light);
  font: 19px var(--display); letter-spacing: -.03em; transform: rotate(-4deg);
}
.brand-name { font: 800 10px/1 var(--sans); letter-spacing: .08em; }
.top-edition, .eyebrow, .simple-line, .edition-line, .serial, .footer, figcaption, .choice-tag, .tag, .debug-banner, .locked-label {
  font: 700 .72rem/1.15 var(--mono); text-transform: uppercase; letter-spacing: .075em;
}
.top-edition span, .edition-line b { color: var(--red); }
.top-nav { display: flex; justify-content: end; }
.nav-button { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 750; font-size: .82rem; }
.nav-button > span:first-child { font-size: 1.15rem; color: var(--red); }
.page-body { flex: 1; padding-top: 24px; }
.spread { width: 100%; }
.edition-line, .simple-line {
  border-top: 4px solid var(--ink); border-bottom: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 34px; padding: 5px 0; color: var(--ink);
}
.edition-line > span:first-child, .paper-name > span:first-child { display: flex; align-items: center; gap: 8px; }
.edition-line i, .paper-name i { width: 8px; height: 8px; background: var(--red); display: inline-block; border-radius: 50%; }
.cover { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 26px; align-items: center; padding: 24px 0 23px; }
.cover-type { min-width: 0; }
.cover h1 {
  font: 400 clamp(4rem, 8.15vw, 8.45rem)/.89 var(--display);
  letter-spacing: -.02em; transform-origin: left center;
}
.cover h1 span { display: block; }
.cover h1 span + span { color: var(--red); }
.deck { margin-top: 22px; font: 700 clamp(1.12rem, 2.5vw, 1.95rem)/1.05 var(--serif); letter-spacing: -.04em; }
.cover-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 25px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 49px; padding: 10px 16px; border: 2px solid var(--ink);
  font: 780 .92rem/1.12 var(--sans); text-align: center; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 100ms, box-shadow 100ms, background-color 100ms;
}
.button:active, .choice:active { transform: translate(2px, 2px); box-shadow: none; }
.button.primary { background: var(--red); color: #fff6df; }
.button.primary:hover { background: var(--red-deep); }
.button.outline { background: var(--light); }
.button.outline:hover { background: #e9d3a6; }
.button.mini { min-height: 44px; font-size: .78rem; padding-inline: 10px; }
.cover-art { position: relative; border: 2px solid var(--ink); min-width: 0; background: var(--red); }
.cover-art img { aspect-ratio: 1.44; object-position: 50% 48%; }
figcaption { background: var(--ink); color: var(--light); padding: 9px 10px; }
figcaption span { color: #edbe62; padding-right: .5em; }
.home-links { border-block: 2px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; }
.home-link { text-align: left; padding: 13px 15px 16px; position: relative; }
.home-link + .home-link { border-left: 1px solid var(--ink); }
.home-link:hover, .text-button:hover { background: #deba7f36; }
.home-link span { display: block; margin-bottom: 3px; font: 700 .68rem var(--mono); letter-spacing: .06em; }
.home-link i { color: var(--red); font-style: normal; padding-right: .5em; }
.home-link b { font: 700 clamp(1.15rem, 2vw, 1.6rem) var(--serif); }
.home-link em { position: absolute; right: 10px; top: 17px; color: var(--red); font: 700 1.3rem var(--sans); }
.footer { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 25px; padding: 2px 0 max(4px, env(safe-area-inset-bottom)); color: var(--muted); }
.text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 7px; text-decoration: underline; text-underline-offset: 3px; font: 760 .82rem/1.15 var(--sans); }
.footer .text-button { font: 700 .74rem var(--mono); }

.play { max-width: 1010px; margin-inline: auto; }
.deal-banner { display: flex; align-items: end; justify-content: space-between; gap: 12px; border-top: 4px solid var(--ink); padding: 13px 0 12px; }
.deal-banner h1, .page-heading h1 { font: 400 clamp(2.4rem, 6vw, 5.15rem)/.93 var(--display); letter-spacing: .005em; }
.deal-banner h1 { margin-top: 3px; text-transform: uppercase; }
.eyebrow { color: var(--red); }
.deal-place { font: 700 .78rem/1.2 var(--mono); text-align: right; align-self: end; white-space: nowrap; }
.turns { display: flex; justify-content: end; gap: 5px; margin: 7px 0 0; }
.turns i { display: block; border: 1px solid var(--ink); width: 16px; height: 5px; }
.turns .active { background: var(--red); }
.turns .done { background: var(--ink); }
.meter-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.meter { position: relative; display: flex; align-items: center; gap: 12px; min-height: 61px; padding: 7px 11px 10px; }
.meter + .meter { border-left: 1px solid var(--ink); }
.stat-symbol { display: grid; place-items: center; flex: 0 0 35px; height: 35px; background: var(--ink); color: var(--light); font: 800 1.1rem var(--sans); }
.heat .stat-symbol { background: var(--red); }
.stat-copy { display: flex; gap: 7px; align-items: baseline; }
.stat-copy > span { text-transform: uppercase; font: 700 .75rem var(--mono); }
.stat-copy strong { font: 400 1.45rem/.95 var(--display); }
.stat-copy small { font: 700 .75rem var(--mono); color: var(--muted); white-space: nowrap; }
.meter-rule { position: absolute; inset: auto 0 0; height: 4px; background: #a5926d51; }
.meter-rule i { display: block; width: var(--level); height: 100%; background: var(--ink); }
.heat .meter-rule i, .meter.danger .meter-rule i { background: var(--red); }
.meter.danger { background: #a1192110; }
.play-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(17px, 3.4vw, 40px); margin-top: 19px; align-items: start; }
.case-art { border: 2px solid var(--ink); }
.case-art img { aspect-ratio: 1.53; object-position: center 55%; }
.case-brief { display: grid; gap: 4px; margin-top: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.case-brief p { font: .95rem/1.3 var(--serif); }
.move-history { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag { border: 1px solid var(--line); padding: 3px 5px; }
.speaker { display: flex; align-items: center; gap: 9px; min-height: 45px; }
.portrait { flex: 0 0 43px; width: 43px; height: 43px; border: 1px solid var(--ink); }
.speaker div { display: grid; align-content: center; line-height: 1.04; }
.speaker div span { font: 700 .66rem var(--mono); text-transform: uppercase; color: var(--red); letter-spacing: .045em; }
.speaker b { font: 800 .94rem var(--sans); }
.speaker .serial { margin-left: auto; color: var(--muted); text-align: right; }
.decision-panel h2, .dispatch h2, .verdict h2 {
  font: 400 clamp(2rem, 4.6vw, 3.5rem)/.98 var(--display); margin-top: 10px; text-transform: uppercase;
}
.setup { font: italic 1.08rem/1.32 var(--serif); margin: 7px 0 11px; }
.hint { font: .82rem/1.35 var(--sans); color: var(--muted); padding-left: 8px; border-left: 3px solid var(--red); margin: 7px 0 11px; }
.choices { display: grid; gap: 8px; }
.choice {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 9px;
  width: 100%; min-height: 59px; border: 1px solid var(--ink); background: var(--light);
  box-shadow: 2px 2px 0 var(--ink); text-align: left; padding: 6px 9px;
}
.choice:hover { background: #f2d896; }
.choice-index { display: grid; width: 24px; height: 24px; place-items: center; background: var(--ink); color: var(--light); font: 700 .74rem var(--mono); }
.choice-body { display: grid; gap: 2px; min-width: 0; }
.choice-title { font: 780 .94rem/1.13 var(--sans); }
.choice-tag { color: var(--muted); border-left: 1px solid var(--line); padding-left: 7px; text-align: right; }
.choice-arrow { color: var(--red); font-weight: 800; }
.deltas { display: inline-flex; flex-wrap: wrap; column-gap: 8px; row-gap: 1px; font: 750 .73rem/1.18 var(--sans); }
.deltas .gain { color: var(--green); }
.deltas .loss { color: var(--red); }
.delta-zero { color: var(--muted); }
.delta-symbol { font-size: .72em; }
.quiet-actions { display: flex; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 19px; }
.report-layout { display: grid; gap: 16px; margin-top: 19px; }
.report-layout:has(.story) { grid-template-columns: 1.42fr 1fr; }
.dispatch { padding: 12px 0; max-width: 580px; }
.dispatch p, .verdict p { font: 1.06rem/1.35 var(--serif); margin-top: 8px; }
.dispatch p.hint, .verdict p.hint { font: .83rem/1.38 var(--sans); }
.dispatch p.status-note { color: var(--red); font: 750 .84rem var(--sans); }
.dispatch-delta { margin: 9px 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dispatch .button { margin-top: 4px; }
.story { border: 2px solid var(--ink); background: var(--light); box-shadow: 4px 4px 0 var(--ink); align-self: start; }
.fresh-ink { animation: strike .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes strike { from { opacity: .35; transform: translate(8px, -5px) rotate(-1deg); } to { opacity: 1; transform: translate(0) rotate(0); } }
.paper-name { display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 8px 10px; border-bottom: 3px double var(--ink); font: 800 .78rem var(--mono); }
.paper-name > span:last-child { color: var(--red); }
.story-grid { display: grid; grid-template-columns: 35% 1fr; gap: 10px; padding: 10px; }
.story-grid h2 { font: 800 clamp(1.4rem, 3.5vw, 2.5rem)/.99 var(--serif); letter-spacing: -.04em; margin: 4px 0 7px; }
.story-grid p { font: .91rem/1.28 var(--serif); }
.story-illustration { min-height: 104px; height: 100%; max-height: 225px; border: 1px solid var(--ink); }
.causes { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; padding: 6px 10px; border-top: 1px solid var(--line); font: 700 .75rem/1.2 var(--sans); }
.causes span { color: var(--muted); font: 700 .66rem var(--mono); }
.causes strong { color: var(--red); font-size: 1rem; }
.paper-foot { display: flex; padding: 0 10px; align-items: center; justify-content: space-between; gap: 6px; border-top: 1px solid var(--line); }
.verdict { margin-top: 17px; display: grid; grid-template-columns: minmax(120px, .85fr) 1fr; gap: 19px; align-items: center; }
.verdict-art { max-height: 300px; aspect-ratio: 1.6; border: 2px solid var(--ink); }
.verdict .button { margin: 11px 10px 0 0; }
.verdict-score { display: flex; align-items: center; gap: 9px; }
.verdict-score strong, .small-stamp, .stamp { color: var(--red); }
.verdict-score span { font: 700 .72rem var(--mono); }
.stamp, .small-stamp { display: inline-block; border: 2px solid var(--red); padding: 4px 6px; font: 800 .86rem/1 var(--mono); letter-spacing: .03em; transform: rotate(-3deg); }
.small-stamp { font-size: .7rem; white-space: nowrap; }
.inner-page { max-width: 920px; margin-inline: auto; }
.page-heading { padding: 17px 0 15px; }
.page-heading p { font: 1.1rem/1.35 var(--serif); margin-top: 8px; }
.deal-list, .archive-list { display: grid; border-top: 1px solid var(--ink); }
.deal-row { display: grid; grid-template-columns: 108px 1fr auto; gap: 12px; align-items: center; min-height: 89px; padding: 8px 0; border-bottom: 1px solid var(--ink); }
.deal-thumb { height: 73px; border: 1px solid var(--ink); }
.deal-row.locked .deal-thumb { filter: grayscale(.9); }
.deal-row h2, .crew-list h2 { font: 400 1.55rem/1.05 var(--display); margin: 3px 0; }
.deal-row p, .crew-list p { font: .94rem/1.2 var(--serif); }
.deal-right { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 9px; }
.locked-label { color: var(--muted); }
.archive-list { margin-top: 17px; }
.archive-row { min-height: 48px; width: 100%; display: flex; justify-content: space-between; gap: 9px; align-items: center; border-bottom: 1px solid var(--line); text-align: left; font: 700 1.05rem var(--serif); }
.archive-row b, .archive-row.selected { color: var(--red); }
.empty { padding: 14px 0; border-block: 1px solid var(--line); font: 1rem/1.3 var(--serif); }
.crew-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.crew-list article { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.crew-list img { border: 1px solid var(--ink); aspect-ratio: 1; }
dialog { position: fixed; width: min(430px, calc(100vw - 26px)); padding: 0; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: var(--light); color: var(--ink); }
dialog::backdrop { background: #211816aa; }
.dialog-inner { position: relative; padding: 19px; }
.dialog-content h2 { font: 400 2.4rem/1 var(--display); padding-right: 40px; }
.dialog-content p { font: 1rem/1.45 var(--serif); margin-top: 9px; }
.dialog-content .button { margin: 12px 7px 0 0; }
.close-button { position: absolute; top: 5px; right: 5px; width: 44px; height: 44px; font: 700 1.6rem var(--sans); color: var(--red); }
.toggles { margin-top: 8px; }
.toggles label { min-height: 44px; display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.toggles input { width: 20px; height: 20px; accent-color: var(--red); }
.warning, .share-status { margin: 5px 0 9px; padding: 8px; border: 1px solid var(--red); font-size: .87rem; }
.debug-banner { background: var(--red); color: var(--light); padding: 7px; }
.dev-page label { display: grid; gap: 4px; margin-bottom: 10px; font: 700 .85rem var(--sans); }
.dev-page input, .dev-page select { min-height: 44px; max-width: 100%; padding: 6px; border: 1px solid var(--ink); background: var(--light); color: var(--ink); }
.debug-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.debug-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.debug-output { margin-top: 12px; padding: 9px; white-space: pre-line; border-top: 1px solid var(--ink); font: .88rem/1.4 var(--mono); }
.large { font-size: 19px; }
.contrast { --paper: #fff8e2; --light: #fffdf4; --ink: #100d0c; --muted: #322117; --line: #736041; --red: #85111b; --green: #174429; }
.reduced *, .reduced *::before, .reduced *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 760px) {
  .top-inner, .page-body, .footer { width: min(100% - 28px, 560px); }
  .top-inner { min-height: 51px; }
  .page-body { padding-top: 12px; }
  .cover { grid-template-columns: 1fr; gap: 11px; padding: 15px 0 14px; }
  .cover-type { display: contents; }
  .cover h1 { grid-row: 1; font-size: clamp(3.55rem, 13.8vw, 5.8rem); line-height: .9; }
  .deck { grid-row: 3; margin-top: 0; font-size: clamp(1.05rem, 5vw, 1.65rem); }
  .deck br { display: none; }
  .cover-art { grid-row: 2; }
  .cover-art img { aspect-ratio: 2.05; object-position: center 41%; }
  .cover-actions { grid-row: 4; margin-top: 1px; }
  .cover-actions .primary { flex: 1 1 auto; }
  .cover-actions .outline { flex: 0 0 auto; }
  .edition-center { display: none; }
  .home-link { padding-inline: 6px 22px; }
  .home-link span { font-size: .63rem; }
  .home-link em { right: 4px; }
  .deal-banner { padding-top: 8px; padding-bottom: 8px; }
  .deal-banner h1 { font-size: clamp(2rem, 8.8vw, 3.6rem); }
  .deal-place { font-size: .64rem; max-width: 92px; white-space: normal; }
  .meter { min-height: 48px; gap: 5px; padding: 5px 4px 8px; }
  .stat-symbol { flex-basis: 23px; height: 24px; font-size: .83rem; }
  .stat-copy { flex-wrap: wrap; gap: 0 3px; }
  .stat-copy > span { font-size: .64rem; }
  .stat-copy strong { font-size: 1.15rem; }
  .stat-copy small { font-size: .58rem; }
  .play-grid { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
  .case-visual { width: 100%; display: grid; grid-template-columns: 83px 1fr; gap: 5px 8px; }
  .case-art img { height: 63px; aspect-ratio: auto; }
  .case-art figcaption { display: none; }
  .case-brief { margin: 0; padding: 3px 0; gap: 2px; align-content: center; }
  .case-brief p { font-size: .84rem; line-height: 1.2; }
  .move-history { display: none; }
  .decision-panel { width: 100%; }
  .decision-panel h2, .dispatch h2, .verdict h2 { margin-top: 6px; font-size: 2rem; }
  .setup { margin: 5px 0 7px; font-size: 1rem; line-height: 1.22; }
  .hint { margin-block: 5px 8px; font-size: .75rem; }
  .choice { min-height: 54px; gap: 5px; padding-inline: 6px; }
  .choice-tag { font-size: .58rem; padding-left: 4px; }
  .choice-arrow { font-size: .78rem; }
  .choice-title { font-size: .89rem; }
  .deltas { font-size: .68rem; gap: 1px 5px; }
  .delta-symbol { display: none; }
  .report-layout:has(.story), .verdict { grid-template-columns: 1fr; }
  .verdict-art { max-height: 126px; }
  .report-layout { margin-top: 11px; gap: 5px; }
  .dispatch { padding: 5px 0; }
  .quiet-actions { margin-top: 12px; }
  .story-grid { grid-template-columns: 28% 1fr; padding: 8px; gap: 8px; }
  .story-grid h2 { font-size: clamp(1.35rem, 6vw, 1.85rem); }
  .story-grid p { line-height: 1.2; }
  .deal-row { grid-template-columns: 51px 1fr; gap: 5px 8px; }
  .deal-thumb { height: 56px; }
  .deal-right { grid-column: 2; justify-content: start; }
  .crew-list { grid-template-columns: 1fr; }
  .footer { margin-top: 15px; font-size: .61rem; }
}
@media (max-width: 400px) {
  .top-edition { display: none; }
  .top-inner { grid-template-columns: 1fr 1fr; }
  .cover-actions .button { padding-inline: 10px; }
  .large .choice { grid-template-columns: auto 1fr auto; }
  .large .choice-arrow { display: none; }
  .large .cover h1 { font-size: clamp(3.1rem, 13vw, 4.8rem); }
}
