/* We The Empire — online table, design B: "Senate floor"
   Stone ground, Tyrian purple for structure, bronze for your move, red only for the Enemy.
   Hierarchy: 1 the stage (your move) · 2 the war bar · 3 the Senate · 4 the Chronicle. */
:root{
  color-scheme:light;
  --stone:#D3D6CF;      /* page ground: cool marble */
  --stone2:#C4C8C0;     /* sunken areas, empty slots */
  --paper:#FBFBF7;      /* the stage: brightest surface = most important */
  --tyr:#46173F;        /* Tyrian purple: structure, names, headings */
  --tyr2:#6E3466;
  --ink:#231F25; --muted:#5A5560;
  --red:#B3261E;        /* the Enemy, danger */
  --bronze:#A8711A;     /* your move */
  --bronze2:#D9A441;
  --good:#2E7048;
  --serif:Cinzel,Georgia,serif;
  --sans:"Alegreya Sans",system-ui,sans-serif;
}
*{box-sizing:border-box;min-width:0}
body{margin:0;background:var(--stone);color:var(--ink);font:17px/1.5 var(--sans);overflow-x:clip}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
[hidden]{display:none!important}
#app{max-width:1180px;margin:0 auto;padding:10px 14px 64px}
.small{font-size:14px;color:var(--muted)} .good{color:var(--good);font-weight:700} .bad{color:var(--red);font-weight:700}
button,select,input{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--bronze);outline-offset:2px}
.dot{width:11px;height:11px;border-radius:50%;display:inline-block;flex:none}

/* buttons: filled, no outlines. One primary per stage. */
.btn,#prompt button:not(.optc){border:0;background:#E4E5DF;color:var(--ink);border-radius:6px;padding:11px 18px;min-height:46px;cursor:pointer;font-weight:700;font-size:16px}
.btn:hover:not(:disabled),#prompt button:not(.optc):hover:not(:disabled){background:#d8dad2}
.primary,#prompt button.primary{background:var(--bronze)!important;color:#fff!important;font-size:17px!important;padding:12px 24px!important;box-shadow:0 3px 0 #6d4810}
.primary:hover:not(:disabled){background:#97650f!important}
.btn.quiet{background:transparent;color:var(--tyr);text-decoration:underline;text-underline-offset:3px;min-height:40px;padding:6px 8px;font-weight:500}
.btn.sm{min-height:34px;padding:4px 12px;font-size:14px}
button:disabled{opacity:.45;cursor:not-allowed}

/* info marks */
.info{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--tyr);color:#fff;font:700 12px/1 Georgia,serif;font-style:italic;cursor:help;flex:none;vertical-align:middle;margin-left:8px;user-select:none;-webkit-tap-highlight-color:transparent}
.st .info{width:22px;height:22px;font-size:13px}
#bar .info{background:#ffffff26}

/* header: small, the brand is not the point */
header{display:flex;align-items:center;gap:10px;margin:2px 0 12px}
header svg{width:28px;height:28px;color:var(--tyr);flex:none}
h1{font:800 20px/1 var(--serif);margin:0;color:var(--tyr)}
header .small{font-size:13px}
#conn{margin-left:auto;font-size:13px;color:var(--muted);display:flex;align-items:center;gap:6px;white-space:nowrap}
#conn i{width:9px;height:9px;border-radius:50%;background:var(--good);display:inline-block}
#conn.off i{background:var(--red)}

/* tooltip, banner, toast */
#tip{position:fixed;z-index:80;max-width:min(330px,calc(100vw - 20px));background:var(--tyr);color:#fff;font-size:15px;line-height:1.4;padding:10px 12px;border-radius:6px;box-shadow:0 10px 30px #0005;pointer-events:none;display:none}
#tip b{display:block;margin-bottom:3px;font-family:var(--serif);color:var(--bronze2)}
#banner{position:fixed;left:50%;top:34%;z-index:55;transform:translate(-50%,-50%) scale(.9);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;text-align:center;padding:20px 30px;border-radius:8px;background:var(--tyr);color:#fff;box-shadow:0 24px 60px #0006;min-width:min(86vw,340px)}
#banner.show{opacity:1;transform:translate(-50%,-50%) scale(1)}
#banner .bt{font:800 clamp(24px,6vw,34px)/1.1 var(--serif)}
#banner.bad{background:var(--red)} #banner.good{background:var(--good)}
#banner .bs{margin-top:6px;opacity:.85}
#toast{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:70;background:var(--red);color:#fff;padding:10px 16px;border-radius:6px;display:none;max-width:90vw;font-weight:700}

/* ---------- level 2: the war bar (always on screen) ---------- */
#bar{position:sticky;top:0;z-index:30;background:var(--tyr);color:#fff;box-shadow:0 4px 14px #0003}
#bar .in{max-width:1180px;margin:0 auto;padding:8px 14px;display:flex;align-items:center;gap:14px}
.b-round{display:flex;flex-direction:column;line-height:1.1}
.b-round b{font:800 22px/1 var(--serif)}
.b-round span{font-size:13px;opacity:.75}
.b-threat{display:flex;align-items:center;gap:8px;background:var(--red);border-radius:6px;padding:4px 12px 4px 10px;box-shadow:inset 0 -3px 0 #0003}
.b-threat b{font:800 34px/1 var(--serif)}
.b-threat span{font-size:13px;line-height:1.15}
.b-threat.ls{background:#120507;box-shadow:inset 0 0 0 2px var(--bronze2)}
.b-threat.ls b{color:var(--bronze2)}
.b-road{display:flex;align-items:center;gap:4px}
.b-road i{width:16px;height:22px;border-radius:3px;background:#ffffff26}
.b-road i.f{background:var(--red);box-shadow:0 0 0 1px #ff9b8f88}
.b-road svg{width:18px;height:18px;color:var(--bronze2)}
.b-me{margin-left:auto;text-align:right;line-height:1.1}
.b-me b{font:800 26px/1 var(--serif)}
.b-me span{display:block;font-size:13px;opacity:.75}
.b-phase{display:flex;max-width:1180px;margin:0 auto;padding:0 14px 6px;gap:3px}
.b-phase span{flex:1;font-size:12px;text-align:center;padding:2px 0;border-radius:3px;background:#ffffff14;color:#ffffffa0}
.b-phase span.done{background:#ffffff2a;color:#fff}
.b-phase span.on{background:var(--bronze2);color:var(--tyr);font-weight:800}
@media(max-width:520px){#bar .in{gap:9px;padding:7px 10px}.b-road i{width:11px;height:18px}.b-threat b{font-size:28px}.b-round b{font-size:19px}.b-me b{font-size:22px}.b-road svg{display:none}}

/* ---------- page layout ---------- */
.cols{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}
@media(max-width:860px){.cols{grid-template-columns:1fr}}
main{display:flex;flex-direction:column;gap:14px}

/* ---------- level 1: the stage ---------- */
.stage{background:var(--paper);border-radius:8px;padding:20px 22px 22px;box-shadow:0 1px 0 #fff inset,0 18px 40px -18px #2a1a2a66;border-top:8px solid var(--bronze)}
.stage.wait{border-top-color:var(--stone2);box-shadow:none;background:#E9EBE5}
.st{font:800 clamp(24px,4.6vw,32px)/1.12 var(--serif);color:var(--tyr);margin:0 0 6px;display:flex;align-items:center;flex-wrap:wrap}
.stage.wait .st{color:var(--muted);font-size:clamp(20px,3.6vw,24px)}
.q{font-size:18px;margin:0;max-width:62ch}
.hint{font-size:16px;color:var(--muted);margin-top:6px;max-width:62ch}
.btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;align-items:center}
.opts{display:flex;flex-wrap:wrap;gap:14px;margin-top:16px}
.optc{background:none;border:0;padding:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px;max-width:170px;text-align:center}
.optc:hover .cd{transform:translateY(-6px)}
.optc .ot{font-size:14px;color:var(--muted)}
.pickb{display:inline-flex;align-items:center;gap:8px}
.wlist{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.wl{display:inline-flex;align-items:center;gap:7px;padding:5px 12px;border-radius:999px;background:var(--paper);font-size:15px;font-weight:700}
.wl .small{font-weight:400}
.stage:not(.wait) .wl{background:#ECEDE7}
.wh{margin-top:16px;font-size:15px;color:var(--muted);display:flex;align-items:center}

/* commit trays: Empire and Influence are the two choices; hand underneath */
.trays{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.tray{border-radius:8px;padding:10px;min-height:132px;background:#ECEDE7;transition:background .15s,box-shadow .15s}
.tray.z-emp{background:#F1E6D0}
.tray.z-inf{background:#EBE0EA}
.tray.z-disc{background:#E3E3E3}
.tray.z-hand{margin-top:12px;min-height:0;background:transparent;padding:10px 0 0;border-top:2px dashed var(--stone2);border-radius:0}
.tray.armed{box-shadow:0 0 0 3px var(--bronze2);cursor:pointer}
.tray.z-hand.armed{box-shadow:none;background:#f3ead7;border-radius:8px;padding:10px}
.tray.over{box-shadow:0 0 0 4px var(--bronze)}
.tray .th{display:flex;justify-content:space-between;align-items:baseline;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.tray .th b{font:800 18px/1.1 var(--serif);color:var(--tyr);display:inline-flex;align-items:center}
.tray.z-emp .th b{color:#7a4f0f}
.tray .th span{font-weight:800;font-size:16px}
.tray .th .info{width:18px;height:18px;font-size:11px;margin-left:6px}
.tray .tcards{display:flex;flex-wrap:wrap;gap:6px}
.tray .ph{font-size:14px;color:var(--muted)}
.mm{height:8px;border-radius:4px;background:#0000001a;margin-top:10px;overflow:hidden}.mm i{display:block;height:100%;background:var(--bronze)}
.slots{display:flex;gap:4px;margin-top:10px;max-width:240px}.slots i{flex:1;height:7px;border-radius:4px;background:var(--stone2)}.slots i.f{background:var(--tyr)}.slots i.o{background:var(--red)}
@media(max-width:480px){.stage{padding:16px 14px 18px}.trays{gap:8px}.tray{padding:8px}}

/* end of game */
.alrow{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.al{width:88px;aspect-ratio:5/7;border-radius:8px;border-top:7px solid var(--pc);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;animation:flip .5s both;box-shadow:0 8px 16px -6px #0005;padding:3px}
.al.lo{background:#fff;color:var(--tyr)}.al.tr{background:var(--red);color:#fff}
.al b{font:800 14px/1 var(--serif)}.al svg{width:26px;height:26px}
.al span{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}

/* special-card note */
#note:empty{display:none}
#note{background:var(--red);color:#fff;border-radius:8px;padding:10px 14px;font-size:16px}
#note b{font-family:var(--serif)}
#note.ls{background:#120507;color:#fff}

/* the army reveal */
#battle{background:#2B1A2A;color:#fff;border-radius:8px;padding:14px}
#battle .lbl{font:800 17px/1.2 var(--serif);display:flex;align-items:center;margin-bottom:10px}
#battle .lbl .info{background:#ffffff30}
.brow{display:flex;flex-wrap:wrap;gap:6px}
.tug{position:relative;height:24px;border-radius:12px;background:#ffffff1c;margin:24px 0 8px}
.tug .tf{position:absolute;left:0;top:0;bottom:0;border-radius:12px;transition:width .7s ease-out;width:0}
.tug .tf.ok{background:var(--bronze2)}.tug .tf.no{background:var(--red)}
.tug .tl{position:absolute;top:-7px;bottom:-7px;width:3px;background:#fff;border-radius:2px}
.tug .tl span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font:800 13px/1 var(--serif);white-space:nowrap;padding-bottom:3px}
.tugtx{font-size:17px}
.tugtx b{font:800 22px/1 var(--serif)}

/* your seat */
#you{padding:4px 2px}
.yhead{display:flex;gap:14px;align-items:center}
.alleg{width:58px;aspect-ratio:5/7;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;box-shadow:0 6px 14px -6px #0006;flex:none;cursor:help}
.alleg.lo{background:#fff;color:var(--tyr)}.alleg.tr{background:var(--red);color:#fff}
.alleg.sp{background:var(--stone2);color:var(--muted)}
.alleg svg{width:22px;height:22px}.alleg b{font:800 11px/1 var(--serif)}
.yt{font:800 20px/1.1 var(--serif);color:var(--tyr);display:flex;align-items:center}
.ywin{font-size:15px;color:var(--muted);max-width:62ch}
.hand{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.ystat{margin-top:12px;font-size:15px;color:var(--muted)}
.ystat b{color:var(--ink)}
.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}

/* ---------- level 3: the Senate (rows, no boxes) ---------- */
h3.side{font:800 18px/1 var(--serif);color:var(--tyr);margin:6px 0 10px;display:flex;align-items:center}
h3.side:not(:first-child){margin-top:24px}
#seats{display:flex;flex-direction:column;gap:4px}
.seat{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:0 12px;align-items:center;padding:8px 10px 8px 0;border-radius:6px;background:#E4E6E0;position:relative}
.seat .sw{align-self:stretch;background:var(--pc);border-radius:6px 0 0 6px}
.seat.me{background:var(--paper);box-shadow:0 6px 16px -10px #0006}
.seat.acting{box-shadow:inset 0 0 0 2px var(--bronze2)}
.seat.ex{opacity:.6}
.seat.pick{cursor:pointer;background:#F3E6C6;box-shadow:0 0 0 3px var(--bronze);animation:breathe 1.4s ease-in-out infinite}
@keyframes breathe{50%{box-shadow:0 0 0 3px var(--bronze2)}}
.sn{display:flex;align-items:center;gap:6px;font-weight:800;font-size:17px;color:var(--tyr)}
.sn .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sn svg{width:18px;height:18px;flex:none}.sn .crown{color:var(--bronze)}.sn .flag{color:var(--muted)}
.sf{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-top:2px}
.backs{display:flex;gap:2px}.backs i{width:8px;height:12px;border-radius:2px;background:var(--tyr2)}
.tier{font-size:13px;font-weight:700;color:var(--muted)}
.tier.t-Consul{color:var(--bronze)}.tier.t-Senator{color:var(--tyr)}.tier.t-Disgraced,.tier.t-Exile{color:var(--red)}
.mk{font-size:12px;padding:1px 7px;border-radius:999px;background:#0000000f;font-weight:700}
.mk.x{background:var(--red);color:#fff}.mk.g,.mk.ok{background:#d4e8d9;color:var(--good)}.mk.c{background:var(--bronze2);color:#3a2605}.mk.w{color:var(--muted)}
.num{font:800 30px/1 var(--serif);color:var(--tyr);text-align:right;font-variant-numeric:tabular-nums;min-width:1.4em}
.num small{display:block;font:700 11px/1.3 var(--sans);color:var(--muted)}
.peek{grid-column:2/4;margin-top:6px;font-size:13px}
.seat .tk{grid-column:2/4;margin-top:6px}

/* the war detail in the sidebar */
.wgrid{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start}
.tc{width:96px;aspect-ratio:5/7;border-radius:8px;background:var(--red);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:8px 6px;text-align:center;box-shadow:0 10px 20px -10px #000a}
.tc .ts{font-size:12px;opacity:.85}.tc .tt{font:800 13px/1.1 var(--serif)}
.tc .tv{font:800 42px/1 var(--serif)}
.tc .td{font-size:12px}
.tc.ls{background:#120507}.tc.ls .tv{color:var(--bronze2)}
.tc.back{background:var(--tyr2);justify-content:center}.tc.back svg{width:36px;height:36px;color:#fff8}
.tc.pop{animation:pop .45s both}
@keyframes pop{from{transform:scale(.7) rotate(-6deg);opacity:0}to{transform:none;opacity:1}}
.xtra{margin-top:6px;font-size:13px;color:var(--red);font-weight:700;max-width:96px;text-align:center}
.lbl{font-size:14px;font-weight:800;color:var(--tyr);display:flex;align-items:center;margin:0 0 5px}
.road{display:flex;align-items:center;gap:4px}
.road>svg{width:22px;height:24px;flex:none}
.road .camp{color:var(--red)}.road .cap{color:var(--tyr)}
.sp{flex:1;height:24px;border-radius:4px;background:var(--stone2);display:grid;place-items:center}
.sp.f{background:var(--red)}
.sp svg{width:16px;height:18px;color:#fff}
.sp.new{animation:burn 1s both}
@keyframes burn{0%{transform:scale(1.3);box-shadow:0 0 18px var(--red)}100%{transform:none;box-shadow:none}}
.rtxt{font-size:14px;color:var(--muted);margin-top:4px}
.pips{display:flex;gap:3px;flex-wrap:wrap}
.pip{width:24px;height:24px;border-radius:4px;display:grid;place-items:center;font:800 12px/1 var(--serif);background:var(--stone2);color:var(--muted)}
.pip.end{background:transparent;box-shadow:inset 0 0 0 2px var(--red)}
.pip.done{background:var(--tyr2);color:#fff}
.pip.now{background:var(--bronze);color:#fff}

/* ---------- cards (the physical cards keep their faces) ---------- */
.cd{--k:#888;--cw:84px;position:relative;width:var(--cw);aspect-ratio:5/7;flex:none;border-radius:8px;background:#fff;color:#2a1d14;box-shadow:0 1px 0 #0002,0 8px 16px -8px #0007;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:7px 4px 6px;text-align:center;user-select:none;transition:transform .15s,box-shadow .15s;overflow:hidden;border-top:5px solid var(--k)}
.cd .ct{font:800 11px/1 var(--serif);color:var(--k)}
.cd .cg{width:26px;height:26px;color:var(--k);flex:none}
.k-backstab .cg{transform:rotate(-35deg)}
.cd .cv{font:800 26px/1 var(--serif)}
.cd .cn{font:800 13px/1.05 var(--serif)}
.cd .cc{display:flex;align-items:center;gap:4px;font-weight:700;font-size:13px}
.cd .ce{font-size:12px;line-height:1.1;color:#5a4636}
.cd.tcol{border-bottom:6px solid var(--tc)}
.k-war{--k:#9a6a10}.k-security{--k:#36597a}.k-action{--k:#46173F}.k-backstab{--k:#9e1f1a}
.cd.k-ruin{--k:#e2503f;background:#2a2224;color:#f0e2d0}.cd.k-ruin .ce{color:#cbb7a6}
.cd[data-tip]{cursor:help}
.cd.sm{--cw:62px;padding:5px 3px}.cd.sm .ce,.cd.xs .ce,.cd.xs .ct{display:none}.cd.sm .cv{font-size:22px}.cd.sm .cg{width:22px;height:22px}
.cd.xs{--cw:50px;padding:5px 2px;justify-content:center;gap:2px}.cd.xs .cg{width:20px;height:20px}.cd.xs .cv{font-size:19px}.cd.xs .cn{font-size:11px}.cd.xs .cc{font-size:0}.cd.xs .cc i{width:9px;height:9px}
.cd .cc i{width:10px;height:10px;border-radius:50%;display:inline-block}
#prompt .tray .cd.pick{touch-action:none;cursor:grab}
.cd.ghost{transform:rotate(-4deg) scale(1.08);box-shadow:0 0 0 3px var(--bronze),0 20px 30px #0006;transition:none;cursor:grabbing}
.cd.sel{transition:none;transform:translateY(-8px);box-shadow:0 0 0 3px var(--bronze),0 12px 20px #0005}
.cd.glow{box-shadow:0 0 0 3px var(--bronze2),0 8px 16px -8px #0007}
.cd.pick{cursor:pointer;touch-action:manipulation;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
.tray,.optc,.seat{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.cd.flip{animation:flip .4s both}
@keyframes flip{from{transform:perspective(500px) rotateY(90deg);opacity:0}to{transform:none;opacity:1}}
.cd.gone{opacity:.35;filter:grayscale(1)}
.cd.gone::after{content:"Discarded";position:absolute;top:44%;left:-4px;right:-4px;background:#000c;color:var(--bronze2);font:800 10px/1.6 var(--serif);transform:rotate(-18deg)}
.chip{display:inline-flex;align-items:center;gap:5px;padding:1px 8px;margin:2px 3px 2px 0;border-radius:4px;background:#fff;color:#2a1d14;border-left:4px solid var(--k);font-size:14px;white-space:nowrap;font-weight:500}
.chip.k-ruin{background:#2a2224;color:#f0e2d0}
.chip[data-tip]{cursor:help}
.who{display:inline-flex;align-items:center;gap:6px;font-weight:800;white-space:nowrap;color:var(--tyr)}

/* ---------- level 4: the Chronicle and reference (plain text) ---------- */
#chron,details.ref{margin-top:28px;max-width:820px}
#chron>summary,details.ref summary{cursor:pointer;font:800 20px/1.1 var(--serif);color:var(--tyr);display:flex;align-items:center;padding:6px 0;list-style:none}
#chron>summary::before,details.ref summary::before{content:"+";width:22px;font-family:var(--sans);color:var(--muted)}
#chron[open]>summary::before,details.ref[open] summary::before{content:"−"}
#log details{border-top:1px solid var(--stone2);padding:2px 0}
#log summary{cursor:pointer;font-weight:800;font-size:16px;padding:8px 0;color:var(--ink)}
#log summary .res{font-weight:500}
.sec{display:grid;grid-template-columns:90px minmax(0,1fr);gap:4px 12px;padding:5px 0;font-size:15px}
.sec>.lab{font-size:13px;color:var(--muted);padding-top:3px;font-weight:700}
.sec .ln{margin:2px 0}
.sec .priv{background:#f1e3c4;border-radius:4px;padding:4px 8px}
.itab{border-collapse:collapse;width:100%;font-size:14px}
.itab td{padding:4px;border-top:1px solid var(--stone2);vertical-align:top}
.itab td.n{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.big{font:800 19px/1.25 var(--serif);margin:4px 0}
@media(max-width:480px){.sec{grid-template-columns:1fr}.sec>.lab{padding-top:0}}
details.ref li{margin:6px 0;font-size:15px}
.foot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:20px}

/* ---------- lobby & key ---------- */
#lobby,#keyscreen{max-width:720px;margin:10px auto}
label{display:flex;align-items:center;margin:16px 0 6px;font-weight:800;font-size:15px;color:var(--tyr)}
select,input[type=text],input[type=password]{width:100%;padding:11px 12px;border-radius:6px;border:0;background:#E9EBE5;font-size:17px;min-height:48px;box-shadow:inset 0 2px 0 #0000000d}
select:disabled{opacity:.6}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0 16px}
.err{color:var(--red);font-weight:700;margin-top:8px;min-height:1em}
.lp{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:6px;margin:5px 0;background:#ECEDE7;box-shadow:inset 6px 0 0 var(--pc)}
.lp .nm{font-weight:800;color:var(--tyr);padding-left:4px}
.lp .tag{font-size:12px;padding:1px 8px;border-radius:999px;background:var(--bronze2);color:#3a2605;font-weight:800}
.lp .away{font-size:13px;color:var(--red);font-weight:700}
.lp .lpx{margin-left:auto}
.lp.bot{background:transparent;box-shadow:inset 0 0 0 2px var(--stone2)}
.sum{margin-top:16px;font-size:16px;color:var(--muted)}
.sum b{color:var(--ink)}

/* refinements after the first screenshots */
#battle .lbl{color:#fff}
.btn.quiet:hover:not(:disabled){background:#0000000d}
.stage,#battle{scroll-margin-top:92px}
body.ingame header{display:none}
body.ingame #app{padding-top:16px}
.b-me .cdot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#7fd19a;margin-left:6px;vertical-align:middle}
body.offline .b-me .cdot{background:#ff8a78}
.pip{width:22px;height:22px}

/* icons take the colour of their surroundings (were black by default) */
svg{fill:currentColor}
.cd.k-ruin .cg,.cd.k-ruin .ct{color:#fff}
.tc .tv,.tc svg{color:inherit}

/* larger cards on desktop */
@media(min-width:861px){
  .cd{--cw:104px;padding:9px 5px 8px}
  .cd .cg{width:32px;height:32px}
  .cd .cv{font-size:32px}
  .cd .ct{font-size:12px}
  .cd .cn{font-size:15px}
  .cd .cc{font-size:14px}
  .cd .ce{font-size:13px}
  .cd.sm{--cw:76px}.cd.sm .cv{font-size:26px}.cd.sm .cg{width:26px;height:26px}
  .cd.xs{--cw:62px}.cd.xs .cg{width:24px;height:24px}.cd.xs .cv{font-size:22px}.cd.xs .cn{font-size:12px}
  .tray{min-height:150px}
}

/* your allegiance in the war bar, next to your Influence */
.b-al{margin-left:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:46px;height:40px;border-radius:5px;font:800 10px/1 var(--serif);cursor:help;flex:none}
.b-al svg{width:18px;height:18px}
.b-al.lo{background:#fff;color:var(--tyr)}
.b-al.tr{background:var(--red);color:#fff;box-shadow:inset 0 0 0 2px #ffffff55}
.b-al+.b-me{margin-left:0}
@media(max-width:520px){.b-al{width:40px;height:36px;font-size:9px}.b-al svg{width:15px;height:15px}}

/* single player */
.alt{margin:18px 0 0;padding-top:14px;border-top:1px solid var(--stone2);display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.textlink{color:var(--tyr);font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.textlink:hover{color:var(--tyr2)}
