@layer base, layout, states, variants, responsive;
@layer base {
:root{--ink:#253d38;--muted:#697a73;--green:#246858;--lime:#e4ee95;--paper:#fbfcf7;--line:#e1e7dc;--orange:#be633e;--serif:Georgia,'Times New Roman',serif}*{box-sizing:border-box}body{margin:0;background:#eef0e8;color:var(--ink);font:15px/1.5 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}button{border:0;background:none}button:focus-visible,a:focus-visible{outline:3px solid #358dca;outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:500}h1,h2{font-family:var(--serif)}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px}.primary{display:flex;align-items:center;justify-content:center;gap:12px;background:var(--green);border-radius:13px;color:white;min-height:52px;width:100%;padding:13px 20px;font-weight:650;box-shadow:0 3px 0 #164c40}.secondary{padding:13px 18px;border:1px solid var(--line);border-radius:12px;background:white;font-weight:600}.text-button{font-size:13px;color:var(--muted);padding:12px}.icon{width:21px;height:21px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.pill{display:inline-flex;align-items:center;gap:7px;border-radius:50px;padding:7px 12px;font-size:12px;font-weight:650;background:white;color:var(--green)}
}
@layer layout {
.studio{min-height:54px;padding:12px 4%;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dce2d6;font-size:11px}.studio-brand{font-weight:900;letter-spacing:2px}.studio-brand span{font-size:9px;color:var(--muted);margin-left:15px;letter-spacing:1px}.prototype-label{color:var(--muted)}.direction-bar{max-width:1376px;margin:28px auto 24px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}.direction-bar h1{font-size:28px;letter-spacing:-.5px;margin-top:5px}.directions{display:flex;background:#e2e7db;padding:5px;border-radius:14px;gap:3px}.directions button{font-size:10px;color:var(--muted);padding:10px 15px;border-radius:10px}.directions span{font-size:12px;font-weight:700;margin-left:6px}.directions button[aria-pressed=true]{background:var(--paper);color:var(--green);box-shadow:0 2px 7px #28443012}.app{max-width:1320px;margin:0 auto;background:var(--paper);border-radius:25px;box-shadow:0 15px 70px #344b3912;overflow:hidden;border:1px solid #fff}.app-nav{height:82px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.logo{font-family:var(--serif);font-size:46px;letter-spacing:-4px;font-weight:700;line-height:1}.logo>span:first-child{color:var(--orange)}.logo-dot{color:var(--green)}.app-nav nav{display:flex;gap:27px;height:100%;align-items:center}.app-nav nav button{height:100%;font-size:13px;color:var(--muted);position:relative}.app-nav nav button[aria-current=page]{color:var(--green);font-weight:700}.app-nav nav button[aria-current=page]:after{content:'';height:3px;background:var(--green);position:absolute;left:0;right:0;bottom:0}.avatar{border:1px solid var(--line);border-radius:30px;padding:6px 13px 6px 6px;display:flex;align-items:center;gap:9px;font-weight:750}.avatar:before{content:'✦';display:grid;place-items:center;width:27px;height:27px;background:#e6eab8;border-radius:50%;color:#697239}.avatar span{font-size:12px;font-weight:500}.mission-heading{padding:26px 40px 22px;display:flex;align-items:center;justify-content:space-between}.mission-heading h2{font-size:25px;margin-top:5px;letter-spacing:-.5px}.lesson-button{border:1px solid var(--line);border-radius:30px;padding:9px 15px;font-size:12px}.lesson-button span{margin-left:6px;color:#849185}#screen{padding:0 26px}.game-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);min-height:493px;gap:0;border:1px solid var(--line);border-radius:20px;overflow:hidden}.world{position:relative;min-height:485px;background:#b7d4b2;isolation:isolate;overflow:hidden}.world-image{position:absolute;width:100%;height:100%;object-fit:cover;object-position:52% 52%;z-index:-2}.world:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#25413e12,transparent 38%,#0e302c69);z-index:-1;pointer-events:none}.world-hud{padding:22px;display:flex;justify-content:space-between;gap:10px}.world-hud .pill{background:#fffef1ed;box-shadow:0 2px 15px #1736310b}.shields{display:flex;gap:5px;align-items:center}.shields .icon{width:19px;height:19px;fill:#dce8bd;stroke:#4a6944}.shields .empty{fill:transparent;opacity:.35}.location{position:absolute;bottom:28px;left:28px;color:#fffef2;text-shadow:0 1px 5px #17302d33}.location .eyebrow{color:#e8efc1}.location h3{font:34px var(--serif);margin:6px 0}.location p{font-size:12px;color:#f2f4df}.world-badge{position:absolute;right:22px;bottom:30px;border-radius:50%;height:58px;width:58px;border:1px solid #fff9;color:#fff;display:grid;place-items:center;background:#315f5055;backdrop-filter:blur(5px)}.question{padding:27px 32px;display:flex;flex-direction:column;justify-content:center;background:var(--paper);position:relative}.question-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px;margin-bottom:24px}.question-top .eyebrow{font-size:9px}.question h3{font:58px/1.1 var(--serif);letter-spacing:-2px;margin:11px 0 7px}.word-kind{color:var(--muted);font-size:12px}.question-prompt{font-size:14px;margin:24px 0 12px}.answer-label{display:block;font-size:11px;margin:0 0 6px;color:var(--muted)}input,select{width:100%;background:white;border:1.5px solid #ccd8ca;border-radius:12px;padding:14px;color:var(--ink);outline:none}input:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #24685812}.question .primary{margin-top:12px}.answer-help{display:flex;justify-content:space-between;margin-top:8px}.answer-help button{font-size:11px;padding:8px 0;color:var(--muted)}.answer-help .icon{width:15px;height:15px}.no-timer{font-size:10px;text-align:center;color:var(--muted);margin-top:16px}.route-strip{display:flex;align-items:center;gap:22px;padding:24px 12px 18px}.route-label{min-width:95px;font-size:11px}.route-label strong{display:block;font-size:13px}.steps{display:flex;gap:7px;flex:1}.step{height:7px;border-radius:4px;flex:1;background:#e6eadf}.step.done{background:var(--green)}.step.current{background:#b4c877}.route-end{font-size:12px;color:var(--muted)}.app-footer{padding:16px 40px;display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.app-footer i{display:inline-block;width:6px;height:6px;background:#86a44b;border-radius:50%;margin-right:7px}.app-footer>span:last-child{letter-spacing:1.5px;font-size:9px}.review-bar{max-width:1320px;margin:25px auto 35px;padding:0 15px}.review-bar>.eyebrow{color:var(--muted);font-size:9px}#states{display:flex;gap:7px;margin:10px 0;flex-wrap:wrap}#states button{padding:8px 13px;border:1px solid #d7dfd2;border-radius:8px;font-size:11px}#states button[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}.review-bar p{font-size:12px;color:var(--muted);max-width:850px}dialog{border:1px solid var(--line);border-radius:22px;padding:30px;max-width:420px;width:calc(100% - 32px);color:var(--ink);background:var(--paper)}dialog::backdrop{background:#193d3855;backdrop-filter:blur(3px)}dialog h2{font-size:29px;margin:9px 0 20px}dialog label{display:block;font-size:12px;margin:15px 0}dialog input,dialog select{margin-top:6px}dialog p{font-size:12px;color:var(--muted);margin:15px 0 20px}.close{float:right;font-size:25px;line-height:1}.choices{display:grid;grid-template-columns:1fr 1fr;gap:7px}.choices button{border:1px solid var(--line);padding:12px;border-radius:10px;background:white}@media (hover:hover) and (pointer:fine){.choices button:hover:not(:disabled){background:#edf2db}}
}
@layer states {
.feedback-symbol{display:grid;place-items:center;width:47px;height:47px;border-radius:50%;background:#e5edc8;color:var(--green);margin-bottom:16px}.feedback-symbol .icon{width:24px;height:24px}.question.feedback h3{font-size:35px;letter-spacing:-1px;margin:0 0 10px}.feedback-copy{font-size:13px;color:var(--muted);line-height:1.7}.word-answer{margin:23px 0;background:#edf3df;border:1px solid #dbe5c8;padding:18px;border-radius:13px}.word-answer strong{font-family:var(--serif);font-size:24px;font-weight:500;display:block}.word-answer small{display:block;font-size:11px;margin-top:6px;color:var(--muted)}.feedback.wrong .feedback-symbol{background:#f8e6d3;color:#a96535}.feedback.wrong .word-answer{background:#fff0e1;border-color:#f0d8bd}.feedback-tag{position:absolute;top:43%;left:51%;transform:translate(-50%,-50%);background:#fcfff0ed;color:#3f6740;border:1px solid #fff;padding:12px 22px;border-radius:50px;font-size:20px;box-shadow:0 8px 30px #22392526}.feedback-tag small{font-size:11px;margin-left:5px}.result-number{font:64px var(--serif);letter-spacing:-2px;color:var(--green);margin:18px 0 0}.result-number small{font:12px system-ui;letter-spacing:0;color:var(--muted)}.stat-row{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.result-note{font-size:11px;color:var(--muted);margin:14px 0}.result-actions{display:flex;flex-direction:column;gap:5px;margin-top:10px}.result-actions .primary{margin-top:0}.journey-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;min-height:460px;margin-bottom:25px}.map{background:#e4eccc;min-height:470px;border-radius:18px;position:relative;overflow:hidden;isolation:isolate}.map .world-image{opacity:.75;filter:saturate(.8);object-position:60%}.map:after{content:'';position:absolute;inset:0;background:#ecf0d32c;z-index:-1}.map-title{position:absolute;top:25px;left:25px;color:#294938}.map-title h3{font:32px var(--serif)}.map-node{position:absolute;display:flex;gap:10px;align-items:center;text-align:left}.map-node>b{width:45px;height:45px;background:#fffdf0;box-shadow:0 3px 0 #9ead88;border:3px solid white;border-radius:50%;display:grid;place-items:center;font-size:17px}.map-node span{background:#fffef2ed;padding:6px 12px;border-radius:8px;font-size:12px;font-weight:700;box-shadow:0 3px 10px #283e2712}.map-node small{display:block;font-size:9px;font-weight:500}.map-node.n1{left:12%;bottom:13%}.map-node.n2{left:32%;bottom:36%}.map-node.n3{left:49%;bottom:61%}.map-node.n3>b{background:var(--green);color:#fff}.journey-aside{padding:15px 12px}.journey-aside h3{font:32px var(--serif);margin:10px 0}.journey-aside>p{font-size:13px;color:var(--muted)}.lesson-card{border:1px solid var(--line);border-radius:14px;padding:16px;margin:17px 0;background:white}.lesson-card strong{font-size:14px}.lesson-card p{font-size:12px;color:var(--muted);margin:5px 0 12px}.lesson-card .primary{min-height:45px;font-size:12px}.records-head{padding:12px 14px 25px;display:flex;justify-content:space-between;align-items:end}.records-head h3{font:34px var(--serif)}.records-head p{font-size:12px;color:var(--muted);max-width:370px}.record-cards{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;margin:0 12px 20px}.record-card{padding:25px;background:#eef3df;border:1px solid #dce5ca;border-radius:18px}.record-card:nth-child(2){background:#f8eedc;border-color:#eee0c4}.record-card:nth-child(3){background:#e7efeb;border-color:#d4e1da}.record-card .big{font:53px var(--serif);margin:18px 0 4px}.record-card .big small{font:13px system-ui;color:var(--muted)}.record-card h3{font-size:15px;font-weight:650;margin:12px 0 5px}.record-card p{font-size:12px;color:var(--muted)}.record-card .icon{width:30px;height:30px}.record-table{margin:0 12px 30px;width:calc(100% - 24px);border-collapse:collapse;font-size:12px;text-align:left}.record-table th,.record-table td{padding:14px;border-bottom:1px solid var(--line)}.record-table th{font-size:10px;letter-spacing:1px;color:var(--muted)}.record-table td:last-child{text-align:right}.record-table button{color:var(--green);font-weight:650}.screen-description{font-size:12px;margin:0 12px 23px;color:var(--muted)}
}
@layer variants {
body[data-direction=focus]{background:#e9efed}body[data-direction=focus] .app{max-width:880px}body[data-direction=focus] .game-grid{grid-template-columns:1fr}body[data-direction=focus] .world{min-height:280px}body[data-direction=focus] .world-image{object-position:50% 48%}body[data-direction=focus] .question{max-width:520px;width:100%;margin:auto;padding:25px 40px 28px}body[data-direction=focus] .question-top{margin-bottom:4px}body[data-direction=focus] .question h3{font-size:48px}body[data-direction=focus] .question-prompt{margin-top:15px}body[data-direction=focus] .location{bottom:20px}body[data-direction=focus] .location h3{font-size:26px}body[data-direction=focus] .game-grid{background:var(--paper)}body[data-direction=atlas]{--paper:#fffbf0;--green:#8a5935;--line:#e8dfcc;--ink:#483c2d;--muted:#80735f;background:#eae4d6}body[data-direction=atlas] .app{border-radius:8px}body[data-direction=atlas] .game-grid{border-radius:5px;grid-template-columns:minmax(310px,1fr) minmax(0,1.7fr)}body[data-direction=atlas] .question{order:-1}body[data-direction=atlas] .world{border-left:1px solid var(--line)}body[data-direction=atlas] .world-image{filter:saturate(.9) sepia(.06)}body[data-direction=atlas] .primary{background:#8a5935;box-shadow:0 3px 0 #623a21}body[data-direction=atlas] .logo>span:first-child{color:#6d8a59}body[data-direction=atlas] .mission-heading h2{font-style:italic}body[data-direction=atlas] .pill{color:#665330}
}
@layer responsive {
@media(min-width:1500px){.direction-bar{margin-top:36px;margin-bottom:30px}.world{min-height:540px}}
@media(max-width:1000px){.app{margin:0 18px}.question{padding:23px}.app-nav,.mission-heading{padding-left:26px;padding-right:26px}.game-grid{grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr)}.world{min-height:470px}.direction-bar h1{font-size:24px}.directions button{padding:9px 11px}.record-cards{gap:10px}.record-card{padding:18px}.record-card .big{font-size:42px}.prototype-label{display:none}}
@media(max-width:700px){.studio{padding:10px 17px;min-height:42px}.studio-brand span{font-size:8px;margin-left:7px}.studio>a:last-child{font-size:10px}.direction-bar{margin:20px 0 18px;padding:0 18px;display:block}.direction-bar .eyebrow{font-size:8px}.direction-bar h1{font-size:25px}.directions{margin-top:15px;justify-content:space-between}.directions button{flex:1;padding:8px 5px}.directions span{font-size:11px}.app{margin:0 10px;border-radius:20px}.app-nav{height:64px;padding:0 18px;gap:10px}.logo{font-size:37px}.app-nav nav{gap:13px}.app-nav nav button{font-size:10px}.avatar{padding:4px;font-size:12px;gap:3px;border:0}.avatar:before{width:24px;height:24px}.avatar span{display:none}.mission-heading{padding:18px 18px 16px;align-items:start;gap:10px}.mission-heading .eyebrow{font-size:8px}.mission-heading h2{font-size:20px;max-width:210px;line-height:1.2}.lesson-button{font-size:9px;padding:7px 9px;white-space:nowrap;margin-top:3px}.lesson-button span{margin-left:2px}#screen{padding:0 9px}.game-grid,body[data-direction=atlas] .game-grid{grid-template-columns:1fr;border-radius:14px}.world,body[data-direction=focus] .world{min-height:270px}.world-hud{padding:14px}.pill{font-size:10px;padding:6px 9px}.shields .icon{width:16px;height:16px}.world-image{object-position:50% 54%}.location{bottom:20px;left:18px}.location h3{font-size:25px}.location .eyebrow{font-size:8px}.location p{font-size:10px}.world-badge{width:40px;height:40px;bottom:20px;right:15px}.question,body[data-direction=focus] .question{padding:23px 22px 21px}.question-top{margin-bottom:12px}.question h3{font-size:48px;margin-top:5px}.question-prompt{margin-top:18px}.no-timer{margin-top:10px}.route-strip{padding:17px 8px;gap:10px}.route-label{min-width:72px;font-size:9px}.route-label strong{font-size:11px}.steps{gap:4px}.step{height:6px}.route-end{font-size:10px}.app-footer{padding:13px 18px;font-size:9px}.app-footer>span:last-child{display:none}.review-bar{margin:19px 10px 30px;padding:0 5px}#states{gap:6px}#states button{font-size:10px;padding:8px 10px}.review-bar p{font-size:11px}.question.feedback h3{font-size:31px}.feedback-symbol{margin-bottom:13px}.word-answer{margin:18px 0}.journey-grid{grid-template-columns:1fr;gap:8px}.map{min-height:350px}.journey-aside{padding:12px}.map-node.n3{left:42%}.records-head{display:block;padding:12px}.records-head h3{font-size:28px}.records-head p{margin-top:10px}.record-cards{grid-template-columns:1fr;margin:5px 4px 18px}.record-card{display:grid;grid-template-columns:40px 1fr;gap:0 12px;padding:20px}.record-card>.icon{grid-row:1/5;margin-top:5px}.record-card .big{font-size:40px;margin:0}.record-card h3{margin:5px 0}.record-table{font-size:10px;margin:0 4px 20px;width:calc(100% - 8px)}.record-table th,.record-table td{padding:10px 5px}.record-table th{font-size:8px}.screen-description{font-size:11px}body[data-direction=focus] .world{min-height:195px}body[data-direction=focus] .location p{display:none}body[data-direction=focus] .question h3{font-size:45px}body[data-direction=atlas] .question{order:0}body[data-direction=atlas] .world{min-height:310px;border:0}body[data-direction=atlas] .game-grid{border-radius:5px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,box-shadow .15s}button:hover{filter:brightness(.97)}.primary:hover{transform:translateY(-1px)}}
}
