/* styleResults.css v5 — unified with DeFiBall dark theme */
:root{
  --bg:#000000; 
  --bg-gradient: linear-gradient(135deg, #000000 0%, #0a0e1a 100%);
  --fg:#e2e8f0; 
  --line:#334155;
  --card:#0a0e1a; 
  --muted:#93a3b8; 
  --shadow:0 6px 18px rgba(0,0,0,.25);
  --blue:#1E40AF; 
  --red:#DC143C;
  --purple:#a855f7;
  --glow-blue: 0 0 20px rgba(30, 64, 175, 0.5);
  --glow-red: 0 0 20px rgba(220, 20, 60, 0.5);
  --glow-purple: 0 0 20px rgba(168, 85, 247, 0.5);
}
*{box-sizing:border-box}
html,body{margin:0}
body{
  background:var(--bg-gradient);
  color:var(--fg);
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  min-height:100vh;
}

/* Layout shared with My Tickets */
.tickets-main{max-width:1100px;margin:0 auto;padding:0 16px 48px}

/* Section Titles */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 24px 0 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title.centered {
  text-align: center;
}

/* Last Draw Section */
.last-draw-section {
  margin-bottom: 32px;
}

.last-draw-container {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 500px;
}

.last-draw-card {
  width: 100%;
}

/* Section Spacer */
.section-spacer {
  height: 48px;
}

/* Historical Section */
.historical-section {
  margin-top: 32px;
}

/* Grid of results */
.draw-grid{
  display:grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}
@media (max-width: 1024px){ 
  .draw-grid{ 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 12px;
  } 
}

@media (max-width: 640px){ 
  .draw-grid{ 
    grid-template-columns: 1fr; 
    gap: 10px;
  }
  
  .tickets-main{
    padding: 0 12px 48px;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin: 20px 0 16px;
  }
  
  .section-spacer {
    height: 32px;
  }
  
  .last-draw-container {
    max-width: 100%;
  }
  
  .draw-card{
    padding: 12px;
  }
  
  .draw-card:hover{
    transform: translateY(-3px) scale(1.01);
  }
  
  .draw-img{
    max-height: 220px;
    border-radius: 6px;
  }
  
  .draw-caption{
    font-size: 0.9rem;
  }
}

/* Cards */
.draw-card{
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border:2px solid rgba(51, 65, 85, 0.5);
  border-radius:20px;
  padding:20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  text-align:center;
  position: relative;
  overflow: hidden;
}
.draw-card:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--glow-blue), 0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  border-color: rgba(30, 64, 175, 0.9);
  background: rgba(10, 14, 26, 0.8);
}

/* Media */
.draw-img{
  display:block;
  max-width:100%;
  height:auto;
  margin: 6px auto 8px;
  max-height: 260px;
  object-fit: contain;
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.draw-card:hover .draw-img{ 
  filter: brightness(1.1) contrast(1.1);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Caption */
.draw-caption{ 
  color: var(--muted); 
  transition: all 0.3s ease;
}
.draw-caption .fn{ 
  color:#e2e8f0; 
  font-weight: 600;
}
.mono{ font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }
.empty{ 
  text-align:center; 
  color: var(--muted); 
  margin: 14px 0 24px; 
}

/* Keyframe Animations */
@keyframes neonPulse {
  0%, 100% { 
    box-shadow: 0 0 5px var(--glow-blue), 0 0 10px var(--glow-blue); 
  }
  50% { 
    box-shadow: 0 0 10px var(--glow-blue), 0 0 20px var(--glow-blue); 
  }
}

/* Accessibility - Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
