:root {
  --accent: #ff2d95;
  --accent2: #00e5ff;
  --ink: #f4ecff;
  --dim: rgba(244, 236, 255, 0.6);
  --panel: rgba(12, 6, 26, 0.82);
  --line: rgba(255, 255, 255, 0.14);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: #07020f; color: var(--ink);
  font-family: Rajdhani, system-ui, sans-serif; user-select: none; -webkit-user-select: none;
  touch-action: none; overscroll-behavior: none;
}
body { background: #000; }
/* --u = 1% of the game stage's width (set by fitCamera); sizes use it instead of vw so the 9:16
   stage looks the same on a phone and in a wide desktop window */
#stage { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100vw; height: 100vh; overflow: hidden; background: #02030a;
  container: stage / inline-size; }  /* layout rules below ask the stage's width, not the window's */
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.hud-top {
  position: absolute; top: calc(10px + var(--safe-t)); left: 14px; right: 12px;
  display: flex; align-items: center; gap: 8px;
}
.hud-top small { font: 600 11px Orbitron, sans-serif; letter-spacing: 0.06em; color: #cfe6ff; margin-right: 6px; }
.hud-score, .hud-level { display: flex; align-items: baseline; white-space: nowrap; }
.hud-score b, .hud-level b {
  font: 800 clamp(15px, calc(4.8 * var(--u, 1vw)), 21px) Orbitron, sans-serif; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 0 10px var(--accent2), 0 0 22px color-mix(in srgb, var(--accent2) 60%, transparent);
}
.hud-level { margin: 0 auto; flex: none; }
@container stage (max-width: 400px) { .hud-level small { display: none; } .hud-level b::before { content: 'LV '; font-size: 0.6em; color: #cfe6ff; } }
.hud-level b { color: var(--accent2); }
.hud-score em { font: 800 12px Orbitron, sans-serif; font-style: normal; color: #ffe14d; margin-left: 6px; }
#hud-lives { display: flex; gap: 4px; align-items: center; flex: none; }
#hud-lives span { font: 800 12px Orbitron, sans-serif; color: #cfe6ff; }
.hud-score { min-width: 0; }
#hud-lives i {
  width: 17px; height: 17px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, #b8d4ff 30%, #4a6fa8 65%, #1a2a4a 100%);
  box-shadow: 0 0 8px rgba(120, 190, 255, 0.7);
}
.icon-btn {
  pointer-events: auto; width: 40px; height: 40px; flex: none; border-radius: 9px; border: 2px solid var(--accent2);
  background: rgba(6, 14, 30, 0.75); display: grid; place-items: center;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent2) 50%, transparent), inset 0 0 8px color-mix(in srgb, var(--accent2) 35%, transparent);
}
.icon-btn svg { width: 20px; height: 20px; fill: #fff; stroke: #fff; stroke-width: 0; }
#map-back svg, #shop-back svg { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#hud-name {
  position: absolute; top: calc(52px + var(--safe-t)); left: 0; right: 0; text-align: center;
  font: 700 10px Orbitron, sans-serif; letter-spacing: 0.3em; color: rgba(220, 235, 255, 0.55);
}
#boss-bar {
  position: absolute; top: calc(48px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: min(360px, 70%); text-align: center;
}
#boss-bar span { display: block; line-height: 12px; font: 800 10px/12px Orbitron, sans-serif; letter-spacing: 0.25em; color: #fff; text-shadow: 0 0 10px var(--accent); }
#boss-bar .bar { position: relative; height: 7px; margin-top: 3px; border-radius: 6px; background: rgba(0,0,0,0.5); border: 1px solid var(--line); overflow: hidden; }
#boss-bar i { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, var(--accent), #fff); box-shadow: 0 0 12px var(--accent); transition: transform 0.15s; }
#boss-bar em { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 33%, rgba(0,0,0,0.6) 33.3%, transparent 33.8%, transparent 66%, rgba(0,0,0,0.6) 66.3%, transparent 66.8%); }

#combo {
  position: absolute; top: calc(94px + var(--safe-t)); left: 0; right: 0; text-align: center; font: 900 16px Orbitron, sans-serif;
  color: #ffe14d; text-shadow: 0 0 14px #ff7a1a; opacity: 0; transition: opacity 0.2s, transform 0.1s;
}
#combo.on { opacity: 1; }
#combo.bump { transform: scale(1.25); }
#powers {
  position: absolute; bottom: calc(8px + var(--safe-b)); left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; width: min(560px, calc(96 * var(--u, 1vw)));
}
#powers div {
  position: relative; padding: 3px 9px 5px; border-radius: 8px; background: rgba(8, 4, 20, 0.7); border: 1px solid var(--c);
  font: 700 11px Orbitron, sans-serif; letter-spacing: 0.06em; color: #fff; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); overflow: hidden;
}
#powers div i { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--c); transform-origin: left; }
#hint {
  position: absolute; left: 0; right: 0; bottom: calc(30% + var(--safe-b)); text-align: center; font: 700 15px Orbitron, sans-serif;
  letter-spacing: 0.12em; color: #fff; text-shadow: 0 0 12px var(--accent2); opacity: 0; transition: opacity 0.3s;
  animation: pulse 1.2s ease-in-out infinite;
}
#hint.on { opacity: 1; }
@keyframes pulse { 50% { filter: brightness(1.6); } }

/* ---------- Popups, banner, toast, flash ---------- */
#popups { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.pop {
  position: absolute; transform: translate(-50%, -50%); font: 800 13px Orbitron, sans-serif; color: #fff; white-space: nowrap;
  text-shadow: 0 0 8px rgba(255,255,255,0.7); animation: pop 0.9s ease-out forwards;
}
.pop.mid { font-size: 15px; color: #ffe14d; text-shadow: 0 0 10px #ff9a00; }
.pop.big { font-size: 18px; color: #ff6ec7; text-shadow: 0 0 12px #ff2d95; }
.pop.power { font-size: 20px; color: #fff; text-shadow: 0 0 14px var(--accent2), 0 0 30px var(--accent2); animation-duration: 1.2s; }
.pop.bad { font-size: 18px; color: #ff5a5a; text-shadow: 0 0 12px #ff0000; animation-duration: 1.2s; }
.pop.combo { font-size: 22px; color: #ffe14d; text-shadow: 0 0 16px #ff7a1a; animation-duration: 1.2s; }
.pop.combo-end { font-size: 14px; color: var(--accent2); }
@keyframes pop {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.6); }
  15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -220%) scale(1); }
}
#banner {
  position: absolute; left: 0; right: 0; top: 36%; text-align: center; pointer-events: none; z-index: 6; opacity: 0;
  display: flex; flex-direction: column; gap: 6px;
}
#banner small { font: 700 14px Orbitron, sans-serif; letter-spacing: 0.35em; color: var(--accent2); }
#banner b { font: 900 clamp(26px, calc(7 * var(--u, 1vw)), 52px) Orbitron, sans-serif; letter-spacing: 0.08em; text-shadow: 0 0 24px var(--accent), 0 0 60px var(--accent); }
#banner.show { animation: banner 2s ease-out forwards; }
#banner.boss b { color: #fff; text-shadow: 0 0 20px #ff2244, 0 0 50px #ff2244; }
@keyframes banner {
  0% { opacity: 0; transform: scale(1.6); filter: blur(8px); }
  15% { opacity: 1; transform: scale(1); filter: blur(0); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95) translateY(-20px); }
}
#toast {
  position: absolute; left: 50%; top: 56%; transform: translate(-50%, -10px); max-width: min(520px, calc(90 * var(--u, 1vw)));
  padding: 9px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); text-align: center;
  font: 600 16px Rajdhani, sans-serif; opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none; z-index: 7;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#flash { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; mix-blend-mode: screen; }

/* ---------- Screens ---------- */
.screen {
  position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(16px + var(--safe-t)) calc(16px + var(--safe-r)) calc(16px + var(--safe-b)) calc(16px + var(--safe-l));
}
/* scrollable menus (level map, shop) scroll without a visible scrollbar */
.screen { scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen.dim { background: rgba(5, 2, 12, 0.55); backdrop-filter: blur(4px); }
.panel {
  width: min(380px, 100%); padding: 22px 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center;
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 25%, transparent); animation: rise 0.35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes rise { from { transform: translateY(20px) scale(0.95); opacity: 0; } }
.panel h2 { margin: 0 0 6px; font: 900 24px Orbitron, sans-serif; letter-spacing: 0.08em; text-shadow: 0 0 18px var(--accent); }
.panel h2.bad { color: #ff5a6a; text-shadow: 0 0 18px #ff0033; }
.panel p { margin: 0 0 6px; color: var(--dim); font-size: 17px; }
.btn {
  padding: 13px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.06);
  font: 800 15px Orbitron, sans-serif; letter-spacing: 0.1em; transition: transform 0.1s, background 0.2s;
}
.btn:hover { background: rgba(255,255,255,0.12); }
.btn:active { transform: scale(0.96); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent2) 70%, var(--accent)));
  border-color: transparent; color: #fff; box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 60%, transparent); text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.btn.small { padding: 8px 12px; font-size: 11px; border-radius: 10px; }
.tog i { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #444; vertical-align: middle; }
.tog.on i { background: #3dffb5; box-shadow: 0 0 8px #3dffb5; }
.toggles, .row { display: flex; gap: 8px; justify-content: center; }
.row .btn { flex: 1; }

#title::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 52%; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,2,14,0.92) 0%, rgba(4,2,14,0.78) 60%, rgba(4,2,14,0) 100%);
}
#title > * { position: relative; }
#title { justify-content: space-between; padding-top: calc(10vh + var(--safe-t)); padding-bottom: calc(5vh + var(--safe-b)); }
.logo {
  text-align: center; align-self: center; padding: 18px 22px 16px; border-radius: 22px;
  background: rgba(6,3,18,0.62); border: 1px solid rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}
.logo h1 { margin: 0; font: 900 clamp(40px, calc(12 * var(--u, 1vw)), 96px) Orbitron, sans-serif; letter-spacing: 0.04em; line-height: 0.92; display: flex; flex-direction: column; }
.logo h1 span:first-child { color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,0.55), 0 0 20px #ff2d95, 0 0 60px #ff2d95; }
.logo h1 span:last-child {
  background: linear-gradient(90deg, #00e5ff, #c45cff, #ff2d95, #c45cff, #00e5ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.6)); animation: shimmer 4s linear infinite; background-size: 200% 100%;
}
@keyframes shimmer { to { background-position: 200% 0; } }
.logo p { margin: 12px 0 0; font: 700 clamp(10px, calc(3 * var(--u, 1vw)), 16px) Orbitron, sans-serif; letter-spacing: 0.22em; color: #dfe9ff; white-space: nowrap; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.menu { display: flex; flex-direction: column; gap: 12px; width: min(300px, calc(80 * var(--u, 1vw))); }
.menu .btn.primary { padding: 18px; font-size: 22px; animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 44px color-mix(in srgb, var(--accent) 80%, transparent); } }
.howto { margin: 0; font-size: 15px; color: var(--dim); text-align: center; }
.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) { .touch-only { display: inline; } .mouse-only { display: none; } }

/* Level select */
#map { justify-content: flex-start; background: rgba(5, 2, 12, 0.6); backdrop-filter: blur(3px); overflow-y: auto; touch-action: pan-y; }
#map header { width: min(980px, 100%); display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex: none; }
#map h2 { margin: 0; font: 900 20px Orbitron, sans-serif; letter-spacing: 0.12em; }
#map-stars { margin-left: auto; font: 800 16px Orbitron, sans-serif; color: #ffe14d; }
#worlds { width: min(980px, 100%); display: grid; grid-template-columns: 1fr; gap: 12px; padding-bottom: 20px; }
@container stage (min-width: 760px) { #worlds { grid-template-columns: 1fr 1fr; } }
.world {
  position: relative; padding: 14px 14px 16px; border-radius: 18px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--wa) 30%, #0a0516), color-mix(in srgb, var(--wb) 20%, #05020c));
}
.world::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--wa) 40%, transparent), transparent 55%); pointer-events: none; }
.world.locked { filter: grayscale(0.9) brightness(0.5); }
.world h3 { margin: 0; font: 900 17px Orbitron, sans-serif; letter-spacing: 0.08em; text-shadow: 0 0 12px var(--wa); }
.world h3 small { display: block; font: 700 10px Orbitron, sans-serif; letter-spacing: 0.3em; color: var(--wb); margin-bottom: 3px; }
.world p { margin: 2px 0 12px; color: var(--dim); font-size: 15px; }
.nodes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.node {
  aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,0.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0;
}
.node b { font: 900 18px Orbitron, sans-serif; }
.node.boss b { font-size: 11px; letter-spacing: 0.05em; color: #ff6a7a; }
.node .st { font-size: 10px; letter-spacing: 1px; color: #ffe14d; }
.node .st s { text-decoration: none; color: rgba(255,255,255,0.2); }
.node.open { border-color: var(--wa); box-shadow: inset 0 0 18px color-mix(in srgb, var(--wa) 35%, transparent); }
.node.next { animation: nodepulse 1.4s ease-in-out infinite; }
@keyframes nodepulse { 50% { box-shadow: inset 0 0 18px var(--wa), 0 0 18px var(--wa); } }
.node:disabled { opacity: 0.35; cursor: default; }
/* Travel the Universe: a rainbow card with 100 small nodes, each tinted by its world */
.world.universe { --wa: #ff2d95; --wb: #ffe14d; background: linear-gradient(135deg, rgba(255,45,149,0.22), rgba(0,229,255,0.18) 50%, rgba(164,60,255,0.22)); }
.world.universe h3 { background: linear-gradient(90deg, #00e5ff, #c45cff, #ff2d95, #ffe14d); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.nodes.uni { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
/* no forced square here: Safari sizes an aspect-ratio box from its height and pushed the 10-wide grid off screen */
.node.mini { aspect-ratio: auto; height: auto; padding: 6px 0 4px; border-radius: 7px; min-height: 0; min-width: 0; overflow: hidden; }
.node.mini b { font-size: clamp(8px, calc(2.9 * var(--u, 1vw)), 12px); letter-spacing: -0.04em; line-height: 1; }
.node.mini .st { font-size: 5px; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.node.mini.open { border-color: var(--na); box-shadow: inset 0 0 10px color-mix(in srgb, var(--na) 45%, transparent); }

#res-stars { display: flex; justify-content: center; gap: 10px; margin: 2px 0 6px; }
#res-stars i {
  width: 46px; height: 46px; background: rgba(255,255,255,0.12);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
#res-stars i.on { background: #ffe14d; filter: drop-shadow(0 0 10px #ffb21a); animation: star 0.5s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes star { from { transform: scale(0) rotate(-90deg); } }
.res-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.res-stats small { display: block; font: 700 10px Orbitron, sans-serif; letter-spacing: 0.1em; color: var(--dim); }
.res-stats b { font: 800 18px Orbitron, sans-serif; }
#vic-stars { font: 800 20px Orbitron, sans-serif; color: #ffe14d; margin-bottom: 8px; }

#warp-text {
  position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  pointer-events: none; opacity: 0; text-align: center; padding: 20px;
}
#warp-text small { font: 700 14px Orbitron, sans-serif; letter-spacing: 0.5em; color: var(--accent2); }
#warp-text b { font: 900 clamp(30px, calc(9 * var(--u, 1vw)), 72px) Orbitron, sans-serif; letter-spacing: 0.06em; text-shadow: 0 0 30px var(--accent), 0 0 80px var(--accent); }
#warp-text span { font: 600 18px Rajdhani, sans-serif; color: var(--dim); }
#warp-text.show { animation: warptext 3s ease-in-out forwards; }
@keyframes warptext { 0% { opacity: 0; letter-spacing: 1em; } 30%, 75% { opacity: 1; } 100% { opacity: 0; } }

#loading { position: fixed; inset: 0; z-index: 50; background: #07020f; display: grid; place-items: center; transition: opacity 0.5s; }
#loading.done { opacity: 0; pointer-events: none; }
#loading p { text-align: center; padding: 20px; font-size: 18px; }
.spin { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.15); border-top-color: #ff2d95; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-height: 520px) {
  #title { padding-top: calc(4vh + var(--safe-t)); }
  .logo h1 { font-size: clamp(34px, 9vh, 70px); }
  .menu .btn.primary { padding: 12px; }
  .panel { padding: 14px 16px; gap: 7px; }
  .btn { padding: 9px 14px; }
  #res-stars i { width: 34px; height: 34px; }
}

#fever {
  position: absolute; top: calc(68px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: min(220px, 56%); height: 5px;
  border-radius: 3px; background: rgba(255,255,255,0.1);
}
#fever i { position: absolute; inset: 0; border-radius: inherit; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent2), #ffe14d); box-shadow: 0 0 10px #ffe14d; transition: transform 0.12s; }
#fever span {
  position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  font: 800 9px Orbitron, sans-serif; letter-spacing: 0.18em; color: #ffe14d; text-shadow: 0 0 8px rgba(255,225,77,0.6); white-space: nowrap;
}
#fever.on { height: 7px; }
#fever.on i { background: linear-gradient(90deg, #ff2d95, #ffe14d, #3dffb5, #19d3ff, #a43cff); background-size: 200% 100%; animation: shimmer 0.8s linear infinite; }
/* During boss fights: a slim strip just under the boss health bar, the same width, label off to its left */
#fever.boss { top: calc(78px + var(--safe-t)); width: min(360px, 70%); height: 3px; }
#fever.boss.on { height: 4px; }
#fever.boss span { font-size: 8px; right: calc(100% + 6px); }

/* Cinematic letterbox for boss intros */
#stage::before, #stage::after {
  content: ''; position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 8; transition: height 0.5s ease; pointer-events: none;
}
#stage::before { top: 0; }
#stage::after { bottom: 0; }
#stage.cine::before, #stage.cine::after { height: 11%; }

/* Map extras, shop */
.map-meta { margin-left: auto; display: flex; gap: 12px; font: 800 15px Orbitron, sans-serif; }
#map-coins, #shop-coins, .coins { color: #ffd84d; }
.coins { font: 800 18px Orbitron, sans-serif; text-shadow: 0 0 12px #ff9a00; margin-bottom: 4px; }
.map-actions { width: min(980px, 100%); display: flex; gap: 10px; margin-bottom: 12px; flex: none; }
.map-actions .btn.primary { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.map-actions .btn small { font: 700 10px Orbitron, sans-serif; opacity: 0.85; }
#shop { justify-content: flex-start; background: rgba(5, 2, 12, 0.75); backdrop-filter: blur(3px); overflow-y: auto; touch-action: pan-y; }
#shop header { width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex: none; }
#shop h2 { margin: 0; font: 900 20px Orbitron, sans-serif; letter-spacing: 0.12em; }
.shop-h { width: 100%; margin: 12px 0 8px; font: 800 12px Orbitron, sans-serif; letter-spacing: 0.3em; color: var(--accent2); }
#upgrades { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.upg { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.upg > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.upg b { font: 800 13px Orbitron, sans-serif; }
.upg small { color: var(--dim); font-size: 14px; }
.pips { display: flex; gap: 4px; margin-top: 3px; }
.pips i { width: 16px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.15); }
.pips i.on { background: var(--accent2); box-shadow: 0 0 6px var(--accent2); }
.buy { min-width: 78px; color: #ffd84d; }
.buy:disabled, .skin:disabled { opacity: 0.4; cursor: default; }
#skins { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 20px; }
.skin { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.skin i { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 12px rgba(255,255,255,0.3); }
.skin b { font: 800 11px Orbitron, sans-serif; }
.skin small { font: 700 10px Orbitron, sans-serif; color: #ffd84d; }
.skin.sel { border-color: var(--accent2); box-shadow: inset 0 0 14px color-mix(in srgb, var(--accent2) 40%, transparent); }
.skin.sel small { color: var(--accent2); }
