:root {
  --font-display: 'Bebas Neue', Impact, 'Arial Narrow Bold', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* White Theme Color Palette */
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-gold: rgba(217, 119, 6, 0.4);

  --gold: #d97706; /* Rich Amber */
  --gold-soft: rgba(245, 158, 11, 0.12);
  --red: #e11d48; /* Clean Rose Red */
  --red-soft: rgba(225, 29, 72, 0.08);

  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-dim: #94a3b8; /* Slate 400 */

  box-sizing: border-box;
}

html { scroll-behavior: smooth; }
* { -webkit-tap-highlight-color: transparent; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.008em;
}
.font-display { font-family: var(--font-display); letter-spacing: 0.015em; font-weight: 400; }
.font-mono-num { font-variant-numeric: tabular-nums; }

/* Clean White Ticket Card */
.ticket-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}
.ticket-divider {
  position: relative;
  margin: 22px -24px;
  border-top: 2px dashed #e2e8f0;
}
.ticket-divider::before, .ticket-divider::after {
  content: ''; position: absolute; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; background: #f8fafc; border-radius: 50%;
  border: 1px solid #e2e8f0;
}
.ticket-divider::before { left: -11px; }
.ticket-divider::after { right: -11px; }

.stamp {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 4px 10px 3px;
  border-radius: 8px;
  transform: rotate(-2deg);
  background: var(--red-soft);
  font-weight: 600;
}

/* 1. TOP: GOL (CIRCULAR) & CENTERED AVATARS */
@keyframes danger-glow-pulse-light {
  0% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5), inset 0 0 4px rgba(225, 29, 72, 0.2);
    border-color: #e11d48;
  }
  50% {
    box-shadow: 0 0 14px 2px rgba(225, 29, 72, 0.35);
    border-color: #be123c;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5), inset 0 0 4px rgba(225, 29, 72, 0.2);
    border-color: #e11d48;
  }
}

.nominee-circle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
  justify-items: center;
}

.nominee-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 130px;
  padding: 14px 8px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.nominee-circle-card:hover { 
  transform: translateY(-3px); 
  border-color: #cbd5e1;
}

.avatar-circle-box {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 3px;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  margin-bottom: 10px;
  transition: all 0.25s ease;
}

@media (min-width: 640px) {
  .avatar-circle-box { width: 96px; height: 96px; }
}

.avatar-circle-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nominee-circle-card.in-danger .avatar-circle-box {
  animation: danger-glow-pulse-light 2s infinite ease-in-out;
}

.danger-tag-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fff1f2;
  border: 1.5px solid #e11d48;
  color: #e11d48;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.2);
  text-transform: uppercase;
}

.nominee-big-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  width: 100%;
  word-break: break-word;
}

.check-badge-circle {
  display: none;
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 24px;
  height: 24px;
  background: #d97706;
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  z-index: 21;
}

.nominee-circle-card.picked {
  border-color: #d97706 !important;
  background: #fffbeb;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.15);
}

.nominee-circle-card.picked .avatar-circle-box {
  border-color: #d97706 !important;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.3);
  animation: none;
}

.nominee-circle-card.picked .check-badge-circle { display: flex; }
.nominee-circle-card.picked .nominee-big-name { color: #d97706 !important; }

/* 2. VOTING LIST ITEMS */
.vote-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.vote-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateX(2px);
}

.vote-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 10;
}

.vote-thumb-round {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  flex-shrink: 0;
}

.vote-item-info { display: flex; flex-direction: column; }

.radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.2s ease;
}

.vote-item-right {
  position: relative;
  z-index: 10;
  text-align: right;
  flex-shrink: 0;
}

.vote-item.picked {
  border-color: #d97706;
  background: #fffbeb;
}

.vote-item.picked .radio-dot {
  background: #d97706 !important;
  box-shadow: 0 0 6px rgba(217, 119, 6, 0.4);
}

.vote-item .fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(245, 158, 11, 0.15);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

/* 3. ROSTER CARDS */
.roster-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.roster-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.roster-status-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.status-safe {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.status-danger {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.status-eliminated {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.roster-avatar-box {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  margin-bottom: 4px;
}

.roster-meta-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.eliminated-card { opacity: 0.75; }

/* Buttons and Controls */
.btn-cast {
  background: #d97706;
  color: #ffffff;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-size: 17px;
  border-radius: 12px;
  padding: 14px 0;
  width: 100%;
  transition: all 0.15s ease;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}
.btn-cast:hover:not(:disabled) { 
  background: #b45309; 
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}
.btn-cast:active:not(:disabled) { transform: scale(0.98); }
.btn-cast:disabled { opacity: 0.6; cursor: not-allowed; }

.live-dot { 
  position: relative; display: inline-flex; width: 8px; height: 8px; 
  border-radius: 9999px; background: #e11d48; 
}
.live-dot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 9999px;
  border: 1.5px solid #e11d48; animation: ring 1.8s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }

.chip {
  flex-shrink: 0; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 10px;
  border: 1px solid #e2e8f0; color: #64748b; background: #ffffff; white-space: nowrap;
  transition: all .15s ease;
}
.chip.active { background: #0f172a; border-color: #0f172a; color: #ffffff; }
.chip:not(.active):hover { color: #0f172a; border-color: #cbd5e1; background: #f8fafc; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.mobile-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid #e2e8f0;
}
.nav-item.active { color: #d97706; }

.quiz-opt { 
  background: #ffffff; 
  border: 1px solid #e2e8f0; 
  color: #334155; 
  transition: all .15s ease; 
}
.quiz-opt:hover:not(:disabled) { 
  border-color: #cbd5e1; 
  background: #f8fafc; 
  color: #0f172a; 
}
.quiz-opt:disabled { opacity: 0.7; }
