:root{
  --bg:#0b0f17;
  --panel:#111827;
  --card:#0f1522;
  --text:#e5e7eb;
  --muted:#9aa3b2;
  --border:#1f2937;
  --accent:#6ee7b7;
  --accent-2:#60a5fa;
  --gold:#fbbf24;
  --silver:#d1d5db;
  --bronze:#f59e0b;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
/* ===== LAYOUT & CONTAINER ===== */
.container{max-width:1100px;margin:0 auto;padding:20px}

/* Add moderate space between header and main content */
main.container {
  margin-top: 40px; /* Reduced space between header and content */
  padding-top: 15px; /* Reduced internal padding */
}
.muted{color:var(--muted)}
.mono{font-feature-settings:"tnum" 1, "ss01" 1;font-variant-numeric:tabular-nums}
.small{font-size:12px}

/* ===== MODERNIZED HEADER DESIGN ===== */
.hero{
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
  border-bottom: 2px solid rgba(96, 165, 250, 0.2);
  position: relative;
  overflow: hidden;
}

/* Animated loading-style background effect */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(96, 165, 250, 0.1) 20%, 
    rgba(96, 165, 250, 0.2) 50%, 
    rgba(96, 165, 250, 0.1) 80%, 
    transparent 100%
  );
  background-size: 200% 100%;
  animation: loadingWave 6s infinite ease-in-out; /* Reduced speed to half */
}

@keyframes loadingWave {
  0% { 
    background-position: -200% 0; 
    opacity: 0.3;
  }
  50% { 
    background-position: 0% 0; 
    opacity: 0.7;
  }
  100% { 
    background-position: 200% 0; 
    opacity: 0.3;
  }
}

.hero__inner{
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 20px; 
  padding: 24px 0;
  position: relative;
  z-index: 1;
}

.brand{
  display: flex; 
  align-items: center; 
  gap: 16px;
  position: relative;
}

.brand__logoimg{
  width: 48px; 
  height: 48px; 
  border-radius: 16px; 
  object-fit: cover;
  background: linear-gradient(135deg, #60a5fa 0%, #6ee7b7 100%);
  padding: 2px;
  margin-left: 20px; /* Added left margin for spacing from edge */
  box-shadow: 
    0 4px 20px rgba(96, 165, 250, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.brand__logoimg:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 
    0 8px 32px rgba(96, 165, 250, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand__txt h1{
  margin: 0; 
  font-size: 28px; 
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.brand__txt .sub{
  margin: 4px 0 0 0; 
  color: rgba(148, 163, 184, 0.9); 
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.meta span {
  font-size: 13px;
  color: rgba(203, 213, 225, 0.8);
  font-weight: 500;
}

.refresh-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 8px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.refresh-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.refresh-btn:hover::before {
  left: 100%;
}

.refresh-btn:active {
  transform: translateY(0);
}

.refresh-icon {
  font-size: 16px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.refresh-btn:hover .refresh-icon {
  transform: rotate(180deg);
}

/* Podium */
/* ===== MODERNIZED PODIUM DESIGN ===== */
.podium{
  display:grid;
  grid-template-columns:1fr 1.4fr 1fr; /* Make first place wider, 2nd and 3rd equal */
  gap:20px;
  margin:80px 0 30px 0; /* Increased top margin to prevent medal overlap */
  padding:0 10px;
  align-items:end; /* Align items to bottom instead of stretch */
}

.podium .slot{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:20px;
  padding:20px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  position:relative;
  overflow:visible;
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height:140px;
}

/* Modern hover effects for podium slots */
.podium .slot:hover {
  transform:translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(96, 165, 250, 0.3);
  border-color:rgba(96, 165, 250, 0.5);
}

/* Enhanced first place styling - stays larger */
.podium .slot.first {
  transform:translateY(-15px);
  background:linear-gradient(135deg, 
    rgba(255, 215, 0, 0.08) 0%, 
    var(--panel) 40%);
  border-color:rgba(255, 215, 0, 0.3);
  min-height:180px;
}

.podium .slot.first:hover {
  transform:translateY(-25px) scale(1.03);
  box-shadow:
    0 25px 50px rgba(255, 215, 0, 0.15),
    0 0 0 2px rgba(255, 215, 0, 0.4);
}

/* Make 2nd and 3rd places shorter */
.podium .slot.second,
.podium .slot.third {
  min-height:100px; /* Shorter but not too aggressive */
  transform:translateY(0);
}

.podium .slot.second:hover,
.podium .slot.third:hover {
  transform:translateY(-5px) scale(1.01);
}

/* Enhanced username styling */
.podium .user{
  font-weight:800;
  margin:12px 0 16px 0;
  text-align:center;
  font-size:16px;
  color:rgba(255, 255, 255, 0.95);
}

.podium .slot.first .user {
  font-size:18px;
  color:rgba(255, 215, 0, 0.9);
}

/* Wager display styling */
.podium .nums{display:flex;gap:12px;margin-bottom:16px;}
.podium .num{display:flex;flex-direction:column;align-items:center;justify-content:center}
.podium .num label{
  display:block;
  font-size:12px;
  color:var(--muted);
  text-align:center;
  margin-bottom:4px;
  text-transform:uppercase;
  letter-spacing:0.5px;
}
.podium .num span{
  font-size:20px;
  font-weight:800;
  display:inline-block;
  margin-top:2px;
  color:rgba(255, 255, 255, 0.9);
}

/* Modern crown styling */
.crown{
  position:absolute;
  top:15px;
  right:15px;
  width:40px;
  height:40px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-weight:800;
  color:#0b0f17;
  font-size:16px;
  box-shadow:0 4px 12px rgba(0, 0, 0, 0.3);
  transition:all 0.3s ease;
}

.crown.gold{
  background:linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  box-shadow:0 6px 20px rgba(255, 215, 0, 0.4);
}
.crown.silver{
  background:linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  color:#111827;
  box-shadow:0 4px 16px rgba(192, 192, 192, 0.4);
}
.crown.bronze{
  background:linear-gradient(135deg, #cd7f32 0%, #e6a85c 100%);
  box-shadow:0 4px 16px rgba(205, 127, 50, 0.4);
}

/* MASSIVELY ENHANCED PRIZE STAGES */
.stage{
  width:100%;
  margin-top:16px;
  border-radius:16px;
  background:linear-gradient(135deg, 
    rgba(96, 165, 250, 0.1) 0%, 
    rgba(110, 231, 183, 0.1) 100%);
  border:2px solid rgba(96, 165, 250, 0.2);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.1);
  transition:all 0.3s ease;
}

/* Animated gradient background */
.stage::before {
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(45deg, 
    transparent 0%, 
    rgba(96, 165, 250, 0.05) 50%, 
    transparent 100%);
  animation:prizePulse 3s ease-in-out infinite;
  pointer-events:none;
}

@keyframes prizePulse {
  0%, 100% { opacity:0.5; transform:translateX(-100%); }
  50% { opacity:1; transform:translateX(100%); }
}

/* Enhanced stage heights with modern sizing */
.podium .slot.first .stage{ 
  height:80px;
  background:linear-gradient(135deg, 
    rgba(255, 215, 0, 0.15) 0%, 
    rgba(255, 165, 0, 0.1) 100%);
  border-color:rgba(255, 215, 0, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 25px rgba(255, 215, 0, 0.2);
}

/* Make 2nd and 3rd place stages smaller */
.podium .slot.second .stage,
.podium .slot.third .stage{ 
  height:55px; /* Moderately smaller */
}

.podium .slot.second .stage{
  background:linear-gradient(135deg, 
    rgba(192, 192, 192, 0.15) 0%, 
    rgba(169, 169, 169, 0.1) 100%);
  border-color:rgba(192, 192, 192, 0.4);
}

.podium .slot.third .stage{
  background:linear-gradient(135deg, 
    rgba(205, 127, 50, 0.15) 0%, 
    rgba(184, 115, 51, 0.1) 100%);
  border-color:rgba(205, 127, 50, 0.4);
}
.first{transform:translateY(-10px)}
/* Board */
.board{background:transparent;border:none;border-radius:0;overflow:visible}
.toolbar{display:flex;gap:10px;align-items:center;padding:12px;border-bottom:1px solid var(--border)}
.input,.btn{background:var(--card);border:1px solid var(--border);color:var(--text);padding:10px 12px;border-radius:10px;outline:none}
.btn{cursor:pointer}
.btn:hover{filter:brightness(1.15)}
.tablewrap{overflow:auto;border-top:none}
table{width:100%;border-collapse:collapse}
thead{background:#0e1422}
th,td{padding:12px 14px;border-bottom:1px solid var(--border);font-size:14px;white-space:nowrap;text-align:left}
th{color:#c3cad6;user-select:none;cursor:pointer}

/* ===== MODERN TABLE ROW HOVER ANIMATIONS ===== */
/* Enhanced hover effects for table rows with smooth animations */
#table tbody tr {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(96, 165, 250, 0.2);
  padding: 14px 16px; /* Slightly increase padding on hover */
}

/* Add a subtle gradient overlay on hover */
#table tbody tr:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.03) 0%, 
    rgba(110, 231, 183, 0.02) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Ensure content stays above the overlay */
#table tbody tr td {
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
}

/* Enhance text on hover */
#table tbody tr:hover td {
  color: rgba(255, 255, 255, 0.95);
}

/* Special effects for rank number */
#table tbody tr:hover .rank {
  color: rgba(96, 165, 250, 0.9);
  font-weight: 600;
}

/* Prize amount gets emphasized */
#table tbody tr:hover .mono:last-child {
  color: rgba(110, 231, 183, 0.9);
  font-weight: 600;
}

/* Active state for when clicked */
#table tbody tr:active {
  transform: translateY(-1px) scale(1.01);
  transition: all 0.1s ease;
}

.rank{width:56px}

/* Footer */
.notice{border-top:1px solid var(--border);padding:16px 0;background:#0b0f17}

/* Responsive */
@media (max-width:900px){
  .podium{grid-template-columns:1fr}
  .first{transform:none}
  
}

/* Mobile-friendly table: stack rows as leaderboard cards to avoid horizontal scrolling
   Card layout: big username, large centered wager with "WAGERED" label beneath, small prize below */
/* Desktop + Mobile: table as leaderboard cards */
/* Apply only to the leaderboard table to avoid global table changes */
#table{border:0}
#table th, #table td { border-bottom: none; }
#table thead{display:none}

/* Cards as single-line flex rows: username | wager | prize */
#table tbody tr{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:12px 0;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 14px;
}

/* hide the auto-before labels for the card layout */
#table tbody td::before{display:none}

/* Make each cell take equal space */
#table tbody td{flex:1;min-width:0;padding:6px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Alignment per column */
#table tbody td[data-label="Username"]{text-align:left;font-weight:800;text-transform:uppercase;letter-spacing:1px;color:var(--text);font-size:16px}
#table tbody td[data-label="Wager"]{text-align:center;font-weight:900;color:var(--text);font-size:18px}
#table tbody td[data-label="Prize"]{text-align:right;color:var(--muted);font-size:14px}

/* hide rank column for compactness */
#table tbody td[data-label="#"]{display:none}

/* alternating row colors and spacing */
#table tbody tr:nth-child(odd){ background: linear-gradient(180deg, var(--panel), #0e1422); }
#table tbody tr:nth-child(even){ background: linear-gradient(180deg, #0f1522, #0b1118); }

/* Mobile tweaks: slightly smaller fonts and padding */
@media (max-width:700px){
  #table tbody tr{padding:8px 10px;margin:8px 0}
  #table tbody td[data-label="Wager"]{font-size:16px}
  #table tbody td[data-label="Username"]{font-size:14px}
  #table tbody td[data-label="Prize"]{font-size:13px}
}

.picker{display:flex;gap:10px;align-items:center;padding:12px;border-bottom:1px solid var(--border)}

.tfoot-prize td{background:#0e1422; font-weight:800}

/* ---- Enhanced Top Prize Display ---- */
.bigprize--top{
  margin: 15px 0 10px 0;
  text-align:center;
  font-weight:900;
  font-size: 56px;
  letter-spacing:1px;
  background:linear-gradient(135deg, #60a5fa 0%, #6ee7b7 100%);
  -webkit-background-clip:text; 
  background-clip:text; 
  color:transparent;
  position:relative;
}

.bigprize--top::before {
  content:'🎯 GRAND PRIZE 🎯';
  position:absolute;
  top:-35px;
  left:50%;
  transform:translateX(-50%);
  font-size:16px;
  font-weight:600;
  color:rgba(255, 255, 255, 0.7);
  letter-spacing:2px;
  text-transform:uppercase;
  background:none;
  -webkit-background-clip:unset;
  background-clip:unset;
}

.podium .slot{position:relative; overflow: visible;}

/* ===== ENHANCED TOP PRIZE DISPLAY ===== */
.bigprize--top{
  margin: 15px 0 10px 0;
  text-align:center;
  font-weight:900;
  font-size: 56px;
  letter-spacing:1px;
  background:linear-gradient(135deg, #60a5fa 0%, #6ee7b7 100%);
  -webkit-background-clip:text; 
  background-clip:text; 
  color:transparent;
  position:relative;
}

.bigprize--top::before {
  content:'🎯 GRAND PRIZE 🎯';
  position:absolute;
  top:-35px;
  left:50%;
  transform:translateX(-50%);
  font-size:16px;
  font-weight:600;
  color:rgba(255, 255, 255, 0.7);
  letter-spacing:2px;
  text-transform:uppercase;
  background:none;
  -webkit-background-clip:unset;
  background-clip:unset;
}
/* Ensure consistent mobile stacking order: first, second, third */
@media (max-width:900px){
  .podium{display:flex;flex-direction:column}
  .podium .slot.first{order:0}
  .podium .slot.second{order:1}
  .podium .slot.third{order:2}
}

.podium .slot{position:relative; overflow: visible;}
.podium .slot{position:relative; overflow: visible;}

/* ===== ENHANCED TOP PRIZE DISPLAY ===== */

/* Ensure medals are not clipped by the cards */
.podium .slot{ overflow: visible; }

/* Ensure medals and badges can overflow without clipping */
.podium .slot{ overflow: visible; }

/* ===== MODERNIZED PRIZE LABELS ===== */
.stage .stage-label{ 
  position: relative; 
  z-index: 3; 
  font-weight: 900; 
  color: #ffffff; 
  text-align:center; 
  width:100%; 
  margin:0;
  text-shadow:0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing:0.5px;
}

.stage .stage-label.small-prize{ 
  font-size:16px; 
  color:#ef4444; 
  margin:0;
  font-weight:700;
}

/* MASSIVE PRIZE DISPLAYS - Modern sizing */
.podium .slot.first .stage-label{
  font-size: clamp(28px, 6vw, 48px);
  background:linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:none;
  font-weight:900;
  letter-spacing:1px;
}

/* Make 2nd and 3rd place prizes smaller but readable */
.podium .slot.second .stage-label,
.podium .slot.third .stage-label{
  font-size: clamp(18px, 4vw, 28px); /* Smaller but not tiny */
  font-weight:900;
  letter-spacing:0.4px;
  text-shadow:none;
}

.podium .slot.second .stage-label{
  background:linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.podium .slot.third .stage-label{
  background:linear-gradient(135deg, #cd7f32 0%, #e6a85c 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* Enhanced Big Prize Display at Top */
.bigprize{
  margin:80px 0 20px 0; /* Much larger top margin for better spacing from header */
  text-align:center; 
  font-weight:900; 
  font-size:48px; 
  letter-spacing:1px;
  background:linear-gradient(135deg, #60a5fa 0%, #6ee7b7 100%);
  -webkit-background-clip:text; 
  background-clip:text; 
  color:transparent;
  text-shadow:0 4px 16px rgba(96, 165, 250, 0.3);
  position:relative;
}

.bigprize::before {
  content:'🏆 TOTAL PRIZE POOL 🏆';
  position:absolute;
  top:-25px; /* Moved down a bit to avoid overlapping with main prize text */
  left:50%;
  transform:translateX(-50%);
  font-size:14px;
  font-weight:600;
  color:rgba(255, 255, 255, 0.6);
  letter-spacing:2px;
  text-transform:uppercase;
  background:none;
  -webkit-background-clip:unset;
  background-clip:unset;
}



/* ===== CLEAN MEDAL POSITIONING SYSTEM ===== */

/* Desktop: Medal positioned above content */
.medal {
  position: absolute;
  top: -55px; /* Reduced to prevent touching text */
  left: 50%;
  transform: translateX(-50%);
  width: 100px; /* Smaller base size */
  height: 100px;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  z-index: 5;
  object-fit: contain;
}

/* First place medal - larger but not too big */
.medal--gold {
  top: -65px; /* Slightly higher for larger medal */
  width: 130px;
  height: 130px;
}

/* Second and third place medals - equal smaller size */
.medal--silver,
.medal--bronze {
  top: -50px; /* Higher positioning to avoid text collision */
  width: 100px; /* Smaller size */
  height: 100px;
}

/* Content area positioning to avoid medal overlap */
.podium .slot .content-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 15px;
}

/* Consistent content alignment for all places */
.podium .slot.first .content-area {
  margin-top: 20px;
}

.podium .slot.second .content-area,
.podium .slot.third .content-area {
  margin-top: 12px;
}

/* ===== MOBILE RESPONSIVE LAYOUT ===== */
@media (max-width: 900px) {
  /* Fix grid alignment for mobile */
  .podium {
    align-items: stretch; /* Reset to default for mobile */
  }
  
  /* Change to horizontal layout on mobile */
  .podium .slot {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: center; /* Center align all text content */
    padding: 12px; /* Smaller padding */
    min-height: 90px; /* Smaller uniform height for all */
  }
  
  /* All podium slots same size on mobile */
  .podium .slot.first,
  .podium .slot.second,
  .podium .slot.third {
    min-height: 90px; /* Equal size for all */
    transform: translateY(0); /* No elevation differences */
  }
  
  /* Medal positioned on the left - all same size */
  .medal {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 60px; /* Smaller uniform size */
    height: 60px;
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  .medal--gold,
  .medal--silver,
  .medal--bronze {
    width: 60px; /* All equal size on mobile */
    height: 60px;
    top: 0;
  }
  
  /* Content area takes remaining space on the right */
  .podium .slot .content-area {
    margin-top: 0;
    align-items: center; /* Center align content */
    text-align: center; /* Center text */
    flex: 1;
  }
  
  /* Username styling for mobile - centered */
  .podium .user {
    text-align: center;
    margin: 0 0 6px 0;
    font-size: 14px;
  }
  
  /* Wager info layout for mobile - centered */
  .podium .nums {
    justify-content: center; /* Center the wager info */
    margin-bottom: 8px;
  }
  
  /* Prize stage adjustments for mobile - all same size */
  .podium .slot.first .stage,
  .podium .slot.second .stage,
  .podium .slot.third .stage {
    height: 45px; /* All equal smaller height */
    margin-top: 6px;
  }
  
  /* Mobile prize label sizing - all equal */
  .podium .slot.first .stage-label,
  .podium .slot.second .stage-label,
  .podium .slot.third .stage-label {
    font-size: clamp(14px, 4vw, 20px); /* All equal size */
  }
  
  /* Crown repositioning for mobile */
  .crown {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  
  /* Enhanced big prize for mobile */
  .bigprize {
    font-size: 28px;
    margin: 5px 0 10px 0;
  }
  
  .bigprize::before {
    font-size: 10px;
    top: -20px;
  }
  
  .bigprize--top {
    font-size: 32px;
  }
  
  .bigprize--top::before {
    font-size: 12px;
    top: -25px;
  }
}

/* Very small mobile screens */
@media (max-width: 600px) {
  .podium {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch; /* Reset alignment for small mobile */
  }
  
  .podium .slot.first {
    transform: translateY(0);
    order: 1;
  }
  
  .podium .slot.second {
    order: 2;
  }
  
  .podium .slot.third {
    order: 3;
  }
  
  /* All medals same size on small screens */
  .medal--gold,
  .medal--silver,
  .medal--bronze {
    width: 50px;
    height: 50px;
    margin-right: 10px;
  }
  
  /* All podium slots same size */
  .podium .slot,
  .podium .slot.first,
  .podium .slot.second,
  .podium .slot.third {
    padding: 10px;
    min-height: 80px; /* Uniform small size */
  }
  
  /* Smaller prizes for tiny screens */
  .podium .slot.first .stage,
  .podium .slot.second .stage,
  .podium .slot.third .stage {
    height: 35px;
  }
  
  .podium .slot.first .stage-label,
  .podium .slot.second .stage-label,
  .podium .slot.third .stage-label {
    font-size: clamp(12px, 3vw, 16px);
  }
}

/* Hero centered title (formerly top prize) */
.hero-title{
  width:100%;
  text-align:center;
  font-weight:900;
  font-size:40px;
  letter-spacing:.5px;
  margin:6px 0 6px 0;
  background:linear-gradient(135deg,var(--accent-2),var(--accent));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* Prize moved under top bar */
.prize-under{
  margin: 8px 0 0 0;
  text-align:center;
  font-weight:800;
  font-size:20px;
  color:#ffffff;
}

/* ===== MOBILE RESPONSIVE HEADER ===== */
@media (max-width: 900px) {
  .hero__inner {
    padding: 16px 0;
    gap: 16px;
  }
  
  .brand__logoimg { 
    width: 40px; 
    height: 40px; 
  }
  
  .brand__txt h1 { 
    font-size: 24px; 
  }
  
  .brand__txt .sub { 
    font-size: 12px; 
  }
  
  .meta {
    padding: 8px 12px;
    gap: 12px;
  }
  
  .meta span {
    font-size: 11px;
  }
  
  .refresh-btn {
    padding: 6px 10px;
  }
}

@media (max-width: 600px) {
  .hero__inner {
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
  }
  
  .brand {
    gap: 12px;
  }
  
  .brand__logoimg { 
    width: 36px; 
    height: 36px; 
  }
  
  .brand__txt h1 { 
    font-size: 20px; 
  }
  
  .meta {
    padding: 6px 10px;
    gap: 8px;
  }
  
  .refresh-btn {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* Compact toolbar (no prize text / tip line) */
.toolbar{ padding:12px; display:flex; justify-content:flex-end; gap:10px }

/* Hide any leftover spacing when toolbar/picker removed */
.board { border-top-left-radius: 16px; border-top-right-radius: 16px; }
.tablewrap { border-top: 1px solid var(--border); }

/* Scroll reveal helpers */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);will-change:opacity,transform}
.reveal.active{opacity:1;transform:none}
.reveal[data-delayed] { transition-delay: var(--reveal-delay, 0ms); }

@media (prefers-reduced-motion: reduce){
  .reveal{transition:none;transform:none}
}

/* Loading and Error States */
.loading-state, .error-state{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:400px;
  text-align:center;
  padding:40px 20px;
}

.loading-spinner{
  width:40px;
  height:40px;
  border:3px solid var(--border);
  border-top:3px solid var(--accent);
  border-radius:50%;
  animation:spin 1s linear infinite;
  margin-bottom:16px;
}

@keyframes spin{
  0%{transform:rotate(0deg)}
  100%{transform:rotate(360deg)}
}

.loading-state p{
  color:var(--muted);
  font-size:16px;
  margin:0;
}

.error-state{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  margin:20px 0;
}

.error-icon{
  font-size:48px;
  margin-bottom:16px;
}

.error-state h3{
  color:var(--text);
  font-size:20px;
  margin:0 0 8px 0;
}

.error-state p{
  color:var(--muted);
  font-size:14px;
  margin:0 0 20px 0;
  max-width:400px;
}

.retry-btn{
  background:var(--accent);
  color:#0b0f17;
  border:none;
  border-radius:8px;
  padding:10px 20px;
  font-weight:600;
  cursor:pointer;
  transition:opacity 0.2s ease;
}

.retry-btn:hover{
  opacity:0.9;
}

.retry-btn:active{
  transform:translateY(1px);
}

/* ===== REFRESH BUTTON STYLES ===== */
.refresh-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
  padding: 4px 8px;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: var(--card-bg);
  color: var(--text);
  border-color: var(--accent);
}

.refresh-btn:active {
  transform: translateY(1px);
}

.refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.refresh-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.refresh-btn.refreshing .refresh-icon {
  animation: spin 1s linear infinite;
}

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

@media (max-width: 600px) {
  .refresh-btn {
    font-size: 12px;
    padding: 3px 6px;
    margin-left: 8px;
  }
}
