/* ============================================================
   Final War — style.css
   ============================================================ */
:root {
  --skyHigh: #6BC2F7;
  --skyLow: #216BC7;
  --navy: #3D4D7A;
  --navyDeep: #212B4F;
  --steel: #6978A8;
  --gold: #FFC72B;
  --goldDeep: #EB8C0D;
  --glowGreen: #70E824;
  --greenDeep: #389E0D;
  --glowOrange: #FF9C08;
  --orangeDeep: #D96103;
  --enemyRed: #E3291F;
  --redDeep: #9E120F;
  --squadBlue: #2673ED;
  --blueDeep: #12429E;
  --sand: #EDD6A6;
  --sandDeep: #D1B37D;
  --font: "Nunito", "Arial Rounded MT Bold", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(to bottom, var(--skyHigh), var(--skyLow));
  background-attachment: fixed;
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font-family: inherit; font-weight: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
svg.ic { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.12em; flex: none; }

/* ---------- Sky + clouds ---------- */
#sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: linear-gradient(to bottom, var(--skyHigh), var(--skyLow)); }
.cloud { position: absolute; opacity: 0.8; width: 42vw; height: 12.6vw; left: 29vw; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: rgba(255,255,255,0.85); border-radius: 50%; }
.cloud::before { width: 100%; height: 100%; left: 0; top: 0; }
.cloud::after  { width: 50%; height: 107%; left: 7%; top: -34%; }
.c1 { top: 10vh; animation: drift1 44s ease-in-out infinite alternate; }
.c2 { top: 30vh; width: 30vw; height: 9vw; left: 35vw; animation: drift2 44s ease-in-out infinite alternate; }
.c3 { top: 62vh; width: 36vw; height: 10.8vw; left: 32vw; animation: drift3 44s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translateX(-45vw); } to { transform: translateX(62vw); } }
@keyframes drift2 { from { transform: translateX(70vw); }  to { transform: translateX(-50vw); } }
@keyframes drift3 { from { transform: translateX(-55vw); } to { transform: translateX(55vw); } }

/* ---------- App shell ---------- */
#app { position: fixed; inset: 0; z-index: 1; height: 100dvh; }
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  animation: screenIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes screenIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
.scroll { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.col { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 20px 30px; display: flex; flex-direction: column; gap: 22px; }

.shadow-text { text-shadow: 0 3px 0 rgba(33,43,79,0.8); }
.shadow-text-sm { text-shadow: 0 2px 0 rgba(33,43,79,0.7); }

/* ---------- Chips ---------- */
.toprow { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(33,43,79,0.85); font-size: 14px; font-weight: 900; color: #fff;
  border: 2px solid rgba(105,120,168,0.9);
}
.chip.rank .shield { color: var(--gold); font-size: 13px; }
.chip.rank .cnt { color: var(--gold); font-size: 13px; font-weight: 700; }
.chip.medals { border-color: rgba(255,199,43,0.8); font-size: 17px; }
.medal-coin { width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(to bottom, var(--gold), var(--goldDeep));
  display: inline-flex; align-items: center; justify-content: center; position: relative; }
.medal-coin::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.7); }
.medal-coin svg { width: 10px; height: 10px; fill: var(--goldDeep); }

/* ---------- Title emblem ---------- */
.title-emblem { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 4px; }
.title-emblem .flag { width: 32px; height: 46px; flex: none; }
.title-emblem h1 { margin: 0; font-size: clamp(30px, 9vw, 44px); font-weight: 900; line-height: 1.05; text-align: center; white-space: nowrap; text-shadow: 0 4px 0 rgba(33,43,79,0.9); letter-spacing: 0.5px; }
.title-sub { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; }
.title-sub span { font-size: clamp(13px, 4vw, 17px); font-weight: 900; letter-spacing: clamp(3px, 1.4vw, 6px); color: var(--gold); text-shadow: 0 2px 0 rgba(33,43,79,0.8); padding-left: 4px; white-space: nowrap; }
.hazard { width: 34px; height: 8px; border-radius: 999px; flex: none;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 4px, var(--navyDeep) 4px 8px); }

/* ---------- Battlefield card ---------- */
.bf-card {
  position: relative; width: 100%; border-radius: 26px; cursor: pointer;
  background: linear-gradient(to bottom, var(--sand), var(--sandDeep));
  background-image:
    linear-gradient(rgba(209,179,125,0.65) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(209,179,125,0.65) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, var(--sand), var(--sandDeep));
  background-size: 40px 40px, 40px 40px, 100% 100%;
  border: 4px solid var(--navy);
  box-shadow: 0 7px 20px rgba(0,0,0,0.3);
  overflow: hidden;
}
.bf-card canvas { display: block; width: 100%; }

/* ---------- Gold press buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 18px; width: 100%;
  font-weight: 900; color: var(--navyDeep);
  background: linear-gradient(to bottom, var(--gold), var(--goldDeep));
  box-shadow: 0 5px 0 var(--goldDeep), 0 10px 12px rgba(0,0,0,0.25), inset 0 0 0 2px rgba(255,255,255,0.55);
  transition: transform 0.12s cubic-bezier(0.3,0.9,0.4,1.4), box-shadow 0.12s;
  overflow: hidden;
}
.btn::before { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 50%; border-radius: 16px 16px 4px 4px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.45), rgba(255,255,255,0.02)); pointer-events: none; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--goldDeep), 0 4px 8px rgba(0,0,0,0.25), inset 0 0 0 2px rgba(255,255,255,0.55); }
.btn.blue  { color: #fff; background: linear-gradient(to bottom, var(--squadBlue), var(--blueDeep)); box-shadow: 0 5px 0 var(--blueDeep), 0 10px 12px rgba(0,0,0,0.25), inset 0 0 0 2px rgba(255,255,255,0.55); }
.btn.blue:active { box-shadow: 0 1px 0 var(--blueDeep), 0 4px 8px rgba(0,0,0,0.25), inset 0 0 0 2px rgba(255,255,255,0.55); }
.btn.steel { color: #fff; background: linear-gradient(to bottom, var(--steel), var(--navy)); box-shadow: 0 5px 0 var(--navyDeep), 0 10px 12px rgba(0,0,0,0.25), inset 0 0 0 2px rgba(255,255,255,0.55); }
.btn.steel:active { box-shadow: 0 1px 0 var(--navyDeep), 0 4px 8px rgba(0,0,0,0.25), inset 0 0 0 2px rgba(255,255,255,0.55); }
.btn.deploy { font-size: 28px; letter-spacing: 2px; }
.btn.deploy svg { font-size: 22px; }
.btn.engage { font-size: 26px; letter-spacing: 2px; }
.btn.engage svg { font-size: 20px; }
.btn.mid { font-size: 16px; padding: 14px 12px; }
.btn.mid svg { font-size: 16px; }
.btn.auto { width: auto; font-size: 20px; }
.btn.next { font-size: 21px; }
.btn.replay { font-size: 18px; }
.btn.home { font-size: 17px; }
.row2 { display: flex; gap: 14px; padding-bottom: 8px; }
.row2 .btn { flex: 1; min-width: 0; }

/* ---------- Navy panel ---------- */
.navy-panel {
  position: relative; border-radius: 24px;
  background: linear-gradient(to bottom, var(--navy), var(--navyDeep));
  border: 3px solid rgba(255,199,43,0.9);
  box-shadow: 0 6px 20px rgba(0,0,0,0.32);
}
.navy-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  --rv: radial-gradient(circle, rgba(255,255,255,0.7) 0 1px, var(--steel) 1px 3px, var(--navyDeep) 3px 4.5px, transparent 5px);
  background-image: var(--rv), var(--rv), var(--rv), var(--rv);
  background-size: 11px 11px; background-repeat: no-repeat;
  background-position: 8px 8px, calc(100% - 8px) 8px, 8px calc(100% - 8px), calc(100% - 8px) calc(100% - 8px);
}
.navy-panel.rim-steel { border-color: rgba(105,120,168,0.9); }
.navy-panel.rim-green { border-color: rgba(112,232,36,0.9); }
.navy-panel.rim-red { border-color: rgba(227,41,31,0.9); }
.navy-panel.rim-gold { border-color: rgba(255,199,43,0.9); }
.navy-panel.rim-orange { border-color: rgba(255,156,8,0.9); }

/* ---------- Daily card ---------- */
.daily-card { display: flex; align-items: center; gap: 14px; padding: 14px; width: 100%; text-align: left; }
.daily-card.done { opacity: 0.8; }
.daily-icon { width: 52px; height: 52px; border-radius: 13px; flex: none; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to bottom, var(--gold), var(--goldDeep)); color: var(--navyDeep); font-size: 24px; }
.daily-card.done .daily-icon { background: linear-gradient(to bottom, var(--steel), var(--navy)); color: var(--gold); }
.daily-text { flex: 1; min-width: 0; }
.daily-text b { display: block; font-size: 18px; font-weight: 900; }
.daily-text span { display: block; font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.75); margin-top: 3px; }
.daily-x2 { font-size: 22px; font-weight: 900; color: var(--gold); }

/* ---------- Mode strip ---------- */
.section-label { font-size: 16px; font-weight: 900; letter-spacing: 3px; text-shadow: 0 2px 0 rgba(33,43,79,0.7); margin-bottom: 10px; }
.mode-strip { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mode-strip::-webkit-scrollbar { display: none; }
.mode-card { flex: none; width: 128px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mode-card .mtitle { font-size: 14px; font-weight: 900; white-space: nowrap; }
.mode-card .mstars { font-size: 12px; font-weight: 700; color: var(--gold); }
.emblem { display: block; }

/* ---------- Screen header ---------- */
.screen-header { display: flex; align-items: center; gap: 12px; padding: 10px 20px 16px; width: 100%; max-width: 560px; margin: 0 auto; flex: none; }
.back-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(33,43,79,0.85); border: 2px solid var(--steel);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.screen-header h2 { margin: 0; font-size: 26px; font-weight: 900; text-shadow: 0 3px 0 rgba(33,43,79,0.8); line-height: 1.1; }
.screen-header p { margin: 1px 0 0; font-size: 14px; font-weight: 700; }
.accent-green { color: var(--glowGreen); } .accent-red { color: var(--enemyRed); } .accent-gold { color: var(--gold); } .accent-orange { color: var(--glowOrange); }

/* ---------- War rooms ---------- */
.room-card { display: flex; align-items: center; gap: 14px; padding: 16px; width: 100%; text-align: left; }
.room-text { flex: 1; min-width: 0; }
.room-text b { display: block; font-size: 20px; font-weight: 900; }
.room-text .tag { display: block; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.75); margin-top: 4px; }
.room-text .meta { display: flex; gap: 10px; margin-top: 4px; font-size: 13px; font-weight: 900; }
.room-text .meta .st { color: var(--gold); }
.room-card .arrow { font-size: 26px; flex: none; }
.rooms { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Warpath ---------- */
.campaign-row { display: flex; align-items: center; gap: 10px; padding: 0 4px; font-size: 15px; font-weight: 900; }
.level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 14px; }
.level-node { height: 86px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 2.5px solid rgba(255,255,255,0.6); box-shadow: 0 4px 10px rgba(0,0,0,0.25); }
.level-node .num { font-size: 30px; font-weight: 900; text-shadow: 0 2px 0 rgba(33,43,79,0.6); line-height: 1; }
.level-node.locked { background: linear-gradient(to bottom, var(--navy), var(--navyDeep)); border-color: rgba(105,120,168,0.6); color: var(--steel); cursor: not-allowed; }
.level-node.locked .lock { font-size: 24px; }
.level-node.locked .lbl { font-size: 12px; font-weight: 900; }
.level-node.gateStorm { background: linear-gradient(to bottom, rgba(112,232,36,0.9), var(--greenDeep)); }
.level-node.redWatch { background: linear-gradient(to bottom, rgba(227,41,31,0.9), var(--redDeep)); }
.level-node.dropLine { background: linear-gradient(to bottom, rgba(255,199,43,0.9), var(--goldDeep)); }
.level-node.drillCode { background: linear-gradient(to bottom, rgba(255,156,8,0.9), var(--orangeDeep)); }
.level-node.shake { animation: nodeShake 0.3s; }
@keyframes nodeShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 0.2em; }
.stars svg { width: 1em; height: 1em; }
.stars .on { color: var(--gold); filter: drop-shadow(0 2px 2px rgba(235,140,13,0.7)); }
.stars .off { color: rgba(105,120,168,0.7); }
.stars .pop { animation: starPop 0.35s cubic-bezier(0.3,1.6,0.5,1); }
@keyframes starPop { from { transform: scale(0.2); } to { transform: scale(1); } }

/* ---------- Briefing ---------- */
.briefing-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px 60px; width: 100%; max-width: 520px; margin: 0 auto; gap: 20px; }
.briefing-body .big-emblem { filter: drop-shadow(0 0 12px var(--accent, var(--gold))); }
.briefing-body h3 { margin: 0; font-size: 30px; font-weight: 900; text-shadow: 0 3px 0 rgba(33,43,79,0.8); text-align: center; }
.gold-tag { font-size: 14px; font-weight: 900; letter-spacing: 1.5px; color: var(--navyDeep); padding: 7px 14px; border-radius: 999px; background: linear-gradient(to bottom, var(--gold), var(--goldDeep)); }
.brief-panel { width: 100%; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.brief-panel .lbl { font-size: 14px; font-weight: 900; letter-spacing: 3px; }
.brief-panel .obj { font-size: 17px; font-weight: 700; line-height: 1.35; }
.brief-panel .stars { font-size: 24px; }

/* ---------- Battle shared ---------- */
.battle { position: absolute; inset: 0; overflow: hidden; touch-action: none; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.battle canvas.field { position: absolute; inset: 0; display: block; }
.hud { display: flex; align-items: center; gap: 10px; padding: 8px 16px 0; position: relative; z-index: 2; flex: none; }
.hud .quit { width: 40px; height: 40px; border-radius: 50%; background: rgba(33,43,79,0.9); border: 2px solid var(--steel); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.hud .pill { padding: 8px 12px; border-radius: 999px; background: rgba(33,43,79,0.85); font-size: 15px; font-weight: 900; border: 2px solid; white-space: nowrap; }
.hud .spacer { flex: 1; }
.pill-row { display: flex; justify-content: center; gap: 12px; position: relative; z-index: 2; flex: none; }
.score-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(33,43,79,0.85); border: 2px solid; }
.score-pill .l { font-size: 13px; font-weight: 900; color: rgba(255,255,255,0.7); }
.score-pill .v { font-size: 19px; font-weight: 900; }
.progress { position: relative; height: 16px; border-radius: 999px; background: rgba(33,43,79,0.85); width: 100%; max-width: 512px; margin: 0 auto; border: 2px solid rgba(255,255,255,0.5); overflow: hidden; z-index: 2; flex: none; }
.progress .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; transition: width 0.35s cubic-bezier(0.3,1.1,0.5,1); }
.hint { position: absolute; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); text-align: center; font-size: 13px; font-weight: 900; color: rgba(255,255,255,0.85); z-index: 2; pointer-events: none; transition: opacity 0.3s; }
.hint.hidden { opacity: 0; }
.overlay { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 0 40px; }
.ready-panel { padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 440px; width: 100%; }
.ready-panel h3 { margin: 0; font-size: 30px; font-weight: 900; }
.ready-panel p { margin: 0; font-size: 17px; font-weight: 700; color: rgba(255,255,255,0.85); line-height: 1.35; white-space: pre-line; }
.tap-pill { font-size: 20px; font-weight: 900; color: var(--navyDeep); padding: 12px 24px; border-radius: 999px; background: linear-gradient(to bottom, var(--gold), var(--goldDeep)); }
.fill { flex: 1; min-height: 0; }
.flash { position: absolute; inset: 0; background: rgba(227,41,31,0.25); z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.1s; }
.flash.on { opacity: 1; }

/* Red Watch */
.bunker-wrap { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.bunker-grid { padding: 14px; border-radius: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  background-image:
    linear-gradient(rgba(209,179,125,0.65) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(209,179,125,0.65) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, var(--sand), var(--sandDeep));
  background-size: 36px 36px, 36px 36px, 100% 100%;
  border: 4px solid var(--navy); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.bunker-grid.shake { animation: gridShake 0.25s; }
@keyframes gridShake { 0%,100% { transform: translateX(0); } 30% { transform: translateX(-7px); } 60% { transform: translateX(5px); } }
.bunker { position: relative; border-radius: 20%; overflow: hidden; background: linear-gradient(to bottom, var(--navy), var(--navyDeep)); border: 2.5px solid rgba(255,199,43,0.55); }
.bunker::before { content: ""; position: absolute; left: 19%; right: 19%; top: 68%; height: 20%; border-radius: 50%; background: rgba(0,0,0,0.4); }
.bunker canvas { position: absolute; left: 22%; top: 19%; width: 56%; height: 66%; animation: popUp 0.22s cubic-bezier(0.3,1.3,0.5,1); }
.bunker canvas.hit { transform: scale(0.1); opacity: 0.3; transition: transform 0.1s, opacity 0.1s; }
@keyframes popUp { from { transform: translateY(60%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Drill Code */
.status-text { text-align: center; font-size: 20px; font-weight: 900; text-shadow: 0 2px 0 rgba(33,43,79,0.8); position: relative; z-index: 2; min-height: 1.3em; }
.pad-wrap { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.pad-grid { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pad { border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 2.5px solid rgba(255,255,255,0.4); transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s; color: #fff; }
.pad .chev { width: 30%; height: 13%; }
.pad .chev svg { width: 100%; height: 100%; display: block; fill: rgba(255,255,255,0.55); }
.pad .name { font-weight: 900; white-space: nowrap; }
.pad.p0 { background: linear-gradient(to bottom, rgba(112,232,36,0.75), var(--greenDeep)); box-shadow: 0 0 8px rgba(112,232,36,0.25); --lit: var(--glowGreen); }
.pad.p1 { background: linear-gradient(to bottom, rgba(255,156,8,0.75), var(--orangeDeep)); box-shadow: 0 0 8px rgba(255,156,8,0.25); --lit: var(--glowOrange); }
.pad.p2 { background: linear-gradient(to bottom, rgba(38,115,237,0.75), var(--blueDeep)); box-shadow: 0 0 8px rgba(38,115,237,0.25); --lit: var(--squadBlue); }
.pad.p3 { background: linear-gradient(to bottom, rgba(227,41,31,0.75), var(--redDeep)); box-shadow: 0 0 8px rgba(227,41,31,0.25); --lit: var(--enemyRed); }
.pad.lit { background: var(--lit); border-color: #fff; border-width: 4px; transform: scale(1.05); box-shadow: 0 0 32px var(--lit); }
.pad.lit .chev svg { fill: rgba(255,255,255,0.95); }
.step-text { text-align: center; font-size: 14px; font-weight: 900; color: rgba(255,255,255,0.85); padding-bottom: 14px; min-height: 2.3em; position: relative; z-index: 2; }

/* ---------- Debrief ---------- */
.debrief-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 24px; }
.debrief { width: 100%; max-width: 480px; padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.debrief h2 { margin: 0; font-size: 42px; font-weight: 900; text-shadow: 0 4px 0 rgba(33,43,79,0.9); line-height: 1; }
.debrief h2.win { color: var(--gold); } .debrief h2.lose { color: var(--enemyRed); }
.debrief .sub { font-size: 16px; font-weight: 900; }
.debrief .scoreline { font-size: 17px; font-weight: 700; color: rgba(255,255,255,0.85); }
.debrief .stars { font-size: 40px; }
.medal-line { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(33,43,79,0.9); border: 2px solid rgba(255,199,43,0.8); color: var(--gold); font-size: 19px; font-weight: 900; }
.medal-line svg { font-size: 22px; }
.medal-line .d { font-size: 14px; color: rgba(255,255,255,0.7); }
.debrief .actions { display: flex; flex-direction: column; gap: 12px; width: 100%; padding-top: 6px; }

@media (max-width: 380px) {
  .btn.deploy { font-size: 24px; }
  .btn.mid { font-size: 14px; }
}
