/* QuizRips quiz screen v3: calm while thinking, exciting when correct, encouraging when wrong. */
body.playing{background:radial-gradient(1200px 700px at 50% -10%,#16246A 0%,#0B1330 55%,#070C24 100%) fixed #0B1330}
body.playing .top{display:none}
body.playing main.wrap{max-width:1080px}
.qz{display:flex;flex-direction:column;gap:14px;padding-top:10px;color:#fff}
/* header */
.qz-top{display:flex;align-items:center;gap:16px;padding:6px 0 12px;border-bottom:1px solid rgba(110,150,255,.25)}
.qz-logo img{height:40px;width:auto;display:block}
.qz-exit{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 16px;border-radius:12px;background:rgba(49,100,244,.12);border:1px solid rgba(110,150,255,.55);color:#fff;font-weight:800;font-size:15px}
.qz-exit svg{width:18px;height:18px}.qz-exit:hover{background:rgba(49,100,244,.25)}
.qz-title{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:10px;font:800 20px/1.2 var(--f-display)}
.qz-title svg{width:34px;height:34px;flex:none;padding:6px;border-radius:50%;color:#fff;background:radial-gradient(circle at 35% 30%,#C9A8FF,#7B45EE);box-shadow:0 0 18px rgba(155,92,250,.55)}
.qz-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qz-me{display:flex;align-items:center;gap:10px}
.qz-streak{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:5px;line-height:1}
.qz-streak svg{width:18px;height:18px;color:#FF8A1A}.qz-streak b{font:800 18px/1 var(--f-display)}
.qz-streak small{grid-column:1/-1;font-size:10px;font-weight:800;letter-spacing:.06em;color:#C9D4FF;margin-top:3px}
.qz-coins{display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 14px;border-radius:999px;border:1px solid rgba(255,207,62,.45);background:rgba(0,0,0,.25)}
.qz-coins .coin{width:22px;height:22px}.qz-coins b{font:800 17px/1 var(--f-display);color:#FFE27A}
/* progress */
.qz-prog{display:flex;align-items:center;gap:16px}
.qz-prog .qcount{font:800 17px/1 var(--f-display);white-space:nowrap}
.qz-bar{flex:1;height:14px;border-radius:999px;background:rgba(0,0,0,.35);box-shadow:inset 0 0 0 1px rgba(110,150,255,.3);overflow:hidden}
.qz-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#16B987,#4BEAB8);box-shadow:0 0 12px rgba(75,234,184,.6);transition:width .6s cubic-bezier(.2,.8,.2,1)}
.qz-pct{font-size:14px;color:#C9D4FF;white-space:nowrap}
.qz-xp{display:inline-flex;align-items:center;gap:6px;height:42px;padding:0 16px;border-radius:999px;border:1px solid rgba(255,207,62,.55);background:rgba(0,0,0,.3);font:800 18px/1 var(--f-display);color:#FFE27A;white-space:nowrap}
.qz-xp::before{content:"";width:16px;height:20px;background:#FFCF3E;clip-path:polygon(60% 0,0 58%,42% 58%,30% 100%,100% 38%,56% 38%)}
.qz-xp.hit{animation:xphit .45s}
@keyframes xphit{30%{transform:scale(1.12);color:#FF7A8A}}
#combo:empty{display:none}
.qz .tpill{flex:none}
/* pack progress strip */
.qz-pack{display:flex;align-items:center;gap:16px;padding:10px 18px;border-radius:18px;background:linear-gradient(90deg,rgba(26,40,110,.85),rgba(14,22,66,.85));border:1px solid rgba(110,150,255,.45)}
.qz-pack .rpack.small{width:40px;flex:none;transform:rotate(-8deg)}
.qz-pack p{flex:1;margin:0;font-size:16px;color:#E3E9FF}.qz-pack p b{font:900 19px/1 var(--f-display);color:#fff}
.qz-dots{display:flex;gap:8px}
.qz-dots i{width:15px;height:15px;border-radius:50%;border:2px solid rgba(140,170,255,.7)}
.qz-dots i.on{background:radial-gradient(circle at 35% 30%,#FFE9A0,#F5B400);border-color:#FFD23F;box-shadow:0 0 8px rgba(255,207,62,.7)}
/* the question panel */
.play.qz .card.qcard{position:relative;display:flex;flex-direction:column;gap:14px;padding:26px 30px 22px;border-radius:26px;background:linear-gradient(180deg,rgba(24,38,104,.92),rgba(13,22,66,.95));border:1px solid rgba(110,150,255,.5);box-shadow:0 30px 60px -30px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.08)}
.qz .qkind{align-self:flex-start;display:inline-block;padding:7px 14px;border-radius:10px;background:#2563F5;color:#fff;font-weight:800;font-size:15px;box-shadow:0 0 14px rgba(37,99,245,.5)}
.qz .qkind.tf{background:#7B45EE}.qz .qkind.match{background:#0FA97A}
.qz .qtext{margin:0;font:800 clamp(24px,3.2vw,38px)/1.18 var(--f-display);color:#fff;overflow-wrap:anywhere}
.qz .quote{margin:0;padding:14px 18px;border-left:4px solid #FFCF3E;border-radius:0 14px 14px 0;background:rgba(0,0,0,.3);font-size:19px;line-height:1.5;color:#E3E9FF}
.qz .quote .blank{display:inline-block;min-width:110px;border-bottom:3px solid #FFCF3E;margin:0 4px}
.qz .quote .filled{display:inline-block;padding:1px 10px;border-radius:8px;font-weight:800;color:#fff}
.qz .quote .filled.ok,.qz .quote .filled.no{background:#0FA97A;box-shadow:0 0 12px rgba(45,212,160,.5)}
.qz-help{margin:-6px 0 0;color:#C9D4FF}
/* answers: all the same calm blue until answered */
.qz .choices,.qz .tf{display:flex;flex-direction:column;gap:12px;margin:0}
.qz .tf{display:grid;grid-template-columns:1fr 1fr}
.play.qz .choice,.play.qz .tf .choice,.play.qz .tf .choice[data-tf="1"],.play.qz .tf .choice[data-tf="0"]{position:relative;display:flex;align-items:center;gap:18px;width:100%;min-height:76px;padding:12px 64px 12px 18px;text-align:left;border-radius:18px;
  background:linear-gradient(180deg,rgba(36,54,130,.85),rgba(26,40,104,.85));border:1.5px solid rgba(120,155,255,.55);box-shadow:0 4px 0 rgba(5,10,40,.6);color:#fff;font:700 clamp(17px,1.8vw,21px)/1.3 var(--f-body);transition:transform .1s,border-color .15s,background .15s}
.play.qz .choice .k{flex:none;width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:#0E1A4E;border:1.5px solid rgba(120,155,255,.6);color:#E3E9FF;font:800 22px/1 var(--f-display)}
.play.qz .choice .t{flex:1;min-width:0;overflow-wrap:anywhere}
.play.qz .choice:hover:not(:disabled){border-color:#7FA8FF;background:linear-gradient(180deg,rgba(46,68,160,.9),rgba(32,50,124,.9));transform:translateY(-1px)}
.play.qz .choice:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 rgba(5,10,40,.6)}
.play.qz .choice:focus-visible{outline:3px solid #FFCF3E;outline-offset:2px}
.play.qz .choice::after{display:none}
.qz .choice .mk{position:absolute;right:16px;top:50%;width:38px;height:38px;margin-top:-19px;border-radius:50%;display:none}
/* states */
.play.qz .choice.right,.play.qz .tf .choice.right{background:linear-gradient(180deg,#0E8F67,#0A7354);border-color:#3BF0B0;color:#fff;box-shadow:0 0 0 2px rgba(59,240,176,.35),0 0 26px rgba(45,212,160,.55),0 4px 0 #06402E}
.play.qz .choice.right .k{background:#16D69A;border-color:#B8FFE6;color:#05261B}
.play.qz .choice.right .mk{display:grid;place-items:center;background:#E8FFF6;color:#0A7354}
.play.qz .choice.right .mk::before{content:"";width:18px;height:10px;border:solid currentColor;border-width:0 0 4px 4px;transform:translate(0,-2px) rotate(-45deg)}
.play.qz .choice.wrong,.play.qz .tf .choice.wrong{background:linear-gradient(180deg,#7A1A33,#5C1226);border-color:#FF5C78;color:#fff;box-shadow:0 0 0 2px rgba(255,92,120,.3),0 0 24px rgba(255,70,100,.4),0 4px 0 #2E0918}
.play.qz .choice.wrong .k{background:#E5334F;border-color:#FFB3C0;color:#fff}
.play.qz .choice.wrong .mk{display:grid;place-items:center;background:#FF4A68;color:#fff}
.play.qz .choice.wrong .mk::before,.play.qz .choice.wrong .mk::after{content:"";position:absolute;width:18px;height:4px;border-radius:2px;background:#fff;transform:rotate(45deg)}
.play.qz .choice.wrong .mk::after{transform:rotate(-45deg)}
.play.qz .choice.dim,.play.qz .tf .choice:disabled:not(.right):not(.wrong){opacity:.55;filter:saturate(.7)}
.play.qz .choice.gone{opacity:.18;filter:grayscale(1)}
.play.qz .choice.right{animation:qzright .45s cubic-bezier(.3,1.6,.5,1)}
@keyframes qzright{40%{transform:scale(1.02)}}
/* matching */
.qz .match{gap:12px}
.qz .mi{min-height:60px;border-radius:14px;font-size:17px}
/* feedback inside the panel */
.qz-fb{display:none}
.qz-fb.show{display:flex;flex-direction:column;gap:12px;padding:18px 20px;border-radius:20px}
.qz-fbh{display:flex;align-items:center;gap:18px}
.qz-fbh>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.qz-big{font:900 clamp(26px,3vw,40px)/1.05 var(--f-display);letter-spacing:-.01em}
.qz-sm{font-size:18px;color:#E3E9FF}
.qz-fb.good{background:linear-gradient(180deg,rgba(6,60,48,.85),rgba(5,40,36,.9));border:1px solid rgba(59,240,176,.45);box-shadow:0 0 30px -10px rgba(45,212,160,.6)}
.qz-fb.good .qz-big{background:linear-gradient(180deg,#7FFFD0,#22D69C);-webkit-background-clip:text;background-clip:text;color:transparent}
.qz-ok{position:relative;flex:none;width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#4BEAB8,#0E9A6E);color:#fff;box-shadow:0 0 0 6px rgba(45,212,160,.18),0 0 26px rgba(45,212,160,.65)}
.qz-ok svg{width:38px;height:38px}
.qz-ok.mid{background:radial-gradient(circle at 35% 30%,#7FA8FF,#2D5BFF);box-shadow:0 0 0 6px rgba(79,163,255,.18)}
.qz-ok i{position:absolute;width:12px;height:12px;background:#FFE27A;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);animation:qzspark 1.2s ease-out both}
.qz-ok i:nth-of-type(1){left:-10px;top:-6px}.qz-ok i:nth-of-type(2){right:-12px;top:6px;animation-delay:.15s;width:9px;height:9px}.qz-ok i:nth-of-type(3){right:-2px;bottom:-10px;animation-delay:.3s}
@keyframes qzspark{0%{transform:scale(0) rotate(0);opacity:0}40%{transform:scale(1.3) rotate(40deg);opacity:1}100%{transform:scale(.9) rotate(90deg);opacity:.9}}
.qz-gain{display:flex;align-items:center;gap:10px;flex:none;padding-left:18px}
.qz-gain svg{width:34px;height:44px;color:#FFCF3E;filter:drop-shadow(0 0 10px rgba(255,207,62,.6))}
.qz-gain b{display:block;font:900 34px/1 var(--f-display);color:#FFE27A}.qz-gain small{font-size:17px;color:#C9D4FF}
.qz-ex{margin:0;padding:12px 16px;border-radius:14px;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.1);font-size:17px;line-height:1.45;color:#F1F5FF}
.qz-fb.good .qz-ex{background:rgba(6,90,66,.45);border-color:rgba(59,240,176,.3)}
.qz-fb.good .qz-ex b{color:#fff}
.qz-fb.bad{background:linear-gradient(180deg,rgba(70,16,40,.85),rgba(48,12,32,.9));border:1px solid rgba(255,92,120,.45)}
.qz-fb.bad .qz-big{font-size:clamp(22px,2.5vw,32px);color:#FF8A9E}
.qz-book{flex:none;align-self:flex-start;width:84px;height:84px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(135deg,#E5334F,#A3162E);color:#FFE3E9;box-shadow:0 8px 20px -8px rgba(229,51,79,.8)}
.qz-book svg{width:48px;height:48px}
.qz-ans{margin:2px 0 0;font-size:18px;color:#F1F5FF}.qz-ans b{color:#5BF0C0}
.qz-fb.bad .qz-ex{background:none;border:0;padding:0;font-size:17px;color:#F1D9E0}
.qz-cost{font-size:13.5px;color:#FFB3C4;font-weight:700}
.qz-fb.mid{background:rgba(26,40,110,.6);border:1px solid rgba(110,150,255,.45)}
.qz-fb .up{color:#2DD4A0;font-size:.55em;vertical-align:middle}
.qz-fb .stand{margin:0}
/* footer: hint left, continue right */
.qz-foot{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.qz .hintbtn{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 16px;border-radius:16px;background:rgba(0,0,0,.25);border:1px solid rgba(110,150,255,.5);color:#fff;margin:0;width:auto}
.qz .hintbtn .hb{font-size:22px}.qz .hintbtn .hn{font:800 18px/1 var(--f-display)}
.qz .hintbtn .hleft{padding:5px 12px;border-radius:999px;border:1px solid rgba(110,150,255,.6);background:rgba(49,100,244,.2);font-size:15px}
.qz .hintbtn small{font-size:14px;color:#AFC0F0;padding-left:12px;border-left:1px solid rgba(255,255,255,.25)}
.qz .hintbtn:disabled{opacity:.5}
.qz-next{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:58px;min-width:220px;padding:0 26px;border-radius:16px;font:900 20px/1 var(--f-display);border:0;position:relative;overflow:hidden}
.qz-next svg{width:22px;height:22px}
.qz-next.good{background:linear-gradient(180deg,#FFE27A,#FFC21A);color:#2A1A00;box-shadow:0 5px 0 #B57A00,0 0 24px rgba(255,207,62,.4)}
.qz-next.bad,.qz-next.ready{background:linear-gradient(180deg,#3D8BFF,#1F5CE8);color:#fff;box-shadow:0 5px 0 #0E2F8A,0 0 22px rgba(49,100,244,.45)}
.qz-next:not(:disabled):hover{transform:translateY(-2px)}
.qz-next:not(:disabled):active{transform:translateY(3px)}
/* the 5-second read lock: greyed out, a ring counts down, a bar fills */
.qz-next.wait{background:#2A3458!important;color:#9AA6CC!important;box-shadow:0 5px 0 #151B33!important;cursor:not-allowed;font-size:17px}
.qz-next.wait::after{content:"";position:absolute;left:0;bottom:0;height:5px;width:100%;background:linear-gradient(90deg,#3D8BFF,#7FB0FF);transform-origin:left;animation:qzread var(--rd,5s) linear forwards}
@keyframes qzread{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.rd-ring{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;border:3px solid #6F86C9;font:900 15px/1 var(--f-display);color:#fff}
.qz-next.ready{animation:qzready .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes qzready{40%{transform:scale(1.06)}}
/* bonus ribbon still sits on the panel */
.qz .bonus-rib{top:-14px}
/* light theme: the quiz stays in its game look */
:root[data-theme="light"] body.playing{background:#0B1330}
/* ---------- tablet / phone ---------- */
@media (max-width:760px){
  .qz{gap:10px;padding-top:4px}
  .qz-top{gap:10px;padding-bottom:10px}
  .qz-logo{display:none}
  .qz-exit{padding:0 12px;min-height:40px}.qz-exit span{display:none}
  .qz-title{justify-content:flex-start;font-size:16px}.qz-title svg{width:28px;height:28px}
  .qz-streak small{display:none}.qz-coins{height:36px;padding:0 10px}.qz-coins b{font-size:15px}
  .qz-prog{flex-wrap:wrap;gap:8px 12px}.qz-prog .qcount{font-size:15px}.qz-bar{order:5;flex-basis:100%;height:12px}.qz-pct{margin-left:auto;font-size:13px}.qz-xp{height:36px;padding:0 12px;font-size:16px}
  .qz-pack{padding:8px 12px;gap:10px}.qz-pack .rpack.small{width:30px}.qz-pack p{font-size:14px}.qz-pack p b{font-size:16px}.qz-dots{gap:4px}.qz-dots i{width:9px;height:9px;border-width:1.5px}
  .play.qz .card.qcard{padding:18px 14px 14px;border-radius:22px;gap:12px}
  .play.qz .choice,.play.qz .tf .choice{min-height:62px;padding:10px 54px 10px 12px;gap:12px;border-radius:16px;font-size:17px}
  .play.qz .choice .k{width:40px;height:40px;font-size:18px}
  .qz .choice .mk{width:32px;height:32px;margin-top:-16px;right:12px}
  .qz-fb.show{padding:14px}
  .qz-fbh{gap:12px;flex-wrap:wrap}
  .qz-ok{width:56px;height:56px}.qz-ok svg{width:30px;height:30px}
  .qz-book{width:56px;height:56px;border-radius:16px}.qz-book svg{width:32px;height:32px}
  .qz-gain{padding-left:0}.qz-gain b{font-size:24px}.qz-gain small{font-size:14px}.qz-gain svg{width:24px;height:32px}
  .qz-sm,.qz-ans,.qz-ex,.qz-fb.bad .qz-ex{font-size:15.5px}
  .qz .hintbtn small{display:none}
  .qz-next{flex:1;min-width:0}
}
@media (max-width:420px){.qz-dots{display:none}.qz .tf{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.qz-ok i,.play.qz .choice.right,.qz-next.ready,.qz-xp.hit{animation:none}.qz-next.wait::after{animation-duration:var(--rd,5s)}}
/* width + keep Continue on screen */
.play.qz{max-width:1000px;padding-bottom:24px}
@media (min-width:761px){.qz-foot{flex-wrap:nowrap}.play.qz .card.qcard{gap:12px;padding:22px 30px 20px}.play.qz .choice{min-height:68px}.qz .choices{gap:10px}}
.qz .float{display:none}
.qz-gain{margin-left:auto}.qz-fbh>div{flex:0 1 auto}
@media (max-width:760px){.qz-fb.show+.qz-foot .hintbtn{display:none}.qz-fb.show+.qz-foot .qz-next{flex:1 1 100%}}

/* ---------- leave-quiz dialog: centered card with Rip ---------- */
.quitscrim{place-items:center!important;background:rgba(4,8,26,.72);backdrop-filter:blur(6px)}
.quitsheet{width:min(440px,calc(100% - 32px));border-radius:26px!important;padding:26px 26px 22px!important;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;
  background:linear-gradient(180deg,#1E2E72,#121C4E);border:1px solid rgba(140,170,255,.45);box-shadow:0 40px 80px -30px rgba(0,0,0,.9);color:#fff;animation:qsin .28s cubic-bezier(.3,1.4,.5,1)}
@keyframes qsin{from{transform:scale(.9);opacity:0}}
.sh-rip{height:120px;width:auto;margin-top:-70px;filter:drop-shadow(0 10px 14px rgba(0,0,0,.5))}
.quitsheet h2{margin:0;font:900 28px/1.1 var(--f-display);color:#fff}
.quitsheet p{margin:0;font-size:16px;line-height:1.45;color:#C9D4FF}.quitsheet p b{color:#fff}
.qs-btns{display:flex;flex-direction:column;gap:10px;width:100%;margin-top:8px}
.qs-btns .btn{width:100%;min-height:56px;font-size:18px;justify-content:center}
.qs-btns .btn.yellow{background:linear-gradient(180deg,#FFE27A,#FFC21A);color:#2A1A00;box-shadow:0 5px 0 #B57A00}
.qs-leave{background:transparent!important;border:1.5px solid rgba(255,255,255,.35)!important;color:#E3E9FF!important;box-shadow:none!important}
.qs-leave:hover{border-color:#FF8A9E!important;color:#FFB3C4!important}
@media (max-width:639px){.quitscrim{place-items:end center!important}.quitsheet{width:100%;border-radius:26px 26px 0 0!important;padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))!important}}

/* ---------- quiz background texture: soft light streaks + a faint dot grid (no busy art) ---------- */
body.playing{background:radial-gradient(circle,rgba(140,170,255,.12) 1px,transparent 1.4px) 0 0/26px 26px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%234F7BFF' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%236F9BFF' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%234F7BFF' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23a)' stroke-linecap='round'%3E%3Cpath d='M1180 -40 C1330 120 1470 220 1660 260' stroke-width='3'/%3E%3Cpath d='M1260 -60 C1390 80 1500 150 1660 170' stroke-width='1.5' opacity='.7'/%3E%3Cpath d='M1100 -20 C1300 200 1460 330 1660 380' stroke-width='1' opacity='.5'/%3E%3Cpath d='M-60 760 C140 800 300 900 420 1060' stroke-width='3'/%3E%3Cpath d='M-60 840 C90 870 210 950 300 1060' stroke-width='1.5' opacity='.7'/%3E%3Cpath d='M-60 680 C170 720 360 860 520 1060' stroke-width='1' opacity='.5'/%3E%3C/g%3E%3C/svg%3E") center/100% 100% no-repeat,
    radial-gradient(600px 400px at 100% 0%,rgba(49,100,244,.22),transparent 70%),
    radial-gradient(600px 420px at 0% 100%,rgba(49,100,244,.2),transparent 70%),radial-gradient(1200px 700px at 50% -10%,#16246A 0%,#0B1330 55%,#070C24 100%) #0B1330;background-attachment:fixed}
body.playing main{position:relative;z-index:0}
.quitsheet{overflow:visible!important;margin-top:40px}
.sh-rip{margin-top:-84px}

.qz .qkind{width:auto;max-width:max-content}

/* test date chips + quiz page panel + review field */
.tag.test{background:rgba(49,100,244,.18);color:#BFD0FF;border:1px solid rgba(110,150,255,.45)}
.tag.test.soon{background:#E24A1A;color:#fff;border-color:#FF9A6A}
.tag.test.done{background:rgba(45,212,160,.15);color:#7FF0C9;border-color:rgba(45,212,160,.4)}
.testpanel{display:flex;flex-direction:column;gap:10px}
.tp-h{display:flex;align-items:center;gap:12px}.tp-ic{font-size:28px}
.tp-h b{display:block;font:800 18px/1.2 var(--f-display)}.tp-h small{display:block;font-size:13.5px;color:var(--muted)}
.testpanel.upcoming,.testpanel.today{border-color:rgba(255,154,106,.6);background:linear-gradient(135deg,rgba(226,74,26,.18),transparent 60%),var(--surface)}
.testpanel.past{opacity:.9}
.tp-row{display:flex;gap:8px}.tp-row .input{flex:1;min-width:0;color-scheme:dark}
.tdrow{margin-top:12px}.tdrow .input{max-width:240px;color-scheme:dark}.tdrow .hint{margin:6px 0 0;font-size:13px}
/* right answer: the Continue button fills up, then the quiz moves on by itself */
.qz-next.auto::after{content:"";position:absolute;left:0;bottom:0;height:5px;width:100%;background:rgba(42,26,0,.45);transform-origin:left;animation:qzread var(--an,2s) linear forwards}
