/* Tablet-first layout; browser zoom stays enabled. */
html{-webkit-text-size-adjust:100%;scroll-padding-top:20px}body{min-width:0}button,input,select,summary{touch-action:manipulation}button,input,select{min-height:48px}button{min-width:48px;-webkit-tap-highlight-color:transparent}button:active:not(:disabled){filter:brightness(.97)}input,select{font-size:16px}button,select,h1,h2,h3,p,strong{overflow-wrap:anywhere}button img{flex-shrink:0;max-width:100%}main>*{min-width:0}.settings-panel{max-width:1100px;margin:0 auto 12px;padding:0 28px;font-size:15px;color:#52685f;border-bottom:1px solid #e2e8dc}.settings-panel>summary{display:flex;align-items:center;gap:8px;min-height:48px;padding:10px 0;font-weight:bold}.settings-panel>summary:after{content:'＋';margin-left:auto;font-size:22px}.settings-panel[open]>summary:after{content:'−'}.settings-panel .settings{padding:10px 0 20px;justify-content:flex-start;gap:12px}.settings-panel .volume-label{display:flex!important}.settings-panel .settings label{font-size:14px}.settings-panel .settings input[type=range]{height:48px;width:120px}.settings-panel .settings button{min-height:48px}.settings-panel .voice-status{flex-basis:100%;max-width:none;order:5}summary:focus-visible,select:focus-visible{outline:3px solid #d78c24;outline-offset:3px}header{padding-top:max(18px,env(safe-area-inset-top));padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right))}main{padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right))}.site-disclaimer{padding-bottom:max(30px,env(safe-area-inset-bottom))}.game-head,.quiz-top{flex-wrap:wrap}.game-panel,.qcard{min-width:0}.answer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.quiz-choice{min-width:0;min-height:96px}.answers{grid-template-columns:repeat(2,minmax(0,1fr))}.answer{min-width:0;min-height:72px}.match-board{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.match-card{min-width:0;min-height:112px}.sort-bin,.sort-item{min-height:100px}.activity-tile .activity-buttons button{flex:1}.brand-card,.learn-card,.activity-tile{min-width:0}.atlas-layout>div,.atlas-sidebar{min-width:0}.atlas-frame svg{touch-action:none;user-select:none;-webkit-user-select:none}.atlas-zoom button,.atlas-pan button{min-width:52px;min-height:52px}.atlas-pan{gap:12px}.atlas-place{min-height:64px}.atlas-sidebar input{min-height:48px}#atlasList{-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;scroll-padding:8px}.atlas-overlay{padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));height:100vh;height:100dvh;-webkit-backdrop-filter:blur(3px)}.atlas-card{max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-top:60px}.atlas-close{min-width:52px;min-height:52px}.atlas-card .activity-buttons button{min-height:52px}.atlas-facts strong{font-size:23px;line-height:1.5}body:has(.atlas-overlay){overflow:hidden}
@media(min-width:700px) and (max-width:1199px){.portal-intro{padding:14px 0 25px}.portal-intro h1{font-size:48px}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.category-card{display:block;min-height:290px;padding:22px 18px}.category-card .big-picture{font-size:74px;padding:10px 0 18px}.category-card h2{font-size:26px;line-height:1.3}.category-card .go{font-size:14px;gap:12px;flex-wrap:wrap;margin-top:20px}.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.activity-tile{padding:24px;min-height:175px}.activity-tile h3{font-size:23px}.game-panel{padding:24px;max-width:900px}.game-panel h2,.qcard h2{font-size:30px}.quiz-choice{font-size:24px;padding:22px 14px}.answer{font-size:22px}.match-card{font-size:23px;min-height:118px;padding:18px}.visual-zone{padding:22px;min-height:155px}.count-object{font-size:36px}.learn-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.intro-bar h1{font-size:36px}}
@media(min-width:700px) and (max-width:999px){.atlas-layout{grid-template-columns:1fr}.atlas-frame svg{min-height:320px}.atlas-sidebar{padding:20px}#atlasList{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:280px;gap:12px}.atlas-place{font-size:17px}.atlas-controls{gap:14px}.atlas-controls select{flex:1;min-width:210px}}
@media(min-width:1000px){.atlas-layout{grid-template-columns:minmax(0,1fr) 270px}.atlas-frame svg{min-height:320px}#atlasList{display:flex;max-height:420px}.atlas-card{width:min(680px,100%)}}
@media(max-width:699px){header{flex-wrap:wrap;gap:12px;padding:14px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left))}header .logo{font-size:17px}header nav{margin-left:auto;gap:8px}header nav button{font-size:14px;padding:10px 14px}.settings-panel{padding:0 18px}.settings-panel .settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.settings-panel .settings label{flex-wrap:wrap;gap:6px;min-width:0}.settings-panel .settings label select{width:100%;max-width:100%}.settings-panel .voice-status{grid-column:1/-1}.settings-panel .volume-label{grid-column:1/-1}.settings-panel #femaleVoiceChoice{max-width:100%}main{margin-top:8px;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left))}.portal-intro{padding:15px 0 24px}.portal-intro h1{font-size:36px}.category-card{grid-template-columns:80px minmax(0,1fr);padding:20px;min-height:165px}.category-card .big-picture{font-size:58px}.category-card h2{font-size:25px}.category-card .go{flex-wrap:wrap;gap:8px;font-size:13px}.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.activity-tile{padding:17px 14px}.activity-tile h3{font-size:20px}.activity-tile p{font-size:15px}.game-panel{padding:20px 15px;margin:12px auto}.game-panel h2{font-size:25px}.game-head{gap:12px}.game-head span{font-size:15px}.answer-grid,.answers{grid-template-columns:1fr;gap:12px}.quiz-choice{flex-direction:row;font-size:22px;min-height:76px;padding:14px;gap:14px}.quiz-choice .brand-logo{width:105px;height:72px}.answer{font-size:21px;min-height:72px;padding:16px}.visual-zone{padding:14px;gap:10px;font-size:35px;min-height:120px}.count-group{max-width:100%;gap:7px}.count-object{font-size:31px;min-height:44px;min-width:44px}.match-board{gap:12px}.match-card{min-height:110px;padding:14px 8px;font-size:18px;gap:8px}.match-card .flag-img{width:65px;height:48px}.match-card .brand-logo{width:85px;height:58px}.pair-count{gap:10px}.pair-count button{flex:1;padding:12px 6px}.activity-buttons{gap:12px}.game-panel>.activity-buttons{justify-content:center}.game-panel>.activity-buttons button{flex:1 1 130px}.learn-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.learn-card,.brand-card{padding:18px 12px}.brand-card h3{font-size:20px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat-tile{padding:20px 14px}.stat-tile strong{font-size:32px}.atlas-controls{display:grid;grid-template-columns:1fr;gap:12px}.atlas-tabs button{flex:1;min-height:52px}.atlas-tabs{width:100%}.atlas-controls select{width:100%;min-height:52px}.atlas-frame svg{min-height:240px}.atlas-mission{font-size:21px}.atlas-sidebar{padding:16px}#atlasList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:300px}.atlas-place{font-size:16px;padding:12px 10px;gap:9px}.atlas-place img{width:36px;height:27px}.atlas-pan button{flex:1 1 52px}.atlas-pan button:nth-last-child(-n+2){flex-basis:140px}.atlas-card{padding:60px 18px 20px;border-radius:24px}.atlas-card h2{font-size:28px}.atlas-facts{grid-template-columns:1fr}.atlas-facts strong{font-size:23px}.atlas-short{font-size:21px}.atlas-card .activity-buttons button:first-child{flex-basis:100%}.atlas-help{font-size:15px}}
@media(max-width:359px){.activity-grid{grid-template-columns:1fr}.learn-grid{grid-template-columns:1fr}.category-card{grid-template-columns:65px minmax(0,1fr);padding:15px}.category-card .big-picture{font-size:48px}.match-card{font-size:16px}.stat-grid{grid-template-columns:1fr}}
@media(hover:none){.category-card:hover,.level:hover{transform:none}.quiz-choice:hover,.answer:hover{border-color:#e2e8dc}.quiz-choice.correct:hover{border-color:#76ab82}.answer.correct:hover{border-color:#65a97a}.map-country:hover{stroke:#fff;stroke-width:.6}.map-country:focus-visible{stroke:#285f50;stroke-width:2}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.atlas-card{animation:none}}
.number-tile{max-width:100%;overflow-wrap:anywhere}.count-group{min-width:0}.settings-panel summary{list-style:none}.settings-panel summary::-webkit-details-marker{display:none}
