/* ========================================================
   FUTURE FUNK // NEO-LOGIC ODYSSEY
   Retro-Futuristic Synthwave & City-Pop Aesthetic
   ======================================================== */

:root {
  --neon-pink: #ff2a85;
  --neon-pink-glow: rgba(255, 42, 133, 0.6);
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.6);
  --neon-purple: #9b51e0;
  --neon-yellow: #ffe600;
  --neon-mint: #05ffa1;
  --neon-orange: #ff6b4a;
  --dark-bg: #090214;
  --dark-panel: rgba(18, 5, 34, 0.85);
  --dark-panel-hover: rgba(28, 8, 52, 0.95);
  --glass-border: rgba(255, 42, 133, 0.35);
  --font-display: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  background-color: var(--dark-bg);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* --- SYNTHWAVE PERSPECTIVE BACKGROUND & SUN --- */
.bg-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% 25%, #3d0c4e 0%, #170428 50%, #080112 100%);
}

.synth-sun {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe600 0%, #ff2a85 70%, #7928ca 100%);
  box-shadow: 0 0 60px rgba(255, 42, 133, 0.8), 0 0 120px rgba(255, 230, 0, 0.5);
  mask-image: linear-gradient(to bottom, 
    black 0%, black 50%, 
    transparent 50%, transparent 52%,
    black 52%, black 62%,
    transparent 62%, transparent 65%,
    black 65%, black 76%,
    transparent 76%, transparent 80%,
    black 80%, black 90%,
    transparent 90%, transparent 95%,
    black 95%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, 
    black 0%, black 50%, 
    transparent 50%, transparent 52%,
    black 52%, black 62%,
    transparent 62%, transparent 65%,
    black 65%, black 76%,
    transparent 76%, transparent 80%,
    black 80%, black 90%,
    transparent 90%, transparent 95%,
    black 95%, black 100%);
}

.city-skyline {
  position: absolute;
  bottom: 28%;
  left: 0;
  width: 100%;
  height: 140px;
  background-image: 
    linear-gradient(to top, rgba(9, 2, 20, 0.95), transparent),
    radial-gradient(2px 2px at 20px 30px, #00f0ff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #ff2a85, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 90px 40px, #ffe600, rgba(0,0,0,0));
  background-repeat: repeat-x;
  opacity: 0.8;
}

.city-silhouette {
  position: absolute;
  bottom: 26%;
  left: 0;
  width: 100%;
  height: 90px;
  background-repeat: repeat-x;
  background-size: 320px 90px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 90"><polygon points="0,90 0,40 15,40 15,30 20,30 20,40 35,40 35,90 40,90 40,15 50,15 50,5 55,5 55,15 65,15 65,90 70,90 70,55 95,55 95,90 100,90 100,25 110,25 115,10 120,25 130,25 130,90 135,90 135,50 160,50 160,90 165,90 165,20 185,20 185,90 190,90 190,65 210,65 210,90 220,90 220,35 240,35 240,90 250,90 250,10 265,10 270,0 275,10 290,10 290,90 300,90 300,45 320,45 320,90" fill="%230d0221" opacity="0.95"/></svg>');
}

.wireframe-grid {
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 32%;
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(0, 240, 255, 0.4) 25%, rgba(0, 240, 255, 0.4) 26%, transparent 27%, transparent 74%, rgba(0, 240, 255, 0.4) 75%, rgba(0, 240, 255, 0.4) 76%, transparent 77%),
    linear-gradient(90deg, transparent 24%, rgba(255, 42, 133, 0.4) 25%, rgba(255, 42, 133, 0.4) 26%, transparent 27%, transparent 74%, rgba(255, 42, 133, 0.4) 75%, rgba(255, 42, 133, 0.4) 76%, transparent 77%);
  background-size: 60px 60px;
  transform: perspective(300px) rotateX(65deg);
  animation: gridMove 2.2s linear infinite;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 60px; }
}

/* CRT Scanlines overlay */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.scanlines.disabled {
  opacity: 0;
}

/* --- HEADER HUD --- */
.retro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(13, 2, 33, 0.85);
  border-bottom: 2px solid var(--neon-pink);
  box-shadow: 0 4px 20px rgba(255, 42, 133, 0.35);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 2px;
  padding: 4px 8px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
  border-radius: 4px;
  color: #fff;
  text-shadow: 0 0 6px rgba(0,0,0,0.5);
  box-shadow: 0 0 10px var(--neon-pink-glow);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #ffffff 0%, var(--neon-cyan) 60%, var(--neon-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-btn {
  background: rgba(255, 42, 133, 0.15);
  border: 1px solid var(--neon-pink);
  color: #ffffff;
  padding: 8px 14px;
  min-height: 44px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  background: var(--neon-pink);
  box-shadow: 0 0 15px var(--neon-pink-glow);
  transform: translateY(-1px);
}

.hud-btn.active {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: #090214;
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

/* --- MAIN CONTAINER & VIEW CARDS --- */
.app-container {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 80px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.view-card {
  width: 100%;
  background: var(--dark-panel);
  border: 2px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 42, 133, 0.25);
  backdrop-filter: blur(14px);
  position: relative;
  display: none;
  animation: fadeInSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-card.active {
  display: block;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- NEON HEADINGS & ACCENTS --- */
.neon-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 2px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-cyan);
  margin-bottom: 8px;
}

.neon-subheading {
  font-size: 1.15rem;
  color: #a39bb8;
  text-align: center;
  margin-bottom: 24px;
}

.kanji-accent {
  font-size: 0.9rem;
  color: var(--neon-cyan);
  letter-spacing: 4px;
  display: block;
  text-align: center;
  margin-bottom: 4px;
}

/* --- GLOW BUTTONS --- */
.cyber-btn {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.cyber-btn-pink {
  background: linear-gradient(135deg, #ff2a85 0%, #d80064 100%);
  color: #ffffff;
  box-shadow: 0 0 20px var(--neon-pink-glow);
}
.cyber-btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--neon-pink-glow), 0 0 10px #ffffff;
}

.cyber-btn-cyan {
  background: linear-gradient(135deg, #00f0ff 0%, #00b4d8 100%);
  color: #090214;
  box-shadow: 0 0 20px var(--neon-cyan-glow);
}
.cyber-btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--neon-cyan-glow), 0 0 10px #ffffff;
}

.cyber-btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
}
.cyber-btn-outline:hover {
  background: var(--neon-cyan);
  color: #090214;
  box-shadow: 0 0 25px var(--neon-cyan-glow);
}

.cyber-btn:active {
  transform: translateY(1px);
}

/* --- VIEW 1: WELCOME SCREEN --- */
.welcome-hero {
  text-align: center;
  padding: 20px 0;
}

.hero-logo-box {
  display: inline-block;
  margin-bottom: 20px;
  padding: 15px 30px;
  border: 2px dashed var(--neon-pink);
  border-radius: 12px;
  background: rgba(255, 42, 133, 0.1);
  box-shadow: 0 0 30px rgba(255, 42, 133, 0.3);
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.hero-tag {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.welcome-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.mode-card {
  background: rgba(25, 9, 45, 0.8);
  border: 2px solid rgba(255, 42, 133, 0.3);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.mode-card:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

.mode-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.mode-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 8px;
}

.mode-desc {
  font-size: 0.95rem;
  color: #bbb0d0;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* --- VIEW 2: PLAYER JOIN FORM --- */
.join-form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.cyber-input {
  background: rgba(10, 2, 20, 0.85);
  border: 2px solid rgba(0, 240, 255, 0.4);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #ffffff;
  outline: none;
  transition: all 0.25s ease;
  text-align: center;
  letter-spacing: 2px;
}

.cyber-input:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 15px var(--neon-pink-glow);
}

/* Avatar Selection Carousel/Grid */
.avatar-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.avatar-chip {
  background: rgba(25, 8, 45, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px;
  font-size: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-chip span {
  font-size: 0.65rem;
  font-family: var(--font-display);
  color: #a09cb0;
  margin-top: 4px;
}

.avatar-chip:hover {
  border-color: var(--neon-cyan);
  transform: scale(1.08);
}

.avatar-chip.selected {
  border-color: var(--neon-pink);
  background: rgba(255, 42, 133, 0.25);
  box-shadow: 0 0 15px var(--neon-pink-glow);
  transform: scale(1.1);
}

/* Color glow picker */
.color-selector {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}

.color-dot {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.color-dot:hover {
  transform: scale(1.2);
}

.color-dot.selected {
  border-color: #ffffff;
  transform: scale(1.25);
  box-shadow: 0 0 16px currentColor;
}

/* --- VIEW 3: HOST LOBBY --- */
.host-lobby-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.host-info-card {
  background: rgba(14, 3, 27, 0.85);
  border: 2px solid var(--neon-cyan);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.room-pin-display {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 6px;
  color: var(--neon-yellow);
  text-shadow: 0 0 15px rgba(255, 230, 0, 0.8);
  padding: 8px 0;
}

.qr-container {
  margin: 14px auto;
  background: #ffffff;
  padding: 8px;
  border-radius: 10px;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.qr-container img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.lobby-players-area {
  display: flex;
  flex-direction: column;
}

.players-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 42, 133, 0.3);
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
  min-height: 220px;
}

.player-lobby-card {
  background: rgba(22, 6, 40, 0.8);
  border: 2px solid var(--player-color, var(--neon-pink));
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 0 12px rgba(255, 42, 133, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.player-lobby-card .avatar {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.player-lobby-card .name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.kick-btn {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  color: #ff4a4a;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.kick-btn:hover { opacity: 1; }

.empty-lobby-message {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a59bbd;
  font-size: 1.1rem;
  gap: 12px;
  min-height: 200px;
}

/* Host settings row */
.host-settings-bar {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  border-radius: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.setting-select {
  background: #090214;
  border: 1px solid var(--neon-cyan);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  outline: none;
}

/* --- VIEW 4: PLAYER WAITING --- */
.waiting-box {
  text-align: center;
  padding: 30px 10px;
}

.pulsing-avatar-box {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: rgba(255, 42, 133, 0.15);
  border: 3px solid var(--player-color, var(--neon-pink));
  box-shadow: 0 0 30px var(--neon-pink-glow);
  animation: pulseAvatar 2s infinite ease-in-out;
}

@keyframes pulseAvatar {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 45px var(--neon-cyan-glow); }
}

/* --- COUNTDOWN SCREEN --- */
.countdown-box {
  text-align: center;
  padding: 60px 0;
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 6.5rem;
  font-weight: 900;
  color: var(--neon-yellow);
  text-shadow: 0 0 30px var(--neon-pink), 0 0 60px var(--neon-yellow);
  animation: scaleDown 1s infinite cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleDown {
  from { transform: scale(1.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --- VIEW 6: QUESTION SCREEN --- */
.question-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 42, 133, 0.3);
}

.question-badge-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.difficulty-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.difficulty-facil {
  background: rgba(5, 255, 161, 0.2);
  border: 1px solid var(--neon-mint);
  color: var(--neon-mint);
}

.difficulty-media {
  background: rgba(255, 230, 0, 0.2);
  border: 1px solid var(--neon-yellow);
  color: var(--neon-yellow);
}

.difficulty-dificil {
  background: rgba(255, 42, 133, 0.3);
  border: 1px solid var(--neon-pink);
  color: #ff72b1;
  animation: glitchShake 0.4s infinite alternate;
}

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

.timer-ring-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--neon-cyan);
}

.timer-number.urgent {
  color: var(--neon-pink);
  animation: urgentPulse 0.5s infinite alternate;
}

@keyframes urgentPulse {
  from { transform: scale(1); }
  to { transform: scale(1.3); }
}

/* Glitch Boss Alert Banner */
.glitch-boss-alert {
  background: linear-gradient(90deg, #ff0055, #7928ca, #00f0ff);
  padding: 8px 16px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.7);
  animation: pulseBar 1.2s infinite;
  display: none;
}

@keyframes pulseBar {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; box-shadow: 0 0 35px rgba(0, 240, 255, 0.8); }
}

/* Question Prompt Box */
.question-prompt-box {
  background: rgba(14, 2, 26, 0.85);
  border: 2px solid rgba(0, 240, 255, 0.4);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.question-text {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
}

/* Player Power-Ups Bar */
.powerups-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.powerup-btn {
  background: rgba(26, 8, 48, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 14px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.powerup-btn:hover:not(:disabled) {
  border-color: var(--neon-yellow);
  box-shadow: 0 0 15px rgba(255, 230, 0, 0.5);
  transform: translateY(-2px);
}

.powerup-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(1);
}

.powerup-btn.active {
  background: var(--neon-yellow);
  color: #090214;
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 230, 0, 0.8);
}

.powerup-count {
  background: rgba(0,0,0,0.5);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.75rem;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.option-btn {
  background: rgba(22, 5, 41, 0.85);
  border: 2px solid rgba(255, 42, 133, 0.35);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: left;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.option-prefix {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 42, 133, 0.2);
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--neon-cyan);
  background: rgba(35, 10, 65, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.3);
}

.option-btn:hover:not(:disabled) .option-prefix {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.2);
}

.option-btn.selected {
  border-color: var(--neon-yellow);
  background: rgba(255, 230, 0, 0.15);
  box-shadow: 0 0 25px rgba(255, 230, 0, 0.5);
}

.option-btn.eliminated {
  opacity: 0.18;
  filter: grayscale(1);
  pointer-events: none;
  text-decoration: line-through;
}

.option-btn.correct {
  border-color: var(--neon-mint) !important;
  background: rgba(5, 255, 161, 0.2) !important;
  box-shadow: 0 0 30px rgba(5, 255, 161, 0.6) !important;
}

.option-btn.wrong {
  border-color: #ff3366 !important;
  opacity: 0.45;
}

/* Option response bar in reveal */
.option-tally-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  background: var(--neon-cyan);
  transition: width 0.8s ease;
}

/* --- NEON HIGHWAY RACE VISUALIZER --- */
.highway-container {
  margin-top: 20px;
  background: rgba(10, 2, 20, 0.9);
  border: 2px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  position: relative;
  overflow: hidden;
}

.highway-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.highway-lanes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highway-lane {
  position: relative;
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.hover-car {
  position: absolute;
  top: 2px;
  left: 0;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  background: var(--car-color, var(--neon-pink));
  border-radius: 16px;
  color: #090214;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 0 15px currentColor;
  transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: left;
}

.hover-car .car-flame {
  position: absolute;
  left: -12px;
  width: 14px;
  height: 10px;
  background: linear-gradient(90deg, transparent, #00f0ff, #fff);
  border-radius: 50%;
  filter: blur(1px);
  animation: flameFlicker 0.15s infinite alternate;
}

@keyframes flameFlicker {
  from { transform: scaleX(0.7); }
  to { transform: scaleX(1.4); }
}

/* --- VIEW 7: REVEAL & PHILOSOPHICAL CAPSULE --- */
.philosophical-capsule {
  background: rgba(13, 2, 28, 0.95);
  border: 2px solid var(--neon-cyan);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
  position: relative;
}

.capsule-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--neon-cyan);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.capsule-text {
  font-size: 1.15rem;
  line-height: 1.5;
  color: #ffffff;
}

/* Player personal round verdict */
.player-verdict-box {
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  animation: popIn 0.35s ease;
}

.verdict-correct {
  background: rgba(5, 255, 161, 0.15);
  border: 2px solid var(--neon-mint);
  color: var(--neon-mint);
}

.verdict-wrong {
  background: rgba(255, 51, 102, 0.15);
  border: 2px solid #ff3366;
  color: #ff6688;
}

.verdict-shielded {
  background: rgba(255, 230, 0, 0.15);
  border: 2px solid var(--neon-yellow);
  color: var(--neon-yellow);
}

/* --- VIEW 8: PODIUM CEREMONY --- */
.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin: 30px 0 40px 0;
  min-height: 280px;
}

.podium-pillar {
  width: 140px;
  background: rgba(22, 6, 42, 0.9);
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 10px;
  position: relative;
  transition: all 0.5s ease;
}

.podium-1 {
  height: 240px;
  border: 2px solid var(--neon-yellow);
  box-shadow: 0 0 35px rgba(255, 230, 0, 0.4);
  order: 2;
}

.podium-2 {
  height: 190px;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
  order: 1;
}

.podium-3 {
  height: 150px;
  border: 2px solid var(--neon-pink);
  box-shadow: 0 0 20px rgba(255, 42, 133, 0.3);
  order: 3;
}

.podium-trophy {
  font-size: 2.5rem;
  margin-bottom: 6px;
}

.podium-player-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.podium-score {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--neon-yellow);
  margin-top: 4px;
}

/* Leaderboard Table */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.leaderboard-table th {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  letter-spacing: 1.5px;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
}

.leaderboard-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 1.05rem;
}

.leaderboard-row:hover {
  background: rgba(255, 42, 133, 0.1);
}

/* --- FLOATING REACTION BAR & EMOTE BUBBLES --- */
.reaction-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 3, 27, 0.9);
  border: 2px solid var(--neon-pink);
  border-radius: 30px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(255, 42, 133, 0.4);
  backdrop-filter: blur(10px);
  z-index: 100;
}

/* Keyboard Accessibility & Focus indicators (WCAG AA / R-32) */
:focus-visible {
  outline: 3px solid var(--neon-cyan) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 12px var(--neon-cyan-glow) !important;
}

.reaction-btn {
  background: none;
  border: none;
  font-size: 1.45rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.reaction-btn:hover {
  transform: scale(1.35) rotate(-6deg);
}

.floating-emote {
  position: fixed;
  bottom: 70px;
  font-size: 2.2rem;
  pointer-events: none;
  z-index: 9999;
  animation: floatEmote 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes floatEmote {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translateY(-240px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateY(-480px) scale(0.9);
  }
}

/* Toast notifications */
.toast-notice {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 2, 28, 0.95);
  border: 2px solid var(--neon-yellow);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  box-shadow: 0 0 25px rgba(255, 230, 0, 0.6);
  z-index: 1000;
  display: none;
  animation: popIn 0.3s ease;
}

/* --- QTE RHYTHM GROOVE METER --- */
.qte-container {
  background: rgba(14, 2, 28, 0.95);
  border: 2px solid rgba(0, 240, 255, 0.4);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 18px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.qte-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: var(--neon-cyan);
  margin-bottom: 8px;
}

.qte-status-ready {
  color: var(--neon-yellow);
}

.qte-status-perfect {
  color: var(--neon-mint);
  font-weight: 900;
  text-shadow: 0 0 10px var(--neon-mint);
}

.qte-status-good {
  color: var(--neon-cyan);
}

.qte-track {
  position: relative;
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.qte-zone-good {
  position: absolute;
  top: 0;
  left: 35%;
  width: 30%;
  height: 100%;
  background: rgba(0, 240, 255, 0.25);
  border-left: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
}

.qte-zone-perfect {
  position: absolute;
  top: 0;
  left: 45%;
  width: 10%;
  height: 100%;
  background: rgba(255, 230, 0, 0.45);
  box-shadow: 0 0 10px rgba(255, 230, 0, 0.6);
  border-left: 2px solid var(--neon-yellow);
  border-right: 2px solid var(--neon-yellow);
}

.qte-needle {
  position: absolute;
  top: -2px;
  left: 0%;
  width: 6px;
  height: 24px;
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff, 0 0 20px var(--neon-pink);
  border-radius: 3px;
  transform: translateX(-50%);
  will-change: left;
}

.qte-legend {
  font-size: 0.78rem;
  color: #a59bbd;
  text-align: center;
  margin-top: 6px;
}

/* --- AMONG US STYLE SABOTAGE EMERGENCY & TASKS --- */
.sabotage-emergency-banner {
  text-align: center;
  margin-bottom: 20px;
  animation: sabotageGlow 1s ease-in-out infinite alternate;
}

@keyframes sabotageGlow {
  0% { filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.4)); }
  100% { filter: drop-shadow(0 0 25px rgba(255, 51, 102, 0.9)); }
}

.emergency-siren {
  font-size: 3rem;
  margin-bottom: 8px;
  animation: sirenSpin 0.8s ease-in-out infinite alternate;
}

@keyframes sirenSpin {
  0% { transform: rotate(-15deg) scale(1); }
  100% { transform: rotate(15deg) scale(1.15); }
}

.minigame-status-bar,
.sorter-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 2, 28, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 10px;
  padding: 10px 18px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.minigame-score-tag,
.sorter-score-tag {
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.amongus-task-box {
  background: rgba(18, 5, 34, 0.96);
  border: 2px solid #ff3366;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 0 35px rgba(255, 51, 102, 0.35);
  position: relative;
  overflow: hidden;
}

.task-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.task-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #ff3366;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(255, 51, 102, 0.6);
}

.task-instruction {
  font-size: 0.95rem;
  color: #d1c8e6;
  text-align: center;
  margin-bottom: 20px;
}

/* --- TASK 1: WIRING TASK --- */
.wiring-board {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 520px;
  min-height: 280px;
  background: rgba(10, 2, 20, 0.9);
  border: 2px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  padding: 20px 14px;
  box-sizing: border-box;
}

.wiring-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.wire-port {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 12px;
  background: rgba(30, 10, 50, 0.85);
  border: 2px solid var(--wire-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  color: #ffffff;
}

.wire-port:hover {
  background: rgba(50, 15, 80, 0.95);
  box-shadow: 0 0 15px var(--wire-color);
  transform: scale(1.03);
}

.wire-port.selected {
  outline: 3px solid #ffffff;
  box-shadow: 0 0 25px var(--wire-color);
  transform: scale(1.05);
}

.wire-port.connected {
  opacity: 0.8;
  pointer-events: none;
  border-style: dashed;
}

.port-peg {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wire-color);
  box-shadow: 0 0 8px var(--wire-color);
  display: inline-block;
  flex-shrink: 0;
}

.port-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.wiring-svg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* --- TASK 2: REACTOR CALIBRATION --- */
.reactor-dials-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 520px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.reactor-dial-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.reactor-dial {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #250a3e 0%, #0c0218 80%);
  border: 3px solid var(--neon-cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dial-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 38px;
  background: linear-gradient(to top, transparent, var(--neon-mint));
  transform-origin: 50% 0%;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--neon-mint);
}

.dial-target-gate {
  font-size: 1.2rem;
  color: var(--neon-yellow);
  text-shadow: 0 0 8px var(--neon-yellow);
  line-height: 1;
}

.dial-lock-btn {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
}

.dial-lock-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.dial-lock-btn.locked {
  background: var(--neon-mint) !important;
  color: #090214 !important;
  box-shadow: 0 0 20px var(--neon-mint);
  border-color: var(--neon-mint) !important;
}

/* --- TASK 3: KEYPAD TASK --- */
.keypad-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 280px;
}

.keypad-sticky-note {
  background: #ffe600;
  color: #120422;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 2px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 4px 15px rgba(255, 230, 0, 0.4);
  transform: rotate(-2deg);
}

.keypad-sticky-note strong {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 4px;
}

.keypad-display {
  width: 100%;
  background: #080210;
  border: 2px solid var(--neon-cyan);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 8px;
  color: var(--neon-cyan);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.3);
  min-height: 48px;
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.keypad-btn {
  background: rgba(30, 10, 50, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  min-height: 52px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.keypad-btn:hover {
  background: rgba(50, 20, 80, 0.95);
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px var(--neon-pink);
  transform: translateY(-2px);
}

.keypad-btn:active {
  transform: scale(0.95);
}

.keypad-btn-clear {
  color: #ff3366;
  border-color: rgba(255, 51, 102, 0.4);
}

.keypad-btn-enter {
  color: var(--neon-mint);
  border-color: rgba(5, 255, 161, 0.4);
}

/* --- MINIGAME 2: CIRCUIT BREAKER DE FALACIAS --- */
.fallacy-circuit-box {
  background: rgba(18, 4, 32, 0.95);
  border: 2px solid #ff3366;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 51, 102, 0.35);
}

.circuit-wire-pulse {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ff3366, #fff);
  animation: wirePulse 2s linear infinite;
}

@keyframes wirePulse {
  0% { left: -100%; }
  100% { left: 100%; }
}

.fallacy-prompt {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: #ffffff;
}

.fallacy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fallacy-btn {
  padding: 18px;
  min-height: 72px;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
}

.fallacy-btn-purge {
  background: rgba(255, 51, 102, 0.25);
  border-color: #ff3366;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.35);
}

.fallacy-btn-purge:hover {
  background: #ff3366;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(255, 51, 102, 0.8);
}

.fallacy-btn-valid {
  background: rgba(5, 255, 161, 0.2);
  border-color: var(--neon-mint);
  box-shadow: 0 0 20px rgba(5, 255, 161, 0.35);
}

.fallacy-btn-valid:hover {
  background: var(--neon-mint);
  color: #090214;
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(5, 255, 161, 0.8);
}

.fallacy-btn:active {
  transform: scale(0.96);
}

/* --- SABOTAGE TARGET SELECTOR MODAL --- */
.target-select-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 2, 22, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: targetFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes targetFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.target-select-card {
  background: rgba(22, 5, 42, 0.98);
  border: 2px solid var(--neon-pink);
  border-radius: 16px;
  box-shadow: 0 0 45px rgba(255, 42, 133, 0.5);
  max-width: 460px;
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.target-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--neon-pink);
  letter-spacing: 2px;
  margin-top: 4px;
  margin-bottom: 4px;
  text-shadow: 0 0 15px rgba(255, 42, 133, 0.8);
}

.target-modal-subtitle {
  font-size: 0.92rem;
  color: #d1c8e6;
  margin-bottom: 6px;
}

.target-players-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.target-player-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  min-height: 54px;
  background: rgba(30, 10, 50, 0.9);
  border: 2px solid var(--player-color, var(--neon-cyan));
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.target-player-btn:hover,
.target-player-btn:focus-visible {
  background: rgba(55, 15, 85, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--player-color, var(--neon-cyan));
  outline: 3px solid var(--neon-yellow);
}

.target-player-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.target-player-avatar {
  font-size: 1.6rem;
  line-height: 1;
}

.target-player-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.target-player-score {
  font-size: 0.85rem;
  color: var(--neon-yellow);
}

.target-action-tag {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  color: #ff3366;
  background: rgba(255, 51, 102, 0.2);
  border: 1px solid #ff3366;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 800;
}

.target-cancel-btn {
  min-height: 44px;
  width: 100%;
  margin-top: 6px;
  background: rgba(50, 20, 60, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.target-cancel-btn:hover {
  background: rgba(80, 25, 80, 0.9);
  border-color: #ffffff;
}

/* --- INTERACTIVE EMP SABOTAGE OVERLAY --- */
.emp-glitch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 2, 28, 0.94);
  backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: glitchIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes glitchIn {
  0% { transform: scale(1.1) skewX(10deg); opacity: 0; }
  50% { transform: scale(0.95) skewX(-10deg); }
  100% { transform: scale(1) skewX(0deg); opacity: 1; }
}

.emp-glitch-content {
  background: rgba(24, 5, 42, 0.98);
  border: 3px solid #ff3366;
  box-shadow: 0 0 50px rgba(255, 51, 102, 0.7);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.emp-glitch-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #ff3366;
  text-shadow: 0 0 15px #ff3366;
  margin-bottom: 12px;
}

.emp-glitch-desc {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.4;
}

.emp-nodes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.emp-node-btn {
  background: rgba(255, 51, 102, 0.2);
  border: 2px solid #ff3366;
  color: #ffffff;
  padding: 12px;
  min-height: 48px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.emp-node-btn:hover {
  background: #ff3366;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 51, 102, 0.8);
}

.emp-node-btn.cleared {
  background: rgba(5, 255, 161, 0.3) !important;
  border-color: var(--neon-mint) !important;
  color: var(--neon-mint) !important;
  pointer-events: none;
  opacity: 0.6;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
  .retro-header {
    padding: 10px 14px;
  }
  .brand-title {
    font-size: 1.05rem;
    letter-spacing: 1.5px;
  }
  .welcome-modes {
    grid-template-columns: 1fr;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .host-lobby-layout {
    grid-template-columns: 1fr;
  }
  .question-text {
    font-size: 1.2rem;
  }
  .avatar-selector {
    grid-template-columns: repeat(5, 1fr);
  }
}
