:root{--wine:#79002e;--dark:#370e24;--gold:#e7c16b;--cream:#fffaf0;--ink:#30242a;--muted:#71636b;--line:#e9dce0}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fffcf8}a{color:var(--wine)}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}:focus-visible{outline:3px solid #b68422;outline-offset:4px}[hidden]{display:none!important}.shell{width:min(1140px,calc(100% - 48px));margin:auto}.header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-top:15px;padding-bottom:15px}.header img{width:116px;height:auto;display:block}.header nav{display:flex;align-items:center;gap:24px}.header nav a{font-size:.88rem;text-decoration:none;font-weight:650}.btn{display:inline-flex;align-items:center;justify-content:center;gap:15px;background:var(--wine);border:1px solid var(--wine);border-radius:10px;padding:13px 20px;color:#fff;font-weight:750;text-decoration:none;line-height:1.45}.btn.gold{background:var(--gold);color:var(--dark);border-color:var(--gold)}.btn.light{background:#fff;color:var(--wine);border-color:var(--line)}.btn.small{font-size:.85rem;padding:10px 15px}.hero{background:var(--dark);color:white;padding:72px 0 80px;overflow:hidden;position:relative}.hero:after{content:'';position:absolute;width:550px;height:550px;border-radius:50%;border:1px solid #e7c16b24;right:-130px;top:-240px;pointer-events:none}.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:64px;align-items:center}.eyebrow{font-size:.71rem;letter-spacing:.15em;font-weight:850;margin:0 0 14px}.hero .eyebrow{color:#efd597}h1{font-size:clamp(2.8rem,5.7vw,4.6rem);line-height:1.12;letter-spacing:-.045em;margin:0 0 24px}h1 em{font-family:Georgia,serif;font-weight:400;color:#efd597}h2{font-size:clamp(1.5rem,2.7vw,2.2rem);line-height:1.25;letter-spacing:-.025em;margin:0 0 15px}h3{font-size:1.5rem;line-height:1.3}.lead{color:#e7d2db;font-size:1.12rem;max-width:530px;margin-bottom:30px}.hero-note{font-size:.8rem;color:#ddc8cf}.journey-art{border:1px solid #dfc48780;border-radius:120px 120px 22px 22px;background:linear-gradient(150deg,#8c3145,#4d1831);padding:43px 30px 30px;text-align:center;box-shadow:15px 17px 0 #ffffff07;position:relative}.orb{margin:auto auto 17px;background:#e7c16b;color:#50182a;border-radius:50%;width:74px;height:74px;font:58px/74px Georgia}.journey-art p{font-size:.65rem;letter-spacing:.15em;color:#efd597}.journey-art h2{font-family:Georgia,serif;font-weight:400;font-size:2rem;line-height:1.3}.journey-tags{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:24px 0}.journey-tags span{padding:10px;background:#ffffff0a;border:1px solid #ffffff20;border-radius:9px;font-size:.85rem}.journey-art small{font-size:.75rem;color:#ebcdd7}.principle{display:flex;gap:18px;padding:23px 28px;background:#f5eddf;border-radius:14px;margin:30px 0 52px;font-size:.91rem}.principle>span{font-size:1.8rem;color:var(--wine)}.principle p{margin:0}.progress-section{display:grid;grid-template-columns:1fr .8fr;gap:55px;align-items:center}.progress-section h2{font-size:1.7rem}.progress-section p:not(.eyebrow){font-size:.86rem;color:var(--muted)}.progress-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px}.progress-top{display:flex;justify-content:space-between;gap:20px}.progress-top span{color:var(--wine);font-weight:800}progress{width:100%;height:10px;border:0;border-radius:12px;overflow:hidden;accent-color:var(--wine);margin:14px 0 8px}progress::-webkit-progress-bar{background:#ede5e6}progress::-webkit-progress-value{background:var(--wine)}.progress-panel small{color:var(--muted);font-size:.8rem}.section{padding:70px 0 0}.section-title{display:flex;justify-content:space-between;align-items:flex-end;gap:25px;margin-bottom:25px}.section-title h2{margin-bottom:0}.section-title p{font-size:.87rem}.chip{display:inline-flex;border:1px solid #d8c4b2;border-radius:30px;padding:4px 10px;font-size:.67rem;font-weight:750;letter-spacing:.05em;white-space:nowrap}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.mode{border:1px solid var(--line);border-radius:20px;padding:30px;position:relative;background:white}.mode.weekly{background:#f6ede9}.mode-icon{display:block;font-size:2.2rem;color:var(--wine);margin-bottom:12px}.mode .chip{position:absolute;right:28px;top:35px}.mode h3{margin:12px 0}.mode>p{color:var(--muted);max-width:410px}.mode>small{display:block;color:var(--muted);font-size:.8rem}.mode .btn{margin-top:23px;width:100%}.mode p.mode-status{font-size:.8rem;margin-bottom:0;min-height:1.4em}.fine{font-size:.78rem}.muted{color:var(--muted)}.levels{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.level{border:1px solid var(--line);border-radius:15px;padding:21px;display:grid;grid-template-columns:45px 1fr auto;gap:15px;align-items:center;background:white}.level-num{font-size:1.2rem;color:var(--wine);font-weight:850;align-self:start}.level h3{font-size:1.05rem;margin:0 0 4px}.level p{font-size:.8rem;margin:0 0 7px;color:var(--muted)}.level small{font-size:.72rem;color:var(--wine)}.level button{background:#f5ece8;color:var(--wine);border:0;border-radius:50%;width:38px;height:38px;font-size:1.3rem}.badges-section{display:grid;grid-template-columns:1fr 1fr;gap:42px}.badges-section p{font-size:.88rem}.badges{display:grid;grid-template-columns:1fr 1fr;gap:12px}.badge-card{text-align:center;border:1px solid var(--line);border-radius:14px;background:white;padding:20px 10px;opacity:.5}.badge-card.earned{opacity:1;background:#fff3d5;border-color:#d3ae5c}.badge-card>span{font-size:1.7rem;color:#856218}.badge-card strong{display:block;font-size:.83rem}.badge-card small{font-size:.72rem;color:var(--muted)}.notice{padding:16px 20px;border:1px solid var(--line);border-radius:12px;background:#f6f0ec;font-size:.87rem}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px;margin-top:16px;background:#fff}table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem}caption{text-align:left;padding:18px 20px;font-weight:750}th,td{padding:13px 20px;border-top:1px solid var(--line)}th{font-size:.73rem;color:var(--muted);background:#faf5f2}.text-btn{padding:4px 0;color:var(--wine);background:none;border:0;border-bottom:1px solid #bc899b;font-size:.85rem}.sources{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:24px}.sources a{display:block;border:1px solid var(--line);padding:15px 18px;border-radius:10px;text-decoration:none;font-size:.85rem;background:#fff}.sources small{display:block;color:var(--muted);font-size:.75rem;margin-top:4px}.community{margin:70px 0 30px;border-radius:23px;padding:40px;background:var(--wine);color:#fff;display:grid;grid-template-columns:1.3fr .7fr;gap:40px}.community p:not(.eyebrow){color:#f5dbe4}.community-actions{display:flex;flex-direction:column;justify-content:center;gap:10px}.community .light{background:transparent;border-color:#e5b4c7;color:#fff}footer{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:22px 0 40px;color:var(--muted);font-size:.78rem}dialog{width:min(720px,calc(100% - 28px));max-height:90dvh;border:0;border-radius:20px;padding:30px;color:var(--ink);box-shadow:0 30px 90px #16071355}dialog::backdrop{background:#210a1dd9}body:has(dialog[open]){overflow:hidden}.quiz-header{display:flex;justify-content:space-between;align-items:center}.quiz-header .eyebrow{margin:0;color:var(--wine)}.close{background:#f3eae9;border:0;border-radius:50%;width:38px;height:38px;color:var(--wine);font-size:1.6rem}#quiz-title{margin-top:14px;font-size:1.6rem}#quiz-counter{margin:0;font-size:.8rem}fieldset{border:0;margin:10px 0 18px;padding:0}legend{font-weight:750;font-size:1.1rem;line-height:1.5;margin-bottom:18px}#answers label{display:flex;align-items:flex-start;gap:13px;border:1px solid #d7c9cf;border-radius:10px;padding:14px;margin-bottom:10px;font-size:.94rem;cursor:pointer}#answers label:has(:checked){border-color:var(--wine);background:#fff1f5}#answers label.correct{border-color:#247259;background:#f0faf4}#answers label.wrong{border-color:#a64037;background:#fff2ee}input[type=radio],input[type=checkbox]{accent-color:var(--wine);margin-top:5px;flex:none}.feedback{border-left:3px solid var(--wine);padding:14px;background:#f8f1ed;margin:15px 0;font-size:.92rem}.feedback p{margin:6px 0}.feedback a{font-size:.85rem}.result-score{font-size:3.3rem;color:var(--wine);font-weight:850;line-height:1.15;margin:15px 0}.share-row{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.share-row .btn{font-size:.8rem;padding:10px 13px}.rank-opt{padding:20px;border:1px solid var(--line);border-radius:12px;margin-top:25px}.rank-opt select{padding:9px;max-width:100%;display:block;margin:12px 0;border:1px solid var(--line);border-radius:8px;background:white}.rank-opt label{display:flex;gap:10px;font-size:.85rem}.rank-opt button{margin-top:13px}details{border-top:1px solid var(--line);padding:14px 0}summary{cursor:pointer;font-weight:700;font-size:.9rem}details p{font-size:.85rem}.result-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.result-cta a{font-size:.8rem}.review-title{margin-top:28px;font-size:1.1rem}.error{color:#a02e20}.success{color:#246546}@media(max-width:760px){.shell{width:calc(100% - 32px)}.header nav{gap:13px}.header nav a:not(.btn){display:none}.header img{width:95px}.hero{padding:45px 0}.hero-grid{grid-template-columns:1fr;gap:35px}.journey-art{border-radius:80px 80px 18px 18px;padding:25px}.journey-art h2{font-size:1.7rem}.orb{width:50px;height:50px;font-size:42px;line-height:50px}.journey-tags{margin:14px 0;grid-template-columns:repeat(4,1fr)}.journey-tags span{padding:8px 4px;font-size:.72rem}.principle{padding:18px;gap:12px;margin:20px 0 35px}.progress-section,.badges-section,.community{grid-template-columns:1fr;gap:20px}.section{padding-top:48px}.section-title{align-items:flex-start;flex-direction:column;gap:12px}.mode-grid,.levels,.sources{grid-template-columns:1fr}.mode{padding:24px}.level{padding:18px;gap:9px;grid-template-columns:35px 1fr 38px}.community{padding:27px;margin-top:45px}.badges{grid-template-columns:repeat(2,1fr)}footer{align-items:flex-start;flex-direction:column;gap:8px}dialog{padding:22px}th,td{padding:12px}.hero-note{font-size:.75rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Playful learning quest theme. */
body{background-color:#fff9ed;background-image:radial-gradient(#e5cfb655 .9px,transparent .9px);background-size:22px 22px}.game-icon{display:inline-block;width:62px;height:62px;flex:none;vertical-align:middle;filter:drop-shadow(0 4px 0 #46234b1c)}.hero{background:radial-gradient(ellipse at 85% 5%,#92507a 0,transparent 44%),linear-gradient(140deg,#49213f,#712145 75%);border-bottom:7px solid #e8bb63}.hero h1{letter-spacing:-.035em}.hero h1 em{font:inherit;color:#ffda7e;font-style:normal}.hero .eyebrow{display:inline-block;background:#ffffff14;border:1px solid #f6d58e55;border-radius:30px;padding:7px 13px}.journey-art.game-emblem{background:#fff3d6;color:#592143;border:4px solid #ecbb62;border-radius:34px;transform:rotate(-2deg);box-shadow:0 9px 0 #a86d43,12px 23px 0 #290c3026;padding:30px;isolation:isolate}.game-emblem p{color:#8b4863;font-weight:850;margin:18px 0 10px}.game-emblem h2{font-family:inherit;font-weight:850;font-size:1.7rem}.game-emblem small{color:#81556a}.game-logo{display:flex;justify-content:center;align-items:center;gap:12px}.game-logo>.game-icon{width:100px;height:100px;transform:rotate(-8deg)}.game-logo strong{font-size:2.8rem;line-height:.9;letter-spacing:-.045em;color:#762249;text-shadow:0 3px 0 #f8d6bb;transform:rotate(2deg)}.game-logo strong span{color:#9a5b23}.floating-badge{position:absolute;display:grid;place-items:center;width:65px;height:65px;border:3px solid #fff;background:#f1d4ef;border-radius:20px;box-shadow:0 5px 0 #663a65}.floating-badge .game-icon{width:48px;height:48px}.floating-one{right:-25px;top:-21px;transform:rotate(13deg)}.floating-two{left:-26px;bottom:38px;transform:rotate(-13deg);background:#d9f3e8}.quest-dots{display:flex;justify-content:center;align-items:center;margin:23px 0 16px}.quest-dots span{width:32px;height:32px;border-radius:50%;background:#bca0de;color:#4a216e;font-weight:850;line-height:29px;border:2px solid #7c4c9c;box-shadow:0 3px 0 #754389}.quest-dots span:last-child{background:#ffd362;color:#895817;border-color:#be8b31}.quest-dots i{width:22px;border-top:3px dashed #c4a889}.btn{border-radius:15px;border:2px solid #5a1734;box-shadow:0 5px 0 #4e1732;transition:transform .15s,box-shadow .15s}.btn:hover{transform:translateY(-2px);box-shadow:0 7px 0 #4e1732}.btn:active{transform:translateY(4px);box-shadow:0 1px 0 #4e1732}.btn.gold{border-color:#b27a2d;box-shadow:0 5px 0 #a06d2a}.btn.light{box-shadow:0 4px 0 #d9c3c3}.header .btn{box-shadow:0 3px 0 #4e1732}.principle{background:#fff0c9;border:2px solid #eed398}.progress-panel{border:2px solid #d3b6d6;box-shadow:0 5px 0 #e7d9e8;border-radius:20px}.progress-top span{background:#efe2f7;border-radius:30px;padding:3px 12px;font-size:.9rem}.progress-top strong{background:#fff0c4;border-radius:8px;padding:3px 10px}progress{height:14px;border:2px solid #e2d5df}progress::-webkit-progress-value{background:linear-gradient(90deg,#ac67c9,#7d325b)}.mode{border:2px solid #d0b5d7;box-shadow:0 7px 0 #dec7e2;border-radius:24px;background:#fbf3ff;overflow:hidden}.mode.weekly{background:#fff4d9;border-color:#dfbd79;box-shadow:0 7px 0 #e5cf99}.mode .mode-icon{width:83px;height:83px;margin:0 0 17px;transform:rotate(-7deg)}.mode h3{font-weight:850;font-size:1.7rem}.mode .chip{background:#fff;border-width:2px}.level{border:2px solid #e0cddd;box-shadow:0 4px 0 #eddde4;border-radius:20px;grid-template-columns:65px 1fr auto;transition:transform .15s}.level:hover{transform:translateY(-3px)}.level:nth-child(4n+2){background:#f5f0ff}.level:nth-child(4n+3){background:#f0faf5}.level:nth-child(4n+4){background:#fff3e0}.level-num{position:relative;width:60px;height:68px}.level-num .game-icon{width:56px;height:56px}.level-num b{position:absolute;right:-3px;bottom:0;background:#7c3156;color:#fff;border:2px solid #fff;border-radius:50%;width:26px;height:26px;font-size:.68rem;line-height:22px;text-align:center}.level button{border:2px solid #bd89a2;background:#ffe7af;box-shadow:0 3px 0 #a16c86;font-weight:850}.level-complete{border-color:#88bda3!important}.level-complete .level-num b{background:#297f61}.badge-card{border:2px solid #ddd0df;border-radius:22px;opacity:.7;filter:grayscale(.65);box-shadow:0 4px 0 #e8dfe9}.badge-card.earned{filter:none;border-color:#d5a146;background:linear-gradient(#fff7db,#ffe7ae);box-shadow:0 5px 0 #c99548}.badge-art{display:block;margin-bottom:9px}.badge-art .game-icon{width:68px;height:68px}.badge-card strong{color:#613249}.quiz-header .eyebrow{padding:5px 10px;border-radius:20px;background:#f4e5ff}dialog{border:3px solid #e9c374;border-radius:26px;background:#fffaf0}#answers label{border:2px solid #d7c2d5;box-shadow:0 3px 0 #e8dae6;border-radius:15px;background:#fff}#answers label:has(:checked){background:#f4e9ff;border-color:#a36bc1}.feedback{border-radius:12px;border-left-width:5px}#quiz-result .result-score{background:#ffedaf;border:2px solid #dfb557;border-radius:20px;padding:18px;text-align:center;box-shadow:0 5px 0 #e5cc8e}#ranking .table-wrap{border:2px solid #debf81;box-shadow:0 5px 0 #ecdfc5;border-radius:20px}#ranking caption{background:#fff0c9}.community{border:3px solid #e8bb63;border-radius:26px;box-shadow:0 7px 0 #d6b983}.community .btn.light{box-shadow:0 4px 0 #572039}@media(max-width:760px){.journey-art.game-emblem{max-width:440px;width:calc(100% - 25px);margin:0 auto;transform:rotate(-1deg);padding:23px}.game-logo strong{font-size:2.5rem}.game-logo>.game-icon{width:85px;height:85px}.floating-one{right:-15px}.floating-two{left:-17px;bottom:25px}.game-emblem h2{font-size:1.5rem}.level{grid-template-columns:58px 1fr 38px;gap:11px}.level-num{width:52px}.level-num .game-icon{width:50px;height:50px}.mode .mode-icon{width:73px;height:73px}.hero .eyebrow{font-size:.62rem}.badge-art .game-icon{width:58px;height:58px}}@media(prefers-reduced-motion:reduce){.btn,.level{transition:none}.btn:hover,.level:hover{transform:none}}
/* Match Games surfaces to the light-gold emblem. */
:root{--cream:#fff3d6;--game-surface:#fff3d6}body{background:var(--game-surface)}.header img{mix-blend-mode:multiply}.progress-panel,.mode,.mode.weekly,.level,.level:nth-child(4n+2),.level:nth-child(4n+3),.level:nth-child(4n+4),.sources a,.table-wrap,.badge-card,dialog,#answers label,.rank-opt,.rank-opt select,.btn.light{background:var(--game-surface)}.mode .chip,.notice,.principle,.feedback{background:#ffedbf}.floating-badge{border-color:#fff3d6}.community .btn.light{background:transparent}#answers label:has(:checked){background:#ffe3a0}#answers label.correct{background:#e5efd0}#answers label.wrong{background:#ffdfc1}.badge-card.earned{background:linear-gradient(#fff0be,#ffe1a0)}
.academy-language-control{display:flex;align-items:center;gap:8px;margin-left:auto}.academy-language-control img{border-radius:3px;flex:none}.academy-language-control select{max-width:174px;padding:9px 8px;border:2px solid #d1ac67;border-radius:11px;color:#6c2144;background:#ffedbf;font-size:.8rem;font-weight:700}.header{flex-wrap:wrap;column-gap:20px}@media(min-width:1000px){.header nav{gap:17px}}@media(max-width:999px) and (min-width:761px){.header nav{width:100%;justify-content:flex-end}}@media(max-width:760px){.header{gap:14px 10px}.academy-language-control select{max-width:148px;font-size:.75rem;padding:9px 4px}.academy-language-control{gap:5px}.header nav{width:100%;justify-content:flex-end}.header nav .btn{font-size:.76rem;padding:8px 12px}}

.correct-toast{position:sticky;top:8px;z-index:2;margin:8px auto 14px;padding:12px 18px;width:fit-content;max-width:100%;border:2px solid #d9ad4e;border-radius:999px;background:linear-gradient(110deg,#fff4c9,#ffe39c);color:#70213e;font-weight:800;text-align:center;box-shadow:0 5px 18px #6b26332b}.correct-toast[hidden]{display:none}.correct-toast.pop{animation:encouragement-pop .35s cubic-bezier(.2,.9,.3,1.25)}@keyframes encouragement-pop{0%{opacity:0;transform:translateY(-10px) scale(.92)}100%{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){.correct-toast.pop{animation:none}}

#participant-dialog{max-width:min(520px,calc(100vw - 28px));width:100%;max-height:90vh;overflow:auto;padding:22px}#participant-form{display:grid;gap:10px}#participant-form>label:not(.privacy-consent){font-weight:800;color:#682441}#participant-form input:not([type=checkbox]){width:100%;box-sizing:border-box;padding:12px;border:1.5px solid #cfb47f;border-radius:12px;background:#fffdf7;font:inherit}.privacy-consent{display:flex;align-items:flex-start;gap:10px;margin:8px 0;padding:12px;border-radius:12px;background:#fff1c8;font-size:.92rem}.privacy-consent input{margin-top:4px;accent-color:#79002e;flex:none}#participant-cancel-secondary{justify-self:center}
