/* Fonts served from this site (SIL Open Font License, see fonts/). No third-party font requests. */
@font-face { font-family: 'Press Start 2P'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/press-start-2p-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: 'Press Start 2P'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/press-start-2p-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: 'VT323'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/vt323-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: 'VT323'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/vt323-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 {
  --ink: #12122a;
  --panel: rgba(18, 20, 42, 0.88);
  --edge: #3a3f73;
  --text: #fdf6e3;
  --dim: #a9a7c7;
  --gold: #ffd23f;
  --red: #e03c31;
  --green: #41c463;
  --blue: #3fa7ff;
  --lime: #f0d9a0;
  --pix: 'Press Start 2P', monospace;
  --body: 'VT323', monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1d6aa8; color: var(--text); font-family: var(--body); font-size: 20px; -webkit-font-smoothing: none; }
#view { position: fixed; inset: 0; display: block; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: none; cursor: grab; }
#view:active { cursor: grabbing; }
button { font-family: var(--pix); cursor: pointer; }
b { color: var(--gold); font-weight: normal; }

.panel {
  background: var(--panel);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px var(--edge), 4px 4px 0 rgba(0, 0, 0, 0.35);
  padding: 8px 10px;
}
.lbl { font-family: var(--pix); font-size: 9px; letter-spacing: 1px; color: var(--lime); margin-bottom: 6px; white-space: nowrap; }
.dim { color: var(--dim); }
.bar { position: relative; height: 20px; background: #0b0b1c; border: 2px solid #000; box-shadow: inset 0 0 0 1px #2a2d55; }
.bar > div:first-child { height: 100%; width: 0; transition: width .15s steps(4); }
.bar.thin { height: 8px; }
.bar.sm { height: 10px; flex: 1; }
.btxt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--pix); font-size: 9px; text-shadow: 1px 1px 0 #000; }

/* ---------- HUD ---------- */
#hud { display: none; }
body.playing #hud { display: block; }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(6, 14, 40, .45) 100%); }
#hud > * { z-index: 5; }
#topbar { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100vw - 16px)); display: flex; gap: 14px; align-items: flex-end; padding: 6px 12px 8px; }
.stat .lbl { margin-bottom: 4px; }
.jar { flex: 2.4 1 200px; }
.def { flex: 1.4 1 150px; }
.date { flex: 0 1 110px; }
.pc { flex: 0 0 auto; text-align: center; }
.sys { flex: 0 0 auto; display: flex; gap: 4px; }
.sys button { font-size: 10px; width: 30px; height: 26px; color: var(--text); background: #2b2f5e; border: 2px solid #000; }
.sys button:hover { background: #3a3f80; }
#jarFill { background: repeating-linear-gradient(90deg, #ffd23f 0 8px, #f5b82e 8px 16px); box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }
#defFill { background: #41c463; }
#defFill.warn { background: #f5a623; }
#defFill.danger { background: var(--red); animation: blink .5s steps(2) infinite; }
#monthFill { background: var(--blue); }
.big { font-family: var(--pix); font-size: 16px; color: var(--gold); line-height: 20px; }
.sub { font-family: var(--pix); font-size: 7px; margin-left: 4px; }
.sub .neg { color: #ff7a6e; } .sub .mid { color: #f5c04a; } .sub .pos { color: var(--green); }

#outrage { position: fixed; left: 8px; top: 72px; width: 124px; padding: 6px 8px; }
.orow { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-size: 15px; }
.orow span { width: 20px; text-align: center; }
.orow .fill { background: #f5a623; }
.orow .fill.hot { background: var(--red); animation: blink .6s steps(2) infinite; }

#cmdbar { position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%); display: flex; gap: 6px; align-items: stretch; padding: 6px; max-width: calc(100vw - 16px); }
#abilities { display: flex; gap: 6px; }
.sep { width: 2px; background: var(--edge); margin: 2px 2px; }
.cmd { position: relative; overflow: hidden; width: 74px; padding: 6px 4px 5px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text); background: #2b2f5e; border: 3px solid #000; box-shadow: inset -3px -3px 0 rgba(0,0,0,.35), inset 3px 3px 0 rgba(255,255,255,.1); }
.cmd .ic { font-size: 18px; line-height: 1; }
.cmd .nm { font-family: var(--body); font-size: 15px; line-height: 1; white-space: nowrap; }
.cmd .cdv { font-family: var(--pix); font-size: 7px; color: var(--gold); min-height: 8px; }
.cmd .key { position: absolute; top: 2px; left: 3px; font-family: var(--pix); font-size: 6px; color: var(--dim); }
.cmd .cdfill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(0,0,0,.55); pointer-events: none; }
.cmd:hover:not(:disabled) { background: #3a3f80; }
.cmd:disabled { opacity: .5; cursor: not-allowed; }
.cmd.ab { background: #233a4f; }
.cmd.hot { background: #8a1f2e; animation: blink .5s steps(2) infinite; }
#btnSpeech { background: #5e2456; }
#btnSubs.off { background: #7a1f1f; animation: blink 1s steps(2) infinite; }

#tip { position: fixed; z-index: 40; pointer-events: none; max-width: 280px; background: #0b0b1c; border: 2px solid var(--gold); padding: 6px 8px; font-size: 17px; line-height: 1.05; display: none; }
#tip.show { display: block; }

#scoop { position: fixed; left: 8px; bottom: 42px; width: 300px; display: none; }
#scoop.show { display: block; }
.paper { background: #f3ecdc; color: #1a1a1a; border: 3px solid #000; box-shadow: 5px 5px 0 rgba(0,0,0,.4); padding: 8px 10px; animation: popin .25s steps(3); }
.paper .mast { font-family: Georgia, "Times New Roman", serif; font-weight: bold; font-size: 16px; border-bottom: 2px solid #1a1a1a; padding-bottom: 3px; display: flex; justify-content: space-between; align-items: center; }
.paper .mast span { font-family: var(--pix); font-size: 7px; background: #c8102e; color: #fff; padding: 3px 4px; }
.paper h3 { font-family: Georgia, serif; font-size: 17px; margin: 6px 0 2px; line-height: 1.15; }
.paper p { margin: 0 0 6px; font-size: 16px; color: #444; line-height: 1; }
.stimer { height: 5px; background: #ccc; margin-bottom: 6px; }
.stimer i { display: block; height: 100%; width: 100%; background: #c8102e; }
.sopts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sopts button { text-align: left; background: #fff; border: 2px solid #000; padding: 5px; display: flex; flex-direction: column; gap: 4px; color: #111; }
.sopts button:hover { background: #ffe9a8; }
.sopts b { font-family: var(--body); font-size: 16px; color: #111; line-height: 1; }
.sopts small { font-size: 13px; color: #777; }
.sopts .chip { font-size: 13px; padding: 0 3px; }

#ticker { position: fixed; left: 0; right: 0; bottom: 0; height: 34px; display: flex; align-items: center; background: #c8102e; border-top: 3px solid #000; overflow: hidden; }
.tlabel { font-family: var(--pix); font-size: 10px; background: #fff; color: #c8102e; padding: 0 12px; height: 100%; display: flex; align-items: center; white-space: nowrap; }
#tickerWrap { flex: 1; overflow: hidden; white-space: nowrap; font-size: 22px; position: relative; height: 100%; display: flex; align-items: center; }
#tickerText { display: inline-block; white-space: nowrap; will-change: transform; animation: none !important; }
#tickerText .ti::after { content: '◆'; color: var(--gold); margin: 0 18px; font-size: 14px; vertical-align: 2px; }
#tickerText .ti.brk { color: var(--gold); }
#tickerText .ti.brk b { font-family: var(--pix); font-size: 10px; color: #c8102e; background: var(--gold); padding: 2px 5px; margin-right: 6px; vertical-align: 2px; }

#toasts { position: fixed; left: 50%; top: 66px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: min(640px, 92vw); }
.toast { background: var(--panel); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--edge); padding: 4px 10px; font-size: 18px; text-align: center; animation: popin .25s steps(3); }
.toast.out { opacity: 0; transition: opacity .5s steps(4); }

/* ---------- world anchors ---------- */
#anchors { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#anchors > * { position: absolute; left: 0; top: 0; will-change: transform; }
.place { font-family: var(--pix); font-size: 7px; letter-spacing: 1px; color: #fff; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; white-space: nowrap; translate: -50% -50%; opacity: .9; }
.place.you { color: var(--gold); font-size: 8px; animation: bob 1s steps(2) infinite; }
.slotbtn { pointer-events: auto; translate: -50% -100%; background: none; border: none; padding: 0; }
body:not(.playing) .slotbtn { display: none; }
#anchors.far .place.minor { display: none; }
#anchors.far .floater.cash small { display: none; }
.slotbtn > span {
  display: block; font-family: var(--pix); font-size: 9px; color: #000; background: var(--gold); border: 2px solid #000;
  padding: 3px 4px 2px; box-shadow: 2px 2px 0 rgba(0,0,0,.4); white-space: nowrap; opacity: .9;
}
.slotbtn:hover > span { background: #fff; }
.slotbtn.built > span { background: rgba(18,20,42,.75); color: var(--gold); font-size: 7px; border-color: #000; padding: 2px 3px; }
.slotbtn.built em { font-style: normal; color: var(--green); margin-left: 3px; }
.floater { translate: -50% -100%; }
.floater span { display: block; text-align: center; font-family: var(--pix); font-size: 9px; color: var(--gold); text-shadow: 2px 2px 0 #000; white-space: nowrap; animation: rise 1.5s steps(12) forwards; }
.floater small { display: block; font-family: var(--body); font-size: 15px; color: #fff; }
.floater.exempt span { color: #9fe3ff; font-size: 8px; }
.floater.pr span { color: #fff; font-size: 9px; background: #2b2f5e; padding: 4px; border: 2px solid #000; }
.bubble { translate: -50% -100%; pointer-events: auto; }
.bubble > div, .bubble.hug {
  background: #fff; color: #111; border: 2px solid #000; padding: 4px 6px; font-size: 16px; max-width: 180px; line-height: 1;
  box-shadow: 3px 3px 0 rgba(0,0,0,.4); position: relative;
}
.bubble b { display: block; font-family: var(--pix); font-size: 8px; color: var(--red); margin-bottom: 3px; }
.bubble q { display: block; quotes: none; }
.bubble button { margin-top: 4px; width: 100%; font-size: 7px; background: var(--gold); border: 2px solid #000; padding: 5px 4px; color: #000; }
.bubble button i { font-style: normal; color: #7a2b6e; }
.bubble button:hover { background: #fff; }
.bubble.critic > div { animation: shake .4s steps(2) 2; }
.bubble.opp > div { border-color: #1f4e9c; max-width: 210px; }
.bubble.opp b { color: #1f4e9c; }
.pbar { height: 4px; background: #ddd; margin-top: 4px; } .pbar i { display: block; height: 100%; background: #1f4e9c; width: 100%; }
.bubble.chamber b { color: #555577; }
.bubble.hug { font-size: 22px; max-width: 280px; animation: popin .3s steps(3); }
.bubble.hug b { color: var(--red); }

/* ---------- build menu ---------- */
.menu { position: fixed; z-index: 20; width: 330px; animation: popin .15s steps(3); }
.mh { font-family: var(--pix); font-size: 10px; color: var(--gold); display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.mh .x { background: none; border: none; color: var(--text); font-size: 12px; }
.msub { font-size: 18px; color: var(--dim); margin-bottom: 6px; }
.opt { display: flex; width: 100%; align-items: center; gap: 8px; text-align: left; margin: 5px 0; padding: 6px; background: #2b2f5e; color: var(--text); border: 2px solid #000; box-shadow: inset -2px -2px 0 rgba(0,0,0,.35); }
.opt:hover:not(:disabled) { background: #3a3f80; }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.oi { font-size: 20px; width: 26px; text-align: center; }
.on { flex: 1; font-family: var(--body); font-size: 18px; line-height: 1; }
.on b { display: block; font-family: var(--pix); font-size: 8px; margin-bottom: 4px; color: var(--text); }
.on small { color: var(--dim); font-size: 16px; }
.oc { font-family: var(--pix); font-size: 12px; color: var(--gold); text-align: right; }
.oc i { display: block; font-style: normal; font-size: 7px; color: var(--dim); }
.blurb { font-size: 17px; color: var(--lime); line-height: 1; margin-top: 6px; min-height: 34px; }
.lv { list-style: none; padding: 0; margin: 4px 0; font-size: 18px; color: var(--dim); }
.lv li.on { color: var(--green); }
.lv li.on::after { content: ' ✓'; }
.stat { font-size: 18px; margin: 6px 0; }
.maxed { font-family: var(--pix); font-size: 8px; color: var(--dim); margin-top: 6px; }

/* ---------- modal cards ---------- */
#modal { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; background: rgba(10, 12, 30, .55); padding: 16px; }
#modal.show { display: flex; }
.card { background: var(--panel); border: 4px solid #000; box-shadow: inset 0 0 0 3px var(--edge), 8px 8px 0 rgba(0,0,0,.4); padding: 22px 26px; width: min(640px, 100%); max-height: 100%; overflow: auto; animation: popin .25s steps(4); }
.kicker { font-family: var(--pix); font-size: 9px; color: var(--dim); letter-spacing: 2px; margin-bottom: 10px; }
.card h1 { font-family: var(--pix); font-size: 30px; line-height: 1.3; margin: 0 0 14px; color: var(--gold); text-shadow: 4px 4px 0 #c8102e; }
.card h1 span { color: #fff; }
.card h2 { font-family: var(--pix); font-size: 18px; color: var(--gold); margin: 0 0 12px; line-height: 1.4; }
.card p { font-size: 21px; line-height: 1.1; margin: 8px 0; }
.punch { color: #ff9e85; }
.how { list-style: none; padding: 10px 12px; margin: 12px 0; background: rgba(0,0,0,.3); border: 2px solid #000; font-size: 19px; line-height: 1.25; }
.how b { display: inline-block; width: 26px; font-family: var(--pix); font-size: 10px; }
.card button.big { display: block; width: 100%; font-size: 13px; padding: 14px; margin: 14px 0 6px; background: #c8102e; }
.card button.big:hover { background: #e2273f; }
.src { font-size: 16px !important; color: var(--dim); text-align: center; }

.speech .podium { font-size: 30px; margin: 6px 0 10px; color: #fff; }
.speech .timer { height: 8px; background: #000; margin-bottom: 12px; }
.speech .timer div { height: 100%; background: var(--gold); width: 100%; }
.speech .opts { display: flex; flex-direction: column; gap: 8px; }
.sopt { font-family: var(--body) !important; font-size: 22px; text-align: left; padding: 10px 12px; background: #2b2f5e; color: var(--text); border: 3px solid #000; box-shadow: inset -3px -3px 0 rgba(0,0,0,.35); }
.sopt:hover:not(:disabled) { background: #3a3f80; }
.sopt.good { background: #1f6b35; }
.sopt.badpick { background: #7a1f1f; }
.sopt:disabled { cursor: default; }
.feed { font-family: var(--pix); font-size: 10px; color: var(--gold); margin-top: 12px; min-height: 14px; }
.shake { animation: shake .12s steps(2) 6; }

.end.won h2 { color: var(--green); }
.end.lost h2 { color: var(--red); }
.score { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 20px; }
.score th { font-family: var(--pix); font-size: 8px; color: var(--dim); text-align: left; padding: 4px; border-bottom: 2px solid var(--edge); }
.score td { padding: 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.score td:nth-child(n+2), .score th:nth-child(n+2) { text-align: right; }
.score tr.hl td { color: var(--green); }
.stats { padding-left: 18px; font-size: 19px; line-height: 1.2; }

.sub .neg { color: #ff7a6e; } .sub .mid { color: #f5c04a; } .sub .pos { color: var(--green); }
.opt.down { background: #3a2230; }
.mopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mopt { text-align: left; padding: 10px 12px; background: #2b2f5e; color: var(--text); border: 3px solid #000; box-shadow: inset -3px -3px 0 rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 8px; }
.mopt b { font-family: var(--pix); font-size: 10px; line-height: 1.5; color: var(--gold); }
.mopt small { font-family: var(--body); font-size: 17px; color: var(--dim); line-height: 1; }
.mopt:hover:not(:disabled) { background: #3a3f80; }
.mopt:disabled { opacity: .45; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-family: var(--body); font-size: 16px; padding: 1px 5px; border: 2px solid #000; background: #444a7a; color: #fff; }
.chip.good { background: #1f6b35; } .chip.bad { background: #7a1f1f; } .chip.flag { background: #6b4f12; }
.memo h2, .review h2 { margin-bottom: 6px; }
.verdict { font-size: 20px; padding: 8px 10px; margin: 8px 0; border: 2px solid #000; line-height: 1.1; }
.verdict.ok { background: #1c4a2a; } .verdict.no { background: #4a1c1c; }
.pledge { background: rgba(0,0,0,.3); border: 2px solid #000; padding: 10px; margin-top: 10px; }
.pledge h3 { font-family: var(--pix); font-size: 12px; margin: 4px 0; color: #fff; line-height: 1.4; }
.pledge p { margin: 4px 0; font-size: 19px; color: var(--dim); }
.cost { font-size: 20px; }
@media (max-width: 760px) { .mopts { grid-template-columns: 1fr; } }

@keyframes blink { 50% { filter: brightness(1.5); } }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(-34px); opacity: 0; } }
@keyframes popin { 0% { transform: scale(.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes slidein { 0% { transform: translateX(40px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes shake { 0% { transform: translateX(-3px); } 100% { transform: translateX(3px); } }

@media (max-width: 760px) {
  html, body { font-size: 17px; }
  #topbar { flex-wrap: wrap; gap: 6px; }
  .date, .sys { display: none; }
  #cmdbar { bottom: 38px; overflow-x: auto; }
  .cmd { width: 58px; }
  .cmd .nm { font-size: 12px; }
  #outrage { top: 96px; }
  #scoop { bottom: 130px; width: min(300px, 94vw); }
  .card h1 { font-size: 20px; }
  .menu { width: min(330px, 94vw); }
}
.card button.big { color: var(--text); border: 3px solid #000; box-shadow: inset -3px -3px 0 rgba(0,0,0,.35), inset 3px 3px 0 rgba(255,255,255,.12); line-height: 1.5; text-align: center; }
.sys button.offm { opacity: .4; text-decoration: line-through; }

/* ---------- title screen ---------- */
.screen { position: fixed; inset: 0; display: none; }
#title { z-index: 25; background: linear-gradient(90deg, rgba(9,11,28,.94) 0%, rgba(9,11,28,.8) 32%, rgba(9,11,28,.2) 46%, rgba(9,11,28,0) 56%); }
#title.show { display: flex; align-items: center; padding-left: max(24px, 6vw); }
body:not(.playing) #anchors { display: none; }
.tbox { width: min(430px, 100%); animation: popin .4s steps(4); }
.logo .kicker { color: #ff9e85; letter-spacing: 3px; }
.logo h1 { font-family: var(--pix); margin: 4px 0 10px; line-height: 1.15; }
.logo h1 span { display: block; }
.logo .l1 { font-size: 34px; color: var(--gold); text-shadow: 3px 3px 0 #c8102e, 6px 6px 0 #000; }
.logo .l2 { font-size: 27px; color: #fff; text-shadow: 3px 3px 0 #2e5fa8, 6px 6px 0 #000; margin-top: 4px; }
.logo .yr { display: inline-block !important; margin-top: 10px; font-size: 14px; color: #fff; background: #c8102e; padding: 6px 10px 4px; border: 3px solid #000; box-shadow: 4px 4px 0 #000; transform: rotate(-3deg); }
.logo .tag { font-size: 21px; color: var(--dim); font-style: italic; margin: 6px 0 18px; }

.mainmenu { display: flex; flex-direction: column; gap: 8px; }
.mainmenu > button, .pmenu > button, .prow button, .btnlink {
  font-family: var(--pix); font-size: 11px; text-align: left; padding: 11px 14px; color: var(--text); text-decoration: none;
  background: rgba(43,47,94,.9); border: 3px solid #000; box-shadow: inset -3px -3px 0 rgba(0,0,0,.35), inset 3px 3px 0 rgba(255,255,255,.1);
}
.mainmenu > button:hover, .mainmenu > button:focus-visible, .pmenu > button:hover, .pmenu > button:focus-visible, .prow button:hover:not(:disabled), .btnlink:hover {
  background: #3a3f80; outline: none; color: var(--gold);
}
.mainmenu > button:focus-visible::before, .pmenu > button:focus-visible::before { content: '▸ '; color: var(--gold); }
.mainmenu > button.primary, .pmenu > button.primary, .prow button.primary { background: #c8102e; font-size: 13px; padding: 14px; }
.mainmenu > button.primary:hover, .mainmenu > button.primary:focus-visible, .pmenu > button.primary:hover, .prow button.primary:hover { background: #e2273f; color: #fff; }
.prow button:disabled { opacity: .4; cursor: default; }

.diff { display: flex; align-items: stretch; gap: 6px; margin: 2px 0 6px; }
.diff .arrow { font-size: 12px; width: 40px; color: var(--gold); background: rgba(0,0,0,.35); border: 3px solid #000; }
.diff .arrow:disabled { opacity: .25; cursor: default; }
.diff .dtext { flex: 1; text-align: center; padding: 6px 4px; background: rgba(0,0,0,.35); border: 3px solid #000; }
.diff .dtext b { display: block; font-family: var(--pix); font-size: 10px; }
.diff[data-level="0"] .dtext b { color: var(--green); }
.diff[data-level="1"] .dtext b { color: var(--gold); }
.diff[data-level="2"] .dtext b { color: #ff6b5e; }
.diff .dtext small { display: block; font-size: 16px; color: var(--dim); margin-top: 3px; line-height: 1; }
.best { margin-top: 14px; font-size: 18px; color: var(--dim); }
.tfoot { position: fixed; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 15px; color: rgba(255,255,255,.45); pointer-events: none; }
.tfoot .tlink { pointer-events: auto; background: none; border: 0; padding: 0; font: inherit; color: rgba(255,255,255,.7); text-decoration: underline; cursor: pointer; }
.tfoot .tlink:hover, .tfoot .tlink:focus-visible { color: #fff; }
.privacy p { margin: 0 0 10px; }
.privacy ul { margin: 0 0 12px; padding-left: 20px; }
.privacy li { margin-bottom: 6px; }

/* ---------- panels (how to play, settings, about, pause) ---------- */
#panel { z-index: 35; background: rgba(9,11,28,.6); align-items: center; justify-content: center; padding: 16px; }
#panel.show { display: flex; }
.pcard { width: min(560px, 100%); }
.pcard h2 { display: flex; align-items: center; gap: 10px; }
.hicon { font-size: 26px; }
.howbody p, .howbody li { font-size: 20px; line-height: 1.15; }
.howbody ul { padding-left: 20px; margin: 8px 0; }
.howbody li { margin: 5px 0; }
.keys { background: rgba(0,0,0,.3); border: 2px solid #000; padding: 8px; font-size: 18px !important; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 12px 0 4px; }
.dots i { width: 10px; height: 10px; background: #2b2f5e; border: 2px solid #000; }
.dots i.on { background: var(--gold); }
.prow { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.prow button, .btnlink { text-align: center; }
.prow [data-back]:not(.primary) { margin-right: auto; }
.btnlink { margin-right: auto; }
.srow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.srow b { display: block; font-family: var(--pix); font-size: 10px; color: var(--text); margin-bottom: 4px; }
.srow small { font-size: 17px; color: var(--dim); }
.toggle { font-size: 10px; min-width: 96px; padding: 9px; color: #000; background: var(--gold); border: 3px solid #000; box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.toggle:hover { background: #fff; }
.pmenu { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

.endbtns { display: flex; gap: 10px; }
.endbtns .big { flex: 1; }
.card button.big.alt { background: #2b2f5e; }
.card button.big.alt:hover { background: #3a3f80; }
.newbest { display: inline-block; font-family: var(--pix); font-size: 10px; color: #000; background: var(--gold); padding: 6px 8px; border: 2px solid #000; margin-bottom: 6px; animation: blink .6s steps(2) 6; }

@media (max-width: 760px), (max-aspect-ratio: 11/10) {
  #title { background: linear-gradient(180deg, rgba(9,11,28,.94) 0%, rgba(9,11,28,.85) 55%, rgba(9,11,28,0) 78%); }
  #title.show { align-items: flex-start; padding: 24px 16px; }
  .tbox { width: 100%; max-width: 430px; }
  .logo .l1 { font-size: 24px; } .logo .l2 { font-size: 19px; }
  .tfoot { display: none; }
  .endbtns { flex-direction: column; }
}

/* ---------- clarity pass ---------- */
.locked { display: none !important; }
.flash { animation: unlockflash .5s steps(2) 8 !important; }
@keyframes unlockflash { 50% { box-shadow: 0 0 0 3px var(--gold), 0 0 18px var(--gold); filter: brightness(1.4); } }

.fsub { font-size: 16px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.fsub b { color: inherit; font-family: var(--pix); font-size: 8px; }
.fsub .pos { color: var(--green); } .fsub .neg { color: #ff7a6e; } .fsub .dim { color: var(--dim); }
#toasts { top: 84px !important; }

#leftcol { position: fixed; left: 8px; top: 84px; width: 236px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
#leftcol #outrage { position: static; width: auto; }
#objective { padding: 8px 10px; border-color: #000; box-shadow: inset 0 0 0 2px var(--gold), 4px 4px 0 rgba(0,0,0,.35); }
#objective .lbl { color: var(--gold); }
#objective .otext { font-size: 18px; line-height: 1.05; }
#objective .show { margin-top: 7px; font-size: 8px; padding: 6px 8px; color: #000; background: var(--gold); border: 2px solid #000; }
#objective .show:hover { background: #fff; }
#objective.pop { animation: popin .3s steps(3); }
.sw { display: inline-block; width: 9px; height: 9px; border: 1px solid #000; margin-right: 4px; vertical-align: middle; }
.orow span { width: 58px !important; text-align: left !important; font-size: 15px; }

#report { position: fixed; right: 8px; top: 84px; width: 300px; display: none; z-index: 5; }
#report.show { display: block; animation: slidein .3s steps(4); }
.rcard { padding: 8px 10px; }
.rhead { display: flex; justify-content: space-between; align-items: center; font-family: var(--pix); font-size: 9px; color: var(--gold); margin-bottom: 6px; }
.rhead .x { background: none; border: none; color: var(--text); font-size: 11px; }
.rrow { font-size: 17px; line-height: 1.05; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.radvice { font-size: 17px; line-height: 1.05; margin-top: 6px; padding: 6px; background: rgba(255,210,63,.12); border: 1px solid rgba(255,210,63,.4); }

.passing { font-size: 17px; color: var(--text); margin-bottom: 4px; }
.opt .est { display: block; font-family: var(--pix); font-size: 8px; color: var(--green); margin-top: 4px; }
.opt .est.none { color: #ff8a7e; font-family: var(--body); font-size: 15px; }
.opt .cov { display: block; font-size: 14px; color: var(--dim); }
.ang { display: inline-block; font-size: 13px; padding: 0 4px; margin-top: 3px; border: 1px solid #000; }
.ang.lo { background: #1f6b35; } .ang.md { background: #6b4f12; } .ang.hi { background: #7a1f1f; }
.opt.dead { opacity: .6; }
.opt.best { box-shadow: inset 0 0 0 2px var(--green); }
.opt em { font-style: normal; color: var(--green); font-size: 7px; }
.opt.guide { box-shadow: inset 0 0 0 3px var(--gold); animation: blink .7s steps(2) infinite; }
.menu { width: 360px; }

.guidearrow { translate: -50% -100%; pointer-events: none; }
.guidearrow span { display: block; font-size: 22px; color: var(--gold); text-shadow: 2px 2px 0 #000; animation: arrowbob .6s steps(2) infinite; }
@keyframes arrowbob { 50% { transform: translateY(-8px); } }
.slotbtn.guide > span { background: #fff !important; box-shadow: 0 0 0 3px var(--gold), 0 0 14px var(--gold); font-size: 11px; }

.intro .ipoints { padding-left: 20px; margin: 10px 0; }
.intro .ipoints li { font-size: 21px; line-height: 1.15; margin: 7px 0; }

#scoop { position: fixed; inset: 0; left: 0; bottom: 0; width: auto; display: none; align-items: center; justify-content: center; background: rgba(9,11,28,.5); z-index: 30; }
#scoop.show { display: flex; }
#scoop .paper { width: min(380px, 92vw); }
#scoop .stimer { display: none; }

@media (max-width: 760px) {
  #leftcol { top: auto; bottom: 120px; width: 200px; }
  #report { top: auto; bottom: 120px; width: min(300px, 60vw); }
}

/* ---------- advisor & coach marks ---------- */
#objective .owhy { font-size: 16px; color: var(--dim); line-height: 1.05; margin-top: 5px; }
#objective .owhy b { color: var(--gold); }
#objective .obtns { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
#objective .act { font-size: 8px; padding: 7px 8px; color: #fff; background: #1f6b35; border: 2px solid #000; box-shadow: inset -2px -2px 0 rgba(0,0,0,.35); }
#objective .act:hover:not(:disabled) { background: #2a8a46; }
#objective .act:disabled { opacity: .5; cursor: default; }
#objective.urgent { box-shadow: inset 0 0 0 2px #ff6b5e, 4px 4px 0 rgba(0,0,0,.35); }
#objective.urgent .lbl { color: #ff6b5e; }
#leftcol { width: 250px; }
#coachArrow { position: fixed; z-index: 45; display: none; translate: -50% 0; font-size: 22px; color: var(--gold); text-shadow: 2px 2px 0 #000; pointer-events: none; animation: arrowbob .6s steps(2) infinite; }
#coachArrow.show { display: block; }
body:not(.playing) #coachArrow { display: none; }
.coached { box-shadow: 0 0 0 3px var(--gold), 0 0 16px var(--gold) !important; }
.fsub.coached { outline: 2px solid var(--gold); }
.opt .need { display: block; font-size: 14px; color: #ffb35e; }

/* ================= phones ================= */
:root { --tb: 70px; }
#objective .lbl { cursor: pointer; }
#objective.min .otext, #objective.min .owhy, #objective.min .obtns { display: none !important; }
#objective .lbl::after { content: ''; }

@media (pointer: coarse) {
  .slotbtn > span { font-size: 12px; padding: 6px 8px 4px; }
  .slotbtn.built > span { font-size: 9px; padding: 4px 5px; }
  .bubble button { font-size: 9px; padding: 8px 4px; }
}

/* ---------- portrait phones ---------- */
@media (max-width: 600px) {
  html, body { font-size: 16px; }
  body::after { display: none; }

  /* top bar: jar on top, deficit · month · capital · pause underneath */
  #topbar { top: 4px; left: 4px; right: 4px; width: auto; transform: none; display: grid; grid-template-columns: 1fr auto auto auto; gap: 4px 8px; padding: 5px 7px 6px; align-items: end; }
  #topbar .stat.jar { grid-column: 1 / -1; }
  #topbar .stat.def { grid-column: 1; min-width: 0; }
  #topbar .stat.def .lbl { overflow: hidden; text-overflow: ellipsis; }
  #topbar .date, #topbar .sys { display: block !important; }
  #topbar .date { min-width: max-content; }
  #topbar .date .lbl { white-space: nowrap; }
  #report.show ~ #toasts { display: none; }
  #topbar .date .bar { display: none; }
  #topbar .sys { display: flex !important; gap: 3px; }
  #btnMusic, #btnMute { display: none; }
  .sys button { width: 30px; height: 28px; font-size: 11px; }
  #topbar .lbl { font-size: 7px; margin-bottom: 3px; }
  #topbar .bar { height: 15px; }
  .btxt { font-size: 8px; }
  .fsub { font-size: 14px; }
  .big { font-size: 13px; line-height: 15px; }

  /* outrage: one thin strip of four meters under the top bar */
  #leftcol { display: contents; }
  #outrage { position: fixed !important; top: calc(var(--tb) + 8px); left: 4px; right: 4px; width: auto !important; display: flex; gap: 8px; align-items: center; padding: 4px 8px; }
  #outrage .lbl { display: none; }
  #outrage .orow { flex: 1; margin: 0; gap: 4px; }
  #outrage .orow span { display: none; }
  #outrage .bar.sm { height: 8px; }

  /* objective: bottom sheet above the command bar; tap the header to collapse */
  #objective { position: fixed; left: 4px; right: 4px; bottom: 96px; padding: 7px 9px; max-height: 38vh; overflow: auto; z-index: 6; }
  #objective .lbl::after { content: '  ▾ tap to hide'; color: var(--dim); font-size: 6px; }
  #objective.min .lbl::after { content: '  ▸ tap for advice'; }
  #objective .otext { font-size: 16px; }
  #objective .owhy { font-size: 14px; }
  #objective .act, #objective .show { font-size: 8px; padding: 9px 10px; }

  /* command bar: full width, every button the same size */
  #cmdbar { left: 4px; right: 4px; bottom: 28px; transform: none; max-width: none; gap: 4px; padding: 4px; overflow: visible; }
  #abilities { display: contents; }
  #cmdbar .sep { display: none; }
  .cmd { flex: 1 1 0; width: auto; min-width: 0; padding: 5px 1px 4px; gap: 2px; }
  .cmd .ic { font-size: 16px; }
  .cmd .nm { font-size: 12px; }
  .cmd .cdv { font-size: 6px; }

  /* ticker, toasts, report */
  #ticker { height: 26px; }
  .tlabel { font-size: 7px; padding: 0 6px; }
  #tickerWrap { font-size: 16px; }
  #tickerText .ti::after { margin: 0 12px; }
  #tickerText .ti.brk b { font-size: 7px; }
  #toasts { top: calc(var(--tb) + 40px) !important; width: calc(100vw - 16px); }
  .toast { font-size: 15px; padding: 3px 8px; }
  .toast:nth-last-child(n+2) { display: none; }
  #report { top: calc(var(--tb) + 40px) !important; bottom: auto !important; left: 4px; right: 4px; width: auto !important; }
  .rrow, .radvice { font-size: 15px; }

  /* build menu: bottom sheet */
  .menu { left: 4px !important; right: 4px; top: auto !important; bottom: 96px; width: auto !important; max-height: 58vh; overflow: auto; z-index: 20; }
  .opt { padding: 8px 6px; }

  /* modals and cards */
  .card { padding: 14px 14px; }
  .card h2 { font-size: 14px; }
  .card p, .howbody p, .howbody li, .intro .ipoints li { font-size: 18px; }
  .speech .podium { font-size: 22px; }
  .sopt { font-size: 19px; padding: 9px; }

  /* title */
  .logo .kicker { font-size: 7px; letter-spacing: 1px; }
  .mainmenu > button { padding: 10px 12px; }
}

/* ---------- landscape phones ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  html, body { font-size: 15px; }
  #topbar { top: 4px; padding: 4px 8px 5px; gap: 10px; }
  #topbar .lbl { font-size: 7px; margin-bottom: 2px; }
  #topbar .bar { height: 13px; }
  .fsub { font-size: 13px; }
  #leftcol { top: calc(var(--tb) + 8px); width: 220px; gap: 5px; }
  #objective { max-height: calc(100vh - var(--tb) - 120px); overflow: auto; }
  #objective .otext { font-size: 15px; }
  #objective .owhy { display: none !important; }
  #outrage { padding: 4px 8px; }
  .orow { margin: 2px 0; }
  #report { top: calc(var(--tb) + 8px) !important; width: 250px; }
  .rrow, .radvice { font-size: 14px; }
  #cmdbar { bottom: 28px; padding: 4px; gap: 4px; }
  .cmd { width: 58px; padding: 4px 2px; }
  .cmd .nm { font-size: 12px; }
  #ticker { height: 26px; }
  .menu { top: calc(var(--tb) + 8px) !important; max-height: calc(100vh - var(--tb) - 100px); overflow: auto; }
  .card { max-height: calc(100vh - 20px); }
}

/* built booths: badge tinted in the booth's colour, always visible */
.slotbtn.built > span { background: var(--bc, #2b2f5e) !important; color: #000 !important; border: 2px solid #000 !important; font-size: 9px !important; padding: 3px 5px 2px !important; box-shadow: 2px 2px 0 rgba(0,0,0,.5); text-shadow: none; }
.slotbtn.built em { color: #000 !important; background: rgba(255,255,255,.7); padding: 0 2px; }
.floater.open span { font-size: 11px; color: #fff; background: #1f6b35; padding: 4px 6px; border: 2px solid #000; text-shadow: none; }
@media (pointer: coarse) { .slotbtn.built > span { font-size: 11px !important; padding: 4px 6px 3px !important; } }
#cmdbar.empty { display: none; }
@media (max-width: 600px) { body.nocmd #objective { bottom: 32px; } body.nocmd .menu { bottom: 32px; } }

/* ================= ending cinematic ================= */
body.cine #hud, body.cine #coachArrow, body.cine .menu { display: none !important; }
body.cine #anchors > *:not(.hug):not(.cinebub) { display: none !important; }
#letterbox i { position: fixed; left: 0; right: 0; height: 0; background: #000; z-index: 28; transition: height .6s steps(6); }
#letterbox i:first-child { top: 0; } #letterbox i:last-child { bottom: 0; }
body.cine #letterbox i { height: 10vh; }
#skipCine { position: fixed; right: 14px; bottom: calc(10vh + 10px); z-index: 29; display: none; font-size: 9px; padding: 7px 10px; color: var(--text); background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.4); }
body.cine #skipCine { display: block; }
#skipCine:hover { border-color: var(--gold); color: var(--gold); }
#cineTitle { position: fixed; left: 0; right: 0; top: calc(10vh + 20px); z-index: 29; text-align: center; pointer-events: none; display: none; }
#cineTitle.show { display: block; animation: cinein .5s steps(5); }
#cineTitle small { display: block; font-family: var(--pix); font-size: 11px; letter-spacing: 3px; color: #fff; text-shadow: 2px 2px 0 #000; }
#cineTitle b { display: block; font-family: var(--pix); font-size: clamp(22px, 5vw, 46px); color: var(--gold); text-shadow: 4px 4px 0 #c8102e, 7px 7px 0 #000; margin-top: 8px; }
#cineTitle em { display: block; font-style: normal; font-size: 22px; color: #fff; text-shadow: 2px 2px 0 #000; margin-top: 8px; }
@keyframes cinein { 0% { transform: scale(1.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
#fade { position: fixed; inset: 0; z-index: 31; background: #0a0c1e; opacity: 0; pointer-events: none; transition: opacity .6s steps(6); }
#fade.on { opacity: 1; }
.bubble.hug { font-size: 24px; max-width: 320px; }

/* ================= results: Sunday Scoop front page ================= */
#modal:has(.result) { background: rgba(6, 8, 22, .82); }
.result { width: min(860px, 100%); max-height: 100%; overflow: auto; background: #f3ecdc; color: #1a1a1a; border: 4px solid #000; box-shadow: 10px 10px 0 rgba(0,0,0,.5); padding: 18px 24px 14px; animation: paperin .55s steps(6); }
@keyframes paperin { 0% { transform: rotate(-14deg) scale(.4); opacity: 0; } 70% { transform: rotate(2deg) scale(1.03); opacity: 1; } 100% { transform: none; } }
.result .mast { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 4px double #1a1a1a; padding-bottom: 4px; }
.result .mast span { font-family: Georgia, "Times New Roman", serif; font-weight: bold; font-size: 30px; }
.result .mast em { font-style: normal; font-family: var(--pix); font-size: 8px; color: #c8102e; }
.result .headline { font-family: var(--pix); font-size: clamp(24px, 4.6vw, 44px); line-height: 1.15; margin: 14px 0 4px; color: #111; text-shadow: 3px 3px 0 #ffd23f; }
.result.lost .headline { text-shadow: 3px 3px 0 #ff9e8a; }
.result .foot { font-size: 18px; color: #666; font-style: italic; }
.result .dek { font-family: Georgia, serif; font-size: 18px; line-height: 1.3; margin: 8px 0 12px; color: #333; }
.result .rank { display: flex; align-items: center; gap: 14px; background: #1a1a1a; color: #fff; padding: 10px 14px; border: 3px solid #000; }
.result .stars { font-size: 30px; color: var(--gold); letter-spacing: 2px; text-shadow: 2px 2px 0 #000; }
.result.lost .stars { color: #ff6b5e; }
.result .rank b { display: block; font-family: var(--pix); font-size: 13px; color: var(--gold); }
.result .rank small { font-size: 17px; color: #ccc; }
.result .newbest { margin: 0 0 0 auto; }
.result .checks { list-style: none; padding: 0; margin: 10px 0 0; display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 17px; color: #888; }
.result .checks li.on { color: #1a1a1a; }
.result .checks li.on::first-letter { color: #c98a12; }
.result .rcols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-top: 14px; }
.result h3 { font-family: var(--pix); font-size: 9px; margin: 0 0 8px; color: #c8102e; }
.wrow { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 8px; align-items: center; margin: 7px 0; font-size: 17px; }
.wrow .wbar { height: 14px; background: #ddd2b8; border: 2px solid #1a1a1a; }
.wrow .wbar i { display: block; height: 100%; width: 0; background: var(--c); animation: growbar 1.2s steps(10) .3s forwards; }
@keyframes growbar { to { width: var(--w); } }
.wrow b { font-family: var(--pix); font-size: 9px; min-width: 56px; text-align: right; }
.wrow.mt { border-top: 2px dashed #1a1a1a; padding-top: 7px; }
.wrow b.zero { color: #1f6b35; }
.scards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scard { background: #fff; border: 2px solid #1a1a1a; padding: 6px 8px; box-shadow: 3px 3px 0 rgba(0,0,0,.15); }
.scard small { display: block; font-size: 14px; color: #777; }
.scard b { display: block; font-family: var(--pix); font-size: 13px; margin: 3px 0; color: #111; }
.scard span { font-size: 14px; color: #555; line-height: 1; }
.scard.ok b { color: #1f6b35; } .scard.bad b { color: #c8102e; }
.result .endbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.result .endbtns .big { flex: 1 1 160px; margin: 0; font-size: 10px; padding: 12px 8px; }
.result .src { color: #777 !important; margin-top: 8px; }
@media (max-width: 600px) {
  .result { padding: 12px 12px 10px; }
  .result .mast span { font-size: 20px; }
  .result .rcols { grid-template-columns: 1fr; }
  .wrow { grid-template-columns: 1fr auto; } .wrow .wbar { grid-column: 1 / -1; grid-row: 2; }
  .result .stars { font-size: 22px; }
  #cineTitle em { font-size: 17px; }
  .bubble.hug { font-size: 18px; max-width: 240px; }
}
.result .endbtns .big { font-family: var(--pix); color: #fff; background: #c8102e; border: 3px solid #000; box-shadow: inset -3px -3px 0 rgba(0,0,0,.3), 3px 3px 0 rgba(0,0,0,.25); line-height: 1.5; text-align: center; cursor: pointer; }
.result .endbtns .big:hover { background: #e2273f; }
.result .endbtns .big.alt { background: #1a1a1a; color: var(--gold); }
.result .endbtns .big.alt:hover { background: #333; }

/* opening: press camera flashes */
#flash { position: fixed; inset: 0; z-index: 27; background: #fff; opacity: 0; pointer-events: none; }
#flash.on { animation: camflash .22s steps(3); }
@keyframes camflash { 0% { opacity: .35; } 100% { opacity: 0; } }

/* ---------- comments section ---------- */
#comments { position: fixed; right: 8px; bottom: 44px; width: 270px; padding: 6px 8px; z-index: 5; }
#comments .clist { display: flex; flex-direction: column; gap: 5px; }
.cm { display: flex; gap: 6px; align-items: flex-start; animation: slidein .3s steps(3); }
.cm:nth-child(3) { opacity: .7; } .cm:nth-child(4) { opacity: .4; }
.cm .av { flex: 0 0 22px; height: 22px; font-style: normal; font-family: var(--pix); font-size: 9px; color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid #000; }
.cm b { display: block; font-family: var(--pix); font-size: 7px; color: #9fc3ff; margin-bottom: 2px; }
.cm span { display: block; font-size: 16px; line-height: 1; }
.cm em { font-style: normal; font-size: 13px; color: var(--dim); }
.toast.ctoast { background: #f0f2f5; color: #111; border-color: #000; box-shadow: none; }
.toast.ctoast b { color: #1b4fa8; }
@media (max-width: 1100px) { #comments { width: 230px; } }
@media (max-height: 500px) and (orientation: landscape) { #comments { display: none; } }
@media (max-width: 600px) { #comments { display: none; } }
body.cine #comments { display: none; }

/* ---------- heatwave, blackouts ---------- */
body.heat #view { filter: saturate(1.15) sepia(.12) brightness(1.04); }
body.blackout #view { filter: brightness(.62) saturate(.7); }
.bolt { translate: -50% -100%; font-size: 20px; text-shadow: 2px 2px 0 #000; animation: blink .4s steps(2) infinite; pointer-events: none; }

.result .mkpage { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.result .mkpage input { flex: 1 1 200px; font-family: var(--body); font-size: 20px; padding: 8px 10px; border: 3px solid #1a1a1a; background: #fff; color: #111; }
.result .mkpage .big { flex: 0 1 auto; margin: 0; font-family: var(--pix); font-size: 10px; padding: 12px 14px; color: #111; background: var(--gold); border: 3px solid #000; cursor: pointer; }
.result .mkpage .big:hover { background: #fff; }

/* town league */
.towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; max-height: 46vh; overflow: auto; margin-top: 10px; }
.tbtn { font-family: var(--body); font-size: 18px; text-align: left; padding: 6px 8px; color: var(--text); background: #2b2f5e; border: 2px solid #000; }
.tbtn:hover { background: #3a3f80; } .tbtn.on { background: var(--gold); color: #000; }
.league { max-height: 52vh; overflow: auto; }
.ltable { width: 100%; border-collapse: collapse; font-size: 19px; }
.ltable th { font-family: var(--pix); font-size: 8px; color: var(--dim); text-align: left; padding: 5px; border-bottom: 2px solid var(--edge); }
.ltable td { padding: 5px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ltable tr.me td { background: rgba(255,210,63,.15); color: var(--gold); }
.ltable td:nth-child(n+3), .ltable th:nth-child(n+3) { text-align: right; }

