/* ═══════════════════════════════════════════════════════════
   Dilemmator — Design System
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --void: #07070F;
  --surface: #0F0F1C;
  --card: #131320;
  --card-border: rgba(255,255,255,0.07);
  --red: #FF2D55;
  --red-glow: rgba(255,45,85,0.15);
  --green: #30D158;
  --green-dim: rgba(48,209,88,0.12);
  --white: #F3F1EC;
  --muted: #666680;
  --faint: rgba(255,255,255,0.04);
  --faint-2: rgba(255,255,255,0.06);
}

html, body {
  min-height: 100vh;
  background: var(--void);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Glow ── */
.glow {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,45,85,0.06) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -60%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -60%) scale(1.1); }
}

/* ── Layout ── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 40px;
  position: relative;
  z-index: 1;
  gap: 0;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,45,85,0.25);
  border-radius: 100px;
  padding: 5px 14px 5px 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,45,85,0.9);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

/* ── Title ── */
.title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(76px, 15vw, 164px);
  letter-spacing: 0.06em;
  line-height: 1;
  user-select: none;
  margin-bottom: 14px;
  text-align: center;
}

.title-w { color: var(--white); }
.title-r { color: var(--red); }

/* ── Subtitle ── */
.subtitle {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 48px;
  text-align: center;
}

/* ── Card ── */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 3px;
  background: rgba(255,255,255,0.035);
  border-radius: 11px;
  padding: 3px;
  margin-bottom: 28px;
}

.tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.01em;
}

.tab.active {
  background: var(--red);
  color: #fff;
}

/* ── Panels ── */
.panel { display: none; flex-direction: column; gap: 14px; }
.panel.active { display: flex; }

/* ── Field ── */
.field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field-input {
  width: 100%;
  background: var(--faint);
  border: 1px solid var(--card-border);
  border-radius: 11px;
  padding: 13px 15px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.field-input::placeholder { color: var(--muted); }
.field-input:focus { border-color: rgba(255,45,85,0.35); }

.code-input {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.35em;
  padding: 14px 15px;
}

/* ── Divider ── */
.sep { height: 1px; background: var(--card-border); margin: 2px 0; }

/* ── Buttons ── */
.btn {
  width: 100%;
  padding: 15px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: opacity 0.15s, transform 0.12s;
}

.btn:hover { opacity: 0.92; }
.btn:active { transform: scale(0.977); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--muted);
}

.btn-outline:hover { border-color: rgba(255,255,255,0.15); color: var(--white); }

.btn-sm {
  padding: 10px 18px;
  font-size: 11px;
  width: auto;
}

/* ── Stats ── */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}

.stat { text-align: center; }

.stat-n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
}

.stat-l {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-top: 2px;
}

.vline {
  width: 1px;
  height: 28px;
  background: var(--card-border);
}

/* ── Preview ── */
.preview {
  width: 100%;
  max-width: 420px;
  margin-top: 40px;
}

.preview-label {
  text-align: center;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 11px;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-left: 2px solid var(--red);
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 12.5px;
  color: #8888AA;
  line-height: 1.75;
  font-style: italic;
  transition: opacity 0.35s, transform 0.35s;
}

.preview-card.fade-out {
  opacity: 0;
  transform: translateY(5px);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 11px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: background 0.3s;
}

.dot.on { background: var(--red); }

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 20px 20px;
  font-size: 10.5px;
  color: rgba(102,102,128,0.5);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   GAME PAGE STYLES
   ═══════════════════════════════════════════════════════════ */

/* ── Scene Management ── */
.scene {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 560px;
  animation: fadeUp 0.4s ease-out;
}

.scene.active {
  display: flex;
}

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

/* ── Lobby ── */
.room-code-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
}

.room-code-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.room-code-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  letter-spacing: 0.2em;
  color: var(--red);
  cursor: pointer;
  transition: transform 0.15s;
  line-height: 1;
}

.room-code-value:hover {
  transform: scale(1.05);
}

.room-code-hint {
  font-size: 10px;
  color: var(--muted);
  opacity: 0.6;
}

.copied-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-50px);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.copied-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.players-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
  width: 100%;
}

.player-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--faint);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  animation: popIn 0.3s ease-out;
}

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

.player-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.player-host-icon {
  font-size: 11px;
  margin-left: -2px;
}

.lobby-settings {
  width: 100%;
  background: var(--faint);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
}

.lobby-settings-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.setting-label {
  font-size: 13px;
  color: var(--white);
  font-weight: 400;
}

.setting-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--faint);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  font-family: 'Inter', sans-serif;
}

.setting-btn:hover {
  background: var(--faint-2);
  border-color: rgba(255,255,255,0.12);
}

.setting-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--white);
  width: 30px;
  text-align: center;
  letter-spacing: 0.05em;
}

.waiting-text {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── Question Scene ── */
.question-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 32px;
}

.question-counter {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.question-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--white);
  text-align: center;
  margin-bottom: 36px;
  font-weight: 400;
  max-width: 500px;
}

.choices {
  display: flex;
  gap: 14px;
  width: 100%;
  margin-bottom: 16px;
}

.choice-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.choice-btn {
  width: 100%;
  padding: 22px 16px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--faint);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.choice-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 14px;
}

.choice-btn:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.choice-btn.yapardim:hover { border-color: rgba(255,45,85,0.4); }
.choice-btn.yapardim:hover::before { background: rgba(255,45,85,0.06); opacity: 1; }
.choice-btn.yapmazdim:hover { border-color: rgba(48,209,88,0.4); }
.choice-btn.yapmazdim:hover::before { background: rgba(48,209,88,0.06); opacity: 1; }

.choice-btn.selected {
  pointer-events: none;
}

.choice-btn.selected.yapardim {
  border-color: var(--red);
  background: rgba(255,45,85,0.08);
  box-shadow: 0 0 24px rgba(255,45,85,0.1);
}

.choice-btn.selected.yapmazdim {
  border-color: var(--green);
  background: rgba(48,209,88,0.08);
  box-shadow: 0 0 24px rgba(48,209,88,0.1);
}

.choice-btn.not-selected {
  opacity: 0.3;
  pointer-events: none;
}

.choice-icon {
  font-size: 28px;
}

.choice-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
}

.yapardim .choice-label { color: var(--red); }
.yapmazdim .choice-label { color: var(--green); }

/* Buton altı avatar circle'lar */
.choice-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  min-height: 32px;
  padding: 0 4px;
}

.choice-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  animation: avatarPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  border: 2px solid rgba(0,0,0,0.3);
}

@keyframes avatarPop {
  0% { opacity: 0; transform: scale(0) rotate(-15deg); }
  60% { transform: scale(1.15) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.answer-count {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

/* ── Results Scene ── */
.results-question {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 460px;
  font-style: italic;
}

.results-bars {
  width: 100%;
  margin-bottom: 28px;
}

.result-bar-group {
  margin-bottom: 16px;
}

.result-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.result-bar-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-bar-label.yapardim { color: var(--red); }
.result-bar-label.yapmazdim { color: var(--green); }

.result-bar-percent {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.04em;
}

.result-bar-percent.yapardim { color: var(--red); }
.result-bar-percent.yapmazdim { color: var(--green); }

.result-bar-track {
  width: 100%;
  height: 8px;
  background: var(--faint);
  border-radius: 4px;
  overflow: hidden;
}

.result-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-bar-fill.yapardim { background: var(--red); }
.result-bar-fill.yapmazdim { background: var(--green); }

.results-players {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.result-player {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 7px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  animation: popIn 0.4s ease-out;
}

.result-player.yapardim {
  background: rgba(255,45,85,0.08);
  border: 1px solid rgba(255,45,85,0.15);
  color: rgba(255,45,85,0.9);
}

.result-player.yapmazdim {
  background: rgba(48,209,88,0.08);
  border: 1px solid rgba(48,209,88,0.15);
  color: rgba(48,209,88,0.9);
}

.result-player .mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}



/* ── Game End Scene ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes zoomInAwards {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.end-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 10vw, 80px);
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 8px;
  text-align: center;
  line-height: 1;
  animation: fadeDown 0.6s ease-out backwards;
  animation-delay: 0.2s;
}

.end-subtitle {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 36px;
  animation: fadeDown 0.6s ease-out backwards;
  animation-delay: 0.5s;
}

.awards-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-bottom: 32px;
  animation: zoomInAwards 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: 1.2s;
}

.award-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  flex: 1;
  max-width: 180px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.award-card:nth-child(1) { animation-delay: 1.4s; }
.award-card:nth-child(2) { animation-delay: 1.6s; }
.award-card:nth-child(3) { animation-delay: 1.8s; }

.award-emoji {
  font-size: 32px;
}

.award-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.award-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.award-score {
  font-size: 10px;
  color: var(--muted);
}

.ranking-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--faint);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  animation: fadeUp 0.5s ease-out backwards;
}

.ranking-item:nth-child(1) { animation-delay: 2.3s; }
.ranking-item:nth-child(2) { animation-delay: 2.45s; }
.ranking-item:nth-child(3) { animation-delay: 2.6s; }
.ranking-item:nth-child(4) { animation-delay: 2.75s; }
.ranking-item:nth-child(5) { animation-delay: 2.9s; }
.ranking-item:nth-child(n+6) { animation-delay: 3.05s; }

.ranking-pos {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--muted);
  width: 24px;
  text-align: center;
}

.ranking-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ranking-info {
  flex: 1;
}

.ranking-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 2px;
}

.ranking-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.ranking-bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) 3.5s;
}

.ranking-percent {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--red);
  letter-spacing: 0.03em;
  width: 52px;
  text-align: right;
}

.end-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  animation: fadeUp 0.5s ease-out backwards;
  animation-delay: 3.6s;
}

/* ── Error toast ── */
.error-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: rgba(255,45,85,0.15);
  border: 1px solid rgba(255,45,85,0.3);
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.error-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Back Button ── */
.back-button {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--faint);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100;
}

.back-button:hover {
  background: var(--faint-2);
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
  transform: translateX(-3px);
}

/* ── Responsive ── */
@media (max-width: 500px) {
  .card { padding: 24px 20px; }
  .choices { flex-direction: column; }
  .awards-grid { flex-direction: column; align-items: center; }
  .award-card { max-width: 100%; }
  .question-text { font-size: 16px; }
  .room-code-value { font-size: 48px; }
  .players-sidebar { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   PLAYERS SIDEBAR
   ═══════════════════════════════════════════════════════════ */

.players-sidebar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 50;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 160px;
  max-width: 200px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}

.sidebar-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-count {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--red);
  line-height: 1;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  animation: sidebarSlide 0.3s ease-out;
}

.sidebar-player.disconnected {
  opacity: 0.35;
}

@keyframes sidebarSlide {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.sidebar-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.sidebar-host {
  font-size: 10px;
  flex-shrink: 0;
}

.sidebar-room-code {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--card-border);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.15em;
}
