:root{--bg:#faf8f1;--paper:#fffdf8;--ink:#163f49;--teal:#167d76;--teal-dark:#11645e;--mint:#e4f0e6;--peach:#fce7d8;--gold:#efbf57;--line:#e5e8df;--muted:#617a7f;--radius:22px;font-size:16px;color-scheme:light}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Omnes,'Nunito','Avenir Next Rounded','Avenir Next',ui-rounded,system-ui,-apple-system,sans-serif;line-height:1.5;-webkit-tap-highlight-color:transparent}body.large-text{font-size:1.125rem}body.high-contrast{--ink:#092e38;--muted:#2d4b51;--teal:#075c53;--line:#72948a;--bg:#fff;--paper:#fff}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.55}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #d7854d;outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.15;letter-spacing:-.035em;font-weight:750}h1{font-size:2rem}h2{font-size:1.65rem}h3{font-size:1.15rem}svg{display:block;max-width:100%;max-height:100%}button svg{pointer-events:none}button{border:0}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-80px;left:20px;background:#fff;padding:12px;z-index:100}.skip-link:focus{top:8px}
.app-shell{max-width:1040px;margin:auto;min-height:100dvh;padding:0 24px 120px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:106px;padding:25px 0}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;width:max-content;max-width:100%}.brand-mark{width:47px;height:47px;flex:none}.brand strong{display:block;font-size:1.23rem;letter-spacing:-.035em;line-height:1.2}.brand span{font-size:.78rem;display:block;margin-top:3px}.icon-btn{min-width:44px;min-height:44px;padding:10px;border:1px solid transparent;border-radius:14px;background:#f0f1eb;font-weight:650;display:inline-flex;align-items:center;justify-content:center}.icon-btn svg{width:22px;height:22px}.top-actions{display:flex;gap:7px}.pill-label{display:inline-flex;align-items:center;gap:7px;padding:6px 13px;border-radius:20px;background:var(--mint);font-size:.78rem;color:var(--teal-dark);font-weight:600}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.69rem;font-weight:750;color:var(--teal);margin-bottom:12px}.muted,.game-note{color:var(--muted)}.small-print{font-size:.75rem;color:var(--muted);line-height:1.55}.home-shell{max-width:820px;display:flex;flex-direction:column;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.home-partner{display:flex;justify-content:flex-end;margin-top:auto;padding-top:16px}.home-partner-logo{display:block;width:clamp(108px,15vw,132px);height:auto;max-width:100%}.welcome{padding:14px 0 20px;text-align:center}.hero-art{max-width:360px;margin:0 auto 16px;height:auto}.welcome h1{font-size:2.8rem;margin-bottom:12px}.welcome>.lead{font-size:1.1rem;max-width:370px;margin:0 auto;color:#46626a}.universe-choices{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:30px auto 25px;max-width:680px}.universe-card{display:flex;align-items:center;gap:16px;text-align:left;padding:24px 22px;border-radius:var(--radius);position:relative;transition:transform .16s,box-shadow .16s}.universe-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px #1949460d}.universe-card.adult{background:var(--mint)}.universe-card.child{background:var(--peach)}.universe-card strong{display:block;font-size:1.2rem;font-weight:750;letter-spacing:-.03em}.universe-card small{display:block;font-size:.85rem;margin-top:4px;color:#47666a}.universe-card .universe-icon{width:68px;height:68px;flex:none}.universe-card .chevron{width:19px;height:19px;margin-left:auto;flex:none}.welcome-footer{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:26px}.text-btn{background:none;border:0;padding:8px 0;display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:.83rem;text-decoration:underline;text-underline-offset:4px}.text-btn svg{width:17px;height:17px}.welcome-note{margin:24px auto 0;max-width:350px;font-size:.8rem;color:var(--muted)}
.section-top{display:flex;justify-content:space-between;align-items:start;gap:15px;margin:10px 0 24px}.section-top p{margin-top:8px;color:var(--muted);font-size:.96rem}.child-mascot{width:77px;height:77px;flex:none}.back-link{display:inline-flex;align-items:center;gap:5px;background:none;font-size:.8rem;min-height:44px;padding:6px 0;text-decoration:none}.back-link svg{width:19px;height:19px}.universe-switch{margin-top:-12px;margin-bottom:13px;color:var(--muted)}.age-tabs{display:flex;gap:8px;background:#eeeFE7;padding:5px;border-radius:30px;max-width:440px;margin-bottom:23px}.age-tabs button{flex:1;border-radius:25px;padding:9px 5px;background:transparent;color:#47646a;font-size:.87rem;font-weight:650}.age-tabs button.active{background:var(--teal);color:#fff}.resume-card{display:flex;align-items:center;width:100%;gap:18px;padding:20px 24px;background:linear-gradient(105deg,#e7f1e6,#f0f4e9);border:1px solid #dce8db;border-radius:20px;text-align:left;margin-bottom:24px}.resume-art{width:63px;height:52px;flex:none}.resume-card strong{font-size:1.03rem;display:block}.resume-card small{display:block;color:#506d70;margin-top:3px;font-size:.83rem}.resume-card>.arrow{width:20px;margin-left:auto}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.game-card{position:relative;min-width:0;text-align:center;background:var(--paper);border:1px solid #e9e6d8;border-radius:22px;padding:20px 10px 23px;box-shadow:0 4px 14px #173b3c04;transition:transform .16s,box-shadow .16s}.game-card:hover{transform:translateY(-3px);box-shadow:0 8px 22px #2347490c;border-color:#c8dcd0}.game-art{width:140px;height:98px;margin:0 auto 12px}.game-card h3{font-size:1.15rem}.game-card p{margin-top:7px;font-size:.78rem;color:#577279}.game-card .dot{position:absolute;right:17px;top:17px;width:7px;height:7px;border-radius:50%;background:#78a28d}.catalog-foot{display:flex;gap:8px;align-items:center;justify-content:center;margin:27px 0;color:var(--muted);font-size:.78rem}.catalog-foot svg{width:15px;height:15px}.bottom-nav{position:fixed;z-index:20;bottom:16px;left:50%;transform:translateX(-50%);display:flex;padding:5px 9px calc(5px + env(safe-area-inset-bottom));gap:8px;border:1px solid #e2e7dc;border-radius:22px;background:#fffdf8f7;box-shadow:0 5px 30px #1f4b4112;backdrop-filter:blur(16px);width:min(420px,calc(100% - 36px))}.bottom-nav a{flex:1;padding:10px 12px;display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;color:#6c8181;font-size:.78rem;border-radius:16px}.bottom-nav svg{width:22px;height:22px}.bottom-nav a.active{background:var(--mint);color:var(--teal-dark);font-weight:700}.part-list{display:grid;gap:13px;margin:20px 0}.part-card{padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:20px;display:flex;align-items:center;gap:14px}.part-card .part-art{width:72px;height:60px;flex:none}.part-card .part-body{flex:1;min-width:0}.part-card h3{font-size:1.02rem}.part-card p{font-size:.8rem;color:var(--muted);margin-top:5px}.part-card .btn{min-height:42px;padding:8px 13px;font-size:.78rem}.empty-state{text-align:center;padding:60px 20px;border:1px dashed #d4dfd3;border-radius:24px;background:#ffffff50}.empty-state>svg{width:48px;height:48px;margin:0 auto 20px;color:#7ea195}.empty-state p{color:var(--muted);margin:13px auto 25px;max-width:320px}.completed-list{margin:25px 0}.completed-list summary{font-weight:650;cursor:pointer;min-height:44px;padding:10px 0}
.play-shell{max-width:600px;padding-bottom:35px}.game-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:22px 0 15px}.game-heading{text-align:center;margin:5px 0 19px}.game-heading h1{font-size:1.9rem}.level-tabs{display:flex;gap:9px;margin:0 auto 20px}.level-tabs button{flex:1;border-radius:24px;background:#eef0e9;min-height:42px;padding:8px 4px;font-size:.85rem}.level-tabs button.active{background:var(--teal);color:#fff;font-weight:650}.game-body{min-height:280px}.game-intro{text-align:center;margin:12px 0 18px;line-height:1.4;font-size:1rem}.game-status{text-align:center;margin:12px 0;font-size:.93rem;font-weight:650}.game-note{text-align:center;font-size:.8rem;line-height:1.5;margin:15px 0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #dbe2dc;background:#f9faf5;padding:12px 17px;min-height:46px;border-radius:13px;line-height:1.3;font-weight:600;font-size:.87rem;text-decoration:none}.btn svg{width:21px;height:21px}.btn:hover{background:#edf1e8}.btn.primary{background:var(--teal);border-color:var(--teal);color:#fff}.btn.primary:hover{background:var(--teal-dark)}.btn.small{min-height:40px;padding:8px 13px;font-size:.78rem}.btn.full{width:100%}.btn.danger{color:#a14936}.action-row{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin:16px 0}.game-tools{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:15px;margin-top:25px}.pack-status{font-size:.75rem;color:var(--muted)}.save-status{display:flex;align-items:center;justify-content:center;gap:6px;font-size:.73rem;color:var(--muted);margin:18px 0}.save-status svg{width:15px;height:15px;color:#77a592}.win-panel{margin:22px 0 8px;border-radius:22px;background:#e4f0e2;padding:24px;text-align:center;border:1px solid #caddc9}.win-panel h2{font-size:1.6rem;margin:10px 0}.win-panel .medal{width:42px;height:42px;margin:auto;color:var(--teal)}.win-panel p{color:#4d6b61;font-size:.9rem}.win-panel .action-row{margin-bottom:0}.board{max-width:100%;overflow:hidden}.error{color:#a84237}.success{color:#216c50}.toast{position:fixed;bottom:110px;left:50%;transform:translate(-50%,20px);background:#193f42;color:white;padding:13px 20px;border-radius:16px;font-size:.9rem;max-width:calc(100% - 32px);width:max-content;box-shadow:0 4px 20px #1c3c3a20;z-index:70;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{padding:26px;max-width:440px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;border:1px solid #d9e2d6;border-radius:24px;background:var(--paper);color:var(--ink);box-shadow:0 20px 80px #163d4125}dialog::backdrop{background:#173f4965;backdrop-filter:blur(3px)}.modal-header{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px}.modal-header h2{font-size:1.5rem}.modal-copy{color:#4a676b;line-height:1.7}.setting-row{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.setting-row label{font-size:.95rem}.setting-row small{display:block;color:var(--muted);font-size:.76rem;margin-top:3px}.setting-row input{appearance:none;width:47px;height:27px;background:#cfdbd1;border-radius:25px;position:relative;flex:none;cursor:pointer}.setting-row input:before{content:'';position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:white;transition:left .15s}.setting-row input:checked{background:var(--teal)}.setting-row input:checked:before{left:23px}.modal-close{min-width:40px;min-height:40px}.loading{min-height:70vh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:25px;text-align:center;gap:15px}.loading h1{font-size:1.5rem}.loading-flower{width:50px;height:50px;background:conic-gradient(#e88d75 0 25%,#ebbb53 0 50%,#277b74 0);border-radius:12px 25px 12px 25px}.footer-note{margin-top:18px;text-align:center}.offline-dot{width:6px;height:6px;background:#78a28d;border-radius:50%;display:inline-block;margin-right:5px}
@media(min-width:760px){.catalog-shell .topbar{padding-bottom:35px;min-height:120px}.catalog-shell main{max-width:820px;margin:auto}.section-top h1{font-size:2.3rem}.game-grid{gap:22px}.game-card{padding-top:25px;padding-bottom:27px}.game-art{height:105px;width:160px}.resume-card{max-width:100%}.home-shell .welcome{padding-top:0}.hero-art{max-width:390px}.welcome h1{font-size:3rem}}
@media(max-width:600px){.app-shell{padding-left:20px;padding-right:20px}.topbar{min-height:93px;padding:22px 0}.brand-mark{width:40px;height:40px}.brand strong{font-size:1.09rem}.brand span{font-size:.72rem}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-art{height:84px;width:130px;max-width:100%;margin-bottom:10px}.game-card{padding:17px 8px 18px;border-radius:18px}.game-card h3{font-size:1.02rem}.game-card p{font-size:.7rem;line-height:1.4;margin-top:5px}.universe-choices{grid-template-columns:1fr;gap:13px;margin-top:26px}.universe-card{padding:20px}.universe-card .universe-icon{width:58px;height:58px}.welcome{padding-top:0}.hero-art{max-width:295px;margin-bottom:10px}.welcome h1{font-size:2.5rem}.welcome>.lead{font-size:1.05rem}.welcome-note{font-size:.74rem;margin-top:17px}.welcome-footer{margin-top:17px;gap:10px}.section-top h1{font-size:1.8rem}.section-top{margin-bottom:20px}.resume-card{padding:17px 15px;gap:12px}.resume-card strong{font-size:.95rem}.resume-art{width:51px;height:48px}.play-shell{padding-left:16px;padding-right:16px}.game-topbar{padding-top:15px}.game-heading h1{font-size:1.65rem}.game-tools{margin-top:21px}.part-card{padding:15px 12px;gap:9px}.part-card .part-art{width:50px;height:48px}.part-card .btn{padding:8px 10px}.bottom-nav{bottom:9px}.child-mascot{width:62px;height:62px}}
@media(max-width:360px){.app-shell{padding-left:13px;padding-right:13px}.brand strong{font-size:.95rem}.brand span{font-size:.63rem}.brand-mark{width:35px;height:35px}.game-card h3{font-size:.9rem}.game-card p{font-size:.67rem}.game-art{height:75px}.part-card{flex-wrap:wrap}.part-card .btn{margin-left:auto}.topbar{gap:6px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

html.large-text{font-size:18px}body.large-text{font-size:1rem}
.photo-play-shell .level-tabs{max-width:460px}
@media(min-width:760px){.photo-play-shell{max-width:1160px}.photo-play-shell .game-tools,.photo-play-shell .win-panel{max-width:720px;margin-left:auto;margin-right:auto}.photo-play-shell .game-body{max-width:none}}
