/* Category hub and the four seasonal worlds. */
body[data-view="hub"]{background:#fffaf1;background-image:radial-gradient(#e6ddcc 1px,transparent 1px);background-size:24px 24px}
body[data-view="hub"] .intro{align-items:center;justify-content:flex-start;gap:24px;flex-direction:row}body[data-view="hub"] .home-portrait{display:block}body[data-view="hub"] h1{font-size:clamp(28px,4vw,44px);color:#224665}body[data-view="hub"] .top-note{display:none}
.category-trail{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0;color:#52677a;font-size:14px}.category-trail[hidden]{display:none}.category-trail button{font:inherit;color:#244d70;background:white;border:1px solid #bed0de;border-radius:12px;padding:12px 16px;min-height:44px;cursor:pointer}
.world-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.world-card{--tint:#fff0d9;--edge:#e6b478;background:var(--tint);border:2px solid var(--edge);box-shadow:0 6px 0 var(--edge);border-radius:28px;padding:24px;display:flex;flex-direction:column;text-align:left;font:inherit;color:#233f4e;cursor:pointer;transition:transform .15s}.world-card:hover{transform:translateY(-3px)}.world-summer{--tint:#fff5bc;--edge:#e0c259}.world-winter{--tint:#e7f4ff;--edge:#a0cce8}.world-spring{--tint:#ecf6e3;--edge:#b4d297}.world-traffic{--tint:#eeeaff;--edge:#bfb3df;grid-column:span 2}.world-art{height:125px;display:flex;align-items:center;justify-content:space-between;font-size:76px;line-height:1;gap:16px}.world-art>span{font-size:34px;letter-spacing:6px}.traffic-art{justify-content:flex-start}.traffic-art .sign-vector{height:108px;width:108px;background:white;border-radius:20px;padding:10px}.traffic-art>span:last-child{font-size:68px}.world-title{font-size:28px;font-weight:800;letter-spacing:-.5px;margin:18px 0 8px}.world-desc{font-size:16px;line-height:1.5;flex:1}.world-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid #23404e26;font-size:14px}.world-bottom b{background:white;padding:9px 14px;border-radius:18px}
body[data-season="autumn"]{background:#fff7e9}body[data-season="summer"]{background:#fffce7}body[data-season="winter"]{background:#eff8ff}body[data-season="spring"]{background:#f1f8eb}
.season-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.season-game-card{font:inherit;color:#233f4e;background:white;border:2px solid #cedbd3;box-shadow:0 5px 0 #cedbd3;border-radius:24px;padding:26px;display:flex;flex-direction:column;gap:15px;text-align:left;cursor:pointer}.season-game-icon{font-size:50px}.season-game-card>span:not(.menu-title){line-height:1.6}.season-game-card b{margin-top:auto;color:#255e47}.season-board{max-width:780px;margin:auto}.season-board h2{font-size:clamp(22px,3vw,30px);line-height:1.4}.season-symbol{display:block;font-size:72px;text-align:center;margin:20px auto}.season-answers{display:grid;gap:12px;margin:20px 0}.season-answers button{font:inherit;font-size:20px;font-weight:700;min-height:60px;text-align:left;padding:15px 20px;background:#f4f7fb;border:2px solid #c6d4e0;border-radius:16px;color:#203e55;cursor:pointer}.season-board button:disabled{opacity:1}.count-pictures{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;background:#f6f8f1;padding:20px 10px;border-radius:20px;margin:20px 0}.count-pictures span{font-size:48px;text-align:center;line-height:1.4}.season-memory{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.season-memory button{font:inherit;border:2px solid #356c62;border-radius:18px;background:#24554c;color:white;min-height:120px;padding:10px 4px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.season-memory button>span{font-size:42px}.season-memory small{font-size:13px}.season-memory .revealed{background:white;color:#23463b;border-color:#abcbbb}.world-card:focus-visible,.season-game-card:focus-visible,.season-board button:focus-visible,.category-trail button:focus-visible{outline:3px solid #3d69bb;outline-offset:4px}
body[data-view="hub"] #back-to-menu,body[data-view="hub"] #back-to-categories,body[data-view="season-menu"] #back-to-menu{display:none}.quick-nav button{padding-left:14px;padding-right:14px}#back-to-categories{background:#e9e4f5;color:#433765}
@media(max-width:900px){.world-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.world-traffic{grid-column:span 2}.season-menu{grid-template-columns:1fr}.season-game-card{gap:10px;padding:22px}.season-game-icon{font-size:38px}}
@media(max-width:760px){body[data-view="hub"] .intro{gap:16px;margin:24px 0}body[data-view="hub"] h1{font-size:26px}body[data-view="hub"] .subtitle{font-size:14px}.world-grid{gap:18px}.world-card{padding:18px;border-radius:22px}.world-art{font-size:52px;height:90px}.world-art>span{font-size:24px;letter-spacing:0}.world-title{font-size:24px}.world-desc{font-size:15px}.world-bottom{flex-wrap:wrap}.season-memory{grid-template-columns:repeat(3,1fr);gap:8px}.season-memory button{min-height:104px}.count-pictures{gap:6px}.count-pictures span{font-size:28px;min-width:0}.quick-nav button{font-size:13px;padding:10px 5px;white-space:nowrap;min-width:0}body[data-view="home"] .quick-nav{left:12px}body[data-view="hub"] .quick-nav{left:auto}}
@media(max-width:480px){.world-grid{grid-template-columns:1fr}.world-traffic{grid-column:auto}.world-art{height:85px;font-size:64px}.world-art>span{font-size:32px}.world-title{margin-top:12px}.world-bottom{margin-top:16px;padding-top:12px}.traffic-art .sign-vector{height:85px;width:85px}}
@media(prefers-reduced-motion:reduce){.world-card{transition:none}.world-card:hover{transform:none}}

body[data-season] .top-note{display:none}
/* Six-year-old adventures: picture choices, scenes and earned stars. */
.season-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.season-game-card{background:linear-gradient(135deg,#fff,#f4f8ed)}.season-game-card .season-game-icon{font-size:58px}.adventure-board{border-radius:26px;padding:24px}.adventure-progress{display:flex;gap:16px;align-items:center;padding-bottom:18px;border-bottom:1px solid #dbe7da;margin-bottom:20px}.adventure-progress strong{font-size:14px;color:#406052}.adventure-buddy{font-size:50px}.reward-trail{display:flex;gap:8px;font-size:30px;color:#91a19b;margin-top:5px}.reward-trail .earned{color:#bc780b;text-shadow:0 1px #fff1a5;animation:star-pop .3s ease-out}.mission-scene{display:flex;align-items:center;justify-content:center;gap:26px;min-height:160px;background:linear-gradient(#def2ff,#f6ffe4);border-radius:24px;margin:18px 0;padding:22px}.mission-scene>span:first-child{font-size:88px}.mission-missing{display:flex;align-items:center;justify-content:center;width:104px;height:104px;font-size:68px;border:3px dashed #658d82;border-radius:24px;background:#ffffffba;color:#325e53}.mission-missing.filled{border-style:solid;background:#fff7c8;border-color:#c79424}.picture-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}.adventure-choice{font:inherit;position:relative;cursor:pointer;min-width:0;min-height:128px;padding:16px 8px;background:#f5f8ff;border:3px solid #b7cfdd;border-radius:20px;color:#244859;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.adventure-picture{font-size:58px;line-height:1.2}.adventure-name{font-size:16px;font-weight:700;overflow-wrap:anywhere}.adventure-choice:focus-visible{outline:3px solid #4059b8;outline-offset:4px}.adventure-choice:hover:not(:disabled){background:#eaf5fb;border-color:#438473}.adventure-choice:disabled{cursor:default}.adventure-choice.pair-wrong{opacity:.6!important}.hint-choice{border-color:#b8790f!important;box-shadow:0 0 0 3px #ffe69b}.found-tick{position:absolute;top:3px;right:9px;color:#326d37;font-size:22px}.hunt-target{display:flex;align-items:center;justify-content:center;gap:16px;margin:16px auto;font-weight:700;background:#fff5c9;border:2px solid #e3c17d;border-radius:18px;padding:12px;max-width:340px}.hunt-target .adventure-picture{font-size:44px}.hunt-target .adventure-name{display:none}.hunt-scene{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:30px 18px 24px;border:2px solid #a4c6a8;border-radius:26px;background:linear-gradient(#daf3fa 0 28%,#cae7ab 28% 100%);margin:20px 0}.hunt-scene.autumn{background:linear-gradient(#fbe5bf 0 28%,#e5cf92 28% 100%)}.hunt-scene.summer{background:linear-gradient(#bbebff 0 28%,#ffedb1 28% 100%)}.hunt-scene.winter{background:linear-gradient(#d0edff 0 28%,#edfaff 28% 100%)}.hunt-scene .adventure-choice{background:#ffffff7a;min-height:100px;padding:10px 4px;border:2px solid #ffffff90;border-radius:40% 35% 36% 30%;transform:rotate(-4deg)}.hunt-scene .adventure-choice:nth-child(2n){transform:rotate(5deg);margin-top:14px}.hunt-scene .adventure-name{display:none}.hunt-scene .adventure-picture{font-size:52px}.picture-sequence{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;padding:24px 12px;margin:22px 0;background:#f3f7ed;border:2px solid #d6e1ca;border-radius:24px}.picture-sequence>span{display:flex;align-items:center;justify-content:center;font-size:44px;width:58px;height:66px;background:white;border-radius:14px;line-height:1}.picture-sequence .sequence-gap{background:#fff2bc;border:2px dashed #bd902a;color:#725b22}.sequence-gap.filled{border-style:solid}.adventure-feedback{margin:18px 0}.adventure-feedback p{line-height:1.5}.memory-status{padding:14px 16px;background:#f2f5ec;border-radius:16px;line-height:1.5}.season-memory button{border-radius:20px;background:linear-gradient(135deg,#3b8073,#205249);min-height:120px}.season-memory .revealed{background:white}.reward-garden{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;padding:26px 20px;border:2px solid #c6dba4;border-radius:28px;background:linear-gradient(#def7ff,#d8edb5);margin:24px auto;max-width:520px}.reward-garden.autumn{background:linear-gradient(#fff0c4,#e5c17f)}.reward-garden.summer{background:linear-gradient(#caf2ff,#ffe7a6)}.reward-garden.winter{background:linear-gradient(#cfebff,#f7ffff)}.reward-garden span{font-size:56px;animation:star-pop .4s ease-out}.adventure-finish h2{font-size:clamp(25px,4vw,36px);line-height:1.3}.adventure-finish .muted{font-size:15px!important;line-height:1.5}.adventure-board h2{margin-bottom:12px}
@keyframes star-pop{from{transform:scale(.8)}to{transform:scale(1)}}
@media(max-width:760px){.season-menu{grid-template-columns:1fr}.adventure-board{padding:16px}.adventure-buddy{font-size:42px}.reward-trail{font-size:27px;gap:5px}.adventure-progress{gap:12px}.mission-scene{min-height:130px;padding:16px;gap:18px}.mission-scene>span:first-child{font-size:64px}.mission-missing{width:80px;height:80px;font-size:50px}.picture-choices{gap:8px;margin:18px 0}.adventure-choice{min-height:110px;padding:12px 4px;border-radius:16px}.adventure-picture{font-size:44px}.adventure-name{font-size:13px}.hunt-scene{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:20px 10px}.hunt-scene .adventure-choice{min-height:82px}.hunt-scene .adventure-picture{font-size:42px}.picture-sequence{gap:7px;padding:16px 8px}.picture-sequence>span{width:46px;height:54px;font-size:34px}.season-memory button{min-height:102px}.reward-garden{gap:14px;padding:20px 14px}.reward-garden span{font-size:42px}}
@media(max-width:359px){.adventure-name{font-size:12px}.adventure-picture{font-size:38px}.hunt-scene .adventure-picture{font-size:36px}.picture-sequence>span{width:42px;height:48px;font-size:30px}.reward-trail{font-size:25px}.season-memory small{font-size:11px}}
@media(prefers-reduced-motion:reduce){.reward-trail .earned,.reward-garden span{animation:none}}
/* Ordered clues and route planning for experienced young players. */
.advanced-instruction{font-size:16px;line-height:1.6;color:#34564b}.clue-list{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;padding:0;list-style:none;margin:22px 0}.clue-list li{display:flex;flex-direction:column;gap:8px;align-items:center}.clue-order{font-size:18px;font-weight:800;color:#34544d}.clue-tile{position:relative;font:inherit;min-width:0;width:100%;min-height:116px;border:3px solid var(--clue-edge);border-radius:18px;background:var(--clue-bg);color:#203d4a;padding:12px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.color-blue{--clue-bg:#e3f4ff;--clue-edge:#387fa9}.color-purple{--clue-bg:#f1e9ff;--clue-edge:#8b57b5}.color-orange{--clue-bg:#fff0d3;--clue-edge:#b97a27}.clue-list .clue-tile{width:110px}.clue-symbol{font-size:46px;line-height:1.1}.clue-dots{font-size:16px;letter-spacing:4px;height:20px;line-height:20px;color:#294352}.clue-color-name{font-size:12px;font-weight:700;overflow-wrap:anywhere}.clue-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0;padding:16px;border-radius:22px;background:#e6efdc}.clue-board button{cursor:pointer}.clue-board button:focus-visible{outline:3px solid #234e6c;outline-offset:3px}.clue-board button:disabled{cursor:default}.clue-found{opacity:.45!important}.clue-wrong{border-style:dashed;opacity:.6!important}.clue-progress{display:flex;justify-content:center;gap:12px;margin:18px 0}.clue-progress>span{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#ecf2ee;color:#496354;border:2px solid #c4d6c5;font-weight:800}.clue-progress>.earned{background:#d7efd1;color:#286330}.advanced-board>#clue-ready{display:block;margin:20px auto 0}.route-map{display:grid;grid-template-columns:repeat(var(--route-size),minmax(0,1fr));gap:6px;padding:12px;border-radius:22px;background:#d2e5c2;border:2px solid #aacb9a;max-width:470px;margin:20px auto}.route-cell{aspect-ratio:1;min-width:0;display:flex;align-items:center;justify-content:center;background:#f8fff0;border:2px solid #b9d4ad;border-radius:12px;font-size:38px;position:relative}.route-cell.blocked{background:#8faaa0;border-color:#789388}.route-cell.visited{background:#fff3ad;border-color:#b99220}.route-cell.route-hit{background:#ffdacf;border-color:#aa4537}.route-cell small{position:absolute;left:2px;top:1px;font-size:12px;font-weight:800;color:#76591a;background:#fff7d9;border-radius:4px;padding:0 3px}.route-plan{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;min-height:66px;padding:16px 12px;border:2px dashed #afc3b4;border-radius:16px;background:#f4f8ee}.route-plan>span:first-child:empty{display:none}.plan-step{font-size:28px;display:flex;gap:5px;align-items:center;color:#214b3b;line-height:1}.plan-step small{font-size:11px;color:#657e73}.plan-count{text-align:center;font-size:13px;line-height:1.5;color:#5a7064;margin:12px 0}.route-controls{display:flex;gap:10px;justify-content:center;margin:16px 0}.route-controls button{font:inherit;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:65px;min-height:65px;padding:6px;background:#e7f3fa;border:2px solid #a5c9df;border-radius:14px;color:#24455a;cursor:pointer}.route-controls span{font-size:30px;line-height:1}.route-controls small{font-size:12px}.route-controls button:focus-visible{outline:3px solid #355b93;outline-offset:3px}.route-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.route-actions button{min-height:48px}.route-controls button:disabled{opacity:.5!important}.advanced-board .feedback{line-height:1.6;margin:18px 0}.advanced-board>.clue-list{padding-top:12px}.advanced-board>#advanced-next{margin-top:16px}
@media(max-width:760px){.clue-board{grid-template-columns:repeat(3,minmax(0,1fr));padding:8px;gap:8px}.clue-tile{min-height:105px;border-width:2px;padding:10px 4px}.clue-symbol{font-size:38px}.clue-list{gap:10px}.clue-list .clue-tile{width:92px}.clue-color-name{font-size:10px}.clue-dots{font-size:14px;letter-spacing:3px}.route-map{padding:8px;gap:4px}.route-cell{font-size:30px;border-radius:8px}.route-controls{gap:8px}.route-controls button{min-width:50px;min-height:58px}.route-actions{gap:8px}.route-actions button{font-size:13px;padding:10px}.advanced-instruction{font-size:15px}.route-plan{gap:7px;padding:12px 8px}.plan-step{font-size:24px}}
@media(max-width:359px){.clue-symbol{font-size:32px}.clue-tile{min-height:98px}.clue-list .clue-tile{width:90px}.route-cell{font-size:24px}.route-cell small{font-size:10px}.route-controls button{min-width:46px}.route-controls small{font-size:10px}}
.season-game-card{position:relative}.advanced-tag{position:absolute;top:12px;right:14px;border-radius:20px;padding:4px 10px;background:#5d488a;color:white;font-size:11px;font-weight:800}.season-game-card[data-season-game="hunt"],.season-game-card[data-season-game="logic"]{border-color:#c6b3e4;background:linear-gradient(135deg,#fff,#f1eaff);box-shadow:0 5px 0 #c6b3e4}
/* Visual matrix deduction and picture equations. */
.thinking-matrix{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;background:#edf3e6;border:2px solid #cad9be;border-radius:22px;margin:20px auto;max-width:460px}.thinking-matrix .clue-tile{min-height:108px}.matrix-missing{display:flex;align-items:center;justify-content:center;min-height:108px;border:3px dashed #ba9026;background:#fff3bf;border-radius:18px;font-size:58px;color:#70531e;font-weight:800}.matrix-solved{outline:3px solid #38834c;outline-offset:-5px}.thinking-choices{display:grid;gap:12px;margin:22px 0}.thinking-choices.matrix{grid-template-columns:repeat(2,minmax(0,1fr));max-width:460px;margin-left:auto;margin-right:auto}.thinking-choices button{cursor:pointer}.thinking-choices button:disabled{cursor:default}.thinking-choices button:focus-visible{outline:3px solid #386398;outline-offset:4px}.thinking-choices.balance{grid-template-columns:repeat(4,minmax(0,1fr))}.number-choice{font:inherit;font-size:28px;font-weight:800;color:#244e60;background:#eef5ff;border:3px solid #abc9df;border-radius:18px;min-height:76px;padding:8px}.equations{display:grid;gap:14px;margin:22px 0}.picture-equation{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f1f7ea;border:2px solid #d1dfbf;border-radius:20px;padding:18px 20px;font-size:30px;min-width:0}.equation-left{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;min-width:0}.equation-picture{font-size:52px;line-height:1.2}.equation-plus{font-size:26px;color:#3e6452}.picture-equation>strong{font-size:34px;min-width:44px;text-align:center;color:#345648;flex:none}.equation-question{background:#fff4ce;border-color:#dfc780}.thinking-hint{background:#fff3cf;padding:14px 16px;border-radius:16px;color:#674d24;line-height:1.6}.season-game-card[data-season-game="matrix"],.season-game-card[data-season-game="balance"]{border-color:#c6b3e4;background:linear-gradient(135deg,#fff,#f1eaff);box-shadow:0 5px 0 #c6b3e4}
@media(max-width:760px){.thinking-matrix{gap:7px;padding:8px}.thinking-matrix .clue-tile,.matrix-missing{min-height:100px}.matrix-missing{font-size:48px;border-width:2px}.thinking-choices{gap:10px}.picture-equation{font-size:23px;padding:14px 12px;gap:8px}.equation-left{gap:6px}.equation-picture{font-size:36px}.equation-plus{font-size:18px}.picture-equation>strong{font-size:28px;min-width:32px}.number-choice{min-height:64px;font-size:25px}.thinking-choices.balance{gap:8px}}
@media(max-width:359px){.thinking-matrix{gap:5px;padding:6px}.thinking-matrix .clue-tile,.matrix-missing{min-height:92px}.thinking-matrix .clue-symbol{font-size:30px}.thinking-matrix .clue-color-name{font-size:9px}.picture-equation{font-size:19px;gap:6px;padding:12px 10px}.equation-left{gap:4px}.equation-picture{font-size:28px}.equation-plus{font-size:15px}.picture-equation>strong{font-size:25px;min-width:28px}.number-choice{font-size:23px;border-width:2px}}
