/* STORM ROYALE — lobby: dark glow / HUD: clean + bright */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #0a0d18; }
body { font-family: 'Urbanist', system-ui, sans-serif; color: #fff; user-select: none; }
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- boot splash ---------- */
#boot {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(1200px 800px at 50% 30%, #141b33 0%, #0a0d18 60%, #070910 100%);
  transition: opacity 0.8s ease;
}
#boot.hide { opacity: 0; pointer-events: none; }
.boot-logo, .logo {
  font-family: 'Anton', Impact, sans-serif; font-size: 84px; letter-spacing: 2px; line-height: 0.95;
  background: linear-gradient(180deg, #fff 30%, #8fd0ff 70%, #6a8aff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(110, 140, 255, 0.45));
}
.boot-logo span, .logo span { display: block; font-size: 0.62em; letter-spacing: 14px; }
.boot-bar { width: 280px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); overflow: hidden; }
.boot-fill { height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, #6a8aff, #c490ff);
  animation: bootslide 1.1s ease-in-out infinite alternate; }
@keyframes bootslide { from { margin-left: 0; width: 30%; } to { margin-left: 70%; width: 30%; } }
.boot-tip { font-size: 14px; letter-spacing: 3px; color: #8a93b5; text-transform: uppercase; }

/* ---------- menu root / glow background ---------- */
#menuRoot { position: fixed; inset: 0; z-index: 50; }
#menuRoot .screen { position: absolute; inset: 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.g1 { width: 520px; height: 520px; background: #2b3fae55; top: -120px; left: -100px; }
.g2 { width: 460px; height: 460px; background: #7a2bae44; bottom: -140px; right: -80px; animation-delay: -5s; }
.g3 { width: 380px; height: 380px; background: #2b8aae33; bottom: 20%; left: 30%; animation-delay: -9s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }

/* ---------- lobby ---------- */
#lobby {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: linear-gradient(160deg, rgba(10,13,24,0.88) 0%, rgba(13,16,33,0.82) 50%, rgba(8,10,18,0.9) 100%);
  backdrop-filter: blur(2px);
}
.lobby-grid { display: flex; gap: 70px; align-items: flex-start; max-width: 1060px; padding: 20px; }
.lobby-left { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.logo { font-size: 92px; animation: logoIn 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.2) both; }
@keyframes logoIn { from { transform: translateY(-30px) scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
.tagline { letter-spacing: 6px; font-weight: 700; font-size: 14px; color: #9fb0e8; animation: fadeUp 0.8s 0.25s both; }
@keyframes fadeUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

.btn-play {
  position: relative; border: 0; cursor: pointer; padding: 20px 30px; border-radius: 14px;
  font-family: 'Anton', Impact, sans-serif; font-size: 32px; letter-spacing: 3px; color: #081020;
  background: linear-gradient(135deg, #ffd24a 0%, #ffb83a 55%, #ff9d2e 100%);
  box-shadow: 0 0 34px rgba(255, 190, 70, 0.45), 0 8px 0 #b87a1a;
  transition: transform 0.12s ease, box-shadow 0.2s ease; text-align: left;
  animation: fadeUp 0.8s 0.4s both;
}
.btn-play:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 48px rgba(255, 190, 70, 0.7), 0 11px 0 #b87a1a; }
.btn-play:active { transform: translateY(3px); box-shadow: 0 0 24px rgba(255,190,70,0.4), 0 3px 0 #b87a1a; }
.btn-play .btn-sub { display: block; font-family: 'Urbanist'; font-weight: 700; font-size: 13px; letter-spacing: 2px; color: #4a3008; }
.btn-play.small { font-size: 22px; padding: 14px 26px; }
.btn-ghost {
  border: 2px solid rgba(255,255,255,0.25); background: transparent; color: #cfd8f5; border-radius: 12px;
  padding: 13px 24px; font-family: 'Urbanist'; font-weight: 800; letter-spacing: 2px; font-size: 15px; cursor: pointer;
  transition: all 0.15s ease;
}
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.06); }

.panel {
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px; padding: 18px 20px; backdrop-filter: blur(6px);
  animation: fadeUp 0.8s 0.55s both;
}
.panel h3 { font-family: 'Anton'; letter-spacing: 3px; font-size: 16px; color: #9fb0e8; margin-bottom: 12px; }
.ctrl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; font-size: 13.5px; color: #aab4d4; }
.ctrl-grid b { color: #fff; background: rgba(255,255,255,0.1); border-radius: 5px; padding: 1px 7px; margin-right: 6px; font-size: 12px; }

.lobby-right { display: flex; flex-direction: column; gap: 14px; align-items: center; animation: fadeUp 0.8s 0.5s both; }
#charPreview {
  width: 300px; height: 360px; border-radius: 18px;
  background: radial-gradient(420px 320px at 50% 20%, #1d2746 0%, #0d1224 70%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 40px rgba(80, 100, 255, 0.18) inset, 0 14px 44px rgba(0,0,0,0.5);
}
#skinRow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.skin-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
  padding: 9px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04); transition: all 0.15s ease; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: #aab4d4;
}
.skin-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.3); color: #fff; }
.skin-card.sel { border-color: #ffd24a; color: #ffd24a; background: rgba(255, 210, 74, 0.08); box-shadow: 0 0 18px rgba(255,210,74,0.15); }
.skin-chip { width: 26px; height: 26px; border-radius: 50%; }

.settings-panel { width: 100%; }
.settings-panel label { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 13.5px; font-weight: 700; color: #aab4d4; margin: 9px 0; }
.settings-panel input[type=range] { width: 150px; accent-color: #ffd24a; }
.settings-panel select { background: #1a2138; color: #fff; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 5px 9px; font-family: inherit; }

.stats-row { display: flex; gap: 14px; animation: fadeUp 0.8s 0.5s both; }
.stat {
  flex: 1; min-width: 86px; text-align: center; padding: 12px 8px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
}
.stat b { display: block; font-family: 'Anton'; font-size: 26px; color: #ffd24a; }
.stat span { font-size: 11px; letter-spacing: 2px; color: #8a93b5; font-weight: 700; }

.footer { position: absolute; bottom: 18px; width: 100%; text-align: center; font-size: 12.5px; color: #6a7390; letter-spacing: 1px; }

/* ---------- death / victory / pause ---------- */
.center-screen { display: flex; align-items: center; justify-content: center; background: rgba(8, 10, 18, 0.78); backdrop-filter: blur(6px); }
.death-card, .victory-card, .pause-card {
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 44px 60px;
  border-radius: 24px; background: rgba(16, 20, 38, 0.92); border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 80px rgba(60, 80, 200, 0.25); animation: cardIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}
@keyframes cardIn { from { transform: scale(0.85) translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.placed-label { letter-spacing: 6px; font-weight: 800; color: #8a93b5; font-size: 15px; }
.placed-num { font-family: 'Anton'; font-size: 110px; line-height: 1; color: #fff; text-shadow: 0 0 40px rgba(140, 160, 255, 0.4); }
.death-sub { color: #aab4d4; font-weight: 600; font-size: 15px; }
.victory-num { font-family: 'Anton'; font-size: 64px; color: #ffd24a; line-height: 1; }
.victory-title {
  font-family: 'Anton'; font-size: 78px; letter-spacing: 4px; line-height: 1;
  background: linear-gradient(180deg, #fff8e0 0%, #ffd24a 55%, #ff9d2e 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 34px rgba(255, 200, 60, 0.55));
  animation: victoryPulse 1.6s ease-in-out infinite alternate;
}
@keyframes victoryPulse { from { filter: drop-shadow(0 0 22px rgba(255,200,60,0.4)); } to { filter: drop-shadow(0 0 52px rgba(255,200,60,0.8)); } }
.btn-row { display: flex; gap: 14px; margin-top: 8px; }
.pause-card h2 { font-family: 'Anton'; letter-spacing: 4px; font-size: 42px; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; font-weight: 700; }
#hud > * { position: absolute; }

#stormTint { inset: 0; background: radial-gradient(ellipse at center, rgba(130,40,220,0.12) 0%, rgba(110,30,200,0.42) 100%); opacity: 0; transition: opacity 0.6s; }
#lowhpTint { inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(220,30,30,0.5) 100%); opacity: 0; transition: opacity 0.3s; }
#hurtFlash { inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(255,60,40,0.4) 100%); opacity: 0; }
#hud.hurtflash #hurtFlash { animation: hurtf 0.45s ease-out; }
@keyframes hurtf { 0% { opacity: 1; } 100% { opacity: 0; } }

#compassCanvas { top: 10px; left: 50%; transform: translateX(-50%); opacity: 0.9; }

#topRight { top: 16px; right: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
#minimap { border-radius: 50%; box-shadow: 0 4px 18px rgba(0,0,0,0.45); }
#counts { display: flex; gap: 8px; }
.cnt { background: rgba(10, 14, 26, 0.72); padding: 5px 12px; border-radius: 9px; font-size: 13.5px; letter-spacing: 1px; color: #cfd8f5; }
.cnt b { color: #fff; font-size: 16px; }
.cnt.or b { color: #ffd24a; }
#stormTimer { background: rgba(10, 14, 26, 0.72); padding: 5px 12px; border-radius: 9px; font-size: 13.5px; letter-spacing: 1.5px; color: #c490ff; }

#killfeed { top: 110px; left: 16px; display: flex; flex-direction: column; gap: 5px; max-width: 360px; }
.kf-entry { background: rgba(10, 14, 26, 0.66); border-left: 3px solid rgba(255,255,255,0.35); padding: 5px 11px; border-radius: 7px; font-size: 12.8px; color: #d5dcf2; transition: opacity 0.8s; animation: kfIn 0.25s ease both; }
.kf-entry.kf-you { border-left-color: #ffd24a; color: #ffe9ad; }
@keyframes kfIn { from { transform: translateX(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

#announce { top: 17%; left: 50%; transform: translateX(-50%); font-family: 'Anton'; font-size: 30px; letter-spacing: 2.5px; text-shadow: 0 2px 14px rgba(0,0,0,0.65); opacity: 0; white-space: nowrap; }
#announce.show { animation: annIn 2.2s ease both; }
@keyframes annIn { 0% { opacity: 0; transform: translateX(-50%) scale(0.85); } 10% { opacity: 1; transform: translateX(-50%) scale(1.03); } 16% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
#elimBanner { top: 26%; left: 50%; transform: translateX(-50%); font-family: 'Anton'; font-size: 34px; letter-spacing: 3px; color: #ffd24a; text-shadow: 0 0 26px rgba(255, 200, 60, 0.6), 0 2px 10px rgba(0,0,0,0.7); opacity: 0; white-space: nowrap; }
#elimBanner.show { animation: annIn 1.9s ease both; }

#crosshair { top: 50%; left: 50%; width: 0; height: 0; --gap: 5px; }
#crosshair i { position: absolute; background: #fff; box-shadow: 0 0 4px rgba(0,0,0,0.8); }
#crosshair .ct { width: 2px; height: 8px; left: -1px; top: calc(-8px - var(--gap)); }
#crosshair .cb { width: 2px; height: 8px; left: -1px; top: var(--gap); }
#crosshair .cl { width: 8px; height: 2px; top: -1px; left: calc(-8px - var(--gap)); }
#crosshair .cr { width: 8px; height: 2px; top: -1px; left: var(--gap); }
#crosshair .cd { width: 3px; height: 3px; border-radius: 50%; left: -1.5px; top: -1.5px; }
#hitmarker { top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 26px; font-weight: 900; opacity: 0; text-shadow: 0 0 6px rgba(0,0,0,0.8); }
#hitmarker.pop { animation: hitpop 0.28s ease both; }
@keyframes hitpop { 0% { opacity: 1; transform: translate(-50%,-50%) scale(1.5); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(0.8); } }

#scopeOverlay { display: none; inset: 0; background: radial-gradient(circle at center, transparent 29%, rgba(4,6,12,0.97) 31%); }
.scope-ring { position: absolute; top: 50%; left: 50%; width: 62vmin; height: 62vmin; transform: translate(-50%,-50%); border: 3px solid rgba(255,255,255,0.85); border-radius: 50%; }
.scope-h { position: absolute; top: 50%; left: 50%; width: 62vmin; height: 2px; background: rgba(255,255,255,0.8); transform: translate(-50%,-50%); }
.scope-v { position: absolute; top: 50%; left: 50%; width: 2px; height: 62vmin; background: rgba(255,255,255,0.8); transform: translate(-50%,-50%); }

#bars { bottom: 22px; left: 22px; display: flex; flex-direction: column; gap: 6px; width: 300px; }
.bar { position: relative; height: 20px; border-radius: 10px; background: rgba(10, 14, 26, 0.7); overflow: hidden; }
.bar div { height: 100%; border-radius: 10px; transition: width 0.25s ease; }
.bar.hp div { background: linear-gradient(90deg, #4fd24a, #7fe85a); box-shadow: 0 0 14px rgba(90, 220, 80, 0.5); }
.bar.shield { height: 14px; }
.bar.shield div { background: linear-gradient(90deg, #2f9bff, #5ad0f2); box-shadow: 0 0 14px rgba(70, 170, 255, 0.5); }
.bar span { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

#useBar { bottom: 130px; left: 50%; transform: translateX(-50%); text-align: center; }
#useLabel { font-size: 13px; letter-spacing: 2px; margin-bottom: 5px; color: #cfe6ff; }
.use-track { width: 230px; height: 9px; border-radius: 5px; background: rgba(10,14,26,0.7); overflow: hidden; }
#useFill { height: 100%; background: linear-gradient(90deg, #5ad0f2, #4ae0c4); }

#interactPrompt, #busPrompt {
  bottom: 165px; left: 50%; transform: translateX(-50%);
  background: rgba(10, 14, 26, 0.78); padding: 9px 18px; border-radius: 10px;
  font-size: 15px; letter-spacing: 1px; color: #ffe9ad; border: 1px solid rgba(255, 210, 74, 0.35);
  animation: promptPulse 1.4s ease-in-out infinite alternate;
}
@keyframes promptPulse { from { box-shadow: 0 0 6px rgba(255,210,74,0.15); } to { box-shadow: 0 0 18px rgba(255,210,74,0.45); } }
#busPrompt { bottom: 200px; font-size: 19px; }

#bottomRight { bottom: 22px; right: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
#ammoBox { background: rgba(10,14,26,0.72); padding: 6px 14px; border-radius: 9px; font-size: 15px; color: #cfd8f5; }
#ammoBox b { color: #fff; font-size: 21px; }
#ammoBox .reloading { color: #ffd24a; letter-spacing: 1px; }
#matsBox { display: flex; gap: 6px; }
.mat { background: rgba(10,14,26,0.72); border-bottom: 3px solid var(--mc); padding: 4px 12px; border-radius: 8px; font-size: 14px; color: #e8ecfa; }
.mat.sel { background: rgba(255,255,255,0.16); }
#hotbar { display: flex; gap: 6px; }
.slot {
  position: relative; width: 52px; height: 52px; border-radius: 10px;
  background: rgba(10, 14, 26, 0.72); border: 2px solid var(--rar, rgba(255,255,255,0.08));
  display: flex; align-items: center; justify-content: center;
}
.slot.sel { background: rgba(255,255,255,0.2); transform: translateY(-5px); box-shadow: 0 6px 14px rgba(0,0,0,0.4); }
.slot .s-key { position: absolute; top: 2px; left: 5px; font-size: 9.5px; color: #8a93b5; }
.slot .s-ico { font-size: 22px; }
.slot .s-count { position: absolute; bottom: 2px; right: 5px; font-size: 11px; color: #fff; }
.pickslot { border-color: rgba(255,255,255,0.2); }

#buildBar { bottom: 90px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; align-items: center; }
.bslot {
  position: relative; width: 56px; height: 56px; border-radius: 11px;
  background: rgba(10, 14, 26, 0.75); border: 2px solid rgba(120, 200, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
}
.bslot.sel { border-color: #5ad0f2; background: rgba(60, 140, 220, 0.3); box-shadow: 0 0 16px rgba(90, 200, 255, 0.4); }
.bslot .b-ico { font-size: 26px; color: #bfe8ff; }
.bslot .s-key { position: absolute; top: 2px; left: 5px; font-size: 9.5px; color: #8a93b5; }
.bmat { background: rgba(10,14,26,0.75); padding: 8px 14px; border-radius: 10px; font-size: 14px; letter-spacing: 1px; }
.bmat-hint { color: #8a93b5; font-size: 11px; }

#dmgnums { inset: 0; overflow: hidden; }
.dmgnum { position: absolute; top: 0; left: 0; font-family: 'Anton'; font-size: 21px; text-shadow: 0 2px 6px rgba(0,0,0,0.7); transition: opacity 0.2s; will-change: transform; }

#fpsMeter { bottom: 8px; left: 8px; font-size: 11px; color: rgba(255,255,255,0.45); }

#bigmap { inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(6, 8, 16, 0.82); pointer-events: none; }
#bigmapCanvas { border-radius: 18px; box-shadow: 0 0 60px rgba(0,0,0,0.7); max-width: 86vmin; max-height: 86vmin; }
.bigmap-hint { position: absolute; bottom: 5vh; font-size: 14px; letter-spacing: 3px; color: #8a93b5; }

@media (max-width: 900px) {
  .lobby-grid { flex-direction: column; gap: 24px; align-items: center; }
  .logo { font-size: 64px; }
}

/* ================= STORM ARENA (1v1 mode) ================= */
.glow.sunset { background: #c2552b44; }
.arena-logo {
  background: linear-gradient(180deg, #fff 25%, #ffc27a 65%, #ff7a4a 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 26px rgba(255, 150, 80, 0.45));
}
.arena-btn {
  background: linear-gradient(135deg, #ff8a4a 0%, #ff6a3a 55%, #e0482a 100%);
  box-shadow: 0 0 34px rgba(255, 120, 60, 0.5), 0 8px 0 #9a3a1a;
  color: #2a0c04;
}
.arena-btn:hover { box-shadow: 0 0 48px rgba(255, 120, 60, 0.75), 0 11px 0 #9a3a1a; }
.arena-btn .btn-sub { color: #5a1c08; }
.diff-row { display: flex; gap: 8px; }
.diff-btn {
  flex: 1; padding: 11px 0; border-radius: 11px; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05);
  color: #cfd8f5; font-family: 'Anton', Impact, sans-serif; font-size: 16px; letter-spacing: 2px;
  transition: all 0.15s ease;
}
.diff-btn:hover { border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }
.diff-btn.sel { border-color: #ff8a4a; color: #ffb27a; background: rgba(255, 138, 74, 0.12); box-shadow: 0 0 16px rgba(255, 138, 74, 0.25); }
.mode-link { color: #8a93b5; font-weight: 700; font-size: 13.5px; letter-spacing: 1.5px; text-decoration: none; transition: color 0.15s; }
.mode-link:hover { color: #fff; }
.arena-brief p { color: #aab4d4; font-size: 13.5px; line-height: 1.55; }
.match-score { font-family: 'Anton'; font-size: 54px; color: #fff; letter-spacing: 4px; }
.defeat-title {
  font-family: 'Anton'; font-size: 78px; letter-spacing: 4px; line-height: 1;
  background: linear-gradient(180deg, #ffd8d0 0%, #ff6a5a 60%, #c03a2a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 90, 70, 0.5));
}

/* round UI */
#scorePips { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; margin-top: 30px; }
.pip { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); background: rgba(10,14,26,0.5); }
.pip.won { background: #ffd24a; border-color: #ffd24a; box-shadow: 0 0 10px rgba(255, 210, 74, 0.7); }
.pip.rival.lost { background: #ff6a5a; border-color: #ff6a5a; box-shadow: 0 0 10px rgba(255, 106, 90, 0.7); }
.pip-vs { font-size: 11px; font-weight: 800; color: #8a93b5; letter-spacing: 1px; margin: 0 5px; }

#countNum {
  position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'Anton'; font-size: 110px; color: #fff;
  text-shadow: 0 0 40px rgba(255, 170, 90, 0.8), 0 4px 16px rgba(0,0,0,0.6);
}
#countNum.pop { animation: countPop 0.9s ease both; }
@keyframes countPop { 0% { opacity: 0; transform: translate(-50%,-50%) scale(1.7); } 25% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }

#roundCard {
  position: absolute; top: 22%; left: 50%; transform: translateX(-50%);
  font-family: 'Anton'; font-size: 44px; letter-spacing: 5px; color: #ffc27a;
  text-shadow: 0 0 28px rgba(255, 170, 90, 0.6), 0 3px 12px rgba(0,0,0,0.7); opacity: 0;
}
#roundCard.show { animation: annIn 2.4s ease both; }
#roundResult {
  position: absolute; top: 30%; left: 50%; transform: translateX(-50%);
  font-family: 'Anton'; font-size: 62px; letter-spacing: 5px;
  text-shadow: 0 0 34px rgba(255, 200, 90, 0.5), 0 4px 14px rgba(0,0,0,0.75); opacity: 0;
}
#roundResult.show { animation: annIn 2.5s ease both; }

#vsBanner {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 26px; align-items: center; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
#vsBanner.on { opacity: 1; }
.vs-you, .vs-rival b { font-family: 'Anton'; font-size: 44px; color: #fff; text-shadow: 0 3px 14px rgba(0,0,0,0.7); }
.vs-mid { font-family: 'Anton'; font-size: 30px; color: #ff8a4a; text-shadow: 0 0 22px rgba(255, 138, 74, 0.8); }
.vs-rival { display: flex; flex-direction: column; align-items: flex-start; }
.vs-rival b { color: #ffb27a; }
.vs-rival i { font-style: normal; font-size: 13px; letter-spacing: 3px; color: #8a93b5; font-weight: 800; }

@media (max-height: 800px) {
  .logo { font-size: 64px; }
  .btn-play { font-size: 26px; padding: 16px 24px; }
  .panel { padding: 13px 16px; }
  .lobby-grid { gap: 40px; }
}
