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

:root {
  --bg-primary: #050811;
  --bg-surface: #0a1122;
  --bg-surface-elevated: #111d38;
  --bg-glass: rgba(10, 17, 34, 0.75);
  --border-subtle: rgba(0, 242, 254, 0.15);
  --border-active: rgba(0, 242, 254, 0.5);
  --accent-cyan: #00f2fe;
  --accent-cyan-glow: rgba(0, 242, 254, 0.35);
  --accent-teal: #00c6ff;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-crimson: #ef4444;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

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

/* Background Atmosphere: Ocean Depths & Radar Sweep */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #050811 0%, #03050a 100%);
  pointer-events: none;
  z-index: -2;
}

/* Radar Scanlines Overlay */
.scanlines {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
}

/* Ambient Radar Sweep circle */
.radar-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(0, 242, 254, 0.08);
  pointer-events: none;
  z-index: -1;
  box-shadow: 0 0 100px rgba(0, 242, 254, 0.03);
}

.radar-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 242, 254, 0.12) 60deg, transparent 65deg);
  animation: radarRotate 8s linear infinite;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Header & HUD Bar */
.game-header {
  height: 70px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
  object-fit: cover;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid var(--border-subtle);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.room-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 4px 10px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.timer-badge {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--accent-crimson);
  color: #ff6b6b;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulseGlow 1.5s infinite;
}

.timer-badge.normal {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  animation: none;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.7); }
}

.audio-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.audio-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* Main Container Layout */
.app-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Phase Panels */
.phase-panel {
  display: none;
  width: 100%;
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.phase-panel.active {
  display: flex;
  flex-direction: column;
}

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

/* =====================================================
   SCREEN 1: LANDING & ROOM ENTRY
   ===================================================== */
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

.hero-img-wrap {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: transform 0.8s ease;
}

.hero-card:hover .hero-img {
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 17, 0.1) 0%, rgba(5, 8, 17, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  line-height: 1.5;
}

/* Avatar Selector */
.avatar-selection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.avatar-option {
  position: relative;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-subtle);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  transition: all 0.25s ease;
}

.avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-option.selected {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-cyan-glow);
  transform: translateY(-2px);
}

.avatar-option .role-tag {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  text-align: center;
  padding: 3px 0;
  color: var(--text-primary);
}

/* Action Boxes */
.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.action-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.action-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
}

.cyber-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 12px 14px;
  outline: none;
  transition: all 0.2s;
}

.cyber-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.cyber-btn {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
  color: #030814;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px var(--accent-cyan-glow);
}

.cyber-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 242, 254, 0.5);
}

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

.cyber-btn.secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

.cyber-btn.secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.cyber-btn.demo-mode {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.cyber-btn.demo-mode:hover {
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6);
}

/* =====================================================
   SCREEN 2: LOBBY
   ===================================================== */
.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  background: var(--bg-glass);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.lobby-code-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.code-display {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--accent-cyan);
  background: var(--bg-surface);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.copy-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.crew-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.roster-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.roster-card.is-me {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
}

.roster-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  object-fit: cover;
}

.roster-card.is-me .roster-avatar {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.roster-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.roster-status {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.host-badge-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
  padding: 2px 6px;
  border-radius: 4px;
}

.lobby-controls {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

/* =====================================================
   SCREEN 3: WARM-UP (STYLE EXTRACTION)
   ===================================================== */
.warmup-card {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.warmup-header {
  margin-bottom: 24px;
  text-align: center;
}

.warmup-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.warmup-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.prompt-block {
  margin-bottom: 20px;
}

.prompt-question {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt-num {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.prompt-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  resize: vertical;
  min-height: 60px;
  outline: none;
  transition: all 0.2s;
}

.prompt-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* =====================================================
   SCREEN 4: DISCUSSION & COMMS CHAT
   ===================================================== */
.discussion-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  height: calc(100vh - 120px);
  min-height: 550px;
}

@media (max-width: 850px) {
  .discussion-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .comms-sidebar {
    display: none;
  }
}

.comms-sidebar {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.suspects-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.suspect-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid transparent;
}

.suspect-item.typing {
  border-color: var(--accent-cyan);
  animation: pulseBorder 1.2s infinite;
}

@keyframes pulseBorder {
  0%, 100% { border-color: rgba(0, 242, 254, 0.2); }
  50% { border-color: rgba(0, 242, 254, 0.8); }
}

.suspect-item img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.suspect-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.chat-center {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.chat-topic-banner {
  padding: 14px 20px;
  background: rgba(0, 242, 254, 0.06);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topic-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-cyan);
  margin-bottom: 2px;
}

.topic-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chat-stream {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  display: flex;
  gap: 12px;
  max-width: 82%;
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.chat-bubble.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.bubble-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  flex-shrink: 0;
}

.chat-bubble.mine .bubble-avatar {
  border-color: var(--accent-cyan);
}

.bubble-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bubble-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.chat-bubble.mine .bubble-meta {
  justify-content: flex-end;
}

.bubble-sender {
  font-weight: 600;
  color: var(--text-muted);
}

.bubble-body {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-primary);
  word-break: break-word;
}

.chat-bubble.mine .bubble-body {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(0, 198, 255, 0.1) 100%);
  border-color: var(--border-active);
  color: #fff;
}

.typing-bar {
  padding: 6px 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-input-bar {
  padding: 14px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
}

.chat-text-input {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.chat-text-input:focus {
  border-color: var(--accent-cyan);
}

/* =====================================================
   SCREEN 5: VOTING
   ===================================================== */
.voting-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

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

.voting-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 30px;
}

.voting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.vote-card {
  background: var(--bg-glass);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.vote-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.2);
}

.vote-card.selected {
  border-color: var(--accent-crimson);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}

.vote-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--border-subtle);
  object-fit: cover;
}

.vote-card.selected .vote-avatar {
  border-color: var(--accent-crimson);
}

.vote-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.vote-action-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid var(--border-subtle);
}

.vote-card.selected .vote-action-btn {
  background: var(--accent-crimson);
  color: #fff;
  border-color: var(--accent-crimson);
}

/* =====================================================
   SCREEN 6: DRAMATIC REVEAL & POST-GAME
   ===================================================== */
.reveal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.reveal-stage {
  perspective: 1000px;
  margin: 30px 0;
}

.reveal-card-flip {
  width: 260px;
  height: 340px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-card-flip.flipped {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-subtle);
  background: var(--bg-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.flip-front {
  background: radial-gradient(circle, #0e172a 0%, #060a14 100%);
}

.flip-front .sonar-radar-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px dashed var(--accent-cyan);
  animation: radarRotate 4s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.flip-back {
  transform: rotateY(180deg);
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, #060a14 100%);
  border-color: var(--accent-crimson);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.5);
}

.flip-back img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-crimson);
  object-fit: cover;
  margin-bottom: 14px;
}

.flip-back h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 4px;
}

.impostor-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--accent-crimson);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.outcome-banner {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.outcome-banner.crew-win {
  color: var(--accent-emerald);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.outcome-banner.ai-win {
  color: var(--accent-crimson);
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Suspicion Meter Section */
.suspicion-card {
  width: 100%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  text-align: left;
}

.suspicion-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.meter-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meter-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-surface);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meter-target {
  font-weight: 600;
}

.meter-score {
  font-family: var(--font-mono);
  color: var(--accent-amber);
}

.meter-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-amber) 100%);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

.meter-reason {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(10, 17, 34, 0.95);
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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