* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #2b0d3a;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
}

#game-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #2b0d3a;
}

#gameCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Top HUD */
#hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 10;
}

#hud-left {
  display: flex;
  align-items: center;
  pointer-events: auto;
}

#hearts-container {
  display: flex;
  gap: 12px;
  align-items: center;
}

.heart-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.85));
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.heart-icon.lost {
  opacity: 0.15;
  transform: scale(0.65) translateY(4px);
  filter: grayscale(1);
}

/* --- LEFT-EDGE SEMICIRCLE DECAY TIMER --- */
.decay-meter-container {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 190px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  z-index: 12;
  transition: opacity 0.35s ease, filter 0.35s ease;
  filter: drop-shadow(6px 0 20px rgba(0, 0, 0, 0.75));
}

.decay-meter-container.hidden {
  display: none !important;
}

.decay-meter-container.warning-phase {
  animation: decayEdgePulse 0.45s infinite alternate ease-in-out;
}

#decay-gauge-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.decay-meter-container .hidden {
  display: none !important;
}

@keyframes decayEdgePulse {
  0% { transform: translateY(-50%) scale(1); filter: drop-shadow(6px 0 14px rgba(255, 0, 85, 0.5)); }
  100% { transform: translateY(-50%) scale(1.03); filter: drop-shadow(8px 0 24px rgba(255, 0, 85, 0.85)); }
}

@media (max-height: 600px) {
  .decay-meter-container {
    width: 130px;
    height: 250px;
  }
}

@media (max-width: 600px) {
  .decay-meter-container {
    width: 120px;
    height: 230px;
  }
}

/* --- DECAY DEMOTION VOID OVERLAY (GLITCH + BLACKOUT) --- */
.decay-demote-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 20000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow: hidden;
}

.decay-demote-overlay.hidden {
  display: none !important;
}

.decay-demote-overlay.glitch-active {
  display: block !important;
  opacity: 1;
  pointer-events: auto;
  background: rgba(10, 0, 15, 0.45);
  animation: decayScreenGlitch 0.12s infinite alternate;
}

.decay-glitch-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.3) 0px,
    rgba(0, 0, 0, 0.3) 2px,
    rgba(255, 0, 85, 0.2) 3px,
    rgba(0, 243, 255, 0.2) 4px
  );
  opacity: 0;
  pointer-events: none;
}

.decay-demote-overlay.glitch-active .decay-glitch-layer {
  opacity: 1;
  animation: scanlinesFlicker 0.08s steps(2) infinite;
}

@keyframes decayScreenGlitch {
  0% { transform: translate(0, 0) skewX(0deg); filter: contrast(140%) brightness(120%); }
  25% { transform: translate(-5px, 2px) skewX(1deg); filter: contrast(180%) hue-rotate(90deg); }
  50% { transform: translate(4px, -3px) skewX(-2deg); filter: invert(25%) saturate(220%); }
  75% { transform: translate(-3px, -2px) skewX(0.8deg); }
  100% { transform: translate(5px, 3px) skewX(-1deg); filter: contrast(200%) brightness(160%); }
}

@keyframes scanlinesFlicker {
  0% { background-position: 0 0; }
  100% { background-position: 0 10px; }
}

.decay-demote-overlay.blackout {
  display: block !important;
  background: #000000 !important;
  opacity: 1 !important;
  pointer-events: auto;
  transition: opacity 0.45s ease;
  animation: none !important;
}

.decay-demote-overlay.fade-out {
  display: block !important;
  background: #000000 !important;
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.65s ease-out;
  animation: none !important;
}

#hud-right {
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}

#key-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(254, 206, 44, 0.2);
  border: 2px solid rgba(254, 206, 44, 0.7);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 16px rgba(254, 206, 44, 0.5);
  animation: keyPulse 1.2s ease-in-out infinite alternate;
}

#key-badge.hidden {
  display: none;
}

#key-icon {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px #fece2c);
}

@keyframes keyPulse {
  0% { transform: translateY(-2px) scale(1); }
  100% { transform: translateY(2px) scale(1.1); }
}

#depth-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

#depth-badge .label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
}

#depth-val {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.hud-buttons {
  display: flex;
  gap: 8px;
}

.hud-buttons button {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.hud-buttons button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Overlays */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.overlay-card {
  background: linear-gradient(145deg, rgba(30, 16, 50, 0.9) 0%, rgba(12, 6, 22, 0.96) 100%);
  border: 2px solid rgba(253, 33, 129, 0.45);
  border-radius: 24px;
  padding: 42px 48px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(253, 33, 129, 0.25);
  animation: cardIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardIn {
  0% { transform: scale(0.9) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.game-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 38px;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #18dedd 0%, #fece2c 50%, #fd2181 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(253, 33, 129, 0.6));
  margin-bottom: 6px;
}

.game-subtitle {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 22px;
}

.description {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.highlight-key {
  color: #fece2c;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(254, 206, 44, 0.6);
}

.highlight-gate {
  color: #18dedd;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(24, 222, 221, 0.6);
}

.controls-guide {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ctrl-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

kbd {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.cta-button {
  background: linear-gradient(135deg, #fd2181 0%, #ff529f 100%);
  color: #fff;
  border: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 18px 36px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(253, 33, 129, 0.45);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(253, 33, 129, 0.65);
}

.cta-button:active {
  transform: translateY(1px) scale(0.98);
}

/* Game Over Card */
.gameover-card {
  border-color: rgba(255, 51, 102, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 51, 102, 0.35);
}

.gameover-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 26px;
  color: #ff3366;
  text-shadow: 0 0 20px rgba(255, 51, 102, 0.8);
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin-bottom: 28px;
}

.stat-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 10px;
  flex: 1;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.stat-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  color: #fece2c;
  text-shadow: 0 0 10px rgba(254, 206, 44, 0.5);
}

/* Touch Controls */
#touch-controls {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  display: none;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 20;
}

.touch-left-side, .touch-right-side {
  display: flex;
  gap: 14px;
  pointer-events: auto;
}

.touch-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 66px;
  height: 66px;
  border-radius: 20px;
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  touch-action: none;
}

.touch-btn:active {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0.92);
}

.touch-jump-btn {
  width: 90px;
  height: 66px;
  font-size: 13px;
  background: rgba(253, 33, 129, 0.35);
  border-color: rgba(253, 33, 129, 0.7);
  box-shadow: 0 8px 24px rgba(253, 33, 129, 0.4);
}

.touch-jump-btn:active {
  background: rgba(253, 33, 129, 0.7);
}

@media (hover: none) and (pointer: coarse) {
  #touch-controls {
    display: flex;
  }
}

/* Cinematic Subtitle / Dialogue Banner */
.dialogue-banner {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  width: 580px;
  padding: 16px 28px;
  background: rgba(10, 5, 22, 0.86);
  border: 1.5px solid rgba(255, 42, 109, 0.75);
  box-shadow: 0 0 35px rgba(255, 42, 109, 0.45), inset 0 0 20px rgba(255, 42, 109, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 15;
  pointer-events: none;
  animation: dialoguePop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dialogue-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(24px);
}

.dialogue-speaker {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: #ff2a6d;
  text-shadow: 0 0 10px rgba(255, 42, 109, 0.8);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.dialogue-text {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 255, 255, 0.6);
}

@keyframes dialoguePop {
  0% { transform: translateX(-50%) translateY(30px) scale(0.92); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

/* Warning Alert Banner (Inversion & Rage announcements) */
.alert-banner {
  position: absolute;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: rgba(255, 0, 60, 0.28);
  border: 2px solid #ff0055;
  box-shadow: 0 0 30px rgba(255, 0, 85, 0.65), inset 0 0 15px rgba(255, 0, 85, 0.35);
  border-radius: 30px;
  backdrop-filter: blur(12px);
  z-index: 15;
  pointer-events: none;
  animation: alertPulse 0.8s ease-in-out infinite alternate;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.alert-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-15px);
}

.alert-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 0 12px #ff0055, 0 0 22px #ff0055;
  text-align: center;
}

@keyframes alertPulse {
  0% { transform: translateX(-50%) scale(0.97); }
  100% { transform: translateX(-50%) scale(1.03); }
}

/* Inversion Screen Glitch Effect */
.screen-invert {
  filter: hue-rotate(180deg) invert(0.15);
}

/* ==========================================================================
   INITIAL SPLASH SCREEN & ONE-TIME INTRO VIDEO (DYING LIGHT)
   ========================================================================== */

.splash-card {
  border-color: rgba(24, 222, 221, 0.4);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 40px rgba(24, 222, 221, 0.25);
  animation: splashFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splashFadeIn {
  0% { opacity: 0; transform: scale(0.92) translateY(24px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.splash-badge {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  color: #18dedd;
  background: rgba(24, 222, 221, 0.12);
  border: 1px solid rgba(24, 222, 221, 0.45);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  text-shadow: 0 0 10px rgba(24, 222, 221, 0.6);
}

.glow-title {
  filter: drop-shadow(0 0 25px rgba(24, 222, 221, 0.65)) drop-shadow(0 0 45px rgba(253, 33, 129, 0.45));
}

.splash-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 26px;
}

.splash-btn {
  background: linear-gradient(135deg, #18dedd 0%, #00b4d8 50%, #7209b7 100%);
  box-shadow: 0 8px 28px rgba(24, 222, 221, 0.45);
}

.splash-btn:hover {
  box-shadow: 0 12px 36px rgba(24, 222, 221, 0.7);
}

.splash-note {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.8px;
}

/* Fullscreen Intro Video Overlay */
.intro-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-overlay.hidden {
  display: none !important;
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Seamless pitch black fade scrim */
.intro-fade-scrim {
  position: absolute;
  inset: 0;
  background-color: #000000;
  opacity: 0;
  pointer-events: none;
  z-index: 10001;
  transition: opacity 1.2s ease-out;
}

.intro-fade-scrim.active {
  opacity: 1;
}

.intro-skip-btn {
  position: absolute;
  bottom: 32px;
  right: 32px;
  background: rgba(12, 6, 20, 0.75);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 22px;
  border-radius: 25px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10002;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-skip-btn:hover {
  background: rgba(24, 222, 221, 0.25);
  border-color: #18dedd;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(24, 222, 221, 0.6);
  transform: translateY(-2px) scale(1.05);
}

.intro-skip-btn:active {
  transform: translateY(1px) scale(0.97);
}

/* ==========================================================================
   INTERACTIVE TWO-COLUMN MENU (CHARACTER EASTER EGG & SETTINGS)
   ========================================================================== */

.interactive-menu-card {
  max-width: 820px;
  width: 92%;
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
  text-align: left;
  padding: 38px 42px;
  background: rgba(18, 9, 32, 0.82);
  border: 1.5px solid rgba(24, 222, 221, 0.35);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(24, 222, 221, 0.2);
}

/* Left Column: Character Easter Egg */
.menu-char-col {
  flex: 0 0 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dont-click-bubble {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #ff0055;
  background: rgba(255, 0, 85, 0.16);
  border: 1.5px solid #ff0055;
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(255, 0, 85, 0.45);
  animation: warningBob 1.6s ease-in-out infinite alternate;
  text-align: center;
  white-space: nowrap;
}

@keyframes warningBob {
  0% { transform: translateY(-3px); }
  100% { transform: translateY(3px); }
}

.interactive-char-box {
  width: 175px;
  height: 205px;
  background: radial-gradient(circle at 50% 65%, rgba(24, 222, 221, 0.15) 0%, rgba(0, 0, 0, 0.55) 75%);
  border: 1.5px solid rgba(24, 222, 221, 0.4);
  border-radius: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  overflow: visible;
}

.interactive-char-box:hover {
  border-color: #ff0055;
  box-shadow: 0 0 30px rgba(255, 0, 85, 0.55);
  transform: translateY(-4px) scale(1.03);
}

.interactive-char-box:hover + .char-status-tag {
  color: #ff0055;
}

#menu-char-canvas {
  width: 140px;
  height: 175px;
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 12px rgba(24, 222, 221, 0.8));
}

.char-pedestal {
  position: absolute;
  bottom: 12px;
  width: 110px;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(24, 222, 221, 0.5) 0%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
}

.char-reaction-text {
  position: absolute;
  top: -38px;
  background: #110722;
  border: 1.5px solid #18dedd;
  color: #18dedd;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  box-shadow: 0 0 14px rgba(24, 222, 221, 0.5);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  z-index: 10;
}

@keyframes popIn {
  0% { transform: scale(0.6) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.char-status-tag {
  margin-top: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease;
}

/* Right Column: Menu Content */
.menu-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-badge-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: #18dedd;
  background: rgba(24, 222, 221, 0.12);
  border: 1px solid rgba(24, 222, 221, 0.4);
  padding: 5px 12px;
  border-radius: 16px;
  margin-bottom: 12px;
}

.menu-actions {
  display: flex;
  gap: 14px;
  margin: 18px 0;
}

.menu-play-btn {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
}

.btn-main-text {
  font-size: 15px;
  letter-spacing: 2px;
}

.btn-sub-label {
  font-size: 9px;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-top: 4px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.menu-secondary-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  padding: 16px 18px;
  backdrop-filter: blur(8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-secondary-btn:hover {
  background: rgba(24, 222, 221, 0.2);
  border-color: #18dedd;
  color: #18dedd;
  box-shadow: 0 0 20px rgba(24, 222, 221, 0.45);
  transform: translateY(-2px);
}

.mini-controls {
  margin-bottom: 0;
  padding: 12px 16px;
}

/* ==========================================================================
   SETTINGS MODAL
   ========================================================================== */

.settings-card {
  max-width: 480px;
  width: 90%;
  padding: 32px 36px;
  text-align: left;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.settings-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  letter-spacing: 2px;
  color: #18dedd;
  text-shadow: 0 0 12px rgba(24, 222, 221, 0.6);
}

.settings-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.settings-close-btn:hover {
  color: #ff0055;
  transform: scale(1.15);
}

.settings-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 26px;
}

.setting-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setting-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: #fff;
}

.setting-val {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #fece2c;
}

.setting-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.cyber-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  transition: background 0.2s;
}

.cyber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #18dedd;
  box-shadow: 0 0 10px #18dedd;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.cyber-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.cyber-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  align-self: flex-end;
  margin-top: -24px;
}

.cyber-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .toggle-slider {
  background-color: #18dedd;
  box-shadow: 0 0 12px rgba(24, 222, 221, 0.6);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
  background-color: #0b0217;
}

.settings-done-btn {
  background: linear-gradient(135deg, #18dedd 0%, #00b4d8 100%);
  color: #05010a;
  font-weight: 900;
  box-shadow: 0 6px 20px rgba(24, 222, 221, 0.4);
}

/* ==========================================================================
   JUMPSCARE CURSOR EATER (MOTOR SLICE EASTER EGG)
   ========================================================================== */

body.cursor-eaten,
body.cursor-eaten * {
  cursor: none !important;
}

.cursor-eater-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(30, 2, 15, 0.92) 0%, rgba(5, 0, 8, 0.98) 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.cursor-eater-overlay.hidden {
  display: none !important;
}

.monster-jaw {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: monsterRage 0.12s infinite alternate;
}

@keyframes monsterRage {
  0% { transform: scale(1) translate(-2px, -2px); }
  100% { transform: scale(1.04) translate(3px, 2px); }
}

.monster-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monster-emoji {
  font-size: 110px;
  line-height: 1;
  filter: drop-shadow(0 0 35px #ff0044) drop-shadow(0 0 65px #ff0055);
  animation: emojiPound 0.25s infinite alternate;
}

@keyframes emojiPound {
  0% { transform: scale(0.95); }
  100% { transform: scale(1.15) rotate(-3deg); }
}

.monster-teeth {
  display: flex;
  gap: 10px;
  z-index: 2;
}

.upper-teeth {
  margin-top: -15px;
  animation: upperBite 0.22s ease-in-out infinite alternate;
}

.lower-teeth {
  margin-bottom: -15px;
  animation: lowerBite 0.22s ease-in-out infinite alternate;
}

@keyframes upperBite {
  0% { transform: translateY(0); }
  100% { transform: translateY(22px); }
}

@keyframes lowerBite {
  0% { transform: translateY(0); }
  100% { transform: translateY(-22px); }
}

.fang {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 32px solid #ffffff;
  filter: drop-shadow(0 0 10px #ff0055);
}

.lower-teeth .fang {
  border-top: none;
  border-bottom: 32px solid #ffffff;
}

.trapped-cursor {
  position: relative;
  margin: 12px 0;
  animation: cursorPanic 0.08s infinite alternate;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes cursorPanic {
  0% { transform: rotate(-15deg) scale(1.1); }
  100% { transform: rotate(15deg) scale(0.85); }
}

.cursor-scream {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #fece2c;
  background: rgba(0, 0, 0, 0.75);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #fece2c;
  text-shadow: 0 0 8px #fece2c;
  white-space: nowrap;
}

.eater-banner {
  font-family: 'Press Start 2P', monospace;
  font-size: 24px;
  letter-spacing: 2px;
  color: #ff0055;
  text-shadow: 0 0 20px #ff0055, 0 0 40px #ff0044;
  margin-top: 32px;
  text-align: center;
  animation: warningFlicker 0.2s infinite alternate;
}

@keyframes warningFlicker {
  0% { opacity: 0.85; }
  100% { opacity: 1; transform: scale(1.03); }
}

.eater-sub {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #fece2c;
  margin-top: 12px;
  text-align: center;
  text-shadow: 0 0 10px rgba(254, 206, 44, 0.6);
}

/* Responsive adjustment for interactive menu */
@media (max-width: 768px) {
  .interactive-menu-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    gap: 20px;
    max-height: 85vh;
    overflow-y: auto;
  }

  .menu-badge-tag {
    align-self: center;
  }
  .menu-actions {
    flex-direction: column;
    width: 100%;
  }
}
