/* A shared visual language with the printed guide. All assets are local. */
@font-face{font-family:Guide;src:url('guide-regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Guide;src:url('guide-bold.ttf') format('truetype');font-weight:600 900;font-display:swap}
:root{--paper:#fff9ef;--ink:#193b60;--muted:#647287;--line:#eadfce;--orange:#ff791b;--lift:0 4px 0 #eadfcd66,0 16px 34px #7653270b}
body{font-family:Guide,Arial,sans-serif;background:radial-gradient(ellipse at 90% 8%,#ffe6bf70,transparent 35%),radial-gradient(ellipse at 5% 62%,#ffead64d,transparent 40%),var(--paper);border-top:0;isolation:isolate}
body:before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='900' viewBox='0 0 1400 900'%3E%3Cg fill='%23eead66' opacity='.19' font-family='Arial'%3E%3Ctext x='58' y='238' font-size='74' transform='rotate(-12 58 238)'%3E+%3C/text%3E%3Ctext x='1260' y='610' font-size='78' transform='rotate(12 1260 610)'%3E%C3%B7%3C/text%3E%3Ctext x='78' y='810' font-size='64' transform='rotate(12 78 810)'%3E=%3C/text%3E%3C/g%3E%3Cg fill='%23193b60' opacity='.065' font-family='Arial' font-size='52' text-anchor='middle'%3E%3Cg transform='translate(1300 130) rotate(12)'%3E%3Ctext y='0'%3E3%3C/text%3E%3Cpath d='M-25 12H25' stroke='%23193b60' stroke-width='2'/%3E%3Ctext y='63'%3E4%3C/text%3E%3C/g%3E%3Cg transform='translate(56 505) rotate(-12)'%3E%3Ctext y='0'%3E1%3C/text%3E%3Cpath d='M-25 12H25' stroke='%23193b60' stroke-width='2'/%3E%3Ctext y='63'%3E2%3C/text%3E%3C/g%3E%3C/g%3E%3C/svg%3E");background-position:center top;background-size:1400px 900px}
header{padding:23px 32px;border-bottom-color:#e8ddcd;gap:20px}
.brand{font-size:18px;letter-spacing:-.35px;gap:13px;max-width:280px}
.brand-icon{background:linear-gradient(145deg,#ffbc62,#ff7c1c);border:1px solid #ffc983;box-shadow:inset 0 1px 1px #fff9e8,0 3px 0 #e3702466;width:42px;height:42px;border-radius:14px;transform:rotate(-6deg)}
.header-author strong{font-size:14px}.header-author span{font-size:11px}
main{padding-top:42px;padding-bottom:32px}
.hero{gap:42px;align-items:center}
.eyebrow{display:inline-flex;min-height:30px;padding:7px 12px;border-radius:999px;background:#ffead4;color:#783b12;font-size:11px;letter-spacing:.9px;line-height:1.35;font-weight:700}
.eyebrow .dot{width:6px;height:6px;background:#ee771d}
.hero h1{font-size:clamp(42px,5.2vw,64px);font-weight:700;letter-spacing:-1.8px;line-height:1.04;margin:22px 0 23px}
.hero h1 em{position:relative;display:inline-block;color:#f7791c}
.hero h1 em:after{content:'';display:block;position:absolute;left:0;right:-5px;bottom:-4px;height:6px;border-radius:50%;background:#ffd49b;transform:rotate(-1.2deg);z-index:-1}
.hero-question{font-size:21px;line-height:1.35;font-weight:700;margin-bottom:17px;max-width:450px}
.hero .lead{padding:19px 21px 10px;background:#ffffffc9;border:1px solid #f2e7d8;border-bottom:0;border-radius:20px 20px 0 0;max-width:100%;font-size:17px;line-height:1.55;color:#405a76}
.hero .intro-copy{margin:0;padding:0 21px 18px;background:#ffffffc9;border:1px solid #f2e7d8;border-top:0;border-radius:0 0 20px 20px;box-shadow:0 5px 15px #76532706;max-width:100%;font-size:14px;line-height:1.5;color:#647287}
.facts{position:relative;gap:12px;margin:22px 0;padding-right:66px}.facts:after{content:'';position:absolute;right:3px;bottom:-5px;width:62px;height:62px;background:url('orange-whole-realistic.webp') center/contain no-repeat;transform:rotate(10deg);filter:drop-shadow(0 5px 4px #8b591222);pointer-events:none}
.fact{display:flex;align-items:center;gap:8px;background:#ffedd8;border:1px solid #ffdfb5;border-radius:12px;padding:7px 13px}
.fact b{font-size:24px;font-weight:700;letter-spacing:-.6px}.fact span{font-size:14px;color:#405a76}
.primary,.hero .primary{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(170deg,#ffc365 0%,#ff972b 45%,#ff7918 100%);border:1px solid #ffd097;border-radius:18px;color:var(--ink);box-shadow:inset 0 2px 0 #fff5d894,inset 0 -1px 0 #fff3cf,0 5px 0 #d96d1d,0 10px 0 #efc89833,0 16px 25px #d9853521;min-height:60px;font-weight:700;font-size:17px;transition:transform .18s,box-shadow .18s}
.primary:before{content:'';position:absolute;z-index:-1;inset:0 10% 48% -15%;background:#fff5cc26;border-radius:0 0 70% 0;pointer-events:none}
.primary:hover:not(:disabled),.hero .primary:hover{background:linear-gradient(170deg,#ffcf7d,#ff9f39 45%,#ff831f);transform:translateY(-2px);box-shadow:inset 0 2px 0 #fff5d894,0 7px 0 #d96d1d,0 19px 30px #d9853530}
.primary:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 2px 0 #fff5d894,0 2px 0 #d96d1d,0 5px 12px #d9853520}
.primary>span[aria-hidden]{display:grid;place-items:center;width:35px;height:35px;background:#fff5d9;border-radius:50%;flex-shrink:0;font-size:23px;font-weight:400;box-shadow:inset 0 1px 0 white}
.hero .primary{width:100%;justify-content:space-between;padding:12px 19px;font-size:18px;min-height:66px}
.hero .fine{font-size:12px;line-height:1.5;margin:15px 2px 0;color:#68768a}
.hero-author{margin-top:21px;gap:11px}.hero-author .initials{background:#fff;border:1px solid #eddfc9;color:#80532f;font-size:11px;width:35px;height:35px;box-shadow:0 3px 9px #76532708}
.wheel-card,.hero .wheel-card{background:radial-gradient(ellipse at 48% 39%,#fffef9 20%,#fff5e5 59%,#ffe9ce 100%);border:1px solid #f2d4ac;border-radius:32px;box-shadow:inset 0 2px 0 #fff,0 6px 0 #edd7b830,0 22px 44px #98632812;padding:23px 17px 21px}
.wheel-card:before{content:'✦';right:21px;top:63px;font-size:24px;opacity:.44;color:#efab4a;transform:rotate(10deg)}
.wheel-card .topline{font-size:12px;gap:12px;color:#6c604f}.topline>span:first-child{font-weight:700;color:#405a76}
.mini-pill{background:#fff9ec;border-color:#ead4b4;padding:5px 9px;font-size:10px;line-height:1.3}
.wheel-status{font-size:15px;line-height:1.5;font-weight:700;padding:0 14px;margin-top:4px}.wheel-caption{font-size:13px;line-height:1.5}
.replay-wheel,.print-btn{background:#fffdf8;border:1px solid #e8d5b9;border-radius:13px;box-shadow:0 3px 0 #decbb12b;padding:10px 16px;color:#405a76;min-height:44px;font-size:14px}
.replay-wheel:hover,.print-btn:hover{background:#fff0d9;border-color:#e9bb84}
.wheel-controls{margin-top:16px}
.bottom-strip{border:0;padding:0;margin-top:39px;gap:17px}
.step{padding:20px 16px;background:#ffffffdc;border:1px solid #f1e5d4;border-radius:19px;box-shadow:var(--lift);gap:12px;font-size:15px;font-weight:700;line-height:1.4}
.step-num{flex:0 0 33px;width:33px;height:33px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#fff2d7,#ffca83);color:#954f1c;border:1px solid #ffdcab;font-size:10px;line-height:1;box-shadow:inset 0 1px 0 white}
.step p{font-weight:400;font-size:13px;line-height:1.5;margin-top:5px;color:#647287}
.footer{border-top:1px solid #eadfce;margin-top:12px;padding:21px 32px;font-size:11px}
/* Quiet task area: the decoration stays outside the actual exercise. */
.quiz{max-width:730px;padding-top:1px}
.quiz-top{font-size:14px;margin-bottom:17px;gap:14px}
.section-pill{background:#ffead1;border:1px solid #ffdbaf;padding:8px 13px;color:#855020;font-weight:700;font-size:13px}
.progress{height:9px;background:#efe6d6;box-shadow:inset 0 1px 2px #a5805020;border-radius:20px;margin-bottom:24px}
.progress div{background:linear-gradient(90deg,#ffc56c,#ff8224);border-radius:20px;box-shadow:0 0 9px #fbaa5750}
.question-card{position:relative;padding:35px;background:#fffefd;border:1px solid #edddc7;border-radius:28px;box-shadow:inset 0 2px 0 white,0 6px 0 #eddfcd40,0 22px 45px #7653270b}
.question-card:before{content:'';position:absolute;top:-1px;left:35px;width:54px;height:5px;border-radius:0 0 7px 7px;background:linear-gradient(90deg,#ffbe63,#ff7b20)}
.question-card h1{font-weight:700;font-size:28px;letter-spacing:-.55px;line-height:1.3;margin:4px 0 26px}
.question-card>.math{background:#fff7e9;border:1px solid #fae8cb;border-radius:20px;padding:21px 16px;margin-bottom:25px;font-size:36px}
.option{border:1px solid #e6dccd;background:#fffdfa;border-radius:16px;box-shadow:0 3px 0 #eadfce38;transition:background .15s,border-color .15s,box-shadow .15s;min-height:83px}
.option:hover{background:#fff5e4;border-color:#efb77b}
.option.selected{background:#fff0d8;border:2px solid #dd862b;box-shadow:0 3px 0 #f0c68b50,inset 0 1px 0 #fff}
.option-index{border:0;background:#f3ecdf;border-radius:8px;color:#647287;width:27px;height:27px;font-size:12px}
.option.selected .option-index{background:#ffb95c;border:0;color:#17385f;font-weight:700}
.question-card .unknown{background:#f9f4eb;box-shadow:none;border:1px dashed #dfcbb0;font-size:15px;min-height:46px;margin-top:16px}
.question-card .unknown.selected{background:#fff0d8;border:2px solid #dd862b}
.quiz-nav{margin-top:24px}.quiz-nav .primary{padding:10px 18px;min-height:54px;gap:23px}
.quiz-nav .primary:disabled{background:#f1e9dc;border-color:#e5d8c4;color:#7a7d80;opacity:1;box-shadow:0 2px 0 #e4d7c740;transform:none}.quiz-nav .primary:disabled>span{background:#faf5eb;color:#888}
/* Results retain the same paper, citrus and clear orange controls. */
.results-head h1{font-size:45px;font-weight:700;letter-spacing:-1.3px;margin-top:18px}
.result-takeaway .summary{position:relative;background:linear-gradient(145deg,#fff9ec,#ffecd5);border:1px solid #f2d4ac;border-radius:25px;box-shadow:var(--lift);padding:28px}
.result-takeaway .summary h2{font-weight:700;font-size:27px;letter-spacing:-.5px;max-width:85%}
.result-takeaway .summary:after{content:'';position:absolute;right:13px;top:-24px;width:64px;height:64px;background:url('orange-whole-realistic.webp') center/contain no-repeat;transform:rotate(13deg);pointer-events:none;filter:drop-shadow(0 6px 5px #8b59121a)}
.result-takeaway .summary p{font-size:16px;color:#405a76;line-height:1.6}
.result-author{padding:19px 20px;background:#fffdfa;border:1px solid #efe2cf;border-radius:18px;line-height:1.8}
.result-author strong{display:inline-block;margin-bottom:3px;font-size:15px}
.result-author a{text-decoration-color:#d1ad7c;text-underline-offset:4px}
.restart-near-wheel .primary{font-size:16px;min-height:54px;padding:9px 14px}
.restart-near-wheel p{font-size:12px;margin-top:13px}
.total-score strong{font-weight:700;font-size:44px}
.topic-review{padding:28px;border-color:#eedec6;border-radius:27px;background:#fffefd;box-shadow:var(--lift)}
.topic-review h2{font-weight:700;font-size:26px;margin-bottom:11px}
.topic-review .review-intro{font-size:14px;line-height:1.6;margin-bottom:22px;max-width:630px}
.topic-review .skill-detail{border-color:#eee3d3}
.topic-review .skill-detail summary{min-height:76px;font-size:16px;padding:15px 2px;gap:13px}
.topic-number{background:#fff0d9;color:#955322;border:1px solid #ffe0b3;font-size:13px}
.topic-review .skill-detail summary:after{width:36px;height:36px;flex-basis:36px;background:linear-gradient(155deg,#fff2d8,#ffc77f);box-shadow:inset 0 1px 0 white,0 2px 0 #ddba8745;border:1px solid #ffd295;color:#94531e}
.topic-review .skill-detail[open] summary:after{background:#ffbe6b}
.topic-review .badge{background:#fff2df;color:#405a76;font-size:13px}
.mistake{background:#fffaf2;border-color:#eedeca;border-radius:20px;padding:20px}
.mistake h3{font-size:16px;line-height:1.5}.answer-state{font-size:12px}
.answer-box{background:#fffefb;border-color:#e8dcc8;border-radius:17px;box-shadow:0 4px 12px #84633608}
.answer-box.correct{background:#fff1dc;border-color:#f1bd80}
.answer-box.correct small{background:#ffe0b4;border-radius:10px;color:#734218;font-size:13px}
.answer-value{font-size:29px}.answer-value.text-answer{font-size:16px}
.answer-single .answer-box small{background:transparent;color:#684b27}
.print-btn{font-size:13px}
@media(max-width:900px){
 .hero{gap:29px}.hero>div:first-child{max-width:580px;margin:0 auto;width:100%}
 .hero h1{font-size:52px}.hero .wheel-card{max-width:580px}
 .bottom-strip{max-width:580px;margin:30px auto 0;grid-template-columns:1fr;gap:12px}
 .step{padding:16px 19px}.result-overview{gap:29px}
}
@media(max-width:600px){
 body:before{background-size:880px 700px;opacity:.7}
 header{padding:18px 18px;gap:13px}.brand{font-size:14px;max-width:190px;gap:10px}.brand-icon{width:35px;height:35px;font-size:23px;border-radius:11px}
 .header-author{max-width:105px}.header-author strong{font-size:11px}.header-author span{display:none}
 main{padding:27px 18px 20px}.eyebrow{font-size:10px;letter-spacing:.65px;padding:7px 10px}
 .hero h1{font-size:44px;letter-spacing:-1.25px;line-height:1.04;margin:21px 0}
 .hero-question{font-size:20px;line-height:1.3;margin-bottom:15px}
 .hero .lead{font-size:16px;line-height:1.5;padding:17px 17px 10px}
 .hero .intro-copy{font-size:14px;padding:0 17px 17px}.facts{margin:18px 0;gap:10px}.fact{padding:6px 12px}.fact b{font-size:22px}.fact span{font-size:13px}
 .hero .primary{min-height:62px;font-size:17px;padding:11px 16px;gap:12px}.hero-author{margin-top:18px}
 .wheel-card,.hero .wheel-card{padding:20px 11px 19px;border-radius:26px}.wheel-status{font-size:14px;padding:0 11px}.wheel-caption{font-size:12px}.replay-wheel{font-size:13px}
 .question-card{padding:26px 17px 24px;border-radius:24px}.question-card:before{left:22px}.question-card h1{font-size:24px;letter-spacing:-.4px}
 .quiz-top{font-size:12px;gap:8px}.section-pill{font-size:12px;padding:7px 10px}.quiz-top>span:last-child{white-space:nowrap}
 .question-card>.math{font-size:32px;padding:18px 12px}.options{gap:11px}.question-card .option{min-height:75px;font-size:22px;padding:13px;gap:10px}.question-card .option.selected{padding:12px}
 .question-card .unknown{min-height:46px;font-size:14px}.question-card .text-options .option{font-size:16px}
 .quiz-nav .primary{min-height:51px;font-size:15px;padding:9px 14px;gap:13px;max-width:none}.primary>span[aria-hidden]{width:31px;height:31px;font-size:22px}
 .results-head h1{font-size:36px;line-height:1.1;letter-spacing:-.9px}
 .result-takeaway .summary{padding:23px}.result-takeaway .summary h2{font-size:25px}.result-takeaway .summary:after{width:57px;height:57px;right:8px;top:-23px}
 .topic-review{padding:23px 15px;border-radius:24px}.topic-review h2{font-size:24px}.topic-review .skill-detail summary{font-size:15px;gap:8px;min-height:75px}.topic-review .skill-detail summary:after{width:32px;height:32px;flex-basis:32px}
 .topic-review .badge{padding:4px 7px;font-size:12px}.topic-name small{font-size:11px}.mistake{padding:15px}.mistake h3{font-size:15px}.answer-value{font-size:27px}
 .footer{padding:20px 18px;gap:9px;font-size:10px}
}
/* Preserve the special in-app phone viewport fallback. */
.phone-layout body{border-top:0}.phone-layout .hero h1{font-size:42px;font-weight:700}.phone-layout .hero .primary{font-size:17px;padding:11px 16px;min-height:62px}.phone-layout .facts{margin:18px 0;gap:10px}.phone-layout .hero .fine{font-size:12px}.phone-layout .question-card{padding:26px 17px 24px}.phone-layout .question-card h1{font-weight:700}.phone-layout .result-takeaway .summary h2{font-weight:700}
@media(max-width:360px){header{padding-left:13px;padding-right:13px}.brand{max-width:173px;font-size:13px}.header-author strong{font-size:10px}main{padding-left:13px;padding-right:13px}.hero h1{font-size:40px}.hero .primary{font-size:16px}.topic-review{padding:21px 12px}.topic-review .skill-detail summary{gap:6px;font-size:14px}.topic-review .badge{font-size:11px}.quiz-nav .primary{font-size:14px}}
@media(prefers-reduced-motion:reduce){.primary,.option{transition:none}.primary:hover:not(:disabled),.primary:active:not(:disabled){transform:none}}
@media print{body{background:white}body:before,.question-card:before,.summary:after{display:none}.wheel-card,.score-group,.summary,.answer-box{box-shadow:none!important}.eyebrow{background:none;padding:0}.result-author{border:0;padding:0}.topic-review{padding:10px}.primary:before{display:none}}
