/**
 * ============================================================
 * TRACKY HAND — CINEMATIC MOTION COMIC INTRO ENGINE
 * Premium Sci-Fi Graphic Novel Opening Experience
 * ============================================================
 */

/* ------------------------------------------------------------
   INTRO ROOT & VISIBILITY CONTROLS
   ------------------------------------------------------------ */
html.intro-skipped #trackyIntro {
  display: none !important;
}

html.intro-active body {
  overflow: hidden !important;
}

.tracky-intro {
  position: fixed;
  inset: 0;
  z-index: 999999;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #010408;
  color: #ffffff;
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tracky-intro.is-closing {
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------------------------------------
   PERSISTENT HUD TOOLBAR (SOUND, SKIP, PROGRESS)
   ------------------------------------------------------------ */
.intro-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 40px);
  z-index: 100;
  pointer-events: none;
}

.intro-hud > * {
  pointer-events: auto;
}

.intro-hud__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.intro-hud__brand svg {
  width: 22px;
  height: 22px;
  color: #00c8ff;
  filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.6));
}

.intro-hud__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 12, 28, 0.75);
  border: 1px solid rgba(0, 200, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.intro-btn:hover {
  background: rgba(0, 200, 255, 0.15);
  border-color: #00c8ff;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.3);
  transform: translateY(-1px);
}

.intro-btn:active {
  transform: translateY(0);
}

.intro-btn svg {
  width: 14px;
  height: 14px;
}

.intro-btn--skip {
  border-color: rgba(255, 110, 20, 0.35);
  color: rgba(255, 200, 160, 0.9);
}

.intro-btn--skip:hover {
  background: rgba(255, 110, 20, 0.2);
  border-color: #ff6e14;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 110, 20, 0.35);
}

/* Timeline progress bar at very top */
.intro-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 101;
}

.intro-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00c8ff, #ff6e14);
  box-shadow: 0 0 12px #00c8ff;
  transition: width 0.1s linear;
}

/* ------------------------------------------------------------
   INITIAL GATE SCREEN (AUTOPLAY COMPLIANCE & GATEWAY)
   ------------------------------------------------------------ */
.intro-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 90;
  background: radial-gradient(circle at 50% 50%, #061124 0%, #010408 85%);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-gate.is-dismissed {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.intro-gate__grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 200, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
  pointer-events: none;
}

.intro-gate__content {
  position: relative;
  text-align: center;
  max-width: 580px;
  padding: 0 24px;
  z-index: 2;
}

.intro-gate__logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  color: #00c8ff;
  filter: drop-shadow(0 0 24px rgba(0, 200, 255, 0.7));
  animation: gateLogoPulse 3s ease-in-out infinite alternate;
}

@keyframes gateLogoPulse {
  0% { transform: scale(0.96); filter: drop-shadow(0 0 16px rgba(0, 200, 255, 0.5)); }
  100% { transform: scale(1.04); filter: drop-shadow(0 0 32px rgba(0, 200, 255, 0.9)); }
}

.intro-gate__tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: #00c8ff;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.6);
}

.intro-gate__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.intro-gate__title span {
  display: block;
}

.intro-gate__title .accent {
  color: #00c8ff;
  text-shadow: 0 0 28px rgba(0, 200, 255, 0.75), 0 0 60px rgba(0, 200, 255, 0.35);
}

.intro-gate__desc {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 34px;
  line-height: 1.5;
}

.intro-gate__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.intro-gate__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 42px;
  background: linear-gradient(135deg, #0088cc 0%, #00c8ff 50%, #20e4ff 100%);
  color: #010408;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 35px rgba(0, 200, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-gate__btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 50px rgba(0, 200, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.intro-gate__btn:active {
  transform: translateY(1px) scale(0.99);
}

.intro-gate__skip-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.2s;
}

.intro-gate__skip-link:hover {
  color: #ff6e14;
}

/* ------------------------------------------------------------
   CANVAS PARTICLE & FX BACKDROP
   ------------------------------------------------------------ */
.intro-canvas-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* ------------------------------------------------------------
   CINEMATIC LETTERBOXING (ANAMORPHIC WIDESCREEN)
   ------------------------------------------------------------ */
.intro-letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: 5vh;
  min-height: 28px;
  background: #000000;
  z-index: 80;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-letterbox--top {
  top: 0;
}

.intro-letterbox--bottom {
  bottom: 0;
}

/* ------------------------------------------------------------
   MAIN MOTION COMIC SCENE CONTAINER
   ------------------------------------------------------------ */
.intro-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.98);
}

.intro-scene.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.intro-scene.is-leaving {
  opacity: 0;
  transform: scale(1.06);
}

/* ------------------------------------------------------------
   COMIC PANEL ARCHITECTURE & BORDERS
   ------------------------------------------------------------ */
.comic-frame {
  position: relative;
  width: min(92vw, 1260px);
  height: min(84vh, 760px);
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.comic-panel {
  position: absolute;
  inset: 0;
  background: #020612;
  border: 2px solid rgba(0, 200, 255, 0.45);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 200, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Halftone / Comic Texture Overlay */
.comic-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 200, 255, 0.12) 1px, transparent 1px);
  background-size: 6px 6px;
  pointer-events: none;
  z-index: 6;
  opacity: 0.6;
}

/* Comic Panel Tech Corners */
.comic-panel::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(0, 200, 255, 0.2);
  border-radius: 4px;
  pointer-events: none;
  z-index: 7;
}

.comic-panel__bg {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 6s cubic-bezier(0.1, 0.9, 0.2, 1);
  will-change: transform;
}

.intro-scene.is-active .comic-panel__bg {
  transform: scale(1.08) translate(-1%, -1%);
}

.comic-panel__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(1, 4, 8, 0.85) 95%);
  z-index: 4;
  pointer-events: none;
}

/* Comic Tech Metadata Badge */
.comic-meta {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 10;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: #00c8ff;
  background: rgba(1, 4, 8, 0.85);
  padding: 3px 10px;
  border-left: 2px solid #00c8ff;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.8);
}

/* ------------------------------------------------------------
   TYPOGRAPHY IN THE INTRO
   ------------------------------------------------------------ */
.intro-caption {
  position: absolute;
  bottom: clamp(24px, 6vh, 60px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  text-align: center;
  width: min(90vw, 980px);
  pointer-events: none;
}

.intro-caption__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 200, 255, 0.3);
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.intro-scene.is-active .intro-caption__title {
  opacity: 1;
  transform: translateY(0);
}

.intro-caption__title span {
  display: block;
}

.intro-caption__title .cyan {
  color: #1fd2ff;
  text-shadow: 0 0 28px rgba(25, 211, 255, 0.75), 0 0 6px rgba(25, 211, 255, 0.95);
}

.intro-caption__title .orange {
  color: #ff6e14;
  text-shadow: 0 0 28px rgba(255, 110, 20, 0.75), 0 0 6px rgba(255, 110, 20, 0.95);
}

.intro-caption__sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  letter-spacing: 0.22em;
  color: #00c8ff;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
}

.intro-scene.is-active .intro-caption__sub {
  opacity: 0.9;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   SCENE 1: THE OLD WAY (CRT SCREEN INTERFERENCE)
   ------------------------------------------------------------ */
.scene-crt-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%);
  background-size: 100% 4px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.7;
}

.scene-glitch-layer {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
}

.scene-glitch-layer.is-glitching {
  animation: screenGlitch 0.4s steps(2) infinite;
}

@keyframes screenGlitch {
  0% { opacity: 0.8; transform: translate(2px, 0) skewX(2deg); filter: hue-rotate(90deg); }
  25% { opacity: 0.4; transform: translate(-3px, 1px); }
  50% { opacity: 0.9; transform: translate(1px, -2px) skewX(-2deg); filter: invert(0.2); }
  75% { opacity: 0.3; transform: translate(-1px, 2px); }
  100% { opacity: 0; transform: translate(0, 0); }
}

/* ------------------------------------------------------------
   SCENE 2 & 3: THE SIGNAL & HAND DETECTED HUD
   ------------------------------------------------------------ */
.scene-hud-reticle {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px dashed rgba(0, 200, 255, 0.5);
  border-radius: 50%;
  top: 36%;
  right: 28%;
  z-index: 9;
  pointer-events: none;
  animation: reticleSpin 12s linear infinite;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-scene.is-active .scene-hud-reticle {
  opacity: 1;
  transform: scale(1);
}

@keyframes reticleSpin {
  to { transform: rotate(360deg); }
}

.scene-hud-tag {
  position: absolute;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #00c8ff;
  background: rgba(1, 4, 8, 0.8);
  padding: 2px 8px;
  border: 1px solid rgba(0, 200, 255, 0.4);
  border-radius: 2px;
  z-index: 9;
}

/* Biometric status banner in Scene 3 */
.scene-bio-banner {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(1, 10, 25, 0.92);
  border: 2px solid #00c8ff;
  box-shadow: 0 0 35px rgba(0, 200, 255, 0.6), inset 0 0 20px rgba(0, 200, 255, 0.3);
  padding: 14px 34px;
  border-radius: 4px;
  text-align: center;
  z-index: 15;
  opacity: 0;
  transform: translate(-50%, -15px) scale(0.92);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-scene.is-active .scene-bio-banner {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.scene-bio-banner__status {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(0, 200, 255, 0.8);
  margin-bottom: 2px;
}

.scene-bio-banner__sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  letter-spacing: 0.2em;
  color: #00c8ff;
}

/* ------------------------------------------------------------
   SCENE 4: FIRST GESTURE / PINCH & SHATTERED REALITY
   ------------------------------------------------------------ */
.pinch-shockwave {
  position: absolute;
  top: 48%;
  left: 52%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid #00c8ff;
  box-shadow: 0 0 30px #00c8ff, inset 0 0 20px #ff6e14;
  opacity: 0;
  pointer-events: none;
  z-index: 12;
}

.pinch-shockwave.is-exploding {
  animation: pinchShock 1.4s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes pinchShock {
  0% { width: 10px; height: 10px; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  60% { border-color: #ff6e14; }
  100% { width: 900px; height: 900px; opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}

/* Shattered comic panels */
.comic-frame--shattering .comic-panel {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  animation: panelShatter 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panelShatter {
  0% { transform: rotateX(0deg) rotateY(0deg) scale(1); }
  50% { transform: rotateX(6deg) rotateY(-8deg) scale(1.02); filter: drop-shadow(0 0 20px #00c8ff); }
  100% { transform: rotateX(-3deg) rotateY(4deg) scale(1.04); }
}

/* ------------------------------------------------------------
   SCENE 5: THE GAME WORLDS (ANIME MOTION COMIC CUTS)
   ------------------------------------------------------------ */
.game-worlds-stage {
  position: relative;
  width: min(94vw, 1340px);
  height: min(84vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-cut {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.15) rotate(1deg);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border-radius: 10px;
}

.game-cut.is-current {
  opacity: 1;
  visibility: visible;
  transform: scale(1) rotate(0deg);
  z-index: 10;
}

.game-cut__img {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  animation: cutPan 2.6s linear infinite alternate;
}

@keyframes cutPan {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1%, -1%); }
}

/* Speed lines on game cuts */
.game-speed-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 18px,
    rgba(255, 255, 255, 0.08) 19px,
    transparent 20px
  );
  z-index: 5;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: speedLinesRush 0.3s linear infinite;
}

@keyframes speedLinesRush {
  0% { transform: scaleX(1); }
  50% { transform: scaleX(1.03); }
  100% { transform: scaleX(1); }
}

/* Game Cut Title Badge */
.game-cut__badge {
  position: absolute;
  bottom: 12%;
  left: 6%;
  z-index: 12;
  background: rgba(1, 4, 10, 0.88);
  border-left: 4px solid #00c8ff;
  border-top: 1px solid rgba(0, 200, 255, 0.3);
  padding: 16px 28px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transform: translateX(-30px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.game-cut.is-current .game-cut__badge {
  transform: translateX(0);
  opacity: 1;
}

.game-cut__genre {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: #00c8ff;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.game-cut__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   SCENE 6: THE WORLDS COLLIDE (ORBITING FRAGMENTS)
   ------------------------------------------------------------ */
.orbit-universe {
  position: relative;
  width: min(85vw, 800px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(0, 200, 255, 0.35);
  border-radius: 50%;
  animation: orbitSpin 18s linear infinite;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.orbit-card {
  position: absolute;
  width: 90px;
  height: 60px;
  border-radius: 6px;
  border: 1.5px solid #00c8ff;
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.6);
  overflow: hidden;
  transform-origin: center;
}

.orbit-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------
   SCENE 7 & 8: PORTAL EXPANSION & FINAL LINE
   ------------------------------------------------------------ */
.portal-climax-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portal-climax-bg {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.intro-scene.is-active .portal-climax-bg {
  transform: scale(1.35);
}

.portal-tunnel-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #1fd2ff 40%, transparent 75%);
  opacity: 0;
  z-index: 30;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.portal-tunnel-flash.is-flashing {
  opacity: 1;
}

/* Final Statement Typography in Scene 8 */
.final-statement {
  position: relative;
  z-index: 40;
  text-align: center;
  max-width: 980px;
  padding: 0 20px;
}

.final-statement__eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.final-statement__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.final-statement__title span {
  display: block;
}

.final-statement__title .accent {
  color: #1fd2ff;
  text-shadow: 0 0 32px rgba(25, 211, 255, 0.85), 0 0 4px rgba(25, 211, 255, 1);
}

/* ------------------------------------------------------------
   REPLAY INTRO BUTTON ON HOMEPAGE
   ------------------------------------------------------------ */
.btn-replay-intro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.28);
  color: #00c8ff;
  padding: 5px 12px;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-replay-intro:hover {
  background: rgba(0, 200, 255, 0.2);
  border-color: #00c8ff;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 200, 255, 0.35);
  transform: translateY(-1px);
}

.btn-replay-intro svg {
  width: 14px;
  height: 14px;
}

/* ------------------------------------------------------------
   RESPONSIVENESS (MOBILE / TABLET ADAPTATION)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .intro-hud {
    height: 52px;
    padding: 0 14px;
  }
  
  .intro-hud__brand {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }
  
  .intro-hud__brand svg {
    width: 18px;
    height: 18px;
  }

  .intro-btn {
    padding: 4px 10px;
    font-size: 0.68rem;
  }

  .comic-frame {
    width: 95vw;
    height: 72vh;
  }

  .comic-panel {
    border-width: 1.5px;
  }

  .intro-caption {
    bottom: 24px;
    width: 94vw;
  }

  .game-cut__badge {
    bottom: 8%;
    left: 4%;
    padding: 10px 18px;
  }

  .final-statement__title {
    font-size: clamp(2.6rem, 11vw, 4.2rem);
  }
}

/* ------------------------------------------------------------
   REDUCED MOTION ACCESSIBILITY
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .comic-panel__bg,
  .game-cut__img,
  .portal-climax-bg,
  .orbit-ring,
  .intro-gate__logo {
    animation: none !important;
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }

  .tracky-intro,
  .intro-scene,
  .game-cut {
    transition-duration: 0.3s !important;
  }
}
