/* Volt Factory — game-specific styles */
.vf-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  max-width: 620px;
  margin: 0 auto;
}
/* in fullscreen the stage has a fixed height: let the factory scroll rather than get cut */
.is-fs .vf-wrap, .is-pseudo-fs .vf-wrap { max-height: 100dvh; overflow-y: auto; }
.vf-top { text-align: center; }
.vf-energy { font-family: var(--font-display); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1; color: #c6ff3d; text-shadow: 0 0 22px rgba(198, 255, 61, 0.35); }
.vf-rate { margin-top: 4px; font-size: 0.95rem; color: var(--muted); }
.vf-bolt {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #0b0d17;
  background: radial-gradient(circle at 35% 30%, #e9ff4d, #c6ff3d 60%, #8fd11f);
  box-shadow: 0 0 34px rgba(198, 255, 61, 0.45), inset 0 -6px 0 rgba(0, 0, 0, 0.15);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 80ms ease-out;
}
.vf-bolt:active { transform: scale(0.94); }
.vf-bolt:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.vf-bolt svg { width: 62px; height: 62px; }
.vf-bolt-power { position: absolute; bottom: -8px; padding: 2px 10px; border-radius: 999px; background: #0b0d17; color: #c6ff3d; font: 700 0.8rem var(--font-display); }
.vf-upgrades { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; width: 100%; }
.vf-upgrades:empty { display: none; }
.vf-up {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid rgba(124, 92, 255, 0.5);
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.12);
  color: #f2f4ff;
  cursor: pointer;
}
.vf-up[hidden], .vf-gen[hidden], .vf-over[hidden] { display: none; }
.vf-up span { font-size: 0.8rem; color: var(--muted); }
.vf-up em { font-style: normal; font: 700 0.9rem var(--font-display); color: #c6ff3d; }
.vf-up:disabled { opacity: 0.45; cursor: default; }
.vf-list { display: grid; gap: 8px; width: 100%; }
.vf-gen {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'name cost' 'info cost';
  gap: 2px 12px;
  align-items: center;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #151a2b;
  color: #f2f4ff;
  cursor: pointer;
  touch-action: manipulation;
}
.vf-gen:hover:not(:disabled) { background: #1e2440; border-color: rgba(198, 255, 61, 0.4); }
.vf-gen:disabled { opacity: 0.5; cursor: default; }
.vf-gen-name { grid-area: name; font: 700 1rem var(--font-display); }
.vf-gen-info { grid-area: info; font-size: 0.8rem; color: var(--muted); }
.vf-gen-cost { grid-area: cost; font: 700 1rem var(--font-display); color: #c6ff3d; }
.vf-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vf-hint { margin: 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { .vf-bolt { transition: none; } }
