/* ---------- Junior Edition: pink theme (from the Ripyl pink presentation: Pink #e63f6c, plum, Dark Purple #25215a) ---------- */
:root,:root[data-theme="dark"]{
  --bg:#fdf6f9; --surface:#ffffff; --sunk:#fcf0f5; --ink:#1d1424; --head:#3a1448; --muted:#6c5a72; --line:#f1d9e3;
  --accent:#e63f6c; --accent-ink:#ffffff; --accent-soft:#fde7ee; --ticket:#fdeef3; --ticket-edge:#e63f6c; --blue-ink:#3a1448;
  --plum:#3a1448; --plum2:#8e1f6e; --pink:#e63f6c; --pinkL:#f7b8cb; --gold:#e8c248; --good:#11767c; --bad:#e23c46;
  --hero:linear-gradient(120deg,#e63f6c 0%,#a72a78 48%,#2b0f3a 100%); color-scheme:light;
}
body{background:var(--bg)}
.jwrap{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;gap:18px;padding:18px max(16px,env(safe-area-inset-left,0px)) 40px}
.primary{background:var(--accent);box-shadow:0 8px 18px -10px rgba(230,63,108,.8)}
.primary.big{font-size:17px;padding:15px 28px}
.ghost:hover{color:var(--plum);border-color:var(--pink)}
.eyebrow{color:var(--plum2)}
.panel{border-color:var(--line);border-radius:18px}
input[type=text],textarea{font:inherit;font-size:15px;padding:11px 13px;border-radius:12px;border:1px solid var(--line);background:var(--sunk);color:var(--ink);width:100%}
input[type=text]:focus,textarea:focus{outline:2px solid var(--pink);outline-offset:1px;background:#fff}
:focus-visible{outline:2px solid var(--pink)}
.pvbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--plum);color:#fff;font-size:13px;font-weight:500;padding:8px 14px;border-radius:12px}
.pvbar select{font:inherit;font-size:13px;border-radius:8px;border:0;padding:4px 8px}
.pvbar .sp{margin-left:auto;opacity:.85}
.jtag{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;background:var(--hero);color:#fff;border-radius:99px;padding:4px 12px 4px 6px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.jtag img{width:20px;height:20px;border-radius:50%;background:#fff}

/* start screen */
.jstart{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:22px;align-items:start}
.jstart .hero{display:flex;flex-direction:column;gap:16px}
.jstart h2{font-size:clamp(30px,4.4vw,46px);line-height:1.08;color:var(--plum)}
.jstart h2 em{font-style:normal;color:var(--pink)}
.scenebox{border-color:var(--line);border-radius:18px}
.jtypes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.jtypes input{position:absolute;opacity:0;pointer-events:none}
.jtypes label{border:1.5px solid var(--line);border-radius:14px;padding:11px 12px;cursor:pointer;display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 11px;align-items:start;height:100%;background:var(--surface);transition:transform .12s}
.jtypes label:hover{transform:translateY(-1px);border-color:var(--pinkL)}
.jtypes label b{font-weight:600;font-size:14.5px;align-self:center;color:var(--plum)}
.jtypes label small{grid-column:2;color:var(--muted);font-size:12.5px;line-height:1.4}
.jtypes .jico{grid-row:span 2}
.jtypes input:checked+label{border-color:var(--pink);box-shadow:0 0 0 2px var(--pink) inset;background:var(--accent-soft)}
.jtypes input:focus-visible+label{outline:2px solid var(--pink);outline-offset:2px}
.jico{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;flex:none}
.jprof{border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px;background:var(--surface)}
.g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.g4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sq{border-top:3px solid var(--plum);padding-top:8px;font-size:13.5px;color:var(--muted);display:flex;flex-direction:column;gap:3px}
.sq b{color:var(--ink);font-size:14px}
.sqtag{align-self:flex-start;background:var(--accent-soft);color:var(--plum2);border-radius:99px;padding:1px 9px;font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.jfit{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:5px}
.jfit li{display:flex;justify-content:space-between;align-items:center;gap:8px}
.fit{font-style:normal;font-size:10.5px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;padding:2px 9px;border-radius:99px;background:var(--sunk);color:var(--muted)}
.fit.strong{background:#e1f4ea;color:#11767c}.fit.weak{background:#fde3e5;color:#c42f39}
.lbl{font-weight:500;font-size:14px}
label.f small{font-weight:400;color:var(--muted);font-size:12.5px}

/* the journey (six stages) */
.journey{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;position:relative}
.journey .st{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;position:relative;z-index:1}
.journey .st::before{content:"";position:absolute;top:22px;left:-50%;width:100%;height:4px;background:var(--line);z-index:-1}
.journey .st:first-child::before{display:none}
.journey .st.done::before,.journey .st.now::before{background:var(--pink)}
.journey .dot{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#fff;border:2px solid var(--line);color:#c9b3c2}
.journey .st.done .dot{background:var(--pink);border-color:var(--pink);color:#fff}
.journey .st.now .dot{background:var(--hero);border-color:transparent;color:#fff;box-shadow:0 0 0 5px rgba(230,63,108,.2);animation:pulse 2.2s ease-in-out infinite}
.journey b{font-size:12.5px;color:var(--plum);font-weight:600;line-height:1.2}
.journey small{font-size:11px;color:var(--muted);line-height:1.25}
.journey .st.lock b{color:var(--muted)}
@keyframes pulse{50%{box-shadow:0 0 0 9px rgba(230,63,108,.08)}}

/* heads-up display */
.hud{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hud .chip{display:inline-flex;align-items:center;gap:7px;background:var(--surface);border:1px solid var(--line);border-radius:99px;padding:6px 14px 6px 8px;font-weight:600;font-size:14px;color:var(--plum)}
.hud .chip i{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-style:normal}
.hud .chip small{font-weight:500;color:var(--muted);font-size:12px}
.hud .who{margin-right:auto;display:flex;flex-direction:column}
.hud .who b{font-size:19px;color:var(--plum)}
.hud .who span{font-size:12.5px;color:var(--muted)}

/* stage card */
.stage{background:var(--hero);color:#fff;border-radius:20px;padding:18px 20px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;position:relative;overflow:hidden}
.stage::after{content:"";position:absolute;right:-60px;top:-60px;width:240px;height:240px;border-radius:50%;border:26px solid rgba(255,255,255,.07)}
.stage .eyebrow{color:#fde7ee}
.stage h3{color:#fff;font-size:24px}
.stage p{margin:4px 0 0;font-size:14.5px;opacity:.95;max-width:62ch}
.stage .bsq{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);border-radius:14px;padding:10px 14px;font-size:12.5px;max-width:220px;position:relative;z-index:1}
.stage .bsq b{display:block;font-size:15px}
.jcols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;align-items:start}
.jcols>div{display:flex;flex-direction:column;gap:16px;min-width:0}
.ev{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;border:2px solid var(--pinkL);background:var(--ticket);border-radius:16px;padding:12px 14px}
.ev .evi{width:52px;height:52px;border-radius:14px;background:#fff;display:grid;place-items:center}
.ev b{color:var(--plum);font-size:16px}.ev p{margin:2px 0 0;font-size:14px;color:var(--muted)}
.persona{background:var(--sunk);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:4px;font-size:13.5px;color:var(--muted)}
.persona b{color:var(--plum);font-size:14px}
.fbq{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center;background:var(--sunk);border-radius:14px;padding:10px 12px}
.fbq p{margin:0;font-size:14.5px}.fbq small{color:var(--muted);font-size:12px;display:block}

/* decisions */
.dec{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:16px;padding:14px 16px;background:var(--surface)}
.dec .dh{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.dec .dh b{font-size:16px;color:var(--plum)}
.dec .new{background:var(--gold);color:var(--plum);font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:2px 9px;border-radius:99px;margin-left:8px;vertical-align:2px}
.dec .help{font-size:13px;color:var(--muted);margin:0}
.bigv{font-size:30px;font-weight:600;color:var(--plum);line-height:1}
.bigv small{font-size:13px;color:var(--muted);font-weight:500;margin-left:6px}
input[type=range]{width:100%;accent-color:var(--pink);height:28px}
.keep{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--muted)}
.keep b{color:var(--good)}
.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.choices button{border:1.5px solid var(--line);background:#fff;border-radius:14px;padding:10px 12px;text-align:left;display:flex;flex-direction:column;gap:3px;color:var(--ink)}
.choices button b{color:var(--plum);font-size:14.5px}.choices button small{color:var(--muted);font-size:12.5px;line-height:1.35}
.choices button:hover:not(:disabled){border-color:var(--pinkL)}
.choices button[aria-pressed="true"]{border-color:var(--pink);box-shadow:0 0 0 2px var(--pink) inset;background:var(--accent-soft)}
.choices button:disabled{cursor:default;opacity:.55}
.choices button[aria-pressed="true"]:disabled{opacity:1}
.lockn{font-size:12.5px;color:var(--muted)}
.stepper{display:flex;align-items:center;gap:10px}
.stepper button{width:40px;height:40px;border-radius:50%;border:1.5px solid var(--line);background:#fff;font-size:20px;font-weight:600;color:var(--plum)}
.stepper button:hover{border-color:var(--pink)}
.team{display:flex;gap:8px;flex-wrap:wrap}
.team span{display:inline-flex;align-items:center;gap:6px;background:var(--sunk);border-radius:99px;padding:4px 12px 4px 4px;font-size:13px;font-weight:500}
.team span i{width:24px;height:24px;border-radius:50%;background:var(--pink);color:#fff;display:grid;place-items:center;font-style:normal;font-size:11px;font-weight:700}
.team span.off{opacity:.45;text-decoration:line-through}
.mkrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.mkrow:first-of-type{border-top:0}
.seg{display:inline-flex;border:1.5px solid var(--line);border-radius:99px;overflow:hidden}
.seg button{border:0;background:#fff;padding:6px 11px;font-size:13px;font-weight:500;color:var(--muted);min-width:46px}
.seg button+button{border-left:1px solid var(--line)}
.seg button[aria-pressed="true"]{background:var(--pink);color:#fff}

/* forecast */
.jfc{border:2px solid var(--plum);border-radius:18px;background:#fff;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.jfc .row{display:flex;justify-content:space-between;gap:10px;font-size:14px;color:var(--muted);padding:3px 0}
.jfc .row b{color:var(--ink);font-weight:600}
.jfc .tot{border-top:2px dashed var(--line);padding-top:8px;margin-top:2px}
.jfc .tot b{font-size:20px}
.jfc .warn{background:#fff3e8;color:#a8501b;border-radius:10px;padding:8px 10px;font-size:13px;font-weight:500}
.jfc .ok{background:#e1f4ea;color:#11767c;border-radius:10px;padding:8px 10px;font-size:13px;font-weight:500}
.pos{color:var(--good)!important}.neg{color:var(--bad)!important}
.starters{display:flex;flex-wrap:wrap;gap:6px}
.starters button{border:1px dashed var(--pinkL);background:var(--accent-soft);color:var(--plum);border-radius:99px;padding:5px 12px;font-size:12.5px;font-weight:500}
.starters button:hover{border-style:solid}
.wc{font-size:12.5px;color:var(--muted)}.wc.ok{color:var(--good);font-weight:600}

/* results */
.resh{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.resh h2{font-size:clamp(26px,3.6vw,36px);color:var(--plum)}
.till{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.till>div{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.till .k{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.till .v{font-size:28px;font-weight:600;color:var(--plum);line-height:1.1}
.till small{font-size:12.5px;color:var(--muted)}
.mtable{width:100%;min-width:0!important;border-collapse:collapse;font-size:14px}
.mtable td{padding:6px 0;border-bottom:1px solid var(--line)}.mtable td:last-child{text-align:right;font-weight:600}
.mtable tr.t td{border-bottom:0;font-size:17px;padding-top:10px}
.reward{background:linear-gradient(160deg,#fff 0%,#fff 55%,#fde7ee 100%);border:2px solid var(--pinkL);border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:14px;position:relative;overflow:hidden}
.areas{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.areas>div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;text-align:center;display:flex;flex-direction:column;gap:4px;align-items:center}
.areas b{font-size:13px;color:var(--plum)}
.stars{display:inline-flex;gap:2px}
.stars svg{width:22px;height:22px}
.stars .on{animation:pop .45s cubic-bezier(.2,1.6,.4,1) both}
@keyframes pop{0%{transform:scale(0) rotate(-40deg)}100%{transform:scale(1) rotate(0)}}
.bar{height:14px;border-radius:99px;background:var(--sunk);overflow:hidden;border:1px solid var(--line)}
.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--pink));border-radius:99px;transition:width 1s ease}
.lvl{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.lvl b{font-size:18px;color:var(--plum)}.lvl span{font-size:13px;color:var(--muted)}
.newb{display:flex;flex-wrap:wrap;gap:12px}
.newb .bd{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:center;background:#fff;border:2px solid var(--gold);border-radius:16px;padding:8px 14px 8px 8px;animation:pop .6s cubic-bezier(.2,1.6,.4,1) both;max-width:340px}
.newb .bd b{color:var(--plum);display:block}.newb .bd small{color:var(--muted);font-size:12.5px;line-height:1.35;display:block}
.newb .bd .nw{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--pink)}
.unlock2{background:var(--plum);color:#fff;border-radius:16px;padding:12px 16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.unlock2 b{font-size:16px}.unlock2 span{opacity:.9;font-size:14px}
.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.confetti i{position:absolute;top:-12px;width:8px;height:12px;border-radius:2px;animation:fall 1.8s ease-in forwards}
@keyframes fall{to{transform:translateY(520px) rotate(540deg);opacity:0}}
@media (prefers-reduced-motion:reduce){.confetti{display:none}.stars .on,.newb .bd{animation:none}.journey .st.now .dot{animation:none}}

/* final */
.final{background:var(--hero);color:#fff;border-radius:22px;padding:22px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:center;position:relative;overflow:hidden}
.final img{width:150px}
.final h2{color:#fff;font-size:clamp(28px,4vw,40px)}
.final p{margin:6px 0 0;opacity:.95}
.final .bar{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.3)}
.boardg{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.boardg>div{border-radius:14px;border:2px dashed var(--line);padding:12px 8px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:12.5px;color:var(--muted)}
.boardg>div.on{border:2px solid var(--pink);background:var(--accent-soft);color:var(--plum)}
.boardg b{font-size:13px;color:var(--plum)}
.wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.wall>div{border:1px solid var(--line);border-radius:14px;padding:12px 10px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;background:#fff}
.wall>div.off{background:var(--sunk)}
.wall b{font-size:13.5px;color:var(--plum)}.wall small{font-size:12px;color:var(--muted);line-height:1.35}
.wall .wk{font-size:11px;font-weight:600;color:var(--pink);letter-spacing:.06em;text-transform:uppercase}
.wchips{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.wchips>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px;text-align:center;font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:2px}
.wchips b{font-size:14px}
.medal{display:block}
@media (max-width:860px){
  .jstart,.jcols{grid-template-columns:1fr}
  .till,.areas{grid-template-columns:repeat(2,minmax(0,1fr))}
  .boardg{grid-template-columns:repeat(3,minmax(0,1fr))}
  .wchips{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:560px){
  .choices,.g3,.g4{grid-template-columns:1fr}.g2{grid-template-columns:1fr}
  .jtypes{grid-template-columns:1fr}
  .journey small{display:none}.journey b{font-size:10.5px}.journey .dot{width:38px;height:38px}.journey .st::before{top:18px}
  .stage{grid-template-columns:1fr}.final{grid-template-columns:1fr;text-align:center}.final img{margin:0 auto;width:120px}
  .boardg{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* J15 forecast: big picture cards like the main game */
.jfc2{background:#fff;border:2px solid var(--plum);border-radius:20px;padding:16px 18px;display:flex;flex-direction:column;gap:12px}
.fch{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}.fch small{color:var(--muted);font-size:12.5px}
.fcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.fcard{border:1.5px solid var(--line);border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;background:var(--sunk);position:relative}
.fcard .fic{color:var(--plum2);height:30px;display:flex;align-items:center}
.fcard b{font-size:34px;font-weight:600;color:var(--plum);line-height:1.1}
.fcard>span:not(.fic){font-size:14px;font-weight:500;color:var(--ink)}
.fcard small{font-size:12px;color:var(--muted)}
.fcard.lim{border:2.5px solid var(--pink);background:#fff}
.fcard em{font-style:normal;align-self:flex-start;margin-top:4px;background:var(--pink);color:#fff;font-size:12px;font-weight:600;border-radius:99px;padding:2px 10px}
.fsay{display:grid;grid-template-columns:46px minmax(0,1fr);gap:10px;align-items:center;border-radius:14px;padding:8px 12px}
.fsay img{width:46px;height:46px;object-fit:contain}.fsay p{margin:0;font-size:15.5px;font-weight:500}
.fsay.ok{background:#e1f4ea;color:#0d5c60}.fsay.warn{background:#fff3e8;color:#94440f}.fsay.bad{background:#fde3e5;color:#a51f29}
.fmoney{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
.fmoney span{background:var(--sunk);border-radius:10px;padding:6px 12px}.fmoney b{color:var(--ink);margin-left:4px}
.fmoney span.pos b{color:var(--good)}.fmoney span.neg b{color:var(--bad)}.fmoney i{font-style:normal;font-weight:600;color:var(--plum)}
.jmini{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12.5px}.jmini b{color:var(--plum);font-size:11px;letter-spacing:.08em;text-transform:uppercase;margin-right:2px}.jmini span{background:#fff;border:1px solid var(--line);border-radius:99px;padding:4px 10px;font-weight:500}
@media (max-width:560px){.fcards{grid-template-columns:1fr}.fcard{display:grid;grid-template-columns:34px auto minmax(0,1fr);align-items:center;column-gap:10px}.fcard b{font-size:26px}.fcard em,.fcard small{grid-column:2/-1;justify-self:start}}

/* certificate: the main game's certificate in Junior pink, with the student's own Ripyl Board */
.cert.jr{color:#3a1448}
.cert.jr .frame{border-color:#3a1448}.cert.jr .frame::after{border-color:#e63f6c}
.cert.jr.gold .frame{border-color:#c9931b}
.cert.jr .bandt,.cert.jr .bandb{background:linear-gradient(100deg,#e63f6c,#a72a78 50%,#2b0f3a)}
.cert.jr .top{color:#8e1f6e}.cert.jr .kick{color:#3a1448;font-size:3.9cqw;margin-top:1.8cqw}
.cert.jr .lead{margin-top:1cqw}.cert.jr .who{color:#e63f6c;font-size:4.8cqw}
.cert.jr .what{color:#3a1448;font-size:1.5cqw;margin-top:.8cqw}
.cert.jr .stats{margin-top:1.4cqw}.cert.jr .stats div{background:#fde7ee;padding:.7cqw 1.4cqw}.cert.jr .stats b{color:#3a1448;font-size:2.3cqw}
.cert.jr .blabel{color:#8e1f6e;margin-top:1.5cqw}
.cboard{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.9cqw;margin-top:.8cqw;width:66cqw}
.cboard>div{border:.15cqw dashed #e3cbd6;border-radius:1cqw;padding:.7cqw .6cqw;display:flex;flex-direction:column;align-items:center;gap:.25cqw;text-align:center}
.cboard>div.on{border:.18cqw solid #e63f6c;background:#fff5f8}
.cboard .medal{width:3.6cqw;height:auto}
.cboard b{font-size:1.05cqw;font-weight:600;color:#3a1448;letter-spacing:.04em;text-transform:uppercase}
.cboard span{font-size:1.02cqw;line-height:1.3;color:#3a1448}
.cert.jr .foot{bottom:4.6cqw}.cert.jr img.rp{width:12.5cqw;bottom:3.6cqw;right:5cqw}
.cert.jr .seal{background:radial-gradient(circle at 35% 30%,#ffe58a,#e8c248 55%,#c9931b)}
/* family report (printed A4 portrait) */
.frep{font-family:Poppins,sans-serif;color:#1d1424;display:flex;flex-direction:column;gap:9px;font-size:12px}
.frtop{display:grid;grid-template-columns:46px minmax(0,1fr) 70px;gap:12px;align-items:center;border-bottom:3px solid #e63f6c;padding-bottom:8px}
.frtop img{width:46px}.frtop .frrip{width:70px}
.frtop span{font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#8e1f6e}.frtop h2{margin:2px 0 0;font-size:24px;color:#3a1448}
.frlead{margin:0;font-size:12.5px;line-height:1.5}
.frstats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.frstats div{background:#fde7ee;border-radius:10px;padding:8px 10px;display:flex;flex-direction:column}
.frstats b{font-size:16px;color:#3a1448}.frstats span{font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:#6c5a72}
.frep h3{margin:6px 0 0;font-size:13px;color:#8e1f6e;letter-spacing:.06em;text-transform:uppercase}
.frboard{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.frboard div{border:1.5px dashed #e3cbd6;border-radius:8px;padding:6px 8px;display:flex;flex-direction:column;gap:2px}
.frboard div.on{border:1.5px solid #e63f6c}
.frboard b{font-size:10.5px;color:#3a1448}.frboard span{font-size:10.5px;line-height:1.35}
.frt{width:100%;min-width:0!important;border-collapse:collapse;font-size:11px}
.frt th{font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:#6c5a72;text-align:left;border-bottom:1.5px solid #3a1448;padding:4px 6px}
.frt td{border-bottom:1px solid #f1d9e3;padding:5px 6px;vertical-align:top}
.frbadges{display:flex;flex-wrap:wrap;gap:4px 12px}.frbadges span{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:500}
.frcols{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.frask ul{margin:4px 0 0;padding-left:18px;line-height:1.55}.frq{font-style:italic;color:#6c5a72;margin:6px 0 0}
.frme p{margin:6px 0 0;font-weight:500}.frme i{display:block;border-bottom:1px solid #6c5a72;height:22px}
.frfoot{margin:4px 0 0;border-top:1px solid #f1d9e3;padding-top:7px;font-size:10.5px;color:#6c5a72;line-height:1.45}
#printArea.debp .frep{-webkit-print-color-adjust:exact;print-color-adjust:exact}

/* the real Ripyl Board with the game's five squares marked */
.rboard{position:relative;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#fff}
.rboard img{display:block;width:100%;height:auto}
.rbq{position:absolute;box-sizing:border-box;border-radius:4px}
.rbq.fade{background:rgba(255,255,255,.62)}
.rbq.game{box-shadow:inset 0 0 0 3px #e63f6c}
.rbq.todo{box-shadow:inset 0 0 0 2px rgba(255,255,255,.9);background:rgba(255,255,255,.28)}
.rbq.won{box-shadow:inset 0 0 0 3px #e63f6c}
.rbq.won i{position:absolute;right:5%;top:6%;width:clamp(18px,3.4vw,30px);height:clamp(18px,3.4vw,30px);border-radius:50%;background:#e63f6c;color:#fff;display:grid;place-items:center;font-style:normal;font-weight:700;font-size:clamp(11px,1.8vw,16px);box-shadow:0 0 0 2px #fff}
.rbq.now{box-shadow:inset 0 0 0 4px #e8c248,0 0 0 3px rgba(232,194,72,.5);animation:rbpulse 1.8s ease-in-out infinite}
@keyframes rbpulse{50%{box-shadow:inset 0 0 0 4px #e8c248,0 0 0 8px rgba(232,194,72,.15)}}
@media (prefers-reduced-motion:reduce){.rbq.now{animation:none}}
.rbfold{background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px 14px}
.rbfold summary{cursor:pointer;font-size:14px;color:var(--plum);font-weight:500}
.rbfold[open] summary{margin-bottom:10px}
.reward .rboard{max-width:520px}

/* tour */
.tour{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px 20px;display:flex;flex-direction:column;gap:14px}
.tourh{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tourg{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:22px;align-items:center}
.tourt{display:flex;flex-direction:column;gap:14px}
.tourt h2{font-size:clamp(24px,3vw,32px);color:var(--plum)}
.tourm{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tourdots{display:flex;gap:6px}.tourdots i{width:9px;height:9px;border-radius:50%;background:var(--line)}.tourdots i.on{background:var(--pink);width:24px;border-radius:99px}
.tourb{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:860px){.tourg{grid-template-columns:1fr}}
/* report preview: an A4 sheet on screen */
.paper{background:#fff;border:1px solid var(--line);box-shadow:0 10px 30px -18px rgba(58,20,72,.45);border-radius:6px;padding:28px 32px;max-width:800px;width:100%;margin:0 auto}
@media (max-width:560px){.paper{padding:16px}.frstats,.frboard{grid-template-columns:repeat(2,1fr)}.frcols{grid-template-columns:1fr}}

.savenote{font-size:12px;font-weight:500;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:99px;padding:5px 12px}
.savenote.ok{color:#11767c;border-color:#bfe3cf}.savenote.err{color:#a8501b;border-color:#f3cfae}

/* teacher try box (same as the main game) */
.trynote{display:flex;flex-direction:column;gap:10px;font-size:14px;line-height:1.5;background:var(--sunk)}
.trynote a{color:var(--pink);font-weight:600}
.trynote select{font:inherit;font-size:15px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--sunk);color:var(--ink);max-width:260px}
.trynote select:focus{outline:2px solid var(--pink);outline-offset:1px;background:#fff}

/* J32–J34: weekly challenge, streaks, perks, bonus notes */
.task{display:flex;gap:10px;align-items:center;background:#fdf6e3;border:1px solid #f3dfa5;border-radius:14px;padding:12px 16px;font-size:14.5px;line-height:1.5}
.task svg{flex:none}
.perkrow{display:flex;flex-wrap:wrap;gap:10px}
.perkrow .pk{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:8px 14px 8px 8px;font-size:14px;min-width:0}
.perkrow .pk svg{grid-row:span 2;width:30px;height:30px}
.perkrow .pk small{color:var(--muted);font-size:12.5px}
.perkrow .streakpk{background:#fff7ee;border-color:#f8d3ad}
.bnote{display:flex;gap:8px;align-items:flex-start;font-size:14px;line-height:1.5;background:var(--sunk);border-radius:12px;padding:10px 14px}
.bnote svg{flex:none;margin-top:2px}
.bnote.good{background:#fff7ee;border:1px solid #f8d3ad}
.bnote.warn{background:#fdeff2;border:1px solid #f5c6d3}

/* J31 waiting for the teacher */
.waitp{display:flex;flex-direction:column;gap:18px}
.waitbox{background:var(--sunk);border-radius:14px;padding:14px 18px;font-size:14.5px;line-height:1.55}
.waitbox ul{margin:6px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:4px}
.waitacts{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
