*{box-sizing:border-box}body{margin:0;color:#163947;background:#eef7fc;font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif}button,a,input{touch-action:manipulation}button{font:inherit;font-weight:700;min-height:46px;border:0;border-radius:12px;padding:12px 17px;color:white;background:#116c72;cursor:pointer;box-shadow:0 3px 0 #0b4d55}button:disabled{opacity:.46;cursor:default;box-shadow:none}button:hover:enabled{filter:brightness(1.07)}button[aria-pressed=true]{outline:3px solid #30c6ba;outline-offset:2px}a{color:#126b73;text-underline-offset:4px}button:focus-visible,a:focus-visible,canvas:focus-visible,input:focus-visible{outline:3px solid #d78113;outline-offset:3px}.soft{background:#e5f1f5;color:#254856;box-shadow:0 3px 0 #c2dce5}.tiny{min-height:44px;padding:8px 13px;font-size:12px}.small{font-size:12px;line-height:1.55;color:#58727e}.skip{position:absolute;top:-100px;padding:12px;background:white;z-index:20}.skip:focus{top:12px}header{display:flex;align-items:center;gap:24px;max-width:1240px;margin:auto;padding:23px 24px}.brand{display:flex;align-items:center;gap:10px;color:#183e4b;text-decoration:none;font-size:23px;font-weight:900}.brand small{display:block;font-size:10px;letter-spacing:3px}.review{font-size:10px;letter-spacing:1.6px;margin-left:auto;color:#527987}header>button{font-size:13px}header button span{background:#fff;border-radius:20px;padding:3px 8px;margin-left:5px}main{max-width:1240px;margin:auto;padding:0 24px}h1{font-size:clamp(31px,4vw,54px);line-height:1.08;margin:7px 0 16px;letter-spacing:-1.8px}h1 em{font-style:normal;color:#117e86}h2{font-size:23px;margin:9px 0 12px;letter-spacing:-.5px}h3{font-size:18px}p{line-height:1.6;margin:8px 0}.eyebrow{font-weight:800;font-size:10px;letter-spacing:1.7px;color:#357c85}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0 27px}.intro p:not(.eyebrow){font-size:15px;max-width:660px}.intro-badges{display:flex;flex-direction:column;gap:8px;font-size:12px;white-space:nowrap}.intro-badges span{background:#fff;border:1px solid #c4e0eb;border-radius:25px;padding:8px 14px}.chapters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.chapters button{display:flex;text-align:left;align-items:center;gap:13px;background:white;color:#25485b;box-shadow:none;border:2px solid #cee2e9;padding:14px}.chapters button.active{border-color:#138894;background:#ddf2f1}.chapters b{font-size:22px;color:#1996a2}.chapters small{display:block;font-size:11px;color:#67828e;margin-top:5px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 272px;gap:22px}.play-column{min-width:0}.mission{background:#153f53;color:#f5fdff;border-radius:17px 17px 0 0;padding:16px 21px;min-height:117px}.mission .eyebrow{color:#88e1dc}.mission h2{font-size:19px;margin:6px 0}.mission p{font-size:13px;margin:0;color:#d0e5ed;min-height:21px}.stage{position:relative;background:linear-gradient(#bcdff1,#e8f5fb);border:1px solid #9ecada;border-top:0;overflow:hidden;border-radius:0 0 17px 17px;isolation:isolate}canvas{display:block;width:100%;height:510px;touch-action:pan-y pinch-zoom;cursor:crosshair;outline-offset:-3px!important}.stage-top{position:absolute;top:14px;left:15px;right:15px;display:flex;align-items:center;gap:6px;pointer-events:none}.stage-top>span{font-size:11px;font-weight:800;background:#ffffffc9;padding:10px 13px;border-radius:20px;margin-right:auto;max-width:45%}.stage-top button{pointer-events:auto;background:#ffffffd9}.start-card{position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);width:min(370px,calc(100% - 36px));padding:27px;background:#ffffffee;text-align:center;border:2px solid white;border-radius:24px;box-shadow:0 14px 50px #24536530}.start-card h2{font-size:31px;line-height:1.12}.start-card p{font-size:13px}.start-card .small{font-size:10px;margin-top:17px}.controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#eef7fcee;padding:15px 0 8px;position:sticky;bottom:0;z-index:4;backdrop-filter:blur(8px)}.direction-pad{display:grid;grid-template-columns:repeat(2,46px);gap:6px;margin-right:5px}.direction-pad button{font-size:23px;padding:5px;background:#326880;box-shadow:0 3px 0 #234b62;height:44px}.controls>button{font-size:12px;flex:1;min-width:64px;padding:11px 9px}.help-line{font-size:12px;margin:10px 0 6px}.scroll-hint{margin-bottom:25px}.side>section{padding:21px;border-radius:17px;margin-bottom:15px;background:white;border:1px solid #c8e0e9}.bag h2{font-size:22px}.bag button{width:100%;margin-top:10px;font-size:12px}#inventory{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:17px 0}.inventory-item{padding:10px 4px;background:#eef7fa;border-radius:10px;text-align:center;font-size:10px}.inventory-item strong{display:block;font-size:20px;margin:4px}.quest-list{font-size:12px;line-height:1.8}.quest-list span{display:block;padding:4px 0}.quest-list .yes{color:#167a6d}.workshop p{margin-bottom:13px}.material-buttons{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:16px}.material-buttons button{font-size:11px;flex:1;padding:10px 5px;min-width:55px;background:#e7f2f6;color:#254856;box-shadow:0 3px 0 #c2dce5}.workshop>button,.customise button{font-size:12px;width:100%;margin-top:9px}label{display:block;font-size:12px;font-weight:700;margin:10px 0}input[type=color]{display:block;width:100%;height:46px;padding:4px;background:#f5fafb;border:1px solid #c2dce5;border-radius:9px}.paint-swatches{display:flex;gap:5px;justify-content:space-between;margin-top:10px}.paint-swatches button{width:36px;min-width:36px;min-height:44px;height:44px;padding:0;background:var(--paint);box-shadow:0 2px 0 #0002;border:2px solid white}.notes{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding:33px 10px;margin:16px 0 28px;border-top:1px solid #c4dde8}.notes p{font-size:13px;color:#536f7c}.notes h2{font-size:23px}.notes a{font-size:13px}footer{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;background:#153f53;color:#d4e9ee;padding:25px;font-size:11px}dialog{border:0;padding:27px;border-radius:23px;width:min(660px,calc(100vw - 28px));max-height:calc(100dvh - 40px);color:#163947;overflow-y:auto;box-shadow:0 24px 70px #10304d45}dialog::backdrop{background:#183b5270;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-head>button{width:44px;padding:5px}dialog h2{font-size:29px}.dialog-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.dialog-actions button{flex:1;min-width:145px}.lab-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.lab-card{background:#edf7fa;padding:17px;border-radius:14px;text-align:center}.lab-card h3{font-size:15px;margin:6px}.lab-card .snow-model{height:80px;display:grid;place-items:center;isolation:isolate}.snow-cube{display:block;width:var(--size,52px);height:var(--size,52px);min-width:0;background:#eaffff;border:3px solid #abdae6;box-shadow:8px 8px 0 #8ab6c75c;transition:width .5s,height .5s;position:relative}.snow-cube.wrapped::before{content:'';position:absolute;width:80px;height:55px;border-radius:9px 20px 9px 9px;background:#e96a80;border:3px solid #c34461;right:-13px;top:13px;z-index:-1}.lab-card p{font-size:11px}.bar{height:12px;background:#c2dae3;border-radius:20px;overflow:hidden}.bar span{display:block;height:100%;background:#259da8;transition:width .5s}.lab-options,.prediction-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.lab-options button,.prediction-options button{font-size:12px;background:#e7f2f6;color:#254856;box-shadow:0 3px 0 #c2dce5;padding:10px}.fairness{border:1px solid #cae1e8;border-radius:12px;padding:15px}.fairness button{margin:5px;font-size:12px}.fairness .done{color:#177b69;font-size:13px;font-weight:700}.lab-note{background:#fff4d9;border-radius:12px;padding:13px;font-size:12px}.book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}.book-stamp{background:#e6f4f3;border:1px solid #addcd8;border-radius:12px;padding:15px;font-size:13px}.map-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.map-grid button{font-size:12px;padding:14px 9px}.map-grid button span{display:block;font-size:23px;margin-bottom:7px}.hint-box{padding:18px;background:#edf7fa;border-radius:13px;font-size:15px}.celebrate{font-size:45px;text-align:center}.completion-stat{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;font-size:13px;margin:18px 0}.completion-stat span{padding:8px 12px;border-radius:20px;background:#e7f5f3}
@media(max-width:900px){.game-layout{grid-template-columns:minmax(0,1fr)}.side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.side>section{margin:0}.customise{grid-column:1/-1;display:flex;align-items:center;gap:15px;flex-wrap:wrap}.customise label{margin:0}.customise input{width:90px}.customise button{width:150px;margin:0}.intro-badges{display:none}.notes{gap:25px}.review{display:none}canvas{height:460px}}
@media(max-width:520px){header{padding:15px;gap:10px}.brand{font-size:19px}header>button{padding:10px;font-size:11px}.brand small{font-size:8px;letter-spacing:2px}main{padding:0 12px}.intro{margin:12px 0 22px}h1{font-size:34px;letter-spacing:-1px}.intro p:not(.eyebrow){font-size:13px}.chapters{gap:6px;margin-bottom:15px}.chapters button{padding:9px 7px;gap:5px;flex-direction:column;align-items:flex-start;font-size:10px;min-width:0}.chapters b{font-size:17px}.chapters small{font-size:9px}.mission{padding:14px;min-height:108px}.mission h2{font-size:17px}.mission p{font-size:12px}canvas{height:350px}.stage-top{top:10px;left:9px;right:9px}.stage-top>span{font-size:9px;padding:8px;max-width:40%}.stage-top button{font-size:10px;padding:7px;min-width:44px}.controls{gap:7px;padding:11px 0 6px}.direction-pad{grid-template-columns:repeat(2,44px);margin:0;gap:5px}.controls>button{font-size:11px;flex:1 1 18%;min-width:55px;padding:9px 6px}.controls #hopBtn{flex-basis:100%;min-height:44px}.side{grid-template-columns:1fr}.side>section{padding:18px}.notes{grid-template-columns:1fr;padding:25px 5px;gap:15px}.help-line{font-size:10px}.start-card{padding:20px}.start-card h2{font-size:27px}.start-card .small{font-size:9px}dialog{padding:20px}dialog h2{font-size:25px}.lab-options,.prediction-options{grid-template-columns:1fr}.lab-cards{gap:8px}.lab-card{padding:12px}.book-grid,.map-grid{grid-template-columns:1fr 1fr}.dialog-actions button{min-width:110px}.fairness button{display:block;margin:8px 0;width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Clear, readable play directions stay next to the controls. */
.play-guide{margin:16px 0;padding:20px;background:#fff;border:2px solid #bad9e3;border-radius:17px}.play-guide-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.play-guide-head h2{font-size:25px;font-weight:900;margin:0}.play-guide-head button{font-size:14px;white-space:nowrap}.play-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.play-steps article{position:relative;padding:16px;background:#edf7fa;border-radius:12px;min-width:0}.play-steps h3{font-size:17px;letter-spacing:.5px;margin:0 0 10px;padding-left:34px;color:#126b73}.play-steps p{font-size:15px;line-height:1.55;margin:0}.step-number{position:absolute;top:12px;left:15px;display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#126b73;color:white;font-size:16px;font-weight:900}.guide-reminder{font-size:15px;line-height:1.55;margin:14px 0 0}.mission p{font-size:14px;font-weight:700}.help-line{font-size:14px;line-height:1.8}kbd{display:inline-block;background:white;border:1px solid #bad9e3;border-radius:5px;padding:1px 5px;font:700 12px inherit}.workshop p{font-size:14px;line-height:1.65}dialog p:not(.small){font-size:16px}dialog h3{font-weight:900}.lab-note{font-weight:700}.hint-box{font-weight:700}
@media(max-width:520px){.play-guide{padding:15px}.play-guide-head{gap:8px}.play-guide-head h2{font-size:23px}.play-guide-head button{font-size:12px;padding:10px}.play-steps{gap:9px}.play-steps article{padding:13px}.play-steps h3{font-size:15px;padding-left:29px}.play-steps p{font-size:14px}.step-number{left:12px;top:10px;width:24px;height:24px;font-size:14px}.help-line{font-size:13px}.mission p{font-size:14px}.start-card p{font-size:14px;line-height:1.55}}
@media(max-width:350px){.play-steps{grid-template-columns:1fr}.play-guide-head{flex-wrap:wrap}}
@media(max-width:520px){.start-card{padding:16px;top:54%}.start-card>.eyebrow,.start-card>.small{display:none}.start-card h2{font-size:24px;margin:4px 0 10px}.start-card p{margin:8px 0 14px}.start-card button{font-size:15px}}

.all-games{font-size:14px;font-weight:800;min-height:44px;display:flex;align-items:center;white-space:nowrap}@media(max-width:520px){header{flex-wrap:wrap}.all-games{margin-left:auto;font-size:12px}header>button{margin-left:auto}.review{display:none}}
