/* War Room clarity (R13, docs/reports/r13-clarity.md): the Map key, tap-to-explain, the first-visit tour, the folded
   header, crafted battle plates, the War Score split marker and the vote card. Red, black and white field journal: inked
   frames, warm gunmetal, paper labels, hard offset shadows. No emoji (SVG only). Loads last of the War Room sheets. */

/* ---------- the Map key button: what is on the map now ---------- */
.wr-key.wk-btn { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 5px 10px 5px 7px; pointer-events: auto; cursor: pointer; text-shadow: none;
  font: 400 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #f2eee6;
  background: linear-gradient(#25201b, #14110e); border: 1px solid #0d0b09; box-shadow: inset 0 0 0 1px #5a4630, inset 0 1px 0 #ffffff14, 2px 3px 0 #0d0b09; }
.wk-btn:active { transform: translate(1px, 2px); box-shadow: inset 0 0 0 1px #5a4630, 1px 1px 0 #0d0b09; }
.wk-btn .wk-sws { display: flex; }
.wk-btn .wk-sws .wk-sw { width: 26px; height: 18px; margin-right: -6px; padding: 1px; background: #0f0c0a; border: 1px solid #3b2c1c; }
.wk-btn .wk-sws .wk-sw:last-child { margin-right: 0; }
.wk-btn b { font-weight: 400; }
.wk-btn small { min-width: 18px; padding: 2px 4px 1px; font: 400 12px/1 var(--display); text-align: center; color: #14100d; background: var(--gold); border: 1px solid #0d0b09; }
.wk-sw { display: block; flex: none; width: 32px; height: 22px; }

/* the panel: one row per kind of mark on screen, each a button to its explainer */
.wk-panel { position: absolute; left: 10px; bottom: calc(var(--safe-b) + 142px); z-index: 5; width: min(300px, calc(100vw - 20px)); min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: 9px 10px 8px; color: #f2eee6; background: linear-gradient(#211c17f7, #13100df7); border: 2px solid #0d0b09; box-shadow: inset 0 0 0 1px #6b5638, 4px 5px 0 #000b; animation: wk-up .2s ease-out both; }
.wk-panel[hidden] { display: none; }
.wk-ph { display: flex; align-items: baseline; gap: 8px; padding-bottom: 6px; border-bottom: 1px dashed #4a3826; }
.wk-ph em, .wk-pop-tx em { font: 400 11px/1 var(--display); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: #f27661; }
.wk-ph b { flex: 1; font: 400 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.wk-x { width: 32px; height: 32px; margin: -6px -4px -6px 0; padding: 7px; background: none; border: 0; color: #e6dccb; }
.wk-x svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 2.4; fill: none; }
.wk-panel ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.wk-panel li button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 4px 6px; text-align: left; color: inherit; background: #0f0c0a; border: 1px solid #2c2219; cursor: pointer; }
.wk-panel li button:active { background: #241c15; }
.wk-panel li b { display: block; font: 400 15px/1.05 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.wk-panel li small { display: block; font-size: 12px; line-height: 1.2; color: #c9b99c; }
.wk-tip { margin: 7px 0 0; font-size: 11px; color: var(--gold); }

/* the explainer: a dispatch slip over the bottom of the map, the mark's swatch, its meaning and what to do */
.wk-pop { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 92px); z-index: 6; width: min(380px, calc(100vw - 20px)); transform: translateX(-50%); pointer-events: auto; }
.wk-pop[hidden] { display: none; }
.wk-pop.in .wk-pop-in { animation: wk-pop .24s cubic-bezier(.2,.9,.3,1.25) both; }
.wk-pop-in { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; padding: 10px 11px 9px; color: #1a120a;
  background: linear-gradient(170deg, #f1e4cb, #e3d1b0 60%, #d8c39d); border: 2px solid #0d0b09; box-shadow: inset 0 0 0 3px #f6ecd8, inset 0 0 0 4px #8a6a44, 4px 5px 0 #000c; }
.wk-pop-in::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .18; background: url('../assets/ui/command-etch.svg') center / 520px auto; mix-blend-mode: multiply; }
.wk-pop-sw { align-self: start; padding: 4px; background: #14100d; border: 2px solid #0d0b09; box-shadow: 2px 2px 0 #0d0b0966; }
.wk-pop-sw .wk-sw { width: 44px; height: 30px; }
.wk-pop-tx { min-width: 0; }
.wk-pop-tx em { color: #a5221d; }
.wk-pop-tx b { display: block; margin: 3px 0 4px; font: 400 21px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #120c08; overflow-wrap: anywhere; }
.wk-pop-tx p { margin: 0; font-size: 13px; line-height: 1.35; color: #2a1d12; }
.wk-pop-tx p.wk-act { margin-top: 5px; font-weight: 600; color: #7a1519; }
.wk-pop-bt { grid-column: 1 / -1; display: flex; gap: 7px; justify-content: flex-end; }
.wk-pop-bt button { min-height: 40px; padding: 0 14px; font: 400 16px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #f2eee6; background: #1a1714; border: 2px solid #0d0b09; box-shadow: 2px 2px 0 #0d0b0999; cursor: pointer; }
.wk-pop-bt .wk-go { color: #fff; background: #b5232a; }
.wk-pop-bt button:active { transform: translate(1px, 1px); box-shadow: none; }
.wr.carded .wk-pop, .wr.warping .wk-pop, .wr.warping .wk-panel, .wr.aiming .wk-panel, .wr.aiming .wk-pop, .wr.sheeted .wk-panel, .wr.sheeted .wk-pop, .wr.carded .wk-panel { display: none; }
.wr.arriving .wk-pop, .wr.arriving .wk-panel { display: none; }

/* ---------- the first visit: three steps ---------- */
.wk-tour { position: absolute; inset: 0; z-index: 12; pointer-events: auto; }
.wk-spot { position: absolute; border: 2px solid #ffd36e; box-shadow: 0 0 0 3px #0d0b09, 0 0 0 9999px #070605c4, 0 0 22px #ffb34766; transition: all .3s cubic-bezier(.3,1,.4,1); pointer-events: none; }
.wk-tcard { position: absolute; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); max-width: 420px; margin: 0 auto; padding: 12px 13px 12px; color: #f3e9d3;
  background: #241d16 url('../assets/ui/command-etch.svg') center / 560px auto; border: 2px solid #ac8150; box-shadow: inset 0 0 0 1px #0d0b09, 4px 5px 0 #080707; animation: wk-up .25s ease-out both; }
.wk-tp { display: flex; align-items: center; gap: 8px; }
.wk-tp span { display: flex; gap: 4px; }
.wk-tp span i { width: 22px; height: 5px; background: #3b2c1c; border: 1px solid #0d0b09; }
.wk-tp span i.done { background: #8a6a44; } .wk-tp span i.on { background: #ffd36e; }
.wk-tp small { font: 400 12px/1 var(--display); letter-spacing: .14em; color: #d9b56c; }
.wk-skip { margin-left: auto; min-height: 34px; padding: 0 10px; font: 400 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #cfc3ad; background: #14120f; border: 1px solid #645136; }
.wk-tcard h2 { margin: 9px 0 5px; font: 400 27px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: #fff; text-shadow: 2px 2px 0 #0d0b09; }
.wk-tcard p { margin: 0 0 11px; font-size: 13.5px; line-height: 1.4; color: #eadfc7; }
.wk-next { width: 100%; min-height: 46px; font: 400 21px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #b62430; border: 2px solid #0d0b09; box-shadow: inset 0 0 0 1px #e54e52, 3px 3px 0 #080707; }

/* ---------- the header folds on phones: clock, score and one strip ---------- */
.wr-mini { display: none; }
@media (max-width: 700px), (max-height: 900px) {
  .wr-mini { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 3px 8px 3px 6px; text-align: left; color: #f2eee6; cursor: pointer;
    background: linear-gradient(#1d1814, #120e0b); border: 2px solid #0d0b09; border-left: 5px solid var(--us); box-shadow: inset 0 0 0 1px #3b2c1c, 2px 3px 0 #0d0b09; }
  .wr-mini.ca { border-left-color: var(--ca); }
  .wr-mini .ins { flex: none; width: 28px; height: 28px; }
  .wm-pos { flex: 1; min-width: 0; display: grid; }
  .wm-pos b { font: 400 16px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wm-pos small { font: 400 11px/1.1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #bfae92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wm-wp { display: grid; justify-items: end; }
  .wm-wp small { font: 400 9px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .wm-wp b { font: 400 18px/1 var(--display); color: #fff; }
  .wm-major { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px 1px; font: 400 14px/1 var(--display); color: #f2eee6; background: #2a0f0d; border: 1px solid #8f2a22; }
  .wm-major .wi { width: 15px; height: 15px; }
  .wm-major b { font-weight: 400; } .wm-major .wc-short { color: #fff; }
  .wm-major.live { background: #b5232a; border-color: var(--gold); }
  .wm-chev { flex: none; width: 22px; height: 22px; display: grid; place-items: center; background: #0d0b09; border: 1px solid #4a3826; }
  .wm-chev svg { width: 14px; height: 14px; fill: none; stroke: #e6dccb; stroke-width: 2.4; transition: transform .2s; }
  .wr-mini[aria-expanded="true"] .wm-chev svg { transform: rotate(180deg); }
  .wr-top:not(.open) > .wr-you, .wr-top:not(.open) > .wr-power, .wr-top:not(.open) > .wr-majorline, .wr-top:not(.open) > .wr-lead { display: none; }
  .wr.aiming .wr-mini { display: none; }
}
@media (orientation: landscape) and (max-height: 500px) { .wr-top > .wr-mini { grid-column: 1 / -1; min-height: 34px; } }

/* ---------- battle plates: crafted, physical, smooth ---------- */
/* An enamelled gunmetal plate with a brass rim and a paper name label, a cast shadow on the map, the attacker's colour as an
   enamel band; it fades in and out (never pops) and eases to a new side (js/warroom.js layout). */
.wr-pin { transition: opacity .3s ease-out; animation: wk-pin .35s ease-out; }
.wr-pin.off { opacity: 0; pointer-events: none; }
.wr-pin .wp-body { position: relative; padding: 4px 6px 5px 8px; border-radius: 2px;
  background: linear-gradient(180deg, #342d26 0%, #221d18 46%, #17130f 100%);
  border: 1px solid #070605; box-shadow: inset 0 1px 0 #ffffff2a, inset 0 -1px 0 #0009, inset 0 0 0 1px #7a6240, 0 1px 0 #000, 0 5px 9px #000b, 0 1px 3px #000c; }
.wr-pin .wp-body::before, .wr-pin .wp-body::after { content: ''; position: absolute; top: 3px; width: 3px; height: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e8d3a2, #6b5233 70%); box-shadow: 0 0 0 .5px #000; pointer-events: none; }
.wr-pin .wp-body::before { left: 3px; } .wr-pin .wp-body::after { right: 3px; }
.wr-pin.att-us .wp-body { border-left: 5px solid #3f74c8; box-shadow: inset 2px 0 0 #8fb6f0, inset 0 1px 0 #ffffff2a, inset 0 -1px 0 #0009, inset 0 0 0 1px #7a6240, 0 1px 0 #000, 0 5px 9px #000b; }
.wr-pin.att-ca .wp-body { border-left: 5px solid #c4382f; box-shadow: inset 2px 0 0 #f0938a, inset 0 1px 0 #ffffff2a, inset 0 -1px 0 #0009, inset 0 0 0 1px #7a6240, 0 1px 0 #000, 0 5px 9px #000b; }
.wr-pin .wp-row b { padding: 1px 4px 0; color: #1a120a; background: linear-gradient(#f2e6cf, #dccaa6); box-shadow: inset 0 0 0 1px #9a7f58, 0 1px 0 #000; text-shadow: none; }
.wr-pin .wr-pbar { border-color: #070605; box-shadow: inset 0 1px 2px #000a, 0 1px 0 #ffffff14; }
.wr-pin .wr-pbar i { background: linear-gradient(#6c9ff0, #2d5bb0 60%, #1f4387); box-shadow: 1.5px 0 0 #ffd36e; }
.wr-pin .wr-pbar { background: linear-gradient(#e2564a, #a5221d 60%, #7e1714); }
.wr-pin.hot .wp-body { box-shadow: inset 0 0 0 1px #ffb066, 0 0 14px #ff8a3c90, 0 5px 9px #000b; }
.wr-pin.urgent .wp-body { border-color: #d4262e; }
@media (max-width: 600px) { .wr-pin .wp-body { padding: 3px 5px 4px 7px; } .wr-pin .wp-row b { padding: 1px 3px 0; letter-spacing: 0; } }

/* the selected battle's card opens from its pin: a short scale and fade (individual transform properties, so the position transform stays) */
.wr-card { animation: wk-card .26s cubic-bezier(.2,.9,.3,1.15); transform-origin: var(--tx, 50%) 0; }
.wr-card.up { transform-origin: var(--tx, 50%) 100%; }

/* ---------- the War Score split marker: a cast emblem, not a flat zigzag ---------- */
/* A brass-rimmed diamond with an enamel core and a soft glow, riding the split; a thin bright seam runs the height of the
   bar. When a battle moves the war (War.score.run): the marker slides, a spark trail lies over the ground it crossed,
   and it flares as it lands. Calm and reduced motion: still. */
.wr-sbar i::after, .wt-bar i::after { right: -13px; top: 50%; bottom: auto; width: 26px; height: 26px; margin-top: -13px; z-index: 4; clip-path: none; transform: rotate(45deg);
  background: radial-gradient(circle at 50% 50%, #fff6d6 0 14%, #ffc65a 26%, #9a5a12 46%, transparent 47%), conic-gradient(from 210deg, #fff0bf, #b07a28, #fbe3a0, #7a5216, #f5d78c, #8a5d1a, #fff0bf);
  border: 1.5px solid #0d0b09; border-radius: 3px; box-shadow: inset 0 0 0 2.5px #2a1d0c, inset 0 0 0 3.5px #ffe7a8aa, 0 0 0 1px #0d0b0966, 0 2px 4px #000c;
  filter: drop-shadow(0 0 4px #ffb34799); animation: wk-emb 2.6s ease-in-out infinite; }
.wr-sbar i::before, .wt-bar i::before { right: -1px; top: -3px; bottom: -3px; height: auto; width: 2px; z-index: 3; mask: none; -webkit-mask: none; opacity: 1;
  background: linear-gradient(transparent, #fff3c4 20%, #ffd36e 50%, #fff3c4 80%, transparent); box-shadow: 0 0 6px #ffc65a, 0 0 2px #fff; animation: none; }
.wr-sbar b, .wt-bar b { z-index: 5; }
.wr-sbar b:first-of-type, .wt-bar b:first-of-type { padding-right: 14px; } .wr-sbar b:last-of-type, .wt-bar b:last-of-type { padding-left: 14px; }
.wr-sbar.split-go i::after, .wt-bar.split-go i::after { animation: wk-flare 1.3s ease-out; }
.fs-trail { position: absolute; top: -2px; bottom: -2px; z-index: 2; pointer-events: none; animation: wk-trail 1.5s ease-out forwards;
  background: radial-gradient(circle, #fff3c4 0 1.1px, transparent 1.6px) 0 3px / 9px 8px, radial-gradient(circle, #ffb347 0 1px, transparent 1.5px) 4px 9px / 11px 10px, linear-gradient(90deg, #ffd36e00, #ffd36ecc); }
.fs-trail.to-us { background: radial-gradient(circle, #fff3c4 0 1.1px, transparent 1.6px) 0 3px / 9px 8px, radial-gradient(circle, #ffb347 0 1px, transparent 1.5px) 4px 9px / 11px 10px, linear-gradient(270deg, #ffd36e00, #ffd36ecc); }
.wr.calm .wr-sbar i::after, .war.calm .wt-bar i::after { animation: none !important; }
.wr.calm .fs-trail, .war.calm .fs-trail { display: none; }
@media (prefers-reduced-motion: reduce) { .fs-trail { display: none; } .wr-sbar i::after, .wt-bar i::after, .wr-pin, .wr-card, .wk-pop-in, .wk-panel, .wk-tcard { animation: none !important; } }

/* ---------- the vote card: a field dispatch, not flat boxes ---------- */
.vc { align-items: center; padding: calc(var(--safe-t) + 8px) 10px calc(var(--safe-b) + 8px); background: radial-gradient(120% 80% at 50% 10%, #2a1f17e8, #070605f2 70%); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.vc::before { display: none; }
.vc-card { height: auto; max-height: 100%; padding: 0 14px 12px; gap: 9px; color: #f2eee6;
  background: linear-gradient(180deg, #2b241d 0%, #1a1511 55%, #120e0b 100%); border: 2px solid #0d0b09;
  box-shadow: inset 0 0 0 1px #7a6240, inset 0 0 0 4px #1a1511, inset 0 0 0 5px #4a3a26, 6px 7px 0 #000c, 0 18px 40px #000a; }
.vc-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .14; background: url('../assets/ui/command-etch.svg') center 40% / 620px auto; }
.vc-card > * { position: relative; }
/* the header strip: a stamped kicker on the side's colour band, the count, the stopwatch */
.vc-top { margin: 0 -14px; padding: 9px 14px 8px; min-height: 0; background: linear-gradient(90deg, var(--vc-hue) 0 6px, #0f0c0a 6px); border-bottom: 2px solid #0d0b09; box-shadow: inset 0 -1px 0 #4a3a26; }
.vc-kind { flex: 0 1 auto; padding: 5px 9px 3px; font-size: 16px; letter-spacing: .2em; color: #fff; background: #a5221d; border: 2px solid #0d0b09; box-shadow: inset 0 0 0 1px #ff8a7a66, 2px 2px 0 #0d0b09; transform: rotate(-2deg); }
.vc-top .vc-count { margin-left: auto; }
.vc-top .vc-kind + .vc-timer { margin-left: auto; }
.vc-timer { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #2c241c, #0d0b09 70%); box-shadow: 0 0 0 2px #0d0b09, 0 0 0 4px #8a6a44, 0 0 0 5px #0d0b09, 2px 3px 0 5px #0008; }
.vc-ring .bg { stroke: #2a2018; } .vc-ring .fg { stroke: #ffd36e; filter: drop-shadow(0 0 2px #ffb347); }
.vc.ca .vc-ring .fg { stroke: #ff8a7a; filter: drop-shadow(0 0 2px #ff5b52); }
.vc.calm .vc-timer { border: 0; }
.vc-head { padding-top: 2px; }
.vc-ic { width: 52px; height: 52px; padding: 4px; background: #0d0b09; border: 1px solid #4a3a26; box-shadow: 2px 2px 0 #000a; }
.vc-ic > svg, .vc-ic > .arm, .vc-ic > .ins { width: 42px; height: 42px; }
.vc-head h2 { font-size: 28px; }
/* the paper slip under the question: who proposed it and the count */
.vc-sub { padding: 8px 10px 7px; font-size: 13px; color: #2a1d12; background: linear-gradient(170deg, #efe2c8, #dccaa6); border: 1px solid #0d0b09; box-shadow: inset 0 0 0 2px #f6ecd8, inset 0 0 0 3px #a98a5e, 2px 2px 0 #0009; }
.vc-choices { flex: 0 1 auto; gap: 9px; }
/* every choice is an inked plate: gunmetal, brass rim, the colour as an enamel band at its edge */
.vc-b, .vc.ca .vc-b, .vc.info .vc-b { position: relative; min-height: 62px; padding: 9px 12px 8px 16px; color: #f2eee6;
  background: linear-gradient(180deg, #3a322a 0%, #26201a 50%, #1a1511 100%); border: 2px solid #0d0b09; border-left: 7px solid var(--vc-hue);
  box-shadow: inset 0 1px 0 #ffffff26, inset 0 0 0 1px #7a6240, 3px 3px 0 #0d0b09; }
.vc-b b { color: #fff; text-shadow: 1px 1px 0 #0d0b09; }
.vc-b small { color: #d9cdb8; }
.vc-b::after { content: ''; position: absolute; right: 12px; top: 50%; width: 10px; height: 10px; margin-top: -6px; border-right: 3px solid #bfae92; border-bottom: 3px solid #bfae92; transform: rotate(-45deg); opacity: .7; }
.vc-b span { padding-right: 18px; }
/* yes: white paper stamped in ink; no: black with the red band */
.vc-b.y { color: #1a120a; background: linear-gradient(170deg, #f4e9d4, #e2d0ae); border-left-color: #1a120a; box-shadow: inset 0 0 0 2px #f9f1e0, inset 0 0 0 3px #a98a5e, 3px 3px 0 #0d0b09; }
.vc-b.y b { color: #120c08; text-shadow: none; } .vc-b.y small { color: #3a2a1a; } .vc-b.y::after { border-color: #1a120a; }
.vc-b.n { background: linear-gradient(180deg, #221c17, #0f0c0a); border-left-color: #b5232a; box-shadow: inset 0 0 0 1px #5a2a22, 3px 3px 0 #0d0b09; }
.vc.info .vc-b { border-left-color: var(--gold); } .vc.info .vc-b b { color: var(--gold); }
.vc-b:active { transform: translate(2px, 2px); box-shadow: inset 0 0 0 1px #7a6240, 1px 1px 0 #0d0b09; }
.vc-foot { padding-top: 4px; border-top: 1px dashed #4a3826; }
.vc-later { color: #cfc3ad; background: #0f0c0a; border: 1px solid #4a3a26; box-shadow: 2px 2px 0 #0009; }
@media (max-height: 600px) {
  .vc { padding-top: calc(var(--safe-t) + 4px); padding-bottom: calc(var(--safe-b) + 4px); }
  .vc-card { gap: 6px; padding-top: 0; }
  .vc-top { padding: 6px 12px 5px; }
  .vc-timer { width: 46px; height: 46px; }
  .vc-head h2 { font-size: 22px; }
  .vc-ic { width: 42px; height: 42px; } .vc-ic > svg, .vc-ic > .arm, .vc-ic > .ins { width: 34px; height: 34px; }
  .vc-sub { padding: 5px 8px 4px; font-size: 12px; }
  .vc-b, .vc.ca .vc-b, .vc.info .vc-b { min-height: 54px; padding-top: 7px; padding-bottom: 6px; }
}

/* Gage 11-03: "fill up the screen no matter how many there are", a picture on every option, an obvious Skip. The card takes the
   screen; two or three choices share its height as tall plates, a long list (.many: candidates) keeps its rows and scrolls. */
.vc-card { height: 100%; }
.vc-choices { flex: 1 1 auto; min-height: 0; }
.vc-b, .vc.ca .vc-b, .vc.info .vc-b { flex: 1 0 auto; gap: 14px; }
.vc.many .vc-b { flex: 0 0 auto; }
.vc-bi { width: clamp(32px, 7dvh, 60px); height: clamp(32px, 7dvh, 60px); display: grid; place-items: center; }
.vc.many .vc-bi { width: 34px; height: 34px; }
.vc-bi > svg, .vc-bi .ins, .vc-bi .ins svg, .vc-bi .arm, .vc-bi .arm svg { width: 100%; height: 100%; }
.vc-bi .vc-pic { color: #fff; filter: drop-shadow(2px 2px 0 #0d0b09); } .vc-b.y .vc-bi .vc-pic { color: #1a120a; filter: none; }
.vc-b b { font-size: clamp(22px, 3.6dvh, 30px); }
.vc.many .vc-b b { font-size: 20px; }
.vc-later { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; font-size: 19px; color: #fff4dd; background: linear-gradient(#3a2e22, #1f1912); border: 2px solid var(--gold); box-shadow: 3px 3px 0 #0d0b09; }
.vc-later .vc-pic { width: 18px; height: 18px; color: var(--gold); }
.vc-later[data-all] { flex: 0 1 auto; padding: 0 14px; font-size: 16px; color: #d9cdb8; border-color: #6d5a3a; }
.vc-later:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #0d0b09; }
@media (max-height: 600px) { .vc-later { min-height: 46px; font-size: 17px; } }

/* Build 119 (Gage 11-03: "there needs to be a timer on the skip button for the campaign votes and the campaign votes need to look
   better"): Skip carries the countdown, a ring with the seconds and a gold fill draining across the button, red for the last three
   seconds; the header is the vote's stamp and the queue count only. The choices are plates that grow to share the card but never
   past a comfortable height, centred between the question and Skip, each picture in its own framed tile. Calm: the number alone. */
.vc-top { min-height: 46px; }
.vc-top .vc-count { padding: 4px 8px 3px; font-size: 14px; color: #f2e6cc; background: #1a1511; border: 1px solid #6d5a3a; box-shadow: 2px 2px 0 #0d0b09; }
.vc-choices > .vc-b:first-child { margin-top: auto; } .vc-choices > .vc-b:last-child { margin-bottom: auto; } /* centred, and a list longer than the card still scrolls from its top (auto margins, never justify-content: center) */
.vc-b, .vc.ca .vc-b, .vc.info .vc-b { max-height: 168px; transition: transform .08s, box-shadow .08s; }
.vc-bi { flex: none; box-sizing: border-box; padding: 5px; background: #0d0b09; border: 1.5px solid #7a6240; box-shadow: inset 0 0 8px #000c, 2px 2px 0 #0009; }
.vc-b.y .vc-bi { background: #f9f1e0; border-color: #1a120a; box-shadow: inset 0 0 0 1px #a98a5e, 2px 2px 0 #0004; }
.vc.many .vc-bi { padding: 3px; }
.vc-bi > img { display: block; width: 100%; height: 100%; object-fit: contain; } /* a state's shape (War.sectorShape) fits its tile */
/* the timer sits on Skip's left end (a sibling laid over it, so a tap anywhere on the plate is Skip and Skip's own text stays "Skip") */
.vc-skipbox { position: relative; flex: 1; display: flex; min-width: 0; }
.vc-skip { position: relative; flex: 1; overflow: hidden; padding: 0 14px 0 56px; }
.vc-skip > .vc-pic { position: relative; }
.vc-skip .vc-drain { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(90deg, #8a6a2a, #c79a3f 70%, #f0cc72); opacity: .4; transform-origin: left center; animation: vc-drain var(--vc-secs, 10s) linear forwards; pointer-events: none; }
.vc-skipbox .vc-timer { position: absolute; left: 8px; top: 50%; width: 40px; height: 40px; margin-top: -20px; pointer-events: none; box-shadow: 0 0 0 2px #0d0b09, 0 0 0 3px #8a6a44; }
.vc-skipbox .vc-timer b { font-size: 20px; }
.vc-skipbox.low .vc-skip { border-color: #ff5b52; }
.vc-skipbox.low .vc-drain { background: linear-gradient(90deg, #7a1519, #d4262e); opacity: .55; }
.vc-skipbox.low .vc-ring .fg { stroke: #ff5b52; filter: drop-shadow(0 0 2px #ff3a2e); }
.vc-skipbox.low .vc-timer b { color: #ffd6cc; animation: vc-beat .5s ease-in-out infinite alternate; }
.vc.calm .vc-skip .vc-drain { display: none; }
.vc.calm .vc-skipbox .vc-timer { background: #0f0c0a; }
@keyframes vc-drain { to { transform: scaleX(0); } }
@keyframes vc-beat { to { transform: scale(1.18); } }
@media (max-height: 600px) { .vc-skipbox .vc-timer { width: 34px; height: 34px; margin-top: -17px; } .vc-skipbox .vc-timer b { font-size: 17px; } .vc-skip { padding-left: 48px; } .vc-top { min-height: 0; } .vc-b, .vc.ca .vc-b, .vc.info .vc-b { max-height: 120px; } }
@media (max-width: 340px) { .vc-later[data-all] { padding: 0 10px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .vc-skip .vc-drain { display: none; } }

@keyframes wk-up { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes wk-pop { from { opacity: 0; translate: 0 14px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes wk-pin { from { opacity: 0; } to { opacity: 1; } }
@keyframes wk-card { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
@keyframes wk-emb { 50% { filter: drop-shadow(0 0 7px #ffc65acc) brightness(1.08); } }
@keyframes wk-flare { 0% { scale: 1; } 20% { scale: 1.5; filter: drop-shadow(0 0 12px #fff0bf) brightness(1.5); } 55% { scale: .92; } 100% { scale: 1; } }
@keyframes wk-trail { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; background-position: 0 -9px, 4px -3px, 0 0; } }

/* short phones (320 x 568): the folded header keeps only what you act on: the score's last cause and an outgoing strike's alert
   fold with the rest (an incoming strike's alert stays), and the Map key drops to one swatch */
@media (max-height: 700px) and (max-width: 700px) {
  .wr-top:not(.open) .fs-why, .wr-top:not(.open) .wr-alert.out { display: none; }
  .wr-mini { min-height: 36px; } .wr-mini .ins { width: 24px; height: 24px; }
}
@media (max-width: 360px) { .wk-btn .wk-sws .wk-sw:nth-child(n+2) { display: none; } .wr-key.wk-btn { gap: 6px; padding-right: 8px; } }

/* A battle's name is never cut off on its plate (audit 11-15: "WEST BRITISH …" and "CENTRAL NEW …" hid the state): it takes a
   second line on its paper label instead of an ellipsis. js/warroom.js layout measures the plates, so they still keep apart. */
.wr-pin .wp-txt b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; text-overflow: clip; line-height: 1.08; padding-bottom: 1px; }
