body[data-wheel-bank=vocabulary]{--paper:#f6ebd3;--card:#fff9ec;--ink:#591c27;--muted:#826252;--accent:#831f32;--accent-ink:#fff4dc;--line:#b89559;--soft:#f0e0bf;--rim:#571d28;--gold:#cbab69;background:radial-gradient(ellipse at 10% 20%,#ffffff6b,transparent 65%),repeating-linear-gradient(9deg,#916e3a04 0 1px,transparent 1px 5px),var(--paper);color:var(--ink);min-height:100vh}
body[data-wheel-theme=classroom]{--paper:#f5fafb;--card:#ffffff;--ink:#113b4e;--muted:#4d6e7c;--accent:#007f82;--accent-ink:#ffffff;--line:#a0d9db;--soft:#e2f5f4;--rim:#087e83;--gold:#b6eef0;background:radial-gradient(ellipse at 0% 0%,#c5f1f1,transparent 38%),radial-gradient(ellipse at 100% 100%,#ffe0d3,transparent 40%),var(--paper)}
body[data-wheel-theme=museum]{--paper:#101d2c;--card:#172638;--ink:#fff0cd;--muted:#c7bda7;--accent:#e4b864;--accent-ink:#172333;--line:#8c734b;--soft:#243449;--rim:#182a3a;--gold:#e4ba6d;background:radial-gradient(ellipse at 22% 40%,#243e50,transparent 55%),var(--paper);color-scheme:dark}
body[data-wheel-bank=vocabulary] .cw-page{position:relative;padding-bottom:28px}
body[data-wheel-theme=royal] .cw-page:before,body[data-wheel-theme=royal] .cw-page:after{content:'';position:absolute;top:72px;width:52px;height:52px;border:3px double var(--line);transform:rotate(45deg);opacity:.5;pointer-events:none}
body[data-wheel-theme=royal] .cw-page:before{left:34px}body[data-wheel-theme=royal] .cw-page:after{right:34px}
body[data-wheel-bank=vocabulary] .cw-heading{margin:14px 0 10px}
body[data-wheel-bank=vocabulary] .cw-heading h1{color:var(--ink)}
body[data-wheel-bank=vocabulary] .cw-heading>span,body[data-wheel-bank=vocabulary] .cw-heading>p,body[data-wheel-bank=vocabulary] .cw-nav a,body[data-wheel-bank=vocabulary] .cw-status,body[data-wheel-bank=vocabulary] .cw-privacy,body[data-wheel-bank=vocabulary] .cw-privacy a{color:var(--muted)}
.cw-theme-picker{border:0;display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin:0 auto 26px;padding:0;min-width:0}
.cw-theme-picker legend{text-align:center;font-size:12px;color:var(--muted);margin-bottom:9px;width:100%}
.cw-theme-picker label{position:relative;cursor:pointer}
.cw-theme-picker input{position:absolute;opacity:0;width:1px;height:1px}
.cw-theme-picker label>span{display:flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid var(--line);border-radius:24px;background:var(--card);color:var(--ink);font-size:13px;line-height:1.5}
.cw-theme-picker input:checked+span{background:var(--accent);color:var(--accent-ink);box-shadow:0 3px 12px #0002}
.cw-theme-picker input:focus-visible+span{outline:3px solid var(--accent);outline-offset:3px}
.cw-theme-dot{width:14px;height:14px;border-radius:50%;border:1px solid #ffffff80;display:block;background:#831f32}.cw-theme-dot.classroom{background:#00a6ac}.cw-theme-dot.museum{background:#162a40;box-shadow:inset 0 0 0 2px #ddb46d}
body[data-wheel-bank=vocabulary] .cw-frame{background:var(--rim);box-shadow:0 16px 36px #0002,inset 0 0 0 7px var(--rim),inset 0 0 0 11px var(--gold)}
body[data-wheel-bank=vocabulary] .cw-pointer{border-top-color:var(--accent);filter:drop-shadow(0 2px 1px #0005)}
body[data-wheel-bank=vocabulary] .cw-hub{width:23%;height:23%;background:#fffdf7;box-shadow:0 0 0 5px var(--gold),0 7px 18px #0005;overflow:hidden}
body[data-wheel-bank=vocabulary] .cw-hub img{width:88%;height:88%;object-fit:contain;display:block}
body[data-wheel-bank=vocabulary] #cw-wheel path{stroke:var(--gold)}
body[data-wheel-theme=royal] #cw-wheel path:nth-of-type(odd){fill:#7e2536}body[data-wheel-theme=royal] #cw-wheel path:nth-of-type(even){fill:#f0dfb7}
body[data-wheel-theme=royal] #cw-wheel g:nth-of-type(odd) text{fill:#fff0d1}body[data-wheel-theme=royal] #cw-wheel g:nth-of-type(even) text{fill:#571c2a}
body[data-wheel-theme=classroom] #cw-wheel path:nth-of-type(3n+1){fill:#16a6ab}body[data-wheel-theme=classroom] #cw-wheel path:nth-of-type(3n+2){fill:#ff9d84}body[data-wheel-theme=classroom] #cw-wheel path:nth-of-type(3n){fill:#80c8f4}
body[data-wheel-theme=classroom] #cw-wheel text{fill:#10384b}
body[data-wheel-theme=museum] #cw-wheel path:nth-of-type(odd){fill:#183045}body[data-wheel-theme=museum] #cw-wheel path:nth-of-type(even){fill:#244257}body[data-wheel-theme=museum] #cw-wheel text{fill:#fff0cd}
body[data-wheel-bank=vocabulary] .cw-primary,body[data-wheel-bank=vocabulary] .cw-grade button:first-child{background:var(--accent);color:var(--accent-ink);border-color:var(--line);box-shadow:0 4px 0 var(--rim)}
body[data-wheel-bank=vocabulary] .cw-primary:hover:not(:disabled){filter:brightness(1.1)}
body[data-wheel-bank=vocabulary] .cw-question,body[data-wheel-bank=vocabulary] .cw-stats>div,body[data-wheel-bank=vocabulary] .cw-settings{background:var(--card);border-color:var(--line);box-shadow:0 9px 26px #0000000b}
body[data-wheel-bank=vocabulary] .cw-question{border-top-color:var(--accent)}
body[data-wheel-bank=vocabulary] .cw-question h2,body[data-wheel-bank=vocabulary] .cw-question .cw-question-text,body[data-wheel-bank=vocabulary] .cw-stats strong,body[data-wheel-bank=vocabulary] .cw-answer strong{color:var(--ink)}
body[data-wheel-bank=vocabulary] .cw-question p,body[data-wheel-bank=vocabulary] .cw-question li,body[data-wheel-bank=vocabulary] .cw-settings summary,body[data-wheel-bank=vocabulary] .cw-settings p,body[data-wheel-bank=vocabulary] .cw-categories label,body[data-wheel-bank=vocabulary] .cw-stats span,body[data-wheel-bank=vocabulary] .cw-answer small,body[data-wheel-bank=vocabulary] .cw-eyebrow,body[data-wheel-bank=vocabulary] .cw-hint{color:var(--muted)!important}
body[data-wheel-bank=vocabulary] .cw-category,body[data-wheel-bank=vocabulary] .cw-answer,body[data-wheel-bank=vocabulary] .cw-reveal,body[data-wheel-bank=vocabulary] .cw-grade button,body[data-wheel-bank=vocabulary] .cw-nav button{background:var(--soft);color:var(--ink);border-color:var(--line)}
body[data-wheel-bank=vocabulary] .cw-reset,body[data-wheel-bank=vocabulary] .cw-settings a{color:var(--muted)}
body[data-wheel-bank=vocabulary] .cw-categories input{accent-color:var(--accent)}
body[data-wheel-theme=museum] .cw-frame{box-shadow:0 0 38px #d6aa5830,inset 0 0 0 7px var(--rim),inset 0 0 0 11px var(--gold)}
@media(max-width:800px){.cw-theme-picker{gap:7px;margin-bottom:24px}.cw-theme-picker label>span{font-size:12px;padding:8px 10px}body[data-wheel-theme=royal] .cw-page:before,body[data-wheel-theme=royal] .cw-page:after{display:none}}
/* Presenter layout and a quieter, clearer wheel face. */
body[data-wheel-bank=vocabulary] .cw-frame{padding:12px;border:1px solid var(--gold);box-shadow:0 18px 42px #0003,inset 0 0 0 5px var(--rim),inset 0 0 0 7px var(--gold)}
body[data-wheel-bank=vocabulary] #cw-wheel path{stroke-width:1.5}
body[data-wheel-bank=vocabulary] #cw-wheel text{letter-spacing:.5px}
body[data-wheel-bank=vocabulary] .cw-hub{width:21%;height:21%;box-shadow:0 0 0 3px var(--gold),0 0 0 7px var(--rim),0 8px 20px #0005}
body[data-wheel-bank=vocabulary] .cw-pointer{top:-10px;border-left-width:13px;border-right-width:13px;border-top-width:32px;filter:drop-shadow(0 3px 2px #0005)}
body[data-wheel-theme=museum] .cw-frame{box-shadow:0 0 40px #d6aa5824,inset 0 0 0 5px var(--rim),inset 0 0 0 7px var(--gold)}
@media(min-width:801px){
 body[data-wheel-bank=vocabulary]{margin:0}
 body[data-wheel-fit=on]{height:100dvh;overflow:hidden}
 body[data-wheel-bank=vocabulary] .cw-page{padding:10px 26px 12px;transform-origin:top center;box-sizing:border-box}
 body[data-wheel-bank=vocabulary] .cw-heading{margin:0 0 4px}
 body[data-wheel-bank=vocabulary] .cw-heading>p{display:none}
 body[data-wheel-bank=vocabulary] .cw-heading h1{font-size:30px;line-height:1.4}
 body[data-wheel-bank=vocabulary] .cw-heading>span{font-size:12px;margin-top:2px}
 body[data-wheel-bank=vocabulary] .cw-nav{font-size:12px;min-height:32px}
 body[data-wheel-bank=vocabulary] .cw-nav button{padding:5px 11px;font-size:12px!important}
 .cw-theme-picker{margin-bottom:17px;gap:8px}
 .cw-theme-picker legend{font-size:11px;margin-bottom:5px}
 .cw-theme-picker label>span{font-size:12px;padding:6px 12px}
 body[data-wheel-bank=vocabulary] .cw-layout{gap:34px;grid-template-columns:minmax(0,1fr) minmax(330px,430px);align-items:center}
 body[data-wheel-bank=vocabulary] .cw-frame{width:min(100%,470px);margin-bottom:17px}
 body[data-wheel-bank=vocabulary] .cw-primary{min-height:44px;font-size:16px!important;padding:9px 16px}
 body[data-wheel-bank=vocabulary] .cw-status{font-size:12px;min-height:20px;margin:10px auto 0}
 body[data-wheel-bank=vocabulary] .cw-right{gap:9px}
 body[data-wheel-bank=vocabulary] .cw-stats>div{padding:8px 13px;gap:12px}
 body[data-wheel-bank=vocabulary] .cw-stats strong{font-size:25px}
 body[data-wheel-bank=vocabulary] .cw-question{min-height:0;padding:18px 22px;border-radius:16px}
 body[data-wheel-bank=vocabulary] .cw-question h2,body[data-wheel-bank=vocabulary] .cw-question .cw-question-text{font-size:23px;line-height:1.5;margin:10px 0 13px}
 body[data-wheel-bank=vocabulary] .cw-question p,body[data-wheel-bank=vocabulary] .cw-question li{font-size:14px;line-height:1.65}
 body[data-wheel-bank=vocabulary] .cw-question li{margin:5px 0}
 body[data-wheel-bank=vocabulary] .cw-category{font-size:12px;padding:5px 10px}
 body[data-wheel-bank=vocabulary] .cw-answer{padding:13px 15px;margin:13px 0}
 body[data-wheel-bank=vocabulary] .cw-answer strong{font-size:23px}
 body[data-wheel-bank=vocabulary] .cw-answer p{font-size:14px;margin-top:7px}
 body[data-wheel-bank=vocabulary] .cw-answer small{margin-bottom:4px}
 body[data-wheel-bank=vocabulary] .cw-reveal,body[data-wheel-bank=vocabulary] .cw-grade button{padding:9px 12px;font-size:14px!important}
 body[data-wheel-bank=vocabulary] .cw-settings{padding:8px 13px}
 body[data-wheel-bank=vocabulary] .cw-settings summary{font-size:12px}
 body[data-wheel-bank=vocabulary] .cw-reset{padding:4px 0;font-size:12px!important}
 body[data-wheel-bank=vocabulary] .cw-privacy{font-size:10px;line-height:1.4;margin:12px 0 0}
 body[data-wheel-bank=vocabulary] .cw-privacy+.cw-privacy{margin-top:5px}
 body[data-wheel-bank=vocabulary] .cw-page>details.cw-settings{margin:8px auto 0!important;max-width:780px}
 body[data-wheel-bank=vocabulary] .cw-page:before,body[data-wheel-bank=vocabulary] .cw-page:after{width:30px;height:30px;top:54px}
}
/* One compact native menu replaces the row of theme buttons. */
.cw-nav-actions{display:flex;align-items:center;gap:9px;min-width:0}
.cw-design-control{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;min-width:0}
.cw-design-control select{font:inherit;font-size:12px;line-height:1.5;max-width:205px;min-height:32px;padding:5px 26px 5px 10px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);cursor:pointer}
.cw-design-control select option,.cw-design-control select optgroup{background:var(--card);color:var(--ink)}
body[data-wheel-bank=vocabulary] .cw-heading{margin-top:9px;margin-bottom:20px}
body[data-wheel-style=medallion] .cw-frame{padding:16px;background:linear-gradient(135deg,#f8df97,#8d622b 43%,#f2d58b 65%,#8d622b);border:1px solid #a47d3e;box-shadow:0 13px 30px #5c391c40,inset 0 0 0 3px #f4d58d}
body[data-wheel-style=medallion] .cw-frame:after,body[data-wheel-style=mechanism] .cw-frame:after{content:'';position:absolute;inset:0;border-radius:50%;pointer-events:none;background:url('/img/games/wheel-medallion-rim.svg') center/100% 100% no-repeat}
body[data-wheel-style=medallion] #cw-wheel path{stroke:#d1ad69;stroke-width:2.5}
body[data-wheel-style=medallion] .cw-hub{box-shadow:0 0 0 3px #d0aa5d,0 0 0 6px #f0d48d,0 7px 18px #35141d66}
body[data-wheel-style=medallion] .cw-pointer{border-top-color:#c89b4f;filter:drop-shadow(0 2px 2px #603a23)}
body[data-wheel-style=minimal] .cw-frame{padding:6px;background:#fff;border-color:#b9d6d8;box-shadow:0 16px 35px #146f7e1c,inset 0 0 0 2px #d6e8e9}
body[data-wheel-style=minimal] #cw-wheel path{stroke:#fff;stroke-width:3}
body[data-wheel-style=minimal] #cw-wheel path:nth-of-type(1){fill:#65c4be}body[data-wheel-style=minimal] #cw-wheel path:nth-of-type(2){fill:#ffac97}body[data-wheel-style=minimal] #cw-wheel path:nth-of-type(3){fill:#8fc2ee}body[data-wheel-style=minimal] #cw-wheel path:nth-of-type(4){fill:#b8a4d5}body[data-wheel-style=minimal] #cw-wheel path:nth-of-type(5){fill:#f2c874}body[data-wheel-style=minimal] #cw-wheel path:nth-of-type(6){fill:#b5c995}body[data-wheel-style=minimal] #cw-wheel path:nth-of-type(7){fill:#e9a7b9}
body[data-wheel-style=minimal] .cw-hub{box-shadow:0 0 0 3px #fff,0 5px 16px #123b4e35}
body[data-wheel-style=mechanism] .cw-frame{padding:18px;background:linear-gradient(125deg,#f5d895,#98703d 35%,#d6ae68 60%,#78512a);border:1px solid #d7b879;box-shadow:0 14px 32px #0006,inset 0 0 0 4px #d7af68,inset 0 0 0 7px #95703e}
body[data-wheel-style=mechanism] .cw-frame:after{background-image:url('/img/games/wheel-bronze-rivets.svg')}
body[data-wheel-style=mechanism] #cw-wheel path{stroke:#bb924e;stroke-width:1.7}body[data-wheel-style=mechanism] #cw-wheel path:nth-of-type(odd){fill:#172b41}body[data-wheel-style=mechanism] #cw-wheel path:nth-of-type(even){fill:#223e53}
body[data-wheel-style=mechanism] #cw-wheel text{fill:#f6d58e}
body[data-wheel-style=petals] .cw-frame{padding:5px;background:transparent;border-color:transparent;box-shadow:none}
body[data-wheel-style=petals] #cw-wheel{filter:drop-shadow(0 5px 5px #0007)}
body[data-wheel-style=petals] #cw-wheel path{stroke:#d7b96f;stroke-width:2.5}body[data-wheel-style=petals] #cw-wheel path:nth-of-type(3n+1){fill:#096578}body[data-wheel-style=petals] #cw-wheel path:nth-of-type(3n+2){fill:#147c6b}body[data-wheel-style=petals] #cw-wheel path:nth-of-type(3n){fill:#20586c}
body[data-wheel-style=petals] .cw-hub{width:24%;height:24%;box-shadow:0 0 0 3px #d7b96f,0 8px 20px #0005}
@media(min-width:801px){body[data-wheel-bank=vocabulary] .cw-heading{margin-top:0;margin-bottom:22px}}
@media(max-width:800px){.cw-design-control>span{display:none}.cw-nav-actions{gap:6px}.cw-design-control select{max-width:174px;font-size:11px;padding-left:7px}.cw-nav{gap:8px}body[data-wheel-bank=vocabulary] .cw-nav button{padding:7px 8px;font-size:11px!important}}
@media(max-width:360px){.cw-design-control select{max-width:146px}.cw-nav-actions{gap:4px}}
/* Every form inherits the chosen page palette. */
body[data-wheel-theme=royal]{--wheel-a:#7e2536;--wheel-b:#f0dfb7;--wheel-c:#b58860;--wheel-text-a:#fff0d1;--wheel-text-b:#571c2a;--petal-a:#7e2536;--petal-b:#9a3c4a;--petal-c:#b47367;--petal-text:#fff4dc}
body[data-wheel-theme=classroom]{--wheel-a:#16a6ab;--wheel-b:#ffac97;--wheel-c:#8fc2ee;--wheel-text-a:#10384b;--wheel-text-b:#10384b;--petal-a:#65c4be;--petal-b:#ffac97;--petal-c:#8fc2ee;--petal-text:#10384b}
body[data-wheel-theme=museum]{--wheel-a:#183045;--wheel-b:#244257;--wheel-c:#305466;--wheel-text-a:#fff0cd;--wheel-text-b:#fff0cd;--petal-a:#096578;--petal-b:#147c6b;--petal-c:#20586c;--petal-text:#fff0cd}
body[data-wheel-style=medallion] #cw-wheel path:nth-of-type(odd),body[data-wheel-style=mechanism] #cw-wheel path:nth-of-type(odd){fill:var(--wheel-a)}
body[data-wheel-style=medallion] #cw-wheel path:nth-of-type(even),body[data-wheel-style=mechanism] #cw-wheel path:nth-of-type(even){fill:var(--wheel-b)}
body[data-wheel-style=medallion] #cw-wheel g:nth-of-type(odd) text,body[data-wheel-style=mechanism] #cw-wheel g:nth-of-type(odd) text{fill:var(--wheel-text-a)}
body[data-wheel-style=medallion] #cw-wheel g:nth-of-type(even) text,body[data-wheel-style=mechanism] #cw-wheel g:nth-of-type(even) text{fill:var(--wheel-text-b)}
body[data-wheel-style=minimal] #cw-wheel path:nth-of-type(3n+1){fill:var(--wheel-a)}body[data-wheel-style=minimal] #cw-wheel path:nth-of-type(3n+2){fill:var(--wheel-b)}body[data-wheel-style=minimal] #cw-wheel path:nth-of-type(3n){fill:var(--wheel-c)}
body[data-wheel-style=minimal] #cw-wheel g text{fill:var(--ink)}
body[data-wheel-style=minimal][data-wheel-theme=royal] #cw-wheel g:nth-of-type(3n+1) text{fill:#fff0d1}
body[data-wheel-style=minimal][data-wheel-theme=classroom] #cw-wheel path:nth-of-type(1){fill:#65c4be}body[data-wheel-style=minimal][data-wheel-theme=classroom] #cw-wheel path:nth-of-type(2){fill:#ffac97}body[data-wheel-style=minimal][data-wheel-theme=classroom] #cw-wheel path:nth-of-type(3){fill:#8fc2ee}body[data-wheel-style=minimal][data-wheel-theme=classroom] #cw-wheel path:nth-of-type(4){fill:#b8a4d5}body[data-wheel-style=minimal][data-wheel-theme=classroom] #cw-wheel path:nth-of-type(5){fill:#f2c874}body[data-wheel-style=minimal][data-wheel-theme=classroom] #cw-wheel path:nth-of-type(6){fill:#b5c995}body[data-wheel-style=minimal][data-wheel-theme=classroom] #cw-wheel path:nth-of-type(7){fill:#e9a7b9}
body[data-wheel-style=petals] #cw-wheel path:nth-of-type(3n+1){fill:var(--petal-a)}body[data-wheel-style=petals] #cw-wheel path:nth-of-type(3n+2){fill:var(--petal-b)}body[data-wheel-style=petals] #cw-wheel path:nth-of-type(3n){fill:var(--petal-c)}body[data-wheel-style=petals] #cw-wheel g text{fill:var(--petal-text)}
body[data-wheel-bank=vocabulary][data-history-grade="9"] .cw-heading h1{font-size:clamp(22px,3vw,32px)}
@media(max-width:800px){.cw-nav{flex-wrap:wrap}.cw-nav-actions{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.cw-design-control select{max-width:150px}.cw-nav-actions button{margin-left:auto}body[data-wheel-bank=vocabulary][data-history-grade="9"] .cw-heading h1{font-size:26px}}
@media(max-width:420px){.cw-nav-actions{width:100%;justify-content:space-between}.cw-nav-actions button{margin-left:0}.cw-design-control select{max-width:132px}.cw-nav-actions{gap:5px}.cw-nav-actions button{max-width:75px;line-height:1.25}}
body[data-wheel-style=petals] #cw-wheel g text{fill:var(--petal-text)!important}
body[data-wheel-style=minimal] #cw-wheel g text{fill:var(--ink)!important}
body[data-wheel-style=minimal][data-wheel-theme=royal] #cw-wheel g:nth-of-type(3n+1) text{fill:#fff0d1!important}
body[data-wheel-style=petals][data-wheel-theme=royal] #cw-wheel{filter:drop-shadow(0 4px 3px #5c242a35)}
