/* ═══════════════════════════════════════════════════════════════
   TRUST NO ONE — SURVIVAL HORROR & SOCIAL DEDUCTION
   Sleek dark atmosphere, vibrant accents, balanced contrast.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Orbitron:wght@500;700;900&family=Outfit:wght@400;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

/* ─── BALANCED DESIGN TOKENS ─────────────────────────────────── */
:root {
  --bg:         #040509;   /* pitch black void */
  --surface:    #0A0D18;   /* dark slate surface */
  --card:       #0F1424;   /* glass card container */
  --elevated:   #151C32;   /* interactive raised panel */

  /* Vibrant, balanced role & event accents */
  --cyan:       #00F5FF;   /* electric cyan (Agents, intel, tech) */
  --red:        #FF2A4E;   /* vivid neon crimson (Impostor, danger, vote) */
  --gold:       #FBBF24;   /* warm candle gold (points, wagers, wins) */
  --green:      #10B981;   /* ectoplasm green (success, truth, allies) */
  --purple:     #A855F7;   /* cursed violet (Jester, mystery) */
  --orange:     #FF7700;

  --text:       #F8FAFC;   /* crisp white text */
  --muted:      #94A3B8;   /* readable slate grey */
  --dim:        #1E293B;

  --border:     rgba(255, 255, 255, 0.08);
  --border-c:   rgba(0, 245, 255, 0.4);
  --border-r:   rgba(255, 42, 78, 0.5);
  --border-g:   rgba(251, 191, 36, 0.4);
  --border-p:   rgba(168, 85, 247, 0.4);

  --glow-c:     0 0 20px rgba(0, 245, 255, 0.4), 0 0 50px rgba(0, 245, 255, 0.12);
  --glow-r:     0 0 20px rgba(255, 42, 78, 0.5), 0 0 50px rgba(255, 42, 78, 0.15);
  --glow-p:     0 0 20px rgba(168, 85, 247, 0.4);
  --glow-g:     0 0 20px rgba(251, 191, 36, 0.4);

  --font-hud:    'Outfit', sans-serif;
  --font-horror: 'Nosifer', 'Creepster', cursive;
  --font-body:   'Outfit', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ─── BODY ───────────────────────────────────────────────────── */
body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(138, 3, 3, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(139, 0, 255, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(16, 185, 129, 0.07) 0%, transparent 60%);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* Electrical failure / horror flicker */
body.horror-flicker-active {
  filter: brightness(0.2) contrast(2) hue-rotate(160deg);
  transition: filter 0.04s ease;
}

/* ─── HORROR VIGNETTE & SCANLINES ────────────────────────────── */
.horror-vignette-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 95;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(2, 3, 7, 0.65) 75%, rgba(1, 1, 3, 0.96) 100%);
  box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.96);
}

.horror-scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 96;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
  background-size: 100% 4px;
  opacity: 0.22;
}

/* ─── JUMPSCARE OVERLAY ───────────────────────────────────────── */
.jumpscare-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.05s ease;
}
.jumpscare-overlay.active {
  opacity: 1; pointer-events: auto;
  animation: jumpscareStrobe 0.35s steps(2, start) infinite;
}
@keyframes jumpscareStrobe {
  0%   { background: #000; filter: invert(0); }
  50%  { background: #8B0000; filter: invert(1); }
  100% { background: #1a0000; filter: invert(0); }
}
.jumpscare-face {
  font-size: clamp(6rem, 22vw, 12rem);
  filter: drop-shadow(0 0 60px #FF0000);
  animation: jumpscareShake 0.08s infinite;
}
.jumpscare-msg {
  font-family: var(--font-horror);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: #FFFFFF;
  text-shadow: 0 0 25px #FF0000, 0 0 50px #FF0000;
  letter-spacing: 4px;
  text-transform: uppercase;
}
@keyframes jumpscareShake {
  0%   { transform: scale(1) translate(0, 0); }
  25%  { transform: scale(1.18) translate(-10px, 8px) rotate(-3deg); }
  50%  { transform: scale(0.92) translate(8px, -10px) rotate(3deg); }
  75%  { transform: scale(1.22) translate(-6px, -6px) rotate(-2deg); }
  100% { transform: scale(1) translate(0, 0); }
}

/* ─── CANVAS LAYERS ──────────────────────────────────────────── */
#bg-canvas, #confetti-canvas, #fx-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
#bg-canvas      { z-index: 0; }
#confetti-canvas { z-index: 500; }
#fx-canvas      { z-index: 501; }

/* ─── APP HEADER ─────────────────────────────────────────────── */
.app-header {
  position: relative; z-index: 100;
  width: 100%; max-width: 900px;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255, 42, 78, 0.2);
  background: rgba(8, 11, 20, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

/* Live Heartbeat BPM HUD */
.hud-heartbeat-wrap {
  display: flex; align-items: center; gap: 8px;
  background: rgba(14, 18, 30, 0.9);
  border: 1px solid rgba(255, 42, 78, 0.45);
  padding: 5px 14px;
  border-radius: 22px;
  box-shadow: 0 0 16px rgba(255, 42, 78, 0.25);
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
}
.hud-heartbeat-wrap:hover {
  border-color: #FF1744;
  box-shadow: 0 0 25px rgba(255, 23, 68, 0.5);
  transform: scale(1.05);
}
.heart-pulse-icon {
  font-size: 1.15rem;
  display: inline-block;
  animation: heartThump 1.1s ease-in-out infinite;
}
.hud-heartbeat-wrap.panic .heart-pulse-icon {
  animation: heartThump 0.35s ease-in-out infinite;
  color: #FF0033;
}
@keyframes heartThump {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.35); }
  30% { transform: scale(1.05); }
  45% { transform: scale(1.22); }
}
.bpm-digits {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  color: #FF2A4E;
}
.bpm-label {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 1px;
}
  -webkit-backdrop-filter: blur(16px);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring);
}
.logo-container:hover { transform: scale(1.03); }

.horror-header-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 42, 78, 0.6);
  box-shadow: 0 0 14px rgba(255, 42, 78, 0.4);
  transition: all 0.25s ease;
}
.logo-container:hover .horror-header-logo {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.6);
}

.horror-logo-text {
  font-family: var(--font-hud);
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.3));
}

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

.icon-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 17px;
  background: rgba(18, 24, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.icon-btn .btn-lbl {
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.icon-btn:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-c);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.icon-btn:hover .btn-lbl { color: var(--cyan); }
.icon-btn:active { transform: scale(0.95); }

.icon-btn.active {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.12);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.3);
}
.icon-btn.active .btn-lbl { color: var(--cyan); font-weight: 900; }

.horror-music-btn.playing {
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.16);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}
.horror-music-btn.playing .btn-lbl { color: var(--purple); font-weight: 900; }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.app-main {
  position: relative; z-index: 2;
  width: 100%; max-width: 680px;
  padding: 0 16px 80px;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* ─── SCREEN TRANSITIONS ─────────────────────────────────────── */
.game-screen { width: 100%; display: none; flex-direction: column; align-items: center; gap: 14px; }
.game-screen.active { display: flex; animation: screenIn 0.45s var(--ease-out) both; }
.game-screen.exit   { animation: screenOut 0.3s var(--ease-out) both; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}
@keyframes screenOut {
  to   { opacity: 0; transform: translateY(-20px) scale(0.97); filter: blur(4px); }
}

/* ─── GLASS CARD ─────────────────────────────────────────────── */
.glass-card {
  width: 100%;
  background: rgba(14, 18, 36, 0.85);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 30%, var(--purple) 70%, transparent 100%);
  opacity: 0.7;
}

.glass-card.danger-card {
  border-color: var(--border-r);
  animation: dangerGlow 1.2s ease-in-out infinite;
}
.glass-card.danger-card::before { background: linear-gradient(90deg, transparent, var(--red), var(--orange), transparent); }

.glass-card.gold-card {
  border-color: var(--border-g);
}
.glass-card.gold-card::before { background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.glass-card.agent-card {
  border-color: var(--border-c);
  box-shadow: 0 24px 64px rgba(0,0,0,0.85), var(--glow-c);
  animation: agentPulse 2.5s ease-in-out infinite;
}

.glass-card.impostor-card {
  border-color: var(--border-r);
  box-shadow: 0 24px 64px rgba(0,0,0,0.85), var(--glow-r);
  animation: dangerGlow 1s ease-in-out infinite;
}

.glass-card.jester-card {
  border-color: var(--purple);
  box-shadow: 0 24px 64px rgba(0,0,0,0.85), 0 0 35px rgba(139,0,255,0.5);
  animation: jesterGlow 1.5s ease-in-out infinite;
}

@keyframes dangerGlow {
  0%,100% { box-shadow: 0 24px 64px rgba(0,0,0,0.85), 0 0 24px rgba(204,0,0,0.4); }
  50%      { box-shadow: 0 24px 64px rgba(0,0,0,0.85), 0 0 55px rgba(255,0,0,0.8), 0 0 90px rgba(204,0,0,0.3); }
}
@keyframes agentPulse {
  0%,100% { box-shadow: 0 24px 64px rgba(0,0,0,0.85), 0 0 20px rgba(57,255,20,0.3); }
  50%      { box-shadow: 0 24px 64px rgba(0,0,0,0.85), 0 0 45px rgba(57,255,20,0.6); }
}
@keyframes jesterGlow {
  0%,100% { box-shadow: 0 24px 64px rgba(0,0,0,0.85), 0 0 20px rgba(139,0,255,0.35); }
  50%      { box-shadow: 0 24px 64px rgba(0,0,0,0.85), 0 0 50px rgba(139,0,255,0.75); }
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
.hero-title {
  font-family: var(--font-hud);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 2px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #FFFFFF 20%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.section-title {
  font-family: var(--font-hud);
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--text);
}

.subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ─── LABEL TAGS / BADGES ────────────────────────────────────── */
.label-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-hud);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid;
  margin-bottom: 14px;
  transition: all 0.3s;
}
.label-tag.cyan   { color: var(--cyan);   border-color: var(--border-c); background: rgba(0,245,255,0.1); }
.label-tag.red    { color: var(--red);    border-color: var(--border-r); background: rgba(255,23,68,0.12); }
.label-tag.gold   { color: var(--gold);   border-color: var(--border-g); background: rgba(255,214,0,0.1); }
.label-tag.purple { color: var(--purple); border-color: rgba(168,85,247,0.4); background: rgba(168,85,247,0.12); }
.label-tag.green  { color: var(--green);  border-color: rgba(0,230,118,0.4); background: rgba(0,230,118,0.1); }

/* ─── TABS ───────────────────────────────────────────────────── */
.tab-container {
  display: flex;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  width: 100%;
  margin-bottom: 22px;
}
.tab-btn {
  flex: 1; padding: 10px 14px;
  background: transparent; border: none;
  color: var(--muted);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 700;
  border-radius: 8px; cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.tab-btn.active {
  background: var(--elevated);
  color: var(--cyan);
  box-shadow: 0 2px 14px rgba(0,0,0,0.4);
}

/* ─── INPUTS ─────────────────────────────────────────────────── */
.input-group { width: 100%; margin-bottom: 14px; text-align: left; }
.input-label {
  display: block;
  font-family: var(--font-hud); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}

.neon-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(0,0,0,0.55);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body); font-size: 1rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.neon-input:focus {
  border-color: var(--border-c);
  box-shadow: 0 0 0 3px rgba(0,245,255,0.1), 0 0 20px rgba(0,245,255,0.2);
  background: rgba(0,0,0,0.75);
}
.neon-input.code-input {
  font-family: var(--font-hud); font-size: 2rem; font-weight: 700;
  letter-spacing: 12px; text-transform: uppercase; text-align: center; padding: 18px;
}
select.neon-input option { background: var(--card); }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  width: 100%; padding: 15px 20px;
  background: linear-gradient(135deg, #00F5FF 0%, #0284C7 100%);
  color: #030C16;
  border: none;
  border-radius: 12px;
  font-family: var(--font-hud); font-size: 0.84rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 245, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover:not(:disabled)::after { opacity: 1; }
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.btn-primary:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-red  { background: linear-gradient(135deg, #E50914, #8B0000); color: #fff; box-shadow: 0 4px 20px rgba(229,9,20,0.4); }
.btn-red:hover:not(:disabled) { box-shadow: 0 8px 30px rgba(255,0,0,0.7); }

.btn-gold { background: linear-gradient(135deg, var(--gold), #B23B00); color: #FFFFFF; box-shadow: 0 4px 20px rgba(255,107,0,0.4); }
.btn-gold:hover:not(:disabled) { box-shadow: 0 8px 30px rgba(255,107,0,0.7); }

.btn-secondary {
  width: 100%; padding: 12px 18px;
  background: rgba(255,255,255,0.05);
  color: var(--text); border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  margin-top: 10px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--border-c); }

/* ─── ROOM CODE BANNER ───────────────────────────────────────── */
.room-code-banner {
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--border-c);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 14px 0 20px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: inset 0 0 40px rgba(0,245,255,0.04);
  position: relative; overflow: hidden;
}
.room-code-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,245,255,0.06), transparent 70%);
  animation: codePulse 3s ease-in-out infinite;
}
@keyframes codePulse {
  0%,100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

.room-code-label {
  font-family: var(--font-hud); font-size: 0.62rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted);
}

.room-code-display {
  font-family: var(--font-hud);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 900; letter-spacing: 14px;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,245,255,0.7), 0 0 50px rgba(0,245,255,0.3);
  animation: codeBlink 5s ease-in-out infinite;
  position: relative; z-index: 1;
}
@keyframes codeBlink {
  0%,90%,100% { opacity: 1; }
  94%  { opacity: 0.7; }
  96%  { opacity: 1; }
  98%  { opacity: 0.8; }
}

.copy-link-btn {
  background: transparent; border: none;
  color: var(--cyan); font-size: 0.8rem; letter-spacing: 0.5px;
  cursor: pointer; opacity: 0.75; transition: opacity 0.2s;
  position: relative; z-index: 1;
}
.copy-link-btn:hover { opacity: 1; }

/* ─── PLAYER CHIPS ───────────────────────────────────────────── */
.section-label {
  font-family: var(--font-hud); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px; text-align: left; width: 100%;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 10px; width: 100%; margin-bottom: 20px;
}

.player-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 700;
  animation: chipBounceIn 0.5s var(--ease-spring) both;
  transition: border-color 0.2s, background 0.2s;
}
.player-chip:hover { background: rgba(255,255,255,0.07); border-color: var(--border-c); }
.player-chip.is-host { border-color: rgba(255,214,0,0.4); }
.player-chip .host-crown { color: var(--gold); font-size: 0.8rem; margin-left: auto; }

@keyframes chipBounceIn {
  from { transform: scale(0.6) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* ─── ROLE CARD (Full-Screen Dramatic) ──────────────────────── */
#role-card {
  transition: border-color 0.5s, box-shadow 0.5s;
  animation: cardReveal 0.6s var(--ease-spring) both;
}
@keyframes cardReveal {
  from { transform: rotateY(90deg) scale(0.8); opacity: 0; }
  to   { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.role-title-text {
  font-family: var(--font-hud);
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 8px; transition: color 0.4s;
}

.secret-word-display {
  font-family: var(--font-hud);
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  font-weight: 900; letter-spacing: 4px;
  line-height: 1.1;
  transition: color 0.4s, text-shadow 0.4s;
}

.secret-word-display.agent-word {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,245,255,0.7), 0 0 50px rgba(0,245,255,0.3);
  animation: wordPulse 2s ease-in-out infinite;
}
.secret-word-display.impostor-word {
  color: var(--red);
  text-shadow: 0 0 20px rgba(255,23,68,0.7), 0 0 50px rgba(255,23,68,0.3);
  animation: wordPulse 1s ease-in-out infinite;
}
@keyframes wordPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.8; }
}

/* ─── TIMER ──────────────────────────────────────────────────── */
.timer-container {
  width: 100%; height: 6px;
  background: rgba(0,0,0,0.5);
  border-radius: 3px;
  overflow: visible;
  margin-bottom: 16px;
  position: relative;
}

.timer-bar {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 3px;
  transition: width 1s linear, background 0.5s;
  position: relative;
}
.timer-bar::after {
  content: '';
  position: absolute; right: -1px; top: -3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: inherit;
  filter: blur(2px);
  transition: background 0.5s;
}
.timer-bar.warning { background: linear-gradient(90deg, var(--gold), var(--orange)); }
.timer-bar.urgent  {
  background: linear-gradient(90deg, var(--orange), var(--red));
  animation: timerUrgent 0.4s ease-in-out infinite;
}
@keyframes timerUrgent {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.65; }
}

.timer-display {
  font-family: var(--font-hud); font-size: 0.9rem; font-weight: 700;
  color: var(--cyan); margin-bottom: 10px; letter-spacing: 1px;
  transition: color 0.3s;
}
.timer-display.warning { color: var(--gold); }
.timer-display.urgent  { color: var(--red); animation: timerUrgent 0.4s ease-in-out infinite; }

/* ─── ROUND INFO STRIP ───────────────────────────────────────── */
.round-strip {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; margin-bottom: 10px;
}

/* ─── CLUE BOARD ─────────────────────────────────────────────── */
.clue-board {
  width: 100%;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px;
}

.clue-card {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  animation: slideInLeft 0.35s var(--ease-out) both;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.clue-card:hover { border-color: var(--border-c); transform: translateX(3px); }

.clue-card.eliminated {
  opacity: 0.5;
  border-color: var(--border-r);
  animation: eliminateCard 0.6s var(--ease-out) both, slideInLeft 0.35s var(--ease-out) both;
}
@keyframes eliminateCard {
  0%  { transform: translateX(0); }
  15% { transform: translateX(-8px) rotate(-1deg); }
  30% { transform: translateX(8px) rotate(1deg); }
  50% { transform: translateX(-6px); }
  70% { transform: translateX(6px); }
  100%{ transform: translateX(0); }
}

.clue-card .player-info { display: flex; align-items: center; gap: 10px; }
.clue-card .p-name { font-weight: 700; font-size: 0.95rem; }
.clue-card .clue-text {
  font-family: var(--font-hud); font-size: 0.95rem; font-weight: 700;
  color: var(--cyan); letter-spacing: 0.5px;
}
.clue-card.eliminated .clue-text { color: var(--red); text-decoration: line-through; }

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── VOTE CARDS ─────────────────────────────────────────────── */
.vote-options-grid { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-bottom: 14px; }

.vote-card {
  background: rgba(13,18,32,0.9);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  position: relative; overflow: hidden;
}
.vote-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red); transform: scaleY(0); transition: transform 0.2s;
  transform-origin: bottom;
}
.vote-card:hover:not(.disabled)::before { transform: scaleY(1); }
.vote-card:hover:not(.disabled) {
  border-color: var(--border-r);
  background: rgba(255,23,68,0.08);
  transform: translateX(4px);
}
.vote-card.selected {
  border-color: var(--red);
  background: rgba(255,23,68,0.12);
  box-shadow: var(--glow-r);
}
.vote-card.selected::before { transform: scaleY(1); }
.vote-card.disabled { opacity: 0.4; cursor: not-allowed; border-style: dashed; }

.vote-card .p-avatar { font-size: 1.8rem; flex-shrink: 0; }
.vote-card .p-name   { font-weight: 700; font-size: 1rem; }
.vote-card .p-clue   { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

.self-badge {
  font-family: var(--font-hud); font-size: 0.6rem; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255,214,0,0.12); color: var(--gold); border: 1px solid rgba(255,214,0,0.3);
}

/* ─── BET SELECTOR ───────────────────────────────────────────── */
.bet-selector { display: flex; gap: 8px; width: 100%; margin-bottom: 16px; }

.bet-btn {
  flex: 1; padding: 10px 6px;
  background: rgba(0,0,0,0.4);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font-hud); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.5px; cursor: pointer; text-align: center;
  transition: all 0.2s var(--ease-spring);
}
.bet-btn:hover { border-color: var(--border-g); color: var(--gold); transform: scale(1.04); }
.bet-btn.selected {
  background: rgba(255,214,0,0.12);
  border-color: var(--border-g); color: var(--gold);
  box-shadow: var(--glow-g); transform: scale(1.04);
}

/* ─── STEAL PHASE ────────────────────────────────────────────── */
.steal-countdown {
  font-family: var(--font-hud);
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 900; color: var(--red); letter-spacing: 6px;
  text-shadow: 0 0 30px rgba(255,23,68,0.8), 0 0 70px rgba(255,23,68,0.4);
  animation: countdownPulse 0.5s ease-in-out infinite;
  line-height: 1;
}
@keyframes countdownPulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* ─── REVEAL CARDS ───────────────────────────────────────────── */
.reveal-list { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 14px 0; }

.reveal-card {
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: rgba(13,18,32,0.9);
  padding: 14px 16px;
  animation: slideUp 0.4s var(--ease-out) both;
}
.reveal-card:nth-child(1) { animation-delay: 0.05s; }
.reveal-card:nth-child(2) { animation-delay: 0.12s; }
.reveal-card:nth-child(3) { animation-delay: 0.19s; }
.reveal-card:nth-child(4) { animation-delay: 0.26s; }
.reveal-card:nth-child(5) { animation-delay: 0.33s; }

.reveal-card.agent-rc    { border-color: var(--border-c); }
.reveal-card.impostor-rc { border-color: var(--border-r); background: rgba(255,23,68,0.07); }

.reveal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.pill {
  font-family: var(--font-hud); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 1.5px; padding: 3px 10px; border-radius: 999px;
}
.pill-agent    { background: rgba(0,245,255,0.12); color: var(--cyan); border: 1px solid var(--border-c); }
.pill-impostor { background: rgba(255,23,68,0.15); color: var(--red); border: 1px solid var(--border-r); }

.reveal-clue { font-family: var(--font-hud); font-size: 1rem; font-weight: 700; color: #FFF; margin: 4px 0; }
.reveal-voted { font-size: 0.82rem; color: var(--muted); }
.reveal-pts { font-family: var(--font-hud); font-size: 0.82rem; font-weight: 800; }
.pts-pos { color: var(--green); }
.pts-neg { color: var(--red); }

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

/* ─── SCOREBOARD ─────────────────────────────────────────────── */
.scoreboard-list { display: flex; flex-direction: column; gap: 9px; width: 100%; margin: 16px 0; }

.score-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.3s;
  animation: scoreRowIn 0.4s var(--ease-out) both;
}
.score-row:nth-child(1) { animation-delay: 0.04s; }
.score-row:nth-child(2) { animation-delay: 0.09s; }
.score-row:nth-child(3) { animation-delay: 0.14s; }
.score-row:nth-child(4) { animation-delay: 0.19s; }
.score-row.mine { border-color: var(--border-c); box-shadow: 0 0 12px rgba(0,245,255,0.12); }

@keyframes scoreRowIn {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.score-rank { font-family: var(--font-hud); font-size: 1rem; font-weight: 900; color: var(--muted); width: 28px; }
.score-rank.r1 { color: var(--gold); }
.score-rank.r2 { color: #CBD5E1; }
.score-rank.r3 { color: #B45309; }

.score-player { display: flex; align-items: center; gap: 10px; flex: 1; }
.score-name   { font-size: 1rem; font-weight: 700; }
.score-gain   { font-family: var(--font-hud); font-size: 0.75rem; font-weight: 700; margin-left: 6px; }
.score-gain.pos { color: var(--green); }
.score-gain.neg { color: var(--red); }
.score-pts { font-family: var(--font-hud); font-size: 1.05rem; font-weight: 800; color: var(--cyan); }

/* ─── PODIUM ─────────────────────────────────────────────────── */
.podium-stage {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 10px; height: 210px; width: 100%; margin: 22px 0 26px;
}

.podium-col { display: flex; flex-direction: column; align-items: center; flex: 1; }

.podium-platform {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  border-radius: 8px 8px 0 0;
  padding: 10px 6px;
  position: relative;
}
.podium-platform::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; border-radius: 8px 8px 0 0;
  background: rgba(255,255,255,0.25);
}

.podium-col.rank-1 .podium-platform {
  height: 140px;
  background: linear-gradient(180deg, rgba(255,214,0,0.85), rgba(180,83,9,0.85));
  box-shadow: 0 0 40px rgba(255,214,0,0.35);
  animation: podiumRise 0.6s var(--ease-spring) both 0.1s;
}
.podium-col.rank-2 .podium-platform {
  height: 100px;
  background: linear-gradient(180deg, rgba(148,163,184,0.85), rgba(71,85,105,0.85));
  animation: podiumRise 0.6s var(--ease-spring) both 0.25s;
}
.podium-col.rank-3 .podium-platform {
  height: 72px;
  background: linear-gradient(180deg, rgba(217,119,6,0.85), rgba(120,53,15,0.85));
  animation: podiumRise 0.6s var(--ease-spring) both 0.4s;
}

@keyframes podiumRise {
  from { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
  to   { transform: scaleY(1); opacity: 1; transform-origin: bottom; }
}

.podium-avatar { font-size: 2.2rem; margin-bottom: 4px; animation: avatarBounce 0.5s var(--ease-spring) both; }
@keyframes avatarBounce {
  from { transform: scale(0) translateY(-20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.podium-name  { font-size: 0.88rem; font-weight: 800; text-align: center; margin-bottom: 2px; }
.podium-pts   { font-family: var(--font-hud); font-size: 0.72rem; color: var(--cyan); }
.podium-label { font-family: var(--font-hud); font-size: 0.65rem; font-weight: 900; letter-spacing: 1px; margin-top: 4px; }

.awards-box {
  width: 100%; background: rgba(0,0,0,0.35);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 18px; text-align: left;
}
.award-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.88rem; margin-bottom: 8px; }
.award-row:last-child { margin-bottom: 0; }

/* ─── SECRET WORD BOX ────────────────────────────────────────── */
.word-box {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  text-align: center;
}
.word-box .field-label {
  font-family: var(--font-hud); font-size: 0.6rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}

/* ─── DOUBLE IMPOSTOR NOTICE ─────────────────────────────────── */
.double-notice {
  background: rgba(255,23,68,0.1);
  border: 1px solid var(--border-r);
  border-radius: 10px; padding: 10px 16px;
  font-size: 0.84rem; color: var(--red); font-weight: 600;
  margin-bottom: 14px;
  display: none; align-items: center; gap: 8px;
  animation: flashIn 0.5s var(--ease-out);
}
@keyframes flashIn {
  0%  { opacity: 0; transform: scale(0.95); }
  60% { opacity: 1; transform: scale(1.02); }
  100%{ opacity: 1; transform: scale(1); }
}

/* ─── TOAST ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 999; pointer-events: none;
  width: min(88vw, 400px);
}
.toast {
  background: rgba(7,10,20,0.95);
  border: 1px solid var(--border-c);
  color: #FFF; padding: 10px 20px;
  border-radius: 999px; font-size: 0.86rem; font-weight: 600;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 12px rgba(0,245,255,0.15);
  text-align: center;
  animation: toastIn 0.35s var(--ease-spring) both;
}
.toast.error   { border-color: var(--border-r); box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 12px rgba(255,23,68,0.2); }
.toast.success { border-color: rgba(0,230,118,0.4); }
.toast.warn    { border-color: var(--border-g); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ─── CURSOR BLINK KEYFRAME ──────────────────────────────────── */
@keyframes cursorBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ─── PROGRESS STATUS ────────────────────────────────────────── */
.progress-status { font-size: 0.86rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ─── SCREEN-SHAKE CLASS ─────────────────────────────────────── */
.shaking {
  animation: shake 0.4s ease-in-out;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  15%      { transform: translateX(-10px) rotate(-1deg); }
  30%      { transform: translateX(10px) rotate(1deg); }
  45%      { transform: translateX(-8px); }
  60%      { transform: translateX(8px); }
  75%      { transform: translateX(-4px); }
  90%      { transform: translateX(4px); }
}

/* ─── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .logo-title { font-size: 0.7rem; letter-spacing: 1.5px; }
  .glass-card { padding: 20px 14px; border-radius: 16px; }
  .hero-title { font-size: 1.7rem; }
  .room-code-display { font-size: 1.9rem; letter-spacing: 10px; }
  .neon-input.code-input { font-size: 1.6rem; letter-spacing: 9px; }
  .podium-stage { height: 170px; }
  .steal-countdown { font-size: 3.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   🃏 JESTER ROLE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Jester role card — purple/chaotic theme */
.jester-card {
  background: linear-gradient(
    135deg,
    rgba(168,85,247,0.1) 0%,
    rgba(11,16,28,0.95)  50%,
    rgba(255,214,0,0.06) 100%
  ) !important;
  border-color: rgba(168,85,247,0.55) !important;
  box-shadow:
    0 0 0 1px rgba(168,85,247,0.2),
    0 8px 40px rgba(168,85,247,0.25),
    inset 0 1px 0 rgba(255,214,0,0.12) !important;
  animation: jesterPulse 2.5s ease-in-out infinite;
}

@keyframes jesterPulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(168,85,247,0.2), 0 8px 40px rgba(168,85,247,0.25); }
  50%      { box-shadow: 0 0 0 2px rgba(168,85,247,0.5), 0 8px 60px rgba(168,85,247,0.45), 0 0 0 8px rgba(168,85,247,0.05); }
}

/* Jester secret word — gold on purple gradient */
.jester-word {
  background: linear-gradient(135deg, #FFD600, #A855F7) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  border-color: rgba(168,85,247,0.4) !important;
  animation: jesterWordWobble 0.8s ease-in-out infinite alternate;
}

@keyframes jesterWordWobble {
  from { transform: scale(1)    rotate(-1deg); }
  to   { transform: scale(1.02) rotate(1deg);  }
}

/* Jester reveal pill */
.pill-jester {
  background: rgba(168,85,247,0.18);
  border: 1px solid rgba(168,85,247,0.5);
  color: #C084FC;
}

/* Jester reveal card */
.jester-rc {
  background: rgba(168,85,247,0.08);
  border-left: 3px solid rgba(168,85,247,0.6) !important;
}

/* Podium award row for Jester King */
.award-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 6px;
  font-size: 0.85rem;
}

/* ════════════════════════════════════════════════════════════════
   SCREEN-SPECIFIC CARTOON CHARACTER STYLES
   ════════════════════════════════════════════════════════════════ */

/* ─── LOBBY cartoon banner ──────────────────────────────────────── */
.lobby-cartoon-wrap {
  width: 100%;
  margin-bottom: 16px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,245,255,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.lobby-cartoon {
  width: 100%;
  display: block;
  border-radius: 12px;
  animation: charBreathe 4s ease-in-out infinite;
}
@keyframes charBreathe {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}
.lobby-cartoon-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-family: var(--font-hud);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: rgba(0,245,255,0.8);
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  animation: pulseText 2s ease-in-out infinite;
}
@keyframes pulseText {
  0%,100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* ─── DEBATE peeking detective ───────────────────────────────────── */
.debate-peek-char {
  position: absolute;
  left: -10px;
  bottom: 20px;
  width: 120px;
  z-index: 0;
  pointer-events: none;
  animation: peekIn 0.6s cubic-bezier(0.34,1.56,0.64,1) both, peekBob 3s ease-in-out 0.8s infinite;
}
.debate-peek-img {
  width: 100%;
  display: block;
  border-radius: 8px;
  filter: drop-shadow(0 0 12px rgba(0,245,255,0.4));
}
@keyframes peekIn {
  from { transform: translateX(-80px) rotate(-20deg); opacity: 0; }
  to   { transform: translateX(0)     rotate(0deg);   opacity: 1; }
}
@keyframes peekBob {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}

/* ─── VOTE character strip ───────────────────────────────────────── */
.vote-char-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 8px;
}
.vote-char-side {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,23,68,0.4);
  box-shadow: 0 0 12px rgba(255,23,68,0.3);
}
.vote-char-left  { animation: charShiver 0.4s ease-in-out infinite alternate; }
.vote-char-right {
  animation: charShiver 0.4s ease-in-out 0.2s infinite alternate;
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 0 12px rgba(168,85,247,0.3);
}
@keyframes charShiver {
  from { transform: rotate(-4deg) scale(1); }
  to   { transform: rotate(4deg)  scale(1.05); }
}

/* ─── STEAL busted character ─────────────────────────────────────── */
.steal-char-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255,23,68,0.6);
  box-shadow: 0 0 0 6px rgba(255,23,68,0.1), 0 0 30px rgba(255,23,68,0.4);
  display: block;
  margin: 0 auto 12px;
  animation: bustedShake 0.15s ease-in-out infinite alternate;
}
.steal-char-spec {
  border-color: rgba(0,245,255,0.5);
  box-shadow: 0 0 0 6px rgba(0,245,255,0.08), 0 0 20px rgba(0,245,255,0.3);
  animation: bustedShake 0.25s ease-in-out infinite alternate;
}
@keyframes bustedShake {
  from { transform: rotate(-3deg); }
  to   { transform: rotate(3deg); }
}

/* ─── REVEAL outcome character ───────────────────────────────────── */
.reveal-char-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.reveal-char-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid rgba(0,245,255,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 40px rgba(0,245,255,0.1);
  animation: revealCharFloat 3s ease-in-out infinite;
}
@keyframes revealCharFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-8px) scale(1.02); }
}
.jester-card .reveal-char-img {
  border-color: rgba(168,85,247,0.6);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 50px rgba(168,85,247,0.35);
  animation: revealJesterFloat 1.2s ease-in-out infinite;
}
@keyframes revealJesterFloat {
  0%,100% { transform: translateY(0) rotate(-2deg) scale(1); }
  50%      { transform: translateY(-10px) rotate(3deg) scale(1.04); }
}
.danger-card .reveal-char-img {
  border-color: rgba(255,23,68,0.6);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 40px rgba(255,23,68,0.3);
}
