/* The play screen: the map, the hint line under it, the three cards on the right, the tray, and the
   floating cards for giving orders. Loaded after tabletop.css and app.css, and overrides them.

   The rule this file keeps: nothing moves under the mouse. Every card has a fixed layout, and a line
   that only sometimes has something to say (a warning, a "left after orders" figure) keeps its place
   when it is empty. All sizes are in the table's own units: the table is 900 high (ui.js). */

/* ---------- where things stand */
.table-play .boardwrap{top:68px;right:364px;bottom:296px}
.table-play .col{top:68px;right:12px;left:auto;width:340px;height:820px;gap:10px}
.table-play .tray{right:364px}
.table-play .selcard{position:absolute;left:12px;right:364px;top:608px;bottom:auto;height:34px;min-height:0;padding:0 8px 0 12px;gap:12px;white-space:nowrap;display:flex;align-items:center;overflow:hidden;z-index:2}

/* the hint line: a title that never squeezes the words, the words, the key to the marks, Back */
.selcard b{flex:none;max-width:290px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.selcard .hint-sub{flex:1 1 0;min-width:0;white-space:normal;font:12.5px/1.2 var(--text);color:var(--ink);max-height:30px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.selcard .k{flex:none;margin-left:0;white-space:nowrap}
.selcard .k i:first-child{margin-left:0}
.selcard .mini{flex:none}

/* the map filling the screen: the panels fold to a slim tab on the right and a slim bar below */
.table-play.bigmap .boardwrap{right:58px;bottom:104px}
.table-play.bigmap .selcard{right:58px;top:800px}
.table-play.bigmap .col{width:34px}
.table-play.bigmap .tray{top:844px;height:44px;right:58px;padding:5px 6px}
.sidetab,.traytab{appearance:none;border:0;cursor:pointer;background:var(--card) var(--grain);color:var(--ink);border-radius:5px;box-shadow:0 0 0 1px rgba(60,40,20,.55),0 2px 0 #bdaa84,0 3px 0 rgba(60,40,20,.6),0 6px 10px rgba(0,0,0,.4)}
.sidetab:hover,.traytab:hover{background-color:#fffaf0}
.sidetab{width:34px;height:100%;display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px 0}
.sidetab b{font:700 16px/1 var(--slab)}
.sidetab span{writing-mode:vertical-rl;font:600 12px/1 var(--cond);letter-spacing:.14em;white-space:nowrap}
.traytab{width:100%;height:100%;display:flex;align-items:center;gap:14px;padding:0 14px;text-align:left}
.traytab b{font:700 14px/1 var(--slab);letter-spacing:.12em}
.traytab span{font:13px/1 var(--text);color:var(--ink2);flex:1}
.traytab i{font:600 11px/1 var(--cond);letter-spacing:.1em;text-transform:uppercase;border:1.2px solid var(--ink2);border-radius:4px;padding:6px 9px 5px}

/* the tools on the map */
.maptools{right:18px;top:18px}
.find input{width:132px}
.tool:focus-visible,.mini:focus-visible,.btn:focus-visible,.sidetab:focus-visible,.traytab:focus-visible,button.action:focus-visible,button.dir:focus-visible{outline:2.5px solid var(--ink);outline-offset:2px}

/* ---------- the map: marks while a target is being chosen */
svg.map .gs-count{display:none}                 /* the count is drawn by board.js, so that a single army shows its 1 */
svg.map .pc{transition:opacity .15s}
svg.map .pc.dimmed{opacity:.34}
svg.map .ord.dimmed{opacity:.3}
svg.map .march{animation:march .8s linear infinite}
@keyframes march{to{stroke-dashoffset:var(--march,-18)}}
svg.map .target .glow{animation:glow 1.3s ease-in-out infinite}
@keyframes glow{50%{opacity:.26}}
@media (prefers-reduced-motion:reduce){svg.map .march,svg.map .target .glow{animation:none}}

/* ---------- messages: over the hint line, never on the map */
.playing .toast{left:12px;right:364px;top:608px;bottom:auto;transform:none;max-width:none;min-height:34px;padding:5px 10px 5px 12px;display:flex;align-items:center;gap:12px;font:13px/1.25 var(--text);border-radius:3px}
.playing.play-big .toast{right:58px;top:800px}
.playing .toast .tmsg{flex:1;min-width:0}
.playing .toast .mini{flex:none;font-size:11.5px;padding:6px 9px 5px}

/* ---------- your bloc card */
.col .card{flex:none}
.bloc{padding:0 0 8px}
.bloc-h{padding:7px 12px;height:50px}
.credits{height:50px;padding:0 12px;gap:8px;border-bottom:1.2px solid var(--line)}
.credits>b{font:700 28px/1 var(--slab);flex:none;min-width:92px}
.credits .cr{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;font:inherit;letter-spacing:0;text-transform:none}
.credits .cr i{display:block;font:italic 11.5px/1.15 var(--text);color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.credits .cr i b{font:700 12px/1 var(--slab);font-style:normal;color:var(--ink)}
.credits .cr i.neg,.credits .cr i.neg b{color:var(--warn)}
.res-h{grid-template-columns:1fr 40px 62px;margin:7px 12px 2px}
.res{grid-template-columns:20px 76px 1fr 36px 58px;grid-template-rows:19px 14px;gap:0 4px;padding:3px 6px 2px;height:39px;align-items:center}
.res .rs{font-size:17px}
.res .rx{font:700 13.5px/1 var(--slab);text-align:right;color:var(--ink2)}
.res .rx:before{content:"≈ ";font-weight:400}
.res .rf{grid-column:2/6;font:italic 11px/14px var(--text);color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.res .rf b{font-weight:700;color:var(--ink)}
.res.short .rx,.res.short .rf,.res.short .rf b{color:var(--warn)}
.res.over{background:var(--amberbg);border-radius:4px;border-top-color:transparent;box-shadow:inset 0 0 0 1.4px var(--amber)}
.res.over+.res{border-top-color:transparent}
.res.over .rf,.res.over .rf b{color:var(--amber)}
.warnslot{margin:5px 12px 0;height:26px;padding:0 8px 0 28px;border:1.4px solid var(--line);border-radius:4px;display:flex;align-items:center;gap:6px;font:12px/1 var(--text);position:relative;white-space:nowrap}
.warnslot span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.warnslot .calm{color:var(--ink3);font-style:italic}
.warnslot:before{content:"✓";position:absolute;left:7px;top:4px;width:15px;height:15px;border-radius:50%;background:var(--well);color:var(--ink3);font:700 11px/15px var(--slab);text-align:center}
.warnslot.on{border-color:var(--warn);background:var(--warnbg);color:#5a1418;cursor:help}
.warnslot.on:before{content:"!";background:var(--warn);color:#fff;font-size:12px}
.warnslot.on b{color:var(--warn)}
.warnslot em{flex:none;font:600 10.5px/1 var(--cond);letter-spacing:.06em;text-transform:uppercase;font-style:normal;color:var(--warn)}
.arsenal{margin:7px 12px 0;white-space:nowrap}
.arsenal.nuke{height:22px}
.arsenal .mini{margin-left:0}

/* ---------- the market card: every row on one grid */
.market{padding:9px 12px 6px}
.market h3{padding-bottom:6px}
.mk{grid-template-columns:18px minmax(0,1fr) 46px 54px 36px 34px 34px;gap:0 4px;height:41px;padding:0;align-items:center}
.mk .mi{display:flex;justify-content:center}
.mk .mn{display:flex;flex-direction:column;gap:2px;min-width:0;white-space:nowrap}
.mk .mn b{font:600 14px/1 var(--cond);letter-spacing:.02em}
.mk .mn i{font:italic 10.5px/1 var(--text);color:var(--ink2);grid-column:auto}
.mk.floor .mn i{color:var(--warn);font-weight:700}
.mk .ms{display:block;width:46px;height:30px}
.mk .ms .spark{width:46px;height:30px}
.mk .mp{font:700 15px/26px var(--slab);height:29px;width:54px;padding:0;white-space:nowrap;box-shadow:0 1.5px 0 var(--ink);font-variant-numeric:tabular-nums}
.mk .md{font:700 10.5px/1 var(--cond);letter-spacing:.02em;gap:3px;white-space:nowrap;font-variant-numeric:tabular-nums}
.mk .md em{font-size:11px;line-height:1}
.mk.flat .md,.mk.floor .md{font-size:10.5px}
.mk .mb{width:34px;height:26px;padding:0;text-align:center;font-size:10.5px}
.mk-f{height:21px;padding-top:5px;gap:8px;justify-content:space-between;overflow:hidden}
.mk-f .fine{margin-left:0}

/* ---------- scores */
#scorescard{flex:1 1 0;min-height:0;overflow:hidden;overflow-y:auto;overscroll-behavior:contain;padding:8px 12px 3px}
/* The scores always show every bloc's row (six): when the bloc card above grows (a hunger line, "store full" lines) it is
   the bloc card that scrolls, not the scores that lose their last row (agent play, Nov 2026). */
.col > #scorescard{flex:1 0 auto}
.col > #bloccard{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
#scorescard .sc{grid-template-columns:12px 18px 1fr 70px 38px;padding:2px 4px;height:25px}

/* ---------- the tray: directive tiles (ways in to their orders), the pad, handing in */
.dirs{width:204px}
.dirgrid{grid-template-columns:1fr;gap:6px;margin-top:8px}
button.dir{height:43px;padding:5px 9px 4px;display:grid;grid-template-columns:1fr auto;grid-template-rows:17px 15px;column-gap:6px;align-items:center;cursor:pointer;background:var(--card) var(--grain);color:var(--ink);box-shadow:0 0 0 1px rgba(30,20,10,.6),0 2px 0 #bdaa84,0 3px 0 rgba(30,20,10,.6),0 5px 6px rgba(0,0,0,.4)}
button.dir:hover{filter:none;background-color:#fffaf0}
.dir b{font-size:13.5px;margin:0;white-space:nowrap}
.dir span{grid-column:1/3;font-size:11px;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink2)}
.dir em{position:static;justify-self:end;font:700 9.5px/1 var(--slab);letter-spacing:.1em;padding:3px 5px 2px;border-radius:2px;white-space:nowrap}
.dir em.free{background:none;color:var(--ink2);box-shadow:inset 0 0 0 1.1px var(--ink3)}
.dir em.swap{background:var(--amberbg);color:var(--amber);box-shadow:inset 0 0 0 1.1px var(--amber)}
.dir em.used{background:var(--ink);color:var(--you)}
.dir.on{transform:none;background-color:var(--youlight);box-shadow:0 0 0 2px var(--ink),0 2px 0 1px #bdaa84,0 3px 0 2px rgba(30,20,10,.7),0 5px 6px rgba(0,0,0,.4)}
.dir.open{box-shadow:0 0 0 2px var(--ink),0 0 0 5px var(--you),0 5px 6px rgba(0,0,0,.4)}
.pad li.risk{background:var(--amberbg);box-shadow:inset 4px 0 0 var(--amber)}
.pad li.risk:hover,.pad li.risk.hot{background:#f0d99a}
.rtag{font:700 9.5px/1 var(--slab);letter-spacing:.1em;color:var(--amber);border:1.4px solid var(--amber);border-radius:3px;padding:3px 4px 2px;flex:none}
.pad-n b.a{color:var(--amber)}
.pad-f{display:grid;grid-template-columns:minmax(150px,1.5fr) repeat(5,minmax(0,1fr));grid-template-rows:25px 25px;gap:0;padding:2px 10px 3px 14px;align-items:center}
.pad-f .pl{font:700 10px/1 var(--cond);letter-spacing:.08em;color:var(--ink);white-space:nowrap;overflow:hidden;cursor:help}
.pad-f .pl i{display:block;font:italic 10px/1.25 var(--text);letter-spacing:0;color:var(--ink2);overflow:hidden;text-overflow:ellipsis}
.pad-f .pv{display:flex;align-items:center;gap:4px;font:600 12px/1 var(--cond);color:var(--ink2);white-space:nowrap;padding-left:6px;border-left:1.1px solid var(--line);height:19px;font-variant-numeric:tabular-nums}
.pad-f .pv b{font:700 12.5px/1 var(--slab);color:var(--ink)}
.pad-f .pv.neg b{color:var(--warn)}
.pad-f .pv.early b{color:#9A6A00}
.pad-f .pl.est,.pad-f .pl.est~.pv{border-top:1.1px dashed var(--line);height:25px}
.pad-f .pl.est~.pv b{color:var(--ink2)}
.pad-f .pl.est~.pv b:before{content:"≈ ";font-weight:400}
.pad-f .pl.est~.pv.neg b{color:var(--warn)}
.handin.done{font-size:16px;letter-spacing:.08em}
.handin:focus-visible{outline:3px solid #fff;outline-offset:2px}

/* ---------- the floating cards for giving orders */
.pop{width:344px;padding:9px 12px 10px;max-height:424px}
.pop-h{padding-bottom:5px;margin-bottom:6px;min-height:27px}
.pop-h h3{font-size:14px}
.pop-h h3 i{font-size:10.5px}
.facts2{margin-bottom:6px;font-size:11.5px;line-height:1.3}
.facts2 span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* a menu row: the name, what it costs, its directive; one line of words under it */
.actions{gap:4px}
button.action{display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:1px 8px;padding:5px 8px 4px;min-height:40px}
button.action b{flex:1 1 auto;font-size:13px;display:block;white-space:nowrap}
button.action .acost{flex:none;font:600 11px/1.2 var(--cond);letter-spacing:.03em;color:var(--ink2);white-space:nowrap}
button.action .dtag{margin-left:0;flex:none;align-self:center}
button.action span,button.action em{flex:1 1 100%;font-size:11.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
button.action:disabled .acost{color:var(--ink3)}
/* the amount card: sentence, choices, one line kept for a caution, cost, what is left, buttons on the bottom edge */
.pop .sentence{font-size:13px;line-height:17px;min-height:34px;margin-bottom:4px}
.pop-b:empty{display:none}
.pop-b .row{margin:5px 0;gap:5px;min-height:26px}
.pop-b .row.count{min-height:36px}
.stepper{margin-right:2px}
.stepper button{width:30px;height:30px}
.stepper input.num{appearance:none;border:0;background:none;width:46px;height:30px;padding:0;text-align:center;font:700 21px/30px var(--slab);color:var(--ink);outline:0;border-left:1.2px solid var(--line);border-right:1.2px solid var(--line)}
.stepper input.num:focus{background:#fff;box-shadow:inset 0 0 0 2px var(--you)}
.hintline{font:italic 11.5px/15px var(--text);color:var(--ink2);height:30px;overflow:hidden;margin:2px 0 0}
.hintline b{font-style:normal;color:var(--ink)}
.pop .alert{height:36px;margin:5px 0 0;padding:3px 8px;border-radius:4px;border:1.3px solid transparent;font:11.5px/14.5px var(--text);color:#5d3c00;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pop .alert.on{border-color:var(--amber);background:var(--amberbg);cursor:help}
.pop .alert b{color:var(--amber)}
.pop .alert i{font-style:italic;color:var(--ink2)}
.result{margin-top:6px;padding-top:6px;gap:5px}
.result .rline{display:flex;align-items:center;gap:4px;flex-wrap:wrap;min-height:22px}
.result .rline .q{margin-right:4px}
.result .rline .q i{text-transform:none;letter-spacing:0;font-style:italic}
.result .rline .chips{display:flex;gap:4px;flex:1 1 100%;flex-wrap:nowrap}
.result .tot{margin:0;padding:3px 6px 2px;font-variant-numeric:tabular-nums}
.result .tot.plus{border-style:dashed}
.result .arrow{font:italic 11px/1 var(--text);color:var(--ink2);margin:0 2px}
.swapbox{margin-top:5px;padding:5px 7px 6px;gap:4px;font-size:12px}
.swapbox button.action{min-height:0;padding:5px 8px 4px}
.pop-f{margin-top:9px;align-items:center;flex-wrap:nowrap;gap:7px}
.pop-f .morebtn{margin-right:auto;padding:6px 8px 5px}
.pop-f .del{margin-right:0}
.pop-f .btn{padding:8px 11px 7px}
.pop-f .btn.big{padding:11px 18px 10px;font-size:14px}
.morepanel{position:absolute;left:0;right:0;top:40px;bottom:50px;background:var(--card) var(--grain);border-top:1.5px solid var(--ink);border-bottom:1.5px solid var(--ink);display:flex;flex-direction:column;z-index:1}
.more-h{display:flex;align-items:center;justify-content:space-between;padding:5px 8px 3px 12px;font:700 11.5px/1 var(--slab);letter-spacing:.1em;text-transform:uppercase}
.more-b{flex:1;overflow-y:auto;padding:0 12px 8px;font-size:12px;line-height:1.35;color:var(--ink2)}
.more-b p{margin:5px 0}
.more-b b{color:var(--ink)}
.more-b .dnote{font-style:italic}
.more-b .versus{margin:6px 0 4px}
.pop.check{width:380px}

/* ---------- what the server's own answers added */
/* a tactic's description is the server's sentence, which can run to three lines; the rest is in the hover */
.hintline.tsays{height:45px;cursor:help;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
/* modules.artillery: a tactic the bloc may not use yet stays in the row, greyed with a padlock; the line under says why (card.js lockedTactics) */
.mini.lock{display:inline-flex;align-items:center;gap:3px;opacity:.6;border-style:dashed;box-shadow:none;background:transparent}
.hintline.tlock{height:auto;min-height:30px;display:flex;align-items:center;gap:6px;font-style:normal;color:var(--ink)}
.hintline.tlock>span{flex:1 1 auto;min-width:0}
.hintline.tlock .ic{flex:none}
.hintline.tlock .mini.go{flex:none;margin-left:auto}
/* the scores: each player's face (a person's initial, a computer's invented leader) before the names */
#scorescard .sc{grid-template-columns:12px 18px 1fr 52px 38px}
#scorescard .sn{display:flex;align-items:center;gap:5px;min-width:0}
#scorescard .sn .lb-av{flex:none}
#scorescard .sn .snn{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- what the second round of playtesting asked for */
/* the pad's header: the count stands after the title and the tools are pinned right, so Undo and Redo never move */
.pad-h{justify-content:flex-start;gap:12px}
.pad-h h3{flex:none}
.pad-n{flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pad-tools{flex:none;margin-left:auto;margin-right:0}
/* the plan is short of money (forecast.js canAdd lets it go short while it is written): how much, in red, as money left */
.pad-f .padshort{grid-column:1/-1;justify-self:stretch;display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;margin:2px 0 1px;border:1.3px solid var(--warn);background:var(--warn);color:#fff;font:700 10.5px/1 var(--cond);letter-spacing:.08em;padding:3px 8px 2px;border-radius:4px;height:22px}
.pad-f .padshort b{flex:none;font:700 12.5px/1 var(--slab);letter-spacing:0;color:#fff}
.pad-f .pv.long b{font-size:10.5px;letter-spacing:-.03em}
.traytab em{font-style:normal}
.traytab em.neg{color:var(--warn);font-weight:700}
/* orders out of sight below (or above) the pad's list: a shadow on that edge, and how many there are */
.pad:before,.pad:after{content:"";position:absolute;left:0;right:0;height:14px;pointer-events:none;opacity:0;transition:opacity .12s;z-index:1}
.pad:before{top:var(--pad-ol-top,44px);background:linear-gradient(rgba(40,25,10,.26),rgba(40,25,10,0))}
.pad:after{bottom:var(--pad-f,57px);background:linear-gradient(rgba(40,25,10,0),rgba(40,25,10,.34))}
.pad.more-above:before,.pad.more-below:after{opacity:1}
.morebelow{position:absolute;right:16px;bottom:calc(var(--pad-f,57px) + 4px);z-index:2;appearance:none;cursor:pointer;border:1.3px solid var(--ink);border-radius:10px;background:var(--ink);color:var(--card);font:700 10.5px/1 var(--cond);letter-spacing:.08em;text-transform:uppercase;padding:4px 9px 3px;box-shadow:0 2px 4px rgba(0,0,0,.35)}
.morebelow[hidden]{display:none}
.morebelow:hover{background:#000}
/* the warning strip on the bloc card is a button: it opens the whole list */
button.warnslot{appearance:none;width:calc(100% - 24px);text-align:left;cursor:pointer;font:12px/1 var(--text)}
button.warnslot.on{cursor:pointer}
button.warnslot.on:hover{background:#f3d2c8}
button.warnslot em{border-bottom:1px solid currentColor;padding-bottom:1px}
button.warnslot:focus-visible{outline:2.5px solid var(--ink);outline-offset:2px}
.warnlist li{margin:8px 0}
.warnlist b{color:var(--warn)}
/* an order card: why a typed number was brought down, the quiet line in the caution slot, the long warning */
.pop:focus{outline:0}
.pop-b .row .why{flex:1 1 100%;min-height:0;font:italic 700 11.5px/1.2 var(--text);color:var(--amber);display:none}
.pop-b .row .why.on{display:block;margin-top:-1px}
.stepper button.atmax{opacity:.3}
.mini.amber{color:var(--amber);border-color:var(--amber)}
.pop .alert.calm{color:var(--ink2);font-style:italic;padding-left:0}
.pop .alert.full{height:auto;display:block;-webkit-line-clamp:unset;overflow:visible}
.pop.check .checks i{color:var(--ink2)}
.pop.check{max-height:none}
/* a territory with nobody in it shows a 0 where its armies would stand */
svg.map .cn.zero{fill:var(--warn)}
/* A card that changes an order has four buttons in its bottom row: they must fit inside the card. */
.pop-f:has(.del){gap:5px;flex-wrap:wrap;justify-content:flex-end;row-gap:6px}
.pop-f:has(.del) .btn{padding:8px 8px 7px}
.pop-f:has(.del) .btn.big{padding:9px 10px 8px;font-size:13px}
.pop-f:has(.del) .morebtn{padding:6px 6px 5px}

/* ---------- a window that is tall for its width (1024x700): the table grows downwards to fill it
   (play/shell.js fitHeight sets --play-h, never under 900), the map takes the extra and everything below
   the map hangs from the bottom edge, so there is no empty band under the tray. */
.playing #table,.playing #stage{height:var(--play-h,900px)}
.playing #stage{background-size:100% var(--play-h,900px)}
.table-play{height:var(--play-h,900px)}
.table-play .col{height:auto;bottom:12px}
.table-play .tray{top:auto;bottom:12px}
.table-play .selcard{top:auto;bottom:258px}
.table-play.bigmap .selcard{top:auto;bottom:66px}
.table-play.bigmap .tray{top:auto;bottom:12px}
.playing .toast{top:auto;bottom:258px}
.playing.play-big .toast{top:auto;bottom:66px}

/* ---------- the doomsday clock is nearly out: a steady red band between the header and the map */
.doomband{position:absolute;left:12px;right:364px;top:66px;height:28px;z-index:2;display:flex;align-items:center;justify-content:center;gap:6px;background:#8E1B12;color:#fff;border-radius:4px;font:13.5px/1 var(--text);box-shadow:0 0 0 1.5px var(--ink),0 3px 6px rgba(0,0,0,.45)}
.doomband[hidden]{display:none}
.doomband b{font:700 13.5px/1 var(--slab);letter-spacing:.06em;color:#FFE9A8;margin-right:4px}
.table-play.doom .boardwrap{top:100px}
.table-play.bigmap .doomband{right:58px}

/* ---------- small things */
.term{text-decoration:underline dotted;text-underline-offset:2px;cursor:help}
u.term{font-style:inherit}
.credits.neg>b{color:var(--warn)}
.result .rline.costs-score{flex-wrap:nowrap;font:11.5px/1.25 var(--text);color:var(--ink2);cursor:help}
.result .rline.costs-score .v{color:var(--warn);font-weight:700}
/* modules.territory_character: the land's signs and about how many people a battle there would cost, on one line. */
.result .rline.costs-people{flex-wrap:nowrap;font:11.5px/1.25 var(--text);color:var(--ink2);cursor:help}
.result .rline.costs-people .cs{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.result .rline.costs-people .cs svg{display:block}
.pop .alert .morealerts{display:block;margin-top:2px;font-size:11px}
.pop .alert button.morealerts{appearance:none;border:0;background:none;padding:2px 0 0;font:italic 11px/1.2 var(--text);color:var(--ink2);text-decoration:underline dotted;cursor:pointer}
/* why an entry of the menu cannot be chosen is always printed whole, on as many lines as it needs */
button.action em{white-space:normal;overflow:visible;text-overflow:clip}
/* an order on the pad is always written out whole: a long one takes a second line */
.pad li .os{white-space:normal;line-height:1.25;padding:3px 0;overflow:visible}
/* a card is as tall as what it has to say: a warning is printed whole, never cut off (play/card.js keeps the card on the table) */
.pop{max-height:none}
/* the last round: the tag sits across the button's top edge like a stamp, so the three lines inside keep their room */
.handin{position:relative}
.handin .lastround{position:absolute;top:-9px;right:12px;background:var(--ink);box-shadow:0 0 0 2px var(--ink)}
/* the guide's ring round the market card and round the hand-in button carries no tag: there the tag
   (which stands above the ring) would print over the card above, and the guide card beside the ring,
   headed "The market" or "Hand in", already says what is ringed */
.guide-ring:has(+ .coach[data-step="first-4"]) span,.guide-ring:has(+ .coach[data-step="first-5"]) span{display:none}

/* ---------- the fourth round of fixes */
/* the facts at the top of a menu card (a territory, a sea, the nuclear menu, a rival) are printed whole, on as many lines as they need */
.facts2 span{white-space:normal;overflow:visible;text-overflow:clip}
/* orders that have scrolled off the top of the pad: the same cue as "more below", on the top edge */
.morebelow.moreabove{bottom:auto;top:calc(var(--pad-ol-top,44px) + 3px);right:auto;left:50%;transform:translateX(-50%)}
/* the LAST ROUND tag on the hand-in button stands on the button's top edge, clear of the words "HAND IN ORDERS" under it */
.handin .lastround{top:-14px}
.mk-f .mini.same{padding:2px 7px 1px;font-size:10.5px;line-height:14px}

/* ---------- the sweep for text that runs over (2026-11) */
/* The Hand in button always shows whole: when the names of the people still writing are long (or
   there are many people), the list above it gives way and scrolls, never the button. */
.hand .status{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.hand .handin{flex:1 0 auto}
/* The chips that stand on the button's edges ("N to answer", "! N conflicts", LAST ROUND: half outside, half inside)
   never cover its words: the button always keeps a band at its top and bottom as deep as the chip's inner half, chip or
   no chip, so its words sit clear of them even when they fill it (the names still writing under the count) and nothing
   moves when a chip comes or goes. A finger's chips are a size up (clash.css), and so is the band. */
.hand .handin{padding-top:12px;padding-bottom:12px}
html.touch .hand .handin{padding-top:14px;padding-bottom:14px}
.hand .st{padding:5px 0}
/* The pad's heading: the count of orders is never cut. "EUROPE · ROUND 1" beside the title gives way first. */
.pad-h h3{flex:0 1000 auto;min-width:0}
.pad-h h3 i{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pad-n{flex:0 1 auto}
/* "Same trades as last round" fits the market card's foot line */
.mk-f .mini.same{padding-top:1px;padding-bottom:0}
/* In the Menu (a sheet, not a card on the map) an entry's explanation is printed whole */
.modal-card button.action span,.modal-card button.action em{white-space:normal;overflow:visible;text-overflow:clip}
/* The header in a long game (16 round boxes) with the GAME OVER tab, or with a long game name: the
   doomsday clock's words used to run on under Help and Menu. Now the game's name and the clock's
   words give way (cut with "…", the name has a tooltip), and the round boxes of a long game are narrower. */
.topbar .wordmark{flex:none;max-width:190px}
.topbar .wordmark i{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25;margin-top:-2px}
.topbar .tb-round,.topbar .tb-phase{flex:none}
.topbar .tb-clock{overflow:hidden}
.topbar .tb-clock>div{min-width:0}
.topbar .tb-l2,.topbar .tb-c{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar .tb-l2{line-height:1.25;margin-bottom:1px}
.topbar .tb-c{line-height:1.15}
.track:has(.rc:nth-child(13)) .rc:not(.now){width:14.5px;font-size:11px}
.topbar .tb-you{min-width:0;flex:0 1 auto;max-width:250px}
.topbar .tb-you>div{min-width:0}
.topbar .tb-you b{overflow:hidden;text-overflow:ellipsis}
/* with the third tab (GAME OVER) the tabs drop their small words; the tab that is on is still dark */
.tb-phase:has(.ph:nth-child(3)) .ph i{display:none}
/* when the clock has little room, "· nuclear winter at 10" is left out rather than cut (it is in the tooltip) */
.topbar .tb-clock{container-type:inline-size}
@container (max-width:280px){.tb-c i{display:none}}
/* On a 1200-wide table (a phone, an upright iPad) with a 24-letter name the clock was squeezed to "D…" and a cut "0".
   It keeps room for its dial and "0/10"; with less than room for DOOMSDAY too the word is left out (it is in the
   tooltip) rather than cut; the seat's name and bloc give way with "…". */
.topbar .tb-clock{min-width:120px}
@container (max-width:125px){.tb-l2{display:none}}
.topbar .tb-you i{display:block;overflow:hidden;text-overflow:ellipsis}

/* ---- a hidden ending (some rule sets): the round boxes that may be the last are drawn broken, and the header
   says the rounds the game can end after in place of "of 16" ---- */
.tb-l .endw{display:inline-flex;align-items:center;gap:3px;text-transform:none;letter-spacing:.04em;font-weight:700;color:var(--ink);white-space:nowrap;cursor:help}
.tb-l .endw .ic{flex:none}
.track.hidden-end{cursor:help}
.rc.maybe:not(.now){border-style:dashed;background:repeating-linear-gradient(135deg,var(--card) 0 3px,var(--well) 3px 6px)}
.rc.maybe.past{background:var(--well)}
.track:has(.rc:nth-child(17)) .rc:not(.now){width:13.5px;font-size:10.5px}
/* a long game (panels.js trackRange): the strip shows some rounds, and a stub at either end stands for the rest */
.track .rc.more{width:13px;font:700 13px/22px var(--slab);color:var(--ink2);cursor:help}
.track .rc.more.past{color:var(--ink3)}
.track .rc.more:before{display:none}
.lastround.maybe{color:var(--ink);border-color:var(--ink);border-style:dashed}
.handin .lastround.maybe{color:#f3e7c4;border-color:#f3e7c4}
/* Both tags on one button: the Talks count moves to the bottom edge, so neither covers the other (agent play, Nov 2026). */
.handin:has(.lastround) .hi-talk{top:auto;bottom:-9px}
/* ---- a world survey: the resource buttons, and the line for a deposit only you know of ---- */
.row.wsrow .mini{display:inline-flex;align-items:center;gap:4px}
.secretfind{display:flex;align-items:center;gap:5px;background:#F6D776;color:var(--ink);border:1.2px solid var(--ink);border-radius:3px;padding:2px 6px;margin-top:3px}
.secretfind .ic{flex:none}
.row.wsrow .mini.on .ic{filter:invert(1)}
/* On a narrow screen the header has no room for the "last round?" tag: the hourglass, the broken boxes and the hand-in button still say it. */
@media (max-width:1100px){.tb-round .lastround.maybe{display:none}}
/* One-press fixes for a warning (play/fixes.js): signs on small green buttons; amber when the fix brings a warning of its own. */
.pad li.hasfix{flex-wrap:wrap;height:auto;padding-bottom:5px}
.pad li .fxrow{flex-basis:100%;display:flex;padding-left:20px;margin-top:-1px}
.fxrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:5px}
.fxrow>.gy{flex:0 1 auto;min-width:0}
.fixes{display:inline-flex;flex-wrap:wrap;gap:5px;align-items:center}
.mini.fix{display:inline-flex;align-items:center;gap:3px;min-height:26px;text-transform:none;letter-spacing:0;font:600 12px/1 var(--cond);padding:3px 7px 2px;border-color:#2F4A3C;color:#1f3a2c;background:#e9f2e4;box-shadow:0 1.5px 0 #2F4A3C;cursor:pointer}
.mini.fix:hover{background:#d8ead0}
.mini.fix b{font-weight:700}
.mini.fix i{font-style:normal;color:var(--ink2);padding:0 1px}
.mini.fix svg{display:block;flex:none}
.mini.fix .fx-n,.fixdone .fx-n{font:700 10.5px/1 var(--cond);color:var(--ink2)}
.mini.fix.warned{border-color:var(--amber);background:#fbeec9;box-shadow:0 1.5px 0 var(--amber)}
.fixdone{display:inline-flex;align-items:center;gap:3px;vertical-align:middle}
.fixdone i{font-style:normal}
.nofix{font:italic 11.5px/1 var(--text);color:var(--ink2);display:inline-flex;gap:4px;align-items:center}
.warnlist .mini.fix b,.checks .mini.fix b{color:inherit}

/* ---------- an army order's split: how many go and how many stay, both at once (card.js splitRow) */
.split{display:flex;flex-direction:column;gap:4px;margin:2px 0 6px}
.split .sp{display:flex;align-items:center;flex-wrap:wrap;gap:3px 6px;padding:4px 7px;border:1.3px solid var(--line);border-radius:5px;background:rgba(255,255,255,.45);cursor:help}
.split .sp.go.atk{border-color:#c98f86;background:rgba(163,38,44,.05)}
.split .sp.stay{border-style:dashed}
.split .sp.stay.none{border-color:var(--warn);background:#f7e0d8}
.split .sp-h{flex:none;width:44px;display:inline-flex;align-items:center;gap:3px;font:700 10.5px/1 var(--cond);letter-spacing:.1em;text-transform:uppercase;color:var(--ink2)}
.split .sp-b{display:inline-flex;align-items:center;gap:4px;min-width:0}
.split .sp-b .gy-n{font-size:15px}
.split .sp-m{flex:1 1 100%;display:flex;flex-wrap:wrap;gap:3px 9px;padding-left:50px}
.split .sp-e{display:inline-flex;align-items:center;gap:2px;font:700 11.5px/1 var(--slab)}
.split .sp-e em{font:italic 11px/1 var(--text);color:var(--ink2);margin-right:2px}
.split .sp-e b.dn{color:var(--warn)}
.split .sp-e b.up{color:#2f5d3a}
.pop-b .row.movein.one{min-height:22px}
.pop-b .row.movein .q svg{display:inline-block;vertical-align:-2px}
.pop-b .row.movein .mvtext{font:italic 12px/1 var(--text);color:var(--ink2)}
.pad-tools .again{display:inline-flex;align-items:center;justify-content:center}
.tmsg .sameg{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;vertical-align:middle}

/* modules.defence_research: the missile defence programme as pips beside the nuclear one (nuclear menu facts) */
.dprog .dpips { display: inline-flex; gap: 3px; vertical-align: middle; margin: 0 2px; }
.dpip { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-block; box-sizing: border-box; }
.dpip.on { background: currentColor; }
/* modules.defence_research: the die, the chance a try works, and the stages as pips, on the research row */
button.action .aodds { flex: none; display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font: 700 11px/1 var(--cond); color: var(--ink2); white-space: nowrap; }
button.action .aodds svg { display: inline-block; }
button.action .aodds .dpips { margin-left: 3px; }
