/* War Room polish (docs/PLAN.md, War Room and Campaign, 10-27). */

/* "While you were away" (js/wargov.js next): a compact strip under the header instead of a card over the bottom of
   the map, the dock and the battle card; its button skips every missed strike at once. */
.wr-cine.away { bottom: auto; gap: 8px; padding: 6px 10px; width: min(360px, calc(100vw - 20px)); }
.wr-cine.away .arm { width: 30px; height: 30px; }
.wr-cine.away b { font-size: 18px; }
.wr-cine.away small { font-size: 12px; }
.wr-cine.away .wr-cine-close { align-self: center; }

/* Live war events on the map (js/fx-campaign.js WarFX, js/wargov.js next, Gage 10-28): the caption strip carries the
   event's kicker, a short stamp and the whole line; special events (not strikes) use a smaller headline so a long
   place name never wraps three lines on a phone, and neutral ones (weather) a pale rim. */
.wr-cine > .wi { flex: 0 0 auto; width: 34px; height: 34px; }
.wr-cine > .wi img { width: 100%; height: 100%; image-rendering: pixelated; }
.wr-cine.ev b { font-size: 19px; line-height: 1.05; overflow-wrap: anywhere; }
.wr-cine.ev small { text-transform: none; letter-spacing: .02em; color: #e8d39f; }
.wr-cine.ours { border-left-color: var(--gold); }
.wr-cine.neutral { border-left-color: #dff0ff; }
.wr-cine.neutral em { color: #bfe0ff; }
.wr-cine .wr-away-sum { display: block; margin-top: 3px; font: 400 11px var(--display); letter-spacing: .04em; color: #cdbb91; }
.wr-cine.away.ev b { font-size: 16px; }

/* Landscape phones (Gage 10-28 play-through at 667x375): the header took 230 of 375 px, so a battle card ran off the
   bottom and READY UP was out of reach. On short landscape screens it lays out in two columns and the clock shrinks. */
@media (orientation: landscape) and (max-height: 500px) {
  .wr-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 4px; padding: calc(var(--safe-t) + 4px) max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left)); }
  .wr-top > .wr-ribbon, .wr-top > .wr-alerts { grid-column: 1 / -1; }
  .wr-top .wc-room .wc-u b { font-size: 19px; }
  .wr-top .wc-room .wc-u small { display: none; }
  .wr-top .wr-clock small { font-size: 10px; }
  .wr-you { padding: 2px 8px 3px; gap: 8px; }
  .wr-you b { font-size: 17px; }
  .wr-you small { font-size: 10px; }
  .wr-majorline { padding: 3px 8px; font-size: 12px; }
}
