/* SOMEBODY SHOULD — the "Meter" style (design/visual/направления.html, direction C): Inter Tight for text and big numbers,
   JetBrains Mono for labels and columns, one accent. Light and dark themes. */
/* the fonts live in fonts/ (OFL, licences there; owner's decision 10.11: no Google Fonts): variable files, one per subset */
@font-face { font-family: "Inter Tight"; font-weight: 400 900; font-display: swap; src: url(fonts/inter-tight-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-weight: 400 900; font-display: swap; src: url(fonts/inter-tight-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-weight: 400 900; font-display: swap; src: url(fonts/inter-tight-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 700; font-display: swap; src: url(fonts/jetbrains-mono-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 700; font-display: swap; src: url(fonts/jetbrains-mono-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 700; font-display: swap; src: url(fonts/jetbrains-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --paper: #f3f2ee; --ink: #0f0f0f; --muted: #6f6e69; --rule: #d8d6cf; --card: #ffffff; --dark: #141414;
  --acc: #c2370d; --red: var(--acc); --deep: #233a5e; --good: #1f6b3a; --empty: #e3e1da; --child: #9fb0c0;
  --truth-bg: #fbe9e4; --truth-ink: #5a1a0d; --sheet-bg: #ffffff;
  --f-text: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111214; --ink: #f1f0ec; --muted: #9a9993; --rule: #2c2d30; --card: #1a1b1e; --dark: #0a0a0b;
    --acc: #ff6a45; --deep: #2c4a7a; --good: #4fb878; --empty: #2a2b2e; --child: #5d6e7f;
    --truth-bg: #3a1c16; --truth-ink: #f6d6cc; --sheet-bg: #1a1b1e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111214; --ink: #f1f0ec; --muted: #9a9993; --rule: #2c2d30; --card: #1a1b1e; --dark: #0a0a0b;
  --acc: #ff6a45; --deep: #2c4a7a; --good: #4fb878; --empty: #2a2b2e; --child: #5d6e7f;
  --truth-bg: #3a1c16; --truth-ink: #f6d6cc; --sheet-bg: #1a1b1e; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 16px/1.45 var(--f-text); overflow-x: hidden; }
button { font: inherit; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; }
.loading { padding: 40px 16px; }
.screen { padding: 12px 16px 40px; }
.mast { border-bottom: 3px double var(--ink); padding: 6px 0 8px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mast-name { font-weight: 900; letter-spacing: .12em; font-size: 26px; }
.mast-sub { font: 12px var(--f-text); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: right; min-width: 0; overflow-wrap: anywhere; /* a longer language breaks a long word here, never pushes the page wider */ }
.paper { background: var(--card); border: 1px solid var(--rule); padding: 14px; margin: 0 0 12px; }
.paper.dark { background: var(--dark); color: #eee8da; border-color: #000; }
.paper.breaking { border-left: 5px solid var(--red); }
.kicker { font: 700 11px var(--f-text); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 6px; }
.kicker.red, .red { color: var(--red); }
.kicker.center { text-align: center; }
.paper.dark .kicker { color: #b9b09c; }
h2 { font-size: 22px; line-height: 1.2; margin: 0 0 10px; }
h3 { font-size: 19px; line-height: 1.25; margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 14px; margin: 4px 0; }
.src { font: 12px/1.4 var(--f-text); color: var(--muted); margin: 6px 0 0; overflow-wrap: anywhere; }
/* R4: a claim's receipt — the line with one is dotted; a tap shows the muted line under it (game.js rcMark) */
.has-rc { cursor: pointer; text-decoration: underline dotted var(--rule); text-underline-offset: 3px; }
.has-rc > .rc { display: none; font: 12px/1.4 var(--f-text); color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; text-decoration: none; }
.has-rc.rc-on > .rc { display: block; }
.src a { color: inherit; }
.note { font: 12px var(--f-text); color: var(--red); text-align: center; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; }
dt { font: 700 12px var(--f-text); text-transform: uppercase; color: var(--muted); padding-top: 2px; }
dd { margin: 0; }
details summary { cursor: pointer; font: 600 14px var(--f-text); margin: 8px 0; }

.btn { display: block; width: 100%; min-height: 48px; margin: 8px 0 0; padding: 10px 14px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: 600 15px/1.3 var(--f-text); }
.btn small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 3px; }
.btn.primary { background: var(--ink); color: var(--paper); text-align: center; }
.btn.ghost { border-color: var(--rule); color: var(--muted); }
.btn.dark { background: #2a1416; color: #f2d9d9; border-color: #2a1416; }
.btn.dark small { color: #c9a9a9; }
.btn:active { transform: translateY(1px); }

/* HUD */
.hud { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 8px 16px 6px; }
.hud-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 600 13px var(--f-text); }
.bar { font: 11px var(--f-text); color: var(--muted); }
.bar span { display: block; }
.bar i { display: block; height: 5px; background: var(--ink); transition: width .4s; }
.timeline { position: relative; height: 6px; background: var(--rule); margin: 8px 0 14px; }
.tl-fill { height: 100%; background: var(--muted); }
.tl-now { position: absolute; top: -3px; width: 3px; height: 12px; background: var(--ink); }
.tl-today { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--red); }
.tl-today span { position: absolute; top: 12px; left: 4px; font: 700 9px var(--f-text); color: var(--red); text-transform: uppercase; }

/* feed */
#feed { padding: 10px 16px 120px; }
.item { background: var(--card); border: 1px solid var(--rule); padding: 10px 12px; margin-bottom: 10px; animation: drop .35s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.item p { margin: 4px 0 0; }
.meta { display: flex; gap: 8px; align-items: center; font: 700 11px var(--f-text); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tag { color: var(--ink); }
.scen { background: var(--deep); color: #fff; padding: 1px 5px; }
.item.soft { background: transparent; border-style: dashed; }
.item.memo { border-left: 4px solid var(--ink); }
.item.decision { border-left: 4px solid var(--muted); }
.item.later { border-left: 4px solid #8a5a00; }
.item.deep { background: var(--deep); color: #eef; border-color: var(--deep); }
.item.deep .tag, .item.deep .meta { color: #cfd8ee; }
.item.scandal, .item.blocked { border-left: 4px solid var(--red); }
.item.passed { border-left: 4px solid var(--good); }
.item.st-breaking { border-top: 4px solid var(--red); }
.item.st-breaking .tag { color: var(--red); }
.item.st-breaking p:first-of-type, .item.st-headline p:first-of-type { font-size: 18px; font-weight: 700; line-height: 1.25; }
.item.st-push { font-family: var(--f-text); border-radius: 12px; font-size: 15px; }
.item.st-quote p:first-of-type { font-style: italic; font-size: 17px; }
.item.st-social { font-family: var(--f-text); border-radius: 8px; }
.item.st-stat p:first-of-type, .item.st-poll p:first-of-type { font-family: var(--f-text); font-weight: 600; }
.item.st-stat { border-left: 4px solid var(--deep); }
.item.st-memo { font-family: var(--f-mono); font-size: 14px; }
.truth { background: var(--truth-bg); color: var(--truth-ink); padding: 6px 8px; font-size: 14px; margin-top: 6px !important; }
.paper.dark .truth { background: #3a1c1e; color: #f2d9d9; }

/* controls */
.ctrl { position: fixed; bottom: 0; left: 0; right: 0; z-index: 8; /* above a card's dark layer: Pause and Auto work while a card is open (playtest 8) */ display: grid; grid-template-columns: repeat(5, 1fr); max-width: 480px; margin: 0 auto; background: var(--ink); }
.ctrl button { min-height: 52px; border: 0; border-right: 1px solid #333; background: var(--ink); color: var(--paper); font: 600 13px var(--f-text); cursor: pointer; padding: 4px; }
.ctrl button:disabled { color: #666; }
.ctrl button.pulse { color: #ffd6d6; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { background: #4a1015; } }

/* memo sheet */
.sheet { position: fixed; left: 0; right: 0; bottom: 52px; z-index: 7; max-width: 480px; margin: 0 auto; padding: 0 10px 10px; max-height: calc(100vh - 140px); overflow-y: auto; }
.sheet.blocking { top: 0; bottom: 0; max-height: none; padding-top: 60px; background: rgba(22, 20, 15, .55); display: flex; flex-direction: column; justify-content: flex-end; }
.sheet.hidden { display: none; }
/* a blocking sheet waits for a tap (task round 5: the race screen read as frozen) */
.yourmove { align-self: center; margin: 0 0 8px; padding: 5px 12px; background: var(--red); color: #fff; font: 700 12px var(--f-text); text-transform: uppercase; letter-spacing: .1em; animation: yourmove 1.4s ease-in-out infinite; }
@keyframes yourmove { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .yourmove { animation: none; } }
.memo-paper { background: var(--sheet-bg); border: 1px solid var(--ink); box-shadow: 0 -6px 24px rgba(0,0,0,.25); padding: 14px; max-height: 100%; overflow-y: auto; }
.sheet.blocking .memo-paper { max-height: calc(100vh - 140px); margin-bottom: 52px; }
.ask { font-style: italic; border-left: 3px solid var(--red); padding-left: 8px; }
.opts { margin-top: 8px; }
/* "Change goal": every goal of every side on one screen, two to a row (playtest 8: only the first three were in view) */
.goal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; } .goal-grid .btn { margin: 0; min-height: 44px; padding: 8px 10px; font-size: 14px; }
.chain { margin: 4px 0 10px; padding-left: 22px; font: 14px var(--f-text); }
.chain li { padding: 2px 0; }
.chain li.yes { color: var(--good); }
.chain li.no { color: var(--red); text-decoration: line-through; }
p.no { border-left: 3px solid var(--red); padding-left: 8px; }
p.yes { color: var(--good); }
.hb { width: 100%; border-collapse: collapse; font: 12px var(--f-text); }
.hb th, .hb td { text-align: left; border-bottom: 1px solid var(--rule); padding: 4px 3px; vertical-align: top; }

/* report */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.num { border: 2px solid var(--ink); padding: 10px; }
.num span { display: block; font: 700 11px var(--f-text); text-transform: uppercase; color: var(--muted); }
.num b { display: block; font-size: clamp(22px, 7vw, 30px); line-height: 1.1; margin: 4px 0; white-space: nowrap; }
.num small { font: 12px var(--f-text); color: var(--muted); }
.num.you { border-color: var(--red); }
.num.you b { color: var(--red); }
.two.small .num b { font-size: 26px; }
.fc { background: var(--deep); color: #fff; font-style: normal; padding: 0 4px; }
.verdict { color: var(--red); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 5px 0; border-bottom: 1px solid var(--rule); }
.paper.dark .plain li { border-color: #333; }
.shock { font-size: 20px; font-weight: 700; }
.dark-line { color: var(--ink); font-style: italic; }

/* 9:16 cards */
.card916 { width: min(100%, 320px); aspect-ratio: 9 / 16; margin: 6px auto 16px; padding: 22px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; overflow: hidden;
  background: var(--card); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.card916.final { background: var(--dark); color: #f3efe6; box-shadow: 6px 6px 0 var(--red); }
.c-mast { font-weight: 900; letter-spacing: .2em; font-size: 15px; border-bottom: 3px double currentColor; padding-bottom: 6px; }
.c-kick { font: 700 11px var(--f-text); text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.c-big { font-size: 34px; font-weight: 900; line-height: 1.05; }
.c-line { font: 13px var(--f-text); }
.c-quote { font-style: italic; font-size: 17px; border-left: 3px solid var(--red); padding-left: 10px; }
.c-goal { font-size: 20px; font-weight: 700; line-height: 1.2; }
.c-goal span { display: block; font: 700 11px var(--f-text); text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.c-goal i { font: 12px var(--f-text); opacity: .7; }
.c-foot { font: 11px var(--f-text); opacity: .7; }

/* hints, countdown, money, last question */
.hint { font: 12px/1.3 var(--f-text); color: var(--muted); padding: 2px 0 0; min-height: 16px; }
.hint.flash { color: var(--red); font-weight: 700; }
.countdown { font: 700 13px var(--f-text); color: var(--red); margin: 10px 0 0; }
.bar span b { color: var(--ink); }
.ctrl button small { display: block; font-weight: 400; font-size: 10px; color: #aaa; }
.item.money { background: transparent; border-style: dotted; padding: 4px 12px; font: 13px var(--f-text); }
.item.money p { margin: 0; }
.last-q { min-height: 100vh; display: flex; flex-direction: column; }
.lq { font-size: 30px; line-height: 1.2; margin: 18vh 0 16px; }
.center { text-align: center; }
/* feed years, card lines */
details.yr { margin-bottom: 6px; }
details.yr > summary { font: 700 12px var(--f-text); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 0; cursor: pointer; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
details.yr[open] > summary { color: var(--ink); }
/* 8 mechanics (design/v2_МЕХАНИКИ_1in8b.md) */
/* citizen file */
.file hr { border: 0; border-top: 1px dashed var(--rule); margin: 10px 0; }
.file-bar { font: 11px var(--f-text); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.cmp { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font: 14px var(--f-text); font-variant-numeric: tabular-nums; }
.cmp span:nth-child(even) { text-align: right; }
.cmp .dim { color: var(--muted); font-size: 13px; }
/* feed: everyday lines, peers, your words */
.item.life { border-color: var(--rule); }
.item.peer { border-style: dashed; border-left: 4px solid var(--deep); background: transparent; }
.item.quote p { font-style: italic; }
/* week */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin: 8px 0; }
.day { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.day b { font: 700 10px var(--f-text); color: var(--muted); text-align: center; }
.chip { height: 34px; border: 1px solid var(--ink); padding: 0; font: 600 9px var(--f-text); text-transform: uppercase; overflow: hidden; cursor: pointer; color: var(--ink); }
.c-district { background: #cfe3c8; } .c-laws { background: #c9d6ec; } .c-family { background: #ecd3e6; }
.c-calls { background: #e9c46a; } .c-rest { background: transparent; border-style: dashed; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 12px var(--f-text); margin: 6px 0; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i, .sw { width: 10px; height: 10px; display: inline-block; border: 1px solid var(--ink); margin-right: 4px; vertical-align: middle; }
.years { display: flex; height: 20px; border: 1px solid var(--ink); margin: 6px 0 8px; }
.years i { display: block; height: 100%; border: 0; }
/* decision sheet */
.btn small.echo { color: var(--red); font-style: italic; }
details.fact summary { font-size: 13px; color: var(--muted); }
textarea { width: 100%; min-height: 64px; margin-top: 4px; padding: 8px; border: 1px dashed var(--ink); background: transparent; font: 14px/1.4 var(--f-text); resize: vertical; }
/* bill path and stamp */
.path { display: flex; margin: 6px 0 8px; }
.path .st { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font: 10px/1.2 var(--f-text); text-align: center; color: var(--muted); overflow-wrap: anywhere; }
.path .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); }
.path .st.done { color: var(--good); } .path .st.done .dot { background: var(--good); border-color: var(--good); }
.path .st.cur { color: var(--ink); font-weight: 700; } .path .st.cur .dot { border-color: var(--ink); }
.path .st.dead { color: var(--red); } .path .st.dead .dot { background: var(--red); border-color: var(--red); }
.stamp-wrap { text-align: center; padding: 8px 0; }
.stamp { display: inline-block; border: 3px solid var(--red); color: var(--red); font: 900 18px var(--f-text); letter-spacing: .08em; padding: 4px 10px; transform: rotate(-5deg); text-transform: uppercase; }
/* report */
p.quote { font-style: italic; border-left: 3px solid var(--good); padding-left: 8px; }
p.quote.no { border-left-color: var(--red); }
.hb.peers td small { display: block; color: var(--muted); }
.hb.peers th, .hb.peers td { overflow-wrap: anywhere; } /* RU at 375 px: "В 2029 году" and long words wrap instead of pushing the table out */
.hb.peers tr.you td { font-weight: 700; }
/* the longer name (SOMEBODY SHOULD) fits one line on a phone */
.mast-name { font-size: clamp(18px, 6vw, 26px); letter-spacing: .06em; white-space: nowrap; }

/* start: Live a life / Today / birth year (round of the owner's review, 2026-11-08) */
.paper.mode .btn.big { min-height: 64px; font-size: 20px; }
.paper.mode .btn.primary small { color: #cfc8b8; }
.paper.today { border: 1.5px solid var(--ink); }
.row { display: flex; gap: 8px; align-items: stretch; }
.row input { flex: 1; min-width: 0; }
.row .btn { width: auto; min-width: 56px; margin-top: 0; }
input[type=number] { min-height: 48px; padding: 8px 10px; border: 1.5px solid var(--ink); background: var(--card); font: 18px var(--f-text); border-radius: 0; }
input.big { width: 100%; font-size: 32px; margin-bottom: 12px; }
.btn.on { background: var(--ink); color: var(--paper); }
.row.langs { justify-content: flex-end; margin: -6px 0 10px; } /* the language switch on the start screen */
.row.langs .btn { min-width: 52px; text-align: center; }
#country-pick, #region-pick, #city-pick { display: block; width: 100%; min-height: 44px; margin: 6px 0 10px; font: 16px var(--f-text); } /* Advanced settings: country, region, city (owner 18.11) */
details.paper.mode summary { cursor: pointer; font-weight: 700; }
/* faststart (18.11): "Life of the day" a small link under the big button; 16+ and privacy one small line, a tap opens them */
.paper.mode .btn.small-link { border: 0; background: none; min-height: 44px; padding: 8px 0 0; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.paper.mode .btn.small-link small { text-decoration: none; }
details.legal { margin: 4px 2px 12px; }
details.legal summary { font: 12px var(--f-text); color: var(--muted); margin: 0; padding: 6px 0; }
details.paper.mode .today { margin-bottom: 14px; }

/* the life strip (HUD and report): birth to 2040, orange = months not yours, childhood quiet, unlived light */
.strip { margin: 8px 0 12px; cursor: pointer; }
.strip .bar { display: flex; gap: 1px; height: 12px; }
.strip .bar i { flex: 1; position: relative; background: linear-gradient(to top, var(--acc) var(--o, 0%), var(--ink) var(--o, 0%)); }
.strip .bar i.c { background: var(--child); }
.strip .bar i.e { background: var(--empty); }
.strip .bar i.today::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 3px; background: var(--muted); }
.strip .ends { display: flex; justify-content: space-between; font: 10px var(--f-mono); color: var(--muted); margin-top: 2px; }
.strip .ends .wk { text-decoration: underline; color: var(--ink); padding: 0 6px; }

/* the action row (design/v2_СТРОКА_ДЕЙСТВИЙ.md §2): months left, 2 x 2 buttons, More */
.acts { margin: 0 0 8px; }
.acts-m { font: 12px var(--f-text); color: var(--muted); margin: 0 0 4px; }
.acts-m .o { color: var(--acc); }
.acts-g { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.act { text-align: left; min-height: 48px; padding: 6px 8px; border: 1.5px solid var(--ink); background: var(--card); font: 600 13px/1.25 var(--f-text); color: var(--ink); }
.act small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); margin-top: 2px; }
.act small.echo { color: var(--red); font-style: italic; }
.act small.hint-s, .act-more small { font-style: italic; text-decoration: none; }
.act-more small { display: block; font-size: 11px; }
.count { font: 700 17px var(--f-text); margin: 6px 0; }
.count.yes { color: var(--good); } .count.no { color: var(--red); }
details.src-d { margin: 4px 0 0; }
details.src-d summary { font: 12px var(--f-text); color: var(--muted); margin: 2px 0; }
.act.dim { opacity: .45; }
.act.eye { border-style: dashed; }
.act.new { box-shadow: inset 4px 0 0 var(--acc); }
.act.push { grid-column: 1 / -1; background: var(--ink); color: var(--card); } /* your bill: a row of its own, away from the rest */
.act.push small { color: var(--card); opacity: .8; }
.act.run { grid-column: 1 / -1; box-shadow: inset 4px 0 0 var(--acc); } /* off the ballot: the way back into politics, a row of its own (playtest 9) */
.act-more { margin-top: 6px; width: 100%; min-height: 36px; border: 0; background: transparent; font: 12px var(--f-text); color: var(--muted); text-decoration: underline; }

/* the report: hours meter, the big number, you and the hero */
.meter { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0 10px; border-bottom: 1.5px solid var(--ink); margin-bottom: 12px; font: 11px var(--f-mono); text-transform: uppercase; }
.meter b { display: block; font: 700 16px var(--f-mono); }
.meter .acc b { color: var(--acc); }
.mega { font: 800 52px/.95 var(--f-text); letter-spacing: -.03em; color: var(--acc); margin: 10px 0 4px; }
.mega small { display: block; font: 600 16px/1.25 var(--f-text); letter-spacing: 0; color: var(--ink); margin-top: 4px; }
.card916 .strip { margin: 8px 0; } .card916 .mega { font-size: 40px; }
.you-hero p { margin: 6px 0; } .you-hero .lq-last { font-weight: 700; }

/* the start and the file in the style of the meter (direction C): big name, big numbers (the game's own fonts, see the @font-face at the top) */
.cstyle .big-name, .file h2 { font: 800 30px/1.05 var(--f-text); letter-spacing: -.02em; }
.mega.small { font-size: 34px; color: var(--ink); }
.mega.small small { font-size: 14px; color: var(--muted); }

/* ---- design pass (owner's yes to web fonts, 2026-11-08): one type scale, labels in mono, numbers never break, one accent ---- */
body { font: 16px/1.45 var(--f-text); -webkit-font-smoothing: antialiased; }
h2 { font: 800 24px/1.12 var(--f-text); letter-spacing: -.02em; }
h3 { font: 700 19px/1.25 var(--f-text); letter-spacing: -.01em; }
.mast-name, .c-mast { font-family: var(--f-text); font-weight: 900; }
.mast { border-bottom: 1.5px solid var(--ink); }
/* labels and columns: mono, small caps-like */
.kicker, .meta, .mast-sub, .file-bar, dt, .acts-m, .strip .ends, details.yr > summary, .c-kick, .num span, .c-goal span,
.hb th, .day b, .legend, .meter, .scen, .countdown { font-family: var(--f-mono); letter-spacing: .04em; }
.kicker, .meta, .file-bar, details.yr > summary, .num span, .hb th { font-size: 11px; }
/* numbers: tabular, never split across lines */
.meter b, .mega, .num b, .c-big, .cmp, .hb td, .bar b, .money b, .act small, #h-year { font-variant-numeric: tabular-nums; }
.meter b, .mega, .num b, .money b, .bar b { white-space: nowrap; }
.mega { font: 800 clamp(40px, 13vw, 56px)/.95 var(--f-text); letter-spacing: -.04em; color: var(--acc); }
.mega small { font: 600 16px/1.3 var(--f-text); white-space: normal; }
.mega.small { font-size: clamp(28px, 9vw, 36px); }
.meter { font: 11px var(--f-mono); }
.meter b { font: 700 17px var(--f-mono); }
.meter .acc b, .acts-m .o { color: var(--acc); }
/* surfaces */
.paper, .item, .act, .memo-paper, .btn { border-radius: 0; }
.paper { border-color: var(--rule); }
.paper.today, .card916 { border-width: 1.5px; }
.btn { font: 600 15px/1.3 var(--f-text); }
.btn.primary { font-weight: 700; }
.btn.dark { background: var(--dark); color: #f3e3dc; border-color: var(--acc); }
.btn.dark small { color: #c9b0a6; }
input[type=number], textarea { color: var(--ink); font-family: var(--f-text); }
.act { font: 600 13px/1.25 var(--f-text); }
.act small { font-family: var(--f-mono); font-size: 11px; }
/* the bottom bar stays dark in both themes */
.ctrl, .ctrl button { background: #141414; color: #f3f2ee; }
.ctrl button { border-right-color: #2a2a2a; font: 600 13px var(--f-text); }
.ctrl button.on { color: var(--acc); }
.ctrl button small { color: #9a9993; font-family: var(--f-mono); }
/* the week chips keep their own light colours: dark text on them in both themes */
.chip.c-district, .chip.c-laws, .chip.c-family, .chip.c-calls { color: #16140f; }
.c-calls { background: #ff9d80; }
/* cards: the start card on the page colour, the final card dark with the accent */
.card916.final { background: var(--dark); color: #f3f2ee; box-shadow: 6px 6px 0 var(--acc); border-color: #000; }
.c-big { font-family: var(--f-text); font-weight: 900; letter-spacing: -.02em; }
.card916.final .strip .bar i:not(.c):not(.e) { background: linear-gradient(to top, var(--acc) var(--o, 0%), #f3f2ee var(--o, 0%)); }
.card916.final .strip .bar i.e { background: #2a2b2e; }
/* dark theme: things that were drawn with fixed light colours */
.sheet.blocking { background: rgba(10, 10, 10, .6); }
.paper.dark { color: #eee8da; }
.btn.primary small, .paper.mode .btn.primary small { color: var(--paper); opacity: .72; }
.card916.final, .paper.dark { --muted: #a3a29c; --rule: #333; }
.pitch { font: 800 clamp(22px, 7vw, 28px)/1.15 var(--f-text); letter-spacing: -.02em; margin: 0 0 12px; }
.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.num b { white-space: normal; overflow-wrap: normal; } /* "76% → 77% of GDP" breaks between words, never inside a number */
/* the final card (owner 2026-11-08, mockup life_cards.html): big only the goal, the stamp and the line; fixed colours in both themes */
.card916.final { justify-content: space-between; gap: 12px; padding: 22px 20px 18px; margin-bottom: 10px; --child: #5d6e7f; color: #f1f0ec; }
.card916.final .c-mast { font-size: 13px; letter-spacing: .14em; color: #a3a29c; border: 0; padding: 0; }
.c-day { font: 10px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #ff6a45; margin-top: -8px; }
.c-should { font: 900 30px/1.03 var(--f-text); letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; } /* a long word breaks with a hyphen where the browser knows the language (html lang) */
.c-stamp { align-self: flex-start; transform: rotate(-6deg); border: 3px solid #ff6a45; color: #ff6a45; font: 900 18px/1.2 var(--f-text); letter-spacing: .02em;
  padding: 2px 10px; border-radius: 4px; text-transform: uppercase; margin: 2px 0 4px 4px; max-width: 100%; text-wrap: balance; } /* a stamp longer than the card (Russian «ТЫ СДЕЛАЛА. ЭТО ОТМЕНИЛИ.») goes on two lines inside its box */
.c-stamp.s-notYou { border-color: #4f7bc4; color: #4f7bc4; }
.c-stamp.s-youDid, .c-stamp.s-undone, .c-stamp.s-partly, .c-stamp.s-notEnough { border-color: #4fb878; color: #4fb878; }
.c-who { font: 15px/1.35 var(--f-text); }
.c-who b { font-weight: 800; }
.card916.final .strip { margin: 0; cursor: default; }
.card916.final .strip .bar { height: 14px; }
.c-rows { border-top: 1px solid #333; } /* the free space is spread between the blocks, not one gap above the rows (playtest 8) */
.c-row { display: grid; grid-template-columns: 66px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid #333; font: 12px/1.3 var(--f-text); }
.c-row > span { font: 9px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #a3a29c; padding-top: 2px; }
.pips { display: inline-flex; gap: 2px; margin-right: 6px; vertical-align: 0; }
.pips i { width: 7px; height: 7px; background: #3a3b3e; }
.pips i.on { background: #f1f0ec; }
.c-end { display: flex; justify-content: space-between; gap: 10px; font: 11px var(--f-mono); color: #a3a29c; }
.c-end small { font-size: 9px; }

/* ---- design 13.11, step "Order" (research/дизайн/2026-11-13_варианты.html #a-v1, #b-v1, #speed; owner's yes) ---- */
/* the play screen is one phone-high column: the panel on top, the feed takes the rest, your moves and the bar at the bottom */
.play { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.play .hud { position: static; flex: none; padding: 6px 16px 0; border-bottom: 1.5px solid var(--ink); }
.play #feed { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 16px 16px; }
.hud-top { align-items: center; font: 600 12px var(--f-text); }
#h-year { font: 800 17px/1.2 var(--f-text); letter-spacing: -.01em; white-space: nowrap; }
.h-off { display: flex; align-items: center; gap: 6px; min-width: 0; font: 700 11px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; text-align: right; }
/* the handbook as "?" by the office (#speed: the bottom bar keeps its place for the speeds); the tap area is 44 px, the box is small */
.qm { flex: none; width: 44px; height: 44px; margin: -6px -12px -6px -8px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: 700 12px var(--f-mono); }
.qm span { display: inline-block; min-width: 20px; padding: 1px 5px; border: 1px solid var(--ink); }
/* five numbers in a row (fix 6: a changed number shows its step) */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 6px; cursor: default; }
.stat { min-width: 0; font: 10px/1.2 var(--f-text); color: var(--muted); }
.stat span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat b { display: block; font: 700 15px/1.2 var(--f-text); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat b em { font: 700 10px var(--f-mono); font-style: normal; margin-left: 2px; }
.stat i { display: block; height: 3px; background: var(--rule); margin-top: 2px; }
.stat i u { display: block; height: 100%; background: var(--ink); transition: width .4s; }
.stat.up em { color: var(--good); } .stat.up i u { background: var(--good); }
.stat.down em { color: var(--acc); } .stat.down i u { background: var(--acc); }
.stat.up b, .stat.down b { animation: blink .5s 2; }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .stat.up b, .stat.down b { animation: none; } }
.stats .dirty { grid-column: 1 / -1; margin: -2px 0 0; text-align: right; font: 11px var(--f-text); color: var(--acc); cursor: pointer; text-decoration: underline dotted; }
.play .strip { margin: 0 0 4px; }
.play .strip .bar { height: 10px; }
/* the feed: a year with no line yet (fix 11) */
details.yr[open] > .yr-items:empty::before { content: attr(data-empty); display: block; padding: 4px 2px 10px; font: 14px var(--f-text); color: var(--muted); }
/* your moves under the thumb: the months line, the other moves when unfolded, one main move, "Other moves (N)", the hint */
.dock { flex: none; max-height: 55vh; overflow-y: auto; padding: 8px 16px 6px; border-top: 1.5px solid var(--ink); background: var(--paper); }
.dock .acts { margin: 0; }
.dock .acts:empty { display: none; }
.dock .acts-m { margin: 0 0 6px; }
.acts-m .o { white-space: nowrap; } /* fix 14: "not yours: 4 mo" never breaks before "mo" */
.dock .acts-g { margin-bottom: 6px; }
.act.main { display: block; width: 100%; min-height: 52px; padding: 8px 12px; font-size: 15px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.act.main small { color: var(--paper); opacity: .78; }
.act.main.dim { opacity: .55; }
.act.main.run { box-shadow: inset 5px 0 0 var(--acc); }
.dock .act-more { min-height: 44px; margin-top: 0; }
.dock .hint { min-height: 0; padding: 2px 0 0; }
.dock .hint:empty { display: none; }
/* the bar: Pause · 1× 2× 3× 4× · Auto (#speed), the chosen speed filled light with an orange line */
.play .ctrl { position: relative; flex: none; width: 100%; grid-template-columns: 72px repeat(var(--n, 4), minmax(0, 1fr)) 72px; }
.ctrl #b-pause small { font: 600 11px var(--f-text); color: inherit; }
.ctrl button { min-height: 52px; font-size: 12px; line-height: 1.15; }
.ctrl button.sp { font: 700 15px var(--f-mono); color: #9a9993; }
.ctrl button.sp.sel { background: #f3f2ee; color: #141414; box-shadow: inset 0 -3px 0 #ff6a45; }
.ctrl button:last-child { border-right: 0; }
.ctrl button#b-pause.on { color: #ff6a45; }
.tip { position: absolute; left: 0; right: 0; bottom: 100%; margin: 0; padding: 7px 12px; background: var(--card); color: var(--ink); border-top: 1px solid var(--rule); font: 700 12px/1.3 var(--f-text); }
.tip.hidden { display: none; }
/* Pause is seen (fix 10): an orange band over the bar while paused; the moves and sheets above it move up by its height */
.pband { display: none; position: absolute; left: 0; right: 0; bottom: 100%; margin: 0; padding: 6px 12px; background: #ff6a45; color: #fff; font: 700 12px/1.3 var(--f-text); }
.play.paused .pband { display: block; }
.play.paused .tip { bottom: calc(100% + 28px); }
.play.paused .dock { padding-bottom: 34px; }
.play.paused .sheet { bottom: 80px; }
.play.paused .sheet.blocking { bottom: 0; }
.play.paused .sheet.blocking .memo-paper { margin-bottom: 80px; }
/* "Time stopped · your move" sits on the sheet's top edge, not floating over the panel (fix 9) */
.yourmove { align-self: stretch; margin: 0; text-align: center; }
/* the bill's sheet: the number right under the title (#b-v1) */
.need { margin: 0 0 8px; padding: 7px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font: 15px/1.3 var(--f-text); }
.memo-paper .path { margin: 10px 0 2px; }
.memo-paper .opts .btn, .memo-paper #step .btn { padding: 8px 12px; min-height: 44px; margin-top: 6px; }
.memo-paper .btn small { font-size: 12.5px; margin-top: 2px; }
/* the first-run questions (way in, views): the buttons low, under the thumb (fix 12) */
.ask-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: 16px; }
.ask-screen > .paper { margin-top: auto; }
/* one alignment in one stack (fix 13): the buttons next to a main (centred) button are centred too */
.btn.primary ~ .btn, .btn:has(~ .btn.primary) { text-align: center; }
.card-png { display: block; width: 100%; max-height: calc(100vh - 260px); object-fit: contain; margin-bottom: 8px; }
/* review of D1: the speed line and the pause band never take a tap (point 3); dark text on the orange band (point 7: white was 2.9:1) */
.tip, .pband { pointer-events: none; }
.pband { color: #141414; }

/* ---- design 13.11, step "Moments" (research/дизайн/2026-11-13_варианты.html #a-v2, #b-v2, #c-v2; owner's yes) ---- */
/* the year in twelve months: gone dark, this one orange, its name on the left */
.months { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.mo-l { flex: none; min-width: 72px; font: 700 10px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mo-s { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; }
.mo-s i { height: 5px; background: var(--rule); }
.mo-s i.on { background: var(--ink); } .mo-s i.o { background: var(--acc); }
/* the feed's three volumes: a quiet line of everyday life without a frame, the usual news, the loud "Breaking"; your move's trace */
.item.life { background: transparent; border: 0; padding: 2px 2px 10px; }
.item.life:not(.before) .meta { display: none; } /* "Before" (the trigger's line) keeps its tag (review of D2, point 8) */
.item.life p { margin: 0; color: var(--muted); font-size: 14.5px; }
.item.st-breaking { border: 1.5px solid var(--ink); border-top: 4px solid var(--acc); }
.item.st-breaking .tag { color: var(--acc); }
.item.you { border: 1.5px solid var(--ink); border-left: 5px solid var(--acc); }
.item.you .tag { color: var(--acc); }
.item.you p { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ch { font: 700 12px var(--f-mono); padding: 1px 6px; border: 1px solid currentColor; color: var(--acc); white-space: nowrap; }
.ch.g { color: var(--good); }
/* the moves with a trail (a bribe, a smear) or a broken word: after a dashed line under "Other moves", never the main button */
.acts-risk { grid-column: 1 / -1; display: block; height: 0; border-top: 1px dashed var(--acc); margin: 2px 0; }
/* the bill: the stage's seats (the votes needed dashed, one by one), the hard ways under a dashed line, the stamp falling */
.seats { display: grid; gap: 3px; margin: 0 0 8px; }
.seats i { display: block; aspect-ratio: 1; border: 1.5px solid var(--rule); animation: pop .3s both; }
.seats i.need { border: 1.5px dashed var(--acc); }
.seats.yes i.need { background: var(--ink); border: 1.5px solid var(--ink); }
.seats.no i.need { background: transparent; border: 1.5px dashed var(--acc); opacity: .55; }
.seats.wide { display: block; height: 14px; background: var(--rule); }
.seats.wide i { aspect-ratio: auto; height: 100%; border: 1.5px dashed var(--acc); }
.seats.wide.yes i { background: var(--ink); border-style: solid; border-color: var(--ink); }
/* design D3: your votes (the engine's count) filled, the ones still missing dashed, the ones your way just won in the accent */
.seats i.you { background: var(--ink); border: 1.5px solid var(--ink); }
.seats i.gain { background: var(--acc); border-color: var(--acc); }
.seats.wide { position: relative; }
.seats.wide b { position: absolute; left: 0; top: 0; height: 100%; background: var(--ink); }
.seats.wide i { position: relative; }
@keyframes pop { from { transform: scale(.2); opacity: 0; } }
.hard-ways { margin-top: 10px; padding-top: 2px; border-top: 1px dashed var(--acc); }
.btn.dark.crime { box-shadow: inset 4px 0 0 var(--acc); }
.stamp.ok { border-color: var(--good); color: var(--good); }
.stamp.slam { animation: slam .5s .2s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes slam { from { transform: rotate(-5deg) scale(2.4); opacity: 0; } to { transform: rotate(-5deg); opacity: 1; } }
/* election night: the count as a bar, you and the other side, the middle marked */
.tally { margin: 8px 0 10px; }
.t-bar { position: relative; display: flex; justify-content: space-between; height: 22px; background: var(--rule); }
.t-bar i { display: block; height: 100%; animation: grow .9s ease-out both; }
.t-you { background: var(--ink); } .tally.yes .t-you { background: var(--good); }
.t-them { background: var(--muted); } .tally.no .t-them { background: var(--acc); }
.t-mid { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--paper); }
@keyframes grow { from { width: 0; } }
.t-lab { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font: 13px/1.3 var(--f-text); color: var(--muted); }
.t-lab span:last-child { text-align: right; }
.t-lab b { font: 800 20px var(--f-text); color: var(--ink); font-variant-numeric: tabular-nums; }
/* the report: the card on the whole first screen, "Share" and "Another life" under the thumb, then the file in folded sections */
.r-first { min-height: calc(100vh - 12px); min-height: calc(100dvh - 12px); display: flex; flex-direction: column; }
.card916.final.rcard { flex: 1; width: 100%; aspect-ratio: auto; margin: 0 0 10px; box-shadow: none; padding: 20px 18px 14px; }
.rcard .c-stamp.slam { animation: slamc .5s .35s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes slamc { from { transform: rotate(-6deg) scale(2.4); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }
.c-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.c-two span { display: block; font: 12px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: #a3a29c; }
.c-two b { display: block; margin: 2px 0; font: 800 clamp(20px, 8vw, 30px)/1.05 var(--f-text); letter-spacing: -.03em; color: #f1f0ec; overflow-wrap: anywhere; }
.c-two .y b { color: #ff6a45; }
.c-two b.l { font-size: clamp(18px, 5.5vw, 22px); letter-spacing: -.02em; } /* "35% → 78% of GDP": a long number smaller, as on the picture */
.c-two small { display: block; font: 12px/1.3 var(--f-text); color: #a3a29c; }
.rcard .strip .ends { font-size: 12px; color: #a3a29c; }
.rcard .strip .ends .wk { padding: 0; text-decoration: none; color: #a3a29c; }
.rcard .strip .ends .wk::before { content: "■ "; color: #ff6a45; }
.rcard .c-row { grid-template-columns: 98px minmax(0, 1fr); font: 13px/1.35 var(--f-text); } /* 98px: the longest label word in one line (RU playtest B 14.11: «ЗАКОНОПРОЕ/КТ» at 80px) */
.rcard .c-row > span { font-size: 12px; overflow-wrap: anywhere; }
.rcard .c-row b { display: block; font-weight: 800; }
.rcard .c-row .c-verdict { display: block; } /* cardpunch: the conscience line under the name */
.rcard .c-end, .rcard .c-end small, .rcard .c-day { font-size: 12px; }
.r-acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.r-acts .btn { margin: 0; min-height: 52px; text-align: center; }
.r-acts + .r-acts { margin-top: 8px; }
.copy-field { width: 100%; box-sizing: border-box; padding: 8px; font: 13px var(--f-text); color: var(--ink); background: var(--card); border: 1px solid var(--ink); }
.btn.share { background: #c2370d; border-color: #c2370d; color: #fff; font-weight: 700; }
.dos-hint { margin: 10px 0 2px; text-align: center; font: 12px var(--f-mono); color: var(--muted); }
details.dos { border-top: 1.5px solid var(--ink); }
details.dos > summary { list-style: none; display: flex; align-items: baseline; gap: 10px; min-height: 48px; margin: 0; padding: 13px 2px; font: 700 15px/1.25 var(--f-text); }
details.dos > summary::-webkit-details-marker { display: none; }
details.dos > summary span { flex: 1; min-width: 0; }
details.dos > summary b { font: 800 16px var(--f-text); color: var(--acc); text-align: right; font-variant-numeric: tabular-nums; }
details.dos > summary::after { content: "▸"; color: var(--muted); }
details.dos[open] > summary::after { content: "▾"; }
.dos-b { padding: 0 0 14px; }
.dos-b details.src-d { margin-bottom: 14px; }
.dos-b > .paper:not(.dark) { background: transparent; border: 0; padding: 0; margin: 0 0 16px; }
.report > details.paper { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  .seats i, .stamp.slam, .rcard .c-stamp.slam, .t-bar i { animation: none; }
}
