.sl72-prediction-shell { position: relative; }
.sl72-prediction-dashboard {
  --sl72-round-progress: 0deg;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.sl72-prediction-card {
  min-width: 0;
  max-width: 100%;
  padding: clamp(20px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid var(--sl72-border);
  border-radius: var(--sl72-radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)), var(--sl72-surface);
  box-shadow: var(--sl72-shadow-soft);
}

.sl72-prediction-card h3 { margin-bottom: 13px; }
.sl72-prediction-card p:last-child { margin-bottom: 0; }
.sl72-prediction-time { grid-column: span 7; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.sl72-prediction-reference { grid-column: span 5; }
.sl72-prediction-history { grid-column: 1 / -1; }
.sl72-prediction-note { grid-column: 1 / -1; border-color: rgba(223,77,112,0.34); background: linear-gradient(135deg, rgba(223,77,112,0.1), rgba(138,102,218,0.055)); }

.sl72-prediction-kicker { color: var(--sl72-secondary); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.sl72-prediction-clock { color: var(--sl72-primary-bright); font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 900; font-variant-numeric: tabular-nums; }
.sl72-period-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.sl72-period-box { min-width: 0; padding: 13px; border: 1px solid rgba(255,255,255,0.08); border-radius: 13px; background: rgba(0,0,0,0.16); }
.sl72-period-box span { display: block; color: var(--sl72-muted); font-size: 0.78rem; }
.sl72-period-box strong { display: block; margin-top: 4px; color: var(--sl72-text); font-size: 0.94rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.sl72-countdown-ring {
  position: relative;
  display: grid;
  width: clamp(134px, 15vw, 176px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--sl72-primary) var(--sl72-round-progress), rgba(255,255,255,0.08) 0deg);
}
.sl72-countdown-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #0b1b2b; box-shadow: inset 0 0 28px rgba(17,149,181,0.13); }
.sl72-countdown { position: relative; color: #fff4d5; font-size: clamp(1.45rem, 3vw, 2.15rem); font-weight: 950; font-variant-numeric: tabular-nums; }

.sl72-reference-balls { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 20px; }
.sl72-reference-ball {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 50%;
  color: #241606;
  background: radial-gradient(circle at 32% 25%, #fff7dc 0 7%, #ffd774 23%, #f7bd45 56%, #b66b14 100%);
  box-shadow: 0 12px 25px rgba(247,189,69,0.25), inset -8px -8px 14px rgba(91,46,3,0.24);
  font-size: 1.5rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.sl72-reference-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.sl72-reference-meta div { min-width: 0; padding: 11px; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; background: rgba(0,0,0,0.14); }
.sl72-reference-meta span { display: block; color: var(--sl72-muted); font-size: 0.75rem; }
.sl72-reference-meta strong { display: block; margin-top: 4px; color: var(--sl72-text); overflow-wrap: anywhere; }
.sl72-colour-dot { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 50%; vertical-align: 0; background: currentColor; }
.sl72-colour-red { color: #ff708d !important; }
.sl72-colour-green { color: #35dfb8 !important; }
.sl72-colour-violet { color: #ad8cff !important; }

.sl72-history-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.sl72-history-item { min-width: 0; padding: 14px; border: 1px solid rgba(255,255,255,0.08); border-radius: 13px; background: rgba(0,0,0,0.14); }
.sl72-history-period { display: block; margin-bottom: 9px; color: var(--sl72-muted); font-size: 0.72rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sl72-history-numbers { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.sl72-history-numbers b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #201505; background: var(--sl72-primary); font-size: 0.78rem; }
.sl72-history-detail { color: #d9e6ef; font-size: 0.76rem; overflow-wrap: anywhere; }
.sl72-round-status { min-height: 1.5em; margin-top: 12px; color: var(--sl72-secondary); font-weight: 800; }

.sl72-period-navigation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.sl72-period-link { display: grid; min-width: 0; min-height: 92px; place-items: center; padding: 14px; border: 1px solid var(--sl72-border); border-radius: 17px; color: var(--sl72-muted); background: rgba(255,255,255,0.035); font-weight: 850; text-align: center; overflow-wrap: anywhere; }
.sl72-period-link[aria-current="page"] { color: #211707; border-color: transparent; background: linear-gradient(135deg, #ffe089, var(--sl72-primary)); box-shadow: 0 14px 30px rgba(247,189,69,0.2); }
.sl72-prediction-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 27px; border: 1px solid var(--sl72-border-strong); border-radius: 22px; background: linear-gradient(135deg, rgba(247,189,69,0.09), rgba(17,149,181,0.07)); }
.sl72-prediction-cta h2 { margin-bottom: 8px; font-size: 1.55rem; }
.sl72-prediction-cta p { margin: 0; }

@media (max-width: 900px) {
  .sl72-prediction-time, .sl72-prediction-reference { grid-column: span 6; }
  .sl72-prediction-time { grid-template-columns: 1fr; }
  .sl72-history-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sl72-period-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .sl72-prediction-dashboard { grid-template-columns: 1fr; }
  .sl72-prediction-time, .sl72-prediction-reference, .sl72-prediction-history, .sl72-prediction-note { grid-column: auto; }
  .sl72-period-grid, .sl72-reference-meta, .sl72-history-list, .sl72-period-navigation { grid-template-columns: 1fr; }
  .sl72-countdown-ring { width: 146px; }
  .sl72-reference-ball { width: 58px; height: 58px; flex-basis: 58px; }
  .sl72-prediction-cta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sl72-countdown-ring, .sl72-reference-ball { transition: none !important; animation: none !important; }
}
