:root {
  --bg-deep: #0e071d;
  --bg-card: rgba(24, 12, 48, 0.88);
  --border-glass: rgba(168, 85, 247, 0.25);
  --border-glass-orange: rgba(255, 107, 0, 0.35);

  --purple-primary: #9333ea;
  --purple-vibrant: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.35);
  --purple-soft: rgba(147, 51, 234, 0.18);

  --orange-primary: #ff6b00;
  --orange-vibrant: #ff8533;
  --orange-glow: rgba(255, 107, 0, 0.35);
  --orange-soft: rgba(255, 107, 0, 0.16);

  --text-main: #ffffff;
  --text-muted: #b9a9ec;
  --text-dim: #7f71a8;

  --success: #4ade80;
  --danger: #f87171;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* TOP BAR */
.top-nav {
  position: sticky;
  top: 10px;
  z-index: 40;
  max-width: 640px;
  width: calc(100% - 20px);
  margin: 10px auto 0;
  background: rgba(18, 9, 36, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
}

.brand-badge {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--purple-primary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
}
.brand-text span {
  color: var(--orange-vibrant);
}

.game-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--purple-soft);
  border: 1px solid var(--purple-vibrant);
  padding: 3px 10px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: #e9d5ff;
}

.glow-dot {
  width: 6px;
  height: 6px;
  background: #a855f7;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.sound-toggle {
  cursor: pointer;
  font-size: 16px;
}

/* SHOW PROGRESS STEPPER */
.show-stepper {
  max-width: 640px;
  width: calc(100% - 20px);
  margin: 10px auto 0;
  background: rgba(14, 7, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
  position: relative;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
}
.step-item span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.step-item.active {
  color: #ffaa66;
}
.step-item.active span {
  background: var(--orange-vibrant);
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 10px var(--orange-glow);
}
.step-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
}

/* APP SHELL */
.app-shell {
  position: relative;
  z-index: 2;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 12px 90px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.screen-view {
  display: none;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.screen-view.active {
  display: flex;
}

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

/* HERO SECTION */
.hero-box {
  text-align: center;
  margin-top: 6px;
}
.hero-chip {
  display: inline-block;
  background: var(--orange-soft);
  border: 1px solid var(--border-glass-orange);
  color: #ffaa66;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 8px;
}
.game-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 8vw, 54px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 0.95;
}
.game-title span {
  background: linear-gradient(135deg, var(--orange-vibrant) 0%, var(--purple-vibrant) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.game-tag-ribbon {
  display: inline-block;
  background: linear-gradient(135deg, #9333ea, #ff6b00);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 3px 12px;
  border-radius: 6px;
  margin-top: 4px;
}
.game-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 480px;
  margin: 10px auto 0;
}

/* CARDS */
.auth-card, .lobby-header-card, .prompt-stage-card, .podium-card, .submission-status-card, .show-rundown-box {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.avatar-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 8px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
}
.avatar-btn.selected {
  background: var(--purple-soft);
  border-color: var(--purple-vibrant);
  box-shadow: 0 0 14px var(--purple-glow);
  transform: scale(1.08);
}

.input-group {
  margin-bottom: 16px;
}
input[type="text"] {
  width: 100%;
  background: rgba(10, 5, 20, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 16px;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  outline: none;
}
input[type="text"]:focus {
  border-color: var(--orange-vibrant);
  box-shadow: 0 0 16px var(--orange-glow);
}

.action-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* BUTTONS */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 16px;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange-primary) 0%, #e05600 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px var(--orange-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff8533 0%, var(--orange-primary) 100%);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.btn-massive {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--purple-primary) 100%);
  color: #ffffff;
  font-size: 18px;
  padding: 16px 24px;
  border-radius: 18px;
  box-shadow: 0 12px 30px var(--purple-glow);
  width: 100%;
}

.or-divider {
  display: flex;
  align-items: center;
  color: var(--text-dim);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.or-divider span { padding: 0 10px; }

.join-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 10px;
}
.join-row input {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* LOBBY */
.room-code-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 5, 22, 0.9);
  border: 1.5px solid var(--purple-vibrant);
  border-radius: 18px;
  padding: 12px 18px;
}
.code-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 3px;
  color: #ffaa66;
}
.btn-copy-code {
  background: var(--purple-soft);
  border: 1px solid var(--purple-vibrant);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lobby-share-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

.teams-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .teams-container { grid-template-columns: 1fr; }
}

.team-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-panel.team-purple { border: 1.5px solid var(--border-glass); }
.team-panel.team-orange { border: 1.5px solid var(--border-glass-orange); }

.team-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.team-title-row h3 {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 900;
}
.team-dot { width: 9px; height: 9px; border-radius: 50%; }
.team-dot.purple { background: var(--purple-vibrant); }
.team-dot.orange { background: var(--orange-vibrant); }

.btn-join-team {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 99px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 60px;
}
.player-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}
.player-info { display: flex; align-items: center; gap: 8px; }

.show-rundown-box {
  padding: 14px;
}
.rundown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rd-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* GAMEPLAY HUD & POWER-UP BAR */
.game-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.round-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.8px;
  color: #d8b4fe;
}
.score-pill {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.score-p { color: #c084fc; }
.score-o { color: #ff944d; }
.score-divider { color: rgba(255, 255, 255, 0.2); }

.powerup-bar {
  background: rgba(20, 10, 38, 0.9);
  border: 1.5px solid var(--border-glass-orange);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.powerup-label {
  font-size: 10.5px;
  font-weight: 900;
  color: #ffaa66;
  letter-spacing: 0.5px;
}
.powerup-chips-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.powerup-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 4px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.powerup-chip:hover {
  border-color: var(--orange-vibrant);
  background: var(--orange-soft);
}
.powerup-chip.active {
  background: var(--orange-soft);
  border-color: var(--orange-vibrant);
  box-shadow: 0 0 12px var(--orange-glow);
}
.pu-count {
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 5px;
  border-radius: 99px;
  font-size: 9.5px;
}

.prompt-stage-card {
  text-align: center;
  padding: 22px 16px;
}
.prompt-category {
  display: inline-block;
  background: var(--purple-soft);
  border: 1px solid var(--purple-vibrant);
  color: #d8b4fe;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: 99px;
  margin-bottom: 8px;
}
.prompt-question {
  font-family: var(--font-display);
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 900;
  line-height: 1.25;
}

/* PERSON FOCUS BADGE */
.person-focus-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.15);
  border: 1.5px solid var(--orange-vibrant);
  padding: 5px 14px;
  border-radius: 99px;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: #ffaa66;
  box-shadow: 0 0 14px var(--orange-glow);
}
.person-focus-badge strong {
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* INTERACTIVE PHASE BOXES */
.phase-interactive-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* PHASE 1: TARGET PERSON VS GUESSER */
.role-box {
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.role-box.cluegiver {
  background: rgba(147, 51, 234, 0.15);
  border: 1.5px solid var(--purple-vibrant);
}
.role-box.guesser {
  background: rgba(255, 107, 0, 0.12);
  border: 1.5px solid var(--orange-vibrant);
}
.role-badge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
  color: #ffaa66;
}
.role-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* GUESSER LOCKED WAIT BANNER */
.guesser-wait-banner {
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px dashed rgba(255, 107, 0, 0.5);
  border-radius: 16px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: #ffffff;
}
.lock-spin-icon {
  font-size: 32px;
  animation: pulseSpin 2s infinite ease-in-out;
}
@keyframes pulseSpin {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}
.sub-hint {
  font-size: 11.5px;
  color: var(--text-dim);
}

/* SLIDER */
.spectrum-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.spec-label { font-size: 11.5px; font-weight: 700; color: var(--text-muted); max-width: 40%; }
.spec-val-badge {
  background: var(--orange-soft);
  border: 1.5px solid var(--orange-vibrant);
  color: #ffaa66;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  padding: 3px 12px;
  border-radius: 99px;
}
.slider-container { padding: 12px 2px; }
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, #9333ea 0%, #ff6b00 100%);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid #ff6b00;
  box-shadow: 0 0 14px var(--orange-glow);
  cursor: pointer;
}

/* PHASE 2: ROOM PLAYERS GRID */
.room-players-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.room-player-choice-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 10px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.room-player-choice-btn:hover {
  border-color: var(--orange-vibrant);
  background: var(--orange-soft);
}
.room-player-choice-btn.selected {
  border-color: var(--orange-vibrant);
  background: var(--orange-soft);
  box-shadow: 0 0 16px var(--orange-glow);
}

/* PHASE 3: RAPID BLITZ */
.blitz-timer-pill {
  align-self: center;
  background: rgba(248, 113, 113, 0.15);
  border: 1.5px solid #f87171;
  color: #f87171;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  padding: 6px 20px;
  border-radius: 99px;
  animation: timerPulse 1s infinite alternate;
}
@keyframes timerPulse {
  from { transform: scale(1); }
  to { transform: scale(1.08); box-shadow: 0 0 16px rgba(248, 113, 113, 0.5); }
}

.single-word-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.single-word-wrapper input {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

/* PHASE 4: HOT SEAT */
.hotseat-box {
  border: 2px solid #ff6b00;
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.35);
}
.hotseat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.flame-icon { font-size: 26px; }
.hotseat-banner {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  color: #ffaa66;
  letter-spacing: 1px;
}
.dilemma-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dilemma-choice-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 16px 14px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}
.dilemma-choice-btn.selected {
  border-color: var(--orange-vibrant);
  background: var(--orange-soft);
  box-shadow: 0 0 16px var(--orange-glow);
}
.dilemma-vs {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  color: var(--text-dim);
  text-align: center;
}

/* SUBMISSION STATUS */
.submission-status-card { text-align: center; padding: 12px 16px; }
.ready-count-text { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.ready-avatars { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.ready-avatar-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.ready-avatar-pill.submitted {
  background: rgba(74, 222, 128, 0.2);
  border-color: #4ade80;
}
.btn-text-only {
  background: none;
  border: none;
  color: #ffaa66;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  text-decoration: underline;
}

/* REVEAL SCREEN */
.reveal-banner { text-align: center; }
.reveal-pill {
  display: inline-block;
  background: var(--orange-soft);
  border: 1px solid var(--orange-vibrant);
  color: #ffaa66;
  font-size: 10.5px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 6px;
}
.reveal-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.reveal-arena { display: flex; flex-direction: column; gap: 14px; }
.reveal-team-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.reveal-team-card.synced {
  border: 2px solid #4ade80;
  box-shadow: 0 0 25px rgba(74, 222, 128, 0.3);
}
.reveal-team-card.miss { border: 1.5px solid rgba(248, 113, 113, 0.4); }

.sync-status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
}
.sync-status-badge.perfect { background: rgba(74, 222, 128, 0.2); border: 1px solid #4ade80; color: #4ade80; }
.sync-status-badge.miss { background: rgba(248, 113, 113, 0.15); border: 1px solid rgba(248, 113, 113, 0.4); color: #f87171; }

/* DUAL SLIDER TRACK VISUALIZER ON REVEAL */
.dual-slider-track-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.track-bar {
  position: relative;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #9333ea, #ff6b00);
  border-radius: 99px;
  margin: 18px 0;
}
.marker-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}
.marker-pin.target {
  background: #4ade80;
  border: 2px solid #ffffff;
  color: #000;
}
.marker-pin.guess {
  background: #ff6b00;
  border: 2px solid #ffffff;
  color: #fff;
}
.marker-label-floating {
  position: absolute;
  top: -24px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.reveal-answers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reveal-player-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.reveal-player-name { font-size: 11.5px; font-weight: 700; color: var(--text-muted); }
.reveal-player-val { font-family: var(--font-display); font-size: 17px; font-weight: 900; }

/* PODIUM & ROAST REPORT */
.podium-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 18px;
}
.podium-crown { font-size: 46px; }
.podium-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 5.5vw, 34px);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, var(--orange-vibrant) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.telepathy-quotient-box {
  background: var(--purple-soft);
  border: 1.5px solid var(--purple-vibrant);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tq-label { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: #d8b4fe; }
.tq-val { font-family: var(--font-display); font-size: 42px; font-weight: 900; color: #ffffff; text-shadow: 0 0 16px var(--purple-vibrant); }
.tq-diagnosis { font-size: 13.5px; font-weight: 700; color: #ffaa66; }

.roast-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.roast-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.roast-badge { font-size: 10px; font-weight: 900; color: #4ade80; }
.roast-badge.fail { color: #f87171; }
.roast-text { font-size: 12px; font-weight: 600; color: #e2e8f0; line-height: 1.35; }

.final-scores-table { display: flex; flex-direction: column; gap: 6px; }
.gameover-actions { display: flex; flex-direction: column; gap: 10px; }

/* REACTION BAR */
.reaction-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(18, 9, 36, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 6px 12px;
  display: flex;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}
.react-btn { background: none; border: none; font-size: 22px; cursor: pointer; }
.react-btn:active { transform: scale(1.35); }

.floating-particle {
  position: fixed;
  bottom: 50px;
  pointer-events: none;
  font-size: 30px;
  z-index: 99;
  animation: floatUp 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  15% { opacity: 1; transform: translateY(-25px) scale(1.2); }
  100% { transform: translateY(-300px) scale(0.9); opacity: 0; }
}
