/* The solo page's look: carried over unchanged from src/solo.html (the Worldbuilding identity: Verdana and Georgia, Lapis, Tyrian, Orpiment, Malachite; light and dark; reduced motion respected). */
:root{--lapis:#233A8C;--lapis-t:#233A8C;--ink:#1B1E2B;--paper:#F6F7FA;--panel:#fff;--muted:#4A5068;--rule:#DCE0EA;--gold:#E2B350;--orpiment:#8F6200;--tyrian:#6B2D5C;--tyrian-t:#6B2D5C;--malachite:#2A7560;--grey:#6B7185;--soft:#EEF1F8}
@media (prefers-color-scheme:dark){:root{--ink:#E4E7F0;--paper:#11131A;--panel:#191C26;--muted:#A2A8BC;--rule:#2D3243;--orpiment:#E2B350;--malachite:#72D1B0;--grey:#8E96AD;--tyrian-t:#E0A9CF;--lapis-t:#AEBDF4;--soft:#1E2230;color-scheme:dark}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:hidden}
html,body{margin:0;min-height:100%}
body{font:17px/1.5 Verdana,"DejaVu Sans",system-ui,sans-serif;background:var(--paper);color:var(--ink);padding:env(safe-area-inset-top,0) 0 env(safe-area-inset-bottom,0);overflow-x:hidden}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
[hidden]{display:none!important}
header{background:var(--lapis);color:#fff;padding:14px 18px;display:flex;align-items:center;gap:12px}
header svg{width:34px;height:34px;flex:none}
header b{display:block;font-size:1.05em}
header small{display:block;font-size:.7em;letter-spacing:.14em;text-transform:uppercase;opacity:.85}
main{padding:18px 16px 40px;display:grid;gap:14px;max-width:560px;margin:0 auto}
h1,h2,h3{line-height:1.25}
p{margin:0}
.muted{color:var(--muted)}
.eyebrow{font-size:.72em;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--muted)}
/* the opening plate */
.plate{background:var(--lapis);color:#fff;border-radius:16px;padding:22px 20px;display:grid;gap:14px;position:relative;overflow:hidden}
.plate .rose{position:absolute;right:-60px;top:-40px;width:240px;height:240px;opacity:.08;pointer-events:none}
.plate .eyebrow{color:#C9D2F0}
.plate h1{margin:0;font-size:1.55em;white-space:pre-line}
.plate .quote{border-left:4px solid var(--gold);padding-left:12px;font-size:.9em}
.plate .quote small{display:block;opacity:.8;font-size:.85em;margin-top:4px}
.plate .lead{font-size:1em}
.plate .how{font-size:.88em;color:#E4E9F8}
/* brief: state and type */
.state{background:var(--panel);border:1px solid var(--rule);border-left:6px solid var(--lapis);border-radius:0 12px 12px 0;padding:12px 16px;font-weight:700;line-height:1.35}
.state small{display:block;font-weight:400;color:var(--muted);font-size:.8em}
.brief{background:var(--panel);border:2px solid var(--rule);border-top:8px solid var(--tc,var(--lapis));border-radius:14px;padding:16px 18px;display:grid;gap:8px}
.brief small{font-size:.7em;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:700}
.brief h2{margin:0;font-size:1.5em;color:var(--tc,var(--lapis))}
.brief .win{font-weight:700}
.t-lion{--tc:#233A8C}.t-lamb{--tc:#2A7560}.t-jackal{--tc:#8F6200}
@media (prefers-color-scheme:dark){.t-lion{--tc:#AEBDF4}.t-lamb{--tc:#72D1B0}.t-jackal{--tc:#E2B350}}
.goal{background:var(--panel);border-left:5px solid var(--gold);border-radius:0 10px 10px 0;padding:10px 14px;font-size:.9em}
.me{display:flex;gap:6px 10px;align-items:baseline;flex-wrap:wrap;font-size:.8em;background:var(--panel);border:1px solid var(--rule);border-left:5px solid var(--tc,var(--lapis));border-radius:0 10px 10px 0;padding:8px 12px}
.me b{color:var(--tc,var(--lapis))}
/* buttons */
.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:54px;padding:12px 16px;border-radius:12px;border:2px solid var(--lapis);background:var(--lapis);color:#fff;font-weight:700;font-size:1.05em;cursor:pointer;text-align:center;text-decoration:none}
.btn.gold{background:var(--gold);border-color:var(--gold);color:#1B1E2B}
.btn.quiet{background:transparent;color:var(--lapis-t);border-color:var(--rule)}
.btn:disabled{opacity:.55;cursor:default}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
/* the round */
.round{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.round b{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:2.4em;line-height:1;color:var(--lapis-t)}
.round span{font-weight:700;font-size:1.15em}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.tag{font-size:.7em;font-weight:700;border-radius:99px;padding:3px 10px;background:var(--soft);color:var(--lapis-t)}
.tag.case{background:transparent;border:1px dashed var(--rule);color:var(--muted)}
.ask{font-style:italic;color:var(--muted)}
.card{background:var(--panel);border:1px solid var(--rule);border-radius:14px;padding:14px 16px;display:grid;gap:8px}
.speech{background:#6B4A00;color:#fff;border-radius:14px;padding:14px 16px;display:grid;gap:6px;position:relative}
.speech small{font-size:.7em;letter-spacing:.14em;text-transform:uppercase;opacity:.85;font-weight:700}
.speech q{quotes:none;font-weight:700;font-size:1.02em}
.speech.silent{background:var(--soft);color:var(--ink);border:1px dashed var(--rule)}
.speech.silent small{color:var(--muted)}
.note{border-left:5px solid var(--lapis);background:var(--panel);border-radius:0 10px 10px 0;padding:10px 14px;font-weight:700}
.note.sanctioned{border-color:var(--orpiment)}
.note.coup{border-color:var(--tyrian)}
.stakes{background:#FFF3CF;color:#5A3E00;border-radius:10px;padding:10px 14px;font-size:.88em;font-weight:700;border-left:5px solid var(--orpiment)}
@media (prefers-color-scheme:dark){.stakes{background:#3B3114;color:#F1D88D}}
.ev{font-size:.85em;border-left:4px solid #3E64D8;padding:6px 12px;background:var(--panel);border-radius:0 10px 10px 0}
/* the meter */
.meter{display:grid;gap:6px}
.meter .top{display:flex;justify-content:space-between;align-items:baseline;font-size:.85em;color:var(--muted);gap:10px}
.meter .top b{font-size:1.6em;color:var(--orpiment);font-weight:700}
.bar{position:relative;height:16px;border-radius:99px;background:var(--soft);border:1px solid var(--rule);overflow:visible}
.bar i{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:var(--gold);transition:width .8s ease}
.bar .end{position:absolute;top:-5px;bottom:-5px;width:3px;background:var(--tyrian-t);border-radius:2px}
.bar .mk{position:absolute;top:-3px;bottom:-3px;width:2px;background:#3E64D8;border-radius:2px}
.meter small{font-size:.72em;color:var(--muted)}
/* options and the confirm sheet */
.opts{display:grid;gap:12px}
.opt{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;width:100%;text-align:left;background:var(--panel);border:2px solid var(--rule);border-left-width:8px;border-radius:12px;padding:14px 16px;font-weight:700;font-size:1.15em;cursor:pointer;min-height:68px}
.opt .l{display:inline-grid;place-items:center;width:1.9em;height:1.9em;border-radius:8px;color:#fff;flex:none}
.opt .nm{flex:1;min-width:0}
.opt .wt{flex-basis:100%;font-size:.7em;font-weight:400;color:var(--muted);padding-left:calc(1.9em + 14px)}
.opt .rk{flex-basis:100%;font-size:.7em;font-weight:700;line-height:1.35;padding-left:calc(1.9em + 14px)}
.opt.k-b{border-left-color:var(--lapis)} .opt.k-b .l{background:var(--lapis)}
.opt.k-k{border-left-color:var(--grey)} .opt.k-k .l{background:var(--grey)}
.opt.k-w{border-left-color:var(--orpiment)} .opt.k-w .l{background:var(--orpiment)}
.opt.k-a{border-left-color:var(--malachite)} .opt.k-a .l{background:var(--malachite)}
.opt.k-b .rk,.opt.k-w .rk{color:var(--tyrian-t)}
.opt:disabled{opacity:.45;cursor:default}
.sheet{position:fixed;inset:0;background:rgba(12,14,22,.55);display:flex;align-items:flex-end;justify-content:center;z-index:4}
.sheet .box{background:var(--panel);width:100%;max-width:560px;border-radius:16px 16px 0 0;padding:20px 18px calc(20px + env(safe-area-inset-bottom,0px));display:grid;gap:14px;border-top:8px solid var(--lapis);animation:up .25s ease-out both}
.sheet .box.k-k{border-top-color:var(--grey)} .sheet .box.k-w{border-top-color:var(--orpiment)} .sheet .box.k-a{border-top-color:var(--malachite)}
.sheet h2{margin:0;font-size:1.4em}
.sheet .row{display:flex;gap:10px}
.sheet button{flex:1;padding:14px;border-radius:12px;font-weight:700;border:2px solid var(--rule);background:var(--panel);cursor:pointer}
.sheet button.yes{background:var(--lapis);border-color:var(--lapis);color:#fff}
@keyframes up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
/* alliances */
.pacts{background:var(--panel);border:1px solid var(--rule);border-radius:12px;padding:14px;display:grid;gap:10px}
.pacts h2{margin:0;font-size:1em}
.pacts .left{font-size:.8em;color:var(--muted);margin:0}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{font:inherit;font-size:.82em;font-weight:700;border:2px solid var(--rule);background:var(--paper);border-radius:99px;padding:8px 12px;cursor:pointer;text-align:left;max-width:100%}
.chip small{display:block;font-weight:400;font-size:.85em;color:var(--muted)}
.chip[aria-pressed="true"]{border-color:var(--lapis);background:#DDE3F4;color:#1B1E2B}
.chip.allied{border-color:var(--malachite);background:#DDF1EA;color:#1F5A4A}
.chip.gone{text-decoration:line-through;opacity:.55;cursor:default}
.chip:disabled:not(.allied):not(.gone){opacity:.7;cursor:default}
@media (prefers-color-scheme:dark){.chip[aria-pressed="true"]{background:#28315A;color:#fff}.chip.allied{background:#1F5A4A;color:#fff}.chip.allied small,.chip[aria-pressed="true"] small{color:#D8DEEF}}
.chip.allied small,.chip[aria-pressed="true"] small{color:inherit;opacity:.8}
.incoming{border:2px dashed var(--orpiment);border-radius:12px;padding:12px;display:grid;gap:10px}
.incoming .row2 .btn{min-height:44px;font-size:.95em}
.msgs{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.msgs li{font-size:.85em;background:var(--soft);border-radius:10px;padding:8px 12px}
.msgs li b{display:block}
.statelist summary{cursor:pointer;font-weight:700;font-size:.85em;color:var(--lapis-t);padding:4px 0}
.statelist[open] summary{margin-bottom:8px}
.blocs{display:flex;flex-wrap:wrap;gap:6px}
.bloc{font-size:.75em;border:1px solid var(--rule);border-radius:8px;padding:4px 8px;background:var(--paper)}
/* the result */
.result{border-radius:14px;padding:18px;display:grid;gap:10px;color:#fff;background:var(--lapis);animation:fall .6s cubic-bezier(.2,.8,.2,1) both}
.result.adv{background:#6B4A00}
.result b{font-size:1.9em;text-transform:uppercase;letter-spacing:.02em;line-height:1}
.result p{font-size:1em}
.split{display:flex;height:22px;border-radius:6px;overflow:hidden;border:1px solid var(--rule)}
.split span{display:block;height:100%}
.s-b{background:var(--lapis)}.s-k{background:repeating-linear-gradient(45deg,var(--soft),var(--soft) 4px,var(--panel) 4px,var(--panel) 8px)}.s-w{background:var(--gold)}.s-a{background:var(--malachite)}.s-q{background:var(--tyrian)}
.legend{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:.75em;color:var(--muted)}
.legend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:5px;vertical-align:-1px;border:1px solid var(--rule)}
.cons{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.cons li{background:var(--panel);border:1px solid var(--rule);border-left:5px solid var(--grey);border-radius:0 10px 10px 0;padding:9px 12px;font-size:.9em}
.cons li.lapis{border-left-color:var(--lapis)}.cons li.brass{border-left-color:var(--orpiment)}.cons li.tyrian{border-left-color:var(--tyrian)}.cons li.teal{border-left-color:var(--malachite)}
.fate{font-weight:700}
/* the lockout */
.lock{position:fixed;inset:0;background:var(--tyrian);color:#fff;display:grid;place-items:center;padding:28px;text-align:center;z-index:5;animation:fall .7s cubic-bezier(.2,.8,.2,1) both;overflow:auto}
.lock .inner{display:grid;gap:16px;max-width:420px;justify-items:center}
.lock svg{width:96px;height:96px;opacity:.85}
.lock h1{margin:0;font-size:1.6em;line-height:1.2}
.lock p{font-size:1.05em}
.lock .btn{background:#fff;border-color:#fff;color:var(--tyrian)}
@keyframes fall{from{opacity:0;transform:scale(1.04)}to{opacity:1;transform:none}}
.watching{background:var(--tyrian);color:#fff;border-radius:12px;padding:10px 14px;font-weight:700;font-size:.9em}
/* the end */
.final{border-radius:14px;padding:18px;display:grid;gap:8px;color:#fff;background:var(--malachite)}
.final.lost{background:#4A5068}
@media (prefers-color-scheme:dark){.final{background:#1F5A4A}}
.final small{font-size:.7em;letter-spacing:.14em;text-transform:uppercase;opacity:.85;font-weight:700}
.final b{font-size:1.5em;line-height:1.15}
.tbl{width:100%;border-collapse:collapse;font-size:.8em}
.tbl th,.tbl td{border-bottom:1px solid var(--rule);padding:6px 4px;text-align:right}
.tbl th:first-child,.tbl td:first-child{text-align:left}
.tbl thead th{color:var(--muted);font-weight:700}
.tbl .good{color:var(--malachite);font-weight:700}.tbl .bad{color:var(--orpiment);font-weight:700}
.scroll{overflow-x:auto;max-width:100%}
.qs{margin:0;padding:0;list-style:none;display:grid;gap:12px;counter-reset:q}
.qs li{background:var(--panel);border:1px solid var(--rule);border-radius:12px;padding:12px 14px;display:grid;gap:6px}
.qs .q{font-weight:700}
.qs .data{font-size:.82em;background:var(--soft);border-radius:8px;padding:6px 10px}
.qs .who{font-size:.8em;color:var(--muted)}
.sim{border:2px dashed var(--rule);border-radius:14px;padding:14px;display:grid;gap:10px}
.sim h2{margin:0;font-size:1.05em}
.sim .lbl{font-size:.8em;font-weight:700;color:var(--tyrian-t)}
.sim ol{margin:0;padding-left:1.2em;display:grid;gap:6px;font-size:.88em}
.closing{display:flex;gap:10px;align-items:center;font-size:.9em;color:var(--muted)}
.closing svg{width:30px;height:30px;flex:none;color:var(--lapis-t)}
.gloss{font-size:.85em;text-align:center}
.warnbox{border-left:5px solid var(--tyrian);background:var(--soft);border-radius:0 10px 10px 0;padding:10px 12px;display:grid;gap:4px;font-size:.92em}
#shWarn{display:grid;gap:8px}
.ptitle{margin:0;font-size:1.5em}
.endacts{display:grid;gap:6px}
.endacts .muted{text-align:center}
.briefbar{position:sticky;top:0;z-index:3;background:var(--panel);border-bottom:1px solid var(--rule);border-left:6px solid var(--tc,var(--lapis));box-shadow:0 2px 8px rgba(12,14,22,.08)}
.briefbar summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;padding:10px 16px;cursor:pointer;font-size:.85em;max-width:560px;margin:0 auto}
.briefbar summary .bt{font-size:.75em;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--muted);flex-basis:100%}
.briefbar summary b{color:var(--tc,var(--lapis));font-size:1.15em}
.briefbar summary .bs{color:var(--muted)}
.briefbar .bb{padding:0 16px 12px;display:grid;gap:6px;font-size:.9em;max-width:560px;margin:0 auto}
.briefbar .win{font-weight:700}
.guide h2{margin:0;font-size:1.05em}
.steps{margin:0;padding-left:1.3em;display:grid;gap:8px;font-size:.92em}
.sizes{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:.92em}
.sizes li{display:flex;gap:10px;align-items:center;padding:6px 8px;border-radius:8px}
.sizes li.mine{background:var(--soft);font-weight:700}
.pips{display:inline-flex;gap:3px;width:52px;flex:none}
.pips i{width:13px;height:13px;border-radius:50%;background:var(--lapis-t)}
.mini{display:grid;gap:10px}
.mopt{display:flex;gap:12px;align-items:flex-start;font-size:.9em}
.mopt .l{display:inline-grid;place-items:center;width:1.9em;height:1.9em;border-radius:8px;color:#fff;flex:none;font-weight:700}
.mopt.k-b .l{background:var(--lapis)}.mopt.k-k .l{background:var(--grey)}.mopt.k-w .l{background:var(--orpiment)}
.mopt b{display:block}
.mopt .rk{font-size:.85em;font-weight:700;color:var(--tyrian-t)}
.ends{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:.92em}
.ends li{border-left:5px solid var(--rule);padding:4px 10px}
.ends .e-heg{border-color:var(--tyrian)}.ends .e-unb{border-color:var(--orpiment)}.ends .e-held{border-color:var(--lapis)}
.small{font-size:.82em}
.rules h2{margin:0;font-size:1.05em}
.rules ul{margin:0;padding-left:1.2em;display:grid;gap:4px;font-size:.9em}
.panel summary{cursor:pointer;font-weight:700;color:var(--lapis-t);padding:4px 0}
.panel .pbody{display:grid;gap:12px;margin-top:10px}
.btn.sm{min-height:44px;font-size:.88em;padding:8px 10px}
.btn.quiet[aria-pressed="true"]{border-color:var(--lapis-t);background:var(--soft)}
.nums{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.nums label,.field{display:grid;gap:4px;font-size:.8em;color:var(--muted)}
.nums label{grid-template-rows:1fr auto}.nums label span{align-self:end}
.nums input,.field select,.copyrow input{font:inherit;font-size:1rem;color:var(--ink);background:var(--paper);border:2px solid var(--rule);border-radius:8px;padding:8px 10px;width:100%;min-width:0}
.tick{display:flex;gap:10px;align-items:flex-start;font-size:.88em}
.tick input{width:22px;height:22px;flex:none;margin:1px 0 0}
.check{font-size:.82em;border-left:4px solid var(--malachite);padding:6px 10px;background:var(--soft);border-radius:0 8px 8px 0}
.check.warn{border-left-color:var(--tyrian)}
.copyrow{display:grid;gap:8px}
.gloss a{color:var(--lapis-t);font-weight:700}
@media (prefers-reduced-motion:reduce){.sheet .box,.result,.lock{animation:none}.bar i{transition:none}}

  .bd.svelte-5m18e { position: absolute; inset: 0; overflow: hidden; background: #4a4e4d; }
  .map.svelte-5m18e { position: absolute; left: 50%; top: 50%; filter: blur(4px) brightness(.62) saturate(.85); pointer-events: none; }
  .shade.svelte-5m18e { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20, 20, 18, .15) 0%, rgba(20, 20, 18, .62) 100%); }

  .wr-gate.svelte-aajml8 { position: fixed; z-index: 10000; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: #1b1e2b; color: #f3eee0; border: 1.5px solid #d9480f; border-radius: 6px; font: 12px Verdana, sans-serif; }
  input.svelte-aajml8 { padding: 5px 8px; font: 13px Verdana, sans-serif; border: 1px solid #6c6657; border-radius: 3px; width: 220px; }
  button.svelte-aajml8 { padding: 5px 12px; font: 12px Verdana, sans-serif; background: #d9480f; color: #fff; border: 0; border-radius: 3px; cursor: pointer; }
  button.svelte-aajml8:disabled { opacity: .5; }
  .m.svelte-aajml8 { color: #f1d88d; }

  .ksw.svelte-ms7g9f { display: inline-block; vertical-align: middle; flex: none; border: 1px solid rgba(60, 45, 30, .55); border-radius: 2px; }
/* The solo game's own copy of onescreen.css, written out in the solo page's stylesheet at the place it was always in the cascade
   (after app.css and the components, before opening.css). The class screens share onescreen.css as a separate file that loads first;
   solo must not use that one, or its rules would come before app.css and lose ties with it (the secret brief, the stakes line). *//* The one-screen game: map under everything, bar across the top, panels floating over the map.
   Paper panels on a dark bar, whatever the page's light or dark setting: it is a game table. */
:root {
  --os-bar: #2b2823; --os-bar-line: #4a453c;
  --os-paper: #fbf8ee; --os-line: #d6ccb4; --os-ink: #2a241b; --os-muted: #6c6455;
  --os-gold: #e2b350; --os-lapis: #233a8c; --os-tyrian: #6b2d5c; --os-malachite: #2a7560; --os-orpiment: #8f6200;
  --os-card: #fff; --os-soft: #efe9d8; --os-wash: #efe7d2; --os-offer: #fff4d6; --os-note: #eef0fb;
  --os-stakes: #fff3cf; --os-stakes-ink: #5a3e00; --os-brass: #fbf0d4; --os-tyrbg: #f4e6f0; --os-mapbg: #cddbe1;
  --os-grab: #c6bca2; --os-speech: #574000; --os-silent: #ece5d0; --os-on: #f6ecc8; --os-btn: #f4eede; --os-veil: rgba(20, 16, 8, .55);
  --os-onb: #eef0fb; --os-onk: #eceef3; --os-onw: #fff4d6; --os-ona: #e3f1ea; --os-mapdim: rgba(0, 0, 0, 0);
}
/* Lamplight (Display): the same palette dimmed. Walnut and ink behind, dimmed parchment panels, gold kept. */
html.rp-lamp {
  --os-bar: #1c1913; --os-bar-line: #38322a;
  --os-paper: #cdc3a6; --os-line: #9d916f; --os-ink: #221c12; --os-muted: #4f4738;
  --os-lapis: #1b2f78; --os-tyrian: #55224a; --os-malachite: #1f5f4c; --os-orpiment: #6a4a00;
  --os-card: #d8cfb4; --os-soft: #c2b89c; --os-wash: #bdb394; --os-offer: #d7c28c; --os-note: #c5c9da;
  --os-stakes: #dac68e; --os-stakes-ink: #4a3200; --os-brass: #d4c08b; --os-tyrbg: #d2bbc9; --os-mapbg: #2a251d;
  --os-grab: #867b60; --os-speech: #45330a; --os-silent: #b5ab8f; --os-on: #d6c68c; --os-btn: #cdc3a6;
  --os-veil: rgba(8, 6, 2, .72);
  --os-onb: #bfc5de; --os-onk: #c3c4cb; --os-onw: #d8c58b; --os-ona: #bcd1c3; --os-mapdim: rgba(26, 19, 8, .36);
}
/* The game screens are a table, not a web page: they ignore the system's dark mode. */
html.playing, html.playing body { background: var(--os-bar); color-scheme: light; }
.os-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--os-mapdim); pointer-events: none; }
html.playing, html.playing body { overflow: hidden; height: 100%; }

.os {
  position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column;
  /* The writing scales with the height of the window, so a short window (a laptop at 150%) keeps everything in view. */
  font: clamp(12.5px, 2.35vh, 15px)/1.4 Verdana, "DejaVu Sans", system-ui, sans-serif; color: var(--os-ink);
  background: var(--os-mapbg);
  --side-w: clamp(310px, 34vw, 420px);
}
.os-mapwrap { position: absolute; inset: 0; }
.os.side .os-mapwrap { right: var(--side-w); }
.os .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:where(.os) button { font: inherit; color: inherit; cursor: pointer; }
.os :focus-visible { outline: 3px solid var(--os-gold); outline-offset: 2px; }

/* ---- the bar ---- */
.os-bar { background: var(--os-bar); color: #f3eee0; flex: none; padding: 8px 14px; position: relative; z-index: 6; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.os-i, .os-move .i {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent;
  font: italic 700 12px/1 Georgia, serif; padding: 0; flex: none; display: inline-grid; place-items: center;
}
.os-dots { display: inline-flex; gap: 5px; margin-left: 4px; }
.os-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #8d8671; display: block; }
.os-dots i.played { background: var(--os-malachite); border-color: var(--os-malachite); }
.os-dots i.now { background: var(--os-gold); border-color: var(--os-gold); }
.os-role.t-lion { border-color: #8fa4f0; color: #dbe3ff; }
.os-role.t-jackal { border-color: var(--os-gold); color: #fbe6b0; }
.os-btn {
  padding: 7px 14px; border-radius: 4px; border: 1.5px solid #b8ad92; background: var(--os-paper); color: var(--os-ink);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-size: .9em; white-space: nowrap; flex: none;
}
.os-btn.top { background: transparent; border-color: #6c6657; color: #f3eee0; min-height: 34px; }
.os-btn.top[aria-pressed="true"] { background: #f3eee0; color: var(--os-ink); }
.os-btn.yes { background: var(--os-malachite); border-color: var(--os-malachite); color: #fff; font-weight: 700; }
.os-btn.wide { width: 100%; background: transparent; border-color: var(--os-malachite); color: var(--os-malachite); font-weight: 700; padding: 10px; }
.os-btn:disabled { opacity: .5; cursor: default; }
.os-menuwrap { position: relative; }
.os-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 8; margin: 0; padding: 4px; list-style: none; min-width: 170px;
  background: var(--os-paper); color: var(--os-ink); border: 1px solid var(--os-line); border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.os-menu button, .os-menu a { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: transparent; color: inherit; text-decoration: none; border-radius: 4px; }
.os-menu button, .os-menu a { display: flex !important; justify-content: space-between; align-items: baseline; gap: 18px; }
.os-menu small { color: var(--os-muted); font-size: .78em; }
.os-menu { min-width: 250px !important; }
.os-menu button:hover, .os-menu a:hover { background: var(--os-wash); }
.os-menu [aria-pressed="true"] { font-weight: 700; }

/* ---- the stage and its panels ---- */
.os-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.os-col { position: absolute; top: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 12px; width: 280px; pointer-events: none; z-index: 3; }
.os-col > * { pointer-events: auto; }
.os-col.left { left: 14px; justify-content: space-between; }
.os-col.right { right: 14px; width: 320px; justify-content: space-between; }
.os-panel {
  background: var(--os-paper); border: 1px solid var(--os-line); border-radius: 3px; padding: 10px 14px 12px;
  box-shadow: 0 2px 10px rgba(40, 30, 10, .18); max-height: 100%; overflow: auto;
}
.os-ph { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--os-line);
  font: 400 .8em/1.2 Georgia, serif; letter-spacing: .16em; text-transform: uppercase; }
.os-ph small { font: 400 .85em Verdana, sans-serif; letter-spacing: 0; text-transform: none; color: var(--os-muted); }
.os-panel p { margin: 0 0 8px; }
.os-h3 { margin: 10px 0 6px; font: 700 .72em/1.2 Verdana, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--os-muted); }
.os-muted { color: var(--os-muted); }
.small { font-size: .85em; }
.os-sub { font-size: .85em; color: var(--os-muted); }
.os-treaty { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.os-treaty .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--os-malachite); flex: none; }
.os-offer { border-left: 4px solid var(--os-gold); background: var(--os-offer); padding: 8px 10px; margin: 0 0 8px; }
.os-offer .row { display: flex; gap: 8px; }
.os-offer .os-btn { flex: 1; padding: 8px; }
.os-said, .os-news { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; font-size: .88em; }
.os-said li { background: var(--os-soft); padding: 6px 8px; border-radius: 3px; }
.os-news li { border-left: 4px solid #8b8678; padding: 2px 0 2px 9px; }
.os-news li.lapis { border-color: var(--os-lapis); }
.os-news li.brass { border-color: var(--ch-w); }
.os-news li.tyrian { border-color: var(--os-tyrian); }
.os-news li.teal { border-color: var(--os-malachite); }

/* the list of every state */
.os-listbox { margin-top: 8px; }
.os-listbox summary { cursor: pointer; font-weight: 700; font-size: .85em; padding: 4px 0; color: var(--os-lapis); }
.os-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; max-height: 240px; overflow: auto; }
.os-state { width: 100%; text-align: left; padding: 6px 8px; border: 1px solid var(--os-line); border-radius: 3px; background: var(--os-card); display: block; font-size: .85em; }
.os-state[aria-pressed="true"] { border-color: var(--os-lapis); background: var(--os-note); }
.os-state .meta { display: block; color: var(--os-muted); font-size: .9em; }
.os-state .you { font-size: .75em; font-weight: 700; color: var(--os-malachite); letter-spacing: .08em; text-transform: uppercase; }

/* the selected state */
.os-selhead { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.os-title { margin: 0; font: 400 1.1em Georgia, serif; }
.os-pips { font-size: .72em; letter-spacing: .1em; color: var(--os-ink); }
.os-x { margin-left: auto; border: 0; background: transparent; font-size: 1.5em; line-height: 1; padding: 0 6px; color: var(--os-muted); }

/* the legend */
.os-key {
  background: var(--os-paper); border: 1px solid var(--os-line); padding: 6px 10px; display: flex; flex-wrap: wrap; gap: 4px 12px;
  font-size: .75em; color: var(--os-muted); border-radius: 3px; align-self: flex-end; max-width: 100%;
}
.os-key span { display: inline-flex; align-items: center; gap: 6px; }
.os-key .sw { display: inline-block; width: 22px; height: 7px; background: var(--c); }
.os-key .sw.k { background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 10px); }
.os-key .sw.w { background: radial-gradient(circle, var(--c) 40%, transparent 45%) 0 50% / 8px 7px repeat-x; }
.os-key .sw.a { background: repeating-linear-gradient(90deg, var(--c) 0 10px, transparent 10px 13px, var(--c) 13px 16px, transparent 16px 19px); }
.os-key .sw.q { background: repeating-linear-gradient(135deg, var(--c) 0 2px, #d8bfd0 2px 5px); }
.os-key .sw.treaty { background: radial-gradient(circle, var(--os-malachite) 40%, transparent 45%) 0 50% / 7px 7px repeat-x; }
.os-key .sw.you { height: 10px; background: transparent; border: 2px solid var(--os-gold); outline: 1.5px solid #1b1e2b; outline-offset: 0; }

/* the Rising Power's words */
.os-speech {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(560px, calc(100% - 640px)); z-index: 3;
  background: var(--os-speech); color: #fff; padding: 12px 16px; display: flex; gap: 14px; align-items: center; border-radius: 3px;
  box-shadow: 0 2px 10px rgba(40, 30, 10, .3);
}
.os-speech.silent { background: var(--os-silent); color: var(--os-ink); border: 1px dashed #b3a888; }
.os-speech .badge { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--os-gold); display: grid; place-items: center; font: 700 .7em Georgia, serif; color: var(--os-gold); }
.os-speech small { display: block; letter-spacing: .14em; text-transform: uppercase; font-size: .66em; color: #e8cd8a; font-weight: 700; }
.os-speech.silent small { color: var(--os-muted); }
.os-speech p { margin: 2px 0 0; font: 400 1.05em/1.35 Georgia, serif; }

/* your move */
.os-note { margin: 0 0 8px; padding: 6px 10px; border-left: 4px solid var(--os-lapis); background: var(--os-note); font-size: .82em; }
.os-note.stakes { background: var(--os-stakes); border-color: var(--os-orpiment); color: var(--os-stakes-ink); font-weight: 700; }
.os-note.brass { border-color: var(--ch-w); background: var(--os-brass); }
.os-note.tyrian { border-color: var(--os-tyrian); background: var(--os-tyrbg); }
.os-moves { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; margin-bottom: 8px; }
/* A move is one card and the whole card is the button. The (i) sits in the corner as its own control. */
.os-move { position: relative; display: grid; }
.os-move .pick {
  border: 2px solid var(--os-line); background: var(--os-card); border-radius: 3px; width: 100%; min-height: 64px;
  padding: 22px 6px 8px; display: grid; justify-items: center; align-content: center; gap: 2px;
  font-weight: 700; font-size: .8em; letter-spacing: -.01em; cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s;
}
.os-move .pick .l { font-size: .7em; color: var(--os-muted); }
.os-move .i { position: static; color: var(--os-muted); background: transparent; z-index: 1; }
.os-move .i:hover, .os-move .i[aria-expanded="true"] { background: var(--os-ink); color: var(--os-paper); border-color: var(--os-ink); }
.os-move.k-b .nm { color: var(--os-lapis); }
.os-move.k-k .nm { color: #4a5068; }
.os-move.k-w .nm { color: var(--ch-w); }
.os-move.k-a .nm { color: var(--os-malachite); }
.os-move .pick:not(:disabled):hover { border-color: var(--os-ink); box-shadow: 0 2px 6px rgba(40, 30, 10, .22); background: var(--os-soft); }
.os-move .pick:focus-visible { outline: 3px solid var(--os-gold); outline-offset: 2px; border-color: var(--os-ink); }
.os-move.on .pick { border-width: 3px; padding: 21px 5px 7px; box-shadow: inset 0 0 0 1px var(--os-card), 0 2px 8px rgba(40, 30, 10, .25); }
.os-move.on .pick .l::after { content: " ✓"; }
.os-move.k-b.on .pick { border-color: var(--os-lapis); background: var(--os-onb); }
.os-move.k-k.on .pick { border-color: #6b7185; background: var(--os-onk); }
.os-move.k-w.on .pick { border-color: var(--ch-w); background: var(--os-onw); }
.os-move.k-a.on .pick { border-color: var(--os-malachite); background: var(--os-ona); }
.os-move .pick:disabled { opacity: .45; cursor: default; }
.os-info { font-size: .82em; background: #2b2823; color: #f3eee0; padding: 8px 10px; margin-bottom: 8px; border-radius: 3px; }
.os-info .rk { display: block; margin-top: 4px; color: #e8b9d6; }
.os-end {
  width: 100%; padding: 12px; border: 0; background: var(--os-bar); color: #f3eee0; border-radius: 3px;
  font: 400 1.05em Georgia, serif; letter-spacing: .02em;
}
.os-end:disabled { opacity: .45; cursor: default; }

/* ---- smaller screens: banner and bottom sheet ---- */
.os-banner {
  position: absolute; top: 8px; left: 8px; right: 8px; z-index: 3; background: var(--os-speech); color: #fff; border-radius: 3px;
  box-shadow: 0 2px 10px rgba(40, 30, 10, .3);
}
.os-banner.silent { background: var(--os-silent); color: var(--os-ink); border: 1px dashed #b3a888; }
.os-banner .txt {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; width: 100%; text-align: left;
  border: 0; background: transparent; padding: 10px 12px; font: 400 1em/1.35 Georgia, serif;
}
.os-banner .txt.open { -webkit-line-clamp: unset; }
.os-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; background: var(--os-paper); border-top: 1px solid var(--os-line);
  box-shadow: 0 -4px 16px rgba(40, 30, 10, .2); display: flex; flex-direction: column; height: auto; max-height: 72%;
}
/* the column beside the map, on a wide but short window */
.os.side .os-sheet { top: 0; right: 0; bottom: 0; left: auto; width: var(--side-w); height: auto; border-top: 0; border-left: 1px solid var(--os-line); box-shadow: -4px 0 16px rgba(40, 30, 10, .2); }
.os.side .os-nextwrap { left: 50%; right: auto; width: min(540px, calc(100% - 16px)); transform: translateX(-50%); bottom: 8px; animation-name: slidein; }
/* End turn stays in view whatever the length of the moves above it */
.os-sheet .os-end { position: sticky; bottom: 0; margin-top: 8px; box-shadow: 0 -10px 8px -6px var(--os-paper); }
.os-sheet .tabs { display: flex; border-bottom: 1px solid var(--os-line); flex: none; }
.os-sheet .tabs button {
  flex: 1; padding: 10px 6px; border: 0; background: transparent; font-weight: 700; font-size: .85em; color: var(--os-muted);
  border-bottom: 3px solid transparent;
}
.os-sheet .tabs button[aria-selected="true"] { color: var(--os-ink); border-bottom-color: var(--os-ink); }
.os-sheet .tabs .badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; border-radius: 9px; background: var(--os-gold); color: #1b1e2b; font-size: .8em; }
.os-sheet .body { padding: 10px 12px 12px; overflow: auto; flex: 1; min-height: 0; }
.os-panel.selcard { position: absolute; left: 8px; right: 8px; z-index: 4; margin-bottom: 8px; background: #2b2823; color: #f3eee0; border-color: #4a453c; max-height: 40%; }
.os-panel.selcard .os-x, .os-panel.selcard .os-muted { color: #cfc8b4; }
.os-panel.selcard .os-btn.wide { color: #aee0c8; border-color: #6fb99a; }
.os.phone .os-bar { padding: 6px 10px; }

/* ---- the top bar: one grid, everything centred on the same line, nothing moves between rounds ----
   Wide (1280 and up): left | centre | right on one row. Narrower: the track drops to a second row. The columns have
   fixed widths, so a longer title or a wider score never pushes the track. Numbers use equal-width digits. */
.os-bar { font-variant-numeric: tabular-nums lining-nums; display: grid; align-items: center; column-gap: 12px; row-gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "left right" "track track"; }
.os-bar .os-round { grid-area: left; margin: 0; font: 400 1em/1.3 Verdana, sans-serif; min-width: 0; }
.os-bar .os-trackwrap { grid-area: track; min-width: 0; }
.os-bar .os-right { grid-area: right; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.os.wide .os-bar { grid-template-columns: 300px minmax(0, 1fr) 296px; grid-template-areas: "left track right"; column-gap: 28px; padding: 8px 20px; }
.os.wide .os-bar .os-trackwrap { max-width: 1100px; width: 100%; justify-self: center; }
.os-roundbtn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: help; min-width: 0; }
.os-roundbtn .tile { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid var(--os-gold); border-radius: 2px; font: 400 1.5em/1 Georgia, serif; color: var(--os-gold); }
.os-roundbtn .rtxt { display: grid; gap: 2px; min-width: 0; }
.os-roundbtn .eb { font: 400 .62em/1.2 Verdana, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #cfc8b4; white-space: nowrap; }
.os-roundbtn .ttl { font: 400 1.3em/1.15 Georgia, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-roundbtn .os-dots { margin: 0; }
.os-dots { display: inline-flex; gap: 5px; }
.os-role { flex: none; width: 190px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 4px 12px; border-radius: 4px; border: 1.5px solid var(--os-malachite); background: transparent; color: #cfe9de; text-align: left; overflow: hidden; }
.os-role .who, .os-role .rst { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-role b { font-family: Verdana, sans-serif; font-weight: 700; font-size: .95em; }
.os-role .rst { font-size: .78em; color: #bcd9cc; }
.os-btn.top.menu { display: inline-flex; gap: 10px; width: 96px; flex: none; justify-content: center; }
.os-btn.top.menu .bars { display: inline-grid; gap: 3px; } .os-btn.top.menu .bars i { display: block; width: 14px; height: 2px; background: currentColor; }
.os.phone .os-roundbtn .tile { width: 38px; height: 38px; font-size: 1.2em; }
.os.phone .os-roundbtn .eb { display: none; }
.os.phone .os-roundbtn .ttl { font-size: 1.1em; }
.os.phone .os-role { width: min(140px, 36vw); padding: 4px 8px; }
.os.phone .os-role .rst { display: none; }
.os.phone .os-btn.top.menu { width: 40px; padding: 7px 0; } .os.phone .os-btn.top.menu .mt { display: none; }
.os.phone .os-bar { column-gap: 8px; }

/* ---- overlays ---- */
.os-veil { position: absolute; inset: 0; z-index: 10; background: var(--os-veil); display: grid; place-items: center; padding: 14px; }
.os-overlay {
  background: var(--os-paper); border: 1px solid var(--os-line); border-radius: 4px; width: min(1000px, 100%); max-height: 100%;
  overflow: auto; padding: 16px 20px 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.os-ovhead { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--os-line); margin-bottom: 12px; }
.os-ovhead h2 { margin: 0 0 8px; font: 400 1.5em Georgia, serif; }
.os-lead { color: var(--os-muted); margin: 0 0 12px; }
.os-cards { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.os-rcard { position: relative; border: 1px solid var(--os-line); background: var(--os-card); padding: 14px 12px 12px; border-radius: 3px; display: grid; gap: 4px; align-content: start; }
.os-rcard .n { font: 400 2em/1 Georgia, serif; color: var(--os-ink); }
.os-rcard h3 { margin: 0; font: 400 1.05em Georgia, serif; }
.os-rcard .rtag { margin: 0; font-size: .68em; letter-spacing: .1em; text-transform: uppercase; color: var(--os-orpiment); }
.os-rcard p { margin: 0; font-size: .85em; }
.os-rcard .ask { font-style: italic; color: var(--os-muted); border-top: 1px solid var(--os-line); padding-top: 6px; margin-top: 4px; }
.os-rcard.now { background: var(--os-speech); color: #fff; border-color: var(--os-speech); }
.os-rcard.now .n, .os-rcard.now h3 { color: #fff; }
.os-rcard.now .rtag, .os-rcard.now .ask { color: #f0d9a0; }
.os-rcard .badge { position: absolute; top: -9px; left: 10px; font-size: .62em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; background: var(--os-malachite); color: #fff; }
.os-rcard.now .badge { background: var(--os-gold); color: #1b1e2b; }
.os-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.os-can { border-collapse: collapse; width: 100%; font-size: .85em; }
.os-can caption { text-align: left; font-size: .72em; letter-spacing: .12em; text-transform: uppercase; color: var(--os-muted); padding-bottom: 6px; }
.os-can th, .os-can td { padding: 6px 4px; border-bottom: 1px solid var(--os-line); text-align: center; font-weight: 400; }
.os-can th[scope="row"] { text-align: left; }
.os-can .now { background: var(--os-on); }
.os-newround { border-left: 5px solid var(--os-gold); background: var(--os-card); padding: 10px 14px; }
.os-newround h3 { margin: 0 0 6px; font-size: .75em; letter-spacing: .12em; text-transform: uppercase; color: var(--os-orpiment); }
.os-newround p { margin: 0 0 6px; }
.os-scoretrack { position: relative; margin: 34px 4px 14px; }
.os-scoretrack .zones { display: flex; height: 34px; }
.os-scoretrack .z { display: grid; place-items: center; color: #fff; font-size: .72em; font-weight: 700; padding: 0 6px; text-align: center; overflow: hidden; }
.os-scoretrack .z1 { background: #3a4f9c; }
.os-scoretrack .z2 { background: #b89038; }
.os-scoretrack .z3 { background: #7d4570; }
.os-scoretrack .now { position: absolute; top: -28px; transform: translateX(-50%); text-align: center; font: 400 1.1em Georgia, serif; }
.os-scoretrack .now i { display: block; margin: 2px auto 0; width: 0; height: 0; border: 7px solid transparent; border-top-color: var(--os-gold); border-bottom: 0; }
.os-chain { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.os-chain li { border: 1px solid var(--os-line); background: var(--os-card); padding: 4px 8px; font-size: .8em; display: inline-grid; justify-items: center; min-width: 70px; }
.os-chain li .lb { color: var(--os-muted); font-size: .85em; }
.os-chain li b { font: 400 1.2em Georgia, serif; }
.os-chain li.down b, .os-chain li.down small { color: var(--os-lapis); }
.os-chain li.up b, .os-chain li.up small { color: var(--os-tyrian); }
.os-rules, .os-steps { margin: 0 0 8px; padding-left: 1.2em; display: grid; gap: 4px; font-size: .9em; }
.os-scale { width: min(100%, 360px); height: auto; margin: 8px 0 0; display: block; }
.os-roles { display: grid; gap: 8px; margin-bottom: 8px; }
.os-role-card { border: 1px solid var(--os-line); background: var(--os-card); padding: 8px 12px; border-radius: 3px; }
.os-role-card h4 { margin: 0 0 4px; font: 400 1.05em Georgia, serif; }
.os-role-card.lion h4 { color: var(--os-lapis); }
.os-role-card.lamb h4 { color: var(--os-malachite); }
.os-role-card.jackal h4 { color: var(--os-orpiment); }
.os-role-card.you { border: 2px solid var(--os-malachite); background: var(--os-ona); }
.os-role-card p { margin: 0; font-size: .85em; }
.os-role-card .youtag { float: right; font: 700 .65em Verdana, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--os-malachite); }
.os-minis { display: grid; gap: 8px; margin-bottom: 8px; font-size: .9em; }
.os-minis p { margin: 2px 0; }
.os-minis .rk { font-weight: 700; color: var(--os-tyrian); }
.os-brief h3 { margin: 0 0 4px; font: 400 1.3em Georgia, serif; }
.os-brief .win { font-weight: 700; }
.os-brief.t-lion h3 { color: var(--os-lapis); }
.os-brief.t-lamb h3 { color: var(--os-malachite); }
.os-brief.t-jackal h3 { color: var(--os-orpiment); }
.os-ask { font-style: italic; color: var(--os-muted); }

/* ---- the result reveal ---- */
.os-verdict { margin: 0 0 8px; font: 700 1.5em/1.1 Georgia, serif; letter-spacing: .1em; text-transform: uppercase; }
.os-verdict.checked { color: var(--os-lapis); }
.os-verdict.advance { color: var(--os-tyrian); }
.os-speech.reply { background: var(--os-speech); filter: brightness(.82); }
.os-speech p { animation: say .35s ease-out both; }
@keyframes say { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.os-nextwrap { position: absolute; z-index: 5; left: 50%; bottom: 96px; transform: translateX(-50%); width: min(540px, calc(100% - 660px)); animation: slidein .42s cubic-bezier(.2, .9, .3, 1) both; }
.os-next { background: var(--os-paper); border: 1px solid var(--os-line); border-top: 5px solid var(--os-gold); border-radius: 3px; padding: 12px 16px 14px; box-shadow: 0 6px 24px rgba(40, 30, 10, .3); display: grid; gap: 4px; }
.os-next small { letter-spacing: .14em; text-transform: uppercase; font-size: .66em; font-weight: 700; color: var(--os-muted); }
.os-next h2 { margin: 0; font: 400 1.25em Georgia, serif; }
.os-next h2 .n { font-size: 1.3em; color: var(--os-orpiment); }
.os-next p { margin: 0; font-size: .88em; }
.os-next .tag2 { font-size: .68em; letter-spacing: .1em; text-transform: uppercase; color: var(--os-orpiment); }
.os-next .ask2 { font-style: italic; color: var(--os-muted); }
.os-next .strip { list-style: none; margin: 6px 0; padding: 0; display: flex; gap: 6px; }
.os-next .strip li { flex: 1; text-align: center; padding: 3px 0; font: 400 .85em Georgia, serif; border: 1px solid var(--os-line); background: var(--os-card); color: var(--os-muted); }
.os-next .strip li.played { background: var(--os-malachite); border-color: var(--os-malachite); color: #fff; }
.os-next .strip li.now { background: var(--os-gold); border-color: var(--os-gold); color: #1b1e2b; font-weight: 700; }
.os-nextwrap .os-end { margin-top: 4px; }
.os:not(.wide) .os-nextwrap { left: 8px; right: 8px; width: auto; transform: none; bottom: 0; animation-name: slideup; }
@keyframes slidein { from { opacity: 0; transform: translate(-50%, 36px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes slideup { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.os.revealing .os-stage { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .os-nextwrap, .os-speech p { animation: none; }
}

/* ---- the start screen and the briefing ---- */
.st { position: fixed; inset: 0; z-index: 2; color: #f3eee0; font: 16px/1.45 Verdana, "DejaVu Sans", system-ui, sans-serif; overflow: hidden; background: #3f4342; }
.st-display {
  position: absolute; top: 14px; right: 14px; z-index: 3; padding: 7px 12px; background: rgba(30, 28, 24, .55); color: #f3eee0;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 3px; font: inherit; font-size: .85em; cursor: pointer;
}
.st-centre { position: absolute; inset: 0; z-index: 2; display: grid; align-content: center; justify-items: center; gap: 0; padding: 20px; }
.st-eyebrow { margin: 0 0 14px; font: 400 .72em/1.2 Verdana, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #e2b350; text-align: center; }
.st-title { margin: 0; font: 400 clamp(2rem, 6.2vw, 4.2rem)/1.1 Georgia, serif; letter-spacing: .1em; color: #fff; text-align: center; }
.st-tagline { margin: 12px 0 26px; font: italic 400 1.15em Georgia, serif; color: #ece6d4; text-align: center; }
.st-buttons { display: grid; gap: 12px; width: min(340px, 100%); }
.st-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; padding: 0 22px; box-sizing: border-box;
  background: var(--os-btn); color: var(--os-ink); border: 1px solid #1c1913; border-radius: 0; text-decoration: none; cursor: pointer;
  font: 400 1.25em Georgia, serif; width: 100%;
}
.st-btn.gold { background: #e2b350; border-color: #b78a2a; }
.st-btn .n { font: 400 .62em Verdana, sans-serif; color: #5f574a; text-align: right; }
.st-btn .n.short { display: none; }
.st-btn:hover { filter: brightness(1.04); }
.st-privacy { margin: 22px 0 0; font-size: .78em; color: #cfc8b4; text-align: center; }
:where(.st) button { font: inherit; }
.st :focus-visible { outline: 3px solid #e2b350; outline-offset: 3px; }
@media (max-width: 599px) {
  .st-btn .n.full { display: none; }
  .st-btn .n.short { display: inline; }
  .st-btn { height: 56px; }
}
@media (max-height: 560px) { .st-tagline { margin-bottom: 14px; } .st-btn { height: 46px; } .st-buttons { gap: 8px; } }

.br-centre { position: absolute; left: 0; right: 0; top: 0; bottom: 100px; z-index: 2; display: grid; align-content: center; justify-items: center; padding: 16px; }
.br-title { margin: 0 0 18px; }
.br-cards { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 6vw, 90px); }
.br-card { width: clamp(150px, 20vw, 262px); aspect-ratio: 262 / 340; border: 5px solid #f6f1e2; box-shadow: 0 8px 26px rgba(0, 0, 0, .45); box-sizing: border-box; position: relative; }
.br-card.down {
  background: repeating-linear-gradient(135deg, #2f2a21 0 9px, #3a342a 9px 18px); display: grid; place-items: center; color: #d9d2bd;
  font: 400 .85em Georgia, serif; letter-spacing: .22em; text-transform: uppercase; transform: rotate(-7deg); animation: deal .5s ease-out both;
}
.br-card.down.right { transform: rotate(7deg); animation-delay: .12s; }
.br-card.up {
  background: var(--os-paper); color: var(--os-ink); border-color: var(--tc, #2a7560); display: grid; align-content: center; justify-items: center; gap: 4px;
  padding: 14px 16px; text-align: center; z-index: 2; transform: scale(1.06); animation: deal .45s ease-out .08s both;
}
.br-card.up.t-lion { --tc: #233a8c; } .br-card.up.t-lamb { --tc: #2a7560; } .br-card.up.t-jackal { --tc: #8f6200; }
.br-card.up small { font: 700 .62em Verdana, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #6b2d5c; }
.br-card.up .ic { width: clamp(58px, 7vw, 92px); aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--tc); color: var(--tc); background: #eef3ee; display: grid; place-items: center; padding: 8px; box-sizing: border-box; }
.br-card.up h2 { margin: 6px 0 0; font: 400 clamp(1.5rem, 3vw, 2.3rem)/1 Georgia, serif; color: var(--tc); }
.br-card.up .who { margin: 0; font-size: .8em; color: #5f574a; }
.br-card.up hr { width: 80%; border: 0; border-top: 1px solid #d6ccb4; margin: 6px 0; }
.br-card.up .win { margin: 0; font: 400 .98em/1.3 Georgia, serif; }
@keyframes deal { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } }
.br-bar {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; width: min(860px, calc(100% - 24px));
  display: flex; align-items: center; gap: 22px; padding: 12px 16px; background: var(--os-btn); color: var(--os-ink);
  border: 1px solid #1c1913; box-sizing: border-box;
}
.br-bar .f { position: relative; display: grid; gap: 1px; min-width: 0; }
.br-bar small { font: 400 .62em Verdana, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #6c6455; }
.br-bar .f b { font: 400 1.15em Georgia, serif; }
.br-bar .pips2 { font-size: .7em; letter-spacing: .1em; }
.br-bar .info { margin-left: 4px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #5f574a; background: transparent; font: italic 700 11px Georgia, serif; padding: 0; cursor: pointer; color: #2a241b; }
.br-bar .lead { flex: 1; margin: 0; font-size: .74em; color: #5f574a; min-width: 0; }
.br-bar .begin { width: auto; height: 46px; flex: none; padding: 0 22px; font-size: 1.1em; }
.br-bar .pop {
  position: absolute; left: -40px; bottom: calc(100% + 18px); width: min(340px, 86vw); background: #2b2823; color: #f3eee0; padding: 12px 14px;
  border-radius: 3px; font-size: .8em; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); z-index: 5;
}
.br-bar .pop h3 { margin: 0 0 4px; font: 400 1.05em Georgia, serif; }
.br-bar .pop p { margin: 4px 0; }
.br-bar .pop ul { margin: 6px 0; padding-left: 1.1em; display: grid; gap: 2px; }
.br-bar .pop li.mine { font-weight: 700; color: #e2b350; }
.br-bar .pop .muted { color: #cfc8b4; }
@media (max-width: 699px) {
  .br-bar { flex-wrap: wrap; gap: 10px 16px; }
  .br-bar .lead { flex-basis: 100%; order: 3; font-size: .7em; }
  .br-bar .begin { order: 4; width: 100%; }
  .br-centre { bottom: 190px; }
  .br-cards { gap: 10px; }
  .br-card { width: clamp(100px, 28vw, 150px); border-width: 3px; }
  .br-card.up { width: clamp(128px, 40vw, 190px); padding: 8px; }
  .br-card.up .who { display: none; }
  .br-card.down span { font-size: .75em; letter-spacing: .1em; }
}
@media (max-height: 560px) { .br-card { width: auto; height: min(56vh, 270px); } .br-centre { bottom: 78px; } .br-title { margin-bottom: 8px; } .br-card.up .ic { width: clamp(40px, 9vh, 70px); } .br-card.up h2 { font-size: clamp(1.1rem, 4vh, 1.6rem); } }

/* ---- overlays that can open from any screen ---- */
.os-veil.fixed { position: fixed; z-index: 9; }
.os-overlay {
  color: var(--ink); color-scheme: light;
}
.os-overlay, .en {
  --ink: var(--os-ink); --paper: var(--os-paper); --panel: var(--os-card); --muted: var(--os-muted); --rule: var(--os-line); --soft: var(--os-soft);
  --lapis: var(--os-lapis); --lapis-t: var(--os-lapis); --orpiment: var(--os-orpiment); --malachite: var(--os-malachite); --tyrian: var(--os-tyrian);
  --tyrian-t: var(--os-tyrian); --grey: #6b7185; --gold: var(--os-gold);
}
.gv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.gv-steps li { background: var(--os-card); border: 1px solid var(--os-line); padding: 12px 14px; border-radius: 3px; display: grid; gap: 6px; align-content: start; }
.gv-steps .n { width: 28px; height: 28px; border-radius: 50%; background: var(--os-bar); color: var(--os-gold); display: grid; place-items: center; font: 400 1em Georgia, serif; }
.gv-steps h3 { margin: 0; font: 400 1.15em Georgia, serif; }
.gv-steps p { margin: 0; font-size: .88em; }
.gv-display { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; }
.gv-display label { display: flex; gap: 10px; align-items: center; font-size: 1.05em; cursor: pointer; }
.gv-display input { width: 22px; height: 22px; flex: none; }
.gv-display p { margin: 4px 0 0 32px; }

/* ---- the advisor ---- */
.adv-ring { position: fixed; z-index: 7; border: 3px solid var(--os-gold); border-radius: 4px; box-shadow: 0 0 0 2000px rgba(20, 16, 8, .18); pointer-events: none; }
.adv {
  position: fixed; z-index: 8; box-sizing: border-box; background: #2b2823; color: #f3eee0; border: 2px solid var(--os-gold);
  border-radius: 4px; padding: 12px 14px; box-shadow: 0 8px 26px rgba(0, 0, 0, .4); font: 15px/1.4 Verdana, sans-serif; animation: say .3s ease-out both;
}
.adv .cnt { margin: 0 0 4px; font-size: .68em; letter-spacing: .14em; text-transform: uppercase; color: var(--os-gold); }
.adv .txt { margin: 0 0 10px; font-size: .92em; }
.adv .row { display: flex; gap: 8px; justify-content: flex-end; }
.adv .os-btn { padding: 6px 12px; font-size: .85em; }
.adv .os-btn:not(.yes) { background: transparent; color: #f3eee0; border-color: #6c6657; }

/* ---- display choices ---- */
html.rp-noanim *, html.rp-noanim *::before, html.rp-noanim *::after { animation: none !important; transition: none !important; }
html.rp-big .os { font-size: 18px; }
html.rp-big .st { font-size: 19px; }
html.rp-big body { font-size: 20px; }

/* ---------- the end screen: a verdict, then four tabs (redesign, stage 3) ---------- */
.en { position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column; overflow: hidden; background: var(--os-wash); color: var(--ink); color-scheme: light; font: 16px/1.45 Verdana, "DejaVu Sans", system-ui, sans-serif; }
.en-verdict { position: relative; z-index: 2; flex: 1; min-height: 0; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; color: #f3eee0; overflow: auto; }
.en-eyebrow { margin: 0; font: 400 .72em/1.2 Verdana, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #e2b350; }
.en-title { margin: 0; font: 400 clamp(2rem, 6vw, 4rem)/1.1 Georgia, serif; color: #fff; }
.en-lead { margin: 0; max-width: 34em; font: italic 400 1.1em/1.45 Georgia, serif; color: #ece6d4; }
.en-stamp { margin-top: 10px; display: grid; gap: 4px; padding: 14px 22px; max-width: 30em; background: var(--os-btn); color: #1b1e2b; border: 3px solid var(--malachite); border-radius: 4px; transform: rotate(-1.2deg); }
.en.lost .en-stamp { border-color: var(--tyrian); }
.en-stampword { font: 700 1.6em Georgia, serif; letter-spacing: .12em; text-transform: uppercase; color: var(--malachite); }
.en.lost .en-stampword { color: var(--tyrian); }
.en-who { font-weight: 700; }
.en-why { font-size: .92em; }
.en-see { margin-top: 12px; padding: 14px 26px; font: 400 1.15em Georgia, serif; background: #e2b350; border: 1px solid #b78a2a; border-radius: 0; color: #1b1e2b; cursor: pointer; }
.en-head { flex: none; background: var(--os-bar); color: #fff; padding: 12px 16px 10px; }
.en-head { display: block; }
.en-head h1 { margin: 0; font: 400 1.25em/1.2 Georgia, serif; }
.en-sep { opacity: .5; }
.en-rp { color: #e2b350; }
.en-chip { margin: 2px 0 0; font-size: .85em; color: #ece6d4; }
.en-tabs { flex: none; display: flex; gap: 2px; padding: 0 10px; background: var(--os-bar); overflow-x: auto; }
.en-tabs button { padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: #c9cfe6; font: 700 .9em Verdana, sans-serif; cursor: pointer; white-space: nowrap; }
.en-tabs button.en-on { color: #fff; border-bottom-color: #e2b350; }
.en-pane { flex: 1; min-height: 0; overflow: auto; padding: 14px; background: var(--os-wash); }
.en-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 760px) { .en-two { grid-template-columns: 1fr; } }
.en-card { background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; padding: 14px 16px; }
.en-wide { max-width: 860px; margin: 0 auto; }
.en-card h2 { margin: 0 0 8px; font-size: 1em; }
.en-chart { width: 100%; display: block; }
.en-chart .z-heg { fill: rgba(107, 45, 92, .16); }
.en-chart .z-mid { fill: rgba(226, 179, 80, .2); }
.en-chart .z-held { fill: rgba(42, 117, 96, .16); }
.en-chart .en-zt { font: 11px Verdana, sans-serif; fill: var(--muted); }
.en-chart .en-tick { font: 13px Verdana, sans-serif; fill: var(--muted); }
.en-chart .en-grid { stroke: var(--rule); stroke-width: 1; }
.en-chart .en-grid.v { stroke-dasharray: 3 4; }
.en-chart .en-ln { fill: none; stroke: var(--lapis-t); stroke-width: 2.5; }
.en-chart .en-pt { fill: var(--panel); stroke: var(--lapis-t); stroke-width: 2; }
.en-chart .en-pt.checked { fill: var(--malachite); stroke: var(--malachite); }
.en-chart .en-pt.advanced { fill: var(--tyrian); stroke: var(--tyrian); }
.en-mv { margin-top: 6px; }
.en-mvl { display: block; font-size: .8em; color: var(--muted); margin-bottom: 4px; }
.en-mvrow { display: grid; gap: 6px; }
.en-mvw { text-align: center; font: 700 .72em/1.2 Verdana, sans-serif; padding: 5px 2px; border: 2px solid var(--grey); border-radius: 3px; overflow-wrap: anywhere; color: var(--ink); background: var(--soft); }
.en-mvw.k-b { border-color: var(--os-lapis); color: var(--os-lapis); }
.en-mvw.k-k { border-color: #6b7185; color: #4a5068; border-style: dashed; }
.en-mvw.k-w { border-color: var(--ch-w); color: var(--ch-w); border-style: dotted; }
.en-mvw.k-a { border-color: var(--os-malachite); color: var(--os-malachite); }
.en-moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.en-moves li { display: grid; grid-template-columns: 2.4em 1fr; gap: 0 6px; padding: 8px 10px; border-left: 5px solid var(--tyrian); background: var(--soft); border-radius: 0 8px 8px 0; }
.en-moves li.en-ok { border-left-color: var(--malachite); }
.en-moves .en-mm, .en-moves .en-mv2 { grid-column: 2; font-size: .88em; }
.en-moves .en-mt { font-weight: 700; }
.en-insight { margin: 12px 0 4px; font-size: .92em; }
.en-reflect { margin: 0; font: italic 400 1em Georgia, serif; color: var(--muted); }
.en-lead2 { margin: 0 0 10px; color: var(--muted); }
.en-scroll { overflow-x: auto; }
.en-votes { border-collapse: collapse; width: 100%; font-size: .85em; }
.en-votes th, .en-votes td { padding: 4px 8px; border-bottom: 1px solid var(--rule); text-align: center; }
.en-votes th[scope=row] { text-align: left; font-weight: 400; }
.en-votes tr.en-me th, .en-votes tr.en-me td { font-weight: 700; background: var(--soft); }
.en-votes td.fell { background: rgba(107, 45, 92, .22); text-decoration: line-through; }
.en-key { font-size: .82em; color: var(--muted); }
.en-fallen { margin: 8px 0 14px; padding-left: 1.2em; }
.en-theory { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.en-theory li { padding: 10px 12px; border-left: 5px solid var(--lapis); background: var(--soft); border-radius: 0 8px 8px 0; }
.en-theory h3 { margin: 0 0 4px; font-size: .95em; }
.en-theory .en-rn { color: var(--lapis-t); }
.en-theory .en-th { font-size: .8em; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.en-theory p { margin: 4px 0; }
.en-theory .en-dat { font-size: .88em; color: var(--muted); }
.en-closing { font: italic 400 1em Georgia, serif; }
.en-bar { position: relative; z-index: 3; flex: none; display: flex; gap: 10px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--os-bar); color: #ece6d4; border-top: 1px solid var(--os-bar-line); }
.en-keep { margin: 0; font-size: .82em; }
.en-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.en-b { padding: 10px 16px; font: 400 1em Georgia, serif; background: var(--os-btn); color: var(--os-ink); border: 1px solid #1c1913; border-radius: 0; cursor: pointer; }
.en-b:hover { filter: brightness(1.05); }
.en-b.gold { background: #e2b350; border-color: #b78a2a; color: #1b1e2b; }
.en :focus-visible { outline: 3px solid var(--os-gold); outline-offset: 2px; }
@media (max-width: 560px) { .en-keep { display: none; } .en-acts { width: 100%; } .en-b.gold { order: -1; flex: 1 1 100%; } .en-b { flex: 1; } }
.rp-noanim .en-stamp { transform: none; }

.en-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.en-ask { font-style: italic; }

/* ---- the world and theory tabs fit the screen instead of scrolling ---- */
.en-pane.fit { overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.ew, .et { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; max-width: 1100px; width: 100%; margin: 0 auto; }
.ew-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex: none; }
.ew-lead { margin: 0; font-size: .85em; }
.ew-toggle { display: inline-flex; flex: none; border: 1px solid #1c1913; }
.ew-toggle button { padding: 7px 14px; border: 0; background: var(--os-btn); color: var(--os-ink); font: 400 .95em Georgia, serif; cursor: pointer; }
.ew-toggle button + button { border-left: 1px solid #1c1913; }
.ew-toggle button.on { background: var(--os-bar); color: #f3eee0; }
.ew-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.ew-map { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; background: var(--os-mapbg); border: 1px solid var(--os-line); border-radius: 3px; overflow: hidden; }
.ew-frame { position: relative; flex: none; }
.ew-key { align-self: stretch; flex: none; }
.ew-slider { flex: none; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.ew-slider label { font-size: .85em; font-weight: 700; }
.ew-range { position: relative; display: grid; }
.ew-range input { width: 100%; margin: 0; accent-color: var(--os-bar); height: 28px; }
.ew-ticks { list-style: none; display: flex; justify-content: space-between; margin: 0; padding: 0 6px; font: 400 .85em Georgia, serif; }
.ew-ticks li.on { font-weight: 700; color: var(--os-tyrian); }
.ew-cap { flex: none; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .85em; background: var(--panel); border: 1px solid var(--rule); border-left: 5px solid var(--os-gold); padding: 6px 10px; border-radius: 0 3px 3px 0; }
.ew-tables { flex-direction: row; gap: 14px; align-items: flex-start; overflow: auto; }
.ew-tables .en-scroll { flex: 1; min-width: 0; overflow-x: auto; }
.ew-tables .en-votes { font-size: .8em; }
.ew-tables .en-votes th, .ew-tables .en-votes td { padding: 2px 6px; }
.ew-m { font-weight: 700; }
.ew-m.k-b { background: color-mix(in srgb, var(--os-lapis) 22%, transparent); color: var(--os-lapis); }
.ew-m.k-k { background: color-mix(in srgb, #6b7185 22%, transparent); color: #4a5068; }
.ew-m.k-w { background: color-mix(in srgb, var(--ch-w) 22%, transparent); color: var(--ch-w); }
.ew-m.k-a { background: color-mix(in srgb, var(--os-malachite) 22%, transparent); color: var(--os-malachite); }
.ew-m.fell { background: color-mix(in srgb, var(--os-tyrian) 35%, transparent); color: var(--os-tyrian); text-decoration: none; }
@media (max-width: 700px) {
  .ew-top { flex-wrap: wrap; }
  .ew-lead { display: none; }
  .ew-tables { flex-direction: column; overflow: auto; }
  .ew-slider { grid-template-columns: 1fr; gap: 0; }
  .ew-slider label { font-size: .75em; }
}
.et-grid { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 10px; }
.et-card { background: var(--panel); border: 1px solid var(--rule); border-top: 5px solid var(--os-lapis); border-radius: 3px; padding: 7px 12px 8px; overflow: hidden; display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.et-card h3 { margin: 0; font: 400 1.05em Georgia, serif; }
.et-card .en-th { margin: 0; font-size: .72em; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.et-card .en-ask { margin: 2px 0 0; font: italic 400 .97em/1.3 Georgia, serif; }
.et-card .en-dat { margin: auto 0 0; font-size: .82em; line-height: 1.3; color: var(--ink); border-top: 1px solid var(--rule); padding-top: 4px; }
.et-closing { flex: none; margin: 0; font-size: .85em; text-align: center; }
.et-roles { flex: 1; min-height: 0; overflow: auto; }
.et-one { flex: 1; min-height: 0; display: flex; touch-action: pan-y; }
.et-one .et-card { flex: 1; font-size: 1.05em; overflow: auto; }
.et-pager { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.et-n { font-size: .85em; font-weight: 700; }
.et-b { padding: 10px 18px; font: 400 1em Georgia, serif; background: var(--os-btn); color: var(--os-ink); border: 1px solid #1c1913; border-radius: 0; cursor: pointer; }
.et-b:disabled { opacity: .45; cursor: default; }

/* the world: the map takes the room, with its legend, slider and words in a column beside it */
.ew-main { flex: 1; min-height: 0; display: flex; gap: 12px; }
.ew-main > .ew-body { flex: 1; min-width: 0; }
.ew-side { flex: none; width: clamp(250px, 28vw, 330px); display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; }
.ew-side .os-key { align-self: stretch; }
.ew-side .ew-slider { grid-template-columns: 1fr; gap: 2px; }
.ew-side .ew-cap { flex-direction: column; flex-wrap: nowrap; }
@media (max-width: 760px) {
  .ew-main { flex-direction: column; }
  .ew-side { width: auto; overflow: visible; flex: none; }
  .ew-side .ew-cap { flex-direction: row; flex-wrap: wrap; }
}
.et-one .et-card { flex: 0 1 auto; align-self: flex-start; width: 100%; }
.et-one .et-card .en-dat { margin-top: 8px; }

.et-states h2 { margin: 0 0 6px; font-size: .95em; }
.et-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.et-col h3 { margin: 0 0 4px; font: 400 1em Georgia, serif; border-bottom: 2px solid var(--rule); }
.et-col.t-lion h3 { color: var(--os-lapis); border-color: var(--os-lapis); }
.et-col.t-lamb h3 { color: var(--os-malachite); border-color: var(--os-malachite); }
.et-col.t-jackal h3 { color: var(--os-orpiment); border-color: var(--os-orpiment); }
.et-col ul { list-style: none; margin: 0; padding: 0; font-size: .85em; display: grid; gap: 1px; }
.et-col li.en-me { font-weight: 700; }
@media (max-width: 600px) { .et-cols { grid-template-columns: 1fr; } }

/* ---- the world, second version: a full-width map, round buttons, a state's story ---- */
.ew-main { flex: 1; min-height: 0; display: flex; gap: 12px; }
.ew-left { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.ew-map { position: relative; flex: 1; min-height: 0; display: block; overflow: hidden; background: #cfdce2; border: 1px solid var(--os-line); border-radius: 3px; cursor: pointer; }
.ew-map::after { content: ""; position: absolute; inset: 0; background: var(--os-mapdim); pointer-events: none; z-index: 1; }
.ew-frame { position: absolute; }
.ew-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 40px 30px #cfdce2; pointer-events: none; }
.ew-key { position: absolute; left: 8px; top: 8px; z-index: 2; max-width: 70%; align-self: auto; }
.ew-rounds { flex: none; display: flex; gap: 10px; align-items: center; justify-content: center; }
.ew-rb, .ew-play {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid #1c1913; background: var(--os-btn); color: var(--os-ink);
  font: 400 1.15em Georgia, serif; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.ew-rb.on { background: var(--os-bar); color: #f3eee0; box-shadow: 0 0 0 3px var(--os-gold); }
.ew-play { background: var(--os-gold); border-color: #b78a2a; margin-right: 10px; font-size: 1em; }
.ew-rb:focus-visible, .ew-play:focus-visible { outline: 3px solid var(--os-gold); outline-offset: 3px; }
.ew-main > .ew-side { flex: none; width: clamp(240px, 27vw, 330px); display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; }
.ew-info, .ew-card { background: var(--panel); border: 1px solid var(--rule); border-left: 5px solid var(--os-gold); padding: 8px 12px; border-radius: 0 3px 3px 0; font-size: .88em; }
.ew-info h3, .ew-card h3 { margin: 0 0 4px; font: 400 1.1em Georgia, serif; }
.ew-info p, .ew-card p { margin: 4px 0; }
.ew-tally { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 3px; }
.ew-tally li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; }
.ew-tally .sw { display: inline-block; width: 22px; height: 7px; background: var(--c); }
.ew-tally .sw.k { background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 10px); }
.ew-tally .sw.w { background: radial-gradient(circle, var(--c) 40%, transparent 45%) 0 50% / 8px 7px repeat-x; }
.ew-tally .sw.a { background: repeating-linear-gradient(90deg, var(--c) 0 10px, transparent 10px 13px, var(--c) 13px 16px, transparent 16px 19px); }
.ew-cardhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ew-sub { color: var(--muted); font-size: .9em; }
.ew-type { font-weight: 700; }
.ew-res.won { border-left: 4px solid var(--os-malachite); padding-left: 8px; }
.ew-res.lost { border-left: 4px solid var(--os-tyrian); padding-left: 8px; }
.ew-card h4 { margin: 8px 0 3px; font-size: .72em; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ew-votes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 2px 8px; }
.ew-votes li.fell { color: var(--os-tyrian); font-weight: 700; }
.ew-al { margin: 0; padding-left: 1.1em; }
.ew-fell { font-weight: 700; color: var(--os-tyrian); }
.ew-pick { display: grid; gap: 3px; font-size: .8em; flex: none; }
.ew-pick select { font: inherit; padding: 6px 8px; border: 1px solid #1c1913; background: var(--os-btn); color: var(--os-ink); border-radius: 0; }
.en-won { font-weight: 700; }
.en-wontag { font-size: .75em; letter-spacing: .08em; text-transform: uppercase; color: var(--os-malachite); }
@media (max-width: 760px) {
  .ew-main { flex-direction: column; overflow: auto; }
  .ew-left { flex: none; min-height: 300px; }
  .ew-map { min-height: 240px; }
  .ew-main > .ew-side { width: auto; overflow: visible; flex: none; }
  .ew-rb, .ew-play { width: 44px; height: 44px; }
}

.ew-map .ew-rounds { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 3; pointer-events: none; }
.ew-map .ew-rounds > * { pointer-events: auto; }

.ew-maptoggle { position: absolute; right: 8px; top: 8px; z-index: 3; }

.en-wontag { margin-left: .4em; }
.ew-votes li.fell span { margin-left: .2em; }

/* ---- flags ---- */
.br-bar .f.flagged { display: flex; align-items: center; gap: 10px; }
.br-bar .f.flagged > span { display: grid; gap: 1px; }
.lbl .flag { display: block; margin: 0 auto 1px; }
.lbl .nm .flag { display: block; }
.os-role .flag { margin-right: .3em; vertical-align: -.2em; }
.os-offer p .flag { margin-right: .5em; }

/* ---- the role card, version 2: the type colour above, the banner across the middle, two lines below ---- */
.br-card.down.t-lion { --tc: #233a8c; } .br-card.down.t-lamb { --tc: #2a7560; } .br-card.down.t-jackal { --tc: #8f6200; }
.br-card.down {
  background-color: var(--tc, #233a8c);
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .22) 0 1.5px, transparent 1.5px 14px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 1.5px, transparent 1.5px 14px);
  border-color: #f6f1e2; color: #f6f1e2; align-content: end; padding-bottom: 10px;
}
.br-card.down span { background: rgba(0, 0, 0, .35); padding: 3px 10px; font-size: .8em; }
.br-card { width: clamp(168px, 22vw, 292px); aspect-ratio: 292 / 400; }
.br-card.up { padding: 0; gap: 0; align-content: stretch; justify-items: stretch; background: var(--os-paper); border: 3px solid var(--tc); overflow: hidden; grid-template-rows: 50% auto 1fr; text-align: left; }
.br-card.up .top {
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--tc) 70%, #fff) 0, var(--tc) 62%, color-mix(in srgb, var(--tc) 80%, #000) 100%);
  display: grid; justify-items: center; align-content: center; gap: 6px; padding: 8px 10px 24px; color: #f6f1e2;
}
.br-card.up .top small { font: 700 .6em Verdana, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #f1d88d; }
.br-card.up .ic {
  width: clamp(76px, 9vw, 124px); aspect-ratio: 1; border-radius: 50%; border: 3px solid #e2b350; background: rgba(255, 255, 255, .12); color: #f6f1e2;
  display: grid; place-items: center; padding: 10px; box-sizing: border-box; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .08);
}
.br-card.up .banner {
  margin: -20px auto 0; position: relative; z-index: 2; padding: 4px 26px; background: var(--tc); color: #f6f1e2; border: 2px solid #e2b350;
  font: 400 clamp(1.3rem, 2.4vw, 2rem)/1.15 Georgia, serif; letter-spacing: .04em; text-align: center; justify-self: center;
}
.br-card.up .bot { padding: 10px 14px 12px; display: grid; gap: 8px; align-content: start; color: var(--os-ink); font-size: .8em; }
.br-card.up .bot p { margin: 0; display: grid; grid-template-columns: 1.1em 1fr; gap: 0 6px; line-height: 1.35; }
.br-card.up .bot p b { grid-column: 2; }
.br-card.up .bot .bul { grid-row: 1 / span 2; color: var(--tc); }
.br-card.up .bot .bul.s { color: #8f6200; }
.br-card.up .bot p { display: block; }
.br-card.up .bot .bul { margin-right: 6px; }
@media (max-width: 699px) {
  .br-card.up .bot { font-size: .72em; padding: 6px 10px; }
  .br-card.up .banner { font-size: 1.1rem; padding: 3px 14px; }
}

@media (max-width: 699px) {
  /* The fan: all three cards in one grid cell, so it is centred on the screen by construction. The face-down cards are moved out by the
     same distance each way (--fan) and show 9vw beyond the face-up card on both sides. It is centred vertically between the top of the
     screen and the "Your state" panel (--br-bar is that panel's height, measured by the page): the title sits in the space above it. */
  .br-centre { bottom: var(--br-bar, 190px); grid-template-rows: 1fr auto 1fr; align-content: normal; padding: 0 12px; }
  .br-title { align-self: end; margin: 0 0 14px; text-align: center; }
  .br-cards { grid-row: 2; display: grid; justify-items: center; align-items: center; justify-content: center; gap: 0; width: 100%; --fan: calc(min(66vw, 290px) / 2 + 9vw - 15vw); }
  .br-cards > .br-card { grid-area: 1 / 1; }
  .br-card.down { width: 30vw; z-index: 1; }
  .br-card.down.left { transform: translateX(calc(-1 * var(--fan))) rotate(-7deg); }
  .br-card.down.right { transform: translateX(var(--fan)) rotate(7deg); }
  .br-card.up { width: min(66vw, 290px); aspect-ratio: auto; height: auto; grid-template-rows: auto auto auto; z-index: 2; transform: none; }
  .br-card.up .top { padding: 8px 8px 26px; }
  .br-card.up .ic { width: clamp(64px, 18vw, 86px); }
  .br-card.up .bot { font-size: .8em; padding: 8px 12px 12px; }
  .br-card.up .banner { font-size: 1.25rem; }
  .br-card.up .who { display: block; }
}
@media (max-height: 620px) and (max-width: 699px) {   /* the smallest phones (320 x 568): the same compaction a little earlier, so the fan fits above the panel */
  .br-title { margin-bottom: 8px; }
  .br-card.up .bot { font-size: .66em; padding: 5px 10px 6px; }
  .br-card.up .ic { width: clamp(40px, 11vh, 70px); padding: 6px; }
  .br-card.up .top { padding-bottom: 20px; }
}
@media (max-height: 560px) {
  .br-card.up .bot { font-size: .7em; padding: 6px 10px 8px; }
  .br-card.up .ic { width: clamp(40px, 11vh, 70px); padding: 6px; }
  .br-card.up .top { padding-bottom: 20px; }
}

/* ---- the type icons ---- */
.os-role .icon.inline { margin-right: .25em; }
.en-head .icon.inline, .en-who .icon.inline { color: #e2b350; }
.en-who .icon.inline { color: var(--tc, currentColor); }
.et-col h3 .icon.inline { margin-right: .35em; }
.lbl.rpl .icon.inline { display: block; margin: 0 auto 2px; width: 1.6em; height: 1.6em; color: #5a3e00; }
.br-card.up .ic .icon { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }

/* ---- power as castle towers, and the Rising Power's medallion ---- */
.lbl .lrow { display: flex; align-items: center; justify-content: center; gap: .3em; margin-bottom: 1px; }
.lbl .lrow .flag { margin: 0; display: inline-block; }
.lbl .lrow .towers { font-size: 1em; color: #2b2118; }
.lbl.rpl .medal { margin-top: 3px; font-size: 1em; }
.os-role .towers { font-size: .9em; margin-left: .3em; color: currentColor; }
.os-selhead .towers { font-size: 1.05em; }
.br-bar .towers { font-size: 1.1em; margin-left: .3em; }
.os-state .meta .towers { font-size: 1em; vertical-align: -.15em; }
.os-state .meta .medal { font-size: .85em; }
.lbl .lrow .towers { font-size: 1.5em; }
.lbl .lrow { gap: .25em; }
.lbl.rpl .icon.inline { width: 1.9em; height: 1.9em; }

/* ---- the tab bar: folder tabs with an icon and a hint ---- */
.en-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px 10px; }
.en-head h1 { font-size: 1.3em; }
.en-chip { margin: 0; border: 1px solid rgba(255, 255, 255, .55); padding: 5px 12px; font-size: .88em; border-radius: 2px; }
.en-tabs { gap: 4px; padding: 0 14px; align-items: flex-end; }
.en-tabs button { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px 9px; border: 0; border-top: 3px solid transparent; border-radius: 4px 4px 0 0; color: #cfc8b4; background: transparent; font-family: Georgia, serif; font-weight: 400; }
.en-tabs button .nm { display: block; font-size: 1.05em; }
.en-tabs button .th { display: block; font: 400 .72em Verdana, sans-serif; color: #a8a18b; letter-spacing: .02em; }
.en-tabs button .ts { display: none; font: 400 .75em Verdana, sans-serif; }
.en-tabs button.en-on { background: var(--os-wash); color: var(--os-ink); border-top-color: var(--os-gold); border-bottom-color: transparent; }
.en-tabs button.en-on .th { color: var(--os-muted); }
.en-tabs button.en-on svg { color: #8f6200; }
@media (max-width: 700px) {
  .en-tabs { padding: 0; gap: 0; }
  .en-tabs button { flex: 1; flex-direction: column; gap: 2px; padding: 8px 4px 6px; border-radius: 0; justify-content: center; }
  .en-tabs button .tn { display: none; }
  .en-tabs button .ts { display: block; }
  .en-chip { font-size: .78em; }
}

/* ---- the theory cards ---- */
.th-saved { font-size: .78em; color: var(--muted); margin-left: auto; }
.et-grid { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; overflow: visible; }
.et-li { min-height: 0; display: flex; }
.th-card { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--os-paper); border: 1px solid var(--os-line); border-bottom-width: 3px; border-radius: 2px; overflow: hidden; }
.th-h { position: relative; padding: 10px 12px 10px; color: #f6f1e2; background: var(--ck); min-height: 4.6em; }
.th-card.c-lapis { --ck: #233a8c; } .th-card.c-mal { --ck: #2a7560; } .th-card.c-ochre { --ck: #8f6200; } .th-card.c-tyrian { --ck: #6b2d5c; } .th-card.c-ink { --ck: #2b2823; }
.th-eb { margin: 0 0 4px; font: 700 .64em Verdana, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #f1d88d; }
.th-h h3 { margin: 0; font: 400 1.15em/1.15 Georgia, serif; max-width: 85%; }
.th-num { position: absolute; right: 10px; top: 4px; font: 400 2.4em Georgia, serif; opacity: .3; line-height: 1; }
.th-q { margin: 0; padding: 12px 12px 8px; font: italic 400 1.02em/1.3 Georgia, serif; flex: none; }
.th-ev { padding: 8px 12px; border-top: 1px solid var(--os-line); flex: none; }
.th-ev h4 { margin: 0 0 6px; font: 700 .62em Verdana, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--os-muted); }
.th-sum { margin: 0; padding: 8px 12px; border-top: 1px solid var(--os-line); font-size: .86em; line-height: 1.35; flex: 1; min-height: 0; overflow: hidden; }
.th-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 10px; flex: none; }
.th-tag { font: 700 .72em Verdana, sans-serif; padding: 3px 8px; border: 1.5px solid var(--os-line); background: transparent; }
.th-tag.tg-b { color: var(--os-lapis); border-color: var(--os-lapis); }
.th-tag.tg-k { color: #4a5068; border-color: #6b7185; border-style: dashed; }
.th-tag.tg-w { color: var(--ch-w); border-color: var(--ch-w); border-style: dotted; }
.th-tag.tg-a { color: var(--os-malachite); border-color: var(--os-malachite); }
.th-tag.tg-none { color: var(--os-muted); }
.th-tag.tg-ok { color: var(--os-lapis); border-color: var(--os-lapis); }
.th-tag.tg-adv { color: var(--os-tyrian); border-color: var(--os-tyrian); }
.tc-tug .pull { position: relative; display: flex; height: 18px; background: #e6dec8; }
.tc-tug .coal { display: block; background: var(--os-lapis); height: 100%; }
.tc-tug .theirs { position: absolute; right: 0; top: 0; bottom: 0; display: flex; justify-content: flex-start; }
.tc-tug .theirs .power { background: var(--rp-line); } .tc-tug .theirs .band { background: repeating-linear-gradient(135deg, var(--ch-w) 0 4px, color-mix(in srgb, var(--ch-w) 65%, #fff) 4px 7px); } .tc-tug .theirs .conq { background: #6b2d5c; }
.tc-tug .theirs i { display: block; height: 100%; }
.tc-tug .mid { position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 2px dotted var(--os-ink); }
.tc-tug .nums { display: flex; justify-content: space-between; margin-top: 4px; font: 700 .72em Verdana, sans-serif; }
.tc-tug .nums .l { color: var(--os-lapis); } .tc-tug .nums .r { color: #8f6200; }
.tc-bars { display: grid; gap: 6px; }
.tc-bars .row { display: grid; grid-template-columns: 4.4em 1fr 2.6em; gap: 8px; align-items: center; font-size: .78em; }
.tc-bars .lb { color: var(--os-muted); }
.tc-bars .tr { height: 14px; background: #e6dec8; display: block; }
.tc-bars .f { display: block; height: 100%; }
.tc-bars .f.t-b { background: var(--os-lapis); } .tc-bars .f.t-w { background: var(--ch-w); } .tc-bars .f.t-a { background: var(--os-malachite); }
.tc-bars .f.faint { opacity: .4; }
.tc-bars b { text-align: right; }
.tc-said { display: flex; align-items: center; gap: 8px; }
.tc-said .box { background: #efe9d8; padding: 5px 8px; font-size: .8em; line-height: 1.25; flex: 1; }
.tc-said .box.diff { background: #f4e6f0; outline: 1.5px solid var(--os-tyrian); }
.tc-said small { display: block; color: var(--os-muted); font-size: .85em; }
.tc-said .arrow { font-weight: 700; }
.et-one { flex: 1; min-height: 0; display: flex; touch-action: pan-y; }
.et-one .th-card { flex: 1; }
.et-pager { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.et-dots { display: inline-flex; gap: 8px; align-items: center; }
.et-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #c6bca2; cursor: pointer; }
.et-dot.on { width: 26px; border-radius: 6px; background: var(--os-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.th-h { min-height: 0; }
.th-q { padding-top: 10px; }
@media (max-height: 680px) {
  .th-h { padding: 7px 10px 7px; }
  .th-h h3 { font-size: 1.02em; }
  .th-q { font-size: .92em; padding: 8px 10px 6px; }
  .th-ev { padding: 6px 10px; }
  .th-sum { font-size: .78em; padding: 6px 10px; line-height: 1.3; }
  .th-tags { padding: 6px 10px 8px; gap: 5px; }
  .th-tag { font-size: .66em; padding: 2px 6px; }
  .tc-bars .row { grid-template-columns: 3.4em 1fr 2.4em; font-size: .72em; }
  .tc-tug .nums { font-size: .66em; }
}

/* ---- information buttons and tooltips: one card, next to its button ---- */
.tipcard {
  position: fixed; z-index: 70; width: max-content; max-width: min(340px, calc(100vw - 16px)); box-sizing: border-box;
  background: #2b2823; color: #f3eee0; padding: 10px 12px; border-radius: 3px; box-shadow: 0 8px 26px rgba(0, 0, 0, .45);
  font: 400 14px/1.4 Verdana, "DejaVu Sans", system-ui, sans-serif; text-align: left;
}
.tipcard h3, .tipcard h4 { margin: 0 0 4px; font: 400 1.1em Georgia, serif; color: #f1d88d; }
.tipcard p { margin: 4px 0; }
.tipcard .rk { color: #e8b9d6; }
.tipcard .muted { color: #cfc8b4; }
.tipcard .gl { margin: 8px 0 0; padding-top: 6px; border-top: 1px solid #4a453c; font-size: .88em; color: #cfc8b4; }
.tipcard .gl a { color: #f1d88d; }
.rolecard .gl { margin: 0; padding: 8px 14px 12px; border-top: 1px solid #d6ccb4; color: #5f574a; }
.rolecard .gl a { color: #233A8C; }
.tipcard ul { margin: 6px 0; padding-left: 1.1em; display: grid; gap: 2px; }
.tipcard li.mine { font-weight: 700; color: #e2b350; }
.tipcard dl { margin: 0; display: grid; grid-template-columns: 7em 1fr; gap: 6px 10px; font-size: .95em; }
.tipcard dt { color: #bdb59f; } .tipcard dd { margin: 0; }
.tipcard .zt.z1 { color: #aebdf4; font-weight: 700; } .tipcard .zt.z2 { color: #f1d88d; font-weight: 700; } .tipcard .zt.z3 { color: #e8b0d4; font-weight: 700; }
.tipcard .tnote { font-size: .88em; color: #cfc8b4; }
.tipcard .keycard { list-style: none; padding: 0; }
.tipcard .keycard li { display: flex; align-items: center; gap: 8px; }
.tipcard .sw { display: inline-block; width: 22px; height: 7px; background: var(--c, #aaa); }
.tipcard .sw.k { background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 10px); }
.tipcard .sw.w { background: radial-gradient(circle, var(--c) 40%, transparent 45%) 0 50% / 8px 7px repeat-x; }
.tipcard .sw.a { background: repeating-linear-gradient(90deg, var(--c) 0 10px, transparent 10px 13px, var(--c) 13px 16px, transparent 16px 19px); }
.tipcard .sw.q { background: repeating-linear-gradient(135deg, var(--c) 0 2px, #d8bfd0 2px 5px); }
.tipcard .sw.treaty { background: radial-gradient(circle, #2a7560 40%, transparent 45%) 0 50% / 7px 7px repeat-x; }
.tipcard .sw.you { height: 10px; background: transparent; border: 2px solid #e2b350; }
.os-move .tipw { position: absolute; }
.ew-keywrap { position: absolute; left: 8px; top: 8px; z-index: 3; }
.ew-keybtn { padding: 6px 12px; border: 1px solid #1c1913; background: var(--os-btn); color: var(--os-ink); font: 400 .95em Georgia, serif; border-radius: 0; cursor: pointer; }
/* ---- watching, after you are conquered ---- */
.os-watch {
  flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 14px; background: #3a2a4a; color: #f3eee0;
  border-top: 1px solid #5a4a6a; font-size: .9em; z-index: 5; position: relative;
}
.os-watch b { font: 400 1.1em Georgia, serif; letter-spacing: .1em; text-transform: uppercase; color: #f1d88d; }
.os-watch .wsp { flex: 1; }
.os-watch .os-btn.top { min-height: 30px; padding: 4px 12px; }

/* the live tooltips on the track */
.tipcard h5 { margin: 8px 0 3px; font: 700 .72em Verdana, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #bdb59f; }
.tipcard ul.tl { list-style: none; margin: 2px 0; padding: 0; display: grid; gap: 3px; }
.tipcard ul.tl li.ok { color: #aee0c8; }
.tipcard ul.tl li.no { color: #e8b9d6; }
.tipcard .spark { display: block; width: 100%; max-width: 220px; height: auto; margin: 4px 0 0; }
.tipcard .spark .sl { stroke: #6c6657; stroke-dasharray: 3 3; stroke-width: 1; }
.tipcard .spark .sp { stroke: #f1d88d; stroke-width: 2; }
.tipcard .spark .sn { fill: #fff; stroke: #2b2823; stroke-width: 1.5; }
.tipcard .cap { margin: 0 0 2px; font-size: .78em; color: #cfc8b4; }

/* ---- the wide screen: three columns (1280 and up; the side columns are narrower below 1600) ----
   Left: your brief, Diplomacy, every state. Centre: the map and, under it, the Rising Power's speech.
   Right: Your Move, Dispatches (with the earlier rounds), the key. Below 1280 the panels float or fold as before. */
.os-mapbox { position: absolute; inset: 0; }
.os.wide { --lw: clamp(270px, 17.5vw, 340px); --rw: clamp(340px, 21vw, 400px); }
.os.wide .os-stage { display: grid; grid-template-columns: var(--lw) minmax(0, 1fr) var(--rw); gap: 14px; padding: 14px; background: linear-gradient(#d7e2e6, #c4d5dc); }
.os.wide .os-stage::after { display: none; }
.os.wide .os-mapwrap { position: relative; inset: auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.os.wide .os-mapbox { position: relative; inset: auto; flex: 1; min-height: 0; border-radius: 3px; overflow: hidden; }
.os.wide .os-col { position: static; width: auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; pointer-events: auto; }
.os.wide .os-col > .os-panel { flex: none; max-height: none; overflow: visible; }
.os.wide .os-col.left > .states { flex: 1 1 0; min-height: 120px; overflow: auto; }
.os.wide .os-col.right > .disp { flex: 1 1 0; min-height: 90px; overflow: auto; }
.os.wide .os-col.right > .move { overflow: visible; }
.os.wide .os-speech { position: static; transform: none; width: auto; flex: none; }
.os.wide .os-panel.selp { position: absolute; left: 10px; bottom: 10px; width: min(340px, calc(100% - 20px)); max-height: 62%; overflow: auto; z-index: 4; }
.os.wide .os-nextwrap { left: 50%; bottom: 14px; width: min(540px, calc(100% - 28px)); }
.os.wide .os-key { position: static; flex: none; }

/* your brief */
.brief { border-left: 5px solid var(--os-malachite); }
.brief.t-lion { border-left-color: var(--os-lapis); } .brief.t-jackal { border-left-color: var(--os-orpiment); }
.brief .bt { display: flex; gap: 12px; align-items: flex-start; }
.brief .letter { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: var(--os-malachite); color: #fff; font: 400 1.7em/1 Georgia, serif; border-radius: 2px; }
.brief.t-lion .letter { background: var(--os-lapis); } .brief.t-jackal .letter { background: var(--os-orpiment); color: #1b1e2b; }
.brief .eb { margin: 0; font: 700 .64em/1.2 Verdana, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--os-tyrian); }
.brief .ty { margin: 0; font: 400 1.5em/1.15 Georgia, serif; color: var(--os-malachite); }
.brief.t-lion .ty { color: var(--os-lapis); } .brief.t-jackal .ty { color: #8F6200; }
.brief .stl { margin: 2px 0 0; font-size: .8em; color: var(--os-muted); }
.brief .win { margin: 10px 0 4px; font-weight: 400; }
.brief .sofar { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .92em; }
.brief .sofar li.ok { color: var(--os-malachite); } .brief .sofar li.no { color: var(--os-tyrian); }
.brief .sofar b { font-weight: 700; }

/* every state, open */
.os-rows { list-style: none; margin: 0; padding: 0; }
.os-rows .row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 8px; gap: 10px; align-items: center; padding: 6px 4px 6px 6px; border: 0; border-bottom: 1px solid var(--os-line); background: transparent; text-align: left; font-size: .92em; }
.os-rows .row[aria-pressed="true"], .os-rows .row.mine { background: var(--os-note); }
.os-rows .row .nm { display: block; min-width: 0; overflow-wrap: anywhere; }
.os-rows .row.mine .nm { font-weight: 700; }
.os-rows .row .you { margin-left: .5em; font-size: .7em; font-weight: 700; color: var(--os-malachite); letter-spacing: .08em; text-transform: uppercase; }
.os-rows .lm { display: block; width: 8px; height: 26px; border-radius: 1px; background: #cfc8b4; }
.os-rows .lm.b { background: var(--ch-b); } .os-rows .lm.k { background: var(--ch-k); } .os-rows .lm.w { background: var(--ch-w); }
.os-rows .lm.a { background: var(--ch-a); } .os-rows .lm.q { background: var(--ch-q); } .os-rows .lm.none { background: transparent; border: 1px dashed #cfc8b4; }

/* ---- polish (one control height; the role card; the Your Move line and cards; the right column) ---- */
.os-bar { --ctl: 44px; }
.os-role, .os-btn.top.menu { height: var(--ctl); box-sizing: border-box; }
.os-btn.top.menu { min-height: 0; padding-top: 0; padding-bottom: 0; }
.os-role { align-content: center; padding-top: 0; padding-bottom: 0; }
.os-roundbtn .tile { width: 54px; height: 54px; }
.os.phone .os-roundbtn .tile { width: 42px; height: 42px; }
.os.phone .os-bar { --ctl: 40px; }
.os-right { align-self: center; }
.os-note.stakes { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.os-note.stakes .os-i { flex: none; color: inherit; width: 20px; height: 20px; }
.os-move .pick { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 0; min-height: 64px; padding: 24px 6px 8px; white-space: nowrap; }
.os-move .tipw { top: 6px !important; right: 6px !important; margin-top: 0 !important; }
/* on the wide screen the three moves are three rows: letter and name on one line, the (i) inside the padding at the right */
.os.wide .os-moves { grid-template-columns: 1fr; gap: 6px; }
.os.wide .os-move .pick { min-height: 44px; padding: 8px 40px 8px 12px; justify-content: flex-start; font-size: .9em; }
.os.wide .os-move .tipw { top: 50% !important; right: 10px !important; margin-top: -11px !important; }
.os-move .pick .l { font-size: 1em; color: var(--os-muted); }
.os-move .pick .sepdot { color: var(--os-muted); font-weight: 400; margin: 0 .4em; }
/* in the bottom sheet and the side column the cards are a little lower, so the Decide tab never scrolls */
.os:not(.wide) .os-move .pick { min-height: 54px; padding-top: 22px; }
.os:not(.wide) .os-note { margin-bottom: 6px; }
.os:not(.wide) .os-moves { margin-bottom: 6px; }
.os-moves { grid-auto-rows: 1fr; }

/* the role card (a tooltip card, light, with a band in the type's colour) */
.tipcard.rolecard { width: min(380px, calc(100vw - 16px)); max-width: none; padding: 0; background: #fbf8ee; color: #2a241b; border: 1px solid #d6ccb4; border-radius: 3px; font-size: 13px; line-height: 1.4; overflow: visible; }
.rolecard::before { content: ""; position: absolute; top: -7px; left: calc(var(--ax, 40px) - 7px); border: 7px solid transparent; border-top: 0; border-bottom: 7px solid #2A7560; }
.rolecard.t-lion::before { border-bottom-color: #233A8C; } .rolecard.t-jackal::before { border-bottom-color: #8F6200; }
.rolecard .rc-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #2A7560; color: #fff; border-radius: 3px 3px 0 0; }
.rolecard.t-lion .rc-head { background: #233A8C; } .rolecard.t-jackal .rc-head { background: #8F6200; }
.rolecard .rc-tile { flex: none; width: 44px; height: 44px; padding: 8px; box-sizing: border-box; background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 3px; color: #fff; }
.rolecard .rc-id { min-width: 0; flex: 1; }
.rolecard .rc-id h3 { margin: 0; font: 400 1.6em/1.1 Georgia, serif; color: #fff; }
.rolecard .rc-id p { margin: 2px 0 0; font-size: .92em; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: #fff; }
.rolecard .rc-x { flex: none; align-self: flex-start; border: 0; background: transparent; color: #fff; font-size: 1.6em; line-height: 1; padding: 0 4px; cursor: pointer; }
.rolecard .rc-rows { margin: 0; padding: 12px 14px 4px; display: grid; grid-template-columns: 9.4em 1fr; gap: 10px 12px; font-size: 13px; }
.rolecard dt { margin: 0; font: 700 10px/1.6 Verdana, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #6c6455; padding-top: 2px; }
.rolecard dd { margin: 0; }
.rolecard dd.how { font-weight: 700; }
.rolecard ul.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.rolecard ul.tl li.ok { color: #2A7560; font-weight: 700; } .rolecard ul.tl li.no { color: #8a2f53; font-weight: 700; }
.rolecard .rc-foot { margin: 8px 14px 0; padding: 8px 0 12px; border-top: 1px solid #d6ccb4; font-size: 11px; color: #6c6455; }
@media (max-width: 699px) {
  .tipcard.rolecard { position: fixed; left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; border-radius: 10px 10px 0 0; max-height: 80vh; overflow: auto; }
  .rolecard::before { display: none; }
  .rolecard .rc-head { border-radius: 10px 10px 0 0; }
}

/* the right column: the key lines up with the Rising Power's banner (same row, same height) */
.os.wide .os-stage { grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "left map right" "left speech key"; }
.os.wide .os-col.left { grid-area: left; } .os.wide .os-mapwrap { grid-area: map; } .os.wide .os-col.right { grid-area: right; }
.os.wide .os-speech { grid-area: speech; align-self: stretch; margin: 0; }
.os.wide .os-key { grid-area: key; align-self: stretch; align-content: center; margin: 0; max-width: none; border-radius: 3px; }

/* the stakes line is one line with an ellipsis on a phone (the full sentence is in its (i)); in a side column it wraps to two lines,
   so the number is never hidden */
.os-note.stakes > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os.wide .os-note.stakes > span:first-child, .os.side .os-note.stakes > span:first-child { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
/* in the bottom sheet the notes are a little tighter, so the sheet takes the height of its contents and the map keeps its room */
.os:not(.wide):not(.side) .os-sheet .os-note { padding: 4px 8px; margin-bottom: 5px; }
.os:not(.wide):not(.side) .os-sheet .os-end { padding: 10px; }
.os-note.stakes .tipw { flex: none; }
.os:not(.wide):not(.side) .os-sheet .os-note { font-size: .76em; line-height: 1.3; }
.os:not(.wide) .os-move.on .pick .l::after { content: "✓"; position: absolute; top: 4px; left: 7px; font-size: .9em; }
@media (max-width: 1800px) { .os.wide .os-note.stakes { font-size: .7em; padding: 4px 6px; } }
.os.side .os-sheet { max-height: none; }

/* ---- the opening: four screens between Start and the briefing ---- */
.op { --pad: clamp(12px, 2.2vh, 24px); font-size: clamp(11.5px, 1.95vh, 15.5px); }
.op-skip { position: absolute; top: 18px; right: 18px; z-index: 6; padding: 7px 14px; background: rgba(30, 28, 24, .55); color: #f3eee0; border: 1px solid rgba(255, 255, 255, .45); border-radius: 3px; font: inherit; font-size: .85em; cursor: pointer; }
.op-skip .short { display: none; }
.op:not(.still) .op-skip { transition: top .55s ease-out; }   /* it moves down with the track panel and back up with it, not in a jump */
.op-map { position: absolute; inset: 0; pointer-events: none; }
.op-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(30, 28, 24, 0) 45%, rgba(30, 28, 24, .72) 100%); z-index: 1; }
.op-map .lbl:not(.rpl) { display: none; }
.op-map .rpl > :not(.nm) { display: none; }
.op-map [data-id="rp"] { filter: drop-shadow(0 0 14px #e2b350) drop-shadow(0 0 28px rgba(226, 179, 80, .6)); }
.op:not(.still) .op-map .lbl:not(.rpl) { display: none; }
.op-map .rpl > :not(.nm) { display: none; }
.op-map [data-id="rp"] { animation: opglow 3.2s ease-in-out infinite; }
@keyframes opglow { 50% { filter: drop-shadow(0 0 22px #f1d88d) drop-shadow(0 0 44px rgba(226, 179, 80, .75)); } }
.op:not(.still) .op-map.rise { animation: oprise .7s ease-out both; }
@keyframes oprise { from { opacity: 0; transform: translateY(14px); } }
/* screen 1: the card */
.op-card { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1120px, calc(100% - 2 * var(--pad))); max-height: calc(100% - 2 * var(--pad)); box-sizing: border-box; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: .5em; padding: 1.6em 2.2em 1.3em; background: #fbf8ee; color: #2a241b; border: 6px solid rgba(110, 104, 92, .85); box-shadow: 0 14px 50px rgba(0, 0, 0, .55); overflow: hidden; }
.op:not(.still) .op-card { animation: opin .45s ease-out both; }
@keyframes opin { from { opacity: 0; transform: translate(-50%, -48%); } }
.op-card .eb { margin: 0; font: 400 .72em/1.2 Verdana, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #8F6200; }
.op-card h1 { margin: 0; font: 400 2.5em/1.1 Georgia, serif; color: #2a241b; }
.op-card .lead { margin: 0 0 .5em; font: 400 1.3em/1.4 Georgia, serif; max-width: 62em; }
.op-card h2 { margin: 0 0 .7em; font: 700 .68em/1.3 Verdana, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #6B2D5C; }
.op-card .cols { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 2.2em; min-height: 0; align-content: start; }
.op-card .choices { list-style: none; margin: 0; padding: 0; display: grid; gap: .7em; }
.op-card .choices li { display: grid; gap: .1em; padding-left: .7em; border-left: 6px solid var(--c); }
.op-card .choices li.k-b { --c: var(--ch-b); } .op-card .choices li.k-k { --c: var(--ch-k); } .op-card .choices li.k-w { --c: var(--ch-w); }
.op-card .choices b { font: 400 1.35em/1.2 Georgia, serif; color: var(--c); }
.op-card .choices span { font-size: .92em; }
.op-card .rounds { list-style: none; margin: 0; padding: 0; }
.op-card .rounds li { display: flex; gap: 1.1em; padding: .5em 0; border-top: 1px solid #d6ccb4; }
.op-card .rounds .rn { flex: none; width: 2.4em; font: 400 1.25em/1.2 Georgia, serif; color: #8F6200; }
.op-card .rounds .rt { display: grid; gap: .1em; min-width: 0; }
.op-card .rounds b { font: 400 1.1em/1.25 Georgia, serif; }
.op-card .rounds small { font-size: .82em; line-height: 1.5; color: #5f574a; }
.op-card .take { list-style: none; margin: 0; padding: 0; display: grid; gap: .8em; }
.op-card .take li { display: flex; gap: .7em; font-size: .95em; }
.op-card .take li span { color: #2A7560; flex: none; }
.op-card .take.short { display: none; }
.op-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5em; margin-top: .6em; padding-top: 1em; border-top: 1px solid #d6ccb4; }
.op-card .foot p { margin: 0; max-width: 44em; font-size: .85em; color: #5f574a; }
.op .nav { display: flex; align-items: center; gap: 1.1em; }
.op .dots { display: inline-flex; gap: .6em; }
.op .dots i { width: .8em; height: .8em; border-radius: 50%; border: 1.5px solid #8d8671; background: transparent; display: block; }
.op .dots i.on { background: #e2b350; border-color: #e2b350; }
.op .begin { width: auto; padding: .85em 1.6em; font: 400 1.25em Georgia, serif; }
/* screens 2 to 4 */
.op-say { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 0 var(--pad) calc(var(--pad) * 1.3); display: grid; justify-items: center; gap: .9em; text-align: center; color: #fff; }
.op-say > p { margin: 0; font: 400 clamp(1.15em, 3.2vh, 1.9em)/1.35 Georgia, serif; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); max-width: 38em; }
.op-say .nav { justify-content: center; }
.op-say .cont { font-size: .85em; color: #d8d2c0; }
.op-say .plate { margin: 0; width: min(710px, 100%); box-sizing: border-box; padding: .9em 1.3em; background: #fbf8ee; color: #2a241b; border-left: 6px solid #8F6200; text-align: left; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.op-say .plate p { margin: 0; font: italic 400 1.2em/1.4 Georgia, serif; }
.op-say .plate footer { margin-top: .4em; font-size: .82em; color: #5f574a; }
.op-say.fadein { animation: opfade .6s ease-out both; }
@keyframes opfade { from { opacity: 0; transform: translateY(10px); } }
.op-speech { width: min(940px, 100%); box-sizing: border-box; display: flex; gap: 1.6em; align-items: center; padding: 1.5em 2em; text-align: left; background: #5c4100; border: 1px solid #b89a4b; box-shadow: 0 10px 34px rgba(0, 0, 0, .5); }
.op-speech .badge { flex: none; width: 3.6em; height: 3.6em; border-radius: 50%; border: 3px solid #e2b350; display: grid; place-items: center; font: 400 1.2em Georgia, serif; color: #f1d88d; }
.op-speech small { display: block; letter-spacing: .22em; text-transform: uppercase; font-size: .68em; color: #e8cd8a; font-weight: 700; }
.op-speech p { margin: .3em 0 0; font: 400 clamp(1.15em, 3vh, 1.7em)/1.4 Georgia, serif; }
.op-track { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 130px; box-sizing: border-box; padding: 18px calc(var(--pad) * 2) 0; background: rgba(43, 40, 35, .94); border-bottom: 1px solid #8F6200; color: #f3eee0; }
.op-track.drop { animation: opdrop .7s ease-out both; }
@keyframes opdrop { from { transform: translateY(-100%); } }
.op-track .optt { margin: 0 0 1.6em; text-align: center; font: 400 .7em/1.2 Verdana, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #b9b2a1; }
.op-track .opb { position: relative; display: flex; max-width: 820px; margin: 0 auto; height: 12px; }
.op-track .opb i { display: block; height: 100%; }
.op-track .a1 { background: #233A8C; } .op-track .a2 { background: #B07A12; } .op-track .a3 { background: #6B2D5C; }
.op-track .opnow { position: absolute; top: -5px; width: 0; }
.op-track .opnow::before { content: ""; position: absolute; left: -8px; top: 1px; border: 8px solid transparent; border-top: 13px solid #e2b350; border-bottom: 0; }
.op-track .opnow::after { content: ""; position: absolute; left: -1px; top: 12px; width: 2px; height: 14px; background: #e2b350; }
.op-track .opnow em, .op-track .opheg em { position: absolute; bottom: 20px; transform: translateX(-50%); white-space: nowrap; font: normal 400 1.05em Georgia, serif; }
.op-track .opnow em { color: #e2b350; } .op-track .opheg em { color: #fff; bottom: 18px; }
.op-track .opheg { position: absolute; top: -6px; width: 2px; height: 24px; background: #fff; margin-left: -1px; }
.op-track .opnums { position: relative; max-width: 820px; margin: .5em auto 0; height: 1.2em; font-size: .75em; color: #b9b2a1; }
.op-track .opnums span { position: absolute; transform: translateX(-50%); } .op-track .opnums span:first-child { transform: none; } .op-track .opnums span:last-child { transform: translateX(-100%); }
.gv-how { margin: 0 0 14px; color: var(--os-muted); }
/* the track on a laptop or projector: the labels get a row of their own between the eyebrow and the bar, so none touches the eyebrow and
   "70: hegemony" sits above the top of its line instead of over it */
@media (min-width: 700px) {
  .op-track .optt { margin-bottom: 36px; }
  .op-track .opheg em { bottom: calc(100% + 4px); }
  .op-track .opnow em { bottom: 6px; }
}
@media (max-width: 699px) {
  .op-skip .long { display: none; } .op-skip .short { display: inline; } .op-skip { top: 12px; right: 12px; padding: 5px 12px; }
  .op-card { width: 100%; max-height: 100%; height: 100%; border: 0; box-shadow: none; transform: none; left: 0; top: 0; padding: 1.1em 1.2em; padding-top: 54px; gap: .35em; }   /* (the top 54 px are the Skip button's: nothing is written under it) */
  .op:not(.still) .op-card { animation-name: opinp; } @keyframes opinp { from { opacity: 0; } }
  .op-card h1 { font-size: 1.9em; } .op-card .lead { font-size: 1.05em; margin-bottom: .4em; }
  .op-card .cols { grid-template-columns: 1fr; gap: .9em; }
  .op-card h2 { margin-bottom: .45em; }
  .op-card .choices { grid-template-columns: repeat(3, 1fr); gap: .5em; }
  .op-card .choices li { border-left: 0; border-top: 4px solid var(--c); padding: .35em 0 0; text-align: center; background: #fff; }
  .op-card .choices span { display: none; }
  .op-card .choices b { font-size: 1.05em; padding-bottom: .5em; }
  .op-card .rounds li { padding: .32em 0; gap: .8em; } .op-card .rounds .rn { width: 2em; font-size: 1.05em; }
  .op-card .rounds small { font-size: .78em; line-height: 1.35; }
  .op-card .take { display: none; } .op-card .take.short { display: grid; gap: .45em; }
  .op-card .take li { font-size: .92em; }
  .op-card .foot p { display: none; }
  .op-card .foot { justify-content: flex-end; margin-top: .3em; padding-top: .6em; }
  .op-card .nav { width: 100%; justify-content: space-between; }
  /* the track on a phone: no eyebrow (it stays for screen readers); "70: hegemony" sits above its line, clear of it; "24 now" sits under the marker */
  .op-track { height: 118px; padding-top: 46px; }
  .op-track .optt { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .op-track .opheg em { bottom: calc(100% + 4px); }
  .op-track .opnow em { bottom: auto; top: 30px; }
  .op-skip.low { top: 128px; }
  .op-speech { padding: 1em 1.1em; gap: 1em; } .op-speech .badge { width: 2.8em; height: 2.8em; }
}
@media (max-height: 520px) { .op-card .lead, .op-card .foot p { display: none; } }
