* {
  box-sizing: border-box;
}

:root {
  --bg: #040404;
  --panel: rgba(8, 12, 10, 0.9);
  --line: rgba(255, 255, 255, 0.1);
  --green: #73ffb1;
  --red: #ff5454;
  --text: #f1f1f1;
  --muted: #c0cbc4;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,0.03), transparent 18%),
    linear-gradient(180deg, #030303 0%, #050505 100%);
}


.page-shell {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,0.03), transparent 18%),
    linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.95));
}

.maze-grid {
  position: absolute;
  inset: -10%;
  pointer-events: none;
}

.maze-grid-back {
  background:
    linear-gradient(rgba(15,255,160,0.24) 2px, transparent 2px),
    linear-gradient(90deg, rgba(15,255,160,0.22) 2px, transparent 2px);
  background-size: 86px 86px;
  transform: perspective(1300px) rotateX(80deg) translateY(24vh) scale(1.8);
  opacity: 0.72;
  filter:
    drop-shadow(0 0 12px rgba(15,255,160,0.12))
    drop-shadow(0 0 28px rgba(15,255,160,0.10));
  animation: gridDriftSlow 18s linear infinite;
}

.maze-grid-front {
  background:
    linear-gradient(rgba(15,255,160,0.48) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,255,160,0.42) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(1100px) rotateX(77deg) translateY(30vh) scale(1.65);
  opacity: 0.62;
  filter:
    drop-shadow(0 0 14px rgba(0,255,160,0.24))
    drop-shadow(0 0 34px rgba(0,255,160,0.18))
    drop-shadow(0 0 64px rgba(0,255,160,0.10));
  animation: gridDriftFast 10s linear infinite;
}

.maze-grid-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255,255,255,0.05) 35%,
      rgba(15,255,160,0.12) 50%,
      rgba(255,255,255,0.05) 65%,
      transparent 100%
    );
  mix-blend-mode: screen;
  opacity: 0.7;
  transform: translateX(-40%);
  animation: gridShimmer 6.5s ease-in-out infinite;
  pointer-events: none;
}

.maze-grid-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.045) 0px,
      rgba(255,255,255,0.045) 1px,
      transparent 3px,
      transparent 7px
    );
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}

.fog,
.scanlines,
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fog {
  mix-blend-mode: screen;
}

.fog-a {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.14), transparent 16%),
    radial-gradient(circle at 65% 42%, rgba(255,255,255,0.12), transparent 18%),
    radial-gradient(circle at 40% 72%, rgba(255,255,255,0.1), transparent 20%);
  opacity: 0.45;
  filter: blur(36px);
  animation: fogMoveA 24s ease-in-out infinite alternate;
}

.fog-b {
  background:
    radial-gradient(circle at 80% 24%, rgba(255,255,255,0.12), transparent 15%),
    radial-gradient(circle at 30% 55%, rgba(255,255,255,0.08), transparent 16%),
    radial-gradient(circle at 75% 80%, rgba(255,255,255,0.12), transparent 18%);
  opacity: 0.34;
  filter: blur(52px);
  animation: fogMoveB 34s ease-in-out infinite alternate;
}

.fog-c {
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,0.09), transparent 14%),
    radial-gradient(circle at 15% 78%, rgba(255,255,255,0.1), transparent 18%);
  opacity: 0.28;
  filter: blur(70px);
  animation: fogMoveC 28s ease-in-out infinite alternate;
}

.scanlines {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 3px,
    transparent 6px
  );
  opacity: 0.18;
}

.vignette {
  background:
    radial-gradient(circle at center, transparent 28%, rgba(0,0,0,0.2) 54%, rgba(0,0,0,0.86) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.65), transparent 28%, transparent 72%, rgba(0,0,0,0.75));
}

.figure-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.shadow-figure {
  position: absolute;
  left: 50%;
  top: 49%;
  width: min(30vw, 320px);
  height: min(72vh, 620px);
  transform: translate(-50%, -50%);
  filter: blur(1.5px);
  opacity: 0.98;
}

.shadow-figure::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4%;
  width: 34%;
  height: 18%;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(12,12,12,0.98), rgba(0,0,0,1) 72%);
  box-shadow:
    0 0 60px rgba(0,0,0,0.74),
    0 18px 42px rgba(0,0,0,0.46);
}

.shadow-figure::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  width: 62%;
  height: 70%;
  transform: translateX(-50%);
  border-radius: 46% 46% 28% 28%;
  background:
    radial-gradient(circle at 50% 18%, rgba(18,18,18,0.98), rgba(0,0,0,1) 60%);
  box-shadow:
    0 0 64px rgba(0,0,0,0.60),
    0 28px 110px rgba(0,0,0,0.54);
}

.eye {
  position: absolute;
  top: calc(35% - 15.2vh);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,110,110,1) 0%, rgba(255,60,60,0.96) 32%, rgba(255,40,40,0.18) 68%, transparent 100%);
  box-shadow:
    0 0 12px rgba(255,40,40,0.95),
    0 0 28px rgba(255,40,40,0.70),
    0 0 54px rgba(255,40,40,0.28);
  animation: eyePulse 2.4s ease-in-out infinite;
}

.eye.left {
  left: calc(50% - 18px);
}

.eye.right {
  left: calc(50% + 4px);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 40px));
  padding: 36px 20px 48px;
  text-align: center;
}

.hero-kicker {
  margin-bottom: 12px;
  color: #9bdcc1;
  font-size: 12px;
  letter-spacing: 4px;
}

.title-frame-wrap {
  position: relative;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto 8px;
  padding: 10px 0;
}

.title-side-beam {
  position: absolute;
  top: 50%;
  width: 96px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(255,70,70,0) 0%,
    rgba(255,70,70,0.85) 35%,
    rgba(255,70,70,1) 50%,
    rgba(255,70,70,0.85) 65%,
    rgba(255,70,70,0) 100%
  );
  box-shadow:
    0 0 10px rgba(255,70,70,0.9),
    0 0 24px rgba(255,70,70,0.45),
    0 0 60px rgba(255,70,70,0.16);
  animation: beamPulseOut 2.8s ease-in-out infinite;
}

.title-side-beam.left {
  right: 100%;
  margin-right: -105px;
  transform-origin: right center;
}

.title-side-beam.right {
  left: 100%;
  margin-left: -105px;
  transform-origin: left center;
}

.title-side-beam::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255,110,110,1) 0%, rgba(255,70,70,0.72) 45%, rgba(255,70,70,0) 100%);
  box-shadow: 0 0 10px rgba(255,70,70,0.75), 0 0 20px rgba(255,70,70,0.28);
  opacity: 0.85;
}

.title-side-beam.left::before {
  left: -2px;
}

.title-side-beam.right::before {
  right: -2px;
}

.title-frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 84, 84, 0.55);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.78), rgba(0,0,0,0.42)),
    linear-gradient(90deg, rgba(255,70,70,0.11), rgba(255,255,255,0.02) 48%, rgba(255,70,70,0.11));
  box-shadow:
    0 0 18px rgba(255,60,60,0.22),
    0 0 44px rgba(255,60,60,0.10),
    inset 0 0 20px rgba(255,255,255,0.02);
  animation: frameFlicker 4.4s ease-in-out infinite;
}

.title-frame::before,
.title-frame::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(255,90,90,1);
  box-shadow: 0 0 12px rgba(255,90,90,0.95);
}

.title-frame::before {
  left: -12px;
}

.title-frame::after {
  right: -12px;
}

.title-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}

.title-corner::before,
.title-corner::after {
  content: "";
  position: absolute;
  background: rgba(255,95,95,1);
  box-shadow:
    0 0 10px rgba(255,95,95,0.90),
    0 0 20px rgba(255,95,95,0.30);
}

.title-corner.tl { top: -3px; left: -3px; }
.title-corner.tr { top: -3px; right: -3px; }
.title-corner.bl { bottom: -3px; left: -3px; }
.title-corner.br { bottom: -3px; right: -3px; }

.title-corner.tl::before,
.title-corner.bl::before {
  left: 0;
  top: 0;
  width: 2px;
  height: 21px;
}
.title-corner.tl::after,
.title-corner.tr::after {
  left: 0;
  top: 0;
  width: 21px;
  height: 2px;
}
.title-corner.tr::before,
.title-corner.br::before {
  right: 0;
  top: 0;
  width: 2px;
  height: 21px;
}
.title-corner.bl::after,
.title-corner.br::after {
  left: 0;
  bottom: 0;
  width: 21px;
  height: 2px;
}

.title-frame-inner {
  position: relative;
  padding: 12px 54px 10px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005)),
    rgba(0,0,0,0.22);
}

.title-frame-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 3px,
      transparent 6px
    );
  opacity: 0.22;
  pointer-events: none;
}

.title-frame-inner::after {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: translateX(-55%);
  animation: titleSweep 5.2s ease-in-out infinite;
  pointer-events: none;
}

.title-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.title-noise-a {
  background:
    linear-gradient(90deg, transparent 0%, rgba(20,255,154,0.10) 18%, transparent 26%, rgba(255,70,70,0.10) 76%, transparent 84%),
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 14px,
      rgba(255,255,255,0.035) 15px,
      transparent 17px
    );
  opacity: 0.36;
  animation: noiseShiftA 4.8s ease-in-out infinite;
}

.title-noise-b {
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 42%, transparent 52%),
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 26px,
      rgba(255,255,255,0.025) 27px,
      transparent 29px
    );
  opacity: 0.18;
  animation: noiseShiftB 6.2s ease-in-out infinite;
}

.hero-title {
  position: relative;
  z-index: 2;
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.08em;
  line-height: 0.88;
  font-size: clamp(28px, 4.8vw, 58px);
  letter-spacing: 0px;
  text-transform: uppercase;
  font-weight: 900;
  max-width: 100%;
}

.title-word {
  position: relative;
  display: inline-block;
}

.title-main,
.title-glitch {
  display: block;
}

.title-main {
  position: relative;
  z-index: 2;
}

.title-glitch {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.7;
  pointer-events: none;
}

.title-glitch-a {
  clip-path: inset(0 0 56% 0);
  transform: translate(-1px, -1px);
}

.title-glitch-b {
  clip-path: inset(56% 0 0 0);
  transform: translate(1.5px, 1px);
}

.title-green-word .title-main {
  color: #85ffb9;
  text-shadow:
    0 0 2px rgba(20,255,154,0.95),
    0 0 6px rgba(20,255,154,0.78),
    0 0 14px rgba(20,255,154,0.46),
    0 0 30px rgba(20,255,154,0.12);
  animation: greenMainFlicker 3.4s ease-in-out infinite;
}

.title-green-word .title-glitch-a {
  color: rgba(130,255,195,0.96);
  text-shadow: 0 0 8px rgba(20,255,154,0.20);
  animation: glitchJumpA 2.8s steps(1, end) infinite;
}

.title-green-word .title-glitch-b {
  color: rgba(70,255,180,0.82);
  text-shadow: 0 0 8px rgba(20,255,154,0.14);
  animation: glitchJumpB 3.1s steps(1, end) infinite;
}

.title-white-word .title-main {
  color: #fbfbfb;
  text-shadow:
    0 0 3px rgba(255,255,255,0.16),
    0 0 8px rgba(255,255,255,0.08);
}

.title-white-word .title-glitch-a,
.title-white-word .title-glitch-b {
  color: rgba(255,255,255,0.20);
  animation: whiteJitter 4.5s steps(1, end) infinite;
}

.title-red-word .title-main {
  color: #ff6a6a;
  text-shadow:
    0 0 2px rgba(255,84,84,0.95),
    0 0 6px rgba(255,84,84,0.80),
    0 0 14px rgba(255,84,84,0.48),
    0 0 30px rgba(255,84,84,0.14);
  animation: redMainFlicker 3.8s ease-in-out infinite;
}

.title-red-word .title-glitch-a {
  color: rgba(255,130,130,0.92);
  text-shadow: 0 0 8px rgba(255,84,84,0.22);
  animation: glitchJumpA 2.9s steps(1, end) infinite reverse;
}

.title-red-word .title-glitch-b {
  color: rgba(255,80,80,0.76);
  text-shadow: 0 0 8px rgba(255,84,84,0.18);
  animation: glitchJumpB 3.2s steps(1, end) infinite reverse;
}

.title-word-til {
  margin: 0 0.02em;
}

.hero-kicker-under {
  margin-top: 8px;
  margin-bottom: 18px;
  color: #93eec4;
  text-shadow: 0 0 12px rgba(20,255,154,0.14);
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.play-button {
  position: relative;
  min-width: 320px;
  padding: 18px 28px;
  border: 1px solid rgba(115,255,177,0.48);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(20,255,154,0.22), rgba(20,255,154,0.06)),
    rgba(7, 14, 10, 0.96);
  color: #ecfff4;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 0 22px rgba(20,255,154,0.12),
    0 0 54px rgba(20,255,154,0.06),
    inset 0 0 18px rgba(255,255,255,0.02);
  animation: playPulse 3.4s ease-in-out infinite;
}

.play-button:hover {
  transform: translateY(-1px) scale(1.01);
}

.play-label {
  position: relative;
  z-index: 2;
}

.play-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 50% 50%, rgba(20,255,154,0.22), transparent 42%);
  filter: blur(18px);
  opacity: 0.8;
  animation: playGlowSweep 4s ease-in-out infinite;
}

.hero-auth-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.auth-button {
  min-width: 140px;
  padding: 11px 18px;
  border: 1px solid rgba(115,255,177,0.28);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    rgba(0,0,0,0.42);
  color: #d9fff0;
  font-size: 14px;
  letter-spacing: 1.6px;
  cursor: pointer;
  box-shadow: inset 0 0 14px rgba(255,255,255,0.02);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-button:hover {
  transform: translateY(-1px);
  border-color: rgba(115,255,177,0.5);
  box-shadow:
    0 0 18px rgba(20,255,154,0.10),
    inset 0 0 16px rgba(255,255,255,0.02);
}

.launcher-status {
  margin-top: 14px;
  color: #aee6ca;
  font-size: 12px;
  letter-spacing: 2px;
  min-height: 18px;
}

.creator-credit {
  margin-top: 26px;
  color: #d8d8d8;
  font-size: 15px;
  letter-spacing: 1px;
}

.content {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.panel {
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 0 20px rgba(0,0,0,0.14);
}

.panel h2 {
  margin: 0 0 14px;
  color: #9ee4c8;
  letter-spacing: 2px;
  font-size: 22px;
}

.section-title-center {
  text-align: center;
}

.panel p {
  margin: 0 0 10px;
  color: #d5ddd8;
  line-height: 1.7;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.how-card {
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  background: rgba(0,0,0,0.3);
}

.how-card h3 {
  margin: 0 0 10px;
  color: var(--green);
  letter-spacing: 1px;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  color: #cdd6d1;
}

@keyframes gridDriftSlow {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 64px, 64px 0; }
}

@keyframes gridDriftFast {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 42px, 42px 0; }
}

@keyframes gridShimmer {
  0%, 100% {
    transform: translateX(-42%);
    opacity: 0.25;
  }
  45% {
    opacity: 0.62;
  }
  50% {
    transform: translateX(42%);
    opacity: 0.78;
  }
  55% {
    opacity: 0.5;
  }
}

@keyframes fogMoveA {
  0% { transform: translate3d(-3%, 0, 0) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

@keyframes fogMoveB {
  0% { transform: translate3d(2%, -2%, 0) scale(1.02); }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.12); }
}

@keyframes fogMoveC {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(3%, -3%, 0) scale(1.08); }
}

@keyframes beamPulseOut {
  0%, 100% {
    opacity: 0.45;
    filter: brightness(0.92);
  }
  50% {
    opacity: 1;
    filter: brightness(1.2);
  }
}

@keyframes frameFlicker {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(255,60,60,0.22),
      0 0 44px rgba(255,60,60,0.10),
      inset 0 0 20px rgba(255,255,255,0.02);
  }
  48% {
    box-shadow:
      0 0 26px rgba(255,60,60,0.26),
      0 0 58px rgba(255,60,60,0.14),
      inset 0 0 20px rgba(255,255,255,0.03);
  }
  50% {
    box-shadow:
      0 0 14px rgba(255,60,60,0.12),
      0 0 28px rgba(255,60,60,0.06),
      inset 0 0 14px rgba(255,255,255,0.01);
  }
  52% {
    box-shadow:
      0 0 28px rgba(255,60,60,0.28),
      0 0 62px rgba(255,60,60,0.15),
      inset 0 0 20px rgba(255,255,255,0.03);
  }
}

@keyframes titleSweep {
  0%, 100% {
    transform: translateX(-55%);
    opacity: 0;
  }
  14% {
    opacity: 0.72;
  }
  45% {
    transform: translateX(55%);
    opacity: 0.64;
  }
  60% {
    opacity: 0;
  }
}

@keyframes greenMainFlicker {
  0%, 100% { opacity: 1; }
  47% { opacity: 1; }
  48% { opacity: 0.90; }
  49% { opacity: 1; }
  50% { opacity: 0.95; }
  51% { opacity: 1; }
}

@keyframes redMainFlicker {
  0%, 100% { opacity: 1; }
  24% { opacity: 0.94; }
  25% { opacity: 1; }
  74% { opacity: 0.90; }
  75% { opacity: 1; }
}

@keyframes glitchJumpA {
  0%, 100% { transform: translate(-1px, -1px); opacity: 0.0; }
  6% { opacity: 0.0; }
  7% { transform: translate(-5px, -1px); opacity: 0.9; }
  8% { transform: translate(2px, 0); opacity: 0.45; }
  9% { transform: translate(-1px, -1px); opacity: 0.0; }
  58% { opacity: 0.0; }
  59% { transform: translate(4px, -1px); opacity: 0.7; }
  60% { transform: translate(-2px, 1px); opacity: 0.36; }
  61% { transform: translate(-1px, -1px); opacity: 0.0; }
}

@keyframes glitchJumpB {
  0%, 100% { transform: translate(1.5px, 1px); opacity: 0.0; }
  16% { opacity: 0.0; }
  17% { transform: translate(4px, 1px); opacity: 0.7; }
  18% { transform: translate(-1px, -1px); opacity: 0.32; }
  19% { transform: translate(1.5px, 1px); opacity: 0.0; }
  71% { opacity: 0.0; }
  72% { transform: translate(-4px, 1px); opacity: 0.8; }
  73% { transform: translate(2px, -1px); opacity: 0.38; }
  74% { transform: translate(1.5px, 1px); opacity: 0.0; }
}

@keyframes whiteJitter {
  0%, 100% { transform: translate(0,0); opacity: 0.0; }
  28% { opacity: 0.0; }
  29% { transform: translate(-1px, 0); opacity: 0.24; }
  30% { transform: translate(1px, 0); opacity: 0.08; }
  31% { transform: translate(0,0); opacity: 0.0; }
}

@keyframes noiseShiftA {
  0%, 100% { transform: translateX(0); opacity: 0.26; }
  50% { transform: translateX(1.2%); opacity: 0.40; }
}

@keyframes noiseShiftB {
  0%, 100% { transform: translateX(0); opacity: 0.14; }
  50% { transform: translateX(-1.2%); opacity: 0.24; }
}

@keyframes playPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 22px rgba(20,255,154,0.12),
      0 0 54px rgba(20,255,154,0.06),
      inset 0 0 18px rgba(255,255,255,0.02);
  }
  50% {
    transform: scale(1.045);
    box-shadow:
      0 0 34px rgba(20,255,154,0.22),
      0 0 70px rgba(20,255,154,0.12),
      inset 0 0 20px rgba(255,255,255,0.03);
  }
}

@keyframes playGlowSweep {
  0%, 100% { transform: translateX(-5%) scale(0.95); opacity: 0.65; }
  50% { transform: translateX(5%) scale(1.08); opacity: 0.95; }
}

@keyframes eyePulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.22); opacity: 1; }
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
  }

    .title-frame-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .title-side-beam {
    width: 56px;
  }

  .title-side-beam.left {
    margin-right: 8px;
  }

  .title-side-beam.right {
    margin-left: 8px;
  }

    .title-frame-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .shadow-figure {
    width: min(40vw, 260px);
    height: min(70vh, 560px);
  }

  .eye {
    top: calc(49% - 13.8vh);
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-top: 86px;
  }

  .play-button {
    min-width: 240px;
    padding: 16px 22px;
  }

  .title-frame-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .title-side-beam {
    display: none;
  }

  .title-frame::before,
  .title-frame::after {
    display: none;
  }

    .hero-title {
    font-size: clamp(24px, 7.2vw, 40px);
    letter-spacing: 0px;
    gap: 0.06em;
  }

  .hero-auth-actions {
    gap: 10px;
  }

  .auth-button {
    min-width: 120px;
  }

  .eye {
    width: 14px;
    height: 14px;
    top: calc(49% - 13vh);
  }
}


.chat-log {
  height: 220px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}


/* LOBBY INTEL / AAA NEWS-TIPS WINDOW */
.lobby-intel-panel {
  margin-top: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(10,18,14,0.92), rgba(4,8,7,0.96)),
    rgba(0,0,0,0.5);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 0 24px rgba(0,0,0,0.26),
    0 0 40px rgba(20,255,154,0.04);
  overflow: hidden;
}

.lobby-intel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(90deg, rgba(20,255,154,0.08), rgba(255,255,255,0.02) 35%, rgba(255,84,84,0.06));
}

.lobby-intel-kicker {
  color: rgba(150, 238, 196, 0.72);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.lobby-intel-title {
  margin: 0;
  color: #f2fff8;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lobby-intel-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(115,255,177,0.18);
  background: rgba(255,255,255,0.04);
  color: #d8ffeb;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lobby-intel-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #73ffb1;
  box-shadow: 0 0 10px rgba(115,255,177,0.8);
  animation: lobbyIntelPulse 1.8s ease-in-out infinite;
}

.lobby-intel-frame {
  position: relative;
  min-height: 250px;
  padding: 18px;
  overflow: hidden;
}

.lobby-intel-scan {
  position: absolute;
  inset: -10% 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(115,255,177,0.00) 35%,
    rgba(115,255,177,0.10) 50%,
    rgba(115,255,177,0.00) 65%,
    transparent 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: lobbyIntelScan 5.6s linear infinite;
}

.lobby-intel-rotator {
  position: relative;
  min-height: 188px;
}

.lobby-tip-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(115,255,177,0.06), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    rgba(0,0,0,0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 0 18px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(16px) scale(0.988);
  filter: blur(8px);
  animation: lobbyIntelRotate 36s infinite;
}

.lobby-tip-card:nth-child(1) { animation-delay: 0s; }
.lobby-tip-card:nth-child(2) { animation-delay: 6s; }
.lobby-tip-card:nth-child(3) { animation-delay: 12s; }
.lobby-tip-card:nth-child(4) { animation-delay: 18s; }
.lobby-tip-card:nth-child(5) { animation-delay: 24s; }
.lobby-tip-card:nth-child(6) { animation-delay: 30s; }

.lobby-tip-tag {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(115,255,177,0.18);
  background: rgba(115,255,177,0.08);
  color: #aef0cb;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lobby-tip-card h4 {
  margin: 0;
  color: #ffffff;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
}

.lobby-tip-card p {
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  font-size: 0.98rem;
}

.lobby-intel-footer {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lobby-intel-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(115,255,177,0.0), rgba(115,255,177,0.5), rgba(255,255,255,0.08));
}

.lobby-intel-caption {
  color: rgba(200,215,206,0.72);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.players-list {
  list-style: none;
  padding-left: 0;
}

.lobby-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.lobby-player-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lobby-player-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 10px rgba(255,255,255,0.22);
}

.lobby-player-dot.ready {
  background: #45ff9c;
  box-shadow: 0 0 12px rgba(69,255,156,0.55);
}

.lobby-player-dot.not-ready {
  background: #ff4f4f;
  box-shadow: 0 0 12px rgba(255,79,79,0.45);
}

.lobby-player-name {
  color: #fff;
  word-break: break-word;
}

.lobby-player-status {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lobby-player-status.ready {
  color: #baffd8;
  background: rgba(69,255,156,0.14);
  border-color: rgba(69,255,156,0.32);
}

.lobby-player-status.not-ready {
  color: #ffd2d2;
  background: rgba(255,79,79,0.14);
  border-color: rgba(255,79,79,0.28);
}

#toggleReadyBtn.ready {
  background: rgba(69,255,156,0.14);
  border-color: rgba(69,255,156,0.38);
  color: #c9ffe2;
}

.terminal-window {
  position: relative;
  width: 100%;
  margin: 0 0 16px 0;
  min-height: 240px;
  max-height: min(360px, 42vh);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(115,255,177,0.18);
  background: linear-gradient(180deg, rgba(8, 19, 16, 0.46), rgba(4, 10, 8, 0.56));
  box-shadow:
    0 14px 30px rgba(0,0,0,0.26),
    0 0 24px rgba(115,255,177,0.08);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transform-origin: top center;
}

.terminal-window:not(.hidden) {
  animation: terminalDropIn 160ms ease;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(115,255,177,0.12);
  background: linear-gradient(180deg, rgba(18,34,28,0.52), rgba(8,16,13,0.44));
  user-select: none;
}

.terminal-title,
.terminal-status,
.terminal-prompt,
.terminal-output,
.terminal-input {
  font-family: Consolas, Monaco, "Courier New", monospace;
}

@keyframes terminalCursorBlink {
  0%, 46% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes terminalDropIn {
  0% {
    opacity: 0;
    transform: translateY(-18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.terminal-title {
  color: #d6ffeb;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-status {
  color: #8effbe;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terminal-output {
  flex: 1 1 auto;
  min-height: 180px;
  max-height: 320px;
  padding: 16px 18px;
  color: #baffd8;
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-y: auto;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  user-select: text;
  cursor: text;
  background:
    linear-gradient(180deg, rgba(6,12,10,0.28), rgba(2,4,3,0.40));
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(115,255,177,0.10);
  background: rgba(5, 10, 8, 0.42);
}

.terminal-prompt {
  color: #8effbe;
  flex: 0 0 auto;
}

.terminal-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #f3fff8;
  font-size: 0.88rem;
  caret-color: #8effbe;
  user-select: text;
}

.terminal-input::placeholder {
  color: rgba(186,255,216,0.42);
}

@keyframes lobbyIntelPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes lobbyIntelScan {
  0% { transform: translateY(-58%); opacity: 0; }
  15% { opacity: 0.55; }
  50% { opacity: 0.38; }
  85% { opacity: 0.55; }
  100% { transform: translateY(58%); opacity: 0; }
}

@keyframes lobbyIntelRotate {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.988);
    filter: blur(8px);
  }
  3%,
  14% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  16.66%,
  100% {
    opacity: 0;
    transform: translateY(-12px) scale(1.01);
    filter: blur(8px);
  }
}

@media (max-width: 900px) {
  .lobby-intel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .lobby-intel-frame {
    min-height: 320px;
  }

  .lobby-intel-rotator {
    min-height: 246px;
  }

  .lobby-tip-card h4 {
    font-size: 1.08rem;
  }

  .lobby-tip-card p {
    font-size: 0.94rem;
  }

  .lobby-intel-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .lobby-intel-caption {
    white-space: normal;
  }
}

/* STS UI FIXES */
textarea {
  resize: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-log,
.mono-block,
.readout-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
}
