body{background:#7ddff7 url('../assets/landscape.png') center/cover fixed no-repeat;display:flex;flex-direction:column;height:100vh;height:100dvh;color:#124280}.source-art{display:block;width:100%;height:100%;pointer-events:none}.app-header{height:auto;min-height:92px;flex-shrink:0;padding:10px 18px;gap:14px;flex-wrap:wrap;background:#ffffffbc;border:0;border-bottom:3px solid white;box-shadow:0 5px 0 #368faf22;z-index:20}.brand-section{background:white;border-radius:40px;padding:5px 16px 5px 6px;box-shadow:0 5px 0 #367eac25;gap:9px}.logo-badge{background:white!important;width:67px;height:67px;box-shadow:none!important;padding:0!important}.brand-title{font-family:'Comic Sans MS','Segoe UI',sans-serif;font-size:25px;font-weight:900;color:#df551e;white-space:nowrap}.brand-title span{color:#1664ce}.author{display:block;text-align:center;color:#4d37b0;background:#ede1ff;border-radius:15px;font-size:11px;font-weight:800;padding:2px 8px}.grade-tabs{gap:8px}.grade-tab-btn,.hero-grade-pill{border:3px solid white;border-radius:20px!important;box-shadow:0 5px 0 #ccaa45;background:linear-gradient(#fff372,#ffd42d);color:#6d3f13;font-weight:900}.grade-tab-btn:nth-child(2),.hero-grade-pill:nth-child(2){background:linear-gradient(#71f57b,#12d348);box-shadow:0 5px 0 #1cb553;color:#10491e}.grade-tab-btn:nth-child(3),.hero-grade-pill:nth-child(3){background:linear-gradient(#62dfff,#0097ff);box-shadow:0 5px 0 #087ec5;color:#00325b}.grade-tab-btn.active,.hero-grade-pill.active{outline:3px solid #6632ba;outline-offset:3px;transform:translateY(-2px)}.header-actions{gap:8px}.action-btn{border:3px solid white;border-radius:19px;background:linear-gradient(#d991ff,#8558ed);box-shadow:0 4px 0 #6d45bc;color:white;min-width:48px}.action-btn#btn-home,.action-btn#btn-sound,.action-btn#btn-fullscreen{padding:0;border:0;background:none;box-shadow:none;overflow:hidden}.action-btn#btn-home{width:133px;height:55px}.action-btn#btn-sound,.action-btn#btn-fullscreen{width:52px;height:57px}.sound-off{filter:grayscale(1);position:relative}.sound-off:after{content:'×';position:absolute;inset:0;display:grid;place-items:center;color:#8a1235;font:bold 52px sans-serif;text-shadow:0 1px white}.cursor-skin-picker{background:white;border-radius:20px;border:2px solid #c7eeff}.cursor-skin-opt{min-width:34px}#game-stage{height:auto;flex:1;min-height:0;width:100%;overflow:auto;padding:20px;background:transparent}.lobby-screen{max-width:1450px;margin:auto}.lobby-hero-banner{background:linear-gradient(135deg,#fffef2ed,#e0f8fff2);border:5px solid white;border-radius:35px;box-shadow:0 7px 0 #4da6c83a;padding:23px 30px;gap:24px;overflow:visible}.hero-mascot-box{background:white;border:4px solid #ffde4e;border-radius:50%;width:150px;height:150px;flex-shrink:0;box-shadow:0 5px 0 #e1ba444d}.hero-mascot-emoji{width:105px;height:100px;font-size:0}.hero-mascot-stars{font-size:20px}.hero-title{font-family:'Comic Sans MS','Segoe UI',sans-serif;font-size:clamp(26px,3vw,45px);font-weight:900;color:#0843ac;text-shadow:0 3px white;margin-bottom:10px}.hero-subtitle{color:#144d7f;font-size:18px}.hero-grade-pills{margin-top:16px;gap:12px}.games-grid{gap:22px;margin-top:24px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.game-card{border:5px solid white;border-radius:33px;padding:22px 18px 16px;background:linear-gradient(#effcff,#d4f4ff);box-shadow:0 8px 0 #359cd444,0 12px 22px #184b7222;overflow:hidden}.game-card:nth-child(3n+1){background:linear-gradient(#fffef1,#fff0b2)}.game-card:nth-child(3n+2){background:linear-gradient(#f4fff1,#d3ffd8)}.game-card-icon-bubble{background:#ffffffc9;border:4px solid white;border-radius:30px;width:110px;height:110px;box-shadow:0 5px 0 #83bdd528}.game-card-icon{font-size:63px}.game-card-title{font-size:25px;color:#0b4398;font-family:'Comic Sans MS','Segoe UI',sans-serif}.game-card-desc{color:#275578;font-size:16px}.game-card-badge{border:2px solid white;background:#ffffffd9;color:#714dad;border-radius:14px}.game-card-play-btn{display:block;width:100%;height:auto;aspect-ratio:400/78;background:none!important;padding:0!important;border:0!important;box-shadow:none!important;border-radius:36px;overflow:hidden;margin-top:16px}.game-card-play-btn:hover{filter:brightness(1.08);transform:translateY(-2px)}.game-instruction{background:#fffffff2;border:3px solid #fff;border-radius:22px;box-shadow:0 4px 0 #51a2c43b;color:#123f81}.game-counter{border:3px solid white;border-radius:20px;background:#fff2b5;color:#6b4a17}.pill-btn{border:3px solid white;border-radius:20px;box-shadow:0 4px 0 #aa8bcf}.game-header{gap:12px}button:focus-visible{outline:4px solid #5f2cae;outline-offset:4px}
@media(max-width:1000px){.app-header{justify-content:center}.grade-tabs{order:3;flex-basis:100%;justify-content:center}.brand-title{font-size:22px}#game-stage{padding:14px}.hero-title{font-size:29px}.hero-grade-pill{font-size:13px}.hero-mascot-box{width:110px;height:110px}.hero-mascot-emoji{width:78px;height:73px}}@media(max-width:650px){.app-header{padding:8px;gap:8px}.brand-section{padding:3px 12px 3px 3px}.logo-badge{width:48px;height:48px}.brand-title{font-size:21px}.header-actions{flex-wrap:wrap;justify-content:center}.grade-tabs{flex-wrap:wrap}.grade-tab-btn{font-size:12px;padding:9px}.cursor-skin-picker{display:none}.lobby-hero-banner{padding:17px;flex-direction:column;text-align:center;gap:8px}.hero-grade-pills{flex-wrap:wrap;justify-content:center}.hero-mascot-box{display:none}.hero-subtitle{font-size:16px}.games-grid{grid-template-columns:1fr;max-width:440px;margin:20px auto}.game-card{padding:18px}.action-btn#btn-home{width:106px;height:44px}.action-btn#btn-sound,.action-btn#btn-fullscreen{width:43px;height:47px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* A focused, full-window play area with one clear way back to the menu. */
.new-brand{display:flex;flex-direction:column;gap:0;padding:3px 16px 7px;border:3px solid #fff; background:linear-gradient(135deg,#fff,#e6faff);}
.mundo-logo{display:block;width:330px;max-width:75vw;height:100px;object-fit:contain}
.new-brand .author{margin-top:-3px;width:90%}
.exit-game[hidden]{display:none!important}
.exit-game{position:fixed;right:10px;top:7px;z-index:10000;width:64px;height:64px;border:3px solid white;border-radius:20px;background:linear-gradient(#ff6870,#e51e36);color:white;box-shadow:0 4px 0 #9e1326,0 5px 12px #4d172b40;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;touch-action:manipulation;font-family:inherit;}
.exit-game span{font:bold 43px/34px Arial,sans-serif}.exit-game small{font-size:12px;line-height:15px;font-weight:800}.exit-game:hover{filter:brightness(1.12)}.exit-game:active{transform:translateY(3px)}
body.game-active .app-header{display:none}
body.game-active #game-stage{padding:0;margin:0;max-width:none;width:100%;height:100vh;height:100dvh;flex:none;border:0;border-radius:0;overflow:auto;}
body.game-active .game-header{padding:6px 88px 6px 14px;gap:10px;height:78px;box-sizing:border-box;}
body.game-active .game-instruction{font-size:clamp(14px,1.6vw,22px);gap:6px;border:0;box-shadow:none;min-width:0;}
body.game-active .game-counter{font-size:clamp(14px,1.5vw,22px);padding:5px 10px;flex-shrink:0;}
body.game-active .stage-pills{gap:5px;flex-wrap:wrap}
body.game-active .pill-btn{font-size:clamp(12px,1.3vw,18px);padding:5px 10px;}
@media(max-width:700px){.mundo-logo{width:280px;height:85px}body.game-active .game-header{gap:4px}body.game-active .game-instruction{display:block;font-size:13px}body.game-active .game-counter{font-size:12px;padding:3px 6px}body.game-active .pill-btn{font-size:11px;padding:3px 6px}}

/* Illustrated activity entrances and the new lion identity. */
.brand-lockup{display:flex;align-items:center;gap:8px}.lion-logo{width:94px;height:94px;object-fit:contain}.brand-title{font-size:29px;line-height:1.03;text-align:left;text-shadow:0 2px 0 #fff}.brand-title span{display:block;font-size:31px;color:#086dcc}.new-brand{padding:0 18px 6px 6px}.new-brand .author{margin:0 0 0 30px}.hero-lion{width:100%;height:100%;object-fit:contain}.hero-mascot-emoji{width:132px;height:132px}.hero-mascot-stars{display:none}
.quit-app{display:flex;align-items:center;justify-content:center;gap:7px;min-height:50px;padding:7px 12px;border:3px solid #fff;border-radius:18px;background:linear-gradient(#ff6973,#df2347);box-shadow:0 4px 0 #a71a36;color:white;font:800 14px 'Segoe UI',sans-serif;cursor:pointer}.quit-app svg{width:30px;height:30px;flex-shrink:0}.quit-app span{max-width:75px;line-height:1.1}.quit-app:hover{filter:brightness(1.1)}#close-help{margin:10px;padding:14px;border-radius:15px;background:white;color:#a71532;font-weight:700}
.games-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;align-items:stretch}.illustrated-card{font-family:inherit;text-align:center;cursor:pointer;position:relative;display:flex;flex-direction:column;align-items:stretch;padding:0 0 13px;border:5px solid #fff;border-radius:30px;overflow:hidden;transition:transform .18s,box-shadow .18s;min-width:0}.illustrated-card:hover{transform:translateY(-7px);box-shadow:0 10px 0 #247cc342,0 18px 28px #14447033}.illustrated-card:active{transform:translateY(2px)}.activity-picture{display:block;flex-shrink:0;width:100%;aspect-ratio:1;background-image:url('../assets/activity-atlas.png');background-size:500% 300%;background-position:var(--tile-x) var(--tile-y);border-bottom:4px solid white}.illustrated-card .game-card-info{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;padding:16px 10px 10px;flex:1}.activity-number{position:absolute;top:-22px;left:10px;display:grid;place-items:center;width:38px;height:38px;border:3px solid white;border-radius:50%;background:#7d37d9;color:white;font-size:20px;font-weight:900;box-shadow:0 3px 0 #50329c33}.illustrated-card .game-card-title{display:block;font-size:clamp(18px,1.65vw,25px);line-height:1.15;margin:4px 0 0}.illustrated-card .game-card-desc{display:block;font-size:14px;line-height:1.35;margin:0}.illustrated-play{display:flex;align-items:center;justify-content:center;gap:18px;margin:0 12px;padding:10px 12px;border:3px solid white;border-radius:22px;background:linear-gradient(#ffed65,#ffbf0a);box-shadow:0 4px 0 #dc940b;color:#784200;font-size:23px;font-weight:900}.illustrated-card:nth-child(3n+2) .illustrated-play{background:linear-gradient(#60ed86,#0dc34f);box-shadow:0 4px 0 #109b48;color:#074729}.illustrated-card:nth-child(3n+3) .illustrated-play{background:linear-gradient(#5cddff,#0b9df4);box-shadow:0 4px 0 #1378ca;color:#003c77}
@media(max-width:1100px){.games-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.illustrated-card .game-card-title{font-size:23px}}@media(max-width:700px){.games-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;gap:12px}.illustrated-card .game-card-title{font-size:19px}.illustrated-card .game-card-desc{font-size:13px}.lion-logo{width:75px;height:75px}.brand-title,.brand-title span{font-size:26px}}@media(max-width:380px){.games-grid{grid-template-columns:1fr}}
.activity-picture{background-image:none;height:auto;pointer-events:none}
