/* Core Structural Tokens */
:root {
  --bg-dark: #09090b;
  --bg-card: #18181b;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent-red: #ef4444;
  --border-color: #27272a;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
}

/* Utilities */
.hidden { display: none !important; }

/* Admin Panel Layout */
.admin-panel {
  background: #27272a;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}
.btn-secondary { 
  background: #3f3f46; 
  color: white; 
  border: none; 
  padding: 6px 12px; 
  border-radius: 6px; 
  font-weight: 600; 
  cursor: pointer; 
}

/* Mobile View Constraints */
.interface-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 50px);
}
.game-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 30px; 
}
.logo-text { font-weight: 900; letter-spacing: -0.05em; color: var(--accent-red); }
.setup-tag {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 4px;
}
.timer-badge { 
  background: var(--bg-card); 
  padding: 6px 14px; 
  border-radius: 20px; 
  font-weight: 700; 
  border: 1px solid var(--border-color); 
  font-variant-numeric: tabular-nums; 
}
.card { 
  background: var(--bg-card); 
  border: 1px solid var(--border-color); 
  border-radius: 12px; 
  padding: 24px; 
  flex-grow: 1; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
}
.clue-text { font-size: 1.15rem; line-height: 1.6; font-weight: 500; white-space: pre-line; }
.btn-primary { 
  width: 100%; 
  background: var(--accent-red); 
  color: white; 
  border: none; 
  padding: 14px; 
  border-radius: 8px; 
  font-weight: 700; 
  font-size: 1rem; 
  cursor: pointer; 
}

/* Form UI Utilities */
.form-step { width: 100%; display: flex; flex-direction: column; }
.input-group { display: flex; flex-direction: column; margin-bottom: 16px; text-align: left; }
.input-group label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; color: var(--text-muted); }
.input-group input { background: #09090b; border: 1px solid var(--border-color); padding: 12px; border-radius: 6px; color: white; font-size: 1rem; }
.input-group input:focus { border-color: var(--accent-red); outline: none; }
#lobby-player-list li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.02); font-weight: 600; font-size: 0.95rem; }
#lobby-player-list li::before { content: "• "; color: var(--accent-red); }

/* Cinematic Theater Mode HUD Layout */
.theater-overlay {
  position: fixed; inset: 0; background: #020205; z-index: 5000; display: flex; align-items: center; justify-content: center; text-align: center;
}
.broadcast-alert-badge { 
  background: rgba(239, 68, 68, 0.1); 
  border: 1px solid var(--accent-red); 
  color: var(--accent-red); 
  padding: 4px 12px; 
  border-radius: 30px; 
  font-size: 0.8rem; 
  font-weight: 800; 
  letter-spacing: 0.1em; 
}
.broadcast-title { font-size: 3rem; font-weight: 900; letter-spacing: -0.03em; margin-top: 16px; }
.cinematic-clock { 
  font-size: 12rem; 
  font-weight: 900; 
  letter-spacing: -0.05em; 
  color: var(--accent-red); 
  font-variant-numeric: tabular-nums; 
  margin-top: 20px; 
}

/* Lockout System Presentation Overlay */
.lockout-cover {
  position: fixed; inset: 0; z-index: 9999; background: rgba(9, 9, 11, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center;
}
.lockout-box { max-width: 300px; display: flex; flex-direction: column; align-items: center; }
.alert-icon { 
  width: 50px; 
  height: 50px; 
  border-radius: 50%; 
  background: rgba(239, 68, 68, 0.1); 
  border: 1px solid var(--accent-red); 
  color: var(--accent-red); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: 800; 
  font-size: 1.2rem; 
  margin-bottom: 20px; 
}
.lockout-clock { font-size: 3.5rem; font-weight: 800; margin-top: 20px; color: var(--accent-red); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }