/* ====================================================================
   worldwar.css — Mode World War (v11), antarmuka peta (Rancangan Bagian 8).
   #wwmap z-index 1500: di bawah Pilih Unit (2000) dan Loading (2100).
   ==================================================================== */
#wwmap { position: fixed; inset: 0; z-index: 1500; display: none; background: radial-gradient(ellipse at 50% 45%, #1d2016, #0a0b08 75%); color: #e6ece8; font: 11px/1.35 Bahnschrift, 'Arial Narrow', 'Segoe UI', sans-serif; }
#wwmap.on { display: block; }
#wwTop { position: absolute; left: 0; right: 0; top: 0; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 6px; background: rgba(18,24,22,.92); border-bottom: 1px solid #5f7d72; }
#wwTop b { flex: 1; text-align: center; font-size: 13px; letter-spacing: 3px; color: #d7b56d; white-space: nowrap; }
#wwTop button, #wwCard button, #wwDlg button { min-width: 28px; min-height: 28px; padding: 0 12px; cursor: pointer; font: 700 11px inherit; color: #e6dcc0; background: #262a1d; border: 1px solid rgba(215,181,109,.45); border-radius: 5px; }
#wwCard button.main, #wwDlg button.main { color: #2a2210; background: linear-gradient(#e6c987, #b98f45); border-color: #fff0c2; }
#wwCard button:disabled { opacity: .4; cursor: default; }
#wwTop .ww-m { display: none; }
#wwStage { position: absolute; left: 184px; right: 162px; top: 38px; bottom: 34px; }
#wwSvg { width: 100%; height: 100%; display: block; touch-action: manipulation; user-select: none; }
#wwSvg text { text-anchor: middle; dominant-baseline: central; pointer-events: none; font-family: Bahnschrift, 'Segoe UI', sans-serif; font-weight: 700; }
#wwSvg .ww-num { font-size: 20px; fill: #222; }
#wwSvg .ww-cap { font-size: 30px; fill: #fff; }
#wwSvg .ww-tm { font-size: 14px; fill: #fff; }
#wwSvg #wwTaps circle { cursor: pointer; }
.ww-pulse { transform-box: fill-box; transform-origin: center; animation: wwPulse 1.4s ease-out infinite; }
@keyframes wwPulse { 0% { opacity: .95; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
.ww-panel { position: absolute; top: 44px; max-height: calc(100% - 44px - 40px); overflow-y: auto; padding: 6px 8px; background: rgba(18,24,22,.84); border: 1px solid #5f7d72; border-radius: 8px; }
#wwLeft { left: 6px; width: 172px; }
#wwRight { right: 6px; width: 150px; }
.ww-panel h4 { margin: 8px 0 3px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: #9fc2b4; }
.ww-panel h4:first-child { margin-top: 0; }
.ww-row { display: flex; justify-content: space-between; gap: 6px; }
.ww-row.dim { color: #7b8782; }
.ww-sub { margin-top: 5px; color: #9fc2b4; }
.ww-line { color: #cfd9d4; }
.ww-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.ww-chip { position: relative; width: 20px; height: 20px; padding: 0; font: 700 10px inherit; color: #222; cursor: pointer; background: #faf5e6; border: 1px solid #5f7d72; border-radius: 4px; }
.ww-chip i { position: absolute; top: -5px; right: -5px; min-width: 11px; height: 11px; font: 700 8px/11px inherit; font-style: normal; color: #fff; text-align: center; border-radius: 6px; }
.ww-rank { display: flex; align-items: center; gap: 4px; margin: 2px 0; padding: 2px 3px; border-radius: 4px; }
.ww-rank.me { border: 1px solid #4a90e2; }
.ww-rank .rk { width: 14px; }
.ww-rank i { display: inline-block; width: 16px; height: 16px; font: 700 9px/16px inherit; font-style: normal; color: #fff; text-align: center; border-radius: 50%; }
.ww-rank .nm { flex: 1; }
.ww-rank em { font-style: normal; color: #e8c53a; }
.ww-rank.out { color: #7b8782; text-decoration: line-through; }
.ww-rank.out small { text-decoration: none; display: inline-block; }
.ww-rank b { font-size: 12px; }
.ww-corner { position: absolute; bottom: 6px; height: 24px; line-height: 24px; padding: 0 8px; background: rgba(18,24,22,.84); border: 1px solid #5f7d72; border-radius: 6px; }
#wwTotalMatches { left: 6px; }
#wwTotalWL { right: 6px; }
#wwCard { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: 270px; max-width: 94vw; padding: 8px 10px; background: rgba(18,24,22,.95); border: 1px solid #d7b56d; border-radius: 8px; z-index: 5; }
#wwCard[hidden] { display: none; }
#wwCard h3 { margin: 0 0 4px; font-size: 13px; color: #d7b56d; }
#wwCard .ww-why { margin-top: 3px; color: #e08a2e; }
#wwCard .ww-btns, #wwDlg .ww-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
#wwDlg { position: fixed; inset: 0; z-index: 2500; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.6); }
#wwDlg .ww-card { width: min(340px, 92vw); max-height: 88vh; overflow-y: auto; padding: 12px 14px; background: #1b1f16; border: 1px solid #d7b56d; border-radius: 8px; color: #e6dcc0; font: 13px/1.45 Georgia, serif; }
#wwDlg h3 { margin: 0 0 6px; font-size: 16px; color: #d7b56d; }
#wwDlg p { margin: 0 0 4px; }
#wwDlg ul { margin: 0; padding-left: 18px; }
#wwToast { position: fixed; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 2600; padding: 6px 14px; font: 12px sans-serif; color: #fff; background: rgba(20,20,20,.92); border: 1px solid #e08a2e; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .25s; }
#wwToast.on { opacity: 1; }
@media (max-width: 719px) {
  #wwStage { left: 6px; right: 6px; }
  .ww-panel { display: none; z-index: 6; }
  .ww-panel.open { display: block; }
  #wwTop .ww-m { display: inline-block; padding: 0 8px; }
  #wwTop b { letter-spacing: 1px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .ww-pulse { animation: none; opacity: .8; } }

/* Dalam pertandingan World War: hanya "Lanjut ke Peta"; Restart / Main Lagi / Lobby disembunyikan (5.3, 5.4). */
#wwContinueBtn { display: none; }
body.ww #wwContinueBtn { display: inline-block; }
body.ww #restartBtn, body.ww #lobbyBtn, body.ww #pmRestart { display: none !important; }
