/* ═══════════════════════════════════════════════════════════════
   UNDERCOVER IMPOSTOR — CINEMATIC LANDING PAGE
   Fun, alive, game-quality hero experience
   ═══════════════════════════════════════════════════════════════ */

/* ─── LANDING SCREEN OVERRIDES ─────────────────────────────── */
.landing-screen {
  position: relative;
  min-height: calc(100dvh - 70px);
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

/* ─── RADAR CANVAS ──────────────────────────────────────────── */
.radar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

/* ─── FLOATING SPY CHARACTERS ───────────────────────────────── */
.spy-float-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.spy-char {
  position: absolute;
  left: var(--x);
  font-size: var(--size, 2rem);
  line-height: 1;
  animation:
    spyFloat  4s ease-in-out infinite alternate var(--delay, 0s),
    spyDrift  12s ease-in-out infinite var(--delay, 0s),
    spyFadeIn 0.8s ease-out var(--delay, 0s) both;
  filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.4));
  user-select: none;
  will-change: transform;
}

/* Each character floats at a different vertical range */
.spy-char:nth-child(1) { top: 10%; }
.spy-char:nth-child(2) { top: 15%; }
.spy-char:nth-child(3) { top: 55%; }
.spy-char:nth-child(4) { top: 20%; }
.spy-char:nth-child(5) { top: 70%; }
.spy-char:nth-child(6) { top: 40%; }
.spy-char:nth-child(7) { top: 80%; }
.spy-char:nth-child(8) { top: 65%; }

@keyframes spyFloat {
  from { transform: translateY(0) rotate(-4deg) scale(1); }
  to   { transform: translateY(-18px) rotate(4deg) scale(1.08); }
}
@keyframes spyDrift {
  0%,100% { filter: drop-shadow(0 0 8px rgba(0,245,255,0.35)); }
  33%      { filter: drop-shadow(0 0 16px rgba(255,23,68,0.55)); }
  66%      { filter: drop-shadow(0 0 12px rgba(168,85,247,0.5)); }
}
@keyframes spyFadeIn {
  from { opacity: 0; transform: scale(0.4) translateY(20px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* ─── HERO CONTENT ──────────────────────────────────────────── */
.landing-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 20px 28px;
  max-width: 620px;
  width: 100%;
}

/* ─── CLASSIFIED STAMP ──────────────────────────────────────── */
.classified-stamp {
  display: inline-block;
  font-family: var(--font-hud);
  font-size: clamp(0.55rem, 1.8vw, 0.75rem);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  border: 3px solid var(--red);
  border-radius: 6px;
  padding: 5px 16px;
  transform: rotate(-3deg) scale(0);
  transform-origin: center;
  animation: stampSeal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s both;
  box-shadow:
    inset 0 0 20px rgba(255,23,68,0.15),
    0 0 20px rgba(255,23,68,0.2);
  margin-bottom: 16px;
  position: relative;
}

.classified-stamp::before,
.classified-stamp::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255,23,68,0.35);
  border-radius: 3px;
  pointer-events: none;
}

@keyframes stampSeal {
  0%   { transform: rotate(-3deg) scale(2.5); opacity: 0; }
  60%  { transform: rotate(-3deg) scale(0.92); opacity: 1; }
  80%  { transform: rotate(-3deg) scale(1.04); }
  100% { transform: rotate(-3deg) scale(1); opacity: 1; }
}

/* ─── MAIN TITLE ────────────────────────────────────────────── */
.landing-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 0 16px;
  line-height: 0.88;
}

.lt-line {
  display: block;
  font-family: var(--font-hud);
  font-size: clamp(3.8rem, 15vw, 6.4rem);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    #FFFFFF 0%,
    #FF2200 45%,
    #880000 85%,
    #330000 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleSlam 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) calc(0.15s + var(--i) * 0.15s) both;
  position: relative;
  filter: drop-shadow(0 0 25px rgba(204,0,0,0.8));
}

/* Neon glow underlayer for title */
.lt-line::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: none;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 50px rgba(204,0,0,0.6);
  pointer-events: none;
}

@keyframes titleSlam {
  from {
    opacity: 0;
    transform: translateY(-40px) scaleY(1.5);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    filter: drop-shadow(0 0 25px rgba(204,0,0,0.8));
  }
}

/* Continuous subtle glitch on title */
.lt-line:first-child {
  animation:
    titleSlam 0.6s cubic-bezier(0.175,0.885,0.32,1.275) 0.15s both,
    titleGlitch 5s ease-in-out 1.5s infinite;
}
@keyframes titleGlitch {
  0%,90%,100% {
    transform: translateX(0);
    filter: drop-shadow(0 0 25px rgba(204,0,0,0.8));
  }
  92% {
    transform: translateX(-5px) skewX(-4deg);
    filter: drop-shadow(0 0 35px rgba(57,255,20,0.8));
  }
  94% {
    transform: translateX(5px) skewX(4deg);
    filter: drop-shadow(0 0 35px rgba(255,0,0,0.9));
  }
  96% {
    transform: translateX(-2px);
  }
  98% {
    transform: translateX(0);
  }
}

/* ─── HOW TO PLAY ───────────────────────────────────────────── */
.how-to-play {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  animation: fadeUp 0.5s ease-out 0.7s both;
  flex-wrap: wrap;
  justify-content: center;
}

.rule-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  min-width: 80px;
  transition: all 0.25s;
  cursor: default;
}
.rule-chip:hover {
  background: rgba(0,245,255,0.08);
  border-color: rgba(0,245,255,0.25);
  color: var(--text);
  transform: translateY(-3px);
}
.rule-chip strong { color: var(--text); }
.rule-icon { font-size: 1.5rem; display: block; }

.rule-divider {
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── TAGLINE ───────────────────────────────────────────────── */
.landing-tagline {
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.5s ease-out 0.85s both;
}

/* ─── CTA BUTTONS ───────────────────────────────────────────── */
.landing-cta {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 18px;
  animation: fadeUp 0.5s ease-out 1s both;
}

.landing-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 18px 12px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  min-height: 90px;
}

.landing-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
}
.landing-btn:hover::before { opacity: 1; }
.landing-btn:hover { transform: translateY(-4px) scale(1.02); }
.landing-btn:active { transform: translateY(0) scale(0.97); }

/* JOIN (Blood Infiltration) */
.join-btn {
  background: linear-gradient(135deg, rgba(160, 10, 30, 0.95), rgba(70, 0, 15, 0.95));
  border: 1.5px solid rgba(255, 42, 78, 0.55);
  box-shadow: 0 8px 30px rgba(255, 42, 78, 0.35), 0 2px 8px rgba(0,0,0,0.6);
  color: #FFFFFF;
}
.join-btn::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}
.join-btn:hover {
  border-color: #FF1744;
  box-shadow: 0 14px 44px rgba(255, 42, 78, 0.65), 0 4px 12px rgba(0,0,0,0.6);
}

/* CREATE (Séance Candlelight) */
.create-btn {
  background: linear-gradient(135deg, rgba(130, 65, 5, 0.95), rgba(55, 22, 0, 0.95));
  border: 1.5px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.3), 0 2px 8px rgba(0,0,0,0.6);
  color: #FFFFFF;
}
.create-btn::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}
.create-btn:hover {
  border-color: #FBBF24;
  box-shadow: 0 14px 44px rgba(251, 191, 36, 0.55), 0 4px 12px rgba(0,0,0,0.6);
}

.lbtn-icon {
  font-size: 1.8rem;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.landing-btn:hover .lbtn-icon { transform: scale(1.25) rotate(-5deg); }

.lbtn-text {
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}

.lbtn-sub {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.72;
  display: block;
  letter-spacing: 0.3px;
}

/* ─── FOOTER TEXT ───────────────────────────────────────────── */
.landing-footer-text {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  animation: fadeUp 0.5s ease-out 1.1s both;
}

/* ─── FORM DRAWER ───────────────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.form-drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: min(96vw, 480px);
  z-index: 100;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.form-drawer.open {
  transform: translateX(-50%) translateY(0);
}

.form-drawer-inner {
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 30px 24px 40px;
  position: relative;
}

/* drag handle */
.form-drawer-inner::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

/* top glow line */
.form-drawer-inner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
  opacity: 0.7;
}

.drawer-close {
  position: absolute;
  top: 16px; right: 18px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--muted);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.drawer-close:hover { background: rgba(255,23,68,0.15); border-color: rgba(255,23,68,0.4); color: var(--red); }

.drawer-title {
  font-family: var(--font-hud);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 6px;
  margin-top: 4px;
}

.drawer-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ─── SHARED ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── MOBILE ────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .lt-line { font-size: clamp(3rem, 18vw, 4.5rem); }
  .landing-cta { flex-direction: column; gap: 10px; }
  .landing-btn { min-height: 72px; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 16px 20px; }
  .lbtn-icon { font-size: 1.5rem; }
  .how-to-play { gap: 5px; }
  .rule-chip { min-width: 70px; padding: 8px 10px; font-size: 0.72rem; }
  .rule-divider { font-size: 1rem; }
  .char-float-left, .char-float-right { display: none; }
  .trio-img { width: 100%; }
}

/* ════════════════════════════════════════════════════════════════
   HORROR GAME LOGO & SOUNDTRACK HERO STYLES
   ════════════════════════════════════════════════════════════════ */

/* ─── Horror Game Logo Banner ─────────────────────────────────── */
.horror-logo-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 14px;
  animation: logoSlam 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.horror-hero-logo {
  width: min(340px, 86%);
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(0, 245, 255, 0.2),
    0 0 60px rgba(168, 85, 247, 0.15);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  user-select: none;
}
.horror-hero-logo:hover {
  transform: scale(1.04) rotate(-0.5deg);
  border-color: var(--cyan);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 0 45px rgba(0, 245, 255, 0.4),
    0 0 70px rgba(168, 85, 247, 0.25);
}

.horror-logo-aura {
  position: absolute;
  inset: -12px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.14) 0%, rgba(168, 85, 247, 0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: auraFlicker 4s infinite alternate;
}

@keyframes logoSlam {
  0%   { opacity: 0; transform: scale(0.7) translateY(-25px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes auraFlicker {
  0%   { opacity: 0.4; transform: scale(0.96); }
  50%  { opacity: 0.75; transform: scale(1.03); }
  100% { opacity: 0.5; transform: scale(1); }
}

/* ─── Mission Tag Pill ────────────────────────────────────────── */
.mission-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-hud);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #E2E8F0;
  background: rgba(18, 24, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 18px;
  border-radius: 30px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  animation: fadeUp 0.5s ease-out 0.3s both;
}
.tag-pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: dotPulse 1.8s infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.85); }
  50%      { opacity: 1; transform: scale(1.3); }
}

/* ─── Horror Soundtrack & Voices Play Card ────────────────────── */
.horror-play-card {
  width: 100%;
  margin-bottom: 18px;
  animation: fadeUp 0.6s ease-out 0.4s both;
}

.horror-play-soundtrack-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 20px;
  border-radius: 16px;
  background: rgba(18, 24, 45, 0.85);
  border: 1.5px solid rgba(0, 245, 255, 0.35);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 245, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
}
.horror-play-soundtrack-btn:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: rgba(24, 32, 60, 0.95);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), var(--glow-c);
}
.horror-play-soundtrack-btn:active {
  transform: scale(0.98);
}
.horror-play-soundtrack-btn.playing {
  border-color: var(--purple);
  background: rgba(26, 20, 50, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.35);
}

.hbtn-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  color: var(--cyan);
}
.horror-play-soundtrack-btn.playing .hbtn-icon {
  color: var(--purple);
}
.pulse-icon {
  animation: iconHeartbeat 2s ease-in-out infinite;
}
@keyframes iconHeartbeat {
  0%, 100% { transform: scale(1); }
  25%      { transform: scale(1.25); }
  50%      { transform: scale(1); }
}

.hbtn-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hbtn-title {
  font-family: var(--font-hud);
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  color: #FFFFFF;
  text-transform: uppercase;
}
.hbtn-sub {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ════════════════════════════════════════════════════════════════
   INTERACTIVE CARTOON CHARACTERS & TALK BADGES
   ════════════════════════════════════════════════════════════════ */

.interactive-char {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  transition: transform 0.25s var(--ease-spring), filter 0.25s ease;
}
.interactive-char:hover {
  transform: scale(1.05);
}
.interactive-char:active {
  transform: scale(0.96);
}

/* Floating speech prompt badge */
.char-talk-badge {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 0, 22, 0.92);
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  padding: 3px 9px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
  white-space: nowrap;
  animation: badgeBounce 2s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 10;
}
.char-float-right .char-talk-badge {
  border-color: var(--red);
  color: #FF5555;
  box-shadow: 0 0 12px rgba(204, 0, 0, 0.5);
}
.trio-badge {
  top: 10px;
  left: 50%;
  border-color: var(--gold);
  color: var(--gold);
}
.mini-badge {
  top: -20px;
  font-size: 0.75rem;
  padding: 1px 6px;
}
.peek-badge {
  top: -22px;
  left: 50%;
}
.lobby-badge {
  top: 8px;
  left: 50%;
}

@keyframes badgeBounce {
  0%   { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-5px); }
}

/* ─── Side floating characters (landing page) ─────────────────── */
.char-float-left,
.char-float-right {
  position: absolute;
  top: 140px;
  z-index: 10;
  width: 165px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: none;
}

@media (min-width: 1240px) {
  .char-float-left,
  .char-float-right {
    display: block;
  }
  .char-float-left  { left: calc(50% - 500px); }
  .char-float-right { right: calc(50% - 500px); }
}

.char-float-left:hover {
  transform: scale(1.08) rotate(-3deg);
}
.char-float-right:hover {
  transform: scale(1.08) rotate(3deg);
}

.landing-char-img {
  width: 100%;
  display: block;
  animation: charBounce 4s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.45));
  border-radius: 18px;
  border: 2px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}
.char-right {
  animation-name: charBounceRight;
  filter: drop-shadow(0 0 25px rgba(255, 42, 78, 0.55));
  border-color: rgba(255, 42, 78, 0.5);
}

@keyframes charBounce {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-16px) rotate(2deg); }
}
@keyframes charBounceRight {
  0%,100% { transform: translateY(-8px) rotate(2deg); }
  50%      { transform: translateY(8px) rotate(-2deg); }
}

@media (max-width: 900px) {
  .char-float-left, .char-float-right {
    display: none;
  }
}

/* ─── Horror Warning Banner ───────────────────────────────────── */
.horror-warning-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 42, 78, 0.15),
    rgba(255, 42, 78, 0.15) 12px,
    rgba(14, 18, 30, 0.95) 12px,
    rgba(14, 18, 30, 0.95) 24px
  );
  border: 1.5px solid rgba(255, 42, 78, 0.6);
  border-radius: 10px;
  padding: 8px 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(255, 42, 78, 0.25), inset 0 0 15px rgba(255, 42, 78, 0.1);
  animation: warningPulse 2.5s infinite;
  width: 100%;
}
@keyframes warningPulse {
  0%, 100% { border-color: rgba(255, 42, 78, 0.5); box-shadow: 0 0 15px rgba(255, 42, 78, 0.2); }
  50% { border-color: rgba(255, 42, 78, 0.9); box-shadow: 0 0 30px rgba(255, 42, 78, 0.45); }
}
.warning-flicker {
  font-size: 1rem;
  animation: iconFlicker 1.8s infinite;
}
@keyframes iconFlicker {
  0%, 100% { opacity: 1; }
  85% { opacity: 1; }
  88% { opacity: 0.2; }
  92% { opacity: 1; }
  95% { opacity: 0.1; }
}
.warning-text {
  font-family: var(--font-hud);
  font-size: clamp(0.65rem, 1.8vw, 0.76rem);
  font-weight: 900;
  letter-spacing: 2px;
  color: #FFAAB5;
  text-shadow: 0 0 10px rgba(255, 42, 78, 0.6);
}

/* ─── Cursed Suspects Lineup ─────────────────────────────────── */
.cursed-suspects-container {
  width: 100%;
  margin-bottom: 20px;
  background: rgba(10, 14, 26, 0.88);
  border: 1.5px solid rgba(255, 42, 78, 0.4);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), inset 0 0 25px rgba(255, 42, 78, 0.08);
}
.suspects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.suspects-badge {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #FF5577;
  text-shadow: 0 0 8px rgba(255, 42, 78, 0.5);
}
.suspects-hint {
  font-size: 0.68rem;
  color: var(--muted);
  font-family: var(--font-mono);
}
.cursed-suspects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.suspect-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(15, 20, 36, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 6px 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.suspect-mini-card:hover {
  transform: translateY(-4px) scale(1.04);
}
.suspect-zombie { border-color: rgba(16, 185, 129, 0.45); }
.suspect-zombie:hover { border-color: #10B981; box-shadow: 0 0 25px rgba(16, 185, 129, 0.45); }

.suspect-demon { border-color: rgba(255, 42, 78, 0.5); }
.suspect-demon:hover { border-color: #FF1744; box-shadow: 0 0 25px rgba(255, 23, 68, 0.6); }

.suspect-jester { border-color: rgba(168, 85, 247, 0.45); }
.suspect-jester:hover { border-color: #A855F7; box-shadow: 0 0 25px rgba(168, 85, 247, 0.45); }

.suspect-avatar-box {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  position: relative;
  overflow: visible;
}
.suspect-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: block;
}
.suspect-zombie .suspect-avatar-img { border-color: #10B981; }
.suspect-demon .suspect-avatar-img { border-color: #FF1744; }
.suspect-jester .suspect-avatar-img { border-color: #A855F7; }

.suspect-sound-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 12, 22, 0.95);
  font-family: var(--font-hud);
  font-size: 0.55rem;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.suspect-zombie .suspect-sound-badge { color: #10B981; }
.suspect-demon .suspect-sound-badge { color: #FF2A4E; }
.suspect-jester .suspect-sound-badge { color: #A855F7; }

.suspect-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.suspect-name {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: #FFFFFF;
}
.suspect-role-tag {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.agent-tag { color: #10B981; }
.demon-tag { color: #FF2A4E; }
.jester-tag { color: #A855F7; }

/* ─── Courage Test Jumpscare Button ───────────────────────────── */
.courage-test-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(80, 5, 15, 0.92), rgba(30, 2, 8, 0.96));
  border: 1.5px solid rgba(255, 42, 78, 0.6);
  color: #FFFFFF;
  cursor: pointer;
  margin-bottom: 20px;
  box-shadow: 0 6px 25px rgba(255, 42, 78, 0.25), inset 0 0 15px rgba(255, 0, 50, 0.2);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.courage-test-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #FF0033;
  box-shadow: 0 10px 35px rgba(255, 0, 50, 0.5), inset 0 0 25px rgba(255, 0, 50, 0.35);
}
.ctest-skull {
  font-size: 1.4rem;
  animation: skullJitter 2s infinite;
}
@keyframes skullJitter {
  0%, 90%, 100% { transform: scale(1) rotate(0); }
  92% { transform: scale(1.2) rotate(-8deg); }
  94% { transform: scale(1.2) rotate(8deg); }
  96% { transform: scale(1.1) rotate(-4deg); }
}
.ctest-label {
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #FFAAAA;
  text-shadow: 0 0 10px rgba(255, 42, 78, 0.6);
}
.ctest-flame {
  font-size: 1.2rem;
}
.agent-label    { background: rgba(0,245,255,0.18); border: 1px solid rgba(0,245,255,0.6); color: #00F5FF; }
.impostor-label { background: rgba(255,42,78,0.2); border: 1px solid rgba(255,42,78,0.6); color: #FF2A4E; }
.jester-label   { background: rgba(168,85,247,0.2); border: 1px solid rgba(168,85,247,0.6); color: #A855F7; }

/* ─── Role reveal character card ──────────────────────────────── */
.role-char-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}

.role-char-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(57,255,20,0.5);
  box-shadow:
    0 0 0 6px rgba(57,255,20,0.12),
    0 8px 32px rgba(0,0,0,0.7);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  animation: charRevealPop 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.2s both;
}

.impostor-card .role-char-img {
  border-color: rgba(204,0,0,0.8);
  box-shadow: 0 0 0 6px rgba(204,0,0,0.2), 0 8px 32px rgba(204,0,0,0.4);
}
.jester-card .role-char-img {
  border-color: rgba(139,0,255,0.8);
  box-shadow: 0 0 0 6px rgba(139,0,255,0.2), 0 8px 32px rgba(139,0,255,0.4);
  animation: charRevealPop 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.2s both, jesterCharWobble 2s ease-in-out 1s infinite;
}

@keyframes charRevealPop {
  from { opacity:0; transform: scale(0.2) rotate(-15deg); }
  to   { opacity:1; transform: scale(1)   rotate(0deg); }
}
@keyframes jesterCharWobble {
  0%,100% { transform: rotate(-3deg) scale(1); }
  50%      { transform: rotate(3deg)  scale(1.04); }
}

/* ════════════════════════════════════════════════════════════════
   COMIC HORROR SPEECH BUBBLES
   ════════════════════════════════════════════════════════════════ */
.horror-speech-bubble {
  position: absolute;
  z-index: 9999;
  max-width: 280px;
  background: rgba(14, 2, 24, 0.96);
  border: 2.5px solid var(--red);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow:
    0 0 25px rgba(204, 0, 0, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.9);
  animation: bubblePopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
}
.horror-speech-bubble.bubble-agent {
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.55), 0 10px 30px rgba(0,0,0,0.9);
}
.horror-speech-bubble.bubble-jester {
  border-color: var(--purple);
  box-shadow: 0 0 25px rgba(139, 0, 255, 0.6), 0 10px 30px rgba(0,0,0,0.9);
}

.horror-speech-bubble .bubble-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-hud);
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.horror-speech-bubble .bubble-body {
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.35;
  color: #FFFFFF;
  font-weight: 700;
}
.horror-speech-bubble .bubble-tail {
  position: absolute;
  bottom: -10px;
  left: 28px;
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid var(--red);
}
.horror-speech-bubble.bubble-agent .bubble-tail {
  border-top-color: var(--cyan);
}
.horror-speech-bubble.bubble-jester .bubble-tail {
  border-top-color: var(--purple);
}

.horror-speech-bubble.fade-out {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.35s ease-out;
}

@keyframes bubblePopIn {
  0%   { opacity: 0; transform: scale(0.4) translateY(15px); }
  70%  { transform: scale(1.08) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
