/* ==========================================================================
   Duca: Sesiune Survivors - Stylesheet
   Roguelite 2D Arena @ UPT Timișoara / Cugir
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-dark: #080314;
  --bg-card: rgba(22, 10, 42, 0.94);
  --bg-modal: rgba(10, 4, 22, 0.96);
  --neon-cyan: #00f3ff;
  --neon-pink: #ff007b;
  --neon-gold: #ffd700;
  --neon-green: #00ff66;
  --neon-purple: #9d4edd;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-glow: rgba(0, 243, 255, 0.35);
  --font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  overscroll-behavior: none;
}

/* Canvas container */
#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   IN-GAME HUD
   ========================================================================== */

#game-hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Top XP Bar */
.hud-xp-container {
  width: 100%;
  position: relative;
  pointer-events: auto;
}

.hud-xp-bar-bg {
  width: 100%;
  height: 14px;
  background: rgba(0, 0, 0, 0.65);
  border-bottom: 1px solid rgba(0, 243, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hud-xp-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0077ff, #00f3ff, #00ff88);
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.8);
  transition: width 0.15s ease-out;
}

.hud-xp-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.5px;
}

/* Top Stats Header */
.hud-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  pointer-events: auto;
}

.hud-player-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 6, 28, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hud-avatar {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b2cbf, #3a0ca3);
  border: 1.5px solid var(--neon-gold);
}

.hud-player-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hud-player-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-player-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
}

.hud-level-badge {
  background: linear-gradient(135deg, #ffd700, #ff8800);
  color: #000000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 8px;
}

.hud-hp-bar-bg {
  width: 110px;
  height: 10px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.hud-hp-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ff0055, #00ff66);
  transition: width 0.2s ease;
}

.hud-hp-text {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
}

/* Center Run Tracker */
.hud-center-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 6, 28, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 243, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hud-stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 800;
}

.hud-timer-val {
  color: var(--neon-cyan);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.hud-kills-val {
  color: var(--neon-pink);
}

.hud-coins-val {
  color: var(--neon-gold);
}

/* Right HUD Buttons */
.hud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hud-btn:hover, .hud-btn:active {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
  border-color: var(--neon-cyan);
}

/* Weapons inventory mini badges */
.hud-weapons-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  pointer-events: auto;
}

.hud-weapon-icon {
  width: 32px;
  height: 32px;
  background: rgba(20, 8, 40, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 1rem;
}

.hud-weapon-lv {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--neon-cyan);
  color: #000000;
  font-size: 0.55rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
}

/* Boss Health Bar (Top Center) */
#boss-hud {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 480px;
  background: rgba(18, 5, 26, 0.92);
  border: 2px solid var(--neon-pink);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 0 25px rgba(255, 0, 123, 0.5);
  display: none;
  flex-direction: column;
  gap: 4px;
  pointer-events: auto;
  z-index: 20;
}

.boss-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--neon-pink);
  letter-spacing: 0.5px;
}

.boss-hp-bg {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.boss-hp-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ff007b, #ff5400, #ffd700);
  transition: width 0.1s linear;
}

/* Bottom Controls */
.hud-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px;
  pointer-events: none;
  width: 100%;
}

/* Mobile Virtual Joystick - Floating Touch System */
#virtual-joystick-zone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 55vw;
  height: 80vh;
  pointer-events: auto;
  touch-action: none;
  z-index: 5;
}

/* ASCUNDE JOYSTICK-UL PE WINDOWS / DESKTOP CU MOUSE */
@media (hover: hover) and (pointer: fine) {
  #virtual-joystick-zone,
  .joystick-base {
    display: none !important;
    pointer-events: none !important;
  }
}

.joystick-base {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(0, 243, 255, 0.45);
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.joystick-base.active {
  opacity: 0.95;
  border-style: solid;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
}

.joystick-knob {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #00f3ff 20%, #0077ff 100%);
  border: 2px solid #ffffff;
  position: absolute;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.8);
  transform: translate(0, 0);
  pointer-events: none;
}

/* Ultimate Button */
#ultimate-btn-container {
  position: absolute;
  right: max(20px, env(safe-area-inset-right, 20px));
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 30;
}

.btn-ultimate {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle, #2d1052 0%, #15062a 100%);
  border: 3px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s ease, border-color 0.2s;
}

.btn-ultimate.ready {
  border-color: var(--neon-gold);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
  animation: ultPulse 1.2s infinite alternate;
}

@keyframes ultPulse {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.08); filter: brightness(1.25); }
}

.btn-ultimate:active {
  transform: scale(0.95);
}

.ult-fill-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(0deg, rgba(255, 215, 0, 0.35), rgba(255, 0, 123, 0.4));
  pointer-events: none;
  transition: height 0.2s ease-out;
}

.ult-icon {
  font-size: 2rem;
  z-index: 2;
}

.ult-text {
  font-size: 0.62rem;
  font-weight: 900;
  color: #ffd700;
  z-index: 2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ult-desktop-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* ==========================================================================
   MODAL OVERLAYS (Common Card Layouts)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 2, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 94vh;
  background: linear-gradient(180deg, #1b0933 0%, #0d041c 100%);
  border: 2px solid rgba(0, 243, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 0 35px rgba(0, 243, 255, 0.3), 0 25px 60px rgba(0, 0, 0, 0.85);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 22px 20px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.modal-title {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #ffffff, #00f3ff, #ff007b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.modal-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.modal-footer {
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Action Buttons */
.btn-action {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #00f3ff, #0077ff);
  color: #000000;
  box-shadow: 0 4px 18px rgba(0, 243, 255, 0.45);
}
.btn-primary:hover, .btn-primary:active {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #ffd700, #ff8800);
  color: #000000;
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.4);
}
.btn-gold:hover, .btn-gold:active {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover, .btn-secondary:active {
  background: rgba(255, 255, 255, 0.2);
}

.btn-rewarded {
  background: linear-gradient(135deg, #00ff66, #00b32d);
  color: #000000;
  box-shadow: 0 4px 20px rgba(0, 255, 102, 0.45);
}
.btn-rewarded:hover, .btn-rewarded:active {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* ==========================================================================
   MAIN MENU MODAL
   ========================================================================== */

.menu-game-modes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-card:hover, .mode-card.selected {
  background: rgba(0, 243, 255, 0.1);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 243, 255, 0.25);
}

.mode-card.locked {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.mode-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mode-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.mode-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mode-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

/* Ultimate selector */
.ultimate-selector-group {
  display: flex;
  gap: 10px;
}

.ult-select-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ult-select-card:hover, .ult-select-card.selected {
  background: rgba(255, 0, 123, 0.15);
  border-color: var(--neon-pink);
  box-shadow: 0 0 18px rgba(255, 0, 123, 0.3);
}

.ult-select-icon {
  font-size: 1.8rem;
}

.ult-select-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
}

.ult-select-detail {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   LEVEL-UP MODAL
   ========================================================================== */

#modal-levelup .modal-card {
  max-width: 620px;
  border-color: var(--neon-gold);
  box-shadow: 0 0 45px rgba(255, 215, 0, 0.4), 0 25px 60px rgba(0, 0, 0, 0.9);
}

.upgrade-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upgrade-card {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.18s ease-in-out;
  position: relative;
  overflow: hidden;
}

.upgrade-card:hover, .upgrade-card:active {
  background: rgba(255, 215, 0, 0.12);
  border-color: var(--neon-gold);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.35);
}

.upgrade-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--neon-gold);
  opacity: 0;
  transition: opacity 0.2s;
}

.upgrade-card:hover::after {
  opacity: 1;
}

.upgrade-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.upgrade-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upgrade-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.upgrade-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.upgrade-card-tag {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.tag-weapon { background: #00f3ff; color: #000; }
.tag-passive { background: #ffd700; color: #000; }
.tag-heal { background: #00ff66; color: #000; }

.upgrade-card-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* ==========================================================================
   MAGAZINUL DIN CĂMIN (Meta-Shop)
   ========================================================================== */

.shop-balance-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 215, 0, 0.12);
  border: 1.5px solid var(--neon-gold);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.2);
}

.shop-balance-text {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
}

.shop-balance-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--neon-gold);
  letter-spacing: 0.5px;
}

.shop-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-item-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-item-icon {
  font-size: 1.8rem;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.shop-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.shop-tier-pips {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.tier-pip {
  width: 14px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.tier-pip.filled {
  background: var(--neon-cyan);
  box-shadow: 0 0 6px rgba(0, 243, 255, 0.8);
}

.shop-btn-buy {
  background: linear-gradient(135deg, #ffd700, #ff8800);
  border: none;
  border-radius: 10px;
  color: #000000;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s;
}

.shop-btn-buy:hover:not(:disabled) {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.shop-btn-buy:disabled {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

/* ==========================================================================
   GAME OVER & VICTORY STATS
   ========================================================================== */

.run-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-tile-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.stat-tile-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
}

.stat-tile.score-tile {
  grid-column: span 2;
  text-align: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-tile.score-tile .stat-tile-val {
  font-size: 1.8rem;
  color: var(--neon-gold);
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.5);
}

/* Responsive Ads Containers */
.adsense-placeholder-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

@media (max-width: 640px), (orientation: portrait) {
  .hud-top-bar {
    flex-wrap: wrap;
    padding: 4px 8px;
    gap: 6px;
  }
  .hud-player-box {
    padding: 4px 8px;
    gap: 6px;
    order: 1;
  }
  .hud-actions {
    order: 2;
  }
  .hud-center-stats {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 2px;
    padding: 4px 10px;
    gap: 16px;
  }
  .hud-avatar {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
  .hud-hp-bar-bg {
    width: 75px;
    height: 8px;
  }
  .hud-stat-item {
    font-size: 0.75rem;
  }
  .btn-ultimate {
    width: 70px;
    height: 70px;
  }
  .ult-icon {
    font-size: 1.6rem;
  }
  .ult-desktop-hint {
    display: none !important;
  }
  .modal-card {
    border-radius: 18px;
  }
  .modal-title {
    font-size: 1.4rem;
  }
  .upgrade-card {
    padding: 10px 12px;
    gap: 10px;
  }
  .upgrade-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .upgrade-card-name {
    font-size: 0.95rem;
  }
  .upgrade-card-desc {
    font-size: 0.75rem;
  }
}

/* Native, keyboard-accessible upgrade choices. */
.upgrade-card{width:100%;text-align:left;color:var(--text-main);font:inherit;touch-action:manipulation}
.upgrade-card-info{min-width:0}.upgrade-hotkey{font:700 12px monospace;align-self:flex-start;color:var(--neon-gold);border:1px solid #facc1566;border-radius:5px;padding:3px 6px;flex-shrink:0}
.upgrade-card:focus-visible{background:#ffd7001f;border-color:var(--neon-gold);outline:3px solid #fff;outline-offset:3px}
