:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#133d48;background:#fff9ee;--teal:#106b75;--yellow:#ffd45d;--coral:#ee7565}*{box-sizing:border-box}body{margin:0;padding-bottom:90px}button,a,input,select{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:1px solid #b2d6d6;background:#fff;color:#143f49;border-radius:16px;min-height:48px;padding:12px 18px;font-weight:700}button:disabled{cursor:default;opacity:.58}button:hover:not(:disabled){background:#fff0c7}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d9573f;outline-offset:3px}a{color:inherit}header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px max(20px,calc((100vw - 1200px)/2));background:#fff;border-bottom:1px solid #ecdfc5}header .brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:800}header .brand b{letter-spacing:3px;color:var(--teal)}header select{padding:10px;border:1px solid #b6cccc;border-radius:12px;font-size:16px;max-width:140px}header #return{text-decoration:none;font-size:14px;white-space:nowrap}.skip{position:fixed;top:-70px;z-index:10;background:white;padding:16px}.skip:focus{top:8px}main{max-width:1200px;margin:auto;padding:28px 24px;outline:none}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(28px,4.3vw,52px);line-height:1.12;letter-spacing:-1px}h2{font-size:23px}p{line-height:1.6}.hero{border-radius:32px;background:#e3f2ed;display:grid;grid-template-columns:1.3fr 1fr;overflow:hidden;margin-bottom:36px;box-shadow:0 10px 0 #d4e5df}.hero>div{padding:38px}.hero h1{max-width:600px;margin:18px 0}.hero p{max-width:540px;font-size:18px}.hero>img{width:100%;height:100%;object-fit:cover;min-height:360px}.pill{display:inline-block;font-size:12px;letter-spacing:2px;background:white;padding:9px 14px;border-radius:50px;font-weight:900}.primary{background:var(--teal);color:white;border-color:var(--teal);box-shadow:0 4px 0 #084953}.primary:hover:not(:disabled){background:#12545c;color:white}.stats{display:flex;gap:20px;flex-wrap:wrap;margin:26px 0}.stats span{font-size:13px}.stats b{display:block;font-size:28px}.catalog-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px;gap:16px}.catalog-heading h2{margin:0}.search{display:flex;align-items:center;gap:8px;background:white;border:1px solid #ded6c5;border-radius:16px;padding:8px 14px}.search input{border:0;background:transparent;min-width:0;font-size:16px;width:210px;padding:6px;color:inherit}.catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.game-card{position:relative;background:white;border:1px solid #eee2cc;border-radius:26px;overflow:hidden;box-shadow:0 5px 0 #eadfc8;display:flex;flex-direction:column}.cover{padding:0;border:0;border-radius:0;background:#eef4f3;display:block;aspect-ratio:1.35;width:100%;overflow:hidden;min-height:0}.cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}.cover:hover img{transform:scale(1.03)}.heart{position:absolute;inset-inline-end:12px;top:12px;border:0;background:#fffc;backdrop-filter:blur(5px);border-radius:50%;font-size:25px;width:48px;padding:0;color:#ab3743}.card-body{padding:21px;display:flex;flex-direction:column;flex:1}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:1px;font-weight:800;color:#37747b}.card-body h2{margin:9px 0;font-size:23px;line-height:1.2}.card-body p{font-size:14px;margin-bottom:18px}.card-progress{display:flex;gap:10px;align-items:center;margin-top:auto;margin-bottom:16px}progress{width:100%;height:8px;accent-color:var(--teal)}small{white-space:nowrap;color:#42636a}.card-body .primary{display:flex;justify-content:space-between}.footnote{text-align:center;font-size:14px;color:#53666d;margin:36px 0 0}#nav{position:fixed;bottom:0;inset-inline:0;padding:12px max(18px,calc((100vw - 560px)/2)) calc(12px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:12px;background:#fffef9f5;backdrop-filter:blur(15px);border-top:1px solid #e4dcca;z-index:5}#nav button{flex:1;white-space:nowrap;border:0;background:transparent;padding:10px 14px}#nav .selected{background:#dff0e9;color:#075962}.back{background:none;border:0;padding-inline:0;box-shadow:none}.mission-hero{display:flex;align-items:center;gap:32px;background:#e5f2eb;border-radius:28px;padding:24px;margin:16px 0 30px}.mission-hero img{width:180px;height:180px;object-fit:cover;border-radius:24px}.mission-hero h1{font-size:36px;margin:12px 0}.level-group{margin-bottom:24px}.level-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:10px}.level-grid button{padding:10px 0;min-height:54px}.level-grid .complete{background:#d5f0db;border-color:#73bb83}.game-heading{display:flex;align-items:center;justify-content:space-between}.play-panel{max-width:840px;margin:20px auto;background:white;border:1px solid #e3dccf;border-radius:28px;padding:28px;box-shadow:0 6px 0 #e6dccb}.play-title{display:flex;align-items:center;gap:18px;margin-bottom:25px}.play-title img{width:82px;height:82px;border-radius:20px;object-fit:cover}.play-title h1{font-size:27px;letter-spacing:-.5px;margin:0 0 7px}.play-title p{font-size:15px;margin:0}.choices{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:20px 0}.choices button{min-width:80px;font-size:25px;padding:17px 22px;background:#eff7f3}.train{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;font-size:32px}.train span{border:2px solid #a6ced0;border-radius:15px;background:#fff3c3;padding:10px}.equation{text-align:center;font-size:38px;font-weight:800;padding:25px 0}.equation span{display:inline-block;background:#e7f4ee;border-radius:18px;padding:16px}.number-line{text-align:center;font-size:27px;min-height:64px;padding:16px;background:#fff5d9;border-radius:15px}.board-grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:8px;max-width:520px;margin:0 auto}.board-grid>button,.route-cell{aspect-ratio:1;min-height:44px;padding:4px;font-size:clamp(24px,5vw,40px)}.route-cell{display:flex;align-items:center;justify-content:center;border-radius:10px;background:#e7f3e9}.route-cell.wall{background:#f0ded5}.route-cell.visited{background:#b8e2d7}.arrows{text-align:center;margin:18px 0}.arrows button{font-size:30px;min-width:62px;min-height:54px;margin:4px}.mirror-board{display:grid;grid-template-columns:1fr 3px 1fr;gap:12px;max-width:480px;margin:auto}.mirror-line{background:#3095ac}.tile{background:#f0ede4;border-radius:8px;aspect-ratio:1;min-height:44px}.tile.filled{background:var(--teal)}.rule-target{text-align:center;display:flex;align-items:center;justify-content:center;gap:20px;background:#fff2c8;border-radius:20px;padding:18px}.rule-target b,.rule-card b{font-size:48px}.rule-target span,.rule-card span{font-size:17px;letter-spacing:3px}.rule-card{display:flex;flex-direction:column;gap:6px;align-items:center}.big-shape{text-align:center;color:var(--teal);font-size:110px}.memory-card{background:#dff1ed}.memory-card.matched{background:#ffd972;opacity:1}.sudoku{gap:3px;background:#176c78;padding:3px;border-radius:12px}.sudoku-cell{display:flex;align-items:center;justify-content:center;background:#fff;border:0;border-radius:0;aspect-ratio:1;font-size:38px;min-height:52px}.sudoku-cell:nth-child(4n+2){border-right:3px solid #176c78}.sudoku-cell:nth-child(n+5):nth-child(-n+8){border-bottom:3px solid #176c78}.sudoku-cell.fixed{background:#e3f2ed}.count-target{text-align:center;font-size:45px}.fruit-field{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;padding:20px;background:#fff5dc;border-radius:20px;max-width:530px;margin:12px auto}.fruit-field span{font-size:35px}.word-target{text-align:center;font-size:30px;font-weight:800;background:#fff2c8;padding:12px;border-radius:15px;margin-bottom:18px}.word-grid{max-width:620px;gap:3px}.board-grid .letter{font-size:20px;border-radius:7px;padding:2px;min-height:40px}.letter.selected,.letter.found{background:#ffd45d}.feedback{min-height:48px;text-align:center;font-weight:800;padding:16px}.feedback.positive{color:#146633}.feedback.retry{color:#b34125}.actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.settings{max-width:640px;margin:auto;background:white;padding:32px;border-radius:28px}.settings h1{font-size:36px}.settings h2{margin-top:26px}[dir=rtl] h1{letter-spacing:0}
@media(max-width:900px){.catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.hero>div{padding:28px}.hero>img{min-height:330px}.level-grid{grid-template-columns:repeat(5,1fr)}}
@media(max-width:600px){header{padding:12px 16px;gap:10px;padding-top:calc(12px + env(safe-area-inset-top))}header .brand{display:block;font-size:11px}header .brand b{display:block;font-size:17px}header select{max-width:108px;font-size:14px}header #return{font-size:12px}main{padding:20px 16px}.hero{grid-template-columns:1fr;border-radius:26px;margin-bottom:30px}.hero>div{padding:25px}.hero h1{font-size:35px}.hero>img{height:190px;min-height:0;object-position:center 43%}.hero p{font-size:16px}.stats{margin:19px 0;gap:22px}.stats b{font-size:25px}.catalog{gap:14px}.card-body{padding:14px}.card-body h2{font-size:18px}.card-body p{font-size:12px;line-height:1.5}.card-body .primary{font-size:14px;padding:10px 12px}.eyebrow{font-size:10px}.cover{aspect-ratio:1.07}.heart{width:40px;min-height:40px;font-size:21px;top:8px;inset-inline-end:8px}.catalog-heading{align-items:stretch;flex-direction:column;gap:12px}.search input{width:100%}.mission-hero{padding:16px;gap:16px;align-items:flex-start}.mission-hero img{width:100px;height:100px}.mission-hero h1{font-size:25px}.mission-hero p{font-size:13px}.play-panel{padding:18px 12px;margin:10px auto;border-radius:22px}.play-title{gap:12px}.play-title img{width:62px;height:62px;border-radius:14px}.play-title h1{font-size:22px}.play-title p{font-size:13px}.board-grid{gap:6px}.word-grid{gap:2px}.board-grid .letter{font-size:15px;min-height:28px}.board-grid>button,.route-cell{min-height:34px}.choices button{font-size:21px;min-width:58px;padding:14px}.train{font-size:22px;gap:5px}.train span{padding:8px}.equation{font-size:28px}.mirror-board{gap:7px}.tile{min-height:32px}.sudoku-cell{font-size:29px}.level-grid{gap:8px}#nav{gap:5px;padding-inline:10px}#nav button{font-size:14px;padding-inline:8px}.footnote{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Long localized titles must wrap inside compact game and cover cards. */
.play-title>div,.mission-hero>div{min-width:0}h1,h2{overflow-wrap:anywhere}
.compare-equation b{display:inline-block;color:#d9573f;font-size:48px;padding:0 12px}.colour-mix{display:flex;align-items:center;justify-content:center;gap:18px;margin:18px auto;font-size:34px}.colour-swatch{display:inline-flex;width:94px;height:94px;border-radius:50% 42% 54% 46%;background:var(--swatch);border:5px solid white;box-shadow:0 4px 0 #c7d8d6,0 0 0 2px #8eb9b8}.colour-swatch.mystery{align-items:center;justify-content:center;background:#fff2c8;color:#a64e3d;font-weight:900}.colour-swatch.mini{width:34px;height:34px;border-width:2px;box-shadow:0 2px 0 #c7d8d6}.colour-choices button{display:flex;align-items:center;gap:10px;font-size:17px}.fraction-disc{width:min(260px,70vw);aspect-ratio:1;border-radius:50%;margin:18px auto;background:conic-gradient(var(--coral) 0 var(--slice),#fff2c8 var(--slice) 360deg);border:8px solid white;box-shadow:0 5px 0 #c7d8d6,0 0 0 2px #8eb9b8;display:grid;place-items:center;position:relative}.fraction-disc:after{content:"";position:absolute;inset:16%;border-radius:50%;background:#fff9ee}.fraction-disc span{position:relative;z-index:1;font-size:28px;font-weight:900;color:#8e3d32}.clock-face{width:min(270px,72vw);aspect-ratio:1;border-radius:50%;margin:18px auto;background:#fff5d9;border:10px solid var(--teal);position:relative;box-shadow:0 6px 0 #b6d3cf;color:#164b55}.clock-face:after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:var(--coral);left:50%;top:50%;transform:translate(-50%,-50%);z-index:3}.clock-face>b,.clock-face>i,.clock-face>em,.clock-face>strong{position:absolute;font-size:23px;font-style:normal}.clock-face>b{top:10px;left:50%;transform:translateX(-50%)}.clock-face>i{right:14px;top:50%;transform:translateY(-50%)}.clock-face>em{bottom:10px;left:50%;transform:translateX(-50%)}.clock-face>strong{left:14px;top:50%;transform:translateY(-50%)}.clock-hand{position:absolute;left:calc(50% - 4px);bottom:50%;width:8px;height:31%;border-radius:8px;background:#164b55;transform-origin:50% 100%;transform:rotate(var(--turn));z-index:2}.clock-hand.minute{height:39%;width:5px;left:calc(50% - 2.5px);background:#ee7565}.coordinate-board{display:grid;grid-template-columns:repeat(var(--coord-size),1fr);width:min(360px,82vw);aspect-ratio:1;margin:18px auto;border-left:5px solid var(--teal);border-bottom:5px solid var(--teal);background:#fff}.coordinate-board span{display:grid;place-items:center;border-top:1px solid #acd2cf;border-right:1px solid #acd2cf;font-size:clamp(20px,7vw,38px)}.coordinate-board .target{background:#fff0b7;animation:star-pop .5s ease-out}@keyframes star-pop{from{transform:scale(.65)}to{transform:scale(1)}}
@font-face{font-family:'Atlas Play Emoji';src:url('assets/atlas-emoji.ttf') format('truetype');font-display:swap}
:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Apple Color Emoji","Segoe UI Emoji","Atlas Play Emoji",sans-serif}

.shape-scene{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;max-width:520px;margin:auto}.shape-scene svg{width:100%;height:auto}.shape-task{text-align:center}.shape-choice-number{display:block;font-size:12px}.shape-task>svg{max-width:100%}

.choices button:hover:not(:disabled),.choices button:active,.choices button:focus{background:#eff7f3;color:#143f49}.choices button:focus-visible{outline:3px solid #d9573f;outline-offset:3px}
@media(max-width:600px){.shape-scene{grid-template-columns:repeat(4,minmax(0,1fr))}}

.fraction-strip{display:flex;max-width:360px;height:90px;margin:24px auto;border:3px solid #237c93;border-radius:12px;overflow:hidden}.fraction-strip span{flex:1;background:#fff;border-right:2px solid #237c93}.fraction-strip span:last-child{border:0}.fraction-strip .painted{background:#ee7565}

/* Scoped overrides. Keep the original console.css unchanged. */
.numeric-clock{display:block;width:min(290px,78vw);height:auto;margin:18px auto}.numeric-clock text{font:700 18px system-ui,sans-serif;fill:#164b55}
.numeric-coordinates{display:grid;grid-template-columns:repeat(var(--coord-cols),minmax(0,1fr));width:min(420px,100%);margin:18px auto}.numeric-coordinate-cell{aspect-ratio:1;min-width:0;display:grid;place-items:center;border:1px solid #acd2cf;font-size:clamp(19px,5vw,34px)}.numeric-coordinate-cell.target{background:#fff0b7}.numeric-axis{display:grid;place-items:center;min-width:0;font-weight:800;font-size:clamp(12px,3vw,18px);color:#176c78}
.numeric-array{display:grid;grid-template-columns:repeat(var(--array-cols),minmax(0,1fr));gap:7px;width:min(360px,100%);margin:14px auto;text-align:center;font-size:30px}
.numeric-share-pool,.numeric-empty-baskets{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:16px auto;max-width:480px;padding:14px;border-radius:16px;background:#fff5dc;font-size:30px}.numeric-empty-baskets{background:#e7f4ee;gap:18px}
.numeric-code-key{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;padding:16px;border-radius:18px;background:#fff2c8}.numeric-code-key span{white-space:nowrap;font-size:clamp(18px,4vw,24px)}.numeric-code-expression{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin:24px auto;font-size:clamp(24px,6vw,40px)}
