/* ── Game UI — extends theme.css tokens ── */

.game-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* NAV */
.game-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180, 255, 0, 0.1);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--lime);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-brand:hover { opacity: 0.8; }

.nav-energy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--lime);
}
.energy-icon { font-size: 1.1rem; }
.energy-unit {
  font-size: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-persec {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--amber);
}

/* FORGE ZONE */
.forge-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  position: relative;
  background: radial-gradient(ellipse at 50% 60%, rgba(180, 255, 0, 0.07) 0%, transparent 55%),
              var(--bg);
  min-height: 45vh;
}

.forge-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forge-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 255, 0, 0.15) 0%, transparent 70%);
  animation: pulse-glow 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%       { transform: scale(1.15); opacity: 1; }
}

.forge-btn {
  position: relative;
  z-index: 2;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 3px solid rgba(180, 255, 0, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.08s ease, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(180, 255, 0, 0.1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.forge-btn:hover {
  border-color: rgba(180, 255, 0, 0.6);
  box-shadow: 0 0 50px rgba(180, 255, 0, 0.2);
}

.forge-btn:active,
.forge-btn.pressed {
  transform: scale(0.93);
  border-color: rgba(180, 255, 0, 0.8);
  box-shadow: 0 0 60px rgba(180, 255, 0, 0.35);
}

.forge-icon {
  display: block;
  filter: drop-shadow(0 0 8px rgba(180, 255, 0, 0.5));
}

/* Tap burst effect */
.tap-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--lime);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.tap-burst.fire {
  animation: burst 0.4s ease-out forwards;
}

@keyframes burst {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

/* Particles */
.particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--lime);
  animation: float-up 1.2s ease-out forwards;
  pointer-events: none;
}

@keyframes float-up {
  0%   { transform: translateY(0)   scale(1);   opacity: 1; }
  100% { transform: translateY(-80px) scale(0.6); opacity: 0; }
}

/* Tap info */
.tap-info {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.tap-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--lime);
}

.tap-mult {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* UPGRADES PANEL */
.upgrades-panel {
  background: var(--bg-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem;
}

.upgrades-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upgrades-icon { font-size: 0.9rem; }

.upgrades-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.upgrade-card {
  background: var(--bg-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.upgrade-card:hover:not(.locked) {
  border-color: rgba(180, 255, 0, 0.3);
  transform: translateY(-2px);
}

.upgrade-card.affordable {
  border-color: rgba(180, 255, 0, 0.25);
}

.upgrade-card.affordable:hover {
  border-color: rgba(180, 255, 0, 0.5);
  box-shadow: 0 4px 20px rgba(180, 255, 0, 0.08);
}

.upgrade-card.locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.upgrade-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.upgrade-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.upgrade-count {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--lime);
  background: rgba(180, 255, 0, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}

.upgrade-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.upgrade-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
}

.upgrade-cost {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--amber);
}

.upgrade-effect {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

/* STAT FOOTER */
.game-footer {
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 0.75rem 2rem;
}

.stat-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chip strong {
  color: var(--text);
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .game-nav { padding: 0.6rem 1rem; }
  .forge-btn { width: 130px; height: 130px; font-size: 2.8rem; }
  .forge-glow { width: 160px; height: 160px; }
  .upgrades-panel { padding: 1.25rem 1rem; }
  .upgrades-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .upgrades-list { grid-template-columns: 1fr; }
}