/* ═══════════════════════════════════════════════════════════════
   EcoCity AR — City Renderer Styles
   Ciudades competitivas con edificios animados y personitas
   ═══════════════════════════════════════════════════════════════ */

/* ── Cities Container ────────────────────────────────────────── */
#cities-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
}

/* ── City Card ───────────────────────────────────────────────── */
.city-card {
  background: rgba(0, 20, 12, 0.88);
  border: 1px solid rgba(0, 255, 135, 0.15);
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 calc(50% - 18px);
  min-width: 180px;
  max-width: 320px;
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
}

.city-card--mine {
  border-color: rgba(0, 255, 135, 0.5);
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.15);
}

@media (max-width: 600px) {
  .city-card {
    flex: 0 0 calc(50% - 8px);
    min-width: 150px;
  }
  #cities-container { gap: 8px; padding: 8px; }
}

@media (max-width: 380px) {
  .city-card { flex: 0 0 100%; max-width: 100%; }
}

/* ── City Header ─────────────────────────────────────────────── */
.city-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 4px;
  font-family: var(--font-display, 'Orbitron', monospace);
}

.city-owner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

.city-owner-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-mine-badge {
  font-size: 8px;
  background: rgba(0,255,135,0.15);
  border: 1px solid rgba(0,255,135,0.4);
  color: #00FF87;
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 1px;
}

.city-rating {
  font-size: 10px;
  font-family: var(--font-display, monospace);
  margin-left: auto;
  transition: color 0.5s;
}

/* ── Energy Bar ──────────────────────────────────────────────── */
.city-energy-bar-wrap {
  height: 3px;
  background: rgba(0,0,0,0.5);
  margin: 0 10px 6px;
  border-radius: 2px;
  overflow: hidden;
}
.city-energy-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease, background 0.5s;
}

/* ── City Scene ──────────────────────────────────────────────── */
.city-scene {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1f1a 0%, #071510 60%, #0d200d 100%);
  transition: background 1s;
}

/* Sky with clouds */
.city-sky {
  position: absolute;
  inset: 0;
  transition: background 1s;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
  height: 12px;
}
.cloud-1 { width: 60px; top: 15px; left: -70px; animation: cloud-drift 18s linear infinite; }
.cloud-2 { width: 40px; top: 28px; left: -50px; animation: cloud-drift 25s linear infinite 8s; }
@keyframes cloud-drift { from { left: -80px; } to { left: 110%; } }

.city-ground {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 18px;
  background: linear-gradient(180deg, #0a1f0a 0%, #061206 100%);
  border-top: 1px solid rgba(0,255,135,0.15);
}

/* ── City Grid ───────────────────────────────────────────────── */
.city-grid-wrap {
  position: absolute;
  bottom: 14px;
  left: 4px; right: 4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2px;
  height: 132px;
}

.city-lot {
  position: relative;
  background: rgba(0, 30, 15, 0.6);
  border: 1px solid rgba(0, 255, 135, 0.08);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.city-lot:hover {
  border-color: rgba(0, 255, 135, 0.35);
  background: rgba(0, 255, 135, 0.05);
}
.city-lot:empty::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,255,135,0.15);
  font-size: 12px;
}

.lot-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

/* Lot type backgrounds */
.city-lot--building  { background: rgba(30, 40, 50, 0.7); border-color: rgba(100,150,200,0.2); }
.city-lot--solar     { background: rgba(40, 30, 0, 0.7);  border-color: rgba(255,210,0,0.25); }
.city-lot--wind      { background: rgba(0, 20, 40, 0.7);  border-color: rgba(0,180,255,0.2); }
.city-lot--hydrogen  { background: rgba(0, 20, 40, 0.7);  border-color: rgba(0,229,255,0.3); }

/* ── BUILDING ────────────────────────────────────────────────── */
.b-building {
  width: 70%; height: 80%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  position: relative;
}
.b-roof {
  width: 80%; height: 15%;
  background: #37474F;
  border-radius: 2px 2px 0 0;
  border-top: 2px solid #00E5FF;
}
.b-body {
  width: 100%; flex: 1;
  background: linear-gradient(180deg, #455A64 0%, #37474F 100%);
  display: flex; align-items: center; justify-content: center;
}
.b-windows {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  padding: 2px;
}
.b-win {
  width: 4px; height: 4px;
  background: #FFD700;
  border-radius: 1px;
  animation: win-blink 3s ease-in-out infinite;
}
.b-win:nth-child(2) { animation-delay: 0.5s; }
.b-win:nth-child(3) { animation-delay: 1.2s; }
.b-win:nth-child(5) { animation-delay: 0.8s; background: #87CEEB; }
.b-win:nth-child(6) { background: transparent; }
@keyframes win-blink {
  0%,90%,100% { opacity: 1; }
  95% { opacity: 0.2; }
}
.b-door {
  width: 30%; height: 20%;
  background: #263238;
  border-radius: 2px 2px 0 0;
  border-top: 1px solid #546E7A;
}
.b-smoke { position: absolute; top: 0; right: 2px; }
.smoke-puff {
  width: 4px; height: 4px;
  background: rgba(150,150,150,0.3);
  border-radius: 50%;
  animation: smoke-rise 2s ease-out infinite;
}
.smoke-puff.s2 { animation-delay: 1s; margin-left: 2px; }
@keyframes smoke-rise {
  0%   { opacity: 0.6; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-14px) scale(2.5); }
}

/* ── SOLAR ───────────────────────────────────────────────────── */
.b-solar {
  width: 90%; height: 70%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  position: relative;
}
.b-solar-panel {
  width: 90%; height: 35%;
  background: linear-gradient(135deg, #1565C0 25%, #1976D2 50%, #1565C0 75%);
  border: 1px solid #FFD700;
  border-radius: 2px;
  transform: rotateX(20deg);
  animation: solar-pulse 2s ease-in-out infinite alternate;
}
.b-solar-panel.p2 { background: linear-gradient(135deg, #0D47A1 25%, #1565C0 50%, #0D47A1 75%); margin-top: 1px; }
@keyframes solar-pulse {
  0%   { box-shadow: 0 0 4px rgba(255,215,0,0.3); }
  100% { box-shadow: 0 0 10px rgba(255,215,0,0.7); }
}
.b-solar-glow {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px;
  background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
  animation: solar-pulse 2s ease-in-out infinite alternate;
  pointer-events: none;
}
.b-solar-base {
  width: 30%; height: 20%;
  background: #455A64;
  border-radius: 1px;
}

/* ── WIND TURBINE ────────────────────────────────────────────── */
.b-wind {
  width: 100%; height: 95%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  position: relative;
}
.b-wind-tower {
  width: 12%; height: 65%;
  background: linear-gradient(90deg, #CFD8DC, #ECEFF1, #CFD8DC);
  border-radius: 1px;
  flex-shrink: 0;
}
.b-wind-head {
  position: absolute;
  top: 2px; left: 50%; transform: translateX(-50%);
}
.b-wind-blades {
  position: relative;
  width: 24px; height: 24px;
  animation: spin-blades 1.5s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes spin-blades { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.blade {
  position: absolute;
  width: 3px; height: 12px;
  background: linear-gradient(180deg, #B0BEC5, #ECEFF1);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform-origin: 50% 0%;
}
.b1 { transform: translateX(-50%) rotate(0deg); }
.b2 { transform: translateX(-50%) rotate(120deg); }
.b3 { transform: translateX(-50%) rotate(240deg); }

/* ── HYDROGEN ────────────────────────────────────────────────── */
.b-hydrogen {
  width: 80%; height: 80%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
}
.b-h2-tank {
  width: 65%; flex: 1;
  background: linear-gradient(135deg, #006064, #00838F, #006064);
  border-radius: 50% 50% 30% 30%;
  border: 1px solid #00E5FF;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: h2-pulse 3s ease-in-out infinite;
}
@keyframes h2-pulse {
  0%,100% { box-shadow: 0 0 4px rgba(0,229,255,0.3); }
  50%     { box-shadow: 0 0 12px rgba(0,229,255,0.6); }
}
.b-h2-shine {
  position: absolute; top: 20%; left: 20%;
  width: 30%; height: 25%;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: rotate(-30deg);
}
.b-h2-label {
  font-size: 5px; font-weight: 700;
  color: #00E5FF; letter-spacing: 0.5px;
  font-family: monospace;
  position: relative; z-index: 1;
}
.b-h2-pipe {
  width: 4px; height: 8px;
  background: #455A64;
}
.b-h2-base {
  width: 80%; height: 15%;
  background: #37474F;
  border-radius: 2px;
}

/* ── PEOPLE LAYER ────────────────────────────────────────────── */
.city-people-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.city-person {
  position: absolute;
  width: 8px;
  transform-origin: bottom center;
  transition: none;
  z-index: 10;
}

.person-body {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
}
.person-head {
  width: 5px; height: 5px;
  background: var(--skin, #FFC0A0);
  border-radius: 50%;
  margin-bottom: 1px;
}
.person-torso {
  width: 5px; height: 6px;
  background: var(--shirt, #00FF87);
  border-radius: 1px;
}
.person-legs {
  display: flex; gap: 1px;
  animation: walk-legs 0.4s ease-in-out infinite;
}
.person-leg {
  width: 2px; height: 5px;
  background: #263238;
  border-radius: 0 0 1px 1px;
}
.l1 { animation: leg1 0.4s ease-in-out infinite; }
.l2 { animation: leg2 0.4s ease-in-out infinite; }
@keyframes leg1 { 0%,100%{transform:rotate(-15deg)} 50%{transform:rotate(15deg)} }
@keyframes leg2 { 0%,100%{transform:rotate(15deg)} 50%{transform:rotate(-15deg)} }

/* ── Blackout Veil per city ──────────────────────────────────── */
.city-blackout-veil {
  display: none;
  position: absolute; inset: 0;
  background: rgba(150,0,0,0.3);
  align-items: center; justify-content: center;
  font-size: 28px;
  animation: blackout-city 0.5s ease-in-out infinite alternate;
  z-index: 20;
  pointer-events: none;
}
@keyframes blackout-city {
  0%   { background: rgba(150,0,0,0.15); }
  100% { background: rgba(150,0,0,0.3); }
}

/* ── City Stats Row ──────────────────────────────────────────── */
.city-stats-row {
  display: flex;
  justify-content: space-around;
  padding: 4px 8px 8px;
  gap: 4px;
}
.cstat {
  font-size: 9px;
  font-family: var(--font-display, monospace);
  color: rgba(200, 230, 210, 0.7);
  white-space: nowrap;
}

/* ── Ranking Panel ───────────────────────────────────────────── */
#city-ranking-panel {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  background: rgba(0,15,8,0.92);
  border: 1px solid rgba(0,255,135,0.2);
  border-radius: 12px;
  padding: 8px 14px;
  min-width: 280px;
  max-width: 92vw;
  backdrop-filter: blur(16px);
}

#city-ranking-panel h3 {
  font-family: var(--font-display, monospace);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(0,255,135,0.6);
  text-align: center;
  margin-bottom: 6px;
}

#city-ranking { display: flex; flex-direction: column; gap: 4px; }

.rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,0.3);
  font-size: 11px;
  transition: background 0.3s;
}
.rank-row--me { background: rgba(0,255,135,0.08); }
.rank-medal  { font-size: 13px; flex-shrink: 0; }
.rank-name   { flex: 1; font-weight: 600; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-stat   { font-family: var(--font-display, monospace); font-size: 10px; color: #00FF87; }
.rank-score  { font-family: var(--font-display, monospace); font-size: 10px; color: #FFD700; }
.rank-blackout { font-size: 11px; animation: blackout-city 0.5s infinite alternate; }

/* ── Demo grid hide when cities view active ──────────────────── */
#demo-grid.cities-mode {
  background: transparent;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  padding-top: 60px;
}
#demo-grid.cities-mode .city-grid-demo { display: none; }

/* ── Build Menu in city context ──────────────────────────────── */
#city-build-hint {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(0,255,135,0.5);
  pointer-events: none;
  letter-spacing: 1px;
  z-index: 50;
  text-align: center;
}

/* ── Mobile tweaks ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .city-card { flex: 0 0 calc(50% - 6px); }
  .city-scene { height: 130px; }
  .city-grid-wrap { height: 105px; gap: 1px; }
  #city-ranking-panel { top: 62px; min-width: 240px; }
  .rank-row { padding: 3px 6px; }
  .b-win { width: 3px; height: 3px; }
}

/* ═══════════════════════════════════════════════════════════════
   EcoCity AR — Level system styles
   ═══════════════════════════════════════════════════════════════ */

/* XP progress bar at bottom of each lot */
.xp-bar-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(0,0,0,0.5);
  z-index: 5;
}
.xp-bar {
  height: 100%;
  width: 0%;
  border-radius: 0 2px 2px 0;
  background: #00E5FF;
  transition: width 1s ease, background 0.5s;
}

/* Upgrade badge — glowing arrow on top right */
.upgrade-badge {
  position: absolute;
  top: 2px; right: 2px;
  width: 14px; height: 14px;
  background: #00FF87;
  color: #000;
  font-size: 9px;
  font-weight: 900;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  animation: upg-pulse 1s ease-in-out infinite alternate;
  box-shadow: 0 0 6px #00FF87;
}
@keyframes upg-pulse {
  0%  { transform: scale(1);    opacity: 1; }
  100%{ transform: scale(1.15); opacity: 0.8; }
}

/* Level badge — bottom left */
.level-badge {
  position: absolute;
  bottom: 5px; left: 2px;
  font-family: 'Orbitron', monospace;
  font-size: 7px;
  font-weight: 700;
  color: #FFD700;
  background: rgba(0,0,0,0.6);
  border-radius: 2px;
  padding: 1px 3px;
  z-index: 10;
  pointer-events: none;
}

/* Lot level backgrounds */
.city-lot--lv2 { background: rgba(20,35,50,0.75) !important; }
.city-lot--lv3 { background: rgba(10,25,40,0.85) !important; }
.city-lot--lv4 {
  background: rgba(5,15,30,0.9) !important;
  border-color: rgba(255,215,0,0.3) !important;
  box-shadow: inset 0 0 8px rgba(255,215,0,0.08);
}

/* ── Building level visuals ──────────────────────────────────── */
.b-building { width:72%; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; position:relative; height:90%; }
.b-antenna  { width:3px; height:8px; background:#00E5FF; margin-bottom:1px; border-radius:2px; }
.b-roof     { width:82%; height:8%; background:#37474F; border-radius:2px 2px 0 0; border-top:2px solid #00E5FF; min-height:4px; }
.b-body     { width:100%; background:#455A64; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; position:relative; }
.b-wins     { display:grid; gap:2px; padding:2px; }
.bw         { width:4px; height:4px; background:#FFD700; border-radius:1px; animation:win-blink 3s infinite; }
.bw:nth-child(even) { background:#87CEEB; }
@keyframes win-blink { 0%,92%,100%{opacity:1} 96%{opacity:.1} }
.b-helipad  { width:12px; height:12px; border:1px solid #00E5FF; border-radius:50%; position:absolute; top:3px; right:3px; }
.b-door     { width:28%; height:15%; background:#263238; border-radius:2px 2px 0 0; }
.b-smoke    { position:absolute; top:-8px; right:2px; }
.smoke-puff { width:4px; height:4px; background:rgba(150,150,150,.3); border-radius:50%; animation:smoke-rise 2s infinite; }
@keyframes smoke-rise { 0%{opacity:.6;transform:translateY(0)scale(1)} 100%{opacity:0;transform:translateY(-14px)scale(2.5)} }

/* Building heights per level */
.b-lv1 .b-body { height: 42%; }
.b-lv2 .b-body { height: 58%; }
.b-lv3 .b-body { height: 72%; }
.b-lv4 .b-body { height: 86%; }

/* ── Solar level visuals ─────────────────────────────────────── */
.b-solar { width:92%; height:78%; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; }
.b-panels-wrap { width:100%; flex:1; display:flex; flex-wrap:wrap; gap:1px; align-items:flex-end; justify-content:center; padding:1px; }
.b-spanel { flex:1 1 calc(50% - 2px); min-width:6px; height:100%; min-height:8px; max-height:20px;
  background:linear-gradient(135deg,#1565C0 25%,#1976D2 50%,#1565C0 75%);
  border:1px solid #FFD700; border-radius:1px;
  animation:spulse 2s ease-in-out infinite alternate; }
@keyframes spulse { 0%{opacity:.8} 100%{opacity:1;box-shadow:0 0 6px rgba(255,215,0,.5)} }
.b-solar-glow-big { width:30px; height:30px; position:absolute; top:0; left:50%; transform:translateX(-50%);
  background:radial-gradient(circle,rgba(255,215,0,.25) 0%,transparent 70%); pointer-events:none; animation:spulse 2s infinite alternate; }
.b-sbase { width:20%; height:15%; background:#455A64; border-radius:1px; }

.b-sol-lv1 .b-panels-wrap { gap:0; }
.b-sol-lv3 .b-spanel, .b-sol-lv4 .b-spanel { max-height:16px; }

/* ── Wind level visuals ──────────────────────────────────────── */
.b-wind { width:100%; height:95%; position:relative; display:flex; align-items:flex-end; justify-content:center; }
.b-turbine { position:absolute; display:flex; flex-direction:column; align-items:center; transform:translateX(-50%); }
.b-wtow { width:10%; min-width:3px; background:linear-gradient(90deg,#CFD8DC,#ECEFF1,#CFD8DC); border-radius:1px; flex-shrink:0; }
.b-whead { position:absolute; top:0; left:50%; transform:translateX(-50%); }
.b-wblades { position:relative; animation:wblades 1.4s linear infinite; transform-origin:50% 50%; }
@keyframes wblades { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.blade { position:absolute; width:3px; background:linear-gradient(180deg,#B0BEC5,#ECEFF1); border-radius:2px; top:50%; left:50%; transform-origin:50% 0%; }
.b1 { transform:translateX(-50%) rotate(0deg); height:50%; }
.b2 { transform:translateX(-50%) rotate(120deg); height:50%; }
.b3 { transform:translateX(-50%) rotate(240deg); height:50%; }

.b-wind-lv2 .b-wtow { width:12%; }
.b-wind-lv3 .b-turbine { min-width:8px; }
.b-wind-lv4 .b-wblades { animation-duration:0.8s !important; }

/* ── Hydrogen level visuals ──────────────────────────────────── */
.b-hydrogen { width:82%; height:82%; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; position:relative; }
.b-h2-glow  { position:absolute; inset:-4px; border-radius:50%; opacity:.5; animation:h2glow 3s ease-in-out infinite; pointer-events:none; }
@keyframes h2glow { 0%,100%{opacity:.3} 50%{opacity:.6} }
.b-htank    { flex:1; border-radius:50% 50% 30% 30%; border:1px solid #00E5FF; display:flex; align-items:center; justify-content:center; position:relative; animation:h2pulse 3s ease-in-out infinite; }
@keyframes h2pulse { 0%,100%{box-shadow:0 0 4px rgba(0,229,255,.3)} 50%{box-shadow:0 0 12px rgba(0,229,255,.7)} }
.b-h2-shine { position:absolute; top:18%; left:18%; width:28%; height:22%; background:rgba(255,255,255,.25); border-radius:50%; transform:rotate(-30deg); }
.b-h2-label { font-size:5px; font-weight:700; color:#00E5FF; letter-spacing:.5px; font-family:monospace; position:relative; z-index:1; }
.b-h2-gauge { position:absolute; bottom:10%; left:50%; transform:translateX(-50%); width:60%; height:3px; background:rgba(0,229,255,.4); border-radius:2px; }
.b-h2-pipes { display:flex; gap:4px; justify-content:center; }
.b-h2-pipe-h { width:6px; height:6px; background:#455A64; border-radius:50% 50% 0 0; border-top:1px solid #00E5FF; }
.b-hpipe { width:4px; height:7px; background:#455A64; }
.b-hbase { width:80%; height:12%; background:#37474F; border-radius:2px; }

/* ── Upgrade modal overlay ───────────────────────────────────── */
#upgrade-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 450;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 80px;
}
#upgrade-modal-inner {
  background: rgba(0,15,8,0.97);
  border: 1px solid rgba(0,255,135,0.3);
  border-radius: 20px 20px 0 0;
  padding: 22px 18px;
  width: 100%;
  max-width: 480px;
  animation: slide-up .3s ease;
}
.upg-title { font-family:'Orbitron',monospace; font-size:12px; letter-spacing:2px; color:rgba(0,255,135,.6); text-align:center; margin-bottom:14px; }
.upg-current { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:16px; }
.upg-card { flex:1; background:rgba(0,30,15,.7); border:1px solid rgba(0,255,135,.15); border-radius:10px; padding:12px; text-align:center; }
.upg-card.upg-card--next { border-color:rgba(0,255,135,.5); background:rgba(0,50,25,.7); }
.upg-icon { font-size:26px; margin-bottom:4px; }
.upg-name { font-family:'Orbitron',monospace; font-size:10px; color:#00FF87; }
.upg-sub  { font-size:10px; color:rgba(200,230,210,.5); margin-top:2px; }
.upg-arrow { font-size:24px; color:#00FF87; opacity:.7; }
.upg-xp-bar-wrap { height:6px; background:rgba(0,0,0,.4); border-radius:4px; overflow:hidden; margin-bottom:6px; }
.upg-xp-bar      { height:100%; background:#00FF87; border-radius:4px; transition:width .5s; }
.upg-xp-label { font-size:10px; color:rgba(200,230,210,.6); text-align:center; margin-bottom:14px; font-family:'Orbitron',monospace; }
.upg-btn { width:100%; padding:13px; background:#00FF87; border:none; border-radius:8px; color:#000;
  font-family:'Orbitron',monospace; font-size:13px; font-weight:700; letter-spacing:2px; cursor:pointer; transition:all .2s; margin-bottom:10px; }
.upg-btn:hover { background:#00ff9d; box-shadow:0 0 16px rgba(0,255,135,.5); transform:translateY(-1px); }
.upg-btn:disabled { background:#333; color:#666; cursor:not-allowed; transform:none; box-shadow:none; }
.upg-close { width:100%; background:transparent; border:1px solid rgba(0,255,135,.2); border-radius:8px; color:rgba(200,230,210,.5); padding:8px; cursor:pointer; font-family:'Rajdhani',sans-serif; font-size:12px; }
