:root {
  color-scheme: dark;
  --bg: #05060d;
  --bg2: #0a0d1a;
  --panel: rgba(10, 14, 28, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef3ff;
  --muted: #8b97b8;
  --cyan: #22e6ff;
  --magenta: #ff2d9b;
  --violet: #7c5cff;
  --lime: #c8ff3d;
  --amber: #ffb020;
  --nvi: #76b900;
  --amd: #ed1c24;
  --fan-speed: 0.85s;
  --radius: 22px;
  --inset: #070a14;
  --inset-2: #0c1222;
  --track: #101628;
  --table-head: #12324a;
  --table-head-text: #d7f3ff;
  --gauge-track: rgba(255, 255, 255, 0.08);
  --brand: #7eb8ff;
  --shine-top: #ffffff;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f8;
  --bg2: #ffffff;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(16, 24, 48, 0.12);
  --text: #121826;
  --muted: #5a6784;
  --cyan: #007c96;
  --magenta: #c4006a;
  --violet: #4f3dc9;
  --lime: #3f7a00;
  --amber: #b45309;
  --inset: #ffffff;
  --inset-2: #f4f7fc;
  --track: #d7deea;
  --table-head: #0e4a66;
  --table-head-text: #f3fbff;
  --gauge-track: rgba(16, 24, 48, 0.12);
  --brand: #0b5cab;
  --shine-top: #0a3d4a;
}
html[data-theme="light"] .aurora {
  opacity: 0.42;
  filter: blur(18px);
}
html[data-theme="light"] .hexgrid { opacity: 0.08; }
html[data-theme="light"] .scanlines {
  opacity: 0.12;
  mix-blend-mode: multiply;
}
html[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.72);
}
html[data-theme="light"] .brand-logo { background: #fff; }
html[data-theme="light"] .panel,
html[data-theme="light"] .gauge-card,
html[data-theme="light"] .balance-card,
html[data-theme="light"] .spec-card,
html[data-theme="light"] .games-card,
html[data-theme="light"] .upgrades,
html[data-theme="light"] .fps-card,
html[data-theme="light"] .fps-lab-main,
html[data-theme="light"] .fps-lab-side {
  box-shadow: 0 10px 28px rgba(16, 24, 48, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: Outfit, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

#fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(124, 92, 255, 0.28), transparent 36%),
    radial-gradient(circle at 85% 10%, rgba(34, 230, 255, 0.2), transparent 32%),
    radial-gradient(circle at 70% 80%, rgba(255, 45, 155, 0.18), transparent 38%);
  filter: blur(8px);
  animation: aurora 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.hexgrid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(34, 230, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 230, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.08) 2px 3px
  );
  opacity: 0.35;
  mix-blend-mode: overlay;
}

.topbar, main, footer { position: relative; z-index: 2; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 8px;
  background: #000;
}
.brand strong {
  font-family: Outfit, sans-serif;
  letter-spacing: 0.04em;
  font-size: 16px;
  display: block;
  color: var(--brand);
}
.brand small { color: var(--muted); letter-spacing: 0.12em; font-size: 10px; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }

.top-nav { display: flex; gap: 22px; }
.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.top-nav a:hover { color: var(--cyan); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-switch {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.switch-rail {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 172px;
  height: 38px;
  border-radius: 999px;
  background: var(--inset);
  border: 1px solid var(--line);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.28);
}
.switch-opt {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s ease;
}
html:not([data-theme="light"]) .switch-opt.is-dark,
html[data-theme="light"] .switch-opt.is-light {
  color: #081018;
}
.switch-knob {
  position: absolute;
  z-index: 0;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: linear-gradient(180deg, #f4fdff, #7ee7ff);
  box-shadow: 0 2px 10px rgba(34, 230, 255, 0.45);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.28s ease, box-shadow 0.28s ease;
}
html[data-theme="light"] .switch-knob {
  transform: translateX(100%);
  background: linear-gradient(180deg, #fff8d0, #ffd54a);
  box-shadow: 0 2px 10px rgba(255, 176, 32, 0.45);
}

.live-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--lime);
  border: 1px solid rgba(200, 255, 61, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(200, 255, 61, 0.06);
  text-decoration: none;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  padding: 48px 32px 12px;
  max-width: 1320px;
  margin: 0 auto;
  align-items: center;
}
.kicker {
  color: var(--cyan);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 12px;
}
h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
}
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--amber), var(--cyan));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to { background-position: 220% 0; }
}
.lede {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 52ch;
}
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.presets button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: 12px Outfit, sans-serif;
}
.presets button:hover,
.presets button.active {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(34, 230, 255, 0.25);
}

/* Rainbow : un filet collé au cadre, pas une roue qui tourne */
.serpent-frame, .serpent-box {
  position: relative;
}
.border-snakes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  border-radius: inherit;
}

.stage {
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-columns: 0.7fr 0.2fr 1.1fr;
  align-items: center;
  padding: 28px 18px 36px;
  perspective: 1200px;
}
.serpent-frame {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  overflow: hidden;
}

.stage-label {
  text-align: center;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--muted);
}

.cpu-rig, .gpu-rig { position: relative; z-index: 2; }
.cpu-block {
  width: 150px;
  margin: 0 auto;
  transform: rotateX(12deg) rotateY(-18deg);
  transform-style: preserve-3d;
  animation: cpu-float 7s ease-in-out infinite;
}
@keyframes cpu-float {
  0%, 100% { transform: rotateX(10deg) rotateY(-16deg) translateY(0); }
  50% { transform: rotateX(10deg) rotateY(-10deg) translateY(-8px); }
}
.cpu-ihs {
  height: 92px;
  background:
    linear-gradient(145deg, #3a4258, #1a1f30 40%, #2a3148);
  border-radius: 8px;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45), inset 0 0 0 2px rgba(255,255,255,0.08);
  position: relative;
}
.cpu-ihs span { position: absolute; top: 10px; left: 10px; font-size: 8px; letter-spacing: 0.2em; color: #9aa; }
.cpu-ihs b { font-family: Audiowide, sans-serif; font-size: 11px; color: #dfe7ff; }
.cooler {
  width: 128px;
  height: 128px;
  margin: -58px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #1c2338, #070a12);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.rgb-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: conic-gradient(#ff004c, #ffb000, #c8ff3d, #22e6ff, #7c5cff, #ff2d9b, #ff004c);
  animation: spin 3s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
}

.fan { overflow: visible; }
.fan .blades {
  fill: #cfd8ee;
  transform-origin: 50% 50%;
  transform-box: view-box;
  animation: spin var(--fan-speed) linear infinite;
}
.fan .hub { fill: #151a28; stroke: #6a738c; stroke-width: 2; }
.fan .hub-core { fill: var(--cyan); }
.cpu-fan { width: 108px; height: 108px; }
.gpu-fan { width: 72px; height: 72px; }
.gpu-fan .blades { animation-duration: 0.55s; }
body.scanning { --fan-speed: 0.22s; }
body.scanning .gpu-fan .blades { animation-duration: 0.18s; }

.link-beam {
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  border-radius: 99px;
  position: relative;
  box-shadow: 0 0 18px var(--cyan);
  overflow: hidden;
}
.link-beam i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: #fff;
  filter: blur(4px);
  animation: packet 1.4s linear infinite;
}
@keyframes packet {
  from { transform: translateX(-120%); }
  to { transform: translateX(280%); }
}

.gpu-3d {
  perspective: 900px;
  height: 220px;
  display: grid;
  place-items: center;
}
.gpu-card {
  width: 280px;
  height: 148px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(16deg) rotateY(-28deg);
  animation: gpu-turn 10s ease-in-out infinite;
  transition: transform 0.2s linear;
}
@keyframes gpu-turn {
  0%, 100% { transform: rotateX(14deg) rotateY(-22deg) translateY(0); }
  50% { transform: rotateX(14deg) rotateY(-12deg) translateY(-8px); }
}
.gpu-card.paused { animation-play-state: paused; }

.gpu-front, .gpu-back, .gpu-top, .gpu-side, .gpu-io {
  position: absolute;
  backface-visibility: hidden;
}
.gpu-front {
  inset: 0;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #1a1f2c, #0b0e16 55%, #141824);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 25px 50px rgba(0,0,0,0.45);
  overflow: hidden;
  transform: translateZ(14px);
}
.gpu-front::after {
  content: "";
  position: absolute;
  inset: -40% 40% 40% -40%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: sweep 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep {
  from { transform: translateX(-20%) rotate(12deg); }
  to { transform: translateX(220%) rotate(12deg); }
}
.gpu-card.nvidia .gpu-front { box-shadow: 0 0 0 1px rgba(118, 185, 0, 0.35), 0 25px 50px rgba(0,0,0,0.45); }
.gpu-card.amd .gpu-front { box-shadow: 0 0 0 1px rgba(237, 28, 36, 0.4), 0 25px 50px rgba(0,0,0,0.45); }
.gpu-edge-rgb {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, #ff004c, #ffb000, #c8ff3d, #22e6ff, #7c5cff, #ff2d9b, #ff004c);
  background-size: 220% 100%;
  animation: shine 2.4s linear infinite;
}
.gpu-name {
  position: absolute;
  top: 10px; left: 12px;
  font-family: Audiowide, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #d8ffe0;
  text-shadow: 0 0 12px var(--nvi);
}
.gpu-card.amd .gpu-name { color: #ffd0d0; text-shadow: 0 0 12px var(--amd); }
.fans {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  padding: 18px 8px 10px;
}
.shroud-vents {
  position: absolute;
  right: 8px; top: 8px;
  width: 18px; height: 40px;
  background: repeating-linear-gradient(90deg, #2a3144 0 2px, transparent 2px 4px);
  opacity: 0.6;
}
.gpu-top {
  width: 280px; height: 14px;
  background: linear-gradient(#3a4258, #1c2233);
  transform: rotateX(90deg) translateZ(7px);
  transform-origin: top;
  top: 0; left: 0;
}
.gpu-side {
  width: 14px; height: 148px;
  right: 0; top: 0;
  background: linear-gradient(180deg, #2b3348, #10141f);
  transform: rotateY(-90deg) translateZ(-7px);
}
.gpu-back {
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #2a2f3c, #11151f);
  transform: translateZ(-14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.gpu-io {
  width: 18px; height: 110px;
  left: -10px; top: 18px;
  background: #8b93a7;
  border-radius: 2px;
  transform: rotateY(90deg) translateZ(8px);
  box-shadow: inset -2px 0 0 #555;
}

.config {
  max-width: 1320px;
  margin: 10px auto 0;
  padding: 0 32px 40px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  backdrop-filter: blur(18px);
  overflow: visible;
}
.panel-head h2 { font-size: 22px; }
.panel-head p { color: var(--muted); font-size: 13px; margin-top: 4px; }

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.combo { position: relative; }
.combo input {
  width: 100%;
  background: var(--inset);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 14px;
  font: 15px Outfit, sans-serif;
  outline: none;
}
.combo input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 230, 255, 0.15); }
.combo .list {
  position: absolute;
  z-index: 20;
  left: 0; right: 0; top: calc(100% + 6px);
  max-height: 260px;
  overflow: auto;
  background: var(--inset-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: none;
}
.combo.open .list { display: block; }
.combo .list button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  padding: 10px 14px;
  font: 14px Outfit, sans-serif;
  cursor: pointer;
}
.combo .list button:hover,
.combo .list button.active { background: rgba(34, 230, 255, 0.1); }
.combo .list small { color: var(--muted); float: right; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button {
  background: var(--inset);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font: 13px Outfit, sans-serif;
}
.pills button.active {
  border-color: var(--magenta);
  background: rgba(255, 45, 155, 0.12);
  box-shadow: 0 0 16px rgba(255, 45, 155, 0.2);
}

.go,
.actions {
  display: none;
}

.arcade {
  margin-top: 28px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(90deg, #2a1a0c 0 14px, #3a2410 14px 28px),
    linear-gradient(#1a120c, #0c0806);
  border: 5px solid #d4af37;
  box-shadow:
    inset 0 10px 24px rgba(0, 0, 0, 0.45),
    0 0 0 2px #7a5a12,
    0 16px 40px rgba(0, 0, 0, 0.35);
}
.arcade-marquee {
  text-align: center;
  font-family: Audiowide, sans-serif;
  letter-spacing: 0.28em;
  font-size: 11px;
  color: #ffe08a;
  text-shadow: 0 0 10px #f59e0b;
  margin-bottom: 10px;
  animation: marquee-blink 1.2s step-end infinite;
}
@keyframes marquee-blink {
  50% { opacity: 0.45; }
}
.arcade-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.arcade-start {
  width: 176px;
  height: 176px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
}
.arcade-bezel {
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, #f3f3f3, #8a8a8a, #ffffff, #6c6c6c, #e8e8e8, #9a9a9a, #f3f3f3);
  box-shadow:
    0 10px 0 #2a2a2a,
    0 16px 28px rgba(0, 0, 0, 0.55),
    inset 0 2px 2px #fff;
}
.arcade-cap {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #ff7a7a 0 16%, #e10600 38%, #9b0000 72%, #5a0000 100%);
  box-shadow:
    inset 0 -16px 20px rgba(0, 0, 0, 0.4),
    inset 0 12px 14px rgba(255, 255, 255, 0.35),
    0 0 0 3px #7a0000,
    0 0 48px rgba(255, 24, 24, 0.75);
  color: #fff;
  display: grid;
  place-content: center;
  animation: arcade-pulse 1.3s ease-in-out infinite;
}
.arcade-cap b {
  font-family: Audiowide, sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-shadow: 0 3px 0 #6a0000, 0 0 12px #fff;
  line-height: 1;
}
.arcade-cap small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.22em;
  opacity: 0.92;
}
.arcade-shine {
  position: absolute;
  left: 18px; top: 14px;
  width: 48px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  filter: blur(1px);
  pointer-events: none;
}
@keyframes arcade-pulse {
  0%, 100% { box-shadow: inset 0 -16px 20px rgba(0,0,0,.4), inset 0 12px 14px rgba(255,255,255,.35), 0 0 0 3px #7a0000, 0 0 36px rgba(255,24,24,.55); }
  50% { box-shadow: inset 0 -16px 20px rgba(0,0,0,.4), inset 0 12px 14px rgba(255,255,255,.35), 0 0 0 3px #7a0000, 0 0 70px rgba(255,80,80,1); }
}
.arcade-start:hover .arcade-cap { filter: brightness(1.12); }
.arcade-start:active .arcade-bezel { transform: translateY(7px); }
.arcade-start:active .arcade-cap { transform: translateY(4px) scale(0.97); animation: none; }

.arcade-reset {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 5px solid #cfcfcf;
  background: radial-gradient(circle at 30% 25%, #fff4a8, #f5c518 45%, #b8860b 80%);
  color: #3a2a00;
  font-family: Audiowide, sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 6px 0 #5c4300, 0 10px 16px rgba(0,0,0,.4);
}
.arcade-reset:active { transform: translateY(5px); box-shadow: 0 2px 0 #5c4300; }

.arcade-led {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arcade-led i {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #19ff64;
  box-shadow: 0 0 10px #19ff64;
  animation: led 0.9s step-end infinite;
}
.arcade-led i:nth-child(2) { animation-delay: 0.15s; background: #ffe14a; box-shadow: 0 0 10px #ffe14a; }
.arcade-led i:nth-child(3) { animation-delay: 0.3s; background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; }
@keyframes led { 50% { opacity: 0.25; } }

.arcade-hint {
  text-align: center;
  margin-top: 12px;
  color: #fde68a;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.reset-inline {
  margin-top: 18px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--inset);
  color: var(--text);
  border-radius: 16px;
  cursor: pointer;
  font: 14px Outfit, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .arcade-row { gap: 14px; }
  .arcade-start, .arcade-bezel { width: 148px; height: 148px; }
  .arcade-cap { width: 112px; height: 112px; }
  .arcade-cap b { font-size: 18px; }
}

body.scanning .topbar,
body.scanning footer,
body.scanning main {
  visibility: hidden;
}

.orbit-ring {
  position: absolute;
  left: 18%;
  top: 48%;
  width: 220px;
  height: 90px;
  border: 2px solid rgba(200, 230, 255, 0.55);
  border-radius: 50%;
  transform: translate(-20%, -50%) rotateX(66deg);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(160, 210, 255, 0.35);
}
.phase-charge .orbit-ring,
.phase-hold .orbit-ring {
  opacity: 1;
  animation: orbit 1.1s linear infinite;
}
.orbit-ring.r2 { width: 280px; height: 110px; animation-duration: 1.6s; animation-direction: reverse; }
.orbit-ring.r3 { width: 160px; height: 70px; animation-duration: 0.8s; }
@keyframes orbit {
  to { transform: translate(-20%, -50%) rotateX(66deg) rotate(360deg); }
}

.arcade-start:disabled { cursor: wait; pointer-events: none; }
.arcade-start.analyzing .arcade-cap {
  animation: arcade-scan 0.35s linear infinite;
}
.arcade-start.analyzing .arcade-cap b { font-size: 15px; }
@keyframes arcade-scan {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(40deg) brightness(1.25); }
}

.energy-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 5;
  pointer-events: none;
}

.energy-stage {
  --shake-x: 0px;
  --shake-y: 0px;
}
.energy-stage .kame-scene {
  transform: translate(var(--shake-x), var(--shake-y));
}
.energy-stage .beam,
.energy-stage .energy-fx,
.energy-stage .attack-video,
.energy-stage .ki-orb,
.energy-stage .fighter,
.energy-stage .orbit-ring,
.energy-stage .bolts,
.energy-stage .kame-ground,
.energy-stage .shockwave,
.energy-stage #castName {
  display: none !important;
}
.energy-stage.has-bottleneck .chant small::after {
  content: none;
}
.energy-stage .impact {
  animation: none;
  opacity: 0;
  transition: opacity 0.05s linear;
  z-index: 8;
}

.cpu-core {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 7;
  width: min(78vw, 70vh, 540px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(34, 230, 255, 0.35));
}
.phase-scan .cpu-core,
.phase-whiteout .cpu-core { opacity: 0; }
.phase-charge .cpu-core,
.phase-concentrate .cpu-core,
.phase-overload .cpu-core,
.phase-grow .cpu-core,
.phase-power .cpu-core {
  animation: core-breathe 0.9s ease-in-out infinite;
}
@keyframes core-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 36px rgba(34,230,255,0.3)); }
  50% { transform: translate(-50%, -50%) scale(1.04); filter: drop-shadow(0 0 70px rgba(255,45,155,0.45)); }
}
.phase-release .cpu-core,
.phase-impact .cpu-core {
  animation: core-recoil 0.45s ease-out both;
}
@keyframes core-recoil {
  0% { transform: translate(-50%, -50%) scale(1.08); filter: brightness(1.8); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.cpu-pcb {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background:
    repeating-linear-gradient(90deg, rgba(196,165,116,0.35) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(0deg, rgba(196,165,116,0.35) 0 2px, transparent 2px 18px),
    radial-gradient(circle at 50% 50%, #152036, #070b14 72%);
  box-shadow:
    inset 0 0 0 3px rgba(196, 165, 116, 0.45),
    inset 0 0 40px rgba(34, 230, 255, 0.12),
    0 30px 80px rgba(0,0,0,0.55);
  overflow: hidden;
}

.cpu-traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.cpu-traces path {
  fill: none;
  stroke: url(#rbTrace);
  stroke-width: 2.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 28 70;
  animation: trace-run 1.6s linear infinite;
  filter: drop-shadow(0 0 4px #22e6ff);
  opacity: 0.9;
}
.cpu-traces path:nth-child(odd) { animation-duration: 2.1s; animation-direction: reverse; }
.cpu-traces path.cross {
  stroke-width: 1.6;
  opacity: 0.45;
  stroke-dasharray: 12 36;
  animation-duration: 2.8s;
}
@keyframes trace-run {
  to { stroke-dashoffset: -200; }
}

.cpu-die {
  position: absolute;
  inset: 18%;
  z-index: 2;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(90, 40, 140, 0.45), rgba(10, 24, 48, 0.9) 42%, rgba(20, 60, 90, 0.55));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.18),
    0 0 30px rgba(124, 92, 255, 0.35);
  overflow: hidden;
}
.die-cores {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 3%;
  position: absolute;
  inset: 10% 10% 22% 10%;
}
.die-cores i {
  display: block;
  border-radius: 2px;
  background: linear-gradient(180deg, #7c5cff, #22e6ff);
  opacity: 0.25;
  animation: core-tick 1.1s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(34, 230, 255, 0.4);
}
@keyframes core-tick {
  0%, 100% { opacity: 0.18; filter: brightness(0.8); }
  40% { opacity: 1; filter: brightness(1.8); }
}
.die-caption {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 6%;
  z-index: 3;
  text-align: center;
}
.die-caption span {
  display: block;
  font-size: clamp(8px, 1.4vw, 11px);
  letter-spacing: 0.28em;
  color: #9cf;
}
.die-caption b {
  display: block;
  font-family: Audiowide, sans-serif;
  font-size: clamp(11px, 2.2vw, 18px);
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px #22e6ff;
}

.cpu-fan-stack {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 4;
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #1c2338, #070a12);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55), 0 0 28px rgba(34,230,255,0.25);
}
.cpu-core-fan {
  width: 78%;
  height: 78%;
  position: relative;
  z-index: 2;
}
.cpu-fan-stack .rgb-ring {
  inset: 3%;
  animation-duration: 1.4s;
}
.energy-stage.phase-charge .cpu-core-fan .blades,
.energy-stage.phase-concentrate .cpu-core-fan .blades,
.energy-stage.phase-overload .cpu-core-fan .blades,
.energy-stage.phase-power .cpu-core-fan .blades {
  animation-duration: 0.16s;
}
.energy-stage.phase-release .cpu-core-fan .blades,
.energy-stage.phase-impact .cpu-core-fan .blades {
  animation-duration: 0.1s;
}

.scan-hud {
  position: absolute;
  inset: 8% 6% auto;
  z-index: 10;
  text-align: center;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.scan-hud.fade-out { opacity: 0; transform: scale(0.96); pointer-events: none; }
.scan-status {
  font-family: Audiowide, sans-serif;
  letter-spacing: 0.16em;
  font-size: clamp(14px, 2.4vw, 22px);
  color: #e8f6ff;
  text-shadow: 0 0 18px #22e6ff;
  margin-bottom: 22px;
}
.holo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
}
.holo-card {
  background: rgba(10, 18, 36, 0.55);
  border: 1px solid rgba(34, 230, 255, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(34, 230, 255, 0.12), inset 0 0 18px rgba(124, 92, 255, 0.08);
  animation: holo-in 0.45s ease both;
  text-align: left;
}
.holo-card span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.holo-card b {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
@keyframes holo-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.score-flash {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 11;
  min-width: min(520px, 88vw);
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(6, 10, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  text-align: center;
  animation: holo-in 0.35s ease both;
}
.flash-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.flash-scores span { display: block; font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.flash-scores b { font-family: "JetBrains Mono", monospace; font-size: 16px; }
.flash-balance, .flash-bn { margin-top: 4px; letter-spacing: 0.12em; font-size: 13px; }
.score-flash strong { display: block; margin-top: 12px; letter-spacing: 0.14em; }
.score-flash strong.ok { color: var(--lime); }
.score-flash strong.warn { color: var(--amber); }
.score-flash small { display: block; margin-top: 6px; color: var(--muted); }

.phase-scan .fighter,
.phase-scan .beam,
.phase-scan .blast-orb,
.phase-scan .wave-front,
.phase-scan .energy-fx,
.phase-scan .orbit-ring,
.phase-scan .chant { opacity: 0; }

.fighter-asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 6;
  filter: drop-shadow(0 0 18px rgba(180, 220, 255, 0.45));
}
.fighter.has-asset .silhouette { opacity: 0; }

.crest, .visor { display: none; }
.silhouette { position: absolute; inset: 0; }

.char-kairon .crest {
  display: block;
  position: absolute;
  left: 44px; top: 2px;
  width: 72px; height: 38px;
  background: linear-gradient(#9be7ff, #1b6d8a);
  clip-path: polygon(8% 100%, 22% 18%, 50% 0, 78% 18%, 92% 100%);
  z-index: 5;
  filter: drop-shadow(0 0 10px #22e6ff);
}
.char-kairon .visor {
  display: block;
  position: absolute;
  left: 58px; top: 38px;
  width: 44px; height: 10px;
  background: linear-gradient(90deg, #22e6ff, #fff, #7c5cff);
  border-radius: 8px;
  z-index: 6;
  box-shadow: 0 0 12px #22e6ff;
}
.char-kairon .hair { opacity: 0.35; }
.char-kairon .torso { background: linear-gradient(#d7f7ff, #2a6d88); }
.char-kairon .aura { filter: hue-rotate(10deg); }

.char-varex .silhouette { transform: scale(1.12); transform-origin: 50% 100%; }
.char-varex .torso {
  width: 74px; left: 43px;
  background: linear-gradient(#ffb4a8, #8b1a1a);
}
.char-varex .hair i { background: linear-gradient(#2a1212, #7a1f1f); }
.char-varex .aura {
  background: radial-gradient(circle at 50% 40%, rgba(255,180,140,0.7), rgba(255,60,40,0.25) 42%, transparent 70%);
}
.char-varex .head { background: linear-gradient(#e8b89a, #b56a48); }

.char-zenra .hair {
  width: 96px; left: 34px; height: 90px;
}
.char-zenra .hair i {
  background: linear-gradient(#f3e8ff, #7c5cff);
  width: 10px;
  height: 78px;
  border-radius: 40% 40% 20% 20%;
  clip-path: none;
}
.char-zenra .hair i:nth-child(1) { left: 40px; top: -6px; height: 86px; }
.char-zenra .hair i:nth-child(2) { left: 18px; top: 8px; transform: rotate(-18deg); }
.char-zenra .hair i:nth-child(3) { left: 62px; top: 8px; transform: rotate(18deg); }
.char-zenra .hair i:nth-child(4) { left: 4px; top: 28px; height: 110px; transform: rotate(-28deg); }
.char-zenra .hair i:nth-child(5) { left: 78px; top: 28px; height: 110px; transform: rotate(28deg); }
.char-zenra .hair i:nth-child(6) { left: 48px; top: -16px; height: 36px; width: 14px; }
.char-zenra .torso { background: linear-gradient(#efe7ff, #5b21b6); width: 50px; left: 55px; }
.char-zenra .aura {
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.55), rgba(167,139,250,0.28) 40%, transparent 70%);
}

.char-oryx .crest {
  display: block;
  position: absolute;
  left: 40px; top: -8px;
  width: 80px; height: 48px;
  background: linear-gradient(#fff6c2, #d4af37);
  clip-path: polygon(50% 0, 62% 38%, 100% 28%, 72% 58%, 84% 100%, 50% 72%, 16% 100%, 28% 58%, 0 28%, 38% 38%);
  z-index: 5;
  filter: drop-shadow(0 0 12px #ffb020);
}
.char-oryx .torso { background: linear-gradient(#fff4c8, #b8860b); }
.char-oryx .aura {
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.75), rgba(255,200,80,0.32) 42%, transparent 72%);
}
.char-oryx .ki-orb {
  background: radial-gradient(circle, #fff 0 16%, #ffe9a0 30%, #f59e0b 58%, transparent 72%);
}

.bolts { display: none; pointer-events: none; }
.bolts i {
  position: absolute;
  width: 3px;
  height: 90px;
  background: linear-gradient(#fff, transparent);
  box-shadow: 0 0 12px #9cf;
  clip-path: polygon(40% 0, 70% 38%, 48% 38%, 62% 100%, 20% 52%, 42% 52%);
}
.atk-THUNDER_WAVE.phase-hold .bolts,
.atk-THUNDER_WAVE.phase-fire .bolts,
.atk-COSMIC_SURGE.phase-hold .bolts,
.atk-COSMIC_SURGE.phase-fire .bolts,
.atk-FINAL_BURST.phase-fire .bolts { display: block; }
.bolts i:nth-child(1) { left: 22%; top: 28%; animation: bolt 0.18s steps(2) infinite; }
.bolts i:nth-child(2) { left: 30%; top: 18%; height: 120px; animation: bolt 0.22s steps(2) infinite reverse; }
.bolts i:nth-child(3) { left: 16%; top: 40%; height: 70px; animation: bolt 0.16s steps(2) infinite; }
@keyframes bolt {
  50% { opacity: 0.15; transform: translateX(6px) scaleY(0.8); }
}

.energy-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.blast-orb {
  position: absolute;
  left: 26%;
  top: 54%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, #7dd3fc 42%, #2563eb 68%, transparent 78%);
  box-shadow: 0 0 18px #fff, 0 0 36px #22e6ff, 0 0 70px #3b82f6;
  opacity: 0;
  z-index: 5;
}
.blast-orb.o2 { top: 47%; width: 36px; height: 36px; }
.blast-orb.o3 { top: 61%; width: 32px; height: 32px; }
.atk-ENERGY_BLAST.phase-fire .blast-orb {
  opacity: 1;
  animation: blast-fly 0.72s cubic-bezier(0.12, 0.7, 0.2, 1) forwards;
}
.atk-ENERGY_BLAST.phase-fire .blast-orb.o2 { animation-delay: 0.1s; }
.atk-ENERGY_BLAST.phase-fire .blast-orb.o3 { animation-delay: 0.2s; }
.atk-ENERGY_BLAST .beam,
.atk-ENERGY_BLAST .wave-front { display: none; }
.atk-PLASMA_WAVE .blast-orb,
.atk-THUNDER_WAVE .blast-orb,
.atk-FINAL_BURST .blast-orb,
.atk-COSMIC_SURGE .blast-orb { display: none; }
@keyframes blast-fly {
  from { transform: translate(0, -50%) scale(0.45); filter: brightness(2); }
  55% { opacity: 1; }
  to { transform: translate(72vw, -50%) scale(1.55); opacity: 0.15; }
}

.wave-front {
  position: absolute;
  left: 28%;
  top: 54%;
  width: 72px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 28px #22e6ff, inset 0 0 24px rgba(124, 92, 255, 0.55);
  opacity: 0;
  transform: translateY(-50%) scaleX(0.25);
  z-index: 5;
}
.atk-PLASMA_WAVE.phase-fire .wave-front,
.atk-FINAL_BURST.phase-fire .wave-front,
.atk-COSMIC_SURGE.phase-fire .wave-front {
  opacity: 1;
  animation: wave-rush 0.7s cubic-bezier(0.12, 0.7, 0.2, 1) forwards;
}
.atk-FINAL_BURST .wave-front {
  border-color: #ffedd5;
  box-shadow: 0 0 32px #fb923c, inset 0 0 22px rgba(234, 88, 12, 0.5);
  height: 140px;
}
.atk-COSMIC_SURGE .wave-front {
  height: 170px;
  box-shadow: 0 0 40px #22e6ff, 0 0 80px #7c5cff, inset 0 0 28px #fff;
}
@keyframes wave-rush {
  from { transform: translate(0, -50%) scaleX(0.2) scaleY(0.75); }
  to { transform: translate(70vw, -50%) scaleX(2.6) scaleY(1.55); opacity: 0; }
}

.atk-PLASMA_WAVE .beam .core {
  background: linear-gradient(90deg, #fff, #f0abfc 18%, #22e6ff 70%, transparent);
}
.atk-PLASMA_WAVE.phase-fire .beam { height: 42px; }

.atk-THUNDER_WAVE .beam .core {
  background: linear-gradient(90deg, #fff, #e0f2fe 16%, #38bdf8 55%, #7c5cff 100%);
  box-shadow: 0 0 18px #fff, 0 0 48px #38bdf8, 0 0 80px #7c5cff;
}
.atk-THUNDER_WAVE.phase-fire .beam { height: 36px; filter: brightness(1.25); }
.atk-THUNDER_WAVE .beam .spiral { opacity: 1; }
.atk-THUNDER_WAVE .wave-front { display: none; }
.atk-THUNDER_WAVE .ki-orb.twin { display: none; }
.atk-ENERGY_BLAST .ki-orb.twin { display: none; }

.atk-FINAL_BURST .ki-orb {
  background: radial-gradient(circle, #fff 0 20%, #fdba74 34%, #f97316 60%, transparent 74%);
}
.atk-FINAL_BURST .beam .core {
  background: linear-gradient(90deg, #fff, #ffedd5 16%, #fb923c 70%, transparent);
  box-shadow: 0 0 22px #fff, 0 0 56px #fb923c, 0 0 100px #ea580c;
}
.atk-FINAL_BURST.phase-fire .beam { height: 72px; }
.atk-FINAL_BURST.phase-hold .kame-scene { animation: cam-shake 0.1s linear infinite; }

.atk-COSMIC_SURGE .beam .core {
  background: linear-gradient(90deg, #fff, #e0e7ff 12%, #22e6ff 40%, #7c5cff 78%, transparent);
  box-shadow: 0 0 24px #fff, 0 0 60px #22e6ff, 0 0 120px #7c5cff;
}
.atk-COSMIC_SURGE.phase-fire .beam { height: 88px; width: 92%; }
.atk-COSMIC_SURGE.phase-hold .kame-scene,
.atk-COSMIC_SURGE.phase-fire .kame-scene {
  animation: cam-shake 0.07s linear infinite;
  filter: contrast(1.08) saturate(1.2);
}
.atk-COSMIC_SURGE.phase-fire .impact { animation: whiteout 0.7s ease-out forwards; }

.has-bottleneck.phase-fire .beam { filter: saturate(0.7) hue-rotate(-12deg); }
.has-bottleneck .chant small::after { content: " · LIMITÉ"; color: var(--amber); }

.cowl, .cape { display: none; }

.calc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020308;
}
.calc-overlay[hidden] { display: none; }

.kame-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.kame-void {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(180, 210, 255, 0.16), transparent 42%),
    radial-gradient(circle at 50% 50%, #0a1020, #020308 70%);
}
.kame-ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28%;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  box-shadow: 0 -40px 80px rgba(160, 200, 255, 0.08);
}

.ui-sparkles span {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #9cf, 0 0 16px #fff;
  animation: spark 1.4s linear infinite;
}
@keyframes spark {
  0% { transform: translate(0, 0) scale(0.3); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) scale(1.4); opacity: 0; }
}

.shockwave {
  position: absolute;
  left: 22%;
  top: 52%;
  width: 40px; height: 40px;
  border: 2px solid rgba(220, 235, 255, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
}
.phase-charge .shockwave,
.phase-hold .shockwave {
  animation: boom 1.1s ease-out infinite;
}
.shockwave.delay { animation-delay: 0.55s; }
@keyframes boom {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(18); opacity: 0; }
}

.fighter {
  position: absolute;
  left: 18%;
  bottom: 18%;
  width: 160px;
  height: 260px;
  z-index: 3;
  transform-origin: 50% 80%;
}
.phase-charge .fighter { animation: power-shake 0.12s linear infinite; }
.phase-hold .fighter { animation: power-shake 0.07s linear infinite; }
.phase-fire .fighter { animation: recoil 0.45s ease-out forwards; }
@keyframes power-shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, 2px); }
}
@keyframes recoil {
  0% { transform: translateX(0) scale(1); }
  40% { transform: translateX(-18px) scale(0.96); }
  100% { transform: translateX(-8px) scale(1); }
}

.aura, .aura.mist {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 220px;
  height: 280px;
  transform: translateX(-50%);
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.55), rgba(160,200,255,0.18) 40%, transparent 70%);
  filter: blur(8px);
  opacity: 0.35;
}
.phase-charge .aura { animation: aura-pulse 0.5s ease-in-out infinite; opacity: 0.7; }
.phase-hold .aura { animation: aura-pulse 0.28s ease-in-out infinite; opacity: 1; filter: blur(6px); }
.aura.mist { width: 280px; height: 340px; top: 0; opacity: 0.25; animation: aura-spin 4s linear infinite; }
@keyframes aura-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.12); }
}
@keyframes aura-spin {
  to { transform: translateX(-50%) rotate(360deg); }
}

.hair {
  position: absolute;
  left: 46px;
  top: 8px;
  width: 70px;
  height: 54px;
  z-index: 4;
}
.hair i {
  position: absolute;
  background: linear-gradient(#f4f7ff, #9eb6d8);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 8px #fff);
}
.hair i:nth-child(1) { width: 18px; height: 48px; left: 26px; top: -10px; }
.hair i:nth-child(2) { width: 16px; height: 42px; left: 10px; top: -2px; transform: rotate(-22deg); }
.hair i:nth-child(3) { width: 16px; height: 42px; left: 44px; top: -2px; transform: rotate(22deg); }
.hair i:nth-child(4) { width: 12px; height: 30px; left: 0; top: 14px; transform: rotate(-40deg); }
.hair i:nth-child(5) { width: 12px; height: 30px; left: 56px; top: 14px; transform: rotate(40deg); }
.hair i:nth-child(6) { width: 10px; height: 22px; left: 30px; top: -18px; }
.phase-charge .hair i, .phase-hold .hair i { animation: hair-glow 0.25s ease-in-out infinite alternate; }
@keyframes hair-glow {
  from { filter: drop-shadow(0 0 6px #fff); }
  to { filter: drop-shadow(0 0 18px #9cf) drop-shadow(0 0 8px #fff); }
}

.head {
  position: absolute;
  left: 58px;
  top: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(#f0d5c0, #c99578);
  box-shadow: 0 0 18px rgba(255,255,255,0.4);
  z-index: 3;
}
.torso {
  position: absolute;
  left: 52px;
  top: 68px;
  width: 56px;
  height: 78px;
  background: linear-gradient(#eef3ff, #8aa0c8);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
  box-shadow: 0 0 22px rgba(180,210,255,0.5);
}
.arm {
  position: absolute;
  top: 78px;
  width: 18px;
  height: 70px;
  background: linear-gradient(#eef3ff, #7f93b8);
  border-radius: 10px;
  transform-origin: top center;
  box-shadow: 0 0 12px rgba(255,255,255,0.45);
}
.arm.back { left: 38px; transform: rotate(18deg); }
.arm.front { left: 104px; transform: rotate(-18deg); }
.phase-hold .arm.back { transform: rotate(55deg); }
.phase-hold .arm.front { transform: rotate(-55deg); }
.phase-fire .arm.back { transform: rotate(78deg); }
.phase-fire .arm.front { transform: rotate(-78deg); }
.arm { transition: transform 0.35s ease; }
.legs {
  position: absolute;
  left: 58px;
  top: 142px;
  width: 44px;
  height: 88px;
  background: linear-gradient(#1a2744, #0b1222);
  clip-path: polygon(10% 0, 90% 0, 80% 100%, 20% 100%);
}

.ki-orb {
  position: absolute;
  left: 48px;
  top: 108px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, #9ad4ff 32%, #2a6dff 60%, transparent 72%);
  box-shadow: 0 0 30px #6cf, 0 0 60px #39f, 0 0 90px #fff;
  opacity: 0;
  z-index: 5;
}
.ki-orb.twin {
  left: 92px;
  top: 118px;
  width: 52px;
  height: 52px;
}
.phase-charge .ki-orb { opacity: 1; animation: ki-grow 0.9s ease-out both; }
.phase-hold .ki-orb { opacity: 1; transform: scale(1.35); animation: ki-pulse 0.2s linear infinite; }
.phase-fire .ki-orb { opacity: 0; }
@keyframes ki-grow {
  from { transform: scale(0.15); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes ki-pulse {
  0%, 100% { transform: scale(1.25); }
  50% { transform: scale(1.5); }
}

.beam {
  position: absolute;
  left: 28%;
  top: 54%;
  height: 42px;
  width: 0;
  z-index: 4;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
}
.beam .core, .beam .halo, .beam .rings {
  position: absolute;
  inset: 0;
  border-radius: 40px;
}
.beam .core {
  background: linear-gradient(90deg, #fff, #c8f0ff 20%, #4aa7ff 70%, rgba(40,120,255,0));
  box-shadow: 0 0 18px #fff, 0 0 40px #4af, 0 0 80px #08f;
}
.beam .halo {
  inset: -22px -10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(80,160,255,0.25), transparent);
  filter: blur(10px);
}
.beam .rings {
  inset: -8px 0;
  background: repeating-linear-gradient(90deg, transparent 0 28px, rgba(255,255,255,0.35) 28px 34px);
  mix-blend-mode: screen;
  animation: beam-flow 0.18s linear infinite;
}
.beam .spiral {
  position: absolute;
  inset: -14px 0;
  border-radius: 40px;
  opacity: 0;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(
    -32deg,
    transparent 0 9px,
    rgba(255, 255, 255, 0.7) 9px 13px,
    rgba(124, 92, 255, 0.45) 13px 16px,
    transparent 16px 24px
  );
  animation: spiral-flow 0.16s linear infinite;
}
@keyframes beam-flow {
  to { background-position: 80px 0; }
}
@keyframes spiral-flow {
  to { background-position: 56px 28px; }
}
.phase-fire .beam {
  opacity: 1;
  width: 85%;
  animation: beam-shot 0.35s cubic-bezier(0.12, 0.7, 0.2, 1) forwards;
}
@keyframes beam-shot {
  from { width: 0; filter: brightness(3); }
  to { width: 85%; filter: brightness(1.2); }
}

.impact {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}
.phase-impact .impact { animation: whiteout 0.45s ease-out forwards; }
@keyframes whiteout {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

.chant {
  position: absolute;
  left: 0; right: 0;
  bottom: 8%;
  text-align: center;
  z-index: 9;
  pointer-events: none;
}
.chant em {
  display: block;
  font-style: normal;
  font-family: Audiowide, sans-serif;
  font-size: clamp(16px, 3vw, 28px);
  letter-spacing: 0.2em;
  color: #ffe08a;
  text-shadow: 0 0 14px #f59e0b;
  margin-bottom: 8px;
}
.chant small {
  display: block;
  letter-spacing: 0.45em;
  color: #c9e7ff;
  font-size: 12px;
  margin-bottom: 6px;
  text-shadow: 0 0 12px #9cf;
}
.chant b {
  font-family: Audiowide, sans-serif;
  font-size: clamp(28px, 6vw, 64px);
  color: #fff;
  letter-spacing: 0.12em;
  text-shadow: 0 0 18px #9cf, 0 0 40px #3af, 0 4px 0 #123;
}
.phase-fire .chant b { animation: yell 0.2s ease-in-out infinite alternate; }
@keyframes yell {
  from { transform: scale(1); }
  to { transform: scale(1.08); filter: brightness(1.4); }
}

.phase-fire .kame-scene { animation: cam-shake 0.08s linear infinite; }
@keyframes cam-shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-6px, 3px); }
  50% { transform: translate(5px, -4px); }
  75% { transform: translate(-3px, -2px); }
}

@media (max-width: 700px) {
  .fighter { left: 6%; transform: scale(0.78); }
  .beam { left: 22%; }
  .holo-grid { grid-template-columns: 1fr 1fr; }
  .flash-scores { grid-template-columns: 1fr 1fr; }
  .phase-fire .kame-scene,
  .atk-FINAL_BURST.phase-hold .kame-scene,
  .atk-COSMIC_SURGE.phase-hold .kame-scene,
  .atk-COSMIC_SURGE.phase-fire .kame-scene {
    animation-duration: 0.14s;
  }
  .atk-COSMIC_SURGE.phase-fire .beam { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .arcade-cap, .arcade-marquee, .arcade-led i, .phase-charge .fighter,
  .phase-hold .fighter, .phase-fire .kame-scene, .orbit-ring, .aura, .ui-sparkles span {
    animation: none !important;
  }
  .holo-card { animation: none; }
}

.perf-stars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.perf-stars div {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: center;
}
.perf-stars span { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.12em; }
.perf-stars b { color: var(--amber); letter-spacing: 0.08em; }

.score-grid { display: grid; gap: 8px; margin-top: 16px; }
.mini-score {
  position: relative;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px 10px;
  overflow: hidden;
}
.mini-score span { color: var(--muted); font-size: 11px; }
.mini-score b { float: right; font-family: "JetBrains Mono", monospace; font-size: 12px; }
.mini-score i {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.phase-scan .kame-void {
  background:
    radial-gradient(circle at 50% 30%, rgba(34, 230, 255, 0.16), transparent 32%),
    radial-gradient(circle at 50% 50%, #0a1020, #020308 70%);
}

.results {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px 80px;
  display: grid;
  gap: 22px;
}
.results[hidden] { display: none; }
.verdict-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
}
.gauge-card, .balance-card, .spec-card, .games-card, .upgrades, .fps-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(16px);
  overflow: visible;
}
.gauge-card { display: grid; grid-template-columns: 220px 1fr; gap: 8px; align-items: center; }
.gauge-wrap { position: relative; width: 210px; height: 210px; }
.gauge { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-track { fill: none; stroke: var(--gauge-track); stroke-width: 12; }
.g-value {
  fill: none;
  stroke: url(#none);
  stroke: var(--cyan);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 515;
  stroke-dashoffset: 515;
  filter: drop-shadow(0 0 8px var(--cyan));
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s;
}
.g-glow { fill: none; stroke: rgba(34, 230, 255, 0.08); stroke-width: 22; }
.gauge-read {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.gauge-read strong { font-size: 48px; font-weight: 800; line-height: 1; }
.gauge-read span { color: var(--muted); }
.gauge-read small { display: block; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-size: 10px; }
.verdict-copy h2 { font-size: 28px; margin: 6px 0 10px; }
.verdict-copy p:last-of-type { color: var(--muted); }
.synergy { margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.bar { height: 8px; background: var(--track); border-radius: 99px; overflow: hidden; }
.bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--magenta), var(--cyan), var(--lime));
  box-shadow: 0 0 12px var(--cyan);
  transition: width 1s ease;
}

.tug { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 10px; align-items: center; margin-top: 16px; }
.tug-cpu, .tug-gpu { text-align: center; }
.tug b { display: block; font-size: 28px; }
.tug-cpu b { color: var(--cyan); }
.tug-gpu b { color: var(--magenta); }
.tug span { color: var(--muted); font-size: 12px; }
.tug-track {
  height: 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), #445, var(--magenta));
  position: relative;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.4);
}
.tug-track i {
  position: absolute;
  top: -6px;
  width: 8px; height: 28px;
  background: #fff;
  border-radius: 4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px #fff;
  transition: left 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.weights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.weights div {
  background: var(--inset);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--line);
}
.weights span { display: block; color: var(--muted); font-size: 11px; }
.weights b { font-size: 16px; }

.fps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.fps-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fps-mini {
  display: block;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
}

.fps-lab {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 18px;
  margin: 8px 0 22px;
}
.fps-lab-main, .fps-lab-side {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.fps-lab h3 { font-size: 20px; margin-bottom: 12px; }
.fps-lab h3 small { color: var(--muted); font-weight: 400; }
.fps-lab h4 { font-size: 15px; margin: 18px 0 8px; }
.fps-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fps-table th {
  background: var(--table-head);
  color: var(--table-head-text);
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
}
.fps-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.fps-table tr.is-current td { background: rgba(34, 230, 255, 0.08); }
.fps-table tr.row-mid td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.fps-table tr.row-ok td:first-child { box-shadow: inset 3px 0 0 var(--lime); }
.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
}
.pill.ok { background: rgba(200, 255, 61, 0.16); color: var(--lime); }
.pill.mid { background: rgba(255, 176, 32, 0.16); color: var(--amber); }
.pill.cpu { background: rgba(255, 176, 32, 0.16); color: var(--amber); }
.pill.gpu { background: rgba(255, 77, 109, 0.16); color: #ff8aa0; }
.pill.bad { background: rgba(255, 77, 109, 0.16); color: #ff4d6d; }

.fps-legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.fps-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; }
.lg-low { background: #ff5d7a; }
.lg-mid { background: #e8a04a; }
.lg-high { background: #5dcc7a; }
.lg-ultra { background: #5eb4ff; }

.fps-dist { display: grid; gap: 16px; }
.dist-block strong { display: block; margin-bottom: 8px; }
.dist-row {
  display: grid;
  grid-template-columns: 64px 1fr 72px;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}
.dist-bar { height: 12px; background: var(--track); border-radius: 99px; overflow: hidden; }
.dist-bar i { display: block; height: 100%; border-radius: 99px; }
.dist-row b { text-align: right; font-family: "JetBrains Mono", monospace; }

.avg-ring {
  text-align: center;
  padding: 18px 10px 10px;
}
.avg-ring b {
  display: block;
  font-size: 42px;
  font-family: Audiowide, sans-serif;
  background: linear-gradient(180deg, var(--shine-top), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.avg-ring span { color: var(--muted); font-size: 12px; }
.ram-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.gauge-mini {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  background: var(--inset);
}
.gauge-mini em { display: block; font-style: normal; font-size: 22px; color: var(--lime); }
.gauge-mini.max em { color: var(--amber); }
.gauge-mini small { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.fps-tip {
  background: rgba(34, 230, 255, 0.08);
  border: 1px solid rgba(34, 230, 255, 0.25);
  border-radius: 14px;
  padding: 12px;
  margin-top: 8px;
}
.fps-tip p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.pop-game { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; margin-top: 10px; }
.pop-game p { color: var(--muted); font-size: 12px; }
.pop-game .cover-tile { width: 54px; cursor: default; pointer-events: none; }
.pop-game .cover-tile .cover-meta { display: none; }

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.cover-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: end stretch;
  padding: 0;
  text-align: left;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75)),
    radial-gradient(circle at 30% 20%, hsla(var(--h), 90%, 62%, 0.95), hsla(calc(var(--h) + 40), 80%, 18%, 1));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.cover-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cover-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4px;
  padding: 8px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
}
.cover-tile:has(img) b { display: none; }
.cover-tile b { font-size: 12px; line-height: 1.15; }
.cover-tile small { color: #cfe; font-size: 10px; font-weight: 700; }
.cover-tile.chart-thumb {
  width: 36px;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}
.cover-tile.chart-thumb .cover-meta { display: none; }

@media (max-width: 980px) {
  .fps-lab { grid-template-columns: 1fr; }
  .chart-row { grid-template-columns: 1fr; }
}

.fps-chart {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.chart-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(80px, 2fr) 72px auto;
  gap: 10px;
  align-items: center;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
}
.chart-name {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
}
.chart-name b { display: block; font-size: 13px; }
.chart-name small { color: var(--muted); font-size: 11px; }
.chart-bar {
  height: 10px;
  background: var(--track);
  border-radius: 99px;
  overflow: hidden;
}
.chart-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
}
.chart-row.band-mid .chart-bar i { background: linear-gradient(90deg, var(--amber), #ff7a18); }
.chart-row.band-bad .chart-bar i { background: linear-gradient(90deg, #ff4d6d, #ff004c); }
.chart-fps {
  text-align: right;
  font-family: "JetBrains Mono", monospace;
}
.chart-fps b { font-size: 16px; }
.chart-fps span { color: var(--muted); font-size: 10px; margin-left: 4px; }
.play-tag {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--lime);
  white-space: nowrap;
}
.chart-row.band-mid .play-tag,
.game.band-mid .pct { color: var(--amber); }
.chart-row.band-bad .play-tag,
.game.band-bad .pct { color: #ff4d6d; }

.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.fps-card b {
  display: block;
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(180deg, var(--shine-top), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fps-card span { color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.spec-card { position: relative; }
.spec-rgb {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff004c, #ffb000, #c8ff3d, #22e6ff, #7c5cff, #ff2d9b);
  background-size: 200% 100%;
  animation: shine 3s linear infinite;
}
.spec-card h3 { font-size: 22px; margin: 8px 0 8px; line-height: 1.25; }
.spec-verdict { color: var(--cyan); font-size: 13px; margin-bottom: 10px; }
.spec-card ul { list-style: none; display: grid; gap: 8px; color: var(--muted); }
.spec-card li::before { content: "▸ "; color: var(--cyan); }
.kit-grid { display: grid; gap: 8px; margin-top: 14px; }
.kit-card {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}
.kit-card b { display: block; color: var(--text); }
.kit-card span { color: var(--muted); font-size: 12px; }
.psu-meter {
  height: 10px;
  border-radius: 99px;
  background: var(--inset);
  overflow: hidden;
  margin: 8px 0 14px;
  border: 1px solid var(--line);
}
.psu-meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime), var(--amber), #ff4d6d);
  transition: width 0.8s ease;
}

.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.game {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.game b { display: block; font-size: 14px; }
.game .tag { color: var(--muted); font-size: 11px; }
.game .pct { margin-top: 8px; font-family: "JetBrains Mono", monospace; color: var(--amber); }

.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.tip {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.tip .kind {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.tip h4 { margin: 6px 0; font-size: 16px; }
.tip p { color: var(--muted); font-size: 13px; }

.tone-good .g-value, .tone-good .gauge-read strong { stroke: var(--lime); color: var(--lime); filter: drop-shadow(0 0 8px var(--lime)); }
.tone-mid .g-value, .tone-mid .gauge-read strong { stroke: var(--amber); color: var(--amber); filter: drop-shadow(0 0 8px var(--amber)); }
.tone-bad .g-value, .tone-bad .gauge-read strong { stroke: #ff4d6d; color: #ff4d6d; filter: drop-shadow(0 0 8px #ff4d6d); }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 0 24px 40px;
}
footer a { color: var(--brand); }
.footer-brand img {
  height: 56px;
  margin: 0 auto 12px;
  display: block;
  border-radius: 8px;
}

.power-hud {
  position: absolute;
  right: 6%;
  top: 16%;
  z-index: 12;
  text-align: right;
  pointer-events: none;
}
.power-hud[hidden] { display: none; }
.power-hud small {
  display: block;
  letter-spacing: 0.28em;
  color: var(--cyan);
  font-size: 12px;
}
.power-hud b {
  display: block;
  font-family: Audiowide, sans-serif;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 18px #22e6ff, 0 0 40px #7c5cff;
}
.power-hud em {
  display: block;
  font-style: normal;
  letter-spacing: 0.18em;
  color: #ffe08a;
  margin-top: 6px;
}

.phase-transform .fighter { animation: trans-pop 0.7s ease; }
@keyframes trans-pop {
  0% { filter: brightness(3); transform: scale(0.92); }
  40% { filter: brightness(1.8) saturate(1.4); transform: scale(1.08); }
  100% { filter: none; transform: scale(1); }
}
.phase-transform .kame-scene { animation: cam-shake 0.1s linear infinite; }

.form-super .aura {
  background: radial-gradient(circle at 50% 40%, rgba(255,255,180,0.75), rgba(250,204,21,0.28) 42%, transparent 70%);
}
.form-blue .aura {
  background: radial-gradient(circle at 50% 40%, rgba(180,240,255,0.8), rgba(34,230,255,0.3) 42%, transparent 72%);
}
.form-god .aura {
  background: radial-gradient(circle at 50% 40%, rgba(255,180,220,0.8), rgba(255,45,155,0.28) 42%, transparent 72%);
}
.form-ultra .aura {
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.9), rgba(226,232,255,0.4) 38%, transparent 74%);
  width: 280px; height: 340px;
}
.form-ultra .ki-orb {
  background: radial-gradient(circle, #fff 0 18%, #e0e7ff 32%, #a5b4fc 58%, transparent 72%);
}

.phase-appear .fighter {
  animation: fighter-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes fighter-in {
  from { opacity: 0; transform: scale(0.85); filter: blur(15px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

.calc-overlay {
  --aura: 0.35;
}
.phase-charge .aura,
.phase-hold .aura,
.phase-appear .aura {
  transform: translateX(-50%) scale(var(--aura));
  transition: transform 0.32s ease;
}
.phase-flash .impact { animation: whiteout 0.12s ease-out forwards; }

.aura-video,
.attack-video {
  position: absolute;
  pointer-events: none;
  object-fit: contain;
}
.aura-video {
  left: 8%;
  bottom: 10%;
  width: 280px;
  height: 340px;
  z-index: 2;
  mix-blend-mode: screen;
}
.attack-video {
  left: 22%;
  top: 30%;
  width: 70%;
  height: 40%;
  z-index: 7;
  mix-blend-mode: screen;
}
video.fighter-asset {
  z-index: 6;
}

.debug-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}
.debug-row button {
  background: var(--inset);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font: 11px Outfit, sans-serif;
  cursor: pointer;
}

.validated {
  margin-top: 10px;
  color: var(--lime);
  letter-spacing: 0.12em;
  font-weight: 700;
}

@media (max-width: 700px) {
  .power-hud { right: 4%; top: 10%; text-align: left; left: 4%; }
  .power-hud b { font-size: 48px; }
}

@media (max-width: 980px) {
  .hero, .verdict-row, .fields, .split, .fps-grid, .games, .tips { grid-template-columns: 1fr; }
  .top-nav { display: none; }
  .switch-rail { width: 148px; height: 34px; }
  .stage { grid-template-columns: 1fr; min-height: 520px; }
  .link-beam { width: 4px; height: 40px; margin: 8px auto; }
  .gauge-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero { padding: 28px 18px 8px; }
  .config, .results { padding-left: 18px; padding-right: 18px; }
}
