/* ==========================================================================
   CYBER_OVERRIDE // HYPER-ANIMATED BLACK & WHITE PRO EDITION
   Aesthetics: Deep OLED Black, Pure Hyper-White Phosphor, Chrome, Electric Sparks
   ========================================================================== */

:root {
  --pure-black: #000000;
  --void-black: #050505;
  --carbon-dark: #0f0f0f;
  --steel-dark: #1c1c1c;
  --pure-white: #ffffff;
  --glow-white: rgba(255, 255, 255, 0.95);
  --silver-bright: #e6e6e6;
  --silver-mid: #949494;
  --font-cyber: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--pure-black);
  color: var(--pure-white);
  font-family: var(--font-cyber);
  overflow: hidden; /* Zero scrollbars on PC & Mobile */
  position: relative;
}

/* ==========================================================================
   BACKGROUND ATMOSPHERE LAYERS
   ========================================================================== */

/* 1. Deep Matrix Rain Canvas */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}

/* 2. 3D Cyber Perspective Grid Floor */
.cyber-grid-floor {
  position: fixed;
  bottom: -40px;
  left: -20%;
  width: 140%;
  height: 45vh;
  z-index: 2;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(400px) rotateX(70deg);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 10%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 10%, transparent 80%);
  animation: gridMove 4s linear infinite;
}

/* 3. CRT Scanlines & Shading */
.crt-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    rgba(255, 255, 255, 0) 50%, 
    rgba(0, 0, 0, 0.6) 50%
  );
  background-size: 100% 3px;
  opacity: 0.4;
}

.crt-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4;
  pointer-events: none;
  opacity: 0.035;
  background-image: repeating-radial-gradient(circle at 50% 50%, #ffffff, #000000 2px);
  animation: noiseJitter 0.2s steps(2) infinite;
}

.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 35%,
    rgba(0, 0, 0, 0.96) 95%
  );
}

/* Lightning Screen Strobe Flash */
.lightning-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 8;
  pointer-events: none;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.05s ease-out;
}

.lightning-flash.active {
  opacity: 0.2;
}

/* ==========================================================================
   CENTER STAGE CONTAINER (PERFECT FIT PC & MOBILE)
   ========================================================================== */
.cyber-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 3.5vh, 36px);
  padding: 16px;
}

/* ==========================================================================
   3D GYROSCOPIC HOLOGRAPHIC SCOPE
   ========================================================================== */
.gyro-scope {
  position: relative;
  width: min(80vw, 370px);
  height: min(80vw, 370px);
  max-width: 400px;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  perspective: 900px;
  transform-style: preserve-3d;
}

/* Concentric Gyro Rings */
.gyro-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ring-outer {
  width: 114%;
  height: 114%;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
  animation: gyroSpinCw 22s linear infinite;
}

.ring-middle {
  width: 90%;
  height: 90%;
  border: 1.5px dotted rgba(255, 255, 255, 0.5);
  animation: gyroSpinCcw 15s linear infinite;
}

.ring-inner {
  width: 68%;
  height: 68%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  animation: gyroSpinCw 9s linear infinite;
}

/* Tech Crosshairs & Framing Corners */
.scope-crosshair {
  position: absolute;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.crosshair-x { width: 120%; height: 1px; }
.crosshair-y { width: 1px; height: 120%; }

.tech-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  border-color: #ffffff;
}

.tc-tl { top: -10px; left: -10px; border-top: 2px solid #fff; border-left: 2px solid #fff; }
.tc-tr { top: -10px; right: -10px; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.tc-bl { bottom: -10px; left: -10px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; }
.tc-br { bottom: -10px; right: -10px; border-bottom: 2px solid #fff; border-right: 2px solid #fff; }

/* Expanding Energy Shockwave Rings from Fingertip */
.energy-shockwave-ring {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.wave-1 {
  width: 20px;
  height: 20px;
  animation: shockwavePulse 2.8s cubic-bezier(0.1, 0.7, 0.1, 1) infinite;
}

.wave-2 {
  width: 20px;
  height: 20px;
  animation: shockwavePulse 2.8s cubic-bezier(0.1, 0.7, 0.1, 1) infinite 1.4s;
}

/* ==========================================================================
   HIGH-ANIMATION CYBER HAND SVG
   ========================================================================== */
.hand-3d-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatLevitation 3.8s ease-in-out infinite alternate;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hand-3d-wrapper:hover {
  transform: scale(1.08) translateY(-6px);
}

.hand-3d-wrapper:active {
  transform: scale(0.95) translateY(4px);
}

.cyber-hand {
  width: 88%;
  height: 88%;
  max-width: 320px;
  max-height: 400px;
  overflow: visible;
  filter: 
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.7))
    drop-shadow(0 0 45px rgba(255, 255, 255, 0.3));
}

/* Vector Elements Styling */
.plate-metal {
  fill: url(#chromeGrad);
  stroke: #ffffff;
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.wrist-chassis {
  fill: #0a0a0a;
  stroke-width: 2.6;
}

.palm-shield {
  fill: #050505;
  stroke-width: 2.8;
}

.plate-inset {
  fill: #161616;
  stroke: #ffffff;
  stroke-width: 1.6;
}

.finger-folded .plate-metal {
  fill: #080808;
  opacity: 0.85;
}

/* Middle Finger Dominant Styling */
.mid-phalanx-base, .mid-phalanx-center, .mid-phalanx-tip {
  fill: #101010;
  stroke: #ffffff;
  stroke-width: 3.2;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.85));
}

/* Wires & Superconducting Beams */
.neon-wire {
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-dasharray: 4, 3;
  animation: wireStream 1.2s linear infinite;
}

.neon-wire.wire-fast {
  animation: wireStream 0.6s linear infinite;
}

.neon-rail.super-rail {
  stroke: #ffffff;
  stroke-width: 2.6;
  stroke-dasharray: 6, 2;
  filter: drop-shadow(0 0 8px #ffffff);
  animation: wireStream 0.5s linear infinite;
}

.neon-crease {
  stroke: #ffffff;
  stroke-width: 1.5;
  stroke-dasharray: 2, 2;
}

/* Joints, Bolts & Rivets */
.wire-node, .rivet-bolt, .joint-rivet, .rail-node {
  fill: #ffffff;
  stroke: #000000;
  stroke-width: 1.2;
  filter: drop-shadow(0 0 4px #ffffff);
}

.reactor-core {
  fill: #ffffff;
  animation: corePulseGlow 1.2s ease-in-out infinite alternate;
}

.cyber-nail {
  fill: #ffffff;
  stroke: #ffffff;
  stroke-width: 2;
  filter: drop-shadow(0 0 15px #ffffff);
  animation: nailPhosphor 1.8s ease-in-out infinite alternate;
}

/* High-Voltage Lightning Electric Arcs at Tip */
.lightning-branch {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px #ffffff) drop-shadow(0 0 20px #ffffff);
  animation: lightningFlicker 0.22s steps(2) infinite alternate;
}

.arc-left {
  animation-delay: 0.05s;
}

.arc-right {
  animation-delay: 0.12s;
  stroke-width: 2.4;
}

.plasma-orb {
  fill: #ffffff;
  filter: drop-shadow(0 0 16px #ffffff) drop-shadow(0 0 30px #ffffff);
  animation: plasmaThrob 0.28s ease-in-out infinite alternate;
}

.plasma-corona {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.5;
  animation: coronaExpand 0.6s ease-out infinite;
}

/* Vertical Hologram Laser Line */
.hologram-laser-line {
  stroke: #ffffff;
  stroke-width: 2.5;
  opacity: 0.85;
  filter: drop-shadow(0 0 10px #ffffff);
  animation: laserSweep 2.2s ease-in-out infinite alternate;
}

.laser-flare-bead {
  fill: #ffffff;
  filter: drop-shadow(0 0 14px #ffffff);
  animation: laserSweep 2.2s ease-in-out infinite alternate;
}

/* ==========================================================================
   HYPER-GLITCH "FUCK YOU" TYPOGRAPHY
   ========================================================================== */
.glitch-stage {
  text-align: center;
  position: relative;
  z-index: 12;
  perspective: 600px;
}

.glitch-title {
  font-family: var(--font-cyber);
  font-weight: 900;
  font-size: clamp(3rem, 12.5vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: clamp(6px, 2.5vw, 18px);
  color: var(--pure-white);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.95),
    0 0 25px rgba(255, 255, 255, 0.85),
    0 0 60px rgba(255, 255, 255, 0.5),
    0 0 100px rgba(255, 255, 255, 0.25);
  animation: typographyTremor 3s infinite ease-in-out;
}

/* Dual-Layer Razor Slice Glitch Shadows */
.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.glitch-title::before {
  color: #ffffff;
  text-shadow: -4px 0 #777777, 0 0 18px #ffffff;
  left: 4px;
  animation: glitchSliceTop 2.1s infinite linear alternate-reverse;
}

.glitch-title::after {
  color: #d1d1d1;
  text-shadow: 4px 0 #111111, 0 0 25px rgba(255, 255, 255, 0.9);
  left: -4px;
  animation: glitchSliceBottom 1.7s infinite linear alternate-reverse;
}

/* ==========================================================================
   CLICK / TAP SURGE SHOCKWAVE STATE
   ========================================================================== */
body.shock-active .glitch-title {
  animation: glitchSuperFrenzy 0.08s infinite;
}

body.shock-active .hand-3d-wrapper {
  animation: handViolentShock 0.09s infinite;
  filter: drop-shadow(0 0 50px #ffffff) drop-shadow(0 0 90px #ffffff);
}

body.shock-active .gyro-scope {
  transform: scale(1.06);
}

/* ==========================================================================
   HIGH PERFORMANCE KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes gridMove {
  0% { background-position-y: 0; }
  100% { background-position-y: 40px; }
}

@keyframes noiseJitter {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 2%); }
  100% { transform: translate(2%, -1%); }
}

@keyframes floatLevitation {
  0% { transform: translateY(10px); }
  100% { transform: translateY(-12px); }
}

@keyframes gyroSpinCw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gyroSpinCcw {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes shockwavePulse {
  0% {
    width: 20px;
    height: 20px;
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    width: 320px;
    height: 320px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

@keyframes wireStream {
  to { stroke-dashoffset: -24; }
}

@keyframes corePulseGlow {
  0% { transform: scale(0.85); opacity: 0.6; filter: drop-shadow(0 0 2px #fff); }
  100% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 12px #ffffff); }
}

@keyframes nailPhosphor {
  0% { opacity: 0.7; filter: drop-shadow(0 0 8px #ffffff); }
  100% { opacity: 1; filter: drop-shadow(0 0 22px #ffffff); }
}

@keyframes lightningFlicker {
  0% { opacity: 0.15; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.3; transform: scale(0.95); }
}

@keyframes plasmaThrob {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 1; }
}

@keyframes coronaExpand {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes laserSweep {
  0% { transform: translateY(20px); opacity: 0.2; }
  50% { opacity: 1; }
  100% { transform: translateY(410px); opacity: 0.2; }
}

@keyframes typographyTremor {
  0%, 86%, 100% { transform: translate(0, 0); }
  87% { transform: translate(-3px, 1px) skewX(2.5deg); }
  90% { transform: translate(3px, -2px) skewX(-2.5deg); }
  93% { transform: translate(-2px, 2px); }
  96% { transform: translate(2px, -1px); }
}

@keyframes glitchSliceTop {
  0% { clip-path: polygon(0 2%, 100% 2%, 100% 9%, 0 9%); transform: translate(-5px, -1px); }
  25% { clip-path: polygon(0 22%, 100% 22%, 100% 33%, 0 33%); transform: translate(5px, 1px); }
  50% { clip-path: polygon(0 48%, 100% 48%, 100% 60%, 0 60%); transform: translate(-4px, 0); }
  75% { clip-path: polygon(0 75%, 100% 75%, 100% 88%, 0 88%); transform: translate(5px, 2px); }
  100% { clip-path: polygon(0 92%, 100% 92%, 100% 98%, 0 98%); transform: translate(-3px, -1px); }
}

@keyframes glitchSliceBottom {
  0% { clip-path: polygon(0 8%, 100% 8%, 100% 16%, 0 16%); transform: translate(4px, 1px); }
  25% { clip-path: polygon(0 32%, 100% 32%, 100% 44%, 0 44%); transform: translate(-5px, -2px); }
  50% { clip-path: polygon(0 62%, 100% 62%, 100% 74%, 0 74%); transform: translate(4px, 1px); }
  75% { clip-path: polygon(0 80%, 100% 80%, 100% 92%, 0 92%); transform: translate(-4px, -1px); }
  100% { clip-path: polygon(0 3%, 100% 3%, 100% 12%, 0 12%); transform: translate(3px, 1px); }
}

@keyframes glitchSuperFrenzy {
  0% { transform: translate(-8px, 4px) skewX(6deg); }
  50% { transform: translate(8px, -4px) skewX(-6deg); }
  100% { transform: translate(-3px, 3px) skewX(3deg); }
}

@keyframes handViolentShock {
  0% { transform: scale(1.12) rotate(-4deg); }
  50% { transform: scale(0.94) rotate(4deg); }
  100% { transform: scale(1.08) rotate(0deg); }
}

/* ==========================================================================
   MOBILE SCREEN RESPONSIVENESS (< 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .cyber-stage {
    gap: 14px;
    padding: 10px;
  }

  .gyro-scope {
    width: min(78vw, 300px);
    height: min(78vw, 300px);
  }

  .glitch-title {
    font-size: clamp(3rem, 14vw, 4.4rem);
    letter-spacing: clamp(5px, 2vw, 12px);
  }
}
