*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  display: flex; flex-direction: column; overflow: hidden;
  background: #070707; color: #e8e8e8;
  font-family: Lato, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 13px;
}

.war-bar {
  position: relative; z-index: 20; flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  padding: 8px 12px;
  background: rgba(6,6,6,0.97);
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.war-brand { display: flex; align-items: center; margin-right: 10px; text-decoration: none; }
.war-brand img { height: 22px; width: auto; display: block; }
html.dpa-embed .war-brand { display: none; }

.war-group { display: flex; align-items: center; gap: 6px; }
.war-sep { width: 1px; height: 24px; background: rgba(255,255,255,0.14); margin: 0 2px; }
.war-spacer { flex: 1 1 auto; }

.war-bar select, .war-bar input[type="text"], .war-panel input, .war-panel textarea, .war-panel select {
  background: #121216; border: 1px solid rgba(255,255,255,0.16); color: #fff;
  border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 12px;
}
.war-bar select { max-width: 220px; }
/* Map language: globe + a bare select inside one button. */
/* Compact: globe + short code; the select covers the box invisibly and opens the full list. */
.war-bar .war-lang { position: relative; padding: 6px 8px; gap: 4px; }
.war-bar .war-lang .war-lang-code { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.war-bar .war-lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; cursor: pointer; }
.war-bar .war-lang select option { background: #121216; color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  color: #d8d8d8; border-radius: 6px; padding: 6px 10px;
  font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn.active { border-color: #ca2026; background: rgba(202,32,38,0.2); color: #fff; }
.btn.ua.active { border-color: #3d8bfd; background: rgba(61,139,253,0.22); }
.btn.ru.active { border-color: #e53935; background: rgba(229,57,53,0.22); }
.btn.neutral.active { border-color: #e0a526; background: rgba(224,165,38,0.22); }
.btn.primary { border-color: #ca2026; background: #ca2026; color: #fff; }
.btn.primary:hover { background: #e0262d; }
.btn.danger:hover { border-color: #e53935; color: #ffb3b0; }
.btn kbd { font-size: 10px; color: #888; font-family: inherit; }
.btn.icon-only { padding: 3px 8px; }
.btn .glyph { font-size: 11px; line-height: 1; color: var(--side, #3d8bfd); }
body[data-side="ru"] .btn .glyph { --side: #e53935; }

.swatch { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.swatch.ua { background: #3d8bfd; }
.swatch.ru { background: #e53935; }
.swatch.neutral { background: #e0a526; }

.war-seg { display: inline-flex; border: 1px solid rgba(255,255,255,0.16); border-radius: 6px; overflow: hidden; }
.war-seg button {
  background: rgba(255,255,255,0.04); border: 0; color: #bbb; padding: 6px 10px;
  font: inherit; font-size: 12px; cursor: pointer;
}
.war-seg button + button { border-left: 1px solid rgba(255,255,255,0.16); }
.war-seg button:hover { color: #fff; background: rgba(255,255,255,0.1); }
.war-seg button.active { background: rgba(202,32,38,0.25); color: #fff; }
/* Pin kinds as their map icons (title shows the name). */
#pin-type button, #ed-type button, #pin-icons button, #ed-icons button { display: flex; align-items: center; justify-content: center; padding: 4px 9px; }
#pin-type img, #ed-type img, #pin-icons img, #ed-icons img { display: block; height: 24px; width: auto; }
#pin-colors, #ed-pcolors { margin-top: 6px; }

/* Top-bar Other side: swatch shows the picked colour; its palette drops below */
#side-other.active { border-color: #aaa; background: rgba(255,255,255,0.14); }
.war-other-wrap { position: relative; display: inline-flex; }
.war-other-pal {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 45; width: max-content; max-width: min(380px, 92vw); padding: 8px;
  display: grid; grid-template-columns: repeat(13, 22px);
  background: #0e0e10; border: 1px solid rgba(255,255,255,0.16); border-radius: 10px; box-shadow: 0 16px 44px rgba(0,0,0,0.7);
}
.war-other-pal[hidden] { display: none; }
#pin-colors[hidden], #ed-pcolors[hidden], #pin-icons[hidden], #ed-icons-wrap[hidden], #pin-icon-label[hidden] { display: none; }

/* Top-bar pin kind buttons: the map icon in the UA / RU colour */
.war-pin-btns { display: inline-flex; gap: inherit; }
.war-pinbtn img.ic { width: auto; height: 18px; object-fit: contain; }
#pin-panel { max-height: calc(100% - 16px); overflow: auto; }

.mapboxgl-ctrl.war-basemap-ctrl {
  display: inline-flex; gap: 3px; padding: 4px; clear: both;
  background: rgba(10,10,12,0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 9px; box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.war-basemap-ctrl button {
  background: transparent; border: 0; color: #e6e6e6; padding: 6px 11px; border-radius: 6px;
  font: 600 12px Lato, 'Segoe UI', Arial, sans-serif; cursor: pointer;
}
.war-basemap-ctrl button:hover { background: rgba(255,255,255,0.12); color: #fff; }
.war-basemap-ctrl button.active { background: rgba(202,32,38,0.85); color: #fff; }
/* Show / hide box: lit = on the map, struck through = hidden. */
.war-show-ctrl button { padding: 6px 8px; display: inline-flex; align-items: center; gap: 5px; }
.war-show-ctrl button:not(.active) { color: #8a8a8a; text-decoration: line-through; }
.war-show-ctrl .ic { display: inline-flex; align-items: center; justify-content: center; height: 18px; }
.war-show-ctrl .ic img { height: 18px; width: auto; display: block; }
.war-show-ctrl button:not(.active) .ic { opacity: 0.35; }
/* Pin kind showing only its lit pins: small LIT tag on the button. */
.war-show-ctrl button.lit-only { position: relative; background: rgba(202,32,38,0.4); }
.war-show-ctrl button.lit-only::after { content: 'LIT'; position: absolute; top: -5px; right: -3px; font-size: 8px; font-weight: 700; letter-spacing: 0.05em; line-height: 1; padding: 2px 3px; border-radius: 3px; background: #ffcc33; color: #111; }
/* Icons-only mode (same switch as the top bar): just the icons. */
body.war-icons .war-show-ctrl .t { display: none; }

.mapboxgl-ctrl.war-icon-ctrl {
  clear: both; padding: 3px;
  background: rgba(10,10,12,0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 9px; box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.war-icon-ctrl button {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  background: transparent; border: 0; color: #e6e6e6; border-radius: 6px; cursor: pointer;
}
.war-icon-ctrl button:hover { background: rgba(255,255,255,0.12); color: #fff; }
.war-icon-ctrl button.active { background: rgba(202,32,38,0.85); color: #fff; }
/* Sits on the ruler's row, to its left. */
.mapboxgl-ctrl.war-icon-ctrl.war-inline { clear: none; }
/* Buttons sharing one box: drop the inner boxes. */
.mapboxgl-ctrl.war-icon-group { display: flex; gap: 2px; }
.war-icon-group > .mapboxgl-ctrl.war-icon-ctrl { float: none; clear: none; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Day / Night sits on the same row, left of the map types. */
.mapboxgl-ctrl.war-basemap-ctrl.war-inline { clear: none; }

.war-counts { font-size: 12px; color: #bbb; display: flex; gap: 10px; }
.war-counts b { color: #fff; font-weight: 700; }

.war-map { position: relative; flex: 1 1 auto; min-height: 0; }
.war-map #map { position: absolute; inset: 0; }

.war-status {
  flex: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 12px; min-height: 30px; padding: 6px 12px;
  font-size: 12px; color: #aaa;
  background: rgba(6,6,6,0.97); border-top: 1px solid rgba(255,255,255,0.1);
}
.war-status .msg { margin-left: auto; color: #888; }
.war-status .msg.ok { color: #8fd9a8; }
.war-status .msg.err { color: #ff8a80; }

/* Desk tips + status: translucent box on the map under camera / compass / ruler. */
.mapboxgl-ctrl.war-tips {
  clear: both; width: 280px; padding: 8px 10px; box-sizing: border-box;
  background: rgba(10,10,12,0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 9px; box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  font-size: 12px; line-height: 1.45; color: #ddd; pointer-events: auto;
}
.war-tips .msg { color: #aaa; font-weight: 700; }
.war-tips .msg:empty { display: none; }
.war-tips-hint:not(:empty) + .msg:not(:empty) { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.12); }
.war-tips .msg.ok { color: #8fd9a8; }
.war-tips .msg.err { color: #ff8a80; }
body.war-tips-off .war-tips-hint { display: none; }
/* Nothing to show: no box. Before the map takes it, it stays hidden. */
.war-tips.empty, body > .war-tips { display: none; }
/* Advance tally under the tips: Wyatt's old black box, typewriter text; the header hides the body. */
.mapboxgl-ctrl.war-tally {
  clear: both; width: 280px; box-sizing: border-box; pointer-events: auto;
  background: rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.2); border-radius: 9px; box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  color: #fff; font: 700 13px/1.45 Lato, 'Segoe UI', Roboto, Arial, sans-serif; overflow: hidden;
}
body > .war-tally { display: none; }
.war-tally-top { display: flex; align-items: center; }
.war-tally-head {
  display: flex; align-items: center; justify-content: space-between; flex: 1; min-width: 0; padding: 7px 10px;
  background: none; border: 0; color: #ddd; font: inherit; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
}
.war-tally-head:hover { color: #fff; }
.war-tally-unit {
  margin-right: 8px; padding: 2px 7px; background: none; border: 1px solid rgba(255,255,255,0.35); border-radius: 5px;
  color: #ddd; font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap;
}
.war-tally-unit:hover { color: #fff; border-color: #fff; }
.war-tally.closed .war-tally-unit { display: none; }
.war-tally-head svg { transition: transform .15s; }
.war-tally.closed .war-tally-head svg { transform: rotate(180deg); }
.war-tally.closed .war-tally-body { display: none; }
.war-tally-body { padding: 2px 12px 12px; max-height: 52vh; overflow-y: auto; }
.war-tally-side + .war-tally-side { margin-top: 16px; }
.war-tally-title.ru { color: #ff4a4a; }
.war-tally-title.ua { color: #4fa0ff; }
.war-tally-rows { margin-top: 10px; }
.war-tally-sub { padding-left: 2ch; color: #ccc; font-weight: 400; }
.war-tally-note { color: #aaa; font-size: 12px; }
/* Forms that save themselves: a quiet note where the Save button used to be. */
.war-autosave { margin-left: auto; align-self: center; font-size: 11px; color: #8a8a8a; }
/* Bin of deleted records. */
.war-bin-box { max-width: 420px; }
.war-bin-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow: auto; }
.war-bin-list li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,0.04); }
.war-bin-list li span { flex: 1; display: flex; flex-direction: column; }
.war-bin-list b { color: #fff; font-size: 13px; }
.war-bin-list small { color: #888; font-size: 11px; }
/* Undo / Redo greyed out when there is nothing to do. */
#btn-undo:disabled, #btn-redo:disabled { opacity: 0.35; cursor: default; }
/* Create / Save while the record is being made: greyed, clicks ignored. */
#day-create:disabled { opacity: 0.45; cursor: progress; filter: grayscale(1); }
/* Delete day: second window (type the name). */
.war-del-box { max-width: 380px; }
.war-del-title { display: block; font-size: 15px; color: #ff6b6b; margin-bottom: 6px; }
.war-del-note { font-size: 12px; line-height: 1.5; color: #bbb; margin: 0 0 10px; }
.war-del-box .btn.danger:disabled { opacity: 0.4; cursor: default; }
#btn-tips[aria-pressed="true"] { color: #fff; background: rgba(202,32,38,0.25); }

.war-panel {
  position: absolute; z-index: 30; top: 12px; right: 12px; width: 300px;
  background: rgba(10,10,12,0.97); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px; padding: 12px; box-shadow: 0 14px 40px rgba(0,0,0,0.6);
  display: none;
}
.war-panel.open { display: block; }
.war-panel h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #ca2026; margin-bottom: 6px; }
.war-panel p.note { font-size: 11px; color: #999; line-height: 1.45; margin-bottom: 6px; }
.war-panel label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #888; margin: 10px 0 4px; }
.war-panel input, .war-panel textarea, .war-panel select { width: 100%; }
.war-panel textarea { min-height: 70px; resize: vertical; }
.war-panel .row { display: flex; gap: 8px; }
.war-panel .row > div { flex: 1; }
.war-panel .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* Video field + Upload button (pin form, edit window) */
.war-media-row { display: flex; gap: 6px; align-items: stretch; }
.war-media-row input { flex: 1; min-width: 0; }
.war-media-row .btn { flex: none; padding: 4px 10px; min-width: 64px; justify-content: center; }

/* Frontline change in progress: hint + Done, just above the date bar */
.war-donebar {
  position: absolute; z-index: 16; left: 50%; bottom: 74px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; max-width: calc(100% - 32px);
  background: rgba(8,8,10,0.92); border: 1px solid #ca2026; border-radius: 999px; color: #eee; font-size: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.war-donebar[hidden] { display: none; }
.war-donebar kbd { font: inherit; padding: 1px 6px; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; }
.war-donebar .btn { border-radius: 999px; padding: 5px 14px; }
.war-daynav {
  position: absolute; z-index: 16; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 5px;
  background: rgba(8,8,10,0.92); border: 1px solid rgba(255,255,255,0.16); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.war-daynav button {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #ddd;
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.war-daynav button:hover:not(:disabled) { background: rgba(202,32,38,0.25); border-color: #ca2026; color: #fff; }
.war-daynav button:disabled { opacity: 0.35; cursor: default; }
.war-daynav .label { min-width: 150px; text-align: center; font-size: 13px; font-weight: 700; color: #fff; padding: 0 6px; }
/* + / − stacked right of the date; shown only with the Editing cursor */
.war-daynav-adj { display: none; flex-direction: column; gap: 2px; margin-left: -4px; }
body.war-editing .war-daynav-adj { display: flex; }
.war-daynav .war-daynav-adj button { width: 22px; height: 16px; padding: 0; justify-content: center; border-radius: 4px; font-size: 13px; line-height: 1; }
.war-daynav .label .war-day { display: block; font-size: 10px; font-weight: 700; color: #ff4a4a; letter-spacing: 0.08em; text-transform: uppercase; }
.war-daynav .label .war-day:empty { display: none; }
.war-daynav .label small { display: block; font-size: 10px; font-weight: 400; color: #888; letter-spacing: 0.04em; }

.war-legend {
  position: absolute; z-index: 15; left: 12px; bottom: 74px;
  background: rgba(8,8,10,0.88); border: 1px solid rgba(255,255,255,0.14); border-radius: 8px;
  padding: 8px 10px; font-size: 11px; color: #ccc; display: grid; gap: 5px;
}
.war-legend div { display: flex; align-items: center; gap: 8px; }
.war-legend .x { font-weight: 900; font-size: 13px; line-height: 1; width: 9px; text-align: center; }
.war-legend .stripe { width: 14px; height: 10px; border: 1px solid #e0a526;
  background: repeating-linear-gradient(-45deg, rgba(224,165,38,0.9) 0 2px, transparent 2px 5px); }
.war-legend .arrow { width: 16px; height: 3px; background: #e53935; position: relative; }
.war-legend .arrow::after { content: ''; position: absolute; right: -4px; top: -4px;
  border-left: 7px solid #e53935; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.war-legend .pin { width: 10px; height: 10px; border-radius: 50%; background: #f5d76e; border: 1.5px solid #111; }
/* Key hide / show (viewer): the chevron in the key's corner tucks it away; a small tab brings it back. */
.war-legend { padding-right: 30px; transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease; transform-origin: bottom left; }
.war-legend-hide {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: #aaa; border: 1px solid rgba(255,255,255,0.14); border-radius: 5px; cursor: pointer;
}
.war-legend-hide:hover { background: rgba(202,32,38,0.85); color: #fff; border-color: transparent; }
.war-legend-tab {
  position: absolute; z-index: 15; left: 12px; bottom: 74px;
  display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px;
  background: rgba(8,8,10,0.88); color: #ccc; border: 1px solid rgba(255,255,255,0.14); border-radius: 8px;
  font: inherit; font-size: 11px; cursor: pointer;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease, background 0.15s;
}
.war-legend-tab:hover { background: rgba(202,32,38,0.85); color: #fff; }
body.war-key-hidden .war-legend { opacity: 0; transform: translateY(12px) scale(0.96); pointer-events: none; }
body.war-key-hidden .war-legend-tab { opacity: 1; transform: translateY(0); pointer-events: auto; transition-delay: 0.14s, 0.14s, 0s; }
body.war-key-instant .war-legend, body.war-key-instant .war-legend-tab { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .war-legend, .war-legend-tab { transition: none !important; } }

.mapboxgl-popup.dpa-popup .mapboxgl-popup-content { background: #0e0e10; color: #eee; border: 1px solid rgba(255,255,255,0.16); border-radius: 8px; padding: 12px 14px; }
.mapboxgl-popup.dpa-popup .mapboxgl-popup-tip { border-top-color: #0e0e10; border-bottom-color: #0e0e10; }
.mapboxgl-popup.dpa-popup .mapboxgl-popup-close-button { color: #aaa; }
.dpa-pin-pop strong { display: block; font-size: 14px; margin-bottom: 6px; color: #fff; }
.dpa-pin-pop p { font-size: 12px; line-height: 1.5; color: #ccc; margin-bottom: 8px; overflow-wrap: anywhere; }
.dpa-pin-pop p a { color: #ed255b; text-decoration: underline; }
/* Own compositing layer: without it Chrome draws embedded video under the WebGL map (sound, no picture). */
.dpa-pin-video { position: relative; width: 570px; max-width: 100%; aspect-ratio: 16 / 9; margin-bottom: 8px; background: #000; transform: translateZ(0); will-change: transform; isolation: isolate; }
.dpa-pin-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; }
.dpa-pin-video video { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 4px; background: #000; }
.dpa-pin-embed { width: 420px; max-width: 100%; height: 520px; margin-bottom: 8px; overflow: hidden; border-radius: 6px; background: #15161a; transform: translateZ(0); will-change: transform; isolation: isolate; }
.dpa-pin-embed iframe { width: 100%; height: 100%; border: 0; }
.dpa-pin-img { display: block; width: 570px; max-width: 100%; max-height: 420px; object-fit: cover; border-radius: 4px; margin-bottom: 8px; }
.dpa-pin-card { display: flex; gap: 10px; width: 300px; max-width: 100%; margin-bottom: 8px; padding: 8px; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; background: rgba(255,255,255,0.05); color: #ddd; text-decoration: none; }
.dpa-pin-card:hover { background: rgba(255,255,255,0.1); }
.dpa-pin-card-img { flex: 0 0 84px; height: 64px; border-radius: 4px; background: #222 center / cover no-repeat; }
.dpa-pin-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; line-height: 1.35; }
.dpa-pin-card-body b { color: #ed255b; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; }
.dpa-pin-card-body span { color: #fff; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dpa-pin-card-body i { font-style: normal; color: #aaa; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dpa-pin-link { display: inline-block; margin-right: 12px; color: #ed255b; font-size: 12px; text-decoration: none; }
.dpa-pin-link:hover { text-decoration: underline; }
.dpa-pin-url { display: inline; margin-right: 0; font-size: 11px; overflow-wrap: anywhere; word-break: break-all; min-width: 0; }
/* Source on the left, the date the pin went on the map bottom right */
.dpa-pin-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.dpa-pin-date { margin-left: auto; color: #9a9a9a; font-size: 11px; white-space: nowrap; }

.dpa-pop-meta { font-size: 11px; color: #8a8a8a; margin: 2px 0 4px; }
.dpa-pop-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); }
.dpa-pop-actions button {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); color: #ddd;
  border-radius: 5px; padding: 5px 9px; font: inherit; font-size: 11px; cursor: pointer;
}
.dpa-pop-actions button:hover { background: rgba(255,255,255,0.14); color: #fff; }
.dpa-pop-actions button.danger:hover { border-color: #e53935; color: #ffb3b0; }

/* Day calendar (js/day-calendar.js) */
.war-cal { position: relative; }
.war-cal-btn { min-width: 150px; justify-content: flex-start; }
.war-cal-btn .war-cal-text { flex: 1 1 auto; text-align: left; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.war-cal-caret { font-size: 9px; color: #888; }
.war-cal-pop {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: 272px; padding: 10px;
  background: #0e0e10; border: 1px solid rgba(255,255,255,0.16); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.war-cal-head { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; margin-bottom: 8px; }
.war-cal-head button { background: none; border: 0; color: #eee; font: inherit; cursor: pointer; border-radius: 6px; height: 28px; }
.war-cal-head .nav { font-size: 20px; line-height: 1; }
.war-cal-head .title { font-size: 13px; font-weight: 700; }
.war-cal-head button:hover { background: rgba(255,255,255,0.1); }
.war-cal-grid { display: grid; gap: 2px; }
.war-cal-grid.days { grid-template-columns: repeat(7, 1fr); }
.war-cal-grid.months, .war-cal-grid.years { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.war-cal-grid .wd { text-align: center; font-size: 10px; color: #777; padding-bottom: 4px; }
.war-cal-grid .d, .war-cal-grid .m, .war-cal-grid .y {
  display: flex; align-items: center; justify-content: center; height: 32px;
  background: none; border: 0; border-radius: 50%; color: #fff; font: inherit; font-size: 12px; font-weight: 700;
}
.war-cal-grid .m, .war-cal-grid .y { border-radius: 6px; height: 36px; }
.war-cal-grid button { cursor: pointer; }
.war-cal-grid button:hover { background: rgba(202,32,38,0.3); }
.war-cal-grid .off { color: #444; font-weight: 400; cursor: default; }
.war-cal-grid .sel { background: #ca2026; color: #fff; }
.war-cal-grid .sel:hover { background: #e0262d; }
.war-cal-grid .today { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55); }
.war-cal-foot { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.1); }
.war-cal-foot button { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: #ddd; border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 11px; cursor: pointer; }
.war-cal-foot button:hover { color: #fff; border-color: #ca2026; }

/* Camera (js/camera.js): white flash on capture */
.war-camera-flash { position: absolute; inset: 0; z-index: 30; background: #fff; pointer-events: none; animation: war-camera-flash .45s ease-out forwards; }
@keyframes war-camera-flash { from { opacity: 0.7; } to { opacity: 0; } }
.war-camera-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,0.78); }
.war-camera-box { display: flex; flex-direction: column; gap: 10px; max-width: min(1200px, 100%); max-height: 100%; padding: 12px; background: #0e0e10; border: 1px solid rgba(255,255,255,0.16); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.7); }
.war-camera-box img { display: block; max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 6px; }
.war-camera-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.war-camera-title { flex: 1 1 260px; min-width: 0; background: #121216; border: 1px solid rgba(255,255,255,0.16); color: #fff; border-radius: 6px; padding: 7px 9px; font: inherit; font-size: 13px; }
.war-camera-title:focus { outline: none; border-color: #ca2026; }
.war-camera-title[readonly] { color: #bbb; background: transparent; border-color: transparent; cursor: default; }
.war-camera-msg { flex: 0 1 auto; font-size: 12px; color: #aaa; }

/* In-page text box (desk.js askText), replaces window.prompt */
.war-ask { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding-top: 18vh; background: rgba(0,0,0,0.45); }
.war-ask-box { width: min(380px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #0e0e10; border: 1px solid rgba(255,255,255,0.16); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.7); }
.war-ask-box label { font-size: 13px; font-weight: 700; color: #fff; }
.war-ask-box input { background: #121216; border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 14px; }
.war-ask-box input:focus { outline: none; border-color: #ca2026; }
.war-ask-actions { display: flex; align-items: center; gap: 8px; }
.war-ask-actions span { flex: 1 1 auto; }

/* Zone colour swatches (Shade toolbar + zone edit window) */
.war-swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.war-swatch { width: 22px; height: 22px; border-radius: 3px; border: 2px solid rgba(255,255,255,0.25); background: var(--c); cursor: pointer; padding: 0; }
.war-swatch:hover { border-color: #fff; }
.war-swatch.active { border-color: #fff; box-shadow: 0 0 0 2px #ca2026; }

/* Edit window (double-click a pin, zone or arrow) */
.war-edit .war-ask-box { width: min(420px, calc(100% - 32px)); gap: 6px; }
.war-edit .war-ask-box strong { font-size: 14px; color: #fff; margin-bottom: 4px; }
.war-edit .war-ask-box label { font-size: 11px; font-weight: 400; color: #999; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.war-edit textarea { background: #121216; border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 13px; resize: vertical; }
.war-edit .war-seg { align-self: flex-start; }
.war-edit .war-seg button.active { background: rgba(202,32,38,0.85); color: #fff; }
.war-edit .war-ask-actions { margin-top: 8px; }
.war-edit label.war-check { display: flex; align-items: center; gap: 6px; text-transform: none; font-size: 13px; color: #ddd; letter-spacing: 0; }

/* Toolbar icons; icons-only mode hides the words and key hints (title tooltips stay) */
.btn .ic { flex: 0 0 auto; }
body.war-icons .war-bar .btn .t, body.war-icons .war-bar .btn kbd { display: none; }
body.war-icons .war-bar .btn { padding: 6px 8px; }

/* Miniature (tilt-shift) look, js/tiltshift.js */
.war-miniature { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.war-miniature-on .mapboxgl-canvas { filter: saturate(1.35) contrast(1.08); }

/* Menu drawer: the bar slides up out of view (the map grows into the space) and a tab drops
   down in the top-right corner to bring it back. --war-bar-h is set by drawer.js. */
.war-bar .war-drawer-btn { padding: 6px 7px; }
.war-bar {
  transition: margin-top 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}
body.war-bar-hidden .war-bar {
  margin-top: calc(-1 * var(--war-bar-h, 48px)); opacity: 0; pointer-events: none;
}
.war-drawer-tab {
  display: flex; align-items: center; justify-content: center;
  position: fixed; top: 0; right: 12px; z-index: 30; width: 40px; height: 20px; padding: 0;
  background: rgba(6,6,6,0.92); color: #e6e6e6; border: 1px solid rgba(255,255,255,0.2); border-top: 0;
  border-radius: 0 0 8px 8px; cursor: pointer;
  transform: translateY(-110%); opacity: 0; pointer-events: none;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, background 0.15s;
}
body.war-bar-hidden .war-drawer-tab {
  transform: translateY(0); opacity: 1; pointer-events: auto; transition-delay: 0.22s, 0.22s, 0s;
}
body.war-bar-hidden .war-drawer-tab:hover { background: rgba(202,32,38,0.85); color: #fff; }
.mapboxgl-ctrl-top-right { transition: top 0.34s cubic-bezier(0.22, 1, 0.36, 1); }
body.war-bar-hidden .mapboxgl-ctrl-top-right { top: 18px; }
/* First paint with the bar already hidden: no slide. */
body.war-bar-instant .war-bar, body.war-bar-instant .war-drawer-tab, body.war-bar-instant .mapboxgl-ctrl-top-right { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .war-bar, .war-drawer-tab, .mapboxgl-ctrl-top-right { transition: none !important; }
}

/* Control change popup: depth line and the desk's arrow-direction clock */
.dpa-pop-depth { font-size: 12px; color: #ddd; margin: 0 0 4px; }
.dpa-pop-depth b { color: #fff; }
.dpa-pop-note { font-size: 12px; line-height: 1.5; color: #ddd; margin: 6px 0 2px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.14); white-space: normal; overflow-wrap: anywhere; }
.dpa-pop-note a { color: #9ecbff; }
.war-delta-note-lbl { display: block; font-size: 11px; color: #9a9a9a; margin: 8px 0 3px; }
.war-delta-note { width: 100%; box-sizing: border-box; resize: vertical; min-height: 54px; background: rgba(255,255,255,0.06); color: #eee; border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 12px; }
.war-delta-note-act { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.war-delta-input { min-height: 0; resize: none; color-scheme: dark; }
.war-change-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.war-change-kind { display: flex; flex-wrap: wrap; gap: 4px; }
.war-change-kind button {
  flex: 1 1 30%; padding: 5px 6px; border: 1px solid rgba(255,255,255,0.16); border-radius: 6px;
  background: rgba(255,255,255,0.04); color: #bbb; font: inherit; font-size: 12px; cursor: pointer;
}
.war-change-kind button:hover { color: #fff; background: rgba(255,255,255,0.1); }
.war-change-kind button.active { background: rgba(202,32,38,0.85); border-color: transparent; color: #fff; }
/* Terminology stamp next to "advance" in change popups. */
.dpa-stamp {
  display: inline-block; margin-left: 6px; padding: 1px 6px; vertical-align: 1px;
  border: 2px solid currentColor; border-radius: 3px; transform: rotate(-3deg);
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.3;
}
.dpa-stamp-claimed { color: #f2b84b; }
.dpa-stamp-confirmed { color: #4caf50; }
.dpa-stamp-corroborated { color: #4fc3f7; }
.dpa-stamp-disclaim { color: #b0b0b0; }
.dpa-stamp-invalidated { color: #ff5252; }
.war-change-hint { font-size: 11px; color: #8a8a8a; margin-top: 4px; }
.war-clock-wrap { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.war-clock { position: relative; width: 92px; height: 92px; flex: 0 0 auto; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); }
.war-clock button { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,0.12); color: #ccc; font-size: 9px; line-height: 18px; cursor: pointer; }
.war-clock button:hover { background: rgba(255,255,255,0.3); color: #fff; }
.war-clock button.active { background: #ca2026; color: #fff; }
.war-clock-side { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: #999; }
.war-clock-side button { background: #1b1b20; color: #ddd; border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 11px; cursor: pointer; }
.war-clock-side button.active { border-color: #ca2026; color: #fff; }

/* Scenarios: menu in the top bar, banner and no calendar while one is open */
.war-scn { position: relative; }
.war-scn-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: 340px; max-height: 70vh; overflow: auto;
  padding: 12px; background: #0e0e10; border: 1px solid rgba(255,255,255,0.16); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  display: flex; flex-direction: column; gap: 10px;
}
.war-scn-panel[hidden] { display: none; }
.war-scn-head { display: flex; flex-direction: column; gap: 2px; }
.war-scn-head strong { font-size: 14px; color: #fff; }
.war-scn-head span { font-size: 11px; color: #8a8a8a; }
.war-scn-create { flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 8px 10px; }
.war-scn-create small { font-size: 10px; font-weight: 400; opacity: 0.8; }
.war-scn-back { font-size: 12px; color: #ccc; text-decoration: none; }
.war-scn-back:hover { color: #fff; }
.war-scn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.war-scn-list li { display: grid; grid-template-columns: 1fr auto auto auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,0.04); }
.war-scn-list li.active { background: rgba(202,32,38,0.18); }
.war-scn-list .nm { grid-row: 1; grid-column: 1; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.war-scn-list small { grid-row: 2; grid-column: 1; font-size: 10px; color: #777; }
.war-scn-list .act { grid-row: 1 / span 2; font-size: 11px; color: #bbb; background: none; border: 0; padding: 2px 4px; cursor: pointer; text-decoration: none; }
.war-scn-list .act:hover { color: #fff; }
.war-scn-list .act.danger:hover { color: #ff6b6b; }
.war-scn-empty { font-size: 12px; color: #888; margin: 0; }
.war-scn-banner { display: flex; align-items: center; gap: 8px; max-width: 400px; }
.war-scn-banner[hidden] { display: none; }
.war-scn-banner .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: #ca2026; border-radius: 4px; padding: 2px 6px; }
.war-scn-banner .nm { min-width: 0; font-size: 13px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.war-scenario .war-day-group, body.war-scenario .war-daynav { display: none; }

/* Scenario quick menu sections + manager pop-out */
.war-scn-sub { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #777; margin-bottom: -4px; }
.war-scn-quick li { grid-template-columns: 1fr; }
.war-scn-manage { width: 100%; justify-content: center; }
.war-scn-star { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; background: none; color: #555; cursor: pointer; }
.war-scn-star:hover { color: #bbb; }
.war-scn-star.on { color: #f5c542; }
.war-scn-list .nm .war-scn-star { width: auto; height: auto; margin-right: 4px; vertical-align: -2px; }
.war-scn-mgr { padding-top: 8vh; }
.war-scn-mgr .war-ask-box { width: min(720px, calc(100% - 32px)); max-height: 82vh; gap: 10px; }
.war-scn-mgr-top { display: flex; align-items: baseline; gap: 10px; }
.war-scn-mgr-top strong { font-size: 16px; color: #fff; }
.war-scn-mgr-top .count { font-size: 12px; color: #888; flex: 1 1 auto; }
.war-scn-x { background: none; border: 0; color: #aaa; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.war-scn-x:hover { color: #fff; }
.war-scn-mgr-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.war-scn-q { flex: 1 1 200px; background: #121216; border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 13px; }
.war-scn-q:focus { outline: none; border-color: #ca2026; }
.war-scn-tabs button.active { background: rgba(202,32,38,0.85); color: #fff; }
.war-scn-sort { background: #121216; border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 6px; padding: 7px 8px; font: inherit; font-size: 12px; }
.war-scn-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(202,32,38,0.12); }
.war-scn-bulk[hidden] { display: none; }
.war-scn-bulk .n { font-size: 12px; font-weight: 700; color: #fff; margin-right: auto; }
.war-scn-bulk .btn { padding: 4px 8px; font-size: 11px; }
.war-scn-note { font-size: 11px; color: #e0a526; }
.war-scn-note[hidden] { display: none; }
.war-scn-rows { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1 1 auto; min-height: 120px; display: flex; flex-direction: column; gap: 3px; }
.war-scn-rows li { display: grid; grid-template-columns: auto auto 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,0.04); }
.war-scn-rows li:hover { background: rgba(255,255,255,0.07); }
.war-scn-rows li.active { background: rgba(202,32,38,0.18); }
.war-scn-rows li.empty { display: block; color: #888; font-size: 12px; background: none; padding: 16px 8px; }
.war-scn-rows input[type="checkbox"] { grid-row: 1 / span 2; accent-color: #ca2026; }
.war-scn-rows .war-scn-star { grid-row: 1 / span 2; }
.war-scn-rows .nm { grid-row: 1; grid-column: 3; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.war-scn-rows .nm:hover { text-decoration: underline; }
.war-scn-rows small { grid-row: 2; grid-column: 3; font-size: 10px; color: #777; }
.war-scn-rows .acts { grid-row: 1 / span 2; grid-column: 4; display: flex; gap: 2px; }
.war-scn-rows .acts a, .war-scn-rows .acts button { font-size: 11px; color: #bbb; background: none; border: 0; padding: 3px 5px; cursor: pointer; text-decoration: none; font-family: inherit; }
.war-scn-rows .acts a:hover, .war-scn-rows .acts button:hover { color: #fff; }
.war-scn-rows .acts .danger:hover { color: #ff6b6b; }
.war-scn-more { align-self: center; }
@media (max-width: 560px) {
  .war-scn-rows li { grid-template-columns: auto auto 1fr; }
  .war-scn-rows .acts { grid-column: 1 / -1; grid-row: 3; justify-content: flex-end; }
}
.war-scn-exit { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #ddd; text-decoration: none; padding: 3px 7px; border: 1px solid rgba(255,255,255,0.22); border-radius: 5px; }
.war-scn-exit:hover { background: #ca2026; border-color: #ca2026; color: #fff; }

/* Holding Space on the desk: the map only pans. */
body.war-space-pan .mapboxgl-canvas-container,
body.war-space-pan .mapboxgl-canvas-container canvas { cursor: grab !important; }
body.war-space-pan .mapboxgl-canvas-container:active,
body.war-space-pan .mapboxgl-canvas-container:active canvas { cursor: grabbing !important; }

/* Top-bar search (js/search.js): a button; the box opens under it. */
.war-search { position: relative; display: inline-flex; }
.war-search-pop { position: absolute; top: calc(100% + 6px); right: 0; width: 340px; max-width: calc(100vw - 24px); background: #121216; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 50; overflow: hidden; }
.war-search-pop input { display: block; width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.06); border: 0; border-bottom: 1px solid rgba(255,255,255,0.12); outline: 0; color: #fff; font: inherit; font-size: 13px; padding: 10px 12px; }
.war-search-pop input::placeholder { color: #888; }
.war-search-pop input::-webkit-search-cancel-button { filter: invert(1); opacity: 0.6; }
.war-search-list { max-height: 60vh; overflow-y: auto; padding: 4px 0; }
.war-search-group { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ff4a4a; padding: 8px 12px 3px; }
.war-search-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: #ddd; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 12px; }
.war-search-item .t { display: block; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.war-search-item .s { display: block; color: #999; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.war-search-item:hover, .war-search-item.active { background: rgba(255,255,255,0.08); }
.war-search-none { padding: 10px 12px; color: #999; font-size: 12px; }
.war-coord-marker { position: relative; cursor: pointer; width: 0; height: 0; }
.war-coord-marker .dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #ffd400; background: rgba(0,0,0,0.35); box-shadow: 0 0 0 2px rgba(0,0,0,0.6), 0 0 12px rgba(255,212,0,0.8); box-sizing: border-box; }
.war-coord-marker .lbl { position: absolute; left: 14px; top: -10px; white-space: nowrap; font: 600 11px/1 system-ui, sans-serif; color: #fff; background: rgba(14,14,16,0.85); border: 1px solid rgba(255,212,0,0.6); padding: 4px 6px; border-radius: 4px; }

/* Tier lock (viewer; view.js reads the level from the snapshot). */
body.war-tier-basic .war-legend, body.war-tier-basic .war-legend-tab { display: none !important; }
body.war-tier-member .war-day-group, body.war-tier-member #nav-prev, body.war-tier-member #nav-next { display: none !important; }
.war-upsell { flex-basis: 100%; margin-top: 6px; font-size: 11px; color: #bbb; text-align: center; line-height: 1.4; }
.war-upsell a { color: #ffd400; }
.war-upsell b { color: #fff; }
.war-daynav:has(.war-upsell) { flex-wrap: wrap; justify-content: center; }
/* Guest: no map, a login box instead. */
body.war-gated .war-legend, body.war-gated .war-legend-tab, body.war-gated .war-daynav,
body.war-gated .war-day-group, body.war-gated .war-lang, body.war-gated #btn-labels { display: none !important; }
.war-gate {
  position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(ellipse at center, #1a1d22 0%, #0b0c0e 75%);
}
.war-gate .box {
  width: 100%; max-width: 420px; padding: 26px 24px; border-radius: 12px; text-align: center;
  background: rgba(14,15,18,0.96); border: 1px solid rgba(255,255,255,0.14); color: #ddd;
}
.war-gate h2 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.war-gate p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
.war-gate .btns { display: grid; gap: 8px; margin-bottom: 18px; }
.war-gate .btns a {
  display: block; padding: 11px 12px; border-radius: 7px; font-weight: 600; font-size: 14px; text-decoration: none; color: #fff;
  background: #2a2f37; border: 1px solid rgba(255,255,255,0.12);
}
.war-gate .btns a.btn-g { background: #c62828; border-color: transparent; }
.war-gate .btns a.btn-p { background: #1c1c1c; }
.war-gate .btns a:hover { filter: brightness(1.15); }
.war-gate .up { margin: 0; font-size: 13px; color: #aaa; }
.war-gate .up a { color: #ffd400; }
.war-gate .up b { color: #fff; }
.war-daynav:has(.war-upsell) { border-radius: 14px; max-width: min(520px, calc(100vw - 32px)); }
