/* Alliance Tower — painted atlas v11 (bust density + clutter + ornate HUD) */
:root {
  --bg: #0b0d12;
  --bg2: #12151d;
  --panel: #161a24;
  --line: #2a3142;
  --text: #e8ecf4;
  --muted: #8b93a7;
  --accent: #7c5cff;
  --accent2: #3de7c2;
  --danger: #ff5c7a;
  --gold: #f5c542;
  --good: #5ddea8;
  --warn: #f0c14a;
  --radius: 14px;
  --frame-gold: #d4b04a;
  --frame-gold-bright: #f0d78c;
  --frame-gold-dim: rgba(212, 176, 74, 0.55);
  --frame-inner: rgba(245, 197, 66, 0.16);
  --frame-edge: rgba(90, 68, 22, 0.95);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --a0: #e04545;
  --a1: #3b82f6;
  --a2: #f97316;
  --a3: #22c55e;
  --a4: #a855f7;
  --mountain: #5a5348;
  --lake: #1a4a6e;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #1a1610;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.war-app {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(90, 76, 48, 0.2), rgba(28, 22, 14, 0.55)),
    url("assets/map/map_table.jpg?v=tower15") center / 560px 560px repeat;
}

/* ——— overlays ——— */
.overlay-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(11, 13, 18, 0.92) 0%, rgba(11, 13, 18, 0.55) 70%, transparent);
  pointer-events: none;
}
.overlay-bar .brand,
.overlay-bar .nav { pointer-events: auto; }
.brand h1 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.brand .tag {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.8rem; }
.nav a { color: var(--muted); }
.nav a.active { color: var(--text); font-weight: 600; }

.overlay-hud {
  position: absolute;
  top: 48px;
  left: 10px;
  right: 320px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: stretch;
  padding: 8px 10px;
  background:
    linear-gradient(180deg, rgba(90, 68, 28, 0.62) 0%, rgba(48, 34, 16, 0.28) 45%, transparent 75%),
    repeating-linear-gradient(135deg, rgba(245, 197, 66, 0.07) 0 1px, transparent 1px 4px),
    url("assets/map/parchment_hud.jpg?v=tower15"),
    rgba(22, 16, 10, 0.88);
  background-size: auto, auto, 320px 320px, auto;
  background-blend-mode: normal, normal, multiply, normal;
  border: 2px solid rgba(212, 176, 74, 0.72);
  border-radius: 12px;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(240, 215, 140, 0.28),
    inset 0 1px 0 rgba(255, 230, 160, 0.35),
    inset 0 -12px 28px rgba(0, 0, 0, 0.25),
    0 0 22px rgba(201, 162, 39, 0.14);
  outline: 1px solid rgba(90, 68, 22, 0.85);
  outline-offset: -5px;
  backdrop-filter: blur(8px);
  max-width: calc(100% - 330px);
}
@media (max-width: 900px) {
  .overlay-hud {
    right: 10px;
    max-width: none;
    top: 44px;
  }
}
.hud-cell {
  padding: 4px 8px;
  min-width: 64px;
}
.hud-cell.vault-strip .vault-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.hud-cell.vault-strip .vault-line span { color: var(--text); }
.hud-cell.vault-strip .gold-amt { color: var(--gold); }
.hud-cell .label {
  display: block;
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hud-cell strong { font-size: 1rem; }
.hud-cell.hp strong { color: var(--good); }
.hud-cell.crimson strong { color: var(--a0); }
.hud-note {
  flex: 1 1 180px;
  align-self: center;
  font-size: 0.72rem;
  color: var(--gold);
  line-height: 1.3;
  padding: 4px 8px;
  border-left: 1px solid var(--line);
}

.overlay-toolbar {
  position: absolute;
  top: auto;
  bottom: 36px;
  left: 10px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: min(720px, calc(100% - 330px));
  padding: 8px;
  background: rgba(22, 26, 36, 0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
@media (max-width: 900px) {
  .overlay-toolbar { max-width: calc(100% - 20px); bottom: 28px; }
}
.power-pick, .siege-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 8px;
}
.power-pick select {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 5px;
}
.siege-toggle input { accent-color: var(--gold); }

.btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  background: var(--bg2);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}
.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn.primary {
  background: linear-gradient(135deg, #5a3fd4, var(--accent));
  border-color: transparent;
}
.btn.gold {
  background: linear-gradient(135deg, #c9a028, var(--gold));
  color: #1a1200;
  border-color: transparent;
}
.btn.ghost { background: transparent; }
.btn.danger {
  background: #3a1520;
  border-color: #7a3044;
  color: var(--danger);
}
.btn.good {
  background: #153528;
  border-color: #2a6b4e;
  color: var(--good);
}
.btn.sm { padding: 5px 9px; font-size: 0.78rem; }

/* ——— fullscreen map stage ——— */
.map-stage {
  touch-action: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  cursor: grab;
  /* tower13 — full-stage living map-table (olive parchment, not void) */
  background-color: #4a3e28;
  background-image:
    radial-gradient(ellipse at 50% 42%, rgba(110, 96, 58, 0.12) 0%, rgba(40, 32, 18, 0.22) 70%, rgba(24, 18, 12, 0.4) 100%),
    url("assets/map/map_table.jpg?v=tower15");
  background-size: cover, 560px 560px;
  background-position: center, center;
  background-repeat: no-repeat, repeat;
  background-blend-mode: normal, normal;
  user-select: none;
}
.map-stage.panning { cursor: grabbing; }
.map-stage.fight-dim { filter: brightness(0.35); pointer-events: none; }

.map-world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.map-canvas {
  display: block;
  background: transparent;
  image-rendering: auto;
  cursor: grab;
}
.map-stage.panning .map-canvas { cursor: grabbing; }

.pan-hint {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  padding: 4px 12px;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.6s;
}
.pan-hint.fade { opacity: 0; }

/* Hex chips removed — map is painted on #mapCanvas (heightmap atlas) */

.overlay-legend {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--muted);
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  max-width: 90vw;
  pointer-events: none;
}
.legend .lg::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: -1px;
}
.legend .a0::before { background: var(--a0); }
.legend .a1::before { background: var(--a1); }
.legend .a2::before { background: var(--a2); }
.legend .a3::before { background: var(--a3); }
.legend .a4::before { background: var(--a4); }
.legend .trash::before { background: #6b7280; }
.legend .boss::before { background: var(--warn); }
.legend .tower::before {
  background: transparent;
  border: 2px solid var(--gold);
  box-sizing: border-box;
}
.legend .crown::before { background: var(--gold); }
.legend .mountain::before { background: var(--mountain); }
.legend .lake::before { background: var(--lake); }

.overlay-side {
  position: absolute;
  top: 48px;
  right: 8px;
  bottom: 48px;
  width: 300px;
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  pointer-events: auto;
  padding: 4px;
}
@media (max-width: 900px) {
  .overlay-side {
    display: none;
  }
}
.panel {
  padding: 10px 12px;
  background: rgba(22, 26, 36, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.panel h2 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.log-panel { flex: 1; min-height: 100px; display: flex; flex-direction: column; }
.log-panel .log-feed { flex: 1; max-height: none; }

#standingsList {
  list-style: none;
  margin: 0;
  padding: 0;
}
#standingsList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}
#standingsList li:last-child { border-bottom: none; }
#standingsList .name { font-weight: 600; }
#standingsList .name.a0 { color: var(--a0); }
#standingsList .name.a1 { color: var(--a1); }
#standingsList .name.a2 { color: var(--a2); }
#standingsList .name.a3 { color: var(--a3); }
#standingsList .name.a4 { color: var(--a4); }
#standingsList .meta { color: var(--muted); font-size: 0.72rem; }
#standingsList .out { opacity: 0.55; text-decoration: line-through; }

.tile-detail { font-size: 0.84rem; line-height: 1.45; }
.tile-detail .muted { color: var(--muted); }
.tile-detail .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(42, 49, 66, 0.45);
}
.tile-detail .row:last-child { border-bottom: none; }
.tile-detail .k { color: var(--muted); flex-shrink: 0; }
.tile-detail .intel {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(245, 197, 66, 0.35);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--warn);
}
.tile-detail .intel .stale { color: var(--muted); font-size: 0.72rem; }
.tile-detail .garrison-flag {
  color: var(--gold);
  font-weight: 600;
}
.tile-detail .section-label {
  margin: 10px 0 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent2);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.log-feed {
  max-height: 180px;
  overflow-y: auto;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}
.log-feed .entry {
  padding: 3px 0;
  border-bottom: 1px solid rgba(42, 49, 66, 0.6);
}
.log-feed .entry.highlight { color: var(--gold); }
.log-feed .entry.bad { color: var(--danger); }
.log-feed .entry.good { color: var(--good); }

.overlay-foot {
  position: absolute;
  bottom: 2px;
  left: 8px;
  z-index: 15;
  margin: 0;
  font-size: 0.65rem;
  color: var(--muted);
  pointer-events: none;
}
.overlay-foot a { pointer-events: auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%) translateY(20px);
  background: #1c2230;
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 80;
  font-size: 0.88rem;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 16px;
}
.modal[hidden] { display: none !important; }
.modal-card {
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow);
}
.modal-card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--gold);
}
.modal-card .muted {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 14px;
}
.modal-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

/* ——— Fight scene ——— */
.fight-scene {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 30%, #2a1830 0%, #0b0d12 55%),
    linear-gradient(180deg, #1a1020 0%, #0b0d12 100%);
  padding: 16px;
  animation: fightIn 0.28s ease-out;
}
.fight-scene[hidden] { display: none !important; }
@keyframes fightIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}
.fight-inner {
  width: min(640px, 100%);
  text-align: center;
}
.fight-banner {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent2);
}
.fight-title {
  margin: 0 0 20px;
  font-size: 1.35rem;
  color: var(--gold);
}
.fight-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.fighter {
  background: rgba(22, 26, 36, 0.95);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 12px;
  box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
}
.fighter.hit {
  transform: translateX(0) scale(0.98);
  box-shadow: 0 0 0 2px var(--danger);
}
.fighter.you.strike { transform: translateX(6px); }
.fighter.foe.strike { transform: translateX(-6px); }
.fighter-art {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}
.fighter-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.hp-track {
  height: 12px;
  background: #0a0c10;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hp-fill {
  height: 100%;
  width: 100%;
  border-radius: 6px;
  transition: width 0.25s ease;
}
.hp-fill.you { background: linear-gradient(90deg, #2a8a5a, var(--good)); }
.hp-fill.foe { background: linear-gradient(90deg, #8a2040, var(--danger)); }
.hp-nums {
  margin-top: 6px;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.fight-vs {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.fight-round-log {
  min-height: 72px;
  max-height: 120px;
  overflow-y: auto;
  text-align: left;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.fight-round-log .fr {
  padding: 2px 0;
}
.fight-round-log .fr.good { color: var(--good); }
.fight-round-log .fr.bad { color: var(--danger); }
.fight-round-log .fr.hi { color: var(--gold); }
.fight-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.fight-actions .btn {
  min-width: 120px;
  padding: 10px 18px;
  font-size: 0.95rem;
}

@media (max-width: 520px) {
  .fight-arena { grid-template-columns: 1fr; }
  .fight-vs { display: none; }
  .fighter-art { font-size: 2.4rem; }
}

/* ——— Dark fantasy gold frames (Detail / fight / standings) — tower8 ——— */
.panel.detail,
.panel.standings,
.panel.log-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(56, 42, 18, 0.5) 0%, rgba(28, 22, 12, 0.2) 22%, transparent 40%),
    repeating-linear-gradient(
      135deg,
      rgba(245, 197, 66, 0.03) 0 2px,
      transparent 2px 6px
    ),
    rgba(12, 14, 20, 0.96);
  border: 2px solid var(--frame-gold-dim);
  outline: 1px solid var(--frame-edge);
  outline-offset: -5px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.75),
    inset 0 0 0 1px rgba(245, 197, 66, 0.2),
    inset 0 1px 0 rgba(240, 215, 140, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 0 28px rgba(201, 162, 39, 0.12),
    0 14px 40px rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}
.panel.detail::before,
.panel.standings::before,
.panel.log-panel::before,
.panel.detail::after,
.panel.standings::after,
.panel.log-panel::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--frame-gold-bright);
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
}
.panel.detail::before,
.panel.standings::before,
.panel.log-panel::before {
  top: 5px; left: 5px;
  border-right: none; border-bottom: none;
}
.panel.detail::after,
.panel.standings::after,
.panel.log-panel::after {
  bottom: 5px; right: 5px;
  border-left: none; border-top: none;
}
.panel.detail h2,
.panel.standings h2,
.panel.log-panel h2 {
  color: var(--frame-gold-bright);
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--frame-gold-dim);
  padding-bottom: 7px;
  margin-bottom: 9px;
  text-shadow: 0 0 12px rgba(245, 197, 66, 0.25);
}
.panel.detail {
  border-color: rgba(212, 176, 74, 0.85);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(245, 197, 66, 0.22),
    inset 0 1px 0 rgba(240, 215, 140, 0.4),
    0 0 32px rgba(201, 162, 39, 0.18),
    0 14px 40px rgba(0, 0, 0, 0.6);
}
.tile-detail .section-label {
  color: var(--frame-gold-bright);
  border-left: 3px solid var(--frame-gold);
  padding-left: 7px;
}
.tile-detail .intel {
  background: linear-gradient(135deg, rgba(48, 34, 10, 0.75), rgba(0, 0, 0, 0.45));
  border: 1px solid var(--frame-gold-dim);
  box-shadow: inset 0 0 14px rgba(245, 197, 66, 0.1);
}
.detail-actions .btn.primary,
.detail-actions .btn.gold,
.fight-actions .btn.primary,
.fight-actions .btn.gold {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 14px rgba(201, 162, 39, 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  letter-spacing: 0.04em;
}
.detail-actions .btn.gold {
  background: linear-gradient(180deg, #f0d78c 0%, #c9a028 48%, #8a6a14 100%);
  border: 1px solid #f5e2a0;
  color: #1a1200;
  font-weight: 700;
}
.detail-actions .btn.primary {
  background: linear-gradient(180deg, #8a72ff 0%, #5a3fd4 50%, #3d2a9e 100%);
  border: 1px solid #b5a4ff;
}
.detail-actions .btn.danger {
  background: linear-gradient(180deg, #5a2030 0%, #3a1520 100%);
  border: 1px solid #c05068;
  box-shadow: 0 0 12px rgba(255, 92, 122, 0.2);
}

.fight-inner {
  position: relative;
  padding: 20px 22px 24px;
  background:
    linear-gradient(180deg, rgba(56, 42, 16, 0.55) 0%, rgba(14, 12, 18, 0.94) 38%),
    repeating-linear-gradient(135deg, rgba(245, 197, 66, 0.035) 0 2px, transparent 2px 7px),
    rgba(8, 8, 12, 0.97);
  border: 2px solid rgba(212, 176, 74, 0.8);
  outline: 1px solid var(--frame-edge);
  outline-offset: -6px;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(245, 197, 66, 0.18),
    inset 0 1px 0 rgba(240, 215, 140, 0.35),
    0 0 48px rgba(201, 162, 39, 0.2),
    0 28px 64px rgba(0, 0, 0, 0.7);
}
.fighter {
  background: linear-gradient(180deg, rgba(42, 32, 18, 0.95), rgba(14, 12, 18, 0.96));
  border: 2px solid var(--frame-gold-dim);
  box-shadow:
    inset 0 0 0 1px rgba(245, 197, 66, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.5);
}
.fighter.you {
  border-color: rgba(93, 222, 168, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(93, 222, 168, 0.15),
    0 0 18px rgba(93, 222, 168, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.5);
}
.fighter.foe {
  border-color: rgba(255, 92, 122, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 92, 122, 0.12),
    0 0 18px rgba(255, 92, 122, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.5);
}
.fight-round-log {
  border: 1px solid var(--frame-gold-dim);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.4);
}
.fight-banner {
  color: var(--frame-gold-bright);
  text-shadow: 0 0 10px rgba(245, 197, 66, 0.35);
}
.fight-actions .btn.gold {
  background: linear-gradient(180deg, #f0d78c 0%, #c9a028 48%, #8a6a14 100%);
  border: 1px solid #f5e2a0;
  color: #1a1200;
  font-weight: 700;
}
.overlay-hud {
  /* density carried by tower10 block above; keep gold rim reinforcement */
  border-color: rgba(212, 176, 74, 0.78);
}
.overlay-toolbar {
  border: 1px solid var(--frame-gold-dim);
  box-shadow: inset 0 1px 0 rgba(245, 197, 66, 0.1);
}


/* ——— tower11 ornate parchment / filigree chrome (map HUD + side panels) ——— */
.overlay-hud::before,
.overlay-hud::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--frame-gold-bright);
  opacity: 0.92;
  pointer-events: none;
  z-index: 2;
  box-shadow:
    0 0 10px rgba(245, 197, 66, 0.4),
    inset 0 0 6px rgba(245, 197, 66, 0.25);
}
.overlay-hud::before {
  top: 3px; left: 3px;
  border-right: none; border-bottom: none;
  border-top-left-radius: 4px;
  background:
    radial-gradient(circle at 6px 6px, rgba(240, 215, 140, 0.7) 0 2px, transparent 3px),
    url("assets/map/filigree_corner.png?v=tower15") top left / 28px 28px no-repeat;
}
.overlay-hud::after {
  bottom: 3px; right: 3px;
  border-left: none; border-top: none;
  border-bottom-right-radius: 4px;
  background:
    radial-gradient(circle at 16px 16px, rgba(240, 215, 140, 0.65) 0 2px, transparent 3px);
  transform: none;
}
.overlay-hud {
  position: absolute;
  border: 2px solid rgba(212, 176, 74, 0.72) !important;
  box-shadow:
    inset 0 0 0 1px rgba(245, 197, 66, 0.18),
    inset 0 1px 0 rgba(255, 230, 160, 0.12),
    0 0 18px rgba(0, 0, 0, 0.35);
  background-image:
    linear-gradient(180deg, rgba(90, 68, 28, 0.55) 0%, rgba(28, 22, 12, 0.2) 36%, transparent 60%),
    repeating-linear-gradient(135deg, rgba(245, 197, 66, 0.07) 0 1px, transparent 1px 5px),
    url("assets/map/parchment_hud.jpg?v=tower15") !important;
  background-size: auto, auto, 320px 320px !important;
  background-blend-mode: normal, normal, multiply !important;
}
.hud-cell {
  position: relative;
  background:
    linear-gradient(180deg, rgba(245, 197, 66, 0.1), transparent 72%),
    rgba(18, 14, 10, 0.25);
  border: 1px solid rgba(212, 176, 74, 0.28);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.hud-cell .label {
  color: #e0c068;
  letter-spacing: 0.11em;
  text-shadow: 0 0 10px rgba(245, 197, 66, 0.28);
}
.side-col .panel.detail,
.side-col .panel.standings,
.side-col .panel.log-panel,
.panel.detail,
.panel.standings,
.panel.log-panel {
  background:
    linear-gradient(180deg, rgba(88, 64, 24, 0.72) 0%, rgba(28, 22, 12, 0.3) 26%, transparent 50%),
    repeating-linear-gradient(135deg, rgba(245, 197, 66, 0.07) 0 1px, transparent 1px 4px),
    url("assets/map/parchment_hud.jpg?v=tower15"),
    rgba(12, 14, 20, 0.96) !important;
  background-size: auto, auto, 340px 340px, auto !important;
  background-blend-mode: normal, normal, multiply, normal !important;
  border: 2px solid rgba(212, 176, 74, 0.82) !important;
  box-shadow:
    inset 0 0 0 1px rgba(245, 197, 66, 0.14),
    0 0 16px rgba(0, 0, 0, 0.35) !important;
}
.panel.detail::before,
.panel.standings::before,
.panel.log-panel::before,
.panel.detail::after,
.panel.standings::after,
.panel.log-panel::after {
  width: 18px;
  height: 18px;
  opacity: 0.95;
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.4);
  border-width: 2px;
}
/* secondary corner marks + filigree density */
.panel.detail,
.panel.standings,
.panel.log-panel {
  background-image:
    linear-gradient(180deg, rgba(100, 74, 30, 0.78) 0%, rgba(32, 24, 12, 0.4) 30%, transparent 58%),
    repeating-linear-gradient(135deg, rgba(245, 197, 66, 0.1) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 10px 10px, rgba(240, 215, 140, 0.7) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), rgba(240, 215, 140, 0.7) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 10px) 10px, rgba(240, 215, 140, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 10px calc(100% - 10px), rgba(240, 215, 140, 0.5) 0 2px, transparent 3px),
    url("assets/map/filigree_corner.png?v=tower15"),
    url("assets/map/parchment_hud.jpg?v=tower15"),
    rgba(14, 12, 10, 0.94);
  background-size: auto, auto, auto, auto, auto, auto, 36px 36px, 280px 280px, auto;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, left top, center, 0 0;
  background-repeat: no-repeat, repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat;
  background-blend-mode: normal, normal, normal, normal, normal, normal, soft-light, multiply, normal;
}
.overlay-toolbar {
  background:
    linear-gradient(180deg, rgba(72, 52, 20, 0.55), rgba(16, 14, 12, 0.88)),
    repeating-linear-gradient(90deg, rgba(245, 197, 66, 0.06) 0 1px, transparent 1px 6px),
    url("assets/map/parchment_hud.jpg?v=tower15");
  background-size: auto, auto, 340px 340px;
  background-blend-mode: normal, normal, soft-light;
  border: 2px solid rgba(212, 176, 74, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(245, 197, 66, 0.28),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.45);
}
.overlay-legend {
  background:
    linear-gradient(180deg, rgba(48, 36, 18, 0.78), rgba(8, 8, 12, 0.8)),
    url("assets/map/parchment_hud.jpg?v=tower15");
  background-size: auto, 260px 260px;
  background-blend-mode: normal, soft-light;
  border: 1px solid rgba(212, 176, 74, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(245, 197, 66, 0.12),
    0 0 12px rgba(0, 0, 0, 0.3);
}
.map-stage::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 90% 80% at 50% 45%, transparent 58%, rgba(30, 24, 14, 0.08) 88%, rgba(18, 14, 10, 0.16) 100%);
  mix-blend-mode: multiply;
  opacity: 0.4;
}


/* ——— tower12 denser parchment / filigree (map HUD only; fight CSS untouched) ——— */
.overlay-hud {
  border: 2px solid rgba(232, 196, 96, 0.88) !important;
  box-shadow:
    inset 0 0 0 1px rgba(245, 197, 66, 0.28),
    inset 0 2px 0 rgba(255, 235, 180, 0.18),
    inset 0 -1px 0 rgba(80, 50, 10, 0.35),
    0 0 22px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(120, 80, 20, 0.35) !important;
  background-image:
    linear-gradient(180deg, rgba(110, 82, 30, 0.72) 0%, rgba(40, 28, 12, 0.35) 28%, transparent 58%),
    repeating-linear-gradient(135deg, rgba(245, 197, 66, 0.11) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 8px 8px, rgba(255, 230, 150, 0.75) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), rgba(255, 230, 150, 0.7) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 8px) 8px, rgba(240, 210, 120, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 8px calc(100% - 8px), rgba(240, 210, 120, 0.55) 0 2px, transparent 3px),
    url("assets/map/filigree_corner.png?v=tower15"),
    url("assets/map/parchment_hud.jpg?v=tower15") !important;
  background-size: auto, auto, auto, auto, auto, auto, 34px 34px, 280px 280px !important;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, left top, center !important;
  background-repeat: no-repeat, repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat !important;
  background-blend-mode: normal, normal, normal, normal, normal, normal, soft-light, multiply !important;
}
.overlay-hud::before {
  width: 26px; height: 26px;
  top: 2px; left: 2px;
  background:
    radial-gradient(circle at 7px 7px, rgba(255, 230, 150, 0.85) 0 2.5px, transparent 3.5px),
    url("assets/map/filigree_corner.png?v=tower15") top left / 32px 32px no-repeat;
  box-shadow: 0 0 14px rgba(245, 197, 66, 0.55), inset 0 0 8px rgba(245, 197, 66, 0.3);
}
.overlay-hud::after {
  width: 26px; height: 26px;
  bottom: 2px; right: 2px;
  background:
    radial-gradient(circle at 18px 18px, rgba(255, 230, 150, 0.8) 0 2.5px, transparent 3.5px),
    url("assets/map/filigree_corner.png?v=tower15") bottom right / 32px 32px no-repeat;
  transform: rotate(180deg);
  box-shadow: 0 0 14px rgba(245, 197, 66, 0.45);
}
/* pointed parchment strip accents (KC-like banner edges) */
.overlay-hud .hud-cell {
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
  padding-right: 10px;
  border: 1px solid rgba(212, 176, 74, 0.42);
  background:
    linear-gradient(90deg, rgba(245, 197, 66, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(245, 197, 66, 0.12), transparent 75%),
    rgba(18, 14, 10, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(245, 197, 66, 0.08);
}
.panel.detail,
.panel.standings,
.panel.log-panel {
  background-image:
    linear-gradient(180deg, rgba(120, 88, 32, 0.85) 0%, rgba(36, 26, 12, 0.45) 28%, transparent 56%),
    repeating-linear-gradient(135deg, rgba(245, 197, 66, 0.12) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 10px 10px, rgba(255, 230, 150, 0.8) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), rgba(255, 230, 150, 0.8) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 10px) 10px, rgba(240, 215, 140, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 10px calc(100% - 10px), rgba(240, 215, 140, 0.55) 0 2px, transparent 3px),
    url("assets/map/filigree_corner.png?v=tower15"),
    url("assets/map/filigree_corner.png?v=tower15"),
    url("assets/map/parchment_hud.jpg?v=tower15"),
    rgba(14, 12, 10, 0.94) !important;
  background-size: auto, auto, auto, auto, auto, auto, 40px 40px, 28px 28px, 260px 260px, auto !important;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, left top, right bottom, center, 0 0 !important;
  background-repeat: no-repeat, repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat !important;
  background-blend-mode: normal, normal, normal, normal, normal, normal, soft-light, soft-light, multiply, normal !important;
  border: 2px solid rgba(232, 196, 96, 0.9) !important;
  box-shadow:
    inset 0 0 0 1px rgba(245, 197, 66, 0.2),
    inset 0 2px 0 rgba(255, 230, 160, 0.12),
    0 0 18px rgba(0, 0, 0, 0.4) !important;
}
.overlay-toolbar {
  background:
    linear-gradient(180deg, rgba(96, 70, 24, 0.7), rgba(16, 14, 12, 0.9)),
    repeating-linear-gradient(90deg, rgba(245, 197, 66, 0.09) 0 1px, transparent 1px 5px),
    url("assets/map/filigree_corner.png?v=tower15"),
    url("assets/map/parchment_hud.jpg?v=tower15");
  background-size: auto, auto, 30px 30px, 300px 300px;
  background-position: 0 0, 0 0, left top, center;
  background-repeat: no-repeat, repeat, no-repeat, repeat;
  background-blend-mode: normal, normal, soft-light, soft-light;
  border: 2px solid rgba(232, 196, 96, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(245, 197, 66, 0.35),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 8px 26px rgba(0, 0, 0, 0.5);
}
.overlay-legend {
  background:
    linear-gradient(180deg, rgba(64, 46, 20, 0.85), rgba(8, 8, 12, 0.82)),
    repeating-linear-gradient(135deg, rgba(245, 197, 66, 0.08) 0 1px, transparent 1px 5px),
    url("assets/map/parchment_hud.jpg?v=tower15");
  background-size: auto, auto, 240px 240px;
  background-blend-mode: normal, normal, soft-light;
  border: 1px solid rgba(232, 196, 96, 0.65);
}


/* ——— tower13 painted strips / laurel rank chrome (map HUD only; fight CSS untouched) ——— */
.overlay-hud {
  border: none !important;
  border-radius: 10px !important;
  outline: none !important;
  padding: 10px 14px 10px 18px !important;
  background-color: transparent !important;
  background-image:
    url("assets/map/filigree_corner.png?v=tower15"),
    url("assets/map/filigree_corner.png?v=tower15"),
    url("assets/map/hud_strip.png?v=tower15"),
    url("assets/map/hud_panel.jpg?v=tower15") !important;
  background-size: 36px 36px, 28px 28px, 100% 100%, cover !important;
  background-position: left top, right bottom, center, center !important;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat !important;
  background-blend-mode: soft-light, soft-light, normal, multiply !important;
  box-shadow:
    0 0 0 2px rgba(232, 196, 96, 0.75),
    0 0 0 4px rgba(60, 40, 12, 0.55),
    inset 0 1px 0 rgba(255, 230, 160, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.45) !important;
  clip-path: polygon(0 8%, 2% 0, 98% 0, 100% 8%, 100% 92%, 98% 100%, 2% 100%, 0 92%);
}
.overlay-hud::before,
.overlay-hud::after {
  width: 30px !important;
  height: 30px !important;
  border: none !important;
  box-shadow: none !important;
  background: url("assets/map/filigree_corner.png?v=tower15") center / contain no-repeat !important;
  opacity: 0.95;
}
.overlay-hud::before { top: 2px; left: 2px; transform: none; }
.overlay-hud::after { bottom: 2px; right: 2px; transform: rotate(180deg); }

.overlay-hud .hud-cell {
  clip-path: none;
  border: none;
  border-radius: 4px;
  padding: 6px 14px 6px 12px;
  min-width: 70px;
  background:
    url("assets/map/hud_cell_strip.png?v=tower15") center / 100% 100% no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(245, 197, 66, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.25);
}
.overlay-hud .hud-cell .label {
  color: #f0d78c;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 8px rgba(245, 197, 66, 0.25);
}
.overlay-hud .hud-cell strong {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.overlay-hud .hud-note {
  border-left: 1px solid rgba(232, 196, 96, 0.35);
  color: #e8c868;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* laurel rank chrome on Standings */
.panel.standings h2.rank-laurel,
h2.rank-laurel {
  position: relative;
  padding-left: 36px;
  background: linear-gradient(90deg, rgba(120, 88, 32, 0.45), transparent 70%);
  border-radius: 4px;
}
.panel.standings h2.rank-laurel::before,
h2.rank-laurel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: url("assets/map/laurel_accent.png?v=tower15") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(245, 197, 66, 0.45));
}
.panel.standings h2.rank-laurel::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);
  width: 28px;
  height: 28px;
  background: url("assets/map/laurel_accent.png?v=tower15") center / contain no-repeat;
  opacity: 0.85;
  filter: drop-shadow(0 0 3px rgba(245, 197, 66, 0.35));
}

.panel.detail,
.panel.standings,
.panel.log-panel {
  background-image:
    url("assets/map/filigree_corner.png?v=tower15"),
    url("assets/map/filigree_corner.png?v=tower15"),
    url("assets/map/laurel_accent.png?v=tower15"),
    url("assets/map/hud_panel.jpg?v=tower15") !important;
  background-size: 38px 38px, 30px 30px, 42px 42px, cover !important;
  background-position: left top, right bottom, right 8px top 6px, center !important;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat !important;
  background-blend-mode: soft-light, soft-light, normal, multiply !important;
  border: 2px solid rgba(232, 196, 96, 0.88) !important;
  box-shadow:
    inset 0 0 0 1px rgba(245, 197, 66, 0.18),
    inset 0 2px 0 rgba(255, 230, 160, 0.1),
    0 0 20px rgba(0, 0, 0, 0.4) !important;
}

.overlay-toolbar {
  background:
    url("assets/map/hud_strip.png?v=tower15") center / 100% 100% no-repeat,
    url("assets/map/hud_panel.jpg?v=tower15") center / cover no-repeat;
  background-blend-mode: normal, multiply;
  border: 2px solid rgba(232, 196, 96, 0.85);
  border-radius: 10px;
  clip-path: polygon(0 12%, 1.5% 0, 98.5% 0, 100% 12%, 100% 88%, 98.5% 100%, 1.5% 100%, 0 88%);
  box-shadow:
    inset 0 1px 0 rgba(245, 197, 66, 0.3),
    0 8px 26px rgba(0, 0, 0, 0.5);
}
.overlay-legend {
  background:
    url("assets/map/hud_panel.jpg?v=tower15") center / cover no-repeat;
  border: 1px solid rgba(232, 196, 96, 0.7);
  box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.12);
}


.panel.standings { overflow: visible; }
.overlay-side .panel.standings { overflow: visible; }

/* ——— tower14 richer banners / laurel depth / alliance strip language (map HUD only) ——— */
.overlay-hud {
  padding: 12px 16px 12px 20px !important;
  background-image:
    url("assets/map/filigree_corner.png?v=tower15"),
    url("assets/map/filigree_corner.png?v=tower15"),
    url("assets/map/hud_strip.png?v=tower15"),
    url("assets/map/hud_panel.jpg?v=tower15") !important;
  background-size: 42px 42px, 32px 32px, 100% 100%, cover !important;
  box-shadow:
    0 0 0 2px rgba(232, 196, 96, 0.85),
    0 0 0 5px rgba(50, 34, 10, 0.55),
    inset 0 1px 0 rgba(255, 235, 170, 0.28),
    inset 0 -2px 8px rgba(0, 0, 0, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.5) !important;
}
.overlay-hud .hud-cell {
  background:
    url("assets/map/alliance_banner.png?v=tower15") center / 100% 100% no-repeat,
    url("assets/map/hud_cell_strip.png?v=tower15") center / 100% 100% no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(245, 197, 66, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.3);
  min-width: 74px;
}

/* Standings — full laurel wreath header + alliance banner rows */
.panel.standings h2.rank-laurel,
h2.rank-laurel {
  position: relative;
  text-align: center;
  padding: 16px 58px 18px;
  margin-bottom: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #ffe6a0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 14px rgba(245, 197, 66, 0.45);
  background:
    url("assets/map/laurel_header.png?v=tower15") center / 100% 100% no-repeat,
    url("assets/map/alliance_banner.png?v=tower15") center / 100% 100% no-repeat,
    linear-gradient(90deg, rgba(80, 55, 18, 0.65), rgba(120, 88, 32, 0.4), rgba(80, 55, 18, 0.65));
  border-radius: 6px;
  border: 1px solid rgba(232, 196, 96, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 230, 160, 0.3), 0 4px 14px rgba(0, 0, 0, 0.45);
  overflow: hidden; /* keep ornaments inside scroll parent */
}
.panel.standings h2.rank-laurel::before,
h2.rank-laurel::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: url("assets/map/laurel_accent.png?v=tower15") center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(245, 197, 66, 0.7)) brightness(1.15);
  opacity: 1;
  z-index: 2;
  pointer-events: none;
}
.panel.standings h2.rank-laurel::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);
  width: 52px;
  height: 52px;
  background: url("assets/map/laurel_accent.png?v=tower15") center / contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(245, 197, 66, 0.6)) brightness(1.15);
  opacity: 1;
  z-index: 2;
  pointer-events: none;
}

#standingsList li {
  position: relative;
  padding: 7px 10px 7px 12px;
  margin: 3px 0;
  border-bottom: none;
  border-radius: 4px;
  background:
    url("assets/map/alliance_banner.png?v=tower15") center / 100% 100% no-repeat;
  background-color: rgba(30, 22, 12, 0.35);
  box-shadow: inset 0 0 0 1px rgba(232, 196, 96, 0.18);
}
#standingsList li:first-child {
  box-shadow:
    inset 0 0 0 1px rgba(245, 197, 66, 0.45),
    0 0 10px rgba(245, 197, 66, 0.15);
}
#standingsList .meta {
  color: #c8b070;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.panel.detail,
.panel.standings,
.panel.log-panel {
  background-image:
    url("assets/map/filigree_corner.png?v=tower15"),
    url("assets/map/filigree_corner.png?v=tower15"),
    url("assets/map/laurel_accent.png?v=tower15"),
    url("assets/map/hud_panel.jpg?v=tower15") !important;
  background-size: 44px 44px, 34px 34px, 52px 52px, cover !important;
  background-position: left top, right bottom, right 6px top 4px, center !important;
  border: 2px solid rgba(232, 196, 96, 0.92) !important;
  box-shadow:
    inset 0 0 0 1px rgba(245, 197, 66, 0.22),
    inset 0 2px 0 rgba(255, 230, 160, 0.12),
    0 0 24px rgba(0, 0, 0, 0.45) !important;
}

.overlay-toolbar {
  background:
    url("assets/map/hud_strip.png?v=tower15") center / 100% 100% no-repeat,
    url("assets/map/hud_panel.jpg?v=tower15") center / cover no-repeat;
  border: 2px solid rgba(232, 196, 96, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(245, 197, 66, 0.35),
    0 8px 28px rgba(0, 0, 0, 0.55);
}

.panel.detail h2,
.panel.log-panel h2 {
  background: url("assets/map/alliance_banner.png?v=tower15") center / 100% 100% no-repeat;
  padding: 6px 12px;
  border-radius: 4px;
  text-align: center;
  letter-spacing: 0.1em;
  color: #f0d78c;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}


/* ——— tower15 calmer chrome — fewer stacked ornaments; gold readable not busy (map HUD only; fight CSS untouched) ——— */
.overlay-hud {
  padding: 10px 14px 10px 16px !important;
  background-image:
    url("assets/map/hud_strip.png?v=tower15"),
    url("assets/map/hud_panel.jpg?v=tower15") !important;
  background-size: 100% 100%, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-blend-mode: normal, multiply !important;
  box-shadow:
    0 0 0 1px rgba(232, 196, 96, 0.7),
    inset 0 1px 0 rgba(255, 235, 170, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.42) !important;
}
.overlay-hud::before,
.overlay-hud::after {
  opacity: 0.55 !important;
  width: 22px !important;
  height: 22px !important;
}
.overlay-hud .hud-cell {
  background: url("assets/map/hud_cell_strip.png?v=tower15") center / 100% 100% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.16);
  min-width: 70px;
}
.overlay-hud .hud-cell .label {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.panel.standings h2.rank-laurel,
h2.rank-laurel {
  padding: 12px 48px 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 8px rgba(245, 197, 66, 0.25);
  background:
    url("assets/map/laurel_header.png?v=tower15") center / 100% 100% no-repeat,
    linear-gradient(90deg, rgba(80, 55, 18, 0.55), rgba(100, 72, 28, 0.32), rgba(80, 55, 18, 0.55));
  border: 1px solid rgba(232, 196, 96, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 230, 160, 0.18), 0 3px 10px rgba(0, 0, 0, 0.35);
}
.panel.standings h2.rank-laurel::before,
h2.rank-laurel::before {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 3px rgba(245, 197, 66, 0.35));
}
.panel.standings h2.rank-laurel::after {
  width: 36px;
  height: 36px;
  opacity: 0.7;
  filter: drop-shadow(0 0 2px rgba(245, 197, 66, 0.25)) brightness(1.05);
}

#standingsList li {
  background: rgba(30, 22, 12, 0.28);
  box-shadow: inset 0 0 0 1px rgba(232, 196, 96, 0.12);
}
#standingsList li:first-child {
  box-shadow:
    inset 0 0 0 1px rgba(245, 197, 66, 0.35),
    0 0 6px rgba(245, 197, 66, 0.08);
}

.panel.detail,
.panel.standings,
.panel.log-panel {
  background-image:
    url("assets/map/filigree_corner.png?v=tower15"),
    url("assets/map/hud_panel.jpg?v=tower15") !important;
  background-size: 34px 34px, cover !important;
  background-position: left top, center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-blend-mode: soft-light, multiply !important;
  border: 2px solid rgba(232, 196, 96, 0.78) !important;
  box-shadow:
    inset 0 0 0 1px rgba(245, 197, 66, 0.12),
    0 0 16px rgba(0, 0, 0, 0.38) !important;
}

.overlay-toolbar {
  border: 1px solid rgba(232, 196, 96, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(245, 197, 66, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.42);
}

.panel.detail h2,
.panel.log-panel h2 {
  background: none;
  padding: 4px 2px 8px;
  text-align: left;
  border-radius: 0;
}

/* ========================================================================
   FIGHT SCENE PASS — immersive battlefield (tower21). Scoped .fight-* only.
   ======================================================================== */

.fight-scene {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: #06070c;
  animation: fightIn 0.35s ease-out;
}
.fight-scene[hidden] { display: none !important; }

/* —— Land backdrop (parallax layers + mood) —— */
.fight-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.fight-backdrop-sky,
.fight-backdrop-mid,
.fight-backdrop-ground {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.fight-backdrop-sky {
  background-image:
    radial-gradient(ellipse 100% 60% at 50% 0%, #3a2a48 0%, transparent 55%),
    linear-gradient(180deg, #1a1428 0%, #0c1018 55%, #080a10 100%);
  transform: scale(1.05);
}
.fight-backdrop-mid {
  opacity: 0.55;
  background-image: url("assets/map/terrain/mountain.png");
  background-size: 140% auto;
  background-position: center 28%;
  filter: saturate(0.7) brightness(0.45) blur(1px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%);
}
.fight-backdrop-ground {
  top: 42%;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(8, 10, 14, 0.35) 30%, rgba(6, 8, 12, 0.85) 100%),
    url("assets/map/terrain/grass.png");
  background-size: cover, 110% auto;
  background-position: center, center bottom;
  filter: saturate(0.85) brightness(0.55);
}
.fight-backdrop-tint {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 70%, transparent 30%, rgba(0, 0, 0, 0.35) 100%);
  mix-blend-mode: multiply;
  opacity: 0.7;
}

/* Mood variants from contested tile */
.fight-scene.mood-mountains .fight-backdrop-mid {
  background-image: url("assets/map/terrain/mountain.png");
  opacity: 0.75;
  filter: saturate(0.65) brightness(0.5);
}
.fight-scene.mood-mountains .fight-backdrop-ground {
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(10, 12, 16, 0.5) 40%, rgba(6, 8, 12, 0.9) 100%),
    url("assets/map/terrain/dirt.png");
}
.fight-scene.mood-lakes .fight-backdrop-sky {
  background-image:
    radial-gradient(ellipse 100% 55% at 50% 0%, #1e3a55 0%, transparent 55%),
    linear-gradient(180deg, #0e1c2a 0%, #0a121c 60%, #060a10 100%);
}
.fight-scene.mood-lakes .fight-backdrop-mid {
  background-image: url("assets/map/terrain/water.png");
  opacity: 0.5;
  filter: saturate(0.9) brightness(0.55) blur(0.5px);
}
.fight-scene.mood-lakes .fight-backdrop-ground {
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(8, 20, 32, 0.55) 40%, rgba(4, 10, 16, 0.92) 100%),
    url("assets/map/terrain/grass_alt.png");
}
.fight-scene.mood-fancy .fight-backdrop-mid {
  background-image: url("assets/map/terrain/magic.png");
  opacity: 0.65;
  filter: saturate(1.1) brightness(0.55) hue-rotate(-10deg);
}
.fight-scene.mood-fancy .fight-backdrop-sky {
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 10%, #4a2060 0%, transparent 55%),
    linear-gradient(180deg, #1c0e28 0%, #0c0a14 60%, #08060e 100%);
}
.fight-scene.mood-crown .fight-backdrop-mid {
  background-image: url("assets/map/terrain/magic.png");
  opacity: 0.7;
  filter: saturate(1.2) brightness(0.6) sepia(0.25);
}
.fight-scene.mood-crown .fight-backdrop-sky {
  background-image:
    radial-gradient(ellipse 80% 45% at 50% 8%, rgba(245, 197, 66, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, #2a1c10 0%, #100e14 55%, #08060c 100%);
}
.fight-scene.mood-crown .fight-backdrop-tint {
  background: radial-gradient(ellipse at 50% 40%, rgba(245, 197, 66, 0.12) 0%, transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.85;
}
.fight-scene.mood-tower .fight-backdrop-mid {
  background-image: url("assets/map/terrain/dirt_alt.png");
  opacity: 0.6;
  filter: saturate(0.5) brightness(0.4);
}
.fight-scene.mood-tower .fight-backdrop-sky {
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 0%, #3a2830 0%, transparent 50%),
    linear-gradient(180deg, #1a1018 0%, #0a0a10 60%, #060608 100%);
}
.fight-scene.mood-normal .fight-backdrop-mid {
  background-image: url("assets/map/terrain/grass.png");
  opacity: 0.4;
  filter: saturate(0.8) brightness(0.5) blur(1.5px);
}
.fight-scene.owner-tint-a0 .fight-backdrop-tint { background: radial-gradient(ellipse at 70% 50%, rgba(224, 69, 69, 0.18) 0%, transparent 60%); mix-blend-mode: soft-light; }
.fight-scene.owner-tint-a1 .fight-backdrop-tint { background: radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 60%); mix-blend-mode: soft-light; }
.fight-scene.owner-tint-a2 .fight-backdrop-tint { background: radial-gradient(ellipse at 70% 50%, rgba(249, 115, 22, 0.2) 0%, transparent 60%); mix-blend-mode: soft-light; }
.fight-scene.owner-tint-a3 .fight-backdrop-tint { background: radial-gradient(ellipse at 70% 50%, rgba(34, 197, 94, 0.18) 0%, transparent 60%); mix-blend-mode: soft-light; }
.fight-scene.owner-tint-a4 .fight-backdrop-tint { background: radial-gradient(ellipse at 70% 50%, rgba(168, 85, 247, 0.2) 0%, transparent 60%); mix-blend-mode: soft-light; }

.fight-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 28%, rgba(0, 0, 0, 0.45) 72%, rgba(0, 0, 0, 0.88) 100%);
  z-index: 1;
}
.fight-stage-glow {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(900px, 96vw);
  height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(245, 197, 66, 0.08) 0%, transparent 70%);
  z-index: 1;
  filter: blur(2px);
}

.fight-scene .fight-inner {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 18px 18px 14px;
  margin: auto;
  background:
    linear-gradient(180deg, rgba(18, 14, 20, 0.55) 0%, rgba(10, 10, 14, 0.35) 40%, rgba(8, 8, 12, 0.55) 100%);
  border: 2px solid rgba(232, 196, 90, 0.55);
  outline: 1px solid rgba(90, 68, 22, 0.7);
  outline-offset: -7px;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(245, 197, 66, 0.12),
    0 0 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.fight-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 2;
  border: 2px solid var(--frame-gold-bright, #f0d78c);
  opacity: 0.85;
  box-shadow: 0 0 8px rgba(245, 197, 66, 0.3);
}
.fight-corner-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.fight-corner-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.fight-corner-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.fight-corner-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.fight-header {
  position: relative;
  flex: 0 0 auto;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 176, 74, 0.28);
}
.fight-scene .fight-banner {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--frame-gold-bright, #f0d78c);
  text-shadow: 0 0 14px rgba(245, 197, 66, 0.45);
}
.fight-scene .fight-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #f5e6b8;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 0 18px rgba(245, 197, 66, 0.25);
}
.fight-land {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #a8b0c4;
  letter-spacing: 0.04em;
}
.fight-round-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1200;
  background: linear-gradient(180deg, #f0d78c 0%, #c9a028 55%, #8a6a14 100%);
  border: 1px solid #f5e2a0;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 12px rgba(201, 162, 39, 0.35);
}
.fight-round-badge strong {
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

/* —— Battlefield stage: champ LEFT, foes RIGHT —— */
.fight-battlefield {
  position: relative;
  flex: 1 1 auto;
  min-height: 280px;
  max-height: min(52vh, 420px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 8px;
  margin: 4px 0 10px;
  padding: 12px 8px 0;
  overflow: visible;
}

.fight-foe-silhouettes {
  position: absolute;
  right: 6%;
  bottom: 28%;
  display: flex;
  gap: 10px;
  z-index: 0;
  pointer-events: none;
}
.fight-foe-silhouettes .sil {
  width: 56px;
  height: 88px;
  border-radius: 8px 8px 4px 4px;
  background:
    linear-gradient(180deg, rgba(20, 16, 28, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  filter: brightness(0) opacity(0.45);
  transform: translateX(var(--sil-x, 0)) scale(0.85);
  background-size: cover;
  background-position: center top;
  opacity: 0.55;
  filter: grayscale(1) brightness(0.15) opacity(0.55);
}
.fight-foe-silhouettes .sil:nth-child(1) { --sil-x: 18px; }
.fight-foe-silhouettes .sil:nth-child(2) { --sil-x: 36px; opacity: 0.4; }

.fight-combatant {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6px 4px;
  transition: transform 0.14s ease, filter 0.14s ease;
}
.fight-combatant.you { justify-self: start; padding-left: 4%; }
.fight-combatant.foe { justify-self: end; padding-right: 4%; }

.fight-sprite-wrap {
  position: relative;
  width: min(220px, 38vw);
  height: min(260px, 42vw);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 4px;
}
.fight-combatant.you .fight-sprite-wrap {
  width: min(260px, 44vw);
  height: min(300px, 50vw);
}
.fight-sprite {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 20px rgba(245, 197, 66, 0.12));
  user-select: none;
  -webkit-user-drag: none;
}
.fight-combatant.foe .fight-sprite {
  transform: scaleX(-1);
  filter:
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 16px rgba(255, 92, 122, 0.18));
}
.fight-ground-shadow {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 58%;
  height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Pre-fight clash beat — idle ready pose */
.fight-scene.pre-clash .fight-combatant.you {
  animation: fightReadyYou 1.6s ease-in-out infinite;
}
.fight-scene.pre-clash .fight-combatant.foe {
  animation: fightReadyFoe 1.6s ease-in-out infinite;
}
.fight-scene.pre-clash .fight-banner::after {
  content: " · clash about to happen";
  letter-spacing: 0.08em;
  opacity: 0.85;
}
@keyframes fightReadyYou {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(6px) translateY(-3px); }
}
@keyframes fightReadyFoe {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-6px) translateY(-2px); }
}

.fight-combatant.hit {
  filter: brightness(1.35) saturate(1.2);
}
.fight-combatant.you.hit { transform: translateX(-4px); }
.fight-combatant.foe.hit { transform: translateX(4px); }
.fight-combatant.you.strike { transform: translateX(14px); }
.fight-combatant.foe.strike { transform: translateX(-14px); }

/* Nameplates + HP overlaid on battlefield */
.fight-plate {
  width: min(220px, 90%);
  padding: 8px 10px 10px;
  background:
    linear-gradient(180deg, rgba(28, 22, 16, 0.92) 0%, rgba(8, 8, 12, 0.94) 100%);
  border: 1px solid rgba(232, 196, 90, 0.45);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(245, 197, 66, 0.1);
}
.fight-combatant.you .fight-plate {
  border-color: rgba(93, 222, 168, 0.55);
}
.fight-combatant.foe .fight-plate {
  border-color: rgba(255, 92, 122, 0.55);
}
.fight-scene .fighter-tag {
  display: inline-block;
  margin-bottom: 3px;
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid rgba(245, 197, 66, 0.45);
  background: rgba(0, 0, 0, 0.45);
  color: var(--frame-gold-bright, #f0d78c);
}
.fight-scene .fighter-tag.you {
  border-color: rgba(93, 222, 168, 0.5);
  color: #9af0c8;
}
.fight-scene .fighter-tag.foe {
  border-color: rgba(255, 92, 122, 0.5);
  color: #ffb0c0;
}
.fight-scene .fighter-name {
  font-weight: 800;
  font-size: 0.9rem;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  color: #f0f2f8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.fight-scene .hp-block { width: 100%; }
.fight-scene .hp-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  padding: 0 2px;
}
.fight-scene .hp-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--frame-gold-bright, #f0d78c);
}
.fight-scene .hp-nums {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #d0d6e4;
}
.fight-scene .hp-track {
  height: 12px;
  background: linear-gradient(180deg, #050608 0%, #12151c 100%);
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(212, 176, 74, 0.4);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65);
}
.fight-scene .hp-fill {
  height: 100%;
  width: 100%;
  border-radius: 6px;
  transition: width 0.28s ease;
  position: relative;
}
.fight-scene .hp-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 45%);
  pointer-events: none;
}
.fight-scene .hp-fill.you {
  background: linear-gradient(90deg, #1a5c3c 0%, #2a8a5a 40%, #5ddea8 100%);
  box-shadow: 0 0 12px rgba(93, 222, 168, 0.45);
}
.fight-scene .hp-fill.foe {
  background: linear-gradient(90deg, #5a1028 0%, #a02848 40%, #ff5c7a 100%);
  box-shadow: 0 0 12px rgba(255, 92, 122, 0.45);
}
.fight-scene .hp-fill.low {
  animation: fightHpPulse 0.9s ease-in-out infinite;
}
@keyframes fightHpPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

.fight-log-wrap {
  flex: 0 0 auto;
  text-align: left;
  margin-bottom: 10px;
}
.fight-log-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--frame-gold-bright, #f0d78c);
  margin-bottom: 6px;
  padding-left: 2px;
}
.fight-scene .fight-round-log {
  min-height: 56px;
  max-height: 96px;
  overflow-y: auto;
  text-align: left;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.85) 0%, rgba(0, 0, 0, 0.72) 100%);
  border: 1px solid rgba(212, 176, 74, 0.45);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #a8b0c4;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
}
.fight-scene .fight-round-log .fr {
  padding: 2px 0;
  border-bottom: 1px solid rgba(42, 49, 66, 0.4);
}
.fight-scene .fight-round-log .fr:last-child { border-bottom: none; }
.fight-scene .fight-round-log .fr.good { color: #7eecc0; }
.fight-scene .fight-round-log .fr.bad { color: #ff8aa0; }
.fight-scene .fight-round-log .fr.hi {
  color: #f5d76a;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(245, 197, 66, 0.35);
}

.fight-scene .fight-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2px;
}
.fight-scene .fight-actions .btn {
  min-width: 110px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 10px;
}
.fight-scene .fight-actions .btn.danger {
  background: linear-gradient(180deg, #6a2438 0%, #3a1520 100%);
  border: 1px solid #c05068;
  color: #ffe0e8;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 180, 200, 0.2),
    0 0 16px rgba(255, 92, 122, 0.22);
}
.fight-scene .fight-actions .btn.gold {
  background: linear-gradient(180deg, #f0d78c 0%, #c9a028 48%, #8a6a14 100%);
  border: 1px solid #f5e2a0;
  color: #1a1200;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 16px rgba(201, 162, 39, 0.4);
}
.fight-scene .fight-actions .btn.ghost {
  background: rgba(16, 18, 26, 0.85);
  border: 1px solid rgba(168, 176, 196, 0.45);
  color: #c8d0e0;
}
.fight-scene .fight-actions .btn.ghost:hover {
  border-color: rgba(245, 197, 66, 0.55);
  color: #f5e6b8;
}
.fight-hint {
  margin: 10px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #7a8296;
}

@media (max-width: 640px) {
  .fight-battlefield {
    grid-template-columns: 1fr 1fr;
    min-height: 220px;
    max-height: 46vh;
  }
  .fight-combatant.you .fight-sprite-wrap,
  .fight-sprite-wrap {
    width: min(150px, 40vw);
    height: min(180px, 48vw);
  }
  .fight-scene .fight-inner { padding: 14px 10px 12px; border-radius: 0; width: 100%; }
  .fight-foe-silhouettes { display: none; }
}

.zoom-ctl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.zoom-ctl input[type="range"] {
  width: 110px;
  accent-color: var(--gold);
}
#zoomLabel {
  min-width: 2.6em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}


/* ——— tower20 color remap + mine badge chrome ——— */
.remap-panel h2 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.remap-hint {
  margin: 0 0 10px;
  font-size: 0.68rem;
  line-height: 1.35;
}
.remap-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.remap-name {
  min-width: 4.2em;
  font-size: 0.78rem;
  font-weight: 600;
}
.remap-name.a1 { color: var(--a1); }
.remap-name.a2 { color: var(--a2); }
.remap-name.a3 { color: var(--a3); }
.remap-name.a4 { color: var(--a4); }
.remap-row input[type="color"] {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.remap-swatches {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
}
.remap-swatches .swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0;
  cursor: pointer;
}
.remap-swatches .swatch:hover {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
#btnRemapReset {
  margin-top: 4px;
  width: 100%;
}
.legend .lg.a0 {
  font-weight: 700;
  color: var(--a0);
}

/* ============================================================
   tower22 — World pass: parchment war-table, not spreadsheet HUD
   Warm light · serif display · leather/brass · banners · mobile sheet
   ============================================================ */

@font-face {
  font-family: "Cinzel Decorative";
  src: url("assets/fonts/CinzelDecorative-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url("assets/fonts/CinzelDecorative-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("assets/fonts/CrimsonText-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("assets/fonts/CrimsonText-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("assets/fonts/CrimsonText-Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "IM Fell French Canon";
  src: url("assets/fonts/IMFellFrenchCanon-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

.war-app.world-pass {
  --text: #2a1c10;
  --muted: #6a5438;
  --ink: #2a1c10;
  --parchment: #f0e0c0;
  --brass: #b8862e;
  --brass-bright: #e8c878;
  --leather: #5a3218;
  --wood: #3a2414;
  font-family: "Crimson Text", Georgia, "Times New Roman", serif;
}

.war-app.world-pass,
.war-app.world-pass body {
  color: #f4ead4;
}

.war-app.world-pass .brand h1 {
  font-family: "Cinzel Decorative", "IM Fell French Canon", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f8ecd0;
  text-shadow: 0 2px 0 #3a2410, 0 0 18px rgba(232, 200, 120, 0.25);
}
.war-app.world-pass .brand .tag {
  font-family: "IM Fell French Canon", Georgia, serif;
  text-transform: none;
  letter-spacing: 0.04em;
  color: #d4b878;
  font-size: 0.78rem;
}
.war-app.world-pass .nav a {
  font-family: "Crimson Text", Georgia, serif;
  color: #c8b090;
  font-size: 0.92rem;
}
.war-app.world-pass .nav a.active {
  color: #f0d890;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,0.45);
}

/* —— Parchment HUD (bright, welcoming) —— */
.war-app.world-pass .overlay-hud,
.war-app.world-pass .overlay-hud.parchment-hud {
  background:
    linear-gradient(180deg, rgba(255, 244, 214, 0.55) 0%, rgba(232, 210, 168, 0.35) 40%, transparent 70%),
    url("assets/map/parchment_warm.jpg?v=tower22") center / 420px 210px repeat,
    #e8d4a8 !important;
  background-blend-mode: normal, multiply, normal !important;
  border: 3px solid #6a4824 !important;
  border-radius: 6px 14px 6px 14px !important;
  outline: none !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 240, 200, 0.55),
    inset 0 -10px 24px rgba(120, 80, 30, 0.12) !important;
  color: #2a1c10;
  backdrop-filter: none;
}
.war-app.world-pass .overlay-hud::before,
.war-app.world-pass .overlay-hud::after {
  display: none !important; /* no HUD corner brackets */
}
.war-app.world-pass .hud-cell {
  background: rgba(255, 248, 230, 0.35) !important;
  border: 1px solid rgba(106, 72, 36, 0.35) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  min-width: 72px;
  padding: 6px 10px;
}
.war-app.world-pass .hud-cell .label {
  font-family: "IM Fell French Canon", Georgia, serif;
  color: #7a5a30 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  text-shadow: none !important;
  font-size: 0.72rem !important;
}
.war-app.world-pass .hud-cell strong {
  font-family: "Crimson Text", Georgia, serif;
  color: #2a1c10;
  font-size: 1.12rem;
  font-weight: 700;
}
.war-app.world-pass .hud-cell.hp strong { color: #1a6a3a; }
.war-app.world-pass .hud-cell.crimson strong { color: #a82828; }
.war-app.world-pass .hud-cell.vault-strip .vault-line span { color: #2a1c10; }
.war-app.world-pass .hud-cell.vault-strip .gold-amt { color: #8a6010; }
.war-app.world-pass .hud-note {
  color: #6a4828 !important;
  border-left: 2px solid rgba(106, 72, 36, 0.35);
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
}
.war-app.world-pass .banner-cell strong::before {
  content: "";
  display: inline-block;
  width: 10px; height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  background: linear-gradient(180deg, #e04545, #8a2020);
  border: 1px solid #5a1010;
  border-radius: 1px 1px 3px 3px;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.25);
}

/* —— Map tools (always visible) —— */
.war-app.world-pass .overlay-toolbar.map-tools {
  bottom: 42px;
  left: 10px;
  max-width: min(420px, calc(100% - 24px));
  background:
    linear-gradient(180deg, rgba(90, 58, 28, 0.92), rgba(48, 30, 14, 0.94)),
    url("assets/map/leather_panel.jpg?v=tower22") center / cover;
  border: 2px solid #8a6230;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,220,160,0.2);
  color: #f0e0c4;
  gap: 10px;
  padding: 8px 10px;
}
.war-app.world-pass .zoom-ctl {
  color: #e8d4a8;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.war-app.world-pass .zoom-ctl input[type="range"] {
  accent-color: #c9a028;
  width: 110px;
}

/* —— Collapsible Lab tools drawer —— */
.war-app.world-pass .dev-drawer.overlay-dev {
  position: absolute;
  bottom: 42px;
  right: 318px;
  z-index: 22;
  width: min(340px, calc(100% - 28px));
  background:
    linear-gradient(180deg, rgba(70, 42, 20, 0.95), rgba(36, 22, 10, 0.96)),
    url("assets/map/leather_panel.jpg?v=tower22");
  background-size: auto, cover;
  border: 2px solid #6a4020;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  color: #f0e0c4;
  padding: 0;
}
.war-app.world-pass .dev-summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 14px;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.88rem;
  color: #e8c878;
  letter-spacing: 0.03em;
  user-select: none;
}
.war-app.world-pass .dev-summary::-webkit-details-marker { display: none; }
.war-app.world-pass .dev-summary::before {
  content: "▸ ";
  color: #c9a028;
}
.war-app.world-pass .dev-drawer[open] .dev-summary::before { content: "▾ "; }
.war-app.world-pass .dev-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 10px 12px;
  align-items: center;
  border-top: 1px solid rgba(180, 130, 60, 0.35);
}
.war-app.world-pass .power-pick,
.war-app.world-pass .siege-toggle {
  background: rgba(20, 12, 6, 0.45);
  border: 1px solid #6a4828;
  color: #e8d4a8;
  border-radius: 6px;
  font-family: "Crimson Text", Georgia, serif;
}
.war-app.world-pass .power-pick select {
  background: #2a1810;
  color: #f0e0c4;
  border: 1px solid #6a4828;
}

/* —— Buttons: brass / wax / wood (no neon purple) —— */
.war-app.world-pass .btn {
  font-family: "IM Fell French Canon", Georgia, serif;
  border-radius: 6px;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.95rem;
  border: 1px solid #6a4828;
  background: linear-gradient(180deg, #5a3a20, #3a2414);
  color: #f0e0c4;
  box-shadow: 0 2px 0 #1a1008, inset 0 1px 0 rgba(255,220,160,0.15);
}
.war-app.world-pass .btn:hover:not(:disabled) {
  border-color: #c9a028;
  filter: brightness(1.06);
}
.war-app.world-pass .btn.primary {
  background:
    radial-gradient(circle at 35% 30%, rgba(255,200,160,0.25), transparent 55%),
    linear-gradient(180deg, #c44848, #7a1820);
  border-color: #4a1010;
  color: #f8e8c8;
  box-shadow: 0 2px 0 #3a0c10, 0 4px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,200,180,0.25);
}
.war-app.world-pass .btn.gold {
  background: linear-gradient(180deg, #f0d78c 0%, #c9a028 48%, #8a6a14 100%);
  border-color: #f5e2a0;
  color: #2a1a00;
  font-weight: 700;
}
.war-app.world-pass .btn.good {
  background: linear-gradient(180deg, #3a8a58, #1a5a38);
  border-color: #0c3020;
  color: #e8f8e8;
}
.war-app.world-pass .btn.danger {
  background: linear-gradient(180deg, #8a3040, #4a1820);
  border-color: #3a1018;
  color: #f8d0d0;
}
.war-app.world-pass .btn.ghost {
  background: rgba(30, 18, 10, 0.35);
  color: #e8d4a8;
}
.war-app.world-pass .btn.sm {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 0.82rem;
}

/* —— Side war-table panels —— */
.war-app.world-pass .overlay-side.war-table .panel,
.war-app.world-pass .panel.detail,
.war-app.world-pass .panel.standings,
.war-app.world-pass .panel.log-panel,
.war-app.world-pass .panel.remap-panel {
  background:
    linear-gradient(165deg, rgba(255, 244, 214, 0.5) 0%, transparent 45%),
    url("assets/map/parchment_warm.jpg?v=tower22") center / 360px 360px,
    #e4c890 !important;
  background-blend-mode: normal, multiply, normal !important;
  border: 3px solid #6a4824 !important;
  border-radius: 4px 12px 4px 12px !important;
  outline: none !important;
  color: #2a1c10 !important;
  box-shadow:
    0 10px 24px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(255,240,200,0.45) !important;
  backdrop-filter: none;
}
.war-app.world-pass .panel.detail::before,
.war-app.world-pass .panel.standings::before,
.war-app.world-pass .panel.log-panel::before,
.war-app.world-pass .panel.detail::after,
.war-app.world-pass .panel.standings::after,
.war-app.world-pass .panel.log-panel::after {
  display: none !important;
}
.war-app.world-pass .panel h2,
.war-app.world-pass .panel.detail h2,
.war-app.world-pass .panel.standings h2,
.war-app.world-pass .panel.log-panel h2 {
  font-family: "Cinzel Decorative", "IM Fell French Canon", Georgia, serif !important;
  color: #5a3818 !important;
  text-transform: none !important;
  letter-spacing: 0.04em !important;
  font-size: 0.95rem !important;
  text-shadow: none !important;
}
.war-app.world-pass #standingsList li {
  border-bottom: 1px solid rgba(106, 72, 36, 0.28);
  color: #2a1c10;
  align-items: center;
}
.war-app.world-pass #standingsList .name { color: inherit; }
.war-app.world-pass #standingsList .name.a0 { color: #a82828; }
.war-app.world-pass #standingsList .name.a1 { color: #1a4a9a; }
.war-app.world-pass #standingsList .name.a2 { color: #a84810; }
.war-app.world-pass #standingsList .name.a3 { color: #1a6a38; }
.war-app.world-pass #standingsList .name.a4 { color: #6a2a9a; }
.war-app.world-pass #standingsList .meta { color: #6a5438; }
.war-app.world-pass .banner-chip {
  display: inline-block;
  width: 10px; height: 16px;
  flex-shrink: 0;
  border-radius: 1px 1px 3px 3px;
  border: 1px solid rgba(0,0,0,0.35);
  box-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}
.war-app.world-pass .banner-chip.a0 { background: linear-gradient(180deg, #e04545, #8a2020); }
.war-app.world-pass .banner-chip.a1 { background: linear-gradient(180deg, #3b82f6, #1e40af); }
.war-app.world-pass .banner-chip.a2 { background: linear-gradient(180deg, #f97316, #c2410c); }
.war-app.world-pass .banner-chip.a3 { background: linear-gradient(180deg, #22c55e, #15803d); }
.war-app.world-pass .banner-chip.a4 { background: linear-gradient(180deg, #a855f7, #6b21a8); }

.war-app.world-pass .tile-detail .k,
.war-app.world-pass .tile-detail .muted,
.war-app.world-pass .remap-hint.muted { color: #6a5438; }
.war-app.world-pass .tile-detail .row {
  border-bottom: 1px solid rgba(106, 72, 36, 0.22);
}
.war-app.world-pass .tile-detail .section-label {
  color: #8a6010 !important;
  font-family: "IM Fell French Canon", Georgia, serif;
  text-transform: none;
  letter-spacing: 0.03em;
}
.war-app.world-pass .tile-detail .intel {
  background: rgba(255, 248, 230, 0.55);
  border: 1px dashed rgba(106, 72, 36, 0.45);
  color: #5a3818;
}
.war-app.world-pass .log-feed { color: #5a4428; }
.war-app.world-pass .log-feed .entry { border-bottom-color: rgba(106, 72, 36, 0.22); }
.war-app.world-pass .log-feed .entry.highlight { color: #8a6010; }
.war-app.world-pass .log-feed .entry.bad { color: #a82828; }
.war-app.world-pass .log-feed .entry.good { color: #1a6a38; }
.war-app.world-pass .remap-name { font-weight: 700; }
.war-app.world-pass .banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 2px 4px;
  background: rgba(255,248,230,0.45);
  border: 1px solid rgba(106,72,36,0.3);
  border-radius: 4px;
}

.war-app.world-pass .sheet-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid #6a4828;
  background: rgba(255,248,230,0.7);
  color: #5a3818;
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
}

/* —— Legend / foot / toast / modal —— */
.war-app.world-pass .overlay-legend {
  background: rgba(40, 26, 12, 0.72);
  border: 1px solid rgba(180, 130, 60, 0.45);
  color: #e8d4a8;
  font-family: "Crimson Text", Georgia, serif;
  border-radius: 8px;
}
.war-app.world-pass .overlay-foot {
  color: #c8b090;
  font-family: "Crimson Text", Georgia, serif;
}
.war-app.world-pass .overlay-foot a { color: #e8c878; }
.war-app.world-pass .pan-hint {
  background: rgba(40, 26, 12, 0.7);
  color: #e8d4a8;
  font-family: "Crimson Text", Georgia, serif;
  border: 1px solid rgba(180, 130, 60, 0.35);
}
.war-app.world-pass .toast {
  background: #e8d4a8;
  border: 2px solid #6a4824;
  color: #2a1c10;
  font-family: "Crimson Text", Georgia, serif;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}
.war-app.world-pass .modal-card,
.war-app.world-pass .modal-card.parchment-scroll {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 240, 200, 0.45), transparent 50%),
    linear-gradient(165deg, #f0e0c0 0%, #e0c898 45%, #d4b888 100%);
  border: 3px solid #6a4a28;
  border-radius: 4px 18px 4px 18px;
  color: #2a1a0c;
  font-family: "Crimson Text", Georgia, serif;
}
.war-app.world-pass .modal-card h2 {
  font-family: "Cinzel Decorative", Georgia, serif;
  color: #5a3818;
}

/* —— Fight scene: parchment plates, warm field —— */
.war-app.world-pass .fight-title {
  font-family: "Cinzel Decorative", Georgia, serif;
  color: #f0d890;
}
.war-app.world-pass .fight-banner {
  font-family: "IM Fell French Canon", Georgia, serif;
  color: #e8c878;
  text-shadow: none;
}
.war-app.world-pass .fight-plate {
  background:
    linear-gradient(165deg, rgba(255,244,214,0.92), rgba(220,190,140,0.95));
  border: 2px solid #6a4824;
  color: #2a1c10;
  border-radius: 8px;
}
.war-app.world-pass .fighter-name {
  font-family: "IM Fell French Canon", Georgia, serif;
  color: #2a1c10;
}
.war-app.world-pass .fight-log-wrap,
.war-app.world-pass .fight-round-log {
  background: rgba(40, 26, 12, 0.72);
  border: 1px solid rgba(180, 130, 60, 0.4);
  color: #e8d4a8;
  font-family: "Crimson Text", Georgia, serif;
}
.war-app.world-pass .fight-hint {
  font-family: "Crimson Text", Georgia, serif;
  color: #d4b878;
}

/* —— Mobile: bottom sheet for detail —— */
@media (max-width: 900px) {
  .war-app.world-pass .overlay-side.war-table {
    display: flex !important;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    gap: 0;
    background: transparent;
    pointer-events: none;
    transition: max-height 0.28s ease;
    z-index: 30;
  }
  .war-app.world-pass .overlay-side.war-table.sheet-open {
    max-height: 52vh;
    pointer-events: auto;
    padding: 0 8px 8px;
  }
  .war-app.world-pass .overlay-side.war-table > .panel {
    display: none;
  }
  .war-app.world-pass .overlay-side.war-table.sheet-open > .panel.detail {
    display: block;
    position: relative;
    max-height: 48vh;
    overflow-y: auto;
    margin: 0;
    border-radius: 16px 16px 8px 8px !important;
  }
  .war-app.world-pass .overlay-toolbar.map-tools {
    bottom: 52px;
    left: 8px;
    right: 8px;
    max-width: none;
    width: auto;
  }
  .war-app.world-pass .dev-drawer.overlay-dev {
    left: 8px;
    right: 8px;
    bottom: 108px;
    width: auto;
  }
  .war-app.world-pass .overlay-hud {
    right: 10px;
    max-width: none;
  }
  .war-app.world-pass .pan-hint { bottom: 120px; }
}

@media (min-width: 901px) {
  .war-app.world-pass .sheet-close { display: none !important; }
}

/* ============================================================
   tower22 slim top bar — back to Town · pills · menu (no site header)
   ============================================================ */
.war-app.world-pass .top-hud.slim-hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(40, 24, 10, 0.55), transparent);
  pointer-events: none;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.war-app.world-pass .top-hud.slim-hud > * { pointer-events: auto; }
.war-app.world-pass .top-hud.slim-hud::before,
.war-app.world-pass .top-hud.slim-hud::after { display: none !important; }

.war-app.world-pass .back-town {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 2px solid #b8862e;
  background: linear-gradient(180deg, #f3e2c0, #d9bf8e);
  color: #2a1c10 !important;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.war-app.world-pass .menu-btn {
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 2px solid #b8862e;
  background: linear-gradient(180deg, #f3e2c0, #d9bf8e);
  color: #2a1c10;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  flex-shrink: 0;
  cursor: pointer;
}
.war-app.world-pass .status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.war-app.world-pass .status-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(184, 134, 46, 0.85);
  background: linear-gradient(180deg, rgba(243, 226, 192, 0.95), rgba(217, 191, 142, 0.92));
  color: #2a1c10;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.war-app.world-pass .status-chips .chip i {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.war-app.world-pass .ico-moves { background: radial-gradient(circle at 30% 30%, #c8e8ff, #3a6a9a); }
.war-app.world-pass .ico-hp { background: radial-gradient(circle at 30% 30%, #b8f0c8, #1a6a3a); }
.war-app.world-pass .ico-banner {
  width: 9px !important; height: 14px !important;
  border-radius: 1px 1px 3px 3px !important;
  background: linear-gradient(180deg, #e04545, #8a2020);
  border: 1px solid #5a1010;
}
.war-app.world-pass .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
  justify-content: flex-end;
}
.war-app.world-pass .pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1.5px solid #b8862e;
  background: linear-gradient(180deg, #f7ebcf, #e2c992);
  color: #2a1c10;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.war-app.world-pass .pill i {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.war-app.world-pass .pill.gems i { background: radial-gradient(circle at 30% 30%, #b8f0ff, #2a9cc8); box-shadow: 0 0 6px #5ec8e8; }
.war-app.world-pass .pill.gold i { background: radial-gradient(circle at 30% 30%, #ffe9a0, #c99620); }
.war-app.world-pass .pill.coin i { background: radial-gradient(circle at 30% 30%, #f0d080, #a87828); }

.war-app.world-pass .menu-fly {
  position: absolute;
  top: 58px; left: 12px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(165deg, #f3e2c0, #d4b888);
  border: 2px solid #b8862e;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  color: #2a1c10;
}
.war-app.world-pass .menu-fly[hidden] { display: none !important; }
.war-app.world-pass .menu-fly a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #2a1c10 !important;
  text-decoration: none !important;
  font-family: "Crimson Text", Georgia, serif;
}
.war-app.world-pass .menu-fly a:hover,
.war-app.world-pass .menu-fly a.active {
  background: rgba(107, 66, 38, 0.15);
}
.war-app.world-pass .menu-fly a.active { color: #6a3818 !important; }

.war-app.world-pass .vault-glance {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: #6a5438;
  font-family: "Crimson Text", Georgia, serif;
}

/* Hide legacy overlay-bar if any remnant */
.war-app.world-pass .overlay-bar { display: none !important; }
.war-app.world-pass .overlay-hud { display: none !important; }

/* Toast at top, short-lived, plain words */
.war-app.world-pass .toast {
  top: 64px;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #f3e2c0;
  border: 2px solid #6a4824;
  color: #2a1c10;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.95rem;
  border-radius: 10px;
  max-width: min(420px, 92vw);
  text-align: center;
  z-index: 90;
}
.war-app.world-pass .toast.show {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .war-app.world-pass .status-chips .chip.banner { display: none; }
  .war-app.world-pass .pill-row .pill.coin { display: none; }
  .war-app.world-pass .top-hud.slim-hud { gap: 6px; padding: 8px; }
}

/* ========== tower23 phone camera + tools ========== */
.war-app.world-pass .phone-tools-btn {
  display: none;
}
.war-app.world-pass .phone-tools-panel {
  display: none;
}

@media (max-width: 900px) {
  .war-app.world-pass .desk-only {
    display: none !important;
  }
  .war-app.world-pass .phone-tools-btn {
    display: inline-flex;
    position: absolute;
    right: 10px;
    bottom: 14px;
    z-index: 35;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid #b8862e;
    background: linear-gradient(180deg, #f3e2c0, #d9bf8e);
    color: #2a1c10;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
    cursor: pointer;
  }
  .war-app.world-pass .phone-tools-panel {
    display: block;
    position: absolute;
    right: 10px;
    bottom: 70px;
    z-index: 36;
    width: min(300px, calc(100vw - 20px));
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(165deg, #f3e2c0, #d4b888);
    border: 2px solid #6a4824;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    color: #2a1c10;
  }
  .war-app.world-pass .phone-tools-panel[hidden] {
    display: none !important;
  }
  .war-app.world-pass .phone-tools-panel .pt-section {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(106,72,36,0.3);
  }
  .war-app.world-pass .phone-tools-panel .pt-label {
    font-family: "Cinzel Decorative", Georgia, serif;
    font-size: 0.78rem;
    color: #5a3818;
    width: 100%;
  }
  .war-app.world-pass .phone-tools-panel .pt-legend {
    gap: 4px 8px;
    font-size: 0.72rem;
  }
  .war-app.world-pass .phone-tools-panel .pt-legend .lg::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 2px;
    margin-right: 3px;
    vertical-align: 0;
  }
  .war-app.world-pass .phone-tools-panel .a0::before { background: #e04545; }
  .war-app.world-pass .phone-tools-panel .a1::before { background: #3b82f6; }
  .war-app.world-pass .phone-tools-panel .a2::before { background: #f97316; }
  .war-app.world-pass .phone-tools-panel .a3::before { background: #22c55e; }
  .war-app.world-pass .phone-tools-panel .a4::before { background: #a855f7; }
  .war-app.world-pass .phone-tools-panel .mountain::before { background: #8a8478; }
  .war-app.world-pass .phone-tools-panel .lake::before { background: #3082b2; }
  .war-app.world-pass .phone-tools-panel .crown::before { background: #f5c542; }
  .war-app.world-pass .phone-tools-panel .tower::before { background: transparent; border: 1.5px solid #f5c542; box-sizing: border-box; }
  .war-app.world-pass .overlay-foot { display: none !important; }
  .war-app.world-pass .pan-hint { bottom: 72px; }
  /* Map stage must own the full viewport — no chrome stealing height */
  .war-app.world-pass .map-stage {
    inset: 0;
  }
}

@media (min-width: 901px) {
  .war-app.world-pass .phone-tools-btn,
  .war-app.world-pass .phone-tools-panel {
    display: none !important;
  }
}

/* ============================================================
   tower_town_v1 — YOU marker: big flag in your alliance color, pulsing glow ring, first-time arrow + tip
   (DOM overlay inside #mapWorld; --you-k counter-scales so it stays readable when zoomed out)
   ============================================================ */
.map-world { --you-k: 1; }
.you-marker {
  position: absolute; width: 0; height: 0; z-index: 6; pointer-events: none;
  --you-c: #e04545;
}
.you-ring {
  position: absolute; left: 0; top: 0; width: 104px; height: 104px;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  border: 6px solid var(--you-c);
  box-shadow: 0 0 22px 8px var(--you-c), inset 0 0 18px 3px var(--you-c);
  opacity: 0.85;
  animation: youPulse 1.8s ease-out infinite;
}
.you-ring.r2 { animation-delay: 0.9s; border-color: #f5c542; box-shadow: 0 0 14px 4px rgba(245,197,66,.8); }
@keyframes youPulse {
  0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(1.55); opacity: 0; }
}
.you-flag {
  position: absolute; left: 0; top: 0;
  transform: translate(-6px, -42px) scale(var(--you-k)); transform-origin: 0 100%;
}
.you-pole {
  position: absolute; left: 0; bottom: 0; width: 5px; height: 112px; border-radius: 3px;
  background: linear-gradient(90deg, #6b4a22, #d9b36a 45%, #5a3c1a);
  box-shadow: 0 0 0 1px rgba(20,12,4,.6);
}
.you-pole::before { /* gold finial */
  content: ""; position: absolute; left: -4px; top: -10px; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4c2, #f5c542 45%, #9a6b12);
}
.you-cloth {
  position: absolute; left: 5px; bottom: 50px; min-width: 96px; height: 58px; padding: 4px 16px 4px 12px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background: linear-gradient(180deg, color-mix(in srgb, var(--you-c) 88%, #fff 12%), var(--you-c) 60%, color-mix(in srgb, var(--you-c) 70%, #000 30%));
  border: 2px solid #f5c542; border-left: 0;
  clip-path: polygon(0 0, 100% 0, 86% 50%, 100% 100%, 0 100%);
  box-shadow: 0 6px 14px rgba(0,0,0,.45);
  transform-origin: 0 50%;
  animation: youWave 2.4s ease-in-out infinite;
}
.you-cloth em {
  font-style: normal; font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: 2px;
  color: #fff8e6; font-family: "Cinzel Decorative", Georgia, serif;
  text-shadow: 0 2px 0 rgba(0,0,0,.55), 0 0 10px rgba(0,0,0,.35);
}
.you-cloth small { font-size: 11px; font-weight: 700; color: #ffe9b0; text-shadow: 0 1px 0 rgba(0,0,0,.6); letter-spacing: .5px; }
@keyframes youWave { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-3deg) scaleX(.96); } }
.you-marker.fallen .you-ring { animation: none; opacity: .25; }
.you-marker.fallen .you-cloth { filter: grayscale(.8) brightness(.8); }

.you-tip {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  transform: scale(var(--you-k)) translate(-50%, calc(-100% - 150px)); transform-origin: 0 0;
  width: 250px; padding: 10px 12px 10px; text-align: center;
  background: rgba(250, 240, 214, .97); color: #2a1a0a;
  border: 2px solid #b8862a; border-radius: 12px; box-shadow: 0 10px 26px rgba(0,0,0,.5);
}
.you-tip-line { margin: 0 0 8px; font: 700 15px/1.3 Georgia, serif; }
.you-tip-btns { display: flex; gap: 8px; justify-content: center; }
.you-tip-btns .btn { min-width: 76px; }
.you-arrow {
  position: absolute; left: 50%; bottom: -34px; width: 0; height: 0; transform: translateX(-50%);
  border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid #f5c542;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.5));
  animation: youArrowBob 1.1s ease-in-out infinite;
}
@keyframes youArrowBob {
  0%, 100% { bottom: -34px; } 50% { bottom: -44px; }
}
.legend .lg.you-lg, .pt-legend .lg.you-lg {
  font-weight: 800; color: var(--a0);
  background: rgba(245,197,66,.16); border: 1px solid rgba(245,197,66,.55); border-radius: 6px; padding: 0 5px;
}
@media (prefers-reduced-motion: reduce) {
  .you-ring, .you-cloth, .you-arrow { animation: none; }
}

/* ============================================================
   tower25 one solid screen: page never moves, only the map pans
   ============================================================ */
html, body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
.map-stage { touch-action: none; overscroll-behavior: none; }
/* Desktop side panel: no inner page scroll; only the war log scrolls */
.overlay-side { overflow: hidden; overscroll-behavior: contain; }
.overlay-side .panel.log-panel { flex: 1 1 0; min-height: 0; }
.overlay-side .log-panel .log-feed {
  flex: 1 1 0; min-height: 0; max-height: none;
  overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
}
/* Phone detail sheet: its own content scroll, never chains to the page */
.war-app.world-pass .overlay-side.war-table.sheet-open > .panel.detail,
.phone-tools-panel {
  overscroll-behavior: contain;
  touch-action: pan-y;
}
@media (min-width: 901px) {
  .overlay-side { bottom: 8px; }
}
@media (min-width: 901px) and (max-height: 900px) {
  .overlay-side .remap-hint { display: none; }
}

/* ============================================================
   tower26 redesign: no side panel · hex popover · 2-resource bar · log sheet
   ============================================================ */
.war-app.world-pass #sidePanel { display: none !important; }
.war-app.world-pass .desk-only { display: none !important; }

/* One gear for zoom / legend / lab on every screen size */
.war-app.world-pass .phone-tools-btn {
  display: inline-flex; position: absolute; right: 10px; bottom: 14px; z-index: 35;
  width: 48px; height: 48px; align-items: center; justify-content: center;
  border-radius: 999px; border: 2px solid #b8862e;
  background: linear-gradient(180deg, #f3e2c0, #d9bf8e); color: #2a1c10;
  font-size: 1.25rem; box-shadow: 0 4px 14px rgba(0,0,0,0.45); cursor: pointer;
}
.war-app.world-pass .phone-tools-panel {
  display: block; position: absolute; right: 10px; bottom: 70px; z-index: 36;
  width: min(300px, calc(100vw - 20px)); padding: 10px; border-radius: 12px;
  background: linear-gradient(165deg, #f3e2c0, #d4b888); border: 2px solid #6a4824;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5); color: #2a1c10;
}
.war-app.world-pass .phone-tools-panel[hidden] { display: none !important; }
.war-app.world-pass .phone-tools-panel .pt-section { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(106,72,36,0.3); }
.war-app.world-pass .phone-tools-panel .pt-label { font-size: 0.78rem; color: #5a3818; width: 100%; }
.war-app.world-pass .phone-tools-panel .pt-legend { gap: 4px 8px; font-size: 0.72rem; }

/* Top bar: just the two things this event spends / earns */
.war-app.world-pass .ev-res { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.war-app.world-pass .ev-res .res {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 10px;
  border-radius: 999px; border: 2px solid #b8862e;
  background: linear-gradient(180deg, #f7ebcf, #e2c992); color: #2a1c10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35); font: 700 1rem/1 "Crimson Text", Georgia, serif;
  font-variant-numeric: tabular-nums;
}
.war-app.world-pass .ev-res .res-lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: #6a4824; }
.war-app.world-pass .ev-res .cur-ico { width: 22px; height: 22px; margin: 0; vertical-align: middle; }
.war-app.world-pass .ev-res [data-cur] { min-width: 22px; }

/* Hex popover, anchored next to the tapped hex */
.war-app.world-pass .hex-pop {
  position: absolute; left: 0; top: 0; z-index: 25; width: 236px;
  padding: 10px 12px 12px; border-radius: 14px; border: 2px solid #b8862e;
  background: linear-gradient(170deg, #fbf1da, #ecd7a8); color: #2a1c10;
  box-shadow: 0 12px 30px rgba(0,0,0,.5); font-family: "Crimson Text", Georgia, serif;
  cursor: default; touch-action: manipulation;
}
.war-app.world-pass .hex-pop[hidden] { display: none; }
.hex-pop .pop-head { display: flex; align-items: center; gap: 7px; font-size: 1.08rem; }
.hex-pop .pop-head b { flex: 1; }
.hex-pop .pop-chip { width: 11px; height: 16px; border-radius: 2px 2px 4px 4px; border: 1px solid rgba(0,0,0,.4); }
.hex-pop .pop-chip.a0 { background: #e04545; } .hex-pop .pop-chip.a1 { background: #3b82f6; }
.hex-pop .pop-chip.a2 { background: #f97316; } .hex-pop .pop-chip.a3 { background: #22c55e; }
.hex-pop .pop-chip.a4 { background: #a855f7; }
.hex-pop .pop-x { border: 0; background: none; color: #6a4824; font-size: 1rem; padding: 2px 4px; cursor: pointer; }
.hex-pop .pop-line { font-size: .86rem; color: #6a5438; margin: 1px 0 6px; }
.hex-pop .pop-vs { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: .86rem; }
.hex-pop .pop-vs b { font-size: 1.05rem; }
.hex-pop .pop-vsx { color: #8a6a40; font-style: italic; }
.hex-pop .pop-odds { margin: 3px 0 6px; font-weight: 700; font-size: .92rem; }
.hex-pop .pop-odds small { font-weight: 400; color: #6a5438; }
.hex-pop .pop-odds.good { color: #1a6a38; } .hex-pop .pop-odds.even { color: #8a6010; } .hex-pop .pop-odds.bad { color: #a82828; }
.hex-pop .pop-gain { font-size: .84rem; color: #3a2814; margin-bottom: 8px; line-height: 1.45; }
.hex-pop .pop-gain .cur-ico { width: 18px; height: 18px; vertical-align: -4px; margin: 0; }
.hex-pop .pop-go {
  display: block; width: 100%; min-height: 46px; border-radius: 12px; border: 2px solid #1d5a32;
  background: linear-gradient(180deg, #3fae63, #23793f); color: #fff; font: 700 1.12rem/1 "Crimson Text", Georgia, serif;
  box-shadow: 0 3px 0 #164a28; cursor: pointer;
}
.hex-pop .pop-go.fight { border-color: #6a1414; background: linear-gradient(180deg, #e04545, #9a2222); box-shadow: 0 3px 0 #5a1010; }
.hex-pop .pop-go small { font-size: .74rem; font-weight: 400; opacity: .9; }
.hex-pop .pop-lock { font-size: .88rem; color: #7a3a1a; font-weight: 700; margin-bottom: 6px; }
.hex-pop .pop-fix {
  display: block; width: 100%; min-height: 38px; border-radius: 10px; border: 2px solid #b8862e;
  background: #fff6de; color: #5a3010; font: 700 .95rem/1 "Crimson Text", Georgia, serif; cursor: pointer;
}

/* First-visit: glowing hexes you can take now + one short line */
.start-glow { position: absolute; left: 0; top: 0; pointer-events: none; }
.start-glow i {
  position: absolute; width: 84px; height: 74px; transform: translate(-50%, -50%);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: radial-gradient(circle, rgba(255, 230, 120, .55), rgba(255, 210, 80, .18) 70%);
  animation: startGlow 1.6s ease-in-out infinite;
}
@keyframes startGlow { 0%, 100% { opacity: .35; } 50% { opacity: .95; } }
.you-tip { width: 230px; padding: 8px 10px; pointer-events: none; }
.you-tip-line { margin: 0; }

/* War log: small button + sheet, never scrolls */
.war-app.world-pass .log-btn {
  position: absolute; left: 10px; bottom: 14px; z-index: 35; height: 44px; padding: 0 16px;
  border-radius: 999px; border: 2px solid #b8862e; background: linear-gradient(180deg, #f3e2c0, #d9bf8e);
  color: #2a1c10; font: 700 .95rem/1 "Crimson Text", Georgia, serif; box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.war-app.world-pass .log-sheet {
  position: absolute; left: 10px; bottom: 66px; z-index: 36; width: min(340px, calc(100vw - 20px));
  max-height: calc(100% - 140px); overflow: hidden; padding: 10px 14px 12px; border-radius: 14px;
  background: linear-gradient(165deg, #f3e2c0, #d4b888); border: 2px solid #6a4824;
  box-shadow: 0 12px 32px rgba(0,0,0,.5); color: #2a1c10; font-family: "Crimson Text", Georgia, serif;
}
.war-app.world-pass .log-sheet[hidden] { display: none; }
.log-sheet h2 { margin: 2px 0 4px; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: #6a4824; }
.log-sheet .log-x { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 1rem; color: #6a4824; cursor: pointer; }
.log-sheet #standingsList { list-style: none; margin: 0 0 8px; padding: 0; font-size: .86rem; }
.log-sheet #standingsList li { display: flex; align-items: center; gap: 6px; padding: 1px 0; }
.log-sheet #standingsList .meta { margin-left: auto; color: #6a5438; font-size: .78rem; }
.log-sheet .banner-chip { width: 9px; height: 13px; border-radius: 1px 1px 3px 3px; display: inline-block; }
.log-sheet .log-feed { max-height: none; overflow: hidden; font-size: .8rem; color: #4a3418; }
.log-sheet .log-feed .entry { padding: 2px 0; border-bottom: 1px solid rgba(106,72,36,.2); }
.war-app.world-pass .pan-hint { bottom: 70px; }

/* tower27 — Gold Mine control meter (LOCKED Brandon 2026-10-12) */
.mine-meter { position: absolute; right: 10px; top: 64px; z-index: 30; width: 300px; max-width: 46vw;
  background: rgba(24,18,8,0.88); border: 1px solid #b8891f; border-radius: 10px; padding: 8px 10px;
  color: #f3e6c4; font: 12px/1.3 system-ui, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.mine-meter .mm-head { display: flex; justify-content: space-between; margin-bottom: 6px; color: #ffd76a; }
.mine-meter .mm-row { display: grid; grid-template-columns: 92px 1fr; gap: 2px 6px; margin: 3px 0; }
.mine-meter .mm-bar { height: 8px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; align-self: center; }
.mine-meter .mm-bar i { display: block; height: 100%; }
.mine-meter .mm-pts { grid-column: 2; font-size: 11px; opacity: .85; }
.mine-meter .mm-foot { margin-top: 6px; font-size: 11px; opacity: .8; }
.mine-meter .mm-recall { margin-top: 6px; padding: 6px; border-radius: 6px; background: rgba(90,120,200,.25); border: 1px solid #7aa0ff; }
.mine-meter .mm-recall.stranded { background: rgba(200,80,60,.22); border-color: #e0705a; }
@media (max-width: 600px) { .mine-meter { top: auto; bottom: 56px; right: 6px; width: 230px; font-size: 11px; } }
/* tower27 staging choices (LOCKED Brandon 2026-10-12) */
.hex-pop .pop-alt { display: block; width: 100%; margin-top: 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid #c9a24a;
  background: rgba(60,44,18,.92); color: #ffe6a6; font-weight: 700; font-size: 13px; cursor: pointer; text-align: center; }
.hex-pop .pop-alt small { font-weight: 400; opacity: .8; }
