.ssr-prediction {
  position: relative; margin-bottom: clamp(52px,7vw,86px); padding: clamp(24px,4.5vw,52px); overflow: hidden;
  border: 1px solid var(--ssr-border-strong); border-radius: 30px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.98),rgba(255,247,232,.94)),
    repeating-linear-gradient(45deg,rgba(75,36,95,.035) 0 1px,transparent 1px 15px);
  box-shadow: var(--ssr-shadow-md);
}
.ssr-prediction::before {
  content: ""; position: absolute; right: -82px; top: -92px; width: 230px; height: 230px;
  border: 30px double rgba(11,127,120,.08); border-radius: 50%; pointer-events: none;
}
.ssr-prediction > * { position: relative; z-index: 1; min-width: 0; }
.ssr-prediction__heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 24px; margin-bottom: 28px; }
.ssr-prediction__heading h2 { margin: 0 0 12px; color: var(--ssr-primary-strong); font-size: clamp(1.7rem,3vw,2.55rem); line-height: 1.22; }
.ssr-prediction__heading p:not(.ssr-eyebrow) { max-width: 72ch; margin: 0; color: var(--ssr-muted); }
.ssr-prediction__status { align-self: start; max-width: 260px; padding: 9px 13px; border: 1px solid #cce7df; border-radius: 999px; color: #075f5a !important; background: var(--ssr-secondary-soft); font-size: .82rem; font-weight: 800; line-height: 1.4; }
.ssr-prediction__timing { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.ssr-prediction-card { min-width: 0; max-width: 100%; padding: 18px; border: 1px solid var(--ssr-border); border-radius: 17px; background: rgba(255,255,255,.9); box-shadow: var(--ssr-shadow-sm); }
.ssr-prediction-card span { display: block; margin-bottom: 6px; color: var(--ssr-muted); font-size: .79rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.ssr-lang-hi .ssr-prediction-card span { letter-spacing: 0; text-transform: none; }
.ssr-prediction-card strong { display: block; color: var(--ssr-primary); font-size: clamp(1rem,1.7vw,1.3rem); line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ssr-prediction-card--countdown { border-color: #e3bd72; background: linear-gradient(145deg,#fffaf1,#fff0cd); }
.ssr-prediction-card--countdown strong { color: #7d4a05; font-size: clamp(1.35rem,2.4vw,2rem); }
.ssr-prediction-card small { display: block; margin-top: 8px; color: var(--ssr-muted); font-size: .76rem; line-height: 1.45; }
.ssr-prediction__reference { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: 16px; margin-top: 16px; }
.ssr-prediction__numbers { display: grid; align-content: center; min-width: 0; padding: clamp(24px,4vw,42px); border: 1px solid rgba(75,36,95,.16); border-radius: 23px; color: var(--ssr-white); background: linear-gradient(135deg,var(--ssr-primary-strong),var(--ssr-primary)); box-shadow: 0 20px 42px rgba(75,36,95,.2); }
.ssr-prediction__numbers p { margin: 0 0 18px; color: #f9e9ff; font-weight: 800; }
.ssr-prediction__numbers small { margin-top: 17px; color: #eadfee; line-height: 1.55; }
.ssr-prediction__balls { display: flex; flex-wrap: wrap; gap: clamp(10px,2vw,18px); }
.ssr-prediction__ball { display: grid; place-items: center; flex: 0 0 clamp(58px,7vw,76px); width: clamp(58px,7vw,76px); height: clamp(58px,7vw,76px); border: 3px solid rgba(255,255,255,.58); border-radius: 50%; color: #26142d; background: linear-gradient(145deg,#fff9e9,var(--ssr-accent-light)); box-shadow: inset 0 0 0 5px rgba(255,255,255,.32),0 12px 22px rgba(0,0,0,.18); font-size: clamp(1.55rem,3vw,2.25rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.ssr-prediction[data-ssr-reference-colour="red"] .ssr-prediction__ball { background: linear-gradient(145deg,#fff6e8,#e98b70); }
.ssr-prediction[data-ssr-reference-colour="green"] .ssr-prediction__ball { background: linear-gradient(145deg,#fff8e9,#73c5a8); }
.ssr-prediction[data-ssr-reference-colour="violet"] .ssr-prediction__ball { background: linear-gradient(145deg,#fff5e3,#ba8cd0); }
.ssr-prediction__signals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.ssr-prediction__progress { height: 7px; margin: 20px 2px 0; overflow: hidden; border-radius: 99px; background: #eadfce; }
.ssr-prediction__progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--ssr-secondary),var(--ssr-accent)); transition: width .35s linear; }
.ssr-prediction__history { display: grid; grid-template-columns: minmax(210px,.34fr) minmax(0,.66fr); gap: 24px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--ssr-border); }
.ssr-prediction__history h3 { margin: 0 0 9px; color: var(--ssr-primary-strong); font-size: 1.35rem; line-height: 1.35; }
.ssr-prediction__history p { margin: 0; color: var(--ssr-muted); font-size: .9rem; }
.ssr-prediction__history ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ssr-prediction__history li { min-width: 0; padding: 13px 14px; border: 1px solid var(--ssr-border); border-radius: 13px; background: rgba(255,255,255,.78); font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; }
.ssr-prediction__history li span, .ssr-prediction__history li strong { display: block; }
.ssr-prediction__history li span { color: var(--ssr-muted); }
.ssr-prediction__history li strong { margin-block: 3px; color: var(--ssr-primary); font-size: 1rem; font-variant-numeric: tabular-nums; }
.ssr-prediction__safety, .ssr-prediction__noscript { margin: 26px 0 0; padding: 18px 20px; border-left: 4px solid var(--ssr-accent); border-radius: 0 15px 15px 0; color: #553b1f; background: #fff1d6; }
.ssr-prediction__safety p, .ssr-prediction__noscript { margin-bottom: 0; }
.ssr-prediction__noscript { border-left-color: var(--ssr-secondary); background: var(--ssr-secondary-soft); }
.ssr-page-prediction_1m .ssr-side-card .ssr-button,
.ssr-page-prediction_3m .ssr-side-card .ssr-button,
.ssr-page-prediction_5m .ssr-side-card .ssr-button,
.ssr-page-prediction_10m .ssr-side-card .ssr-button { width: 100%; margin-top: 14px; }

@media (max-width:900px) {
  .ssr-prediction__timing { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ssr-prediction__reference, .ssr-prediction__history { grid-template-columns: minmax(0,1fr); }
}

@media (max-width:640px) {
  .ssr-prediction { width: min(calc(100% - 20px),var(--ssr-shell)); padding: 22px 17px; border-radius: 23px; }
  .ssr-prediction__heading, .ssr-prediction__timing, .ssr-prediction__signals, .ssr-prediction__history ol { grid-template-columns: minmax(0,1fr); }
  .ssr-prediction__status { max-width: none; justify-self: start; }
  .ssr-prediction-card, .ssr-prediction__numbers, .ssr-prediction__history li { max-width: 100%; }
  .ssr-prediction__numbers { padding: 24px 18px; }
  .ssr-prediction__balls { justify-content: center; }
  .ssr-prediction__ball { flex-basis: 58px; width: 58px; height: 58px; }
}

@media (max-width:350px) {
  .ssr-prediction { padding-inline: 14px; }
  .ssr-prediction__balls { gap: 8px; }
  .ssr-prediction__ball { flex-basis: 54px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion:reduce) {
  .ssr-prediction__progress span, .ssr-prediction__ball { transition: none !important; animation: none !important; }
}
