/* ============================================
   EL SOSPECHOSO - CSS
   Estética: Campamento de Sospechosos
   ============================================ */

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2333;
  --bg-card-alt: #21262d;
  --color-orange: #f97316;
  --color-orange-dark: #c2410c;
  --color-green: #16a34a;
  --color-green-dark: #166534;
  --color-green-pine: #2d6a4f;
  --color-sand: #d4a96a;
  --color-sand-light: #f0d5a0;
  --color-yellow: #fbbf24;
  --color-red: #ef4444;
  --color-red-dark: #991b1b;
  --color-text: #f0f6fc;
  --color-text-muted: #8b949e;
  --color-text-dim: #6e7681;
  --color-border: #30363d;
  --color-border-light: #3d444d;
  --color-impostor: #dc2626;
  --color-impostor-bg: #1c1010;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-button: 0 2px 8px rgba(0,0,0,0.4);
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.875rem;
  --font-size-3xl: 2.25rem;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#app {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: none;
}

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  animation: fadeIn 0.25s ease;
}

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

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px rgba(249,115,22,0.4); }
  50% { box-shadow: 0 0 20px rgba(249,115,22,0.8); }
}

/* ---- HEADER ---- */
.screen-header {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--color-border);
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 10;
}

.screen-header h2 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  flex: 1;
}

.screen-header .back-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--font-size-xl);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}

.screen-header .back-btn:hover {
  color: var(--color-text);
}

/* ---- CONTENT AREA ---- */
.screen-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* ---- HOME SCREEN ---- */
.home-screen {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.home-screen::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.home-screen::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(45,106,79,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero {
  padding: 40px 24px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.home-logo {
  font-size: 56px;
  margin-bottom: 8px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(249,115,22,0.3));
}

.home-title {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.home-title span {
  color: var(--color-orange);
}

.home-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  margin-top: 8px;
  font-style: italic;
}

.home-tagline {
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: var(--radius-md);
  color: var(--color-sand);
  font-size: var(--font-size-sm);
  font-style: italic;
  display: inline-block;
}

.home-buttons {
  padding: 8px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* ---- BUTTONS ---- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  border: none;
  font-size: var(--font-size-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  min-height: 56px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-button);
  letter-spacing: 0.2px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
  color: white;
  font-size: var(--font-size-lg);
  min-height: 64px;
  animation: glow 3s ease infinite;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fb923c 0%, var(--color-orange) 100%);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
}

.btn-secondary:hover {
  background: var(--bg-card-alt);
  border-color: var(--color-sand);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--color-text-muted);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-ghost:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(239,68,68,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(239,68,68,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(22,163,74,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-sand {
  background: linear-gradient(135deg, var(--color-sand) 0%, #b8925a 100%);
  color: #1a0e00;
  font-weight: 800;
}

.btn-sm {
  padding: 10px 16px;
  font-size: var(--font-size-sm);
  min-height: 40px;
  border-radius: var(--radius-md);
}

.btn-icon {
  font-size: 20px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  animation: none;
}

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.card-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- FORM ELEMENTS ---- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--font-size-base);
  padding: 12px 16px;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

.form-input::placeholder {
  color: var(--color-text-dim);
}

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b949e' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ---- TOGGLE ---- */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-info {
  flex: 1;
  margin-right: 16px;
}

.toggle-label {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
}

.toggle-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.toggle {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-card-alt);
  border: 1px solid var(--color-border-light);
  border-radius: 28px;
  transition: 0.2s;
}

.toggle-slider:before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--color-text-muted);
  border-radius: 50%;
  transition: 0.2s;
}

.toggle input:checked + .toggle-slider {
  background: var(--color-orange);
  border-color: var(--color-orange);
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(24px);
  background: white;
}

/* ---- NUMBER SELECTOR ---- */
.number-selector {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.number-selector button {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: var(--font-size-xl);
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s;
  min-width: 48px;
  font-weight: 700;
}

.number-selector button:hover {
  background: var(--bg-card-alt);
}

.number-selector button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.number-selector .num-value {
  flex: 1;
  text-align: center;
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-orange);
  min-width: 40px;
}

/* ---- PLAYER LIST ---- */
.player-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  animation: slideUp 0.2s ease;
}

.player-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 2px solid var(--color-border-light);
}

.player-avatar.avatar-big {
  width: 72px;
  height: 72px;
  font-size: 36px;
  border-width: 3px;
}

.player-name {
  flex: 1;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
}

.player-name input {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-weight: 600;
  width: 100%;
  padding: 0;
}

.player-name input:focus {
  outline: none;
}

.player-remove {
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}

.player-remove:hover {
  color: var(--color-red);
}

/* ---- CARD REVEAL ---- */
.card-reveal-screen {
  background: var(--bg-primary);
}

.card-reveal-cover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  gap: 24px;
}

.card-cover-avatar {
  font-size: 80px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.card-cover-name {
  font-size: var(--font-size-2xl);
  font-weight: 900;
  color: var(--color-text);
}

.card-cover-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  font-style: italic;
}

.card-cover-progress {
  font-size: var(--font-size-sm);
  color: var(--color-text-dim);
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

/* ══════════════════════════════════════════════
   DEAL SCREEN — pantalla "pasa el móvil"
   ══════════════════════════════════════════════ */

.deal-screen {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 55% at 50% 100%, #1a0a00 0%, #0d0d14 45%, #060810 100%);
}

/* Estrellas */
.deal-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.deal-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0.7;
  animation: dealTwinkle 3s ease-in-out infinite;
}
@keyframes dealTwinkle {
  0%,100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 0.15; transform: scale(0.5); }
}

/* Arco de resplandor hoguera en la parte baja */
.deal-fire-arc {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 180px;
  pointer-events: none;
}
.deal-fire-glow {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,110,0,0.28) 0%, rgba(255,60,0,0.12) 45%, transparent 75%);
  animation: dealFirePulse 2.4s ease-in-out infinite;
}
@keyframes dealFirePulse {
  0%,100% { opacity: 1; transform: scaleX(1); }
  50%      { opacity: 0.65; transform: scaleX(1.08); }
}

/* Contenido */
.deal-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px 24px 48px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

/* Badge turno */
.deal-turn-badge {
  display: flex;
  align-items: baseline;
  gap: 3px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 30px;
  padding: 5px 16px;
  backdrop-filter: blur(6px);
}
.deal-turn-num {
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.3rem;
  color: #f97316;
  line-height: 1;
}
.deal-turn-sep {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.25);
  margin: 0 1px;
}
.deal-turn-total {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.40);
  font-weight: 700;
}

/* Avatar con anillo pulsante */
.deal-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}
.deal-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(249,115,22,0.55);
  animation: dealRingPulse 2s ease-in-out infinite;
}
.deal-avatar-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(249,115,22,0.18);
  animation: dealRingPulse 2s ease-in-out infinite 0.4s;
}
@keyframes dealRingPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(1.07); }
}
.deal-avatar-emoji {
  font-size: 72px;
  line-height: 1;
  filter: drop-shadow(0 6px 20px rgba(255,120,0,0.35));
  animation: dealAvatarFloat 3.5s ease-in-out infinite;
}
@keyframes dealAvatarFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Nombre */
.deal-name {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(2rem, 9vw, 2.8rem);
  color: #fff;
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

/* Mensaje de tensión */
.deal-whisper {
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.3px;
  max-width: 280px;
}

/* Puntos de progreso */
.deal-dots {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.deal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  transition: all 0.3s;
}
.deal-dot-done {
  background: rgba(249,115,22,0.45);
  border-color: rgba(249,115,22,0.5);
}
.deal-dot-active {
  background: #f97316;
  border-color: #ff9d20;
  box-shadow: 0 0 8px rgba(249,115,22,0.8);
  transform: scale(1.3);
}

/* Botón principal */
.deal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  min-height: 62px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(180deg, #ff9d20, #f97316 50%, #dd5000);
  box-shadow: 0 5px 0 #9e2f00, 0 8px 28px rgba(249,115,22,0.50),
              inset 0 1px 0 rgba(255,210,80,0.40);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}
.deal-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: dealShimmer 2.8s ease infinite;
}
@keyframes dealShimmer {
  0%      { left: -120%; }
  60%,100%{ left: 160%; }
}
.deal-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #9e2f00, 0 4px 14px rgba(249,115,22,0.35),
              inset 0 1px 0 rgba(255,210,80,0.40);
}
.deal-btn-ico {
  font-size: 22px;
}
.deal-btn-txt {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  letter-spacing: 0.2px;
}

/* Aviso pasar el móvil */
.deal-pass-hint {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.3px;
}
.deal-pass-hint strong {
  color: rgba(255,255,255,0.55);
  font-weight: 700;
}

/* ---- ROLE CARD ---- */
/* ============================================================
   CARD REVEAL SCREEN — cr-* namespace
   ============================================================ */

/* Keyframes */
@keyframes crStarTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%       { opacity: 1;    transform: scale(1.2); }
}
@keyframes crBadgePop {
  0%   { transform: scale(0.6) translateY(-8px); opacity: 0; }
  70%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes crAvatarFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
@keyframes crRingPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--cr-ring-color, rgba(74,222,128,0.5)); }
  50%       { box-shadow: 0 0 0 14px rgba(0,0,0,0); }
}
@keyframes crWordReveal {
  0%   { opacity: 0; transform: scale(0.85) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes crGlowPulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.75; }
}
@keyframes crBadgeImpostorFlicker {
  0%, 90%, 100% { opacity: 1; }
  92%           { opacity: 0.6; }
  94%           { opacity: 1; }
  96%           { opacity: 0.7; }
}
@keyframes crShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Wrapper — full viewport */
.cr-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  font-family: 'Nunito', sans-serif;
}

.cr-wrap--normal {
  background: radial-gradient(ellipse at 50% 0%, #0e2a1e 0%, #081510 45%, #060f0c 100%);
}

.cr-wrap--impostor {
  background: radial-gradient(ellipse at 50% 100%, #2a0a0a 0%, #180505 45%, #0c0404 100%);
}

/* Stars */
.cr-bg-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cr-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: crStarTwinkle 3s ease-in-out infinite;
}

/* Atmospheric glow */
.cr-bg-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: crGlowPulse 4s ease-in-out infinite;
}

.cr-bg-glow--green {
  background: radial-gradient(circle, rgba(34,197,94,0.22) 0%, transparent 70%);
  top: -60px; left: 50%; transform: translateX(-50%);
}

.cr-bg-glow--red {
  background: radial-gradient(circle, rgba(220,38,38,0.28) 0%, transparent 70%);
  bottom: -60px; left: 50%; transform: translateX(-50%);
}

/* Scrollable content column */
.cr-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 32px;
  gap: 0;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

/* ---- BADGE ---- */
.cr-badge-wrap {
  margin-bottom: 24px;
  animation: crBadgePop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
}

.cr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cr-badge--normal {
  background: rgba(34,197,94,0.15);
  border: 2px solid rgba(34,197,94,0.55);
  color: #4ade80;
  box-shadow: 0 0 20px rgba(34,197,94,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}

.cr-badge--impostor {
  background: rgba(220,38,38,0.15);
  border: 2px solid rgba(220,38,38,0.6);
  color: #f87171;
  box-shadow: 0 0 20px rgba(220,38,38,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: crBadgeImpostorFlicker 3.5s ease-in-out infinite;
}

.cr-badge-icon {
  font-size: 16px;
  line-height: 1;
}

/* ---- IDENTITY ---- */
.cr-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  width: 100%;
}

.cr-avatar-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  animation: crAvatarFloat 3.6s ease-in-out infinite, crRingPulse 2.4s ease-in-out infinite;
}

.cr-avatar-ring--green {
  --cr-ring-color: rgba(74,222,128,0.5);
  background: radial-gradient(circle at 40% 35%, rgba(34,197,94,0.18) 0%, rgba(34,197,94,0.06) 70%);
  border: 2px solid rgba(34,197,94,0.45);
}

.cr-avatar-ring--red {
  --cr-ring-color: rgba(248,113,113,0.5);
  background: radial-gradient(circle at 40% 35%, rgba(220,38,38,0.2) 0%, rgba(220,38,38,0.06) 70%);
  border: 2px solid rgba(220,38,38,0.45);
}

.cr-avatar-emoji {
  font-size: 60px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

.cr-player-name {
  font-family: 'Fredoka One', cursive;
  font-size: 28px;
  color: #f5f0e8;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.cr-suspicion {
  font-size: 13px;
  color: rgba(245,240,232,0.45);
  font-style: italic;
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
}

/* ---- WORD BOX ---- */
.cr-word-box {
  width: 100%;
  border-radius: 20px;
  padding: 24px 24px 20px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  animation: crWordReveal 0.5s 0.15s cubic-bezier(0.34,1.2,0.64,1) both;
}

.cr-word-box--normal {
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(34,197,94,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}

.cr-word-box--impostor {
  background: rgba(220,38,38,0.06);
  border: 2px solid rgba(220,38,38,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 40px rgba(220,38,38,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Glass shimmer line */
.cr-word-box--normal::before,
.cr-word-box--impostor::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
  pointer-events: none;
}

.cr-word-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(245,240,232,0.35);
  margin-bottom: 10px;
}

.cr-word-divider {
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: rgba(34,197,94,0.4);
  margin: 10px auto;
}

.cr-word-divider--red {
  background: rgba(220,38,38,0.45);
}

.cr-word-main {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(28px, 8vw, 42px);
  color: #f5d28a;
  line-height: 1.15;
  text-shadow: 0 0 20px rgba(245,210,100,0.35), 0 3px 10px rgba(0,0,0,0.6);
  /* subtle shimmer */
  background: linear-gradient(90deg, #f5d28a 0%, #ffe4a0 40%, #f5d28a 60%, #e8b96a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: crShimmer 4s linear infinite;
}

.cr-word-main--impostor {
  background: linear-gradient(90deg, #f87171 0%, #fca5a5 40%, #f87171 60%, #ef4444 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  animation: crShimmer 3s linear infinite;
}

.cr-word-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(74,222,128,0.75);
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 4px 14px;
  border-radius: 20px;
}

.cr-word-cat-icon { font-size: 14px; }

.cr-word-hint {
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  color: #fca5a5;
  margin-top: 6px;
}

.cr-word-footer {
  font-size: 11px;
  color: rgba(245,240,232,0.3);
  margin-top: 10px;
  font-style: italic;
}

.cr-word-footer--center { text-align: center; }

/* ---- POWER CARD ---- */
.cr-power-card {
  width: 100%;
  background: rgba(249,115,22,0.07);
  border: 1px solid rgba(249,115,22,0.35);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
  animation: crWordReveal 0.5s 0.3s both;
}

.cr-power-header {
  background: rgba(249,115,22,0.12);
  padding: 6px 16px;
  border-bottom: 1px solid rgba(249,115,22,0.2);
}

.cr-power-tag {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(253,186,116,0.75);
}

.cr-power-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
}

.cr-power-icon {
  font-size: 30px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(249,115,22,0.4));
}

.cr-power-info {
  flex: 1;
  min-width: 0;
}

.cr-power-name {
  font-family: 'Fredoka One', cursive;
  font-size: 17px;
  color: #fdba74;
  margin-bottom: 3px;
}

.cr-power-desc {
  font-size: 13px;
  color: rgba(245,240,232,0.65);
  line-height: 1.4;
}

.cr-power-when {
  font-size: 11px;
  color: rgba(253,186,116,0.5);
  margin-top: 5px;
  font-style: italic;
}

.cr-power-help {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(249,115,22,0.4);
  background: rgba(249,115,22,0.12);
  color: #fdba74;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- CTA BUTTON ---- */
.cr-cta-area {
  width: 100%;
  margin-top: 8px;
  padding-bottom: 16px;
}

.cr-hide-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 24px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  letter-spacing: 0.5px;
  /* 3D orange — same style as deal btn */
  background: linear-gradient(180deg, #fb923c 0%, #ea6c10 60%, #c45408 100%);
  color: #fff;
  box-shadow:
    0 6px 0 #7c2d08,
    0 8px 20px rgba(249,115,22,0.45),
    inset 0 1px 0 rgba(255,255,255,0.2);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: transform 0.1s, box-shadow 0.1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cr-hide-btn:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 #7c2d08,
    0 4px 10px rgba(249,115,22,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.cr-hide-btn--red {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 60%, #991b1b 100%);
  box-shadow:
    0 6px 0 #7f1d1d,
    0 8px 20px rgba(220,38,38,0.4),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.cr-hide-btn--red:active {
  box-shadow:
    0 2px 0 #7f1d1d,
    0 4px 10px rgba(220,38,38,0.25),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.cr-hide-btn-icon {
  font-size: 22px;
  line-height: 1;
}



.power-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.power-info {
  flex: 1;
}

.power-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-orange);
  margin-bottom: 4px;
}

.power-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.power-help-btn {
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  color: var(--color-orange);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.power-help-btn:hover {
  background: rgba(249,115,22,0.3);
}

/* ---- ROUND / TURNS ---- */
.turn-screen {
  background: var(--bg-primary);
}

.round-header {
  padding: 20px 24px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.round-title {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-dim);
  margin-bottom: 4px;
}

.round-subtitle {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
}

.turn-players {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.turn-player-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  transition: all 0.2s;
}

.turn-player-item.active {
  background: rgba(249,115,22,0.1);
  border-color: rgba(249,115,22,0.4);
  box-shadow: 0 0 12px rgba(249,115,22,0.15);
}

.turn-player-item.done {
  opacity: 0.45;
}

.turn-status {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

.turn-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
}

/* ============================================================
   HINTS / TURN SCREEN — hs-* namespace
   ============================================================ */

@keyframes hsProgressFill {
  from { width: 0; }
}
@keyframes hsPlayerSlide {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hsActivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.5), 0 4px 20px rgba(0,0,0,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(249,115,22,0), 0 4px 20px rgba(0,0,0,0.3); }
}
@keyframes hsFireDance {
  0%, 100% { transform: scaleY(1) rotate(-1deg); }
  50%       { transform: scaleY(1.1) rotate(1deg); }
}
@keyframes hsGlowFloat {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.65; }
}

/* Wrapper */
.hs-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #121a10 0%, #080d08 50%, #050808 100%);
  font-family: 'Nunito', sans-serif;
}

/* Stars */
.hs-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Top ambient glow */
.hs-top-glow {
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 340px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.18) 0%, transparent 70%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
  animation: hsGlowFloat 5s ease-in-out infinite;
}

/* All content above bg */
.hs-header,
.hs-progress-wrap,
.hs-chaos,
.hs-timer,
.hs-players,
.hs-actions {
  position: relative;
  z-index: 1;
}

/* ---- HEADER ---- */
.hs-header {
  padding: 28px 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hs-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: rgba(249,115,22,0.6);
  text-transform: uppercase;
}

.hs-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(22px, 6vw, 28px);
  color: #f5f0e8;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  line-height: 1.2;
}

.hs-title strong {
  color: #fdba74;
}

.hs-round-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(245,240,232,0.45);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ---- PROGRESS BAR ---- */
.hs-progress-wrap {
  margin: 0 20px 16px;
  position: relative;
}

.hs-progress-wrap::before {
  content: '';
  display: block;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  position: absolute;
  inset: 0 0 auto;
  top: 0;
}

.hs-progress-bar {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #fb923c, #f97316);
  box-shadow: 0 0 8px rgba(249,115,22,0.5);
  transition: width 0.5s ease;
  animation: hsProgressFill 0.6s ease both;
  position: relative;
  z-index: 1;
}

.hs-progress-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(245,240,232,0.3);
  text-align: right;
  margin-top: 5px;
  letter-spacing: 0.5px;
}

/* ---- CHAOS BANNER ---- */
.hs-chaos {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px 14px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 12px;
  padding: 12px 16px;
}

.hs-chaos-icon { font-size: 22px; flex-shrink: 0; }

.hs-chaos-text {
  font-size: 13px;
  color: rgba(245,240,232,0.75);
  line-height: 1.4;
}

.hs-chaos-text strong {
  color: #c4b5fd;
}

/* ---- TIMER ---- */
.hs-timer {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

/* ---- PLAYER LIST ---- */
.hs-players {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.hs-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  transition: all 0.25s;
  animation: hsPlayerSlide 0.3s ease both;
}

/* Active player */
.hs-player--active {
  background: rgba(249,115,22,0.12);
  border-color: rgba(249,115,22,0.55);
  box-shadow: 0 0 0 0 rgba(249,115,22,0.4);
  animation: hsPlayerSlide 0.3s ease both, hsActivePulse 2.4s ease-in-out infinite;
}

/* Done players */
.hs-player--done {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.06);
  opacity: 0.5;
}

/* Pending players */
.hs-player--pending {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

/* Status icons */
.hs-fire-badge {
  font-size: 20px;
  width: 28px;
  text-align: center;
  animation: hsFireDance 0.9s ease-in-out infinite;
  display: inline-block;
}

.hs-check-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(34,197,94,0.2);
  border: 1.5px solid rgba(34,197,94,0.4);
  color: #4ade80;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hs-dot-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(245,240,232,0.35);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hs-player-emoji {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.hs-player-name {
  font-size: 16px;
  font-weight: 700;
  color: #f5f0e8;
  flex: 1;
}

.hs-player--active .hs-player-name {
  color: #fdba74;
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
}

.hs-player--done .hs-player-name {
  color: rgba(245,240,232,0.45);
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-color: rgba(245,240,232,0.2);
}

.hs-power-chip {
  font-size: 18px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  padding: 3px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.hs-active-arrow {
  font-size: 18px;
  color: rgba(249,115,22,0.7);
  flex-shrink: 0;
  font-weight: 900;
}

/* ---- ACTIONS ---- */
.hs-actions {
  padding: 16px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hs-next-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 24px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-family: 'Fredoka One', cursive;
  font-size: 19px;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #fb923c 0%, #ea6c10 60%, #c45408 100%);
  color: #fff;
  box-shadow:
    0 6px 0 #7c2d08,
    0 8px 20px rgba(249,115,22,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  transition: transform 0.1s, box-shadow 0.1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hs-next-btn:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 #7c2d08,
    0 4px 10px rgba(249,115,22,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.hs-next-arrow {
  font-size: 22px;
  line-height: 1;
}

.hs-gamble-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  border: 2px solid rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.1);
  color: #c4b5fd;
  font-family: 'Fredoka One', cursive;
  font-size: 17px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.hs-gamble-btn:active {
  transform: scale(0.98);
  background: rgba(139,92,246,0.18);
}

.hs-skip-btn {
  width: 100%;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(245,240,232,0.35);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.hs-skip-btn:active {
  color: rgba(245,240,232,0.6);
  border-color: rgba(255,255,255,0.2);
}

/* ---- TIMER ---- */
.timer-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  gap: 8px;
}

.timer-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: 900;
  background: var(--bg-card);
  border: 3px solid var(--color-orange);
  color: var(--color-orange);
  transition: all 0.5s;
}

.timer-circle.warning {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
  animation: pulse 1s infinite;
}

.timer-circle.danger {
  border-color: var(--color-red);
  color: var(--color-red);
  animation: pulse 0.5s infinite;
}

/* ---- VOTING ---- */
.voting-player-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 70px;
}

.voting-player-item:hover {
  border-color: var(--color-orange);
  background: rgba(249,115,22,0.06);
}

.voting-player-item.selected {
  border-color: var(--color-orange);
  background: rgba(249,115,22,0.12);
  box-shadow: 0 0 12px rgba(249,115,22,0.2);
}

.voting-player-item.eliminated {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.vote-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-border-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s;
}

.voting-player-item.selected .vote-check {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: white;
}

.vote-count-badge {
  background: var(--color-orange);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- RESULT SCREEN ---- */
.result-screen {
  background: var(--bg-primary);
  padding: 24px;
}

.result-hero { text-align: center; padding: 20px 0 24px; }
.result-emoji { font-size: 72px; display: block; margin-bottom: 12px; }
.result-title { font-size: var(--font-size-2xl); font-weight: 900; margin-bottom: 8px; }
.result-title.win-normal  { color: var(--color-green); }
.result-title.win-impostor { color: var(--color-red); }
.result-desc { font-size: var(--font-size-base); color: var(--color-text-muted); font-style: italic; }
.result-word-reveal {
  background: var(--bg-card); border: 2px solid var(--color-sand);
  border-radius: var(--radius-xl); padding: 20px; text-align: center; margin: 16px 0;
}
.result-word-reveal .label { font-size: var(--font-size-xs); text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-dim); margin-bottom: 6px; }
.result-word-reveal .word { font-size: var(--font-size-2xl); font-weight: 900; color: var(--color-sand); }

/* ============================================================
   RESULT SCREEN — rs-* namespace
   ============================================================ */

@keyframes rsHeroPop {
  0%   { opacity: 0; transform: scale(0.7) translateY(20px); }
  70%  { transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes rsSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rsGlowPulse {
  0%,100% { opacity: 0.45; transform: translateX(-50%) scale(1); }
  50%     { opacity: 0.75; transform: translateX(-50%) scale(1.1); }
}

.rs-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  font-family: 'Nunito', sans-serif;
}

.rs-wrap--normal {
  background: radial-gradient(ellipse at 50% 0%, #0d2218 0%, #080f0b 50%, #050808 100%);
}

.rs-wrap--impostor {
  background: radial-gradient(ellipse at 50% 0%, #1e0a0a 0%, #0e0505 50%, #070506 100%);
}

.rs-bg-glow {
  position: absolute;
  width: 380px; height: 280px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  top: -40px; left: 50%;
  animation: rsGlowPulse 5s ease-in-out infinite;
}

.rs-bg-glow--green {
  background: radial-gradient(circle, rgba(34,197,94,0.22) 0%, transparent 70%);
}

.rs-bg-glow--red {
  background: radial-gradient(circle, rgba(220,38,38,0.28) 0%, transparent 70%);
}

.rs-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 36px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  gap: 16px;
}

/* Hero */
.rs-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 4px;
}

.rs-result-icon {
  font-size: 80px;
  line-height: 1;
  margin-bottom: 16px;
  animation: rsHeroPop 0.6s cubic-bezier(0.34,1.5,0.64,1) both;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.5));
}

.rs-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(24px, 7vw, 32px);
  line-height: 1.15;
  margin-bottom: 8px;
  animation: rsSlideUp 0.4s 0.15s ease both;
}

.rs-title--green {
  color: #4ade80;
  text-shadow: 0 0 24px rgba(34,197,94,0.35);
}

.rs-title--red {
  color: #f87171;
  text-shadow: 0 0 24px rgba(220,38,38,0.35);
}

.rs-subtitle {
  font-size: 14px;
  color: rgba(245,240,232,0.45);
  font-style: italic;
  animation: rsSlideUp 0.4s 0.25s ease both;
}

/* Word box */
.rs-word-box {
  border-radius: 20px;
  padding: 22px 20px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: rsSlideUp 0.4s 0.3s ease both;
}

.rs-word-box--green {
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(34,197,94,0.35);
  box-shadow: 0 6px 30px rgba(0,0,0,0.4), 0 0 30px rgba(34,197,94,0.07);
}

.rs-word-box--red {
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(220,38,38,0.35);
  box-shadow: 0 6px 30px rgba(0,0,0,0.45), 0 0 30px rgba(220,38,38,0.08);
}

.rs-word-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(245,240,232,0.3);
  margin-bottom: 10px;
}

.rs-word {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(30px, 8vw, 44px);
  background: linear-gradient(90deg, #f5d28a 0%, #ffe4a0 40%, #f5d28a 60%, #e8b96a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: crShimmer 4s linear infinite;
  line-height: 1.15;
}

.rs-word-divider {
  width: 40px; height: 2px;
  border-radius: 2px;
  background: rgba(245,210,100,0.3);
  margin: 10px auto;
}

.rs-word-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(245,240,232,0.45);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 3px 12px;
  border-radius: 20px;
}

/* Sections */
.rs-section {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
  animation: rsSlideUp 0.4s 0.4s ease both;
}

.rs-section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(245,240,232,0.35);
  margin-bottom: 12px;
}

/* Impostor chips */
.rs-impostor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.rs-impostor-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(220,38,38,0.12);
  border: 1.5px solid rgba(220,38,38,0.4);
  border-radius: 40px;
  padding: 8px 16px 8px 10px;
}

.rs-impostor-emoji { font-size: 26px; line-height: 1; }

.rs-impostor-name {
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  color: #fca5a5;
}

/* Voter chips */
.rs-voters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rs-voter-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.rs-voter-chip--good {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #4ade80;
}

.rs-voter-chip--bad {
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.3);
  color: #f87171;
}

/* Powers */
.rs-powers-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rs-power-item {
  font-size: 13px;
  color: rgba(245,240,232,0.55);
}

/* Actions */
.rs-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: rsSlideUp 0.4s 0.55s ease both;
}

.rs-config-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(245,240,232,0.7);
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.rs-config-btn:active { background: rgba(255,255,255,0.09); }

.rs-home-btn {
  width: 100%;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: rgba(245,240,232,0.3);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.rs-home-btn:active { color: rgba(245,240,232,0.6); }

/* ---- IMPOSTOR LAST CHANCE ---- */
.last-chance-screen {
  min-height: 100vh;
  background: linear-gradient(160deg, #1a0808 0%, var(--bg-primary) 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  gap: 20px;
}

.last-chance-emoji {
  font-size: 64px;
  animation: pulse 1.5s ease infinite;
}

.last-chance-title {
  font-size: var(--font-size-2xl);
  font-weight: 900;
  color: var(--color-red);
  text-shadow: 0 0 20px rgba(220,38,38,0.4);
}

.last-chance-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  font-style: italic;
}

.last-chance-input {
  width: 100%;
  max-width: 320px;
}

/* ---- POWERS PHASE ---- */
.powers-phase {
  min-height: 100vh;
  background: var(--bg-primary);
  padding: 24px;
}

.phase-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 4px;
}

.phase-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
  margin-bottom: 24px;
}

.power-activate-item {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.power-activate-item:hover {
  border-color: var(--color-orange);
  background: rgba(249,115,22,0.06);
}

.power-activate-item.used {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.power-activate-btn {
  background: var(--color-orange);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.15s;
}

.power-activate-btn:hover {
  background: var(--color-orange-dark);
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
  padding: 16px;
}

.modal-overlay.center {
  align-items: center;
}

.modal {
  background: linear-gradient(160deg, #1c2333 0%, #161b22 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-md) var(--radius-md);
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
}

.modal.center {
  border-radius: var(--radius-xl);
  max-width: 340px;
}

.modal-title {
  font-size: var(--font-size-xl);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.2px;
}

.modal-body {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}

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

/* ---- HOW TO PLAY ---- */
.rules-section {
  margin-bottom: 24px;
}

.rules-section h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-orange);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: var(--font-size-sm);
}

.rules-section p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.rules-list {
  list-style: none;
  padding: 0;
}

.rules-list li {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.4;
}

.rules-list li:last-child {
  border-bottom: none;
}

.rules-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-orange);
  font-weight: 700;
}

/* ---- SCORE ---- */
.score-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.score-rank {
  font-size: var(--font-size-lg);
  font-weight: 900;
  color: var(--color-text-dim);
  width: 28px;
  text-align: center;
}

.score-rank.first { color: var(--color-yellow); }
.score-rank.second { color: var(--color-text-muted); }
.score-rank.third { color: var(--color-sand); }

.score-pts {
  margin-left: auto;
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-orange);
}

/* ---- PROGRESS BAR ---- */
.progress-bar {
  background: var(--bg-card-alt);
  border-radius: 4px;
  height: 4px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-orange), var(--color-yellow));
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ---- CHIPS / TAGS ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  border: 1px solid;
}

.chip-orange {
  background: rgba(249,115,22,0.1);
  border-color: rgba(249,115,22,0.3);
  color: var(--color-orange);
}

.chip-green {
  background: rgba(22,163,74,0.1);
  border-color: rgba(22,163,74,0.3);
  color: #4ade80;
}

.chip-red {
  background: rgba(220,38,38,0.1);
  border-color: rgba(220,38,38,0.3);
  color: var(--color-red);
}

.chip-sand {
  background: rgba(212,169,106,0.1);
  border-color: rgba(212,169,106,0.3);
  color: var(--color-sand);
}

/* ---- CATEGORY GRID ---- */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.category-btn {
  padding: 12px 10px;
  background: var(--bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.category-btn.selected {
  border-color: var(--color-orange);
  background: rgba(249,115,22,0.12);
  color: var(--color-orange);
}

.category-btn:hover:not(.selected) {
  border-color: var(--color-border-light);
  background: var(--bg-card-alt);
}

/* ---- CHAOS BANNER ---- */
.chaos-banner {
  background: linear-gradient(135deg, rgba(251,191,36,0.15) 0%, rgba(249,115,22,0.15) 100%);
  border: 1px solid rgba(251,191,36,0.4);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.chaos-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.chaos-text {
  flex: 1;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-yellow);
  line-height: 1.4;
}

/* ---- WORD ENTRY ---- */
.word-input-wrapper {
  position: relative;
}

.word-input-wrapper .form-input {
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-align: center;
  color: var(--color-sand);
  padding: 16px;
  letter-spacing: 2px;
}

/* ---- FLOATING ACTION ---- */
.fab-area {
  position: sticky;
  bottom: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, var(--bg-primary) 70%, transparent);
}

/* ---- MISC ---- */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 16px 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-orange { color: var(--color-orange); }
.text-sand { color: var(--color-sand); }
.text-green { color: #4ade80; }
.text-red { color: var(--color-red); }
.text-yellow { color: var(--color-yellow); }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.italic { font-style: italic; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }

/* ---- ELIMINATED PLAYER BADGE ---- */
.eliminated-badge {
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.3);
  color: var(--color-red);
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- CUSTOM WORDS ---- */
.custom-word-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
}

.custom-word-text {
  flex: 1;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
}

.custom-word-cat {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ---- ACCUSE BUTTON ---- */
.gamble-btn {
  background: rgba(220,38,38,0.1);
  border: 2px solid rgba(220,38,38,0.4);
  border-radius: var(--radius-lg);
  color: var(--color-red);
  padding: 12px 20px;
  font-weight: 700;
  font-size: var(--font-size-sm);
  cursor: pointer;
  width: 100%;
  transition: all 0.15s;
  text-align: center;
}

.gamble-btn:hover {
  background: rgba(220,38,38,0.2);
  border-color: var(--color-red);
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-light);
  border-radius: 4px;
}

/* ---- SAFE AREAS ---- */
@supports (padding: max(0px)) {
  .fab-area {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* ============================================
   HOME V2 - ILLUSTRATED CAMPSITE DESIGN
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;700;800;900&display=swap');

.home-v2 {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #0f1e3a 0%, #060c18 60%, #030810 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- BACKGROUND ELEMENTS ---- */
.home-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Guirnalda de luces */
.fairy-lights {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 35%;
  pointer-events: none;
}

.fl-wire-left {
  position: absolute;
  top: 18%;
  left: 0;
  width: 55%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,200,60,0.25) 40%, rgba(255,200,60,0.4) 100%);
  transform: rotate(3deg);
  transform-origin: left center;
}

.fl-wire-right {
  position: absolute;
  top: 18%;
  right: 0;
  width: 55%;
  height: 2px;
  background: linear-gradient(270deg, transparent, rgba(255,200,60,0.25) 40%, rgba(255,200,60,0.4) 100%);
  transform: rotate(-3deg);
  transform-origin: right center;
}

.fl-bulb {
  position: absolute;
  width: 8px;
  height: 10px;
  border-radius: 50% 50% 60% 60%;
  background: radial-gradient(circle at 40% 35%, #fff8b0, #ffc400);
  box-shadow: 0 0 8px 4px rgba(255,196,0,0.55), 0 0 18px 6px rgba(255,150,0,0.3);
  transform: translateX(-50%);
  animation: bulbPulse 3s ease-in-out infinite;
}

.fl-bulb:nth-child(odd) { animation-delay: -1.5s; }
.fl-bulb:nth-child(3n) { animation-delay: -0.8s; }

@keyframes bulbPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px 4px rgba(255,196,0,0.55), 0 0 18px 6px rgba(255,150,0,0.3); }
  50% { opacity: 0.7; box-shadow: 0 0 5px 2px rgba(255,196,0,0.3), 0 0 10px 3px rgba(255,150,0,0.15); }
}

/* Luna */
.home-moon {
  position: absolute;
  top: 3%;
  right: 6%;
  font-size: 42px;
  filter: drop-shadow(0 0 12px rgba(255,240,180,0.6)) drop-shadow(0 0 24px rgba(200,170,60,0.3));
  animation: moonGlow 4s ease-in-out infinite;
}

@keyframes moonGlow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(255,240,180,0.6)) drop-shadow(0 0 24px rgba(200,170,60,0.3)); }
  50% { filter: drop-shadow(0 0 18px rgba(255,240,180,0.9)) drop-shadow(0 0 36px rgba(200,170,60,0.5)); }
}

/* Tienda campaña */
.home-tent {
  position: absolute;
  left: -8px;
  bottom: 20%;
  opacity: 0.85;
}

.tent-fire {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  filter: drop-shadow(0 0 10px rgba(255,120,0,0.8));
  animation: fireDance 1.2s ease-in-out infinite alternate;
}

@keyframes fireDance {
  from { transform: translateX(-50%) scale(1) rotate(-3deg); }
  to { transform: translateX(-50%) scale(1.1) rotate(3deg); }
}

/* Furgo */
.home-van {
  position: absolute;
  right: -8px;
  bottom: 21%;
  opacity: 0.8;
}

/* Farol */
.home-lantern {
  position: absolute;
  left: 10px;
  bottom: 8%;
  z-index: 2;
}

.lantern-glow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255,160,0,0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: lanternGlow 2s ease-in-out infinite;
}

@keyframes lanternGlow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateX(-50%) scale(1.3); opacity: 1; }
}

/* Carteles */
.home-signs {
  position: absolute;
  right: 8px;
  bottom: 6%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.sign-post {
  position: absolute;
  right: 50px;
  bottom: -8px;
  width: 6px;
  height: 70px;
  background: linear-gradient(180deg, #6b4c1e, #3d2800);
  border-radius: 3px;
}

.sign {
  background: linear-gradient(135deg, #5a3a10, #3d2600);
  border: 1.5px solid #7a5020;
  color: #f0d080;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 4px;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,200,80,0.1);
  position: relative;
  z-index: 2;
}

.sign::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 3px;
  background: #6b4c1e;
}

/* Foliage */
.home-foliage {
  position: absolute;
  bottom: 0;
  font-size: 56px;
  opacity: 0.7;
  filter: blur(1px) brightness(0.5);
  z-index: 3;
}

.home-foliage-left {
  left: -8px;
  transform: scaleX(-1) rotate(-10deg);
}

.home-foliage-right {
  right: -8px;
  transform: rotate(10deg);
}

/* ---- CONTENT ---- */
.home-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  padding-top: 32px;
}

/* Linterna */
.home-torch {
  font-size: 52px;
  margin-bottom: 4px;
  filter: drop-shadow(0 4px 12px rgba(255,160,0,0.5));
  animation: torchFloat 3s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes torchFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-6px) rotate(-5deg); }
}

/* Título principal */
.home-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
}

.home-el {
  font-family: 'Fredoka One', 'Arial Black', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(255,120,0,0.2);
  letter-spacing: 2px;
  line-height: 1;
}

.home-sospechoso {
  font-family: 'Fredoka One', 'Arial Black', sans-serif;
  font-size: clamp(2.8rem, 11vw, 3.8rem);
  font-weight: 900;
  background: linear-gradient(180deg, #ffdf00 0%, #ff8c00 45%, #ff4500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  line-height: 1;
  letter-spacing: 0px;
  /* Stroke effect via filter + text-shadow workaround */
  filter: drop-shadow(0px 2px 0px #000) drop-shadow(2px 0px 0px #000) drop-shadow(-2px 0px 0px #000) drop-shadow(0px -1px 0px rgba(0,0,0,0.5));
  position: relative;
}

/* Banner madera */
.home-wood-banner {
  background: linear-gradient(135deg, #5a3a10 0%, #3d2600 50%, #5a3a10 100%);
  border: 2px solid #7a5422;
  border-radius: 8px;
  padding: 7px 20px;
  margin-bottom: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,200,80,0.15), inset 0 -1px 0 rgba(0,0,0,0.3);
  position: relative;
}

.home-wood-banner::before,
.home-wood-banner::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #c8860a;
  font-size: 12px;
}

.home-wood-banner::before { left: 8px; }
.home-wood-banner::after { right: 8px; }

.home-wood-banner span {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #d4a84b;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Tagline */
.home-tagline-v2 {
  background: rgba(5, 12, 28, 0.65);
  border: 1px solid rgba(212, 168, 75, 0.35);
  border-radius: 30px;
  padding: 8px 20px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.home-tagline-v2 span {
  font-size: 0.85rem;
  font-style: italic;
  color: #f0d080;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* ---- BUTTONS HOME V2 ---- */
.home-btns {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hbtn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: none;
  border-radius: 16px;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  min-height: 56px;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.hbtn:active { transform: scale(0.97); }

.hbtn-primary {
  background: linear-gradient(180deg, #ff9d20 0%, #f97316 40%, #e05500 100%);
  box-shadow: 0 4px 0 #a33200, 0 6px 20px rgba(249,115,22,0.45), inset 0 1px 0 rgba(255,200,80,0.4);
  min-height: 62px;
}

.hbtn-primary:hover {
  background: linear-gradient(180deg, #ffaf38 0%, #fb923c 40%, #ea6400 100%);
  box-shadow: 0 5px 0 #a33200, 0 8px 24px rgba(249,115,22,0.55), inset 0 1px 0 rgba(255,200,80,0.4);
}

.hbtn-primary:active {
  transform: scale(0.97) translateY(2px);
  box-shadow: 0 2px 0 #a33200, 0 4px 16px rgba(249,115,22,0.4), inset 0 1px 0 rgba(255,200,80,0.4);
}

.hbtn-secondary {
  background: linear-gradient(180deg, #1a2c47 0%, #111d30 100%);
  border: 1px solid rgba(60,100,160,0.45);
  box-shadow: 0 2px 0 rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(80,140,220,0.1);
}

.hbtn-secondary:hover {
  background: linear-gradient(180deg, #1e3455 0%, #141e38 100%);
  border-color: rgba(80,130,200,0.6);
}

.hbtn-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.hbtn-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  text-align: left;
  letter-spacing: 0.1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hbtn-arrow {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  flex-shrink: 0;
}

/* Efecto shimmer en botón primario */
.hbtn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  60%, 100% { left: 150%; }
}

/* Mountain silhouette at bottom */
.home-v2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 22%;
  background: 
    linear-gradient(transparent 0%, rgba(3, 8, 16, 0.6) 60%, #030810 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80'%3E%3Cpolygon points='0,80 60,20 120,50 180,5 240,40 300,15 360,45 400,30 400,80' fill='%230a1525'/%3E%3C/svg%3E") bottom/cover no-repeat;
  pointer-events: none;
  z-index: 1;
}


/* ============================================================
   HOME-A — Opción A aplicada al juego principal
   Fondo: imagen IA camping nocturno (/static/home-bg.jpg)
   ============================================================ */

.home-a {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  font-family: 'Nunito', system-ui, sans-serif;
}

/* Fondo imagen IA */
.home-a-bg {
  position: absolute;
  inset: 0;
  background: url('/static/home-bg.jpg') center top / cover no-repeat;
  z-index: 0;
}

/* Gradiente encima para legibilidad */
.home-a-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4,8,20,0.35) 0%,
    rgba(4,8,20,0.10) 28%,
    rgba(4,8,20,0.15) 52%,
    rgba(4,8,20,0.80) 78%,
    rgba(4,8,20,0.97) 100%
  );
}

/* Contenido central */
.home-a-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 22px;
  padding-top: clamp(30px, 11vw, 56px);
  padding-bottom: 40px;
}

/* Linterna */
.home-a-torch {
  font-size: 52px;
  margin-bottom: 4px;
  filter: drop-shadow(0 4px 16px rgba(255,160,0,0.65));
  animation: haTorchFloat 3s ease-in-out infinite;
}
@keyframes haTorchFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50%       { transform: translateY(-7px) rotate(-4deg); }
}

/* Título */
.home-a-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}
.home-a-el {
  font-family: 'Fredoka One', sans-serif;
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 2px 8px #000, 0 0 24px rgba(255,120,0,0.3);
  letter-spacing: 3px;
  line-height: 1;
}
.home-a-main {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(2.8rem, 12vw, 3.8rem);
  line-height: 1;
  background: linear-gradient(175deg, #ffe040 0%, #ff8c00 45%, #ff3d00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(2px 3px 0 #000) drop-shadow(-1px 0 0 #000);
}

/* Banner madera */
.home-a-wood {
  background: linear-gradient(135deg, #5c3a0e, #3b2408, #5c3a0e);
  border: 2px solid #8a5e20;
  border-radius: 8px;
  padding: 7px 24px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,200,80,0.18);
  position: relative;
}
.home-a-wood::before,
.home-a-wood::after {
  content: '✦';
  color: #c8880a;
  font-size: 11px;
  margin: 0 8px;
}
.home-a-wood span {
  font-size: 0.8rem;
  font-weight: 800;
  color: #d4a84b;
  text-transform: uppercase;
  letter-spacing: 1.8px;
}

/* Tagline */
.home-a-tagline {
  background: rgba(4,9,22,0.60);
  border: 1px solid rgba(212,168,75,0.40);
  border-radius: 30px;
  padding: 8px 20px;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}
.home-a-tagline span {
  font-size: 0.82rem;
  font-style: italic;
  color: #f0d080;
  font-weight: 400;
}

/* Botones */
.home-a-btns {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ha-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: none;
  border-radius: 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  min-height: 56px;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.ha-btn:active { transform: scale(0.97); }

/* Botón primario naranja 3D */
.ha-btn-p {
  background: linear-gradient(180deg, #ff9d20, #f97316 50%, #dd5000);
  box-shadow: 0 4px 0 #9e2f00, 0 6px 22px rgba(249,115,22,0.50),
              inset 0 1px 0 rgba(255,210,80,0.40);
  min-height: 62px;
  overflow: hidden;
  position: relative;
}
.ha-btn-p::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  animation: haShimmer 3s ease infinite;
}
@keyframes haShimmer {
  0%      { left: -120%; }
  60%,100%{ left: 160%; }
}
.ha-btn-p:active {
  transform: scale(0.97) translateY(2px);
  box-shadow: 0 2px 0 #9e2f00, 0 3px 12px rgba(249,115,22,0.40),
              inset 0 1px 0 rgba(255,210,80,0.40);
}

/* Botón secundario oscuro */
.ha-btn-s {
  background: linear-gradient(180deg, rgba(18,35,65,0.92), rgba(9,18,38,0.95));
  border: 1px solid rgba(60,110,180,0.40);
  box-shadow: 0 2px 0 rgba(0,0,0,0.60), 0 4px 14px rgba(0,0,0,0.35),
              inset 0 1px 0 rgba(80,140,220,0.08);
  backdrop-filter: blur(8px);
}
.ha-btn-s:active {
  transform: scale(0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.60), inset 0 1px 0 rgba(80,140,220,0.08);
}

/* Icono dentro del botón */
.ha-ico {
  font-size: 21px;
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.30);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.50);
}
.ha-lbl {
  flex: 1;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0,0,0,0.60);
}
.ha-arr {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.30);
  flex-shrink: 0;
}

/* ============================================================
   DEAL MODE SELECTOR (setup screen)
   ============================================================ */
.deal-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.deal-mode-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px 12px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.deal-mode-opt:active {
  transform: scale(0.97);
}

.deal-mode-opt.active {
  border-color: rgba(251,146,60,0.7);
  background: rgba(251,146,60,0.1);
  box-shadow: 0 0 16px rgba(251,146,60,0.18);
}

.dmo-icon {
  font-size: 26px;
  line-height: 1;
}

.dmo-title {
  font-family: 'Fredoka One', cursive;
  font-size: 15px;
  color: #f5f0e8;
  line-height: 1.2;
}

.deal-mode-opt.active .dmo-title {
  color: #fdba74;
}

.dmo-desc {
  font-size: 11px;
  color: rgba(245,240,232,0.45);
  line-height: 1.4;
}

/* ============================================================
   GROUP REVEAL SCREEN  — gr-* namespace
   ============================================================ */

@keyframes grWordPop {
  0%   { opacity: 0; transform: scale(0.8) translateY(10px); }
  70%  { transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes grGlowFloat {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50%       { opacity: 0.75; transform: translateX(-50%) scale(1.12); }
}

.gr-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #102518 0%, #080f0c 60%, #050808 100%);
}

.gr-bg-glow {
  position: absolute;
  width: 380px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.18) 0%, transparent 70%);
  filter: blur(70px);
  top: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  animation: grGlowFloat 5s ease-in-out infinite;
}

.gr-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px 32px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  gap: 0;
}

.gr-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(74,222,128,0.55);
  margin-bottom: 22px;
}

/* Word box */
.gr-word-box {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(34,197,94,0.4);
  border-radius: 22px;
  padding: 28px 24px 22px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 0 40px rgba(34,197,94,0.08);
  animation: grWordPop 0.55s cubic-bezier(0.34,1.4,0.64,1) both;
}

.gr-word-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(245,240,232,0.35);
  margin-bottom: 12px;
}

.gr-word {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(32px, 9vw, 50px);
  background: linear-gradient(90deg, #f5d28a 0%, #ffe4a0 40%, #f5d28a 60%, #e8b96a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: crShimmer 4s linear infinite;
  line-height: 1.15;
}

.gr-word-divider {
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: rgba(34,197,94,0.35);
  margin: 12px auto 10px;
}

.gr-word-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(74,222,128,0.7);
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 4px 14px;
  border-radius: 20px;
}

/* Impostor notice */
.gr-impostor-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(220,38,38,0.07);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  width: 100%;
  margin-bottom: 22px;
}

.gr-impostor-icon {
  font-size: 30px;
  flex-shrink: 0;
}

.gr-impostor-text {
  font-size: 14px;
  color: rgba(245,240,232,0.75);
  line-height: 1.5;
}

.gr-impostor-text strong {
  color: #fca5a5;
}

.gr-impostor-sub {
  font-size: 12px;
  color: rgba(245,240,232,0.4);
  font-style: italic;
}

/* Players row */
.gr-players-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(245,240,232,0.3);
  margin-bottom: 10px;
  align-self: flex-start;
}

.gr-avatar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
  justify-content: center;
}

.gr-avatar-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 8px 10px 6px;
  min-width: 56px;
}

.gr-avatar-emoji { font-size: 22px; line-height: 1; }

.gr-avatar-name {
  font-size: 10px;
  font-weight: 700;
  color: rgba(245,240,232,0.55);
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tip */
.gr-tip {
  font-size: 13px;
  color: rgba(245,240,232,0.35);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
  max-width: 300px;
}

/* CTA */
.gr-cta {
  width: 100%;
}



/* ============================================================
   GROUP VOTING SCREEN — gv-* namespace
   ============================================================ */

@keyframes gvGlowFloat {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.7; }
}

.gv-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #160d1f 0%, #0a0710 50%, #060608 100%);
  font-family: 'Nunito', sans-serif;
}

.gv-top-glow {
  position: absolute;
  top: -50px; left: 50%;
  transform: translateX(-50%);
  width: 360px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.22) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: gvGlowFloat 5s ease-in-out infinite;
}

.gv-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 16px 32px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  gap: 0;
}

/* Header */
.gv-header {
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.gv-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: rgba(139,92,246,0.7);
  text-transform: uppercase;
}

.gv-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(22px, 6vw, 28px);
  color: #f5f0e8;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.gv-progress-text {
  font-size: 12px;
  font-weight: 700;
  color: rgba(245,240,232,0.35);
  letter-spacing: 0.5px;
}

/* Progress bar */
.gv-progress-wrap {
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 20px;
  overflow: hidden;
}

.gv-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  box-shadow: 0 0 8px rgba(139,92,246,0.5);
  transition: width 0.4s ease;
}

/* Section label */
.gv-section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(245,240,232,0.3);
  margin-bottom: 10px;
}

/* Voter rows */
.gv-voter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.gv-voter-row {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}

.gv-voter-row--done {
  border-color: rgba(139,92,246,0.35);
  background: rgba(139,92,246,0.06);
}

.gv-voter-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.gv-voter-emoji { font-size: 22px; line-height: 1; }

.gv-voter-name {
  font-size: 15px;
  font-weight: 700;
  color: #f5f0e8;
  flex: 1;
}

.gv-voted-badge {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(34,197,94,0.2);
  border: 1.5px solid rgba(34,197,94,0.5);
  color: #4ade80;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gv-pending-badge {
  font-size: 13px;
  color: rgba(245,240,232,0.3);
  letter-spacing: 1px;
}

/* Candidate pills */
.gv-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gv-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(245,240,232,0.6);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.gv-pill:active { transform: scale(0.96); }

.gv-pill--selected {
  background: rgba(220,38,38,0.18);
  border-color: rgba(220,38,38,0.55);
  color: #fca5a5;
  box-shadow: 0 0 10px rgba(220,38,38,0.15);
}

/* CTA */
.gv-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hs-next-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: 0 3px 0 #7c2d08, 0 4px 10px rgba(0,0,0,0.3) !important;
}

.gv-waiting {
  text-align: center;
  font-size: 13px;
  color: rgba(245,240,232,0.3);
  font-style: italic;
}

/* Candidate rows (summary view - kept for possible future use) */
.gv-candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.2s;
}

.gv-candidate--voted {
  border-color: rgba(220,38,38,0.3);
  background: rgba(220,38,38,0.05);
}

.gv-candidate-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gv-candidate-emoji { font-size: 26px; }

.gv-candidate-name {
  font-size: 15px;
  font-weight: 700;
  color: #f5f0e8;
}

.gv-candidate-suspicion {
  font-size: 11px;
  color: rgba(245,240,232,0.35);
  font-style: italic;
}

.gv-candidate-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.gv-voter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: flex-end;
}

.gv-voter-chip {
  font-size: 16px;
  line-height: 1;
}

.gv-vote-count {
  font-size: 11px;
  font-weight: 800;
  color: #fca5a5;
  background: rgba(220,38,38,0.15);
  border-radius: 10px;
  padding: 2px 8px;
}

/* ============================================================
   SETUP SCREEN  (su-*)
   Estética: Campamento de noche, fuego suave, vidrio oscuro
   ============================================================ */

/* ---- PANTALLA BASE ---- */
.su-screen {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(249,115,22,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 20% 100%, rgba(251,191,36,0.08) 0%, transparent 60%),
    linear-gradient(180deg, #0d1117 0%, #111827 100%);
  display: flex;
  flex-direction: column;
}

/* ---- HEADER ---- */
.su-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.su-back-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-text);
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.su-back-btn:hover { background: rgba(255,255,255,0.12); }

.su-header-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.su-header-icon {
  font-size: 32px;
  filter: drop-shadow(0 0 10px rgba(249,115,22,0.6));
}

.su-header-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.3px;
}

.su-header-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: 1px;
}

/* ---- BODY ---- */
.su-body {
  flex: 1;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

/* ---- SECTION CARD ---- */
.su-section {
  background: rgba(28,35,51,0.7);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 18px 16px 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ---- SECTION LABEL ---- */
.su-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.su-section-icon {
  font-size: 16px;
}

.su-section-badge {
  margin-left: auto;
  background: rgba(249,115,22,0.2);
  border: 1px solid rgba(249,115,22,0.4);
  color: var(--color-orange);
  font-size: 11px;
  font-weight: 800;
  border-radius: 20px;
  padding: 2px 10px;
}

/* ---- PLAYERS LIST ---- */
.su-players-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.su-player-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  animation: slideUp 0.2s ease;
  transition: border-color 0.2s, background 0.2s;
}
.su-player-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.13);
}

.su-player-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 2px solid;
  cursor: pointer;
  transition: transform 0.15s;
}
.su-player-avatar:hover { transform: scale(1.08); }

.su-player-name {
  flex: 1;
}
.su-player-name input {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-weight: 600;
  width: 100%;
  padding: 0;
}
.su-player-name input:focus { outline: none; }
.su-player-name input::placeholder { color: var(--color-text-dim); }

.su-player-remove {
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 15px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.su-player-remove:hover {
  color: var(--color-red);
  background: rgba(239,68,68,0.1);
}

.su-add-player-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: rgba(249,115,22,0.07);
  border: 1.5px dashed rgba(249,115,22,0.35);
  border-radius: 14px;
  color: var(--color-orange);
  font-size: var(--font-size-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 2px;
}
.su-add-player-btn:hover:not(:disabled) {
  background: rgba(249,115,22,0.14);
  border-color: rgba(249,115,22,0.6);
}

.su-add-icon {
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

/* ---- COUNTER GRID ---- */
.su-counters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.su-counter-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.su-counter-emoji {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}

.su-counter-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.su-counter-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  overflow: hidden;
  width: 100%;
  margin-top: 2px;
}

.su-ctrl-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 20px;
  font-weight: 700;
  width: 36px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.su-ctrl-btn:hover { color: var(--color-orange); background: rgba(249,115,22,0.08); }
.su-ctrl-btn:active { background: rgba(249,115,22,0.18); }

.su-ctrl-val {
  flex: 1;
  text-align: center;
  font-size: var(--font-size-lg);
  font-weight: 900;
  color: var(--color-orange);
}
.su-ctrl-val--sm { font-size: var(--font-size-base); }

/* ---- SELECTS ROW ---- */
.su-selects-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.su-select-wrap { display: flex; flex-direction: column; gap: 6px; }

.su-select-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.su-select-box {
  position: relative;
  display: flex;
  align-items: center;
}

.su-select-box select {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: 10px 32px 10px 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.su-select-box select:focus {
  outline: none;
  border-color: var(--color-orange);
}
.su-select-box select option { background: #1c2333; color: var(--color-text); }

.su-select-arrow {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: var(--color-text-muted);
  font-size: 12px;
}

/* ---- VOTE MODE SELECTOR ---- */
.su-vote-modes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.su-vote-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
  text-align: center;
}
.su-vote-opt:hover {
  border-color: rgba(249,115,22,0.4);
  background: rgba(249,115,22,0.06);
}
.su-vote-opt--active {
  border-color: var(--color-orange);
  background: rgba(249,115,22,0.12);
  box-shadow: 0 0 18px rgba(249,115,22,0.2), inset 0 0 0 1px rgba(249,115,22,0.15);
}
.su-vote-opt:active { transform: scale(0.97); }

.su-vote-ico { font-size: 28px; line-height: 1; }

.su-vote-name {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-text);
}

.su-vote-opt--active .su-vote-name { color: var(--color-orange); }

.su-vote-hint {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* ---- TOGGLES ---- */
.su-toggles {
  display: flex;
  flex-direction: column;
}

.su-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  user-select: none;
}
.su-toggle-row:last-child { border-bottom: none; padding-bottom: 0; }
.su-toggle-row:first-child { padding-top: 0; }

.su-toggle-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.su-toggle-ico {
  font-size: 20px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.su-toggle-name {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text);
}

.su-toggle-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Custom switch */
.su-toggle-switch {
  position: relative;
  flex-shrink: 0;
}
.su-toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.su-switch-track {
  display: block;
  width: 48px;
  height: 26px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 26px;
  position: relative;
  transition: background 0.22s, border-color 0.22s;
}
.su-switch-thumb {
  display: block;
  position: absolute;
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.22s, background 0.22s;
}
.su-toggle-switch input:checked + .su-switch-track {
  background: var(--color-orange);
  border-color: var(--color-orange);
}
.su-toggle-switch input:checked + .su-switch-track .su-switch-thumb {
  transform: translateX(22px);
  background: #fff;
}

/* ---- CTA / START BUTTON ---- */
.su-cta {
  padding: 8px 0 0;
}

.su-start-btn {
  width: 100%;
  padding: 17px 24px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border: none;
  border-radius: 16px;
  color: #fff;
  font-size: var(--font-size-lg);
  font-weight: 900;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(249,115,22,0.45), 0 2px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.1s, box-shadow 0.1s;
}
.su-start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(249,115,22,0.55), 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.su-start-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(249,115,22,0.35);
}
.su-start-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.su-start-fire {
  font-size: 22px;
  filter: drop-shadow(0 0 6px rgba(255,200,0,0.7));
}

/* ============================================================
   GROUP VOTING SCREEN — "Entre todos" modo simple  (gv-group-*)
   Una sola selección colectiva, sin filas por votante
   ============================================================ */

.gv-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* Grid de tarjetas de candidatos */
.gv-group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 4px 0;
}

/* Cada tarjeta candidato */
.gv-group-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
  position: relative;
  text-align: center;
}
.gv-group-card:hover {
  border-color: rgba(249,115,22,0.4);
  background: rgba(249,115,22,0.06);
  transform: translateY(-1px);
}
.gv-group-card:active { transform: scale(0.96); }

/* Seleccionada */
.gv-group-card--selected {
  border-color: var(--color-orange);
  background: rgba(249,115,22,0.13);
  box-shadow: 0 0 22px rgba(249,115,22,0.25), inset 0 0 0 1px rgba(249,115,22,0.2);
}

.gv-group-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gv-group-name {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gv-group-card--selected .gv-group-name {
  color: var(--color-orange);
}

.gv-group-check {
  font-size: 18px;
  color: var(--color-orange);
  line-height: 1;
}

/* Indicador de selección bajo la grid */
.gv-group-selection {
  text-align: center;
  padding: 12px 16px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 14px;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s;
}
.gv-group-selection--visible {
  opacity: 1;
}
.gv-sel-ico { font-size: 20px; }
.gv-sel-txt { color: var(--color-text); }
.gv-sel-txt strong { color: var(--color-orange); }

/* ============================================================
   BOTÓN PAUSA FLOTANTE + MENÚ PAUSA  (pause-fab / pm-*)
   ============================================================ */

/* ---- FAB botón ⋮ ---- */
.pause-fab {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(13,17,23,0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--color-text-muted);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  transition: color 0.15s, background 0.15s, transform 0.1s;
}
.pause-fab:hover {
  color: var(--color-text);
  background: rgba(30,36,48,0.9);
  transform: scale(1.08);
}
.pause-fab:active { transform: scale(0.94); }

/* ---- MODAL centrado (override para menú pausa) ---- */
.modal-overlay.center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal.center {
  width: calc(100% - 48px);
  max-width: 340px;
  border-radius: 24px;
}

/* ---- CONTENIDO DEL MENÚ ---- */
.pm-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 20px;
  gap: 4px;
  background: #161b22;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
}

.pm-icon {
  font-size: 36px;
  filter: drop-shadow(0 0 10px rgba(249,115,22,0.4));
  margin-bottom: 4px;
}

.pm-title {
  font-size: var(--font-size-xl);
  font-weight: 900;
  color: var(--color-text);
}

.pm-word {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.pm-word strong { color: var(--color-orange); }

/* Botones de acción */
.pm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}

.pm-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  text-align: left;
}
.pm-btn span:first-child { font-size: 20px; flex-shrink: 0; }
.pm-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.15); }
.pm-btn:active { transform: scale(0.97); }

.pm-btn--restart:hover { border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.07); }
.pm-btn--setup:hover   { border-color: rgba(249,115,22,0.5); background: rgba(249,115,22,0.07); }
.pm-btn--home:hover    { border-color: rgba(99,102,241,0.5);  background: rgba(99,102,241,0.07); }

/* Botón cancelar */
.pm-cancel {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}
.pm-cancel:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.06);
}
