/**
 * Florida Predictor — Sections v3.1 (F2+F3)
 * Hero, Countdown, Heatmap, Predictions Teaser, Frequency Chart
 * 
 * CHANGELOG v3.1:
 * F2:
 *  - Lottery balls: circular (border-radius: 50%), inner shadow, shine pseudo
 *  - Countdown: bigger values, refined boxes, branded glow
 *  - Card hero: gradient accent backgrounds
 * F3:
 *  - Heatmap: tighter grid, multi-hue scale, dark mode colors, improved tooltip
 *  - Frequency chart: dark mode bg, padding, branded frame
 *  - Table: handled in components.css (zebra, hover glow)
 *  - Stats: improved layout with divider
 */

/* ============================================================================
   HERO: ÚLTIMO RESULTADO
   ============================================================================ */

.result-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.dot-sep {
  color: var(--text-tertiary);
  font-weight: 700;
}

/* --- Lottery Balls (F2 Redesign: Circular) --- */
.numbers-display {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
  padding: var(--space-2) 0;
}

.lottery-ball {
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 50%;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  flex-shrink: 0;
}

.lottery-ball:hover {
  transform: scale(1.1) translateY(-2px);
}

/* Shine pseudo-element (top-left light reflection) */
.lottery-ball::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 10px;
  width: 28px;
  height: 14px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Primary ball (1ro) */
.ball--primary {
  background: var(--gradient-hero);
  box-shadow:
    var(--shadow-lg),
    0 0 20px rgba(0, 168, 255, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.15),
    inset 0 -3px 6px rgba(0, 0, 0, 0.15);
}

.ball--primary:hover {
  box-shadow:
    var(--shadow-xl),
    0 0 30px rgba(0, 168, 255, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.15),
    inset 0 -3px 6px rgba(0, 0, 0, 0.15);
}

.ball--primary .ball-value {
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.ball--primary .ball-label {
  color: rgba(255, 255, 255, 0.8);
}

/* Secondary balls (2do, 3ro) */
.ball--secondary {
  background: var(--bg-surface);
  border: 3px solid var(--blue-200);
  box-shadow:
    var(--shadow-md),
    inset 0 2px 4px rgba(7, 75, 120, 0.04),
    inset 0 -2px 4px rgba(7, 75, 120, 0.06);
}

.ball--secondary:hover {
  border-color: var(--blue-400);
  box-shadow:
    var(--shadow-lg),
    0 0 16px rgba(0, 168, 255, 0.15),
    inset 0 2px 4px rgba(7, 75, 120, 0.04),
    inset 0 -2px 4px rgba(7, 75, 120, 0.06);
}

:root.dark .ball--secondary {
  background: var(--bg-elevated);
  border-color: var(--blue-700);
}

:root.dark .ball--secondary:hover {
  border-color: var(--blue-500);
  box-shadow:
    var(--shadow-lg),
    0 0 16px rgba(0, 168, 255, 0.2),
    inset 0 2px 4px rgba(0, 168, 255, 0.05),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

/* Dim the shine on secondary balls */
.ball--secondary::before {
  opacity: 0.5;
}

:root.dark .ball--secondary::before {
  opacity: 0.15;
}

.ball--secondary .ball-value {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

:root.dark .ball--secondary .ball-value {
  background: linear-gradient(135deg, var(--blue-300), var(--fp-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ball--secondary .ball-label {
  color: var(--blue-600);
}

:root.dark .ball--secondary .ball-label {
  color: var(--blue-400);
}

/* Ball text */
.ball-value {
  font-size: 1.875rem;
  font-weight: 800;
  font-family: var(--font-body);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 2;
}

.ball-label {
  font-size: 0.5625rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

/* Number update flash effect */
.ball-value.updated {
  animation: numberFlash 0.4s var(--ease-smooth);
}

/* Prediction match */
.prediction-match {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-light);
}

.match-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gradient-success);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.match-badge {
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.match-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}
.match-badge:active { transform: translateY(0); }
.match-badge:focus-visible {
  outline: 2px solid var(--color-success);
  outline-offset: 2px;
}

/* ---- Hit Detail Modal ---- */

.hit-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(12, 18, 34, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.hit-modal-overlay.is-open { opacity: 1; }

.hit-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(12px) scale(0.97);
  transition: transform var(--transition-base);
}
.hit-modal-overlay.is-open .hit-modal {
  transform: translateY(0) scale(1);
}

.hit-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--border-light);
}

.hit-modal__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-success);
}

.hit-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.hit-modal__close:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}
.hit-modal__close:focus-visible {
  outline: 2px solid var(--fp-secondary);
  outline-offset: 1px;
}

.hit-modal__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

/* Actual numbers in the modal */
.hit-modal__actual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background: var(--glass-blue);
  border-radius: var(--radius-lg);
}
.hit-modal__actual-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: var(--space-1);
  text-align: center;
}
.hit-modal__actual-balls {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}
.hit-modal__ball {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-inset-ball), var(--shadow-sm);
}
.hit-modal__ball.is-hit {
  background: var(--gradient-success);
  box-shadow: var(--shadow-inset-ball), 0 0 12px rgba(16, 185, 129, 0.4);
  animation: hit-pulse 1.5s ease-in-out infinite;
}
@keyframes hit-pulse {
  0%, 100% { box-shadow: var(--shadow-inset-ball), 0 0 12px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: var(--shadow-inset-ball), 0 0 20px rgba(16, 185, 129, 0.6); }
}

/* Per-model row */
.hit-modal__models {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.hit-model-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-light);
  transition: border-color var(--transition-fast);
}
.hit-model-row.has-hit {
  border-color: var(--color-success);
  background: rgba(16, 185, 129, 0.06);
}
:root.dark .hit-model-row.has-hit {
  background: rgba(16, 185, 129, 0.08);
}

.hit-model-row__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.hit-model-row__icon.hit-yes {
  background: var(--color-success);
  color: white;
}
.hit-model-row__icon.hit-no {
  background: var(--border-color);
  color: var(--text-tertiary);
}
:root.dark .hit-model-row__icon.hit-no {
  background: var(--border-light);
}

.hit-model-row__info {
  flex: 1;
  min-width: 0;
}
.hit-model-row__name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
}
.hit-model-row__detail {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 1px;
}
.hit-model-row__rank {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.hit-model-row__rank.rank-top5 {
  background: var(--color-success);
  color: white;
}
.hit-model-row__rank.rank-top10 {
  background: var(--color-info);
  color: white;
}
.hit-model-row__rank.rank-top20 {
  background: var(--color-warning);
  color: white;
}
.hit-model-row__rank.rank-miss {
  background: var(--border-color);
  color: var(--text-tertiary);
}
:root.dark .hit-model-row__rank.rank-miss {
  background: var(--border-light);
}

/* ============================================================================
   HERO: COUNTDOWN (F2 Redesign)
   ============================================================================ */

.next-draw-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fp-primary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

:root.dark .next-draw-name { color: var(--fp-secondary); }

.countdown-timer {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
  margin: var(--space-4) 0;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-xl);
  background: var(--bg-surface-hover);
  border: 2px solid var(--border-color);
  transition: all 0.25s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient overlay on time units */
.time-unit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 168, 255, 0.02), transparent 60%);
  pointer-events: none;
}

:root.dark .time-unit {
  background: rgba(0, 168, 255, 0.04);
  border-color: var(--blue-800);
}

.time-unit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 12px rgba(0, 168, 255, 0.08);
  border-color: var(--blue-300);
}

:root.dark .time-unit:hover {
  border-color: var(--blue-600);
}

.time-value {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}

:root.dark .time-value {
  background: linear-gradient(135deg, var(--blue-300), var(--fp-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.time-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  margin-top: var(--space-1);
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.time-separator {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-400);
  animation: blink-sep 1s ease-in-out infinite;
}

:root.dark .time-separator {
  color: var(--blue-500);
}

.next-draw-time {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  background: var(--bg-surface-hover);
  border-radius: var(--radius-md);
  display: inline-flex;
  margin: 0 auto;
}

/* Countdown urgency states */
.countdown-timer.warning .time-unit {
  border-color: var(--color-warning);
  background: rgba(245, 158, 11, 0.04);
}

.countdown-timer.warning .time-value {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-timer.urgent .time-unit {
  border-color: var(--color-danger);
  animation: pulse-urgent 1.5s ease-in-out infinite;
  background: rgba(239, 68, 68, 0.04);
}

.countdown-timer.urgent .time-value {
  background: linear-gradient(135deg, var(--color-danger), var(--color-danger-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================================
   PREDICTIONS TEASER
   ============================================================================ */

.teaser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.teaser-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.teaser-title-row svg { color: var(--color-violet); }

.teaser-title-row h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.teaser-body {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.teaser-content { flex: 1; }

.teaser-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}
.teaser-desc strong { color: var(--text-primary); }

/* Progress */
.teaser-progress {
  margin-bottom: var(--space-5);
}

.teaser-progress-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.teaser-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  position: relative;
}

.teaser-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer-bar 2.5s ease-in-out infinite;
}

.teaser-progress-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

/* Roadmap */
.teaser-roadmap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.roadmap-step {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-light);
}

.roadmap-step.done {
  color: var(--color-success);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.roadmap-step.active {
  color: var(--fp-secondary);
  background: rgba(0, 168, 255, 0.08);
  border-color: rgba(0, 168, 255, 0.2);
}

.roadmap-step svg { flex-shrink: 0; }

/* Preview balls (blurred) */
.teaser-preview {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
  filter: blur(6px);
  opacity: 0.3;
  user-select: none;
}

.preview-ball {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  font-weight: 800;
  font-size: 0.875rem;
  font-family: var(--font-body);
}

@media (max-width: 768px) {
  .teaser-body { flex-direction: column; }
  .teaser-preview { justify-content: center; }
}

/* ============================================================================
   HEATMAP (F3 Redesign)
   ============================================================================ */

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin: var(--space-5) 0;
  padding: var(--space-3);
  background: var(--bg-surface-hover);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

:root.dark .heatmap-grid {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.04);
}

.heatmap-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  position: relative;
  border: 1.5px solid transparent;
  /* Note: background-color and color are set dynamically by heatmap.js */
}

.heatmap-cell:hover {
  transform: scale(1.3);
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.9);
}

:root.dark .heatmap-cell:hover {
  border-color: rgba(0, 168, 255, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 8px rgba(0, 168, 255, 0.2);
}

/* Tooltip (CSS only) */
.heatmap-cell::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: rgba(15, 23, 42, 0.95);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transition: all 0.15s var(--ease-smooth);
  opacity: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 20;
}

/* Tooltip arrow */
.heatmap-cell::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(15, 23, 42, 0.95);
  pointer-events: none;
  transition: all 0.15s var(--ease-smooth);
  opacity: 0;
  z-index: 20;
}

.heatmap-cell:hover::after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.heatmap-cell:hover::before {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

/* Legend */
.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-3);
}

.legend-label {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legend-gradient {
  width: 180px;
  height: 14px;
  background: linear-gradient(to right,
    hsl(220, 80%, 92%),
    hsl(220, 80%, 78%),
    hsl(220, 80%, 62%),
    hsl(220, 80%, 48%),
    hsl(220, 80%, 35%)
  );
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

:root.dark .legend-gradient {
  background: linear-gradient(to right,
    hsl(220, 50%, 20%),
    hsl(210, 70%, 30%),
    hsl(200, 80%, 40%),
    hsl(200, 90%, 50%),
    hsl(190, 95%, 55%)
  );
  border-color: rgba(255, 255, 255, 0.08);
}

/* Stats */
.heatmap-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-4);
  background: var(--bg-surface-hover);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  position: relative;
}

:root.dark .heatmap-stats {
  background: rgba(0, 168, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.04);
}

/* Divider between stats */
.heatmap-stats::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 50%;
  width: 1px;
  height: 50%;
  background: var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  text-align: center;
}

.stat-label {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
}

:root.dark .stat-value {
  background: linear-gradient(135deg, var(--blue-300), var(--fp-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================================
   FREQUENCY CHART — ECharts container (F3 Redesign)
   ============================================================================ */

.chart-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-light);
  padding: var(--space-2) 0;
}

:root.dark .chart-container {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.04);
}

/* ============================================================================
   RESPONSIVE — SECTION TWEAKS
   ============================================================================ */

@media (max-width: 768px) {
  .numbers-display { gap: var(--space-4); }
  .lottery-ball { width: 68px; height: 68px; }
  .ball-value { font-size: 1.625rem; }
  .lottery-ball::before { width: 22px; height: 11px; top: 5px; left: 8px; }

  .countdown-timer { gap: var(--space-2); }
  .time-unit { min-width: 62px; padding: var(--space-3) var(--space-2); }
  .time-value { font-size: 2rem; }
  .time-separator { font-size: 1.5rem; }

  .heatmap-grid { gap: 2px; padding: var(--space-2); }
  .heatmap-cell { font-size: 0.625rem; }
}

@media (max-width: 480px) {
  .lottery-ball { width: 58px; height: 58px; }
  .ball-value { font-size: 1.375rem; }
  .ball-label { font-size: 0.5rem; }
  .lottery-ball::before { width: 18px; height: 9px; top: 4px; left: 6px; }

  .time-unit { min-width: 50px; }
  .time-value { font-size: 1.5rem; }
  .time-separator { font-size: 1.25rem; }

  .heatmap-grid { gap: 1.5px; }
  .heatmap-cell { font-size: 0.5625rem; border-radius: 2px; }
}