/* Accepted Review finish. All perimeter color is stationary and Review-scoped. */
body.study-shell{--prism-rim:conic-gradient(from 25deg,#8f9dff,#cb8cff,#ff88bd,#ffc477,#f9edaf,#78eed7,#72d8ff,#8f9dff)}
body.study-shell .flame-road>span{filter:none;gap:2px}
/* Hide the original connector while keeping the number badges in place. */
body.study-shell[data-review-rewards="true"] .review-flames{border-top-color:transparent}
body.study-shell .flame-road b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1px solid var(--line);background:var(--bg);font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
body.study-shell .flame-road>span.milestone-reached b{color:var(--text)}
body.study-shell .flame-road>span.milestone-current b{color:var(--text);font-size:12px;border-color:#ffc784;box-shadow:0 0 13px #ffac4c66}
body.study-shell[data-review-rewards="true"] .session-combo[data-level="5"] b,body.study-shell #railFlame[data-level="5"] b{color:var(--text);text-shadow:-2px 0 12px #6acfff88,2px 0 12px #fa7daf88}
body.study-shell[data-review-rewards="true"] .question-card[data-level="1"]{border-color:#d28549;box-shadow:0 0 18px #f98c2720,inset 0 0 0 1px #ffb36912}
body.study-shell[data-review-rewards="true"] .question-card[data-level="2"]{border-color:#ff963c;box-shadow:0 0 0 1px #ff9c4c66,0 0 30px #fa761a3d,inset 0 0 22px #f88d1810}
body.study-shell[data-review-rewards="true"] .question-card[data-level="3"]{border-color:#ffb181;box-shadow:0 0 0 1px #ffc287aa,0 0 42px #ff773456,0 0 72px #f064231a,inset 0 0 26px #ff8b4512}
body.study-shell[data-review-rewards="true"] .question-card[data-level="4"]{border-color:#fff1c9;box-shadow:0 0 0 1px #ffdb8a,0 0 18px #ffc0656e,0 0 60px #ff92295c,inset 0 0 30px #ffbf5017}
body.study-shell[data-review-rewards="true"] .question-card[data-level="5"]{border-color:transparent;box-shadow:-12px 0 38px #73baff50,12px 0 38px #ef80d456,0 -8px 28px #ab93ff40,0 12px 38px #ffa66b42,inset 0 0 28px #b595ff14}
body.study-shell[data-review-rewards="true"] .question-card[data-level="3"]::before,body.study-shell[data-review-rewards="true"] .question-card[data-level="4"]::before,body.study-shell[data-review-rewards="true"] .question-card[data-level="5"]::before{content:"";position:absolute;z-index:2;inset:0;border-radius:inherit;padding:2px;background:linear-gradient(125deg,#ffead0,#ffa475 27%,#ff9a7e 55%,#ffddb1 85%);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none}
body.study-shell[data-review-rewards="true"] .question-card[data-level="4"]::before{padding:2px;background:linear-gradient(120deg,#fffef2,#ffcf74 24%,#ffeaca 51%,#ffb65b 72%,#fff7dc)}
body.study-shell[data-review-rewards="true"] .question-card[data-level="5"]::before{padding:3px;background:var(--prism-rim)}
body.study-shell[data-review-rewards="true"] .reward-stage{--popup-duration:2450ms;--popup-count-size:64px;--popup-light:#ffe7be;background:radial-gradient(ellipse at center,#05040d24,transparent 65%)}
body.study-shell[data-review-rewards="true"] .reward-stage.active{animation:polished-reward-fade var(--popup-duration) cubic-bezier(.2,.8,.2,1) both}
body.study-shell .reward-popup{position:relative;isolation:isolate;min-width:250px;max-width:calc(100vw - 64px);padding:24px 34px 27px;border:1px solid #ffb96b;border-radius:25px;background:linear-gradient(155deg,#2d201bef,#140d19f7);box-shadow:0 0 0 1px #ffb27633,0 10px 54px #0008,0 0 52px #fc8e383d}
body.study-shell .reward-popup>strong{position:relative;font-size:var(--popup-count-size);font-weight:780;line-height:1.12;letter-spacing:-.055em;white-space:nowrap;color:var(--popup-light);text-shadow:0 0 24px #ffba6152;font-variant-numeric:tabular-nums}
body.study-shell .reward-popup>span{position:relative;display:block;margin-top:10px;font-size:11px;letter-spacing:.2em;color:#ffecd2}
body.study-shell[data-review-rewards="true"] .reward-stage[data-level="2"] .reward-popup{min-width:295px;border-color:#ffaf64;box-shadow:0 0 0 1px #ffaa5366,0 12px 64px #0009,0 0 75px #ff853a66}
body.study-shell[data-review-rewards="true"] .reward-stage[data-level="3"] .reward-popup{min-width:330px;padding:30px 40px;border-color:#ffd5aa;box-shadow:0 0 0 1px #ffbf8888,0 16px 76px #0009,0 0 96px #ff916f75}
body.study-shell[data-review-rewards="true"] .reward-stage[data-level="4"] .reward-popup{--popup-light:#fff5dd;min-width:365px;padding:34px 42px;border-color:#fff6d8;box-shadow:0 0 0 2px #ffcf78bb,0 0 26px #ffd59380,0 16px 82px #0009,0 0 110px #ffba526e}
body.study-shell[data-review-rewards="true"] .reward-stage[data-level="5"] .reward-popup{--popup-light:#fff5ff;min-width:410px;padding:38px 45px;background:linear-gradient(145deg,#241d3efa,#171221fa);border:1px solid transparent;box-shadow:-24px -6px 78px #639fff88,25px 0 80px #e375cd8c,0 -16px 65px #a879ff70,0 22px 75px #ffb06d6b,0 18px 78px #0009}
body.study-shell[data-review-rewards="true"] .reward-stage[data-level="5"] .reward-popup::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:3px;background:var(--prism-rim);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none}
body.study-shell[data-review-rewards="true"] .reward-stage[data-level="5"] .reward-popup>strong{background:linear-gradient(100deg,#acdeff,#d8c4ff 35%,#ffbeea 68%,#ffe0ba);color:transparent;background-clip:text;text-shadow:none}
body.study-shell[data-review-rewards="true"] .reward-stage[data-level="5"] .reward-popup>span{color:#f3dcff}
body.study-shell .reward-glints{position:absolute;inset:0;pointer-events:none}
body.study-shell .reward-glint{position:absolute;left:var(--gx);top:var(--gy);width:16px;height:16px;margin:-8px 0 0 -8px;opacity:0;color:var(--glint-color);background:currentColor;filter:drop-shadow(0 0 4px currentColor);clip-path:polygon(50% 0,60% 39%,100% 50%,60% 61%,50% 100%,40% 61%,0 50%,40% 39%)}
body.study-shell[data-review-rewards="true"] .reward-stage.active .reward-glint,body.study-shell .card-milestone-glints .reward-glint{animation:polished-glint 1250ms var(--delay) ease-out both}
body.study-shell[data-review-rewards="true"] .question-card>.card-milestone-glints{inset:8px;z-index:3}
@keyframes polished-reward-fade{0%{opacity:0;transform:translateY(16px) scale(.77)}12%{opacity:1;transform:translateY(-3px) scale(1.035)}23%,80%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-5px) scale(1.025)}}
@keyframes polished-glint{0%{opacity:0;transform:scale(.35)}23%,40%{opacity:1;transform:scale(1.15)}60%{opacity:.35;transform:scale(.6)}76%{opacity:.9;transform:scale(.95)}100%{opacity:0;transform:scale(.35)}}
@media(prefers-reduced-motion:reduce){body.study-shell[data-review-rewards="true"] .reward-stage.active{animation:none!important;opacity:1;transform:none}body.study-shell[data-review-rewards="true"] .reward-stage.active .reward-glint,body.study-shell .card-milestone-glints .reward-glint{animation:none!important;display:none}}

/* Exam and every non-review route stay outside the reward surface. */
body.study-shell:not([data-review-rewards="true"]) .reward-stage,body.study-shell:not([data-review-rewards="true"]) .card-milestone-glints{display:none!important}

body.study-shell .flame-road>span.milestone-current[data-milestone="10"] b{border:2px solid transparent;background:linear-gradient(var(--bg),var(--bg)) padding-box,var(--prism-rim) border-box;box-shadow:-3px 0 12px #73baff60,3px 0 12px #ed8ace60}
body.study-shell #railFlame b{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line);border-radius:50%;background:var(--bg)}

@media(max-width:720px){body.study-shell .reward-popup{min-width:min(270px,calc(100vw - 64px))!important;padding:25px 20px!important}body.study-shell .reward-popup>strong{font-size:min(var(--popup-count-size),11vw)}body.study-shell .reward-popup>span{font-size:9px;letter-spacing:.15em}body.study-shell[data-review-rewards="true"] .reward-stage[data-level="5"] .reward-popup{min-width:min(320px,calc(100vw - 56px))!important}}

body.study-shell .streak-mark{display:none}
body.study-shell .flame-road{border-top-color:transparent}
body.study-shell:not([data-review-rewards="true"]) #railFlame{display:none}
