/* Candidate home › the result (home-result.js): a big card on top. Green and confetti for
   good news, blue for the backup list, calm grey for "thank you". */
.result-zone { display: grid; gap: 16px; margin-top: 28px; }
.result-zone[hidden] { display: none; }
.res-card { position: relative; overflow: hidden; padding: 28px 30px 26px; border-radius: 18px; background: var(--sheet);
  box-shadow: 0 1px 0 var(--rule); }
.res-card.is-good { background: linear-gradient(135deg, var(--accent-tint), var(--sheet) 70%); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 35%, transparent); }
.res-card.is-hope { background: linear-gradient(135deg, color-mix(in srgb, #0a66c2 12%, var(--sheet)), var(--sheet) 70%); }
.res-card .label { margin: 0; }
.res-card h2 { margin: 6px 0 0; padding-right: 56px; font: 650 clamp(22px, 3vw, 30px)/1.2 var(--display); letter-spacing: -0.02em; }
.res-card.is-good h2 { color: var(--accent); }
.res-mark { position: absolute; top: 22px; right: 26px; font-size: 38px; line-height: 1; }
.res-text { margin: 12px 0 0; max-width: 70ch; font-size: 16px; line-height: 1.55; }
.res-cheer { margin: 10px 0 0; max-width: 70ch; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.res-interview { display: grid; gap: 6px; justify-items: start; margin-top: 18px; padding: 16px 18px; border-radius: 14px;
  background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); }
.res-interview .note { margin: 0; padding: 0; }
.res-when { font: 600 19px/1.25 var(--display); }
.res-interview .btn { margin-top: 6px; }

/* A short shower of confetti on good news (not when motion is reduced). */
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; opacity: 0;
  animation: res-fall linear forwards; }
.confetti i[data-c="0"] { background: #1a7f4b; }
.confetti i[data-c="1"] { background: #f2b705; }
.confetti i[data-c="2"] { background: #0a66c2; }
.confetti i[data-c="3"] { background: #e4572e; }
.confetti i[data-c="4"] { background: #9b5de5; }
@keyframes res-fall {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0; transform: translateY(320px) rotate(var(--spin)); }
}
@media (max-width: 640px) {
  .res-card { padding: 22px 18px 20px; }
  .res-mark { top: 16px; right: 16px; font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }
