/* The result announcement of the real exam (paper.html): a navy hero that counts the score up and then names the verdict, and a quiet dashboard under it.
   A pass gets fireworks over the whole window (drawn by the page's script on a canvas, class .nk-fx); a fail gets the same announcement without any effect.
   Palette: navy, cream, pink, white only. Everything that moves is switched off for prefers-reduced-motion. */

@property --nk-n{syntax:"<integer>";inherits:false;initial-value:0}
.nk-fx{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:90;pointer-events:none}

.nk-res{width:100%;max-width:960px;margin:6px auto 40px;display:flex;flex-direction:column;gap:16px;box-sizing:border-box}

/* ---- the hero ---- */
.nk-hero{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:44px 28px 36px;border-radius:28px;color:#FFFEEF;
  background:radial-gradient(120% 90% at 50% 0%,#0F55AE 0%,#0A4088 46%,#072F66 100%);animation:nk-hero-in .8s cubic-bezier(.2,.8,.2,1) both}
.nk-hero::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 35%,rgba(255,254,239,.10) 50%,transparent 65%);transform:translateX(-120%);animation:nk-sheen 2.6s .5s ease-in-out both}
.nk-hero-eyebrow{font-size:13px;letter-spacing:.22em;opacity:.78;animation:nk-fade .8s .2s both}
.nk-hero-paper{font-size:15px;font-weight:700;letter-spacing:.08em;animation:nk-fade .8s .3s both}
.nk-hero-score{display:flex;align-items:baseline;justify-content:center;gap:4px;margin:14px 0 2px;font-variant-numeric:tabular-nums;animation:nk-fade .6s .4s both}
.nk-count{--nk-n:var(--to,0);counter-reset:nkn var(--nk-n);font-size:clamp(84px,15vw,132px);line-height:1;font-weight:800;letter-spacing:-.03em;animation:nk-count 2.4s .5s cubic-bezier(.2,.7,.15,1) both}
.nk-count::after{content:counter(nkn)}
.nk-hero-score i{font-style:normal;font-size:clamp(26px,4vw,38px);font-weight:700;opacity:.8}
.nk-hero-gauge{position:relative;width:min(420px,86%);height:8px;border-radius:999px;background:rgba(255,254,239,.22);margin-top:8px}
.nk-hero-fill{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:#FFFEEF;animation:nk-fill 2.4s .5s cubic-bezier(.2,.7,.15,1) both}
.nk-hero-gauge em{position:absolute;top:-6px;bottom:-6px;width:3px;border-radius:2px;background:#FF52A2;transform:translateX(-50%)}
.nk-hero-line{min-height:16px;font-size:12px;letter-spacing:.06em;opacity:.85;animation:nk-fade .6s 1s both}
.nk-hero-verdict{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:22px;animation:nk-fade .01s 2.8s both}
.nk-hero-verdict b{display:inline-block;font-size:clamp(56px,11vw,104px);line-height:1.05;font-weight:700;letter-spacing:.14em;padding-left:.14em}
.nk-hero-verdict span{font-size:15px;font-weight:700;letter-spacing:.04em}
.nk-hero-note{max-width:620px;margin:16px 0 0;font-size:12px;line-height:1.7;opacity:.72;animation:nk-fade .8s 3.2s both}
/* pass: a pink seal stamps the word, rings spread out of it */
.nk-hero-pass .nk-hero-verdict b{position:relative;padding:.12em .42em .12em .56em;border:6px solid #FF52A2;border-radius:22px;color:#FFFEEF;text-shadow:0 0 28px rgba(255,82,162,.55);animation:nk-stamp .9s 2.8s cubic-bezier(.2,1.3,.3,1) both}
.nk-hero-pass .nk-hero-verdict b::after{content:"";position:absolute;inset:-6px;border-radius:22px;border:3px solid #FF52A2;opacity:0;animation:nk-ring-out 2.6s 3.5s ease-out infinite}
.nk-hero-pass .nk-hero-verdict{gap:26px}
.nk-hero-pass .nk-hero-verdict span{color:#FFFEEF;animation:nk-fade .6s 3.5s both}
/* fail: plain — no seal, no rings, no glow */
.nk-hero-fail .nk-hero-verdict b{animation:nk-fade .9s 2.8s both;opacity:.92}
.nk-hero-plain .nk-hero-verdict b{animation:nk-fade .9s 2.8s both}

/* ---- the dashboard under it ---- */
.nk-res-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px}
.nk-res-card{display:flex;flex-direction:column;gap:18px;padding:24px 26px;border:1px solid var(--line);border-radius:22px;background:var(--paper);animation:nk-rise .7s cubic-bezier(.2,.8,.2,1) both}
.nk-c1{animation-delay:3.1s}.nk-c2{animation-delay:3.25s}.nk-c3{animation-delay:3.4s}.nk-c4{animation-delay:3.55s}
.nk-res-card h3{margin:0;font-size:12px;font-weight:700;letter-spacing:.1em;color:var(--ink-2)}
.nk-res-card h3 small{margin-left:8px;font-size:11px;font-weight:500;letter-spacing:0}
.nk-sec{display:flex;flex-direction:column;gap:8px}
.nk-sec-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:14px;font-weight:700}
.nk-sec-top b{font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap}
.nk-sec-top b i{font-style:normal;font-size:12px;font-weight:700;color:var(--ink-2);margin-left:4px}
.nk-sec-top small{font-size:11px;font-weight:500;color:var(--ink-2);margin-left:4px}
.nk-meter{position:relative;height:8px;border-radius:999px;background:var(--bg);border:1px solid var(--line)}
.nk-meter span{position:absolute;left:0;top:-1px;bottom:-1px;border-radius:999px;background:var(--fill)}
.nk-meter em{position:absolute;top:-4px;bottom:-4px;width:2px;border-radius:2px;background:var(--alert);transform:translateX(-50%)}
.nk-sec-note{font-size:12px;color:var(--ink-2)}
.nk-sec-note.bad{align-self:flex-start;font-weight:700;color:var(--ink);background:linear-gradient(transparent 68%,var(--alert) 68%)}
.nk-ana{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:11px}
.nk-ana li{position:relative;padding-left:22px;font-size:14px;line-height:1.7}
.nk-ana li::before{content:"";position:absolute;left:4px;top:.72em;width:8px;height:8px;border-radius:50%;background:var(--brand)}
.nk-c4 .nk-map+.nk-map{padding-top:18px;border-top:1px solid var(--line)}
.nk-res-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:6px;animation:nk-rise .7s 3.7s cubic-bezier(.2,.8,.2,1) both}
.nk-res-go,.nk-res-again{height:48px;padding:0 28px;border-radius:999px;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.nk-res-go{border:0;background:var(--fill);color:var(--on-fill)}
.nk-res-again{border:1.5px solid var(--ink);background:var(--paper);color:var(--ink)}
.nk-res-go:hover,.nk-res-again:hover{transform:translateY(-2px);box-shadow:var(--shadow-2)}
.nk-res-go:focus-visible,.nk-res-again:focus-visible{outline:3px solid var(--brand);outline-offset:3px}

@keyframes nk-hero-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@keyframes nk-fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes nk-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes nk-sheen{to{transform:translateX(120%)}}
@keyframes nk-count{from{--nk-n:0}to{--nk-n:var(--to,0)}}
@keyframes nk-fill{from{width:0}}
@keyframes nk-stamp{0%{opacity:0;transform:scale(2.6) rotate(-9deg);filter:blur(6px)}55%{opacity:1;transform:scale(.92) rotate(2deg);filter:none}100%{opacity:1;transform:scale(1) rotate(-3deg)}}
@keyframes nk-ring-out{0%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(1.5,1.9)}}

@media (max-width:820px){
  .nk-res{margin-top:0}
  .nk-hero{padding:34px 16px 28px;border-radius:22px}
  .nk-res-grid{grid-template-columns:minmax(0,1fr)}
  .nk-res-card{padding:20px 18px}
}
@media (prefers-reduced-motion:reduce){
  .nk-hero,.nk-hero::before,.nk-hero *,.nk-res-card,.nk-res-actions{animation:none!important}
  .nk-hero::before{display:none}
  .nk-res-go,.nk-res-again{transition:none!important}
}
