/* The game screen (index_v5.html; founder approved direction B on 27 Oct after the reference study: Plague Inc.,
   Polytopia, Reigns, Clash Royale, Marvel Snap). Loaded after style.css and scoped to html.v5, so the classic page is
   untouched. Rules: the map is the page; one thin strip on top with at most four numbers; one ticker line; one
   TONIGHT button that opens the turn; one navigation (bottom bar on phones, left rail on desktop) that opens one sheet
   per list; no duplicated menus. Desktop is the phone screen widened: rail | map | tonight panel. */
html.v5{--road:34px;--proto:0px;--strip:56px;--tick:34px;--bar:66px}
html.v5.show-proto{--proto:44px}
html.v5 body{overflow:hidden}
html.v5 .ag-road{height:var(--road)}
html.v5 .game{max-width:none;margin:0;padding:0;gap:0;height:calc(100dvh - var(--road) - var(--proto));
  display:grid;grid-template-columns:76px minmax(0,1fr) 392px;grid-template-rows:var(--strip) var(--tick) minmax(0,1fr);
  grid-template-areas:"top top top" "tick tick tonight" "rail board tonight";align-items:stretch}
/* ---- the strip ---- */
html.v5 .topbar{grid-area:top;display:flex;align-items:center;gap:10px;padding:0 14px;background:linear-gradient(#170b08f2,#0d0705f2);border-bottom:1px solid #c9a24a44;flex-wrap:nowrap}
html.v5 .tb-brand{margin-right:auto}
html.v5 .tb-brand b{font-size:20px}html.v5 .tb-brand small{font-size:9.5px}html.v5 .tb-brand .seal{width:34px;height:34px}
html.v5 .tb-res{display:flex;gap:6px}
html.v5 .gem{display:flex;align-items:center;gap:6px;height:38px;padding:0 12px 0 5px;border-radius:19px;background:#0009;border:1px solid #c9a24a55;color:inherit;font:inherit;cursor:pointer}
html.v5 .gem:hover{border-color:var(--brass)}
html.v5 .gem img{width:28px;height:28px;object-fit:contain}
html.v5 .gem b{font-family:var(--f-head);font-size:16px;color:var(--brass-hi)}
html.v5 .gem span{font-size:10.5px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
html.v5 .tb-night.clockplate{padding:4px 18px;border-radius:24px}
/* the heading font has no tabular digits: a fixed box as wide as its widest time, so the bar does not shift every second */
html.v5 .tb-night .t{display:inline-block;min-width:4.45em;text-align:center}
html.v5 .tb-night .t{font-size:21px}
html.v5 .tb-menu{width:40px;height:40px;border-radius:50%;border:1px solid #c9a24a77;background:#0009;color:var(--brass-hi);font-size:20px;cursor:pointer}
/* ---- the ticker: one line ---- */
html.v5 .omenline{display:none}
html.v5 .ticker{grid-area:tick;display:flex;align-items:center;gap:10px;padding:0 16px;font-size:14px;color:var(--text-2);background:#1a0806d9;border-bottom:1px solid #b9c46a33;cursor:pointer;min-width:0}
html.v5 .ticker span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;animation:tkin .5s ease}
html.v5 .ticker b{color:#dfeab8}
html.v5 .ticker i{font-style:normal;font-size:11px;color:var(--muted)}
@keyframes tkin{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* ---- the board: the largest map that fits ---- */
html.v5 .board{grid-area:board;display:grid;place-items:center;min-height:0;min-width:0;padding:14px;container-type:size;overflow:hidden}
html.v5 .board .map{width:min(100cqw - 28px,calc((100cqh - 28px) * 1600 / 1109));max-width:none}
html.v5 .actionbar{display:none!important}
html.v5 .choosesub,html.v5 .citycount{display:none!important}
/* ---- one navigation: the left rail on desktop ---- */
html.v5 .tabbar{grid-area:rail;display:flex;flex-direction:column;gap:6px;padding:12px 6px;background:linear-gradient(#170b08,#0d0705);border-right:1px solid #c9a24a33}
html.v5 .tabbar button{position:relative;display:grid;justify-items:center;gap:3px;padding:8px 2px;border-radius:10px;border:1px solid transparent;background:none;color:inherit;font:inherit;cursor:pointer}
html.v5 .tabbar button:hover,html.v5 .tabbar button.on{background:#c9a24a1c;border-color:#c9a24a66}
html.v5 .tabbar img{width:38px;height:38px;object-fit:contain;filter:drop-shadow(0 3px 4px #000)}
html.v5 .tabbar span{font-family:var(--f-head);font-size:10px;letter-spacing:.03em;color:var(--text-2);line-height:1.1;text-align:center}
html.v5 .tb-b{position:absolute;top:4px;right:8px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#b8432f;color:#fff;font-size:10px;font-style:normal;font-weight:700;display:grid;place-items:center}
/* ---- tonight: the turn (desktop: always open on the right) ---- */
html.v5 .tonight-btn{display:none}
html.v5 .tonight{grid-area:tonight;display:flex;flex-direction:column;min-height:0;overflow:auto;background:linear-gradient(180deg,#1d0c09,#120706);border-left:1px solid #c9a24a55}
html.v5 .tn-head{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #c9a24a33;background:linear-gradient(#2a0b0a,#1a0806)}
html.v5 .tn-head div{flex:1;min-width:0}
html.v5 .tn-head small{display:block;font-family:var(--f-head);font-size:10.5px;letter-spacing:.22em;text-transform:uppercase;color:#e2836d}
html.v5 .tn-head b{display:block;font-family:var(--f-head);font-size:22px;color:var(--brass-hi);line-height:1.1}
html.v5 .tn-count{font-family:var(--f-head);font-weight:800;font-size:18px;color:var(--brass-hi);padding:4px 12px;border-radius:14px;border:1px solid #c9a24a77;background:#0008}
html.v5 .tn-count:empty{display:none}
html.v5 .tn-x{display:none;width:36px;height:36px;border-radius:50%;border:1px solid #c9a24a77;background:#1a0806;color:var(--brass-hi);font-size:20px}
html.v5 .tn-rows{display:grid;gap:6px;padding:12px 12px 4px}
html.v5 .tn-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border-radius:10px;background:#0006;border:1px solid #c9a24a2e;cursor:pointer;text-decoration:none;color:inherit}
html.v5 .tn-row:hover{border-color:#c9a24a88}
html.v5 .tn-row.todo{border-color:#d9b45f99;box-shadow:inset 3px 0 0 #b8432f,0 0 16px #d9b45f22}
html.v5 .tn-row.done{opacity:.72}
html.v5 .tn-row.sel{background:#c9a24a1a;border-color:var(--brass);opacity:1}
html.v5 .tn-ic{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 2px 4px #000)}
html.v5 .tn-ic.round{border-radius:50%;object-fit:cover;border:2px solid #c9a24a99}
html.v5 .tn-tx{min-width:0}
html.v5 .tn-tx b{display:block;font-size:15.5px;color:var(--text)}
html.v5 .tn-tx em{display:block;font-style:normal;font-size:12.5px;color:var(--muted);line-height:1.3}
html.v5 .tn-btn{font-family:var(--f-head);font-weight:700;font-size:12px;letter-spacing:.04em;padding:7px 12px;border-radius:14px;background:#b8432f;color:#fff2e0;border:1px solid #e2836d;box-shadow:0 0 10px #b8432f88;cursor:pointer;white-space:nowrap}
html.v5 .tn-ok{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800;color:#ffe0c8;background:radial-gradient(circle at 40% 35%,#c4523c,#7a1d12 70%);box-shadow:0 2px 6px #000}
html.v5 .tn-go{font-size:22px;color:var(--muted);padding:0 4px}
html.v5 .tn-detail{margin:6px 12px 12px;padding:14px;border-radius:10px;background:#0b0908cc;border:1px solid #c9a24a44;display:grid;gap:10px}
html.v5 .tn-detail[hidden]{display:none}
html.v5 .tn-foot{margin-top:auto;padding:10px 12px 14px;display:flex;justify-content:center}
html.v5 .tn-foot:empty{display:none}
html.v5 .tn-foot #pass{width:100%}
html.v5 .p-text{margin:0;color:var(--text-2);font-size:14px;line-height:1.5}
html.v5 .p-act{display:flex;gap:8px;flex-wrap:wrap}
html.v5 .p-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html.v5 .p-stats div{display:grid;text-align:center;padding:10px;border-radius:8px;background:#0006;border:1px solid #c9a24a44}
html.v5 .p-stats b{font-family:var(--f-head);font-size:22px;color:var(--brass-hi)}html.v5 .p-stats span{font-size:12px;color:var(--muted)}
html.v5 .tn-detail .hud{position:static;grid-area:auto;padding:0;gap:10px;background:none;border:0;border-image:none;box-shadow:none}
html.v5 .tn-detail .hud::before,html.v5 .tn-detail .hud::after{display:none}
html.v5 .tn-detail .cg-block{background:none;border:0;box-shadow:none;padding:0}
html.v5 .tn-detail .cg-head{display:none}
/* ---- sheets: one list each, no tabs inside ---- */
html.v5 .tabs[hidden]{display:none!important}
html.v5 .sheet{position:fixed;inset:0;z-index:56;display:grid;place-items:center;padding:16px;background:#000b}
html.v5 .sheet[hidden]{display:none}
html.v5 .sheetbox{position:relative;width:min(720px,100%);height:min(820px,calc(100dvh - 32px));display:grid;grid-template-rows:auto minmax(0,1fr);border-radius:14px;overflow:hidden;
  background:linear-gradient(#1d0c09,#120706);box-shadow:0 0 0 1px #c9a24a88,0 30px 80px #000}
html.v5 .sheetbox.small{height:auto;width:min(420px,100%)}
html.v5 .sh-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #c9a24a44;background:linear-gradient(#2a0b0a,#1a0806)}
html.v5 .sh-head b{font-family:var(--f-head);font-size:20px;color:var(--brass-hi)}
html.v5 .sh-x{width:36px;height:36px;border-radius:50%;border:1px solid #c9a24a77;background:#1a0806;color:var(--brass-hi);font-size:20px;cursor:pointer}
html.v5 .sheetbox .dock{position:static;max-height:none;height:100%;border:0;border-radius:0;background:none;grid-template-rows:minmax(0,1fr);overflow:hidden}
html.v5 .sheetbox .pane{overflow:auto;padding:14px 18px}
html.v5 .menu-in{display:grid;gap:8px;padding:14px}
html.v5 .menu-acct .tb-conn{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}
html.v5 .menu-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;background:#0006;border:1px solid #c9a24a33;color:inherit;text-decoration:none;font:inherit;cursor:pointer;text-align:left}
html.v5 .menu-row img{width:32px;height:32px;object-fit:contain}
html.v5 .topbar .tb-conn .site39{display:none}
html.v5 .citycard{max-width:280px}
/* ---- phones and small tablets: full-height map, the TONIGHT button, the bottom bar, sheets from below ---- */
@media (max-width:900px){
  html.v5{--road:26px;--strip:52px;--tick:32px}
  html.v5 .game{grid-template-columns:1fr;grid-template-rows:var(--strip) var(--tick) minmax(0,1fr) var(--bar);grid-template-areas:"top" "tick" "board" "rail"}
  html.v5 .topbar{padding:0 8px;gap:6px}
  html.v5 .tb-brand,html.v5 .topbar .tb-conn,html.v5 .tb-night #phaselabel{display:none}
  html.v5 .tb-res{flex:1;min-width:0;gap:4px}
  html.v5 .gem{height:34px;padding:0 8px 0 3px;gap:4px}html.v5 .gem img{width:24px;height:24px}html.v5 .gem b{font-size:14px}html.v5 .gem span{font-size:9px}
  html.v5 .tb-night.clockplate{display:grid;padding:2px 12px;gap:0;justify-items:center}
  html.v5 .tb-night .k{font-size:8.5px}html.v5 .tb-night .t{font-size:16px}
  html.v5 .tb-menu{width:36px;height:36px;font-size:17px;flex:none}
  html.v5 .ticker{font-size:12.5px;padding:0 10px}
  html.v5 .board{display:block;container-type:normal;padding:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
  html.v5 .board::-webkit-scrollbar{display:none}
  html.v5 .board::before{display:none}
  html.v5 .board .map{height:100%;width:auto;max-width:none;aspect-ratio:1600/1109;border-width:0;border-radius:0;box-shadow:none}
  html.v5 .tabbar{flex-direction:row;justify-content:space-around;padding:4px 4px calc(4px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid #c9a24a44;z-index:20}
  html.v5 .tabbar button{flex:1;padding:4px 2px}html.v5 .tabbar img{width:30px;height:30px}html.v5 .tabbar span{font-size:9.5px}
  html.v5 .tonight-btn{display:grid;position:fixed;z-index:25;left:50%;transform:translateX(-50%);bottom:calc(var(--bar) + 14px + env(safe-area-inset-bottom));
    min-width:240px;padding:9px 26px 10px;border-radius:30px;border:2px solid #d9b45f;background:linear-gradient(#5a1510,#2a0806);color:var(--brass-hi);cursor:pointer;
    box-shadow:0 0 0 3px #1a0705,0 10px 26px #000c;text-align:center}
  html.v5 .tonight-btn .tb1{font-family:var(--f-head);font-weight:800;font-size:17px;letter-spacing:.08em;text-transform:uppercase}
  html.v5 .tonight-btn .tb2{font-size:12.5px;color:#f3c9a8}
  html.v5 .tonight-btn.due{animation:tnglow 2.2s ease-in-out infinite}
  html.v5 .tonight-btn.clear{border-color:#6f8f4a;background:linear-gradient(#24301a,#141c0e)}
  @keyframes tnglow{50%{box-shadow:0 0 0 3px #1a0705,0 0 26px #d9b45faa,0 10px 26px #000c}}
  html.v5.tn-open .tonight-btn{display:none}
  html.v5 .tonight{position:fixed;left:0;right:0;bottom:calc(var(--bar) + env(safe-area-inset-bottom));z-index:24;max-height:calc(100dvh - var(--road) - var(--proto) - var(--strip) - var(--bar) - 20px);
    border-left:0;border-top:2px solid #d9b45f;border-radius:16px 16px 0 0;box-shadow:0 -16px 40px #000c;transform:translateY(110%);transition:transform .25s}
  html.v5.tn-open .tonight{transform:none}
  html.v5 .tn-x{display:grid;place-items:center}
  html.v5 .tn-head{position:sticky;top:0;z-index:1}
  html.v5 .sheet{place-items:end stretch;padding:0}
  html.v5 .sheetbox{width:100%;height:calc(100dvh - 40px);border-radius:16px 16px 0 0}
  html.v5 .sheetbox.small{height:auto;width:100%}
  html.v5 .citycard{max-width:240px}
}
@media (prefers-reduced-motion:reduce){html.v5 .tonight-btn.due,html.v5 .ticker span{animation:none}}
/* style.css has an old .tonight (grid, gap 26px, align start): reset it for the panel */
html.v5 .tonight{align-items:stretch;gap:0;grid-template-columns:none}
/* style.css gives .dock a named grid area; inside the sheet it is just the second row */
html.v5 .sheetbox .dock{grid-area:auto;grid-column:1;grid-row:2;width:100%}
html.v5 .tn-head{position:sticky;top:0;z-index:2}
/* a sheet is as tall as its list, up to the screen */
html.v5 .sheetbox{height:auto;max-height:min(860px,calc(100dvh - 32px))}
html.v5 .sheetbox .dock{overflow:auto}
@media (max-width:900px){html.v5 .sheetbox{height:auto;max-height:calc(100dvh - 40px)}}
/* ---- the Infection Map layer: red seals on the city medals + the panel told with the share-card doors ---- */
html.v5 .board{position:relative}
html.v5.cg-on .map .mapimg{filter:sepia(.3) brightness(.62) contrast(1.05)}
html.v5.cg-on .map .legend,html.v5.cg-on .map .omenrat,html.v5.cg-on .map .rate,html.v5.cg-on .map .crowdn,html.v5.cg-on .map .omen,html.v5.cg-on .map .tdocs{opacity:0}
html.v5.cg-on .map .tok.locked{opacity:.35}
html.v5 .cg-layer{position:absolute;inset:0;z-index:7;pointer-events:none}
html.v5 .cg-layer.cg-walled{background:#0b0908;padding-left:332px}
html.v5 .cg-back{position:absolute;top:14px;right:14px;z-index:2;pointer-events:auto;height:42px;font-size:13px}
html.v5 .cgp-back{position:sticky;top:auto;bottom:10px;right:auto;width:100%;box-sizing:border-box;margin-top:10px}
html.v5 .cgp-city{margin:-4px -8px 0}html.v5 .cgp-city svg{display:block;width:100%;height:auto;border-radius:8px}
html.v5 .cg-walled svg{display:block;width:100%;height:100%}
html.v5 .cgp-vig{display:grid;gap:6px}html.v5 .cgp-vig img{width:100%;height:auto;border-radius:6px}html.v5 .cgp-vig p{margin:0;font-size:12.5px;color:var(--text-2)}
html.v5 .cgd .cg-rem,html.v5 .cgd .cg-remin{display:block;margin:2px 0 0;font-size:12px}
html.v5 .cg-seal{position:absolute;transform:translate(14%,-118%);pointer-events:auto;cursor:pointer;width:74px;height:74px;border:0;padding:0;border-radius:50%;
  display:grid;place-content:center;justify-items:center;line-height:1;color:#fff0dc;
  background:radial-gradient(circle at 38% 32%,#d0563f 0,#9c2a1c 45%,#5e120b 100%);
  box-shadow:inset 0 0 0 3px #b8432f,inset 0 0 0 5px #6e1a10,inset 0 -6px 12px #3a0806,0 6px 14px #000c;animation:sealin .5s cubic-bezier(.2,1.4,.4,1) both}
html.v5 .cg-seal::before{content:"";position:absolute;inset:-5px;border-radius:50%;background:radial-gradient(circle,#b8432f33,#0000 70%);z-index:-1}
html.v5 .cs-n{font-family:var(--f-head);font-weight:800;font-size:26px;text-shadow:0 2px 0 #3a0806}
html.v5 .cs-l{font-family:var(--f-head);font-size:7.5px;letter-spacing:.12em;text-transform:uppercase;color:#f3c9a8;margin-top:1px}
html.v5 .cs-d{position:absolute;right:-10px;bottom:-4px;display:flex;align-items:center;gap:2px;padding:2px 6px 2px 3px;border-radius:10px;background:#140806;border:1px solid #d4583f;font-size:11px;font-weight:700;color:#ffd9c9}
html.v5 .cs-d i{width:14px;height:14px;background:url(assets/contagion/sigil_marked.png) center/contain no-repeat}
@keyframes sealin{from{transform:translate(14%,-118%) scale(.3);opacity:0}to{opacity:1}}
html.v5 .cg-node-card{position:absolute;z-index:12;transform:translate(-50%,calc(-100% - 70px));width:250px;display:grid;gap:4px;padding:10px 12px;border-radius:10px;background:#140806f7;border:1px solid #d9b45f;box-shadow:0 12px 28px #000c;font-size:12.5px;color:var(--text-2);pointer-events:auto}
html.v5 .cg-node-card b{font-family:var(--f-head);font-size:15px;color:var(--brass-hi)}
html.v5 .cg-node-card ol{margin:2px 0 0;padding-left:18px;display:grid;gap:2px}
html.v5 .cg-node-card li em{font-style:normal;color:var(--muted);margin-left:6px}
html.v5 .cg-panel{position:absolute;z-index:9;left:16px;top:16px;bottom:16px;width:300px;overflow:auto;padding:16px;border-radius:12px;background:linear-gradient(#1d0c09f7,#120706f7);border:1px solid #c9a24a88;box-shadow:0 14px 34px #000c;display:flex;flex-direction:column;gap:12px}
html.v5 .cgp-h{display:flex;align-items:flex-start;gap:10px}
html.v5 .cgp-h div{flex:1}
html.v5 .cg-panel small{display:block;font-family:var(--f-head);font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:#e2836d}
html.v5 .cgp-h b{display:block;font-family:var(--f-head);font-size:20px;color:var(--brass-hi);line-height:1.15}
html.v5 .cgp-x{width:40px;height:40px;border-radius:50%;border:1px solid #c9a24a88;background:#1a0806;color:var(--brass-hi);font-size:20px;cursor:pointer;flex:none}
html.v5 .cgp-lede{margin:0;font-size:13.5px;line-height:1.45;color:var(--text-2)}
html.v5 .cgp-t{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
html.v5 .cgp-t div{display:grid;text-align:center;padding:8px 2px;border-radius:8px;background:#0007;border:1px solid #c9a24a33}
html.v5 .cgp-t b{font-family:var(--f-head);font-size:22px;color:var(--brass-hi);line-height:1.1}html.v5 .cgp-t span{font-size:11px;color:var(--muted)}
html.v5 .cgp-me{display:grid;gap:8px}
html.v5 .cgp-go{box-sizing:border-box;width:100%;max-width:100%;min-height:44px;margin-top:2px;font-size:13px;letter-spacing:.03em;overflow:hidden}
html.v5 .cgp-doors{display:grid;gap:6px}
html.v5 .cgd{display:grid;grid-template-columns:76px 1fr;gap:10px;align-items:center;padding:6px;border-radius:8px;background:#0006;border:1px solid #c9a24a2e}
html.v5 .cgd-img{width:76px;height:46px;border-radius:5px;background:center 42%/170% auto no-repeat;box-shadow:inset 0 0 0 1px #0008}
html.v5 .cgd.saved .cgd-img{background-image:url(og/contagion/base_door_saved.jpg)}
html.v5 .cgd.infected .cgd-img{background-image:url(og/contagion/base_door_infected.jpg)}
html.v5 .cgd.outside .cgd-img{background-image:url(og/contagion/base_door_infected.jpg);filter:grayscale(1) brightness(.6)}
html.v5 .cgd.saved{border-color:#d9b45f88}html.v5 .cgd.infected{border-color:#d4583f88}
html.v5 .cgd-t b{display:block;font-size:14px;color:var(--text)}
html.v5 .cgd-t em{display:block;font-style:normal;font-size:12px;line-height:1.3;color:var(--muted)}
html.v5 .cgd.saved em{color:#e9cf8f}html.v5 .cgd.infected em{color:#f0a08c}
html.v5 .cgp-sum{margin:0;font-size:13px;color:var(--text-2)}html.v5 .cgp-sum b{color:var(--brass-hi)}
html.v5 .cgp-pz{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:3px;font-size:13px}
html.v5 .cgp-pz li{display:flex;gap:8px;align-items:baseline}html.v5 .cgp-pz span{font-family:var(--f-head);color:var(--brass);width:14px}html.v5 .cgp-pz em{margin-left:auto;font-style:normal;color:var(--muted);font-size:12px}
html.v5 .cgp-n{margin:auto 0 0;font-size:11.5px;color:var(--muted)}
@media (max-width:900px){
  html.v5 .cg-panel{position:fixed;left:0;right:0;top:auto;bottom:calc(var(--bar) + env(safe-area-inset-bottom));width:auto;max-height:52dvh;border-radius:16px 16px 0 0;border-width:2px 0 0;border-color:#d9b45f}
  html.v5 .cg-seal{width:58px;height:58px}html.v5 .cs-n{font-size:20px}html.v5 .cs-l{font-size:6.5px}
  html.v5.cg-on .tonight-btn{display:none}
  html.v5 .cg-panel{max-height:calc(100dvh - 150px - var(--bar))}
  html.v5 .gem{height:44px}html.v5 .tb-menu,html.v5 .tn-x,html.v5 .sh-x{width:44px;height:44px}html.v5 .tn-btn{padding:12px 14px}
}
@media (prefers-reduced-motion:reduce){html.v5 .cg-seal{animation:none}}
/* the door thumbnails show the whole door (door box in the art: x 357-857, y 92-516 of 1200x630) */
html.v5 .cgd{grid-template-columns:64px 1fr}
html.v5 .cgd-img{width:64px;height:50px;background-size:141.5px auto!important;background-position:-39.6px -10.9px!important;border-radius:4px}
html.v5 .p-link{display:grid;gap:8px;margin-top:6px;padding-top:12px;border-top:1px solid #c9a24a33}
html.v5 .p-link b{color:var(--brass-hi)}
/* the lines version is back (founder 27 Oct): arrows + houses on the map, the door panel beside it */
html.v5.cg-on .map .tok,html.v5.cg-on .map .streets-tok,html.v5.cg-on .map .truepin,html.v5.cg-on .map .leaders{opacity:.32;filter:saturate(.4)}
html.v5 .cg-arcs{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
html.v5 .cg-arcs path{fill:none;stroke:#d9b45f;stroke-width:2.2;opacity:.85;stroke-dasharray:7 5;animation:cgflow 1.6s linear infinite}
html.v5 .cg-arcs path.on{stroke:#ffe08a;stroke-width:3.5;opacity:1;filter:drop-shadow(0 0 4px #d9b45f)}
@keyframes cgflow{to{stroke-dashoffset:-24}}
html.v5 .cg-pin{position:absolute;transform:translate(-50%,-50%);display:grid;justify-items:center;pointer-events:auto;cursor:pointer}
html.v5 .cg-pin img{width:30px;height:30px;border-radius:50%;background:#1a0c08;border:2px solid #7d5b22;box-shadow:0 3px 8px #000}
html.v5 .cg-pin.root img{border-color:#b8432f;width:36px;height:36px}
html.v5 .cg-pin.mine img{border-color:#ffe08a;box-shadow:0 0 0 2px #1a0705,0 0 14px #d9b45f}
html.v5 .cg-pin.me img{width:42px;height:42px;border-width:3px}
html.v5 .cg-pin b{margin-top:1px;font-size:11px;font-weight:700;color:#fff2d6;background:#140806d9;border-radius:4px;padding:0 4px;white-space:nowrap}
html.v5 .cg-pin.mine b{color:#ffe08a}
html.v5 .cg-doors{position:absolute;left:calc(50% + 14px);top:-6px;display:flex;gap:1px;align-items:center}
html.v5 .cg-doors i{display:inline-block;width:14px;height:14px;background:center/contain no-repeat}
html.v5 .cg-doors i.d{background-image:url(assets/contagion/sigil_marked.png)}html.v5 .cg-doors i.o{background-image:url(assets/contagion/sigil_dim.png)}
html.v5 .cg-doors em{font-style:normal;font-size:10px;color:#f3c9a8;margin-left:2px}
html.v5 .cg-soul{position:absolute;transform:translate(-50%,-50%);display:grid;justify-items:center;pointer-events:auto}
html.v5 .cg-soul img{width:24px;height:24px}
html.v5 .cg-soul b{font-size:10.5px;color:#ffe08a;background:#140806e6;border-radius:3px;padding:0 4px;white-space:nowrap}
html.v5 .cg-soul em{font-style:normal;font-size:9.5px;color:#f3c9a8;background:#140806cc;border-radius:3px;padding:0 3px;white-space:nowrap}
html.v5 .cg-node-card{transform:translate(-50%,calc(-100% - 28px))}
@media (max-width:900px){html.v5 .cg-pin b{font-size:9.5px}html.v5 .cg-pin img{width:24px;height:24px}html.v5 .cg-pin.me img{width:32px;height:32px}}
