/* ═══════════════════════════════════════════════════════════
   GÜN ÇEKİLİŞİ — Ana Stil Dosyası
   ════════════════════════════════════════════════════════════ */

/* ─── Google Fonts & Reset ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&display=swap');

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

:root {
  --bg-dark:       #0d0d1a;
  --bg-card:       rgba(255,255,255,0.06);
  --bg-card-hover: rgba(255,255,255,0.10);
  --border:        rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.22);

  --text-primary:  #f0f0ff;
  --text-secondary:#a0a0c0;
  --text-muted:    #606080;

  --accent-1: #7B2FBE;
  --accent-2: #FF6B6B;
  --accent-3: #06D6A0;
  --accent-4: #FFD166;

  --gradient-main: linear-gradient(135deg, #7B2FBE 0%, #E040FB 50%, #FF6B6B 100%);
  --gradient-gold: linear-gradient(135deg, #FFD166 0%, #FF8E53 100%);
  --gradient-green: linear-gradient(135deg, #06D6A0 0%, #118AB2 100%);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-sm: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(123,47,190,0.4);

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

html, body {
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
}

/* ─── Animated Background Orbs ─────────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb1 {
  width: 500px; height: 500px;
  background: var(--accent-1);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.orb2 {
  width: 400px; height: 400px;
  background: var(--accent-2);
  bottom: -80px; right: -80px;
  animation-delay: -4s;
}

.orb3 {
  width: 350px; height: 350px;
  background: var(--accent-3);
  top: 50%; left: 60%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ─── Glass Card ─────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  margin: 16px;
  border-radius: var(--radius-lg);
  position: sticky;
  top: 16px;
  z-index: 100;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-tag {
  font-size: 0.65rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-user {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}

.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 20px rgba(123,47,190,0.5);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(123,47,190,0.7); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.4; transform: none; cursor: not-allowed; box-shadow: none; }

.btn-accent {
  background: var(--gradient-gold);
  color: #1a1a00;
  box-shadow: 0 4px 20px rgba(255,209,102,0.4);
}
.btn-accent:hover { box-shadow: 0 6px 28px rgba(255,209,102,0.6); transform: translateY(-1px); }

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

.btn-danger {
  background: linear-gradient(135deg, #FF4444, #CC0000);
  color: white;
  box-shadow: 0 4px 16px rgba(255,68,68,0.4);
}
.btn-danger:hover { box-shadow: 0 6px 24px rgba(255,68,68,0.6); transform: translateY(-1px); }

.btn-full { width: 100%; }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-xs { padding: 4px 10px; font-size: 0.78rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-xl { padding: 18px 36px; font-size: 1.2rem; border-radius: var(--radius-xl); }

.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* ─── Form Styles ────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(123,47,190,0.2);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  z-index: 1;
}

.input-wrapper input {
  padding-left: 42px;
}

.error-message {
  padding: 10px 14px;
  background: rgba(255, 68, 68, 0.15);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: #FF8080;
  font-size: 0.88rem;
  font-weight: 500;
}

.msg-box {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 12px;
}
.msg-box.success {
  background: rgba(6,214,160,0.15);
  border: 1px solid rgba(6,214,160,0.3);
  color: #06D6A0;
}
.msg-box.error {
  background: rgba(255,68,68,0.15);
  border: 1px solid rgba(255,68,68,0.3);
  color: #FF8080;
}

.hidden { display: none !important; }
.mt-20 { margin-top: 20px; }

/* ─── LOGIN PAGE ─────────────────────────────────────────────── */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  flex-direction: column;
  gap: 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-card {
  padding: 40px 36px;
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.logo-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 20px rgba(123,47,190,0.6));
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(123,47,190,0.5)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 32px rgba(224,64,251,0.7)); transform: scale(1.05); }
}

.login-title {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.btn-full .btn-text { flex: 1; }
.btn-full .btn-icon { font-size: 1.1rem; }

.login-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  position: relative;
  z-index: 1;
}

/* ─── LOBBY PAGE ─────────────────────────────────────────────── */
.lobby-page body,
.lobby-page {
  min-height: 100vh;
  background: var(--bg-dark);
}

.lobby-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.lobby-card, .lobby-info {
  padding: 28px;
}

.lobby-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.lobby-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.online-badge {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-3);
}

.all-online-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(6,214,160,0.1);
  border: 1px solid rgba(6,214,160,0.3);
  border-radius: var(--radius-md);
  color: var(--accent-3);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 16px;
  animation: fadeIn 0.5s ease;
}

.pulse-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-3);
  animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.user-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.user-item.online {
  border-color: rgba(6,214,160,0.3);
  background: rgba(6,214,160,0.05);
}

.user-item.offline {
  opacity: 0.55;
}

.user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.user-name { font-weight: 700; font-size: 0.95rem; }
.user-status { font-size: 0.78rem; color: var(--text-muted); }

.spun-badge {
  font-size: 0.78rem;
  background: rgba(6,214,160,0.15);
  border: 1px solid rgba(6,214,160,0.3);
  color: var(--accent-3);
  padding: 2px 8px;
  border-radius: 50px;
}

/* Bekleme animasyonu */
.waiting-animation {
  text-align: center;
  padding: 30px 0;
}

.spin-preview {
  font-size: 4rem;
  animation: spinSlow 4s linear infinite;
  display: block;
  margin-bottom: 18px;
}

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

.waiting-animation h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.waiting-animation p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.info-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

.info-box h4 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }

.how-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.how-list li {
  padding-left: 16px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.how-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-1);
}

/* Spin order list */
.spin-order-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--accent-4);
}

.spin-order-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.spin-order-list.compact .spin-order-item {
  padding: 7px 10px;
}

.spin-order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.spin-order-item.done {
  opacity: 0.5;
  text-decoration: line-through;
}

.spin-order-item.active {
  border-color: rgba(123,47,190,0.5);
  background: rgba(123,47,190,0.1);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(123,47,190,0.2);
}

.spin-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.spin-name { flex: 1; }
.done-badge { font-size: 0.8rem; }
.active-badge { font-size: 0.9rem; }

/* ─── ADMIN PAGE ─────────────────────────────────────────────── */
.admin-page {
  background: var(--bg-dark);
}

.admin-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.admin-card {
  padding: 28px;
}

.admin-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.admin-card-header .admin-section-title { margin-bottom: 0; }

.add-user-form .form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
}

.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table code {
  background: rgba(255,255,255,0.07);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
}

.loading-row { text-align: center; color: var(--text-muted); padding: 24px; }

.badge-online  { color: var(--accent-3); font-size: 0.85rem; }
.badge-offline { color: var(--text-muted); font-size: 0.85rem; }
.badge-done    { color: var(--accent-3); font-size: 0.85rem; }
.badge-pending { color: var(--accent-4); font-size: 0.85rem; }

.control-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.spin-order-section, .results-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.spin-order-section h3, .results-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.admin-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.result-rank {
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 60px;
}

.result-name { font-weight: 700; flex: 1; }
.result-spun { color: var(--text-muted); font-size: 0.82rem; }

/* ─── WHEEL PAGE ─────────────────────────────────────────────── */
.wheel-page {
  background: var(--bg-dark);
}

.wheel-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.wheel-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.turn-indicator {
  width: 100%;
  padding: 16px 24px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all var(--transition);
}

.turn-indicator.waiting  { color: var(--text-secondary); }
.turn-indicator.your-turn {
  border-color: var(--accent-1);
  background: rgba(123,47,190,0.15);
  box-shadow: var(--shadow-glow);
  animation: yourTurnPulse 2s ease-in-out infinite;
  color: var(--text-primary);
}
.turn-indicator.other-turn { color: var(--text-secondary); }
.turn-indicator.finished { color: var(--accent-4); }

@keyframes yourTurnPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(123,47,190,0.3); }
  50% { box-shadow: 0 0 40px rgba(123,47,190,0.6); }
}

.wheel-wrapper {
  position: relative;
  width: 500px;
  height: 500px;
  flex-shrink: 0;
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  z-index: 10;
  color: #FFD166;
  text-shadow: 0 0 16px rgba(255,209,102,0.8);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

#wheelCanvas {
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(123,47,190,0.3), var(--shadow-lg);
}

.spin-btn {
  min-width: 260px;
}

.spin-btn-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spin-icon {
  font-size: 1.3rem;
  transition: transform 0.5s;
}

.spin-btn:not(:disabled):hover .spin-icon {
  animation: spinIcon 0.5s linear;
}

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

.spin-msg {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
}

.spin-msg.error {
  background: rgba(255,68,68,0.15);
  border: 1px solid rgba(255,68,68,0.3);
  color: #FF8080;
}

/* Wheel Sidebar */
.wheel-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  padding: 20px;
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  animation: slideIn 0.4s ease;
}

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

.ranking-pos {
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 28px;
}

.ranking-name { font-weight: 600; font-size: 0.92rem; }

.empty-state {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
  padding: 20px 0;
}

/* ─── CELEBRATION OVERLAY ────────────────────────────────────── */
.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.celebration-card {
  padding: 48px 52px;
  text-align: center;
  max-width: 480px;
  width: 90%;
  animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  z-index: 1;
}

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

.celebration-emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 16px;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.celebration-name {
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 12px;
}

.celebration-rank {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.celebration-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Finished Overlay */
.finished-card {
  max-width: 560px;
  padding: 40px;
}

.finished-title {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.final-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.final-rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  text-align: left;
  animation: slideIn 0.4s ease both;
}

.final-rank-item.top-1 {
  border-color: rgba(255,209,102,0.5);
  background: rgba(255,209,102,0.08);
  box-shadow: 0 0 20px rgba(255,209,102,0.2);
}

.final-rank-item.top-2 { border-color: rgba(192,192,192,0.4); }
.final-rank-item.top-3 { border-color: rgba(205,127,50,0.4); }

.final-medal { font-size: 1.4rem; flex-shrink: 0; }
.final-name { font-weight: 700; flex: 1; }
.final-note { font-size: 0.82rem; color: var(--accent-4); font-weight: 600; }

/* Game active section in lobby */
.game-active-section {
  animation: fadeIn 0.4s ease;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lobby-container {
    grid-template-columns: 1fr;
  }

  .wheel-layout {
    grid-template-columns: 1fr;
  }

  .wheel-wrapper {
    width: min(90vw, 460px);
    height: min(90vw, 460px);
  }

  #wheelCanvas {
    width: 100% !important;
    height: 100% !important;
  }

  .wheel-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .navbar { margin: 8px; padding: 10px 16px; }
  .wheel-layout, .lobby-container, .admin-container {
    padding: 10px;
    gap: 12px;
  }
  .login-card { padding: 28px 20px; }
  .add-user-form .form-row { flex-direction: column; }
  .control-buttons { flex-direction: column; }
  .wheel-sidebar { grid-template-columns: 1fr; }
  .celebration-card { padding: 32px 24px; }
  .celebration-name { font-size: 2rem; }
}

/* ─── ORDER REVEAL OVERLAY ────────────────────────────────────── */
.reveal-card {
  max-width: 500px;
  width: 92%;
  padding: 36px 28px;
}

.reveal-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 6px;
}

.reveal-header p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.reveal-icon {
  font-size: 3rem;
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}

.reveal-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding: 4px;
}

.reveal-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  animation: revealPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes revealPop {
  0% { opacity: 0; transform: scale(0.6) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.reveal-item-pos {
  font-weight: 900;
  font-size: 1.1rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  min-width: 80px;
  text-align: left;
}

.reveal-item-name {
  font-weight: 700;
  font-size: 1.05rem;
  flex: 1;
  text-align: left;
  color: var(--text-primary);
}

.reveal-done-banner {
  padding: 12px 18px;
  background: rgba(6,214,160,0.15);
  border: 1px solid rgba(6,214,160,0.3);
  border-radius: var(--radius-md);
  color: var(--accent-3);
  font-weight: 700;
  font-size: 1rem;
  animation: fadeIn 0.4s ease;
}
