:root{--cream:#fffaf0;--paper:#fffdf7;--teal:#27766f;--teal-dark:#25514c;--ink:#304b43;--muted:#6e7b70;--orange:#d87a3e;--line:#e7e8d8;--heading:'Baloo 2',system-ui,sans-serif;--body:'Nunito',system-ui,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;background:var(--paper);font:16px/1.65 var(--body);color:var(--ink)}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit}button{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--heading);font-weight:700;line-height:1.18}h2{font-size:39px;letter-spacing:-.6px}h3{font-size:25px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #cf7639;outline-offset:5px}a,button{touch-action:manipulation}.wrap{width:min(1180px,calc(100% - 72px));margin:auto}.skip{position:fixed;top:-100px;left:20px;z-index:200;background:white;padding:14px}.skip:focus{top:10px}.site-header{background:var(--cream);border-bottom:1px solid #e9e9d9;position:relative;z-index:5}.nav{height:104px;display:flex;align-items:center;justify-content:space-between;gap:26px}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;font-size:14px;font-weight:900;line-height:1.1;letter-spacing:1px;color:var(--teal)}.brand b{color:#bc713c}.brand small{display:block;font-size:11px;color:#858643;margin-top:7px;text-align:center}.brand-friends{display:flex;width:75px;height:68px;align-items:flex-end}.brand-friends img{width:43px;height:60px;object-fit:contain}.brand-friends img+img{margin-left:-12px;width:42px;height:55px}nav{display:flex;gap:34px;align-items:center;font-weight:800;font-size:14px}nav a{text-decoration:none}nav a:hover,.text-button:hover{color:var(--orange)}.text-button{background:none;border:0;padding:10px 0;font-weight:800}.sound-button{display:flex;gap:9px;align-items:center;font-size:12px;font-weight:800;border:1px solid #dce2d2;background:transparent;padding:10px 15px;border-radius:100px}.sound-button span:first-child{font-size:22px}.hero{background:var(--cream);position:relative;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.04fr 1fr;align-items:center;min-height:564px;gap:10px;padding-top:18px;padding-bottom:35px}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:900;color:var(--teal);display:inline-flex;align-items:center;gap:9px}.leaf-mark{font-size:19px;color:#8b9f55}.hero h1{font-size:clamp(40px,4.3vw,61px);letter-spacing:-1.7px;line-height:1.1;margin:19px 0 19px;color:#2b4e43}.hero h1 span{color:var(--teal)}.hero p{color:#737c6d;font-size:17px;line-height:1.8}.hero-actions{display:flex;align-items:center;gap:24px;margin:27px 0}.button{display:inline-flex;align-items:center;justify-content:center;gap:26px;border-radius:13px;padding:14px 22px;text-decoration:none;font-weight:900;font-size:14px;border:2px solid transparent;min-height:52px;transition:transform .15s}.button:hover{transform:translateY(-2px)}.button.primary{background:var(--teal);color:white;box-shadow:0 5px 0 #1f5d57}.button span{font-size:22px;line-height:1}.quiet-link{font-size:12px;text-decoration:none;font-weight:900}.quiet-link span{margin-left:9px}.hero-facts{display:flex;gap:23px;font-size:11px;color:#7b816b;font-weight:800;margin-top:34px}.hero-facts i{font-style:normal;font-size:20px;color:#859965;vertical-align:middle;margin-right:3px}.hero-art{height:450px;position:relative;isolation:isolate}.hero-animal{position:absolute;object-fit:contain;z-index:5}.hero-beaver{width:40%;height:68%;left:9%;bottom:16%;transform:rotate(-3deg)}.hero-squirrel{width:37%;height:65%;right:10%;bottom:17%;transform:rotate(3deg)}.hero-hedgehog{width:22%;height:30%;right:0;bottom:4%}.hero-tit{width:14%;height:21%;left:19%;bottom:0;transform:rotate(-7deg)}.hill{position:absolute;border-radius:50%;bottom:0}.hill-back{background:#e9edd9;width:106%;height:54%;left:0;bottom:2%;transform:rotate(-5deg)}.hill-front{background:#dce6be;width:91%;height:32%;left:4%;bottom:-1%;z-index:3;transform:rotate(4deg)}.pond{position:absolute;left:30%;bottom:0;width:43%;height:13%;background:#b4d9cf;z-index:4;border-radius:50%;transform:rotate(5deg);border-bottom:5px solid #94c1b9;box-shadow:inset 0 5px 0 #d4e9d9}.sun{position:absolute;top:-8px;right:19%;font-size:97px;color:#edc76d;line-height:1}.tree{position:absolute;bottom:24%;width:19%;height:52%;z-index:0;border-radius:45% 45% 40% 40%;background:#d7e2b7}.tree:after{content:'';position:absolute;height:66%;width:9px;background:#aaa976;bottom:-27%;left:48%;border-radius:15px}.tree i{height:33%;width:2px;background:#b1bf91;position:absolute;left:50%;top:38%;transform:rotate(-33deg)}.tree-one{left:0;transform:rotate(-8deg);height:58%;width:23%;bottom:23%}.tree-two{right:0;height:50%;width:20%;background:#c7d6a6}.art-cloud{position:absolute;background:#eeeede;width:60px;height:15px;border-radius:100%;top:40px}.art-cloud:before{content:'';background:inherit;border-radius:50%;width:32px;height:26px;position:absolute;left:13px;bottom:0}.cloud-one{left:23%;top:45px}.cloud-two{right:0;top:92px;transform:scale(.7)}.art-spark{position:absolute;color:#c4a461;font-size:29px}.spark-one{left:10%;top:50px}.spark-two{right:1%;top:5px}.spark-three{left:52%;top:100px;font-size:18px}.hello{position:absolute;z-index:6;background:#fffdf5;padding:10px 17px;border-radius:16px 16px 4px 16px;box-shadow:0 4px 15px #5b67400b;font-size:13px;font-weight:900;left:30%;top:6%;transform:rotate(-7deg)}.hello span{color:#d98760;margin-left:8px}.sprout{position:absolute;z-index:6;font-size:29px;color:#d8905e;bottom:2%;left:4%}.sprout-two{left:77%;bottom:0;color:#ceaa55;font-size:20px}.sprout-three{left:90%;bottom:31%;font-size:28px;color:#e2b46a}.hero-stone{position:absolute;background:#b4ba9d;width:34px;height:14px;border-radius:50%;bottom:11%;left:45%;z-index:5}.hero-edge{height:22px;position:absolute;bottom:-13px;left:-2%;width:104%;background:var(--paper);border-radius:50% 50% 0 0}.games-section{padding-top:57px;padding-bottom:75px}.section-intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px}.section-intro h2{margin:10px 0 10px}.section-intro p,.center-intro p{color:var(--muted);font-size:14px}.section-doodle{font-size:66px;color:#e3b971;margin-right:20px;transform:rotate(15deg)}.filters{display:flex;gap:10px;margin-bottom:29px;flex-wrap:wrap}.filters button{border:1px solid #e6e7db;background:transparent;border-radius:100px;padding:8px 18px;font-size:12px;font-weight:800;min-height:42px}.filters button.active{border-color:var(--teal);background:var(--teal);color:white}.filters button span{margin-left:7px;background:#ffffff29;padding:1px 7px;border-radius:10px}.game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.game-card{border:1px solid #e4e6d9;border-radius:22px;overflow:hidden;background:#fffefa;transition:transform .2s,box-shadow .2s}.game-card:hover{transform:translateY(-4px);box-shadow:0 12px 25px #304b430b}.card-visual{height:195px;position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:5px}.mint{background:#e7efdf}.peach{background:#fae9d9}.yellow{background:#faf0cd}.lilac{background:#ece9f3}.sky{background:#e2eff0}.card-visual:after{content:'';position:absolute;background:#ffffff45;height:90px;width:120%;border-radius:50%;bottom:-52px;left:-10%;z-index:-1}.card-visual img{height:142px;width:106px;object-fit:contain;filter:drop-shadow(0 6px 0 #66795209)}.card-visual .small{height:110px;width:80px}.card-visual .tiny{height:84px;width:65px}.art-symbol{position:absolute;font-family:var(--heading);font-size:40px;font-weight:700;color:#a28c71;transform:rotate(-9deg)}.card-tag{position:absolute;left:16px;top:14px;border-radius:8px;font-size:10px;font-weight:900;background:#fffdf2b5;padding:3px 10px;color:#617567}.card-bottom{padding:22px 22px 18px}.card-bottom h3{font-size:23px;letter-spacing:-.3px}.card-bottom p{font-size:13px;color:var(--muted);line-height:1.7;margin:8px 0 18px;min-height:44px}.card-meta{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8b917b}.play-button{display:flex;align-items:center;gap:10px;background:transparent;border:0;font-weight:900;font-size:13px;padding:6px 0;color:var(--teal)}.play-button span{height:29px;width:29px;border-radius:50%;display:grid;place-items:center;background:#ecf0e3;font-size:13px}.pattern-tile{border-radius:11px;background:#fffdf8b3;display:grid;place-items:center;padding:3px}.pattern-tile img{height:92px;width:68px}.color-dot{width:29px;height:29px;position:absolute;border-radius:50%}.letter-art{font-family:var(--heading);font-size:65px;font-weight:700;position:absolute;left:21%;top:57px;color:#8a7fac;transform:rotate(-12deg)}.music-art{position:absolute;left:22%;top:60px;font-size:55px;color:#9585ad}.puzzle-art{outline:3px dashed #699a7c;outline-offset:8px;border-radius:10px}.friends-section{background:#f1f3e7;padding:57px 0 50px;position:relative}.center-intro{text-align:center}.center-intro h2{margin:10px 0 12px}.friends-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:16px;margin-top:35px}.friend{text-align:center}.friend img{height:130px;width:100%;object-fit:contain;transition:transform .2s}.friend:hover img{transform:translateY(-5px)}.friend h3{font-size:20px;margin-top:10px}.friend p{font-size:10px;line-height:1.4;color:#7b866d;margin-top:3px}.parent-callout{display:flex;align-items:center;gap:24px;padding-top:55px;padding-bottom:55px}.parent-callout h2{font-size:28px;margin:6px 0}.parent-callout p{font-size:13px;color:var(--muted)}.callout-icon{flex:none;background:#faedd9;height:75px;width:75px;display:grid;place-items:center;border-radius:50%;font-size:42px;color:#bd8055}.outline{border-color:#cbd8c8;background:transparent;color:var(--teal);margin-left:auto;white-space:nowrap}footer{border-top:1px solid var(--line);padding:28px 0;background:var(--cream);font-size:11px;color:#81907c}.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:20px}.footer-brand{font-size:14px;font-family:var(--heading);font-weight:600;color:var(--teal);text-decoration:none}.footer-brand span{font:10px var(--body);display:block;color:#87917e;margin-top:5px}.footer-flower{font-size:20px;color:#c08d62;margin-left:5px}.footer-inner .text-button{font-size:11px}.resume-box{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#edf3e4;border:1px solid #cfdbbf;border-radius:14px;padding:16px 20px;margin-bottom:24px;font-size:14px}.resume-box button{background:var(--teal);color:white;border:0;border-radius:10px;padding:10px 15px;font-weight:800}.storage-warning{position:fixed;bottom:12px;left:12px;right:12px;max-width:700px;margin:auto;padding:12px 20px;border:1px solid #cbaf75;background:#fff0cd;border-radius:12px;font-size:13px;z-index:150}.ownership-banner{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#fffaf0ed;z-index:300;text-align:center;padding:30px;gap:20px}.ownership-banner[hidden], [hidden]{display:none!important}dialog{width:min(700px,calc(100% - 28px));border:1px solid var(--line);border-radius:26px;background:var(--paper);color:var(--ink);padding:32px;max-height:90dvh;box-shadow:0 25px 100px #233b4330}dialog::backdrop{background:#233b4370;backdrop-filter:blur(5px)}.modal-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:22px}.modal-head h2{font-size:31px}.close-button{border:1px solid var(--line);background:white;border-radius:50%;width:42px;height:42px;font-size:25px;line-height:1;flex:none}.modal-lead{color:var(--muted);font-size:14px;margin-top:9px}.field{margin:20px 0}.field>label,.field legend{font-weight:900;font-size:14px;display:block;margin-bottom:9px}.field fieldset,fieldset.field{border:0;padding:0}.options{display:flex;gap:9px;flex-wrap:wrap}.option{border:1px solid #d6ddcb;border-radius:11px;background:white;padding:9px 16px;min-height:46px;font-weight:800;font-size:14px}.option.selected{border:2px solid var(--teal);background:#eaf2e7;padding:8px 15px;color:var(--teal)}.small-copy{font-size:12px;color:var(--muted);line-height:1.6;margin-top:7px}.time-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.time-row input{width:82px;min-height:46px;border:1px solid #cfd8c7;background:white;border-radius:10px;padding:8px 10px}fieldset{min-width:0}.selection-toolbar{display:flex;justify-content:space-between;align-items:center;font-size:12px}.selection-toolbar button{font-size:12px;color:var(--teal)}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.game-check{display:flex;align-items:center;gap:9px;border:1px solid #e1e6d5;border-radius:9px;padding:9px;font-size:12px;background:white;min-height:44px}.game-check:has(input:checked){background:#f0f5e9;border-color:#b9ceb0}.game-check input{width:18px;height:18px;accent-color:var(--teal);flex:none}.setup-note{padding:16px 18px;background:#f2f0e2;border-radius:14px;font-size:12px;line-height:1.8;margin:20px 0}.setup-summary{font-weight:900;color:var(--teal);font-size:14px;margin-bottom:12px}.form-error{color:#9c432c;font-size:13px;font-weight:800;margin:10px 0}.full-width{width:100%}.parent-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0 25px}.parent-body h3{font-size:21px;margin:20px 0 7px}.parent-body p,.parent-body li{font-size:14px;line-height:1.8;color:#637466}.parent-body ul{padding-left:20px}.activity{padding:15px 0;border-bottom:1px solid var(--line)}.activity h3{margin-top:0}.summary-row{padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.parent-control{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.danger-button{background:#fff0e4;color:#a14d2e;border:1px solid #e1c1a4;border-radius:10px;padding:10px 15px;font-size:13px;font-weight:800}.gate{display:flex;gap:10px;align-items:flex-end;margin-top:20px}.gate label{font-size:13px;font-weight:800}.gate input{display:block;padding:12px;border:1px solid #c7d3be;border-radius:10px;width:100%}.play-view{position:fixed;inset:0;background:var(--cream);z-index:20;overflow:auto}.play-wrap{width:min(1000px,calc(100% - 40px));margin:auto;padding-bottom:35px}.play-top{display:flex;align-items:center;justify-content:space-between;padding:20px 0;gap:15px}.play-brand{font-family:var(--heading);font-size:25px;color:var(--teal);font-weight:700}.play-top button{border:1px solid #dbe0ce;border-radius:11px;min-height:44px;padding:8px 15px;background:#fffdf5;font-size:13px;font-weight:900}.play-top .parent-entry{font-size:11px;color:#7d8a74;border:0;background:transparent}.round-title{text-align:center;margin:14px 0 25px}.round-title .eyebrow{font-size:10px}.round-title h1{font-size:37px;margin:8px 0}.instruction-row{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:8px}.instruction-row p{font-size:16px;color:#667562}.listen{width:44px;height:44px;border-radius:50%;border:1px solid #cbd8c0;background:white;flex:none;font-size:20px}.board{background:#fffefa;border:1px solid #e1e5d6;border-radius:25px;padding:28px;min-height:340px;box-shadow:0 6px 0 #e7ebd9}.tile-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;max-width:720px;margin:auto}.animal-tile{border:2px solid #e0e8d6;background:#f3f5e9;border-radius:18px;min-height:115px;display:flex;align-items:center;justify-content:center;position:relative;padding:8px;transition:background .15s}.animal-tile img{height:110px;width:100%;max-width:100px;object-fit:contain;pointer-events:none}.animal-tile.selected{border:3px solid var(--teal);background:#e2efdf}.animal-tile.matched{border-color:#91b575;background:#edf5e3;opacity:.65}.checkmark{position:absolute;right:8px;top:7px;background:var(--teal);color:white;border-radius:50%;width:24px;height:24px;line-height:24px;font-size:14px}.feedback{text-align:center;min-height:40px;margin-top:20px;font-weight:800;font-size:14px;color:var(--teal)}.round-footer{display:flex;justify-content:space-between;align-items:center;margin-top:18px;gap:15px}.round-footer p{font-size:12px;color:#859079}.help-button{background:transparent;border:0;text-decoration:underline;font-size:13px;font-weight:800;color:var(--teal);padding:12px}.progress-dots{display:flex;gap:7px;justify-content:center;margin-bottom:18px}.progress-dots span{height:12px;width:12px;background:#e0e7d4;border-radius:50%}.progress-dots .filled{background:#7da269}.sequence{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:20px 0 36px}.sequence img{height:90px;width:65px;object-fit:contain}.sequence .question{font:60px var(--heading);background:#f7efda;border:2px dashed #dac995;border-radius:15px;width:70px;text-align:center}.choices{display:flex;justify-content:center;gap:18px;flex-wrap:wrap}.choices .animal-tile{width:145px;min-height:140px}.color-tile{width:130px;height:130px;border-radius:50%;border:7px solid #ffffff;box-shadow:0 0 0 2px #e0e5d2}.color-tile:hover{box-shadow:0 0 0 4px var(--teal)}.target-color{display:inline-block;width:22px;height:22px;vertical-align:middle;border-radius:50%;border:1px solid #0002;margin-left:8px}.letter-target{font:90px var(--heading);color:var(--teal);text-align:center;margin:10px 0 25px}.letter-choice{font:55px var(--heading);padding:10px 25px;border:2px solid #ddd9e8;background:#f2eef8;border-radius:17px;min-width:110px;min-height:110px}.letter-caption{text-align:center;font-size:14px;margin-top:18px}.scene{aspect-ratio:1.5;position:relative;overflow:hidden;border-radius:18px;isolation:isolate;background:#e7f1e5}.scene svg{width:100%;height:100%;display:block}.search-scene{min-height:400px}.search-target{position:absolute;background:transparent;border:0;transform:translate(-50%,-50%);width:70px;height:75px;padding:0}.search-target img{width:100%;height:100%;object-fit:contain}.search-target.found{background:#fff9d7b3;border:2px dashed var(--teal);border-radius:50%}.search-target .checkmark{right:-3px;top:0}.scene-friend{position:absolute;object-fit:contain;width:17%;height:30%;pointer-events:none}.differences-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px}.diff-caption{text-align:center;font-weight:900;font-size:12px;padding-bottom:8px}.difference-region{position:absolute;transform:translate(-50%,-50%);border:0;border-radius:50%;background:transparent;min-width:44px;min-height:44px;width:19%;height:23%;padding:0}.difference-region.found{border:3px dashed var(--teal);background:#fff4cc44}.difference-region.found:after{content:'✓';position:absolute;right:-5px;top:-8px;color:white;background:var(--teal);height:22px;width:22px;border-radius:50%;line-height:22px}.coloring-layout{display:grid;grid-template-columns:1fr 120px;gap:25px;align-items:start}.coloring-canvas{width:100%;height:auto;max-height:500px;display:block}.coloring-canvas [data-region]{cursor:pointer;stroke:#526655;stroke-width:3;stroke-linejoin:round;outline:none}.coloring-canvas [data-region]:focus-visible{stroke:var(--orange);stroke-width:6}.palette{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:20px}.palette button{width:47px;height:47px;border-radius:50%;border:4px solid white;box-shadow:0 0 0 1px #d9decd;position:relative}.palette .selected{box-shadow:0 0 0 3px var(--teal)}.palette .selected:after{content:'✓';color:#fff;text-shadow:0 1px 3px #000;font-weight:900;font-size:21px}.color-tools{display:flex;flex-direction:column;gap:10px;margin-top:20px}.color-tools button{border:1px solid #d6dec9;border-radius:10px;padding:8px;background:white;font-size:12px;min-height:44px}.count-friend{display:flex;gap:20px;align-items:center;justify-content:center;margin-bottom:20px}.count-friend img{height:150px}.basket{background:#e9d4ad;border:3px dashed #ae8e61;border-radius:12px 12px 30px 30px;min-height:120px;min-width:180px;padding:15px;text-align:center}.basket h3{font-size:22px}.carrots{display:flex;gap:9px;flex-wrap:wrap;justify-content:center;margin:18px 0}.carrot{border:2px solid #ecdfc8;background:#fff7e6;border-radius:12px;min-width:55px;min-height:65px;font-size:34px}.carrot.in-basket{background:#d9e6bf;border-color:#aabd88}.center{text-align:center}.puzzle-layout{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center}.puzzle-board{display:grid;aspect-ratio:1;gap:5px;background:#eef2e4;border-radius:14px;padding:10px}.puzzle-slot{border:2px dashed #b8cbaa;background:#e7edd9;border-radius:7px;font-size:24px;color:#7e9970;min-width:0;position:relative;padding:0}.puzzle-slot .puzzle-fragment{width:100%;height:100%;border:0;border-radius:5px;display:block}.puzzle-pieces{display:grid;gap:12px}.puzzle-fragment{border:2px solid #d2ddc5;aspect-ratio:1;background-color:#eff2df;background-image:url('./assets/papercut/cseppke-plain-b33cb06768.webp');background-repeat:no-repeat;border-radius:8px;min-width:0;padding:0}.puzzle-fragment.selected{outline:4px solid var(--teal);outline-offset:2px}.puzzle-reference{margin-top:15px;text-align:center}.puzzle-reference img{height:100px;object-fit:contain;border:1px solid var(--line);background:#eff2df}.instrument-choice{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;padding:20px;border:2px solid #ddd9e7;background:#f0edf7;border-radius:18px;min-height:155px;min-width:145px}.instrument-choice svg{width:85px;height:85px}.instrument-choice span{font-weight:900;font-size:14px}.play-sample{display:block;margin:10px auto 30px;border:2px solid #c4d8be;border-radius:50%;background:#e7f0db;color:var(--teal);width:105px;height:105px;font-size:35px;box-shadow:0 5px 0 #d5e2c6}.notes{display:flex;justify-content:center;gap:8px;margin-top:26px;flex-wrap:wrap}.notes button{background:#fff;border:2px solid #d7ddcc;border-bottom:6px solid #b1bfaa;border-radius:10px;padding:20px 14px;min-height:100px;min-width:60px;font-weight:900}.notes button:active{transform:translateY(3px);border-bottom-width:3px;background:#eef2de}.completed{max-width:650px;margin:35px auto;text-align:center;padding:30px}.completed img{height:200px;max-width:65%;object-fit:contain}.completed h1{font-size:42px;margin:20px 0 12px}.completed p{font-size:16px;color:var(--muted);margin-bottom:25px}.completed .button{margin:7px}.game-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:25px 0}.game-picker button{background:#fffefa;border:2px solid #e1e5d3;border-radius:18px;padding:20px 10px;font-weight:900;font-size:15px}.game-picker img{display:block;width:100%;height:110px;object-fit:contain;margin-bottom:10px}.neutral-screen{max-width:750px;margin:30px auto;text-align:center}.neutral-screen h1{font-size:42px;margin:20px}.neutral-screen p{color:var(--muted);margin-bottom:20px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--teal-dark);color:white;border-radius:13px;padding:13px 22px;max-width:90%;z-index:250;font-size:14px}.audio-message{background:#f2eddb;padding:10px 14px;border-radius:10px;font-size:12px;text-align:center;margin:15px 0}.save-indicator{font-size:12px;color:#7d8b71}.accent{color:var(--orange)}
@media(min-width:1500px){.wrap{width:min(1260px,calc(100% - 120px))}.hero-grid{min-height:600px}.hero-art{height:480px}.card-visual{height:210px}}
@media(max-width:1000px){.wrap{width:calc(100% - 44px)}.hero-grid{grid-template-columns:1fr 1fr;min-height:540px}.hero-art{height:370px}.hero h1{font-size:43px}.hero p{font-size:15px}.hero-actions{gap:15px;flex-wrap:wrap}.hero-facts{gap:14px;font-size:10px}.hero-art .hello{font-size:11px;left:25%}.game-grid{gap:17px}.card-bottom{padding:19px}.card-bottom h3{font-size:21px}.friends-grid{grid-template-columns:repeat(4,1fr);row-gap:25px}.friend img{height:145px}.parent-callout{gap:15px}.parent-callout h2{font-size:25px}.callout-icon{display:none}}
@media(max-width:720px){.nav{height:87px;gap:12px}.brand{font-size:10px;letter-spacing:.5px}.brand small{font-size:9px}.brand-friends{width:50px;height:55px}.brand-friends img{width:32px;height:50px}.brand-friends img+img{width:30px;height:46px}.nav nav{gap:17px;font-size:12px}.nav nav a:nth-child(2){display:none}.sound-button{padding:7px 11px}.sound-button span:last-child{display:none}.hero-grid{grid-template-columns:1fr;padding-top:35px;gap:0;padding-bottom:25px}.hero-copy{text-align:center}.hero h1{font-size:49px;letter-spacing:-1.5px;line-height:1.08;margin-top:17px}.hero p{font-size:15px}.hero-actions{justify-content:center;margin-bottom:15px}.hero-facts{justify-content:center;gap:19px;margin-top:25px}.hero-art{height:350px;max-width:440px;width:100%;margin:auto}.hero-art .sun{font-size:80px}.hero-art .hello{top:5%;left:35%;font-size:11px}.hero-beaver{bottom:14%}.hero-squirrel{bottom:16%}.hero-art .tree-one{height:50%;bottom:24%}.hero-art .cloud-one{top:33px}.hero-art .spark-one{top:45px}.games-section{padding-top:37px;padding-bottom:40px}.section-intro h2,h2{font-size:32px}.section-intro p{font-size:13px;max-width:300px}.section-doodle{font-size:44px;margin-right:0}.eyebrow{font-size:9px;letter-spacing:1.2px}.game-grid{grid-template-columns:1fr 1fr;gap:15px}.card-visual{height:165px}.card-visual img{height:118px;width:85px}.card-visual .small{height:93px;width:65px}.card-visual .tiny{height:60px;width:45px}.card-bottom{padding:16px 14px 12px}.card-bottom h3{font-size:20px;line-height:1.2;min-height:48px}.card-bottom p{font-size:11px;min-height:55px;margin-top:6px;margin-bottom:10px}.card-meta{font-size:9px}.play-button{font-size:12px;gap:6px}.card-tag{font-size:9px;left:10px;top:10px;padding:2px 7px}.letter-art{font-size:48px;left:13%;top:53px}.music-art{font-size:45px;left:14%}.pattern-tile img{width:42px;height:72px}.friends-section{padding:38px 0}.friends-grid{gap:12px;margin-top:25px}.friend img{height:110px}.friend h3{font-size:19px}.friend p{font-size:9px}.parent-callout{flex-wrap:wrap;padding-top:35px;padding-bottom:35px;gap:20px}.parent-callout .outline{margin-left:0}.parent-callout h2{font-size:28px}.footer-inner{flex-wrap:wrap;gap:18px}.footer-inner>span{display:none}.play-wrap{width:calc(100% - 28px)}.play-top{padding:12px 0}.play-brand{font-size:23px}.play-top button{font-size:12px;padding:7px 10px}.round-title{margin:16px 0 20px}.round-title h1{font-size:30px}.instruction-row p{font-size:14px;max-width:80%}.board{padding:18px 14px;min-height:330px}.tile-grid{gap:9px;grid-template-columns:repeat(3,1fr)}.animal-tile{min-height:105px;padding:7px}.animal-tile img{height:92px;max-width:80px}.choices{gap:12px}.choices .animal-tile{width:110px;min-height:110px}.sequence{gap:3px;margin:10px 0 25px}.sequence img{height:67px;width:46px}.sequence .question{font-size:48px;width:50px}.color-tile{width:95px;height:95px}.letter-choice{font-size:42px;min-width:85px;min-height:90px;padding:8px 17px}.differences-layout{grid-template-columns:1fr;gap:15px;max-width:450px;margin:auto}.search-scene{aspect-ratio:1;min-height:350px}.search-target{width:52px;height:60px}.coloring-layout{grid-template-columns:1fr;gap:5px}.palette{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;padding-top:10px}.palette button{width:40px;height:40px}.color-tools{flex-direction:row;justify-content:center;margin-top:18px}.coloring-canvas{max-height:380px}.puzzle-layout{gap:15px}.puzzle-pieces{gap:9px}.instrument-choice{padding:12px;min-width:90px;min-height:120px}.instrument-choice svg{width:65px;height:65px}.instrument-choice span{font-size:12px}.notes{gap:5px}.notes button{min-width:43px;min-height:84px;padding:10px 9px}.completed{padding:20px 5px;margin:10px auto}.completed h1{font-size:35px}.completed img{height:170px}.game-picker{grid-template-columns:repeat(2,1fr);gap:10px}.game-picker button{font-size:13px;padding:15px 10px}.game-picker img{height:90px}.neutral-screen h1{font-size:33px}.count-friend{gap:12px}.count-friend img{height:125px}.basket{min-width:150px;max-width:220px;min-height:100px}.carrot{min-width:48px;min-height:55px;font-size:29px}.carrots{gap:6px}.parent-body p,.parent-body li{font-size:13px}dialog{padding:23px}.modal-head h2{font-size:28px}.option{padding:8px 12px;font-size:12px}.option.selected{padding:7px 11px}.check-grid{gap:6px}.game-check{font-size:11px;padding:7px}.selection-toolbar{gap:12px}.setup-note{font-size:11px}.resume-box{padding:13px;font-size:12px}.resume-box button{font-size:11px}.round-footer p{max-width:65%;font-size:10px}}
@media(max-width:390px){.wrap{width:calc(100% - 30px)}.hero h1{font-size:43px}.hero-art{height:315px}.nav nav{gap:12px}.brand-friends{display:none}.game-grid{gap:11px}.card-bottom h3{font-size:18px}.card-visual{height:145px}.friends-grid{grid-template-columns:repeat(4,1fr)}.friend img{height:94px}.hero-facts{gap:12px;font-size:9px}.check-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.button:hover,.game-card:hover{transform:none}}

.saved-drawings{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.saved-drawing{pointer-events:none;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:10px}.saved-drawing svg{max-height:210px}

.scene{width:100%}.search-scene{min-height:0}@media(max-width:720px){.search-scene{min-height:0;aspect-ratio:1}}

.difficulty-options{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:18px}.difficulty-options .option{min-height:44px;font-size:12px;padding:7px 16px}.difficulty-options .selected{padding:6px 15px}.play-top>div{display:flex;gap:8px;align-items:center}@media(max-width:720px){.play-top{gap:8px}.play-brand{font-size:21px}.play-top button{padding:7px 9px;font-size:11px}.round-title .small-copy{font-size:10px}}

/* Quiet visual support: an optional companion, one-to-one counting, puzzle guides. */
.task-progress{max-width:360px;margin:0 auto 22px;text-align:center;font-size:13px;font-weight:900;color:var(--teal)}.task-progress [role=progressbar]{height:9px;border-radius:9px;background:#e5ebda;margin-top:7px;overflow:hidden}.task-progress [role=progressbar]>span{display:block;height:100%;background:#85aa76;border-radius:9px}.pattern-unit{display:inline-flex;align-items:center;gap:6px;padding:5px;border:2px solid transparent;border-radius:13px}.pattern-unit.hint-unit{border-color:#ce9558;background:#fff2d5}.companion-help{display:flex;gap:16px;align-items:center;max-width:630px;margin:8px auto 0;padding:15px 20px;border:1px solid #d5dfc8;background:#eef3e5;border-radius:20px}.companion-help>img{height:85px;width:65px;object-fit:contain;flex:none}.companion-help strong{font-family:var(--heading);font-size:21px}.companion-help p{font-size:14px;line-height:1.6}.companion-help .help-button{padding:7px 0}.hint-target{outline:4px dashed #bd7339!important;outline-offset:4px}.coloring-canvas .hint-target{stroke:#bd7339!important;stroke-width:7;outline:none!important}.basket-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:14px auto 5px;max-width:320px}.basket-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:42px;min-height:62px;padding:4px;border:1px solid #b59b71;background:#fff8e9;border-radius:9px;font-size:27px;line-height:1.1;color:var(--ink)}.basket-slot small{font-size:12px;font-weight:900;line-height:1.4}.basket-slot.empty{border-style:dashed;background:#fff8e933}.basket-slot.empty>span{opacity:.16;filter:grayscale(1)}.basket-slot.extra{background:#ffe6c5;border:2px dashed #bc7939}.basket{min-width:260px;max-width:350px}.puzzle-controls{text-align:center;margin:0 0 20px}.puzzle-slot .ghost{opacity:.2;pointer-events:none}.color-tools{flex-wrap:wrap}.color-tools button:disabled{opacity:.4}.music-free{margin:0 0 20px}
@media(max-width:720px){.sequence{gap:1px}.pattern-unit{gap:2px;padding:2px}.sequence img{width:36px;height:56px}.sequence .question{width:39px;font-size:39px}.companion-help{gap:12px;padding:14px}.companion-help>img{height:75px;width:50px}.companion-help p{font-size:13px}.count-friend{align-items:center;gap:10px}.count-friend>img{height:105px;width:64px;object-fit:contain}.basket{min-width:0;max-width:280px;flex:1;padding:12px 8px}.basket h3{font-size:21px}.basket-slot{min-width:0;min-height:55px;font-size:23px}.basket-slots{gap:4px}.palette button{width:44px;height:44px}.palette{gap:10px}.puzzle-layout{align-items:start}.puzzle-reference img{height:85px}}


/* The whole card starts its game; the same action has one native keyboard button. */
.game-card{display:flex;flex-direction:column;cursor:pointer;touch-action:manipulation}.game-card:focus-within{outline:3px solid #cf7639;outline-offset:4px}.card-visual{flex-shrink:0}.card-bottom{display:flex;flex-direction:column;flex:1}.card-meta{gap:12px;flex-wrap:wrap;margin-top:auto}.play-button{justify-content:center;min-width:112px;min-height:48px;padding:10px 20px;border:2px solid var(--teal);border-radius:12px;background:var(--teal);color:white;font-size:15px;line-height:1.3;font-weight:900;box-shadow:0 3px 0 #1f5d57}.play-button:hover{background:var(--teal-dark);border-color:var(--teal-dark)}.play-button:active{box-shadow:none;transform:translateY(2px)}
@media(max-width:720px){.card-meta{gap:10px}.play-button{width:100%;min-height:48px;font-size:14px;padding:10px 14px}}

/* Shared, always reachable way back to the game catalogue. */
.play-top{position:sticky;top:0;z-index:12;background:var(--cream)}.play-top button.play-brand{border:0;background:transparent;padding:0;font-family:var(--heading);font-size:25px;color:var(--teal);white-space:nowrap}.play-top button.play-brand:hover{text-decoration:underline;text-underline-offset:5px}.new-round{margin-top:12px}.round-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
/* Six by six matching board. Each occupied position exposes exactly one card. */
.pair-board{padding:18px 22px}.pair-collector{display:flex;align-items:center;gap:16px;position:sticky;top:84px;z-index:6;background:#fffefa;padding:12px 4px 16px;border-bottom:1px solid var(--line);box-shadow:0 8px 10px #fffefae6}.pair-pack{width:58px;height:68px;position:relative;flex:none;border:2px dashed #b5c6a7;border-radius:10px;background:#eef3e6;display:grid;place-items:center;font-size:30px;color:var(--teal)}.pair-pack img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border:2px solid #b7cbaa;border-radius:9px;background:#fffaf0;padding:3px;transform:rotate(-7deg)}.pair-pack img+img{transform:rotate(6deg)}.pair-total strong,.pair-total span{display:block}.pair-total strong{font-family:var(--heading);font-size:23px;line-height:1.3}.pair-total span{font-size:12px;color:var(--muted)}.pair-actions{display:flex;gap:9px;margin-left:auto;flex-wrap:wrap}.pair-actions .option{background:#eff4e6;border-color:#c8d6b9;min-height:46px}.pair-grid{display:grid;grid-template-columns:repeat(var(--pair-columns,6),minmax(0,1fr));gap:12px;max-width:660px;margin:22px auto 10px}.pair-position{display:block;position:relative;aspect-ratio:1;min-width:0}.pair-position.empty{border:1px dashed #e5e9dc;border-radius:13px;background:#f7f8ef77}.under-card{position:absolute;inset:0;transform:translate(calc(var(--offset)*3px),calc(var(--offset)*3px));border:2px solid #b9c4a9;border-radius:13px;background:#dedfc8;pointer-events:none}.pair-card{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:44px;padding:5px;border:2px solid #d7e1cc;border-radius:13px;background:#f2f5e9;box-shadow:0 2px 0 #d7dfc9;touch-action:manipulation}.pair-card img{width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.pair-card.selected{border:3px solid var(--teal);background:#dcebd7;box-shadow:0 0 0 2px #27766f22}.pair-card.face-down{background:#477f72;border-color:#32695f;color:#fff5da}.card-back{display:grid;place-items:center;width:75%;height:75%;border:1px dashed #edf1d299;border-radius:50%;font-size:clamp(22px,4vw,46px)}.layer-count{position:absolute;right:2px;bottom:2px;border-radius:6px;padding:0 5px;background:var(--teal-dark);color:white;font-weight:900;font-size:11px;line-height:19px}.pair-card.hint-target{outline:3px solid #d28b3e!important;outline-offset:2px;background:#fff0d5}.pair-card.face-down.hint-target{background:#477f72}.pair-card.hint-target:after{content:'✦';position:absolute;left:-4px;top:-8px;color:#ae6725;background:#fff3d8;border:1px solid #dbb16c;border-radius:50%;width:22px;height:22px;line-height:21px;font-size:17px}.pair-flight-card{position:fixed;z-index:80;pointer-events:none!important;margin:0;transform-origin:top left;box-shadow:0 6px 18px #304b4333;will-change:transform}.pair-flight-card:after{display:none}.pair-stalled{background:#fff0d8;padding:12px 15px;border-radius:12px;text-align:center;font-size:14px;margin-top:15px}.pair-explainer{text-align:center;font-size:12px;color:var(--muted);margin-top:22px}.playing-pairs .board .feedback{margin-top:12px;min-height:25px}
@media(max-width:720px){.play-top button.play-brand{font-size:20px}.round-actions{gap:7px}.round-footer{align-items:flex-start}.playing-pairs .play-wrap{width:calc(100% - 16px)}.pair-board{padding:10px 8px}.pair-grid{gap:6px;margin-top:16px}.pair-card{border-radius:9px;padding:2px}.pair-position.empty,.under-card{border-radius:9px}.under-card{transform:translate(calc(var(--offset)*2px),calc(var(--offset)*2px))}.pair-collector{top:68px;gap:10px;flex-wrap:wrap;padding:8px 2px 12px}.pair-pack{width:44px;height:52px}.pair-total strong{font-size:21px}.pair-total span{font-size:11px}.pair-actions{width:100%;margin-left:0;gap:8px}.pair-actions .option{flex:1;font-size:12px;min-height:44px;padding:8px}.layer-count{font-size:9px;padding:0 4px;line-height:15px;right:1px;bottom:1px}.pair-explainer{font-size:11px}.pair-card.hint-target{outline-width:2px!important;outline-offset:1px}.pair-card.hint-target:after{width:18px;height:18px;font-size:14px;line-height:17px;left:-2px;top:-6px}}
@media(max-width:350px){.pair-grid{gap:4px}.play-top button.play-brand{font-size:18px}.play-top>div{gap:4px}.play-top button{font-size:10px;padding:6px}.playing-pairs .round-title h1{font-size:28px}}

/* A brief, quiet celebration stays above the finished board, followed by one shared choice. */
.celebration-layer{position:fixed;inset:0;z-index:60;pointer-events:none;overflow:hidden}.celebration-burst{position:absolute;width:0;height:0}.celebration-spark{position:absolute;left:0;top:0;display:block;width:10px;height:10px;border-radius:4px;background:var(--spark-color);opacity:0;animation:celebration-spark 1100ms var(--delay) ease-out both}.celebration-spark.star{width:24px;height:24px;font-style:normal;font-size:25px;line-height:1;background:none;color:var(--spark-color)}.celebration-caption{position:absolute;top:18%;left:50%;padding:8px 24px;border-radius:100px;background:#fffaf0ed;box-shadow:0 5px 20px #304b4312;color:var(--teal);font:700 32px/1.3 var(--heading);white-space:nowrap;animation:celebration-caption var(--celebration-duration,5100ms) ease-out both}.celebration-caption>span{color:#d8ad44;margin-left:6px}@keyframes celebration-spark{0%{opacity:0;transform:translate(0,15px) scale(.15)}18%{opacity:1}72%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--turn)) scale(.65)}}@keyframes celebration-caption{0%{opacity:0;transform:translate(-50%,12px) scale(.92)}20%,72%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-10px) scale(1)}}
.finish-dialog{width:min(490px,calc(100% - 28px));padding:28px;border:2px solid #dae3cf;border-radius:28px;background:var(--cream)}.finish-dialog::backdrop{background:#334f3f55;backdrop-filter:blur(2px)}.finish-content{text-align:center}.finish-friends{height:145px;display:flex;align-items:center;justify-content:center;gap:6px;margin:0 auto 18px}.finish-friends img{width:105px;height:140px;object-fit:contain}.finish-friends img+img{transform:rotate(5deg)}.finish-friends>span{color:#d9b659;font-size:30px;align-self:flex-start;margin-top:22px}.finish-friends>span:last-child{align-self:center;font-size:38px}.finish-content h2{font-size:35px;margin:13px 0 12px}.finish-content>p{font-size:15px;color:var(--muted);max-width:340px;margin:auto}.finish-actions{display:grid;gap:14px;max-width:350px;margin:26px auto 4px}.finish-actions .button{width:100%;min-height:58px;font-size:17px;line-height:1.4;justify-content:center}.finish-actions .outline{margin:0;background:#fffdf7;white-space:normal;border-width:2px}.finish-download{margin-top:12px}.completed-answer{position:relative;outline:3px solid #85aa76;outline-offset:4px}.completed-answer:after{content:'✓';position:absolute;right:-8px;top:-8px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--teal);color:white;font:900 19px/1 var(--body)}.board[inert] button{cursor:default}.round-title button:disabled{opacity:.6}
@media(max-width:720px){.finish-dialog{padding:24px 20px}.finish-friends{height:120px;margin-bottom:14px}.finish-friends img{height:118px;width:87px}.finish-friends>span{font-size:25px}.finish-content h2{font-size:31px}.finish-content>p{font-size:14px}.finish-actions{margin-top:23px}.finish-actions .button{min-height:58px;font-size:16px}.celebration-caption{font-size:27px;padding:7px 19px}}

/* A ten-task pattern trail keeps progress visible without rushing the child. */
.pattern-progress{max-width:390px;margin:0 auto 22px;text-align:center;color:var(--teal)}.pattern-progress .pattern-step{font:700 23px/1.3 var(--heading)}.pattern-progress>p:last-child{font-size:12px;color:var(--muted);margin-top:7px}.pattern-progress [role=progressbar]{display:flex;gap:6px;margin:10px 0}.pattern-progress [role=progressbar] span{flex:1;height:10px;border-radius:9px;background:#e5ebda}.pattern-progress [role=progressbar] .solved{background:#7da269}.pattern-progress [role=progressbar] .current{background:#efcb7e;outline:2px solid #dfb15c;outline-offset:2px}.sequence .pattern-result{position:relative;border-style:solid;border-color:#83aa79;background:#e9f2df;display:inline-flex;align-items:center;justify-content:center;flex:none}.pattern-result b{position:absolute;right:-7px;bottom:-4px;border-radius:50%;background:var(--teal);color:white;font:900 16px/24px var(--body);width:24px;height:24px}.sequence .pattern-result img{max-width:100%}

/* Search a storybook landscape. Whole objects have generous, separate targets. */
.color-preview-object{position:absolute;width:54px;height:58px}.color-preview-object svg{width:100%;height:100%}.color-preview-0{left:12%;top:90px;transform:rotate(-12deg)}.color-preview-1{right:13%;top:60px;transform:rotate(12deg)}.color-preview-2{left:25%;top:45px;width:40px}.color-preview-3{right:25%;bottom:25px;width:38px}
.color-search-board{padding:22px 24px 14px}.color-search{max-width:940px;margin:auto}.color-mission{position:sticky;top:77px;z-index:8;display:flex;gap:17px;align-items:center;justify-content:center;width:min(100%,440px);margin:0 auto 25px;padding:10px 24px;background:#fffaf0f5;backdrop-filter:blur(8px);border:1px solid #e5e6d6;border-radius:22px;box-shadow:0 5px 18px #304b430b}.color-mission>img{width:62px;height:90px;object-fit:contain}.color-mission>div{min-width:0;flex:1}.color-task-label{font-size:11px;font-weight:900;color:var(--muted)}.color-mission strong{display:flex;align-items:center;gap:12px;font:700 29px/1.3 var(--heading)}.color-mission strong i{height:30px;width:30px;flex:none;border:2px solid #304b4355;box-shadow:inset 0 0 0 3px #ffffff60;border-radius:50%}.color-mission p{font-size:12px;font-weight:800;color:var(--teal);margin-top:3px}.color-meter{height:7px;background:#e6ebdb;border-radius:10px;overflow:hidden;margin-top:8px}.color-meter span{height:100%;display:block;background:#7da269;border-radius:10px}.color-picture-caption{display:flex;align-items:baseline;justify-content:space-between;gap:15px;flex-wrap:wrap}.color-picture-caption h2{font-size:27px}.color-picture-caption>span{font-size:11px;font-weight:800;color:var(--muted)}.color-scene-instruction{font-size:13px;color:var(--muted);margin:8px 0 16px}.color-landscape{position:relative;isolation:isolate;overflow:hidden;border:3px solid #e4e8d6;border-radius:24px;box-shadow:0 5px 0 #edf0e2;padding:25px 18px;background:#edf1e3}.color-setting{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}.color-objects{display:grid;grid-template-columns:repeat(var(--scene-columns),minmax(0,1fr));align-items:center;gap:21px 10px;position:relative}.color-object{border:2px solid transparent;background:transparent;border-radius:45%;display:grid;place-items:center;justify-self:center;width:100%;max-width:100px;min-width:44px;height:100px;padding:5px;position:relative;transform:translate(var(--shift-x),var(--shift-y));touch-action:manipulation}.color-object svg{width:100%;height:100%;overflow:visible;transform:rotate(var(--object-turn)) scale(var(--object-scale));pointer-events:none;filter:drop-shadow(0 3px 1px #586b3b12)}.color-object:hover:not(:disabled){background:#fffdf460;border-color:#b0c598}.color-object.color-found{border:2px dashed #57896e;background:#fffdf54d}.color-object.color-found svg{opacity:.72}.color-object-check{position:absolute;right:0;bottom:3px;background:var(--teal);color:white;width:25px;height:25px;display:grid;place-items:center;border:2px solid #fffaf0;border-radius:50%;font-size:15px;font-weight:900}.color-object.hint-target{outline:4px solid #cf954f;outline-offset:2px;background:#fff3d8}.color-picture-note{font-size:11px;text-align:center;color:var(--muted);margin-top:15px}.color-search[data-level="1"] .color-object{max-width:88px;height:88px}.color-search[data-level="2"] .color-object{max-width:80px;height:80px}.color-search[data-level="3"] .color-object{max-width:76px;height:76px}
@media(max-width:720px){.playing-color-search .play-wrap{width:calc(100% - 16px)}.color-search-board{padding:12px 8px}.color-mission{top:66px;margin-bottom:18px;padding:7px 16px;gap:12px}.color-mission>img{width:48px;height:68px}.color-mission strong{font-size:25px}.color-mission strong i{width:27px;height:27px}.color-picture-caption h2{font-size:23px}.color-picture-caption>span{font-size:10px}.color-scene-instruction{font-size:12px}.color-landscape{padding:18px 9px;border-width:2px;border-radius:18px}.color-objects{grid-template-columns:repeat(var(--mobile-columns),minmax(0,1fr));gap:18px 6px}.color-object,.color-search[data-level] .color-object{height:60px;max-width:64px;min-width:44px;min-height:56px;padding:4px}.color-search[data-level="0"] .color-object{max-width:72px;height:72px}.color-object-check{width:22px;height:22px;font-size:13px;right:-2px;bottom:-2px}.color-picture-note{font-size:10px}.color-mission .color-task-label{font-size:10px}}
.playing-color-search .round-title{margin:20px 0}.playing-color-search .round-title h1{font-size:35px}.playing-color-search .round-title .difficulty-options{margin-top:12px}.playing-color-search .round-title .instruction-row{margin-top:10px}.playing-color-search .round-title .small-copy{margin-bottom:10px}
@media(max-width:720px){.playing-color-search .round-title h1{font-size:30px}.color-object{transform:translate(calc(var(--shift-x)*.5),var(--shift-y))}}
@media(max-width:360px){.color-objects{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:360px){.friends-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.friend{min-width:0}.friend h3{overflow-wrap:anywhere}}

.pair-grid[data-columns="4"]{max-width:520px}
/* A whole-card drop area and a two-tap alternative for small hands. */
.shadow-card-preview{display:flex;align-items:center;justify-content:center;gap:18px;width:82%}.shadow-card-preview>span{display:grid;place-items:center;width:100px;height:116px;border-radius:20px;background:#fffaf0}.shadow-card-preview svg{width:85px;height:85px}.shadow-card-preview b{font-size:32px;color:var(--teal)}.shadow-preview-slot svg{filter:brightness(0)}.shadow-preview-slot{border:2px dashed #b7c1aa}
.playing-shadows .board{padding:24px}.shadow-mission{display:flex;align-items:center;gap:18px;padding:14px 20px;background:#edf1e5;border-radius:18px}.shadow-mission>img{width:55px;height:78px;object-fit:contain}.shadow-mission strong{font-family:var(--heading);font-size:23px}.shadow-mission p{margin:4px 0 0;font-size:14px;line-height:1.5;color:#627269}.shadow-mission-star{margin-left:auto;color:#d9af54;font-size:38px}.shadow-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;color:var(--teal);font-weight:800;font-size:15px}.shadow-progress [role=progressbar]{display:flex;gap:7px}.shadow-progress [role=progressbar] span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;color:#c2cbb8;background:#edf1e5}.shadow-progress [role=progressbar] .filled{background:var(--teal);color:white}.shadow-tables{display:grid;grid-template-columns:1fr 1fr;gap:26px}.shadow-tables section{min-width:0}.shadow-tables h2{font-family:var(--heading);font-size:21px;margin:0 0 12px;display:flex;justify-content:space-between;color:#64766a}.shadow-tables h2 span{color:#acb89e}.shadow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.shadow-piece,.shadow-slot{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:135px;padding:10px 7px;border:2px solid #e1e7d7;border-radius:19px;background:#fffdf5;color:var(--ink);font:700 13px var(--body);cursor:pointer}.shadow-piece{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;box-shadow:0 4px 0 #e6e9db}.shadow-art{display:grid;place-items:center;width:100%;height:90px;pointer-events:none}.shadow-art img,.shadow-art svg{max-width:100%;width:85px;height:88px;object-fit:contain;pointer-events:none}.shadow-piece-name{display:block;margin-top:6px;line-height:1.2;overflow-wrap:anywhere;pointer-events:none}.shadow-slot{background:#f0eee4;border:2px dashed #c4c9b6}.silhouette{filter:brightness(0)}.shadow-slot-dot{position:absolute;bottom:6px;right:10px;color:#989e8b;font-size:15px}.shadow-piece.selected{border-color:var(--teal);background:#e8f2e8;box-shadow:0 0 0 3px #b8d8c9}.shadow-slot.shadow-over{border-color:var(--teal);border-style:solid;background:#deecdb;box-shadow:0 0 0 4px #b8d8c9}.shadow-slot.shadow-matched{border-style:solid;border-color:#93bba2;background:#edf5e8;animation:shadow-arrive .3s ease-out}.shadow-check{position:absolute;bottom:7px;right:8px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--teal);color:white;font-size:15px}.shadow-piece.shadow-used{opacity:.28;box-shadow:none;cursor:default}.shadow-used .shadow-art{visibility:hidden}.shadow-used .shadow-piece-name{color:var(--teal);font-size:20px}.shadow-lifted{opacity:.3}.shadow-drag-ghost{position:fixed!important;z-index:90;transform:translate(-50%,-55%) rotate(-4deg);pointer-events:none!important;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px;border:3px solid var(--teal);border-radius:19px;background:#fffdf5;box-shadow:0 12px 24px #304b4333;opacity:.95;color:var(--ink);font:700 13px var(--body)}.shadow-drag-ghost .shadow-art{flex:1;min-height:0}.shadow-drag-ghost .shadow-art img,.shadow-drag-ghost .shadow-art svg{height:100%;max-height:90px}.shadow-drag-ghost .shadow-piece-name{margin-top:2px}.playing-shadows .feedback{margin-top:15px;min-height:30px}
@keyframes shadow-arrive{from{transform:scale(.88)}to{transform:scale(1)}}
@media(max-width:720px){.playing-shadows .play-wrap{width:calc(100% - 16px)}.playing-shadows .round-title{margin:10px 0 15px}.playing-shadows .round-title h1{font-size:29px}.playing-shadows .instruction-row p{font-size:13px}.playing-shadows .small-copy{margin:6px 0;font-size:10px}.playing-shadows .board{padding:14px 11px}.shadow-mission{padding:10px;gap:10px}.shadow-mission>img{width:40px;height:58px}.shadow-mission strong{font-size:17px}.shadow-mission p{font-size:11px}.shadow-mission-star{display:none}.shadow-progress{margin:13px 0;font-size:12px;gap:5px}.shadow-progress [role=progressbar]{gap:3px}.shadow-progress [role=progressbar] span{width:18px;height:18px;font-size:11px}.shadow-tables{gap:14px}.shadow-tables h2{font-size:18px;margin-bottom:9px}.shadow-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.shadow-piece,.shadow-slot{min-height:100px;height:100px;padding:6px 3px;border-radius:14px;font-size:10px}.shadow-art{height:65px}.shadow-art img,.shadow-art svg{height:65px;width:65px}.shadow-piece-name{margin-top:4px}.shadow-check{width:19px;height:19px;font-size:12px;bottom:3px;right:3px}.shadow-slot-dot{font-size:12px;bottom:2px;right:5px}.shadow-card-preview{gap:8px}.shadow-card-preview>span{width:60px;height:76px;border-radius:13px}.shadow-card-preview svg{width:54px;height:54px}.shadow-card-preview b{font-size:25px}.playing-shadows .feedback{font-size:12px}.shadow-drag-ghost .shadow-art img,.shadow-drag-ghost .shadow-art svg{max-height:65px}}
@media(prefers-reduced-motion:reduce){.shadow-slot.shadow-matched{animation:none}}

.playing-shadows .round-title{margin:8px 0 18px}.playing-shadows .round-title h1{font-size:34px;margin:0}.playing-shadows .round-title .instruction-row{margin:8px 0}.playing-shadows .round-title .difficulty-options{margin:8px 0}.playing-shadows .round-title .small-copy{font-size:11px;margin:2px 0}.playing-shadows .round-title .new-round{margin-top:5px;padding:8px 16px}.playing-shadows .shadow-mission{padding-top:10px;padding-bottom:10px}.playing-shadows .shadow-mission>img{height:65px}
@media(max-width:720px){.playing-shadows .round-title h1{font-size:28px}.playing-shadows .shadow-mission>img{height:55px}.playing-shadows .round-title .instruction-row p{font-size:12px}.playing-shadows .round-title .small-copy{font-size:10px}}

/* Longer repeating units stay together even on a narrow phone. */
.sequence img{flex:none}.sequence .question{flex:none}
@media(max-width:720px){.sequence img,.sequence .question{width:min(36px,calc((100vw - 92px)/var(--pattern-size,3) - 2px))}}

/* The sixteen classmates meet their teacher in the same woodland palette. */
.class-teacher{display:flex;align-items:center;gap:28px;max-width:650px;margin:28px auto 0;padding:18px 30px;background:#fffdf6;border:1px solid #dce4d1;border-radius:25px;text-align:left;box-shadow:0 5px 0 #e3e9d6}.class-teacher>img{width:145px;height:190px;object-fit:contain;flex:none}.class-teacher>div{min-width:0}.class-teacher h3{font-size:31px;margin:6px 0}.class-teacher p{font-size:14px;line-height:1.7;color:var(--muted)}
@media(max-width:720px){.class-teacher{gap:16px;padding:18px}.class-teacher>img{width:105px;height:150px}.class-teacher .eyebrow{font-size:9px;letter-spacing:1px}.class-teacher h3{font-size:27px}.class-teacher p{font-size:12px}}
@media(max-width:390px){.class-teacher{flex-direction:column;text-align:center;gap:9px}.class-teacher>img{width:110px;height:150px}}

/* Lunch break in the Csodaliget school courtyard. */
.maze-card-map{position:relative;width:220px;height:155px;border:6px solid #a6bc8b;border-radius:18px;background:#f9f3df;display:block}.maze-card-map i{position:absolute;inset:30px 32px;border:6px solid #a6bc8b;border-right:0;border-bottom:0;border-radius:7px}.maze-card-map i:after{content:'';position:absolute;left:50px;top:35px;width:60px;height:55px;border:6px solid #a6bc8b;border-left:0;border-radius:7px}.maze-card-map>img{position:absolute!important;left:8px;bottom:2px;height:95px!important;width:64px!important;object-fit:contain;z-index:1}.maze-card-map>span{position:absolute;right:8px;top:8px;width:68px;height:63px;z-index:1}.maze-card-map svg{width:100%;height:100%}
.maze-mission{display:flex;align-items:center;gap:17px;padding:12px 20px;border-radius:20px;background:#eff4e6;max-width:760px;margin:0 auto 18px}.maze-mission>img{width:57px;height:85px;object-fit:contain;flex:none}.maze-mission .eyebrow{font-size:9px;letter-spacing:1px}.maze-mission strong{display:block;font:700 25px/1.2 var(--heading);margin:6px 0}.maze-mission p{font-size:13px;color:var(--muted);margin:0;line-height:1.5}.maze-friends{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:15px 0}.maze-friend{position:relative;min-width:88px;min-height:88px;border:2px solid #e1e5d5;border-radius:17px;background:#faf9ee;padding:6px 10px;font-size:12px;font-weight:900;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.maze-friend img{height:52px;width:48px;object-fit:contain}.maze-friend.selected{border-color:var(--teal);background:#e5f0e6;box-shadow:0 3px 0 #a8c4ad}.maze-friend.delivered{background:#e8f0dd;border-color:#9db88a;opacity:.85}.maze-friend b{position:absolute;right:5px;top:4px;background:var(--teal);color:#fff;border-radius:50%;width:20px;line-height:20px}.maze-progress{text-align:center;font-weight:900;font-size:15px;color:var(--teal);margin:15px 0}.maze-progress span{display:block;font-size:12px;color:var(--muted);margin-top:4px}.maze-school-sign{text-align:center;font-size:12px;font-weight:900;color:#7b8c69;margin:0 0 9px}.maze-school-sign span{color:#9eac71;font-size:20px;margin:0 7px}.maze-map{width:100%;max-width:450px;aspect-ratio:var(--maze-columns)/var(--maze-rows);margin:auto;position:relative;border:4px solid #dfe6d1;border-radius:15px;background:#faf4e4;overflow:hidden;isolation:isolate}.maze-grid{display:grid;grid-template-columns:repeat(var(--maze-columns),minmax(0,1fr));grid-template-rows:repeat(var(--maze-rows),minmax(0,1fr));width:100%;height:100%;position:relative;z-index:2;border-radius:10px}.maze-grid:focus-visible{outline:4px solid #bd8f53;outline-offset:-5px}.maze-cell{position:relative;border:0;background:transparent;padding:0;min-width:0;min-height:0;border-radius:0;touch-action:pan-y}.maze-cell.maze-current{touch-action:none;cursor:grab}.maze-cell:focus{outline:none}.maze-cell:focus-visible,.maze-cell.hint-target{outline:4px dashed #bd8f53!important;outline-offset:-7px!important;border-radius:10px}.maze-cell.maze-current:before{content:'';position:absolute;inset:8%;border-radius:50%;background:#e8e2bc;box-shadow:0 0 0 2px #c9b681}.maze-pupil{position:absolute;width:85%;height:92%;object-fit:contain;left:7.5%;top:3%;pointer-events:none;z-index:4;filter:drop-shadow(0 2px 0 #bdac7770)}.maze-other{position:absolute;width:43%;height:57%;object-fit:contain;left:2%;top:0;pointer-events:none;z-index:3}.maze-box{position:absolute;inset:10% 5%;pointer-events:none}.maze-box>svg{width:100%;height:100%}.maze-box>img{position:absolute;width:46%;height:55%;object-fit:contain;left:27%;top:37%;background:#fff7e6;border-radius:50%;padding:1px}.maze-box>b{position:absolute;right:-2px;top:-4px;border-radius:50%;width:23px;line-height:23px;background:var(--teal);color:white;font-size:17px}.maze-box.arrived{opacity:.8}.maze-target-goal:after{content:'';position:absolute;inset:5%;border-radius:10px;border:2px dashed #bd8f53;pointer-events:none}.maze-step-dot{font-size:30px;line-height:1;color:#a5b88b}.maze-route,.maze-walls{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.maze-route{z-index:1}.maze-walls{z-index:5}.maze-directions{display:flex;justify-content:center;gap:10px;margin:17px 0 10px}.maze-directions button{width:54px;min-height:54px;border:2px solid #c5d3b8;border-radius:15px;background:#edf3e4;color:var(--teal);font:900 32px/1 var(--body);box-shadow:0 3px 0 #d4dec8}.maze-directions button:active{transform:translateY(2px);box-shadow:none}.maze-controls-help{text-align:center;font-size:12px;line-height:1.7;color:var(--muted);margin:12px auto;max-width:450px}.maze-tools{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:14px 0 0}.maze-tools button{min-height:44px}.maze-tools button:disabled{opacity:.45}.playing-maze .feedback{font-size:13px;min-height:24px;margin-top:18px}
@media(min-width:900px){.maze-game{display:grid;grid-template-columns:minmax(0,1fr)260px;column-gap:25px;grid-template-rows:auto auto 46px 75px 115px 95px auto;align-items:start}.maze-mission{grid-column:1/-1;grid-row:1;width:100%;margin-bottom:17px}.maze-school-sign{display:none}.maze-map{grid-column:1;grid-row:2/8}.maze-friends{grid-column:2;grid-row:2;margin:0 0 16px}.maze-progress{grid-column:2;grid-row:3;margin:0}.maze-directions{grid-column:2;grid-row:4;margin:8px 0}.maze-controls-help{grid-column:2;grid-row:5;margin:8px 0}.maze-tools{grid-column:2;grid-row:6;margin:8px 0}.maze-friend{min-width:95px}.maze-directions{gap:7px}.maze-directions button{width:54px}}
@media(max-width:720px){.playing-maze .play-wrap{width:calc(100% - 16px)}.playing-maze .board{padding:12px 8px}.playing-maze .round-title{margin:10px 0 15px}.playing-maze .round-title h1{font-size:29px}.playing-maze .instruction-row p{font-size:13px}.playing-maze .small-copy{margin:6px 0}.maze-mission{padding:10px;gap:11px;margin-bottom:12px}.maze-mission>img{width:39px;height:64px}.maze-mission strong{font-size:21px}.maze-mission p{font-size:11px}.maze-mission .eyebrow{font-size:8px;letter-spacing:.6px}.maze-friends{gap:7px;margin:12px 0}.maze-friend{min-width:60px;min-height:78px;padding:5px 7px;font-size:10px}.maze-friend img{height:46px;width:42px}.maze-progress{font-size:13px;margin:12px 0}.maze-school-sign{font-size:10px}.maze-school-sign span{font-size:15px}.maze-directions{gap:10px}.maze-controls-help{font-size:11px}.maze-tools{gap:7px}.maze-tools button{font-size:11px}.maze-box>b{width:18px;line-height:18px;font-size:13px}.maze-card-map{width:180px;height:135px}.maze-card-map>img{height:80px!important;width:54px!important}.maze-card-map>span{width:59px;height:57px}.maze-card-map i{inset:24px}.maze-card-map i:after{left:40px;top:32px;width:48px;height:43px}}

.playing-maze .round-title{margin:8px 0 18px}.playing-maze .round-title h1{font-size:34px;margin:0}.playing-maze .round-title .instruction-row{margin:8px 0}.playing-maze .round-title .difficulty-options{margin:8px 0}.playing-maze .round-title .small-copy{font-size:11px;margin:2px 0}.playing-maze .round-title .new-round{margin-top:5px;padding:8px 16px}
@media(max-width:720px){.playing-maze .round-title h1{font-size:28px}.playing-maze .round-title .instruction-row p{font-size:12px}.playing-maze .round-title .small-copy{font-size:10px}}

/* Illustrated colour stories and the ten-object collection rail. */
.color-collector{position:sticky;top:76px;z-index:10;margin:0 auto 22px;padding:10px 14px 13px;background:#fffdf8f5;backdrop-filter:blur(8px);border:1px solid #dce4d2;border-radius:20px;box-shadow:0 5px 15px #304b4312;max-width:940px}
.color-collector-heading{display:flex;align-items:center;gap:12px;margin-bottom:8px}.color-collector-heading>img{width:30px;height:42px;object-fit:contain}.color-collector-heading>div{flex:1;min-width:0}.color-collector-heading strong{display:flex;align-items:center;gap:8px;font:700 20px/1.2 var(--heading)}.color-collector-heading strong i{width:20px;height:20px;flex:none;border:1px solid #304b4355;border-radius:50%}.color-collector-heading p{font-size:12px;font-weight:900;color:var(--teal);margin:2px 0 0}.color-collector-star{font-size:26px;color:#d8b958}
.color-collection-slots{display:grid;grid-template-columns:repeat(var(--color-target-count),minmax(0,1fr));gap:7px;list-style:none;padding:0;margin:0}.color-collection-slot{position:relative;min-width:0;aspect-ratio:1.1;border:2px dashed #d9ddcb;background:#f0f1e7;border-radius:12px;overflow:hidden;display:grid;place-items:center}.collection-preview{display:block;width:100%;height:100%;padding:4px;opacity:.55;filter:saturate(.5)}.collection-preview svg{display:block;width:100%;height:100%;border-radius:6px}.color-collection-slot.collected{background:#edf4de;border:2px solid #91af77}.color-collection-slot.collected .collection-preview{filter:none;opacity:1}.collection-check{display:none;position:absolute;right:1px;bottom:1px;width:18px;height:18px;line-height:18px;text-align:center;background:var(--teal);color:white;border-radius:50%;font-size:12px;font-weight:900}.collected .collection-check{display:block}.color-collection-slot.arriving .collection-preview,.color-collection-slot.arriving .collection-check{visibility:hidden}.color-collection-mode>.color-search>.color-mission{display:none}
.color-story-caption{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}.color-story-caption h2{font-size:27px;line-height:1.2;margin-top:4px}.color-story-caption>span{font-size:11px;color:var(--muted);white-space:nowrap}.color-story-caption .eyebrow{font-size:10px}.color-story-instruction{font-size:13px;color:var(--muted);margin:10px 0 12px}.color-view-tools{display:flex;align-items:center;gap:7px;margin:12px 0}.color-view-tools button{min-width:46px;min-height:44px;padding:8px 15px;border:1px solid #d7dfca;border-radius:10px;background:#fffdf5;font-weight:900;color:var(--teal)}.color-view-tools button:disabled{opacity:.4}.color-view-tools [data-color-zoom=fit]{font-size:12px}.color-view-tools>span{font-size:11px;color:var(--muted);margin-left:auto}
.color-story-viewport{width:100%;max-height:650px;overflow:auto;border:3px solid #dce4cf;border-radius:19px;background:#f0e4c9;overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-width:thin;cursor:grab;position:relative;isolation:isolate}.color-story-viewport.is-panning{cursor:grabbing;user-select:none}.color-story-canvas{position:relative;width:calc(100% * var(--color-zoom,1));min-width:calc(640px * var(--color-zoom,1));overflow:hidden}.color-story-viewport[data-fit=true] .color-story-canvas{width:100%;min-width:0}.color-story-image{display:block;width:100%;height:auto;pointer-events:none;user-select:none}.color-story-background{position:absolute;inset:0;width:100%;height:100%;background:transparent;border:0;cursor:grab}.color-story-hotspot.color-object{position:absolute;display:block;max-width:none;min-width:44px;min-height:44px;padding:0;margin:0;transform:translate(-50%,-50%);border:0;border-radius:15%;background:transparent;cursor:pointer;justify-self:auto;touch-action:pan-x pan-y}.color-story-hotspot.color-object:hover:not(:disabled){background:transparent;border:0}.color-story-hotspot.color-object.color-found{background:#fffdf51c;border:2px dashed #f9ffe2;box-shadow:0 0 0 1px #376c49aa}.color-story-hotspot.hint-target{outline:4px solid #ffe17a;outline-offset:3px;background:#ffe88833!important}.color-story-hotspot:focus-visible{outline:4px solid #fff4a4;outline-offset:2px;background:#fff6c322}.color-story-hotspot .color-object-check{width:23px;height:23px;bottom:-5px;right:-5px;pointer-events:none}.color-pan-note{text-align:center;font-size:12px;color:var(--muted);padding:11px 0 2px}.color-flight{position:fixed;z-index:220;pointer-events:none;border:3px solid #fffbea;border-radius:13px;background:#fffdf7;box-shadow:0 7px 25px #304b4340;overflow:hidden;transform-origin:top left}.color-flight .collection-preview{filter:none;opacity:1;padding:0}
@media(max-width:720px){.color-collector{top:66px;padding:7px 9px 9px;margin-bottom:17px;border-radius:15px}.color-collector-heading{gap:7px;margin-bottom:6px}.color-collector-heading>img{width:25px;height:34px}.color-collector-heading strong{font-size:16px}.color-collector-heading strong i{width:17px;height:17px}.color-collector-heading p{font-size:11px}.color-collector-star{font-size:20px}.color-collection-slots{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.color-collection-slot{aspect-ratio:1.2;border-radius:8px}.collection-preview{padding:2px}.color-story-caption h2{font-size:22px}.color-story-caption>span{display:none}.color-story-instruction{font-size:12px}.color-story-viewport{max-height:440px;border-width:2px;border-radius:13px}.color-story-mode .color-object.color-story-hotspot{min-width:44px;min-height:44px;max-width:none;padding:0;transform:translate(-50%,-50%)}.color-view-tools button{padding:7px 12px}.color-view-tools>span{font-size:10px}.color-pan-note{font-size:11px}.playing-color-search .round-title{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.color-flight{display:none}}
.card-visual>.color-story-card{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover}.card-visual:has(.color-story-card) .card-tag{z-index:2}.color-card-count{position:absolute;z-index:2;bottom:13px;right:13px;border-radius:12px;background:#fffdf5e8;padding:7px 11px;font-size:12px;font-weight:900;color:var(--teal-dark)}
.number-coloring-card{width:100%;height:100%;position:absolute;inset:0}.number-coloring-card svg{width:100%;height:100%;transform:scale(1.03)}
.coloring-gallery-picture{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;border-radius:10px;background:#fffdf7}
.playing-number-coloring .board{max-width:1120px;padding:20px 24px 26px}.number-coloring-mode{max-width:1020px;margin:auto}.number-color-palette{position:sticky;top:76px;z-index:15;padding:12px 16px;background:#fffdf8f7;border:1px solid #dce4d2;border-radius:19px;box-shadow:0 5px 18px #304b4315;backdrop-filter:blur(8px)}
.number-palette-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.number-palette-heading strong{font:700 22px/1.2 var(--heading)}.number-palette-heading p{font-size:12px;color:var(--teal);font-weight:900}.number-palette-heading>span{font-size:12px;display:flex;align-items:center;gap:8px}.number-palette-heading b{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--teal);color:white}
.number-palette-buttons{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}.number-paint-swatch{position:relative;width:52px;height:52px;flex:none;border-radius:14px;background:var(--paint-swatch);border:2px solid #304b4340;padding:3px;box-shadow:0 3px 0 #304b4318}.number-paint-swatch>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;margin:auto;background:#fffdf7ef;color:#304b43;font-size:16px;line-height:1;font-weight:900}.number-paint-swatch.selected{outline:3px solid var(--teal);outline-offset:3px}.number-paint-swatch i{position:absolute;right:-4px;bottom:-4px;background:var(--teal);color:white;border-radius:50%;width:18px;height:18px;font-size:12px;line-height:18px;font-style:normal}.number-paint-swatch.color-complete{box-shadow:none}
.number-coloring-caption{text-align:center;font-size:13px;color:var(--muted);padding:16px 0 3px}.number-coloring-viewport{max-height:650px;overflow:auto;border:2px solid #dce4cf;border-radius:18px;background:#fffdf7;overscroll-behavior:contain;touch-action:pan-x pan-y;cursor:grab;position:relative;scrollbar-width:thin}.number-coloring-viewport.is-panning{cursor:grabbing;user-select:none}.number-coloring-paper{width:calc(100% * var(--color-zoom,1));min-width:calc(900px * var(--color-zoom,1));position:relative}.number-coloring-viewport[data-fit=true] .number-coloring-paper{width:100%;min-width:0}.number-coloring-canvas{display:block;width:100%;height:auto;user-select:none;touch-action:pan-x pan-y}.number-coloring-canvas .paint-region{cursor:pointer;outline:none}.paint-region.paint-correct{cursor:default}.number-coloring-canvas .paint-region:focus-visible path,.number-coloring-canvas .paint-region.hint-target path{stroke:#d69842;stroke-width:6;stroke-linejoin:round}.number-coloring-canvas .paint-region.hint-target{outline:none!important}.paint-marker{cursor:pointer}.paint-number-selected circle{stroke-width:4}.number-coloring-tools{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;padding:14px 0}.number-coloring-tools .option{min-height:44px}.number-coloring-tools button:disabled{opacity:.4}.saved-drawing .number-coloring-canvas{width:100%;height:auto}
.coloring-gallery-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.coloring-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.coloring-gallery>button{min-height:175px;border:1px solid #dce4cf;background:#fffdf7;border-radius:16px;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.coloring-gallery>button:hover{background:#eff4e6}.coloring-gallery strong{font:700 17px/1.15 var(--heading)}.coloring-gallery small{font-size:10px;line-height:1.4;color:var(--muted)}.coloring-gallery-cast{display:flex;align-items:center;justify-content:center;gap:2px;width:100%;height:105px}.coloring-gallery-cast img{min-width:0;max-width:33%;width:90px;height:100%;object-fit:contain}
@media(max-width:720px){.playing-number-coloring .board{padding:13px 8px 18px}.number-color-palette{top:66px;padding:10px 8px;border-radius:14px}.number-palette-heading{gap:8px;margin-bottom:9px}.number-palette-heading strong{font-size:18px}.number-palette-heading>span{font-size:10px;gap:4px}.number-palette-heading b{width:23px;height:23px;flex:none}.number-palette-heading p{font-size:10px}.number-palette-buttons{gap:8px}.number-paint-swatch{width:44px;height:44px;border-radius:11px}.number-paint-swatch>span{width:25px;height:25px;font-size:14px}.number-coloring-caption{font-size:11px;padding-top:13px}.number-coloring-viewport{max-height:440px;border-radius:12px}.number-coloring-tools{gap:8px}.number-coloring-tools .option{padding:8px 10px;font-size:11px}.coloring-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.coloring-gallery>button{padding:7px;min-height:150px}.coloring-gallery strong{font-size:15px}.coloring-gallery-cast{height:90px}.coloring-gallery-cast img{max-width:34%}.coloring-gallery-tabs .option{font-size:11px;padding:8px 9px}}
/* Animal mahjong: the logical stack and the visible stack share the same geometry. */
.mahjong-preview{position:relative;display:block;width:240px;height:145px;transform:rotate(-5deg)}
.mahjong-preview>span{position:absolute;width:73px;height:100px;left:calc(12px + var(--i)*48px);top:calc(22px - var(--i)*4px);border-radius:10px;transform:rotate(calc(var(--i)*4deg));--mahjong-depth-x:4px;--mahjong-depth-y:9px}
.card-visual .mahjong-preview img{width:100%;height:100%;padding:6px;filter:none}
.playing-mahjong .board{padding:22px 18px;overflow:visible}
.mahjong-game{max-width:650px;margin:auto}
.mahjong-status{display:flex;justify-content:space-between;align-items:center;gap:12px}
.mahjong-status strong{display:block;font:700 27px/1.3 var(--heading)}
.mahjong-status .eyebrow{font-size:10px}.mahjong-remaining{font-size:13px;color:var(--muted)}
.mahjong-meter{height:8px;background:#e9eddc;border-radius:8px;overflow:hidden;margin:12px 0 18px}
.mahjong-meter>span{display:block;height:100%;background:#6e9a69;border-radius:8px;transition:width .2s}
.mahjong-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.mahjong-tools .option{font-size:13px;padding:8px 12px}
.mahjong-rule{font-size:13px;line-height:1.6;color:#637762;max-width:550px;margin:0 auto 16px}

.mahjong-felt{padding:22px 16px 20px 12px;border-radius:24px;background:radial-gradient(ellipse at 50% 45%,#e4eed5,#cbdcb9);border:1px solid #bfd1ad;box-shadow:inset 0 2px 12px #607b4412}
.mahjong-table{position:relative;max-width:510px;margin:auto;isolation:isolate;--mahjong-layer-rise:9px;--mahjong-depth-x:4px;--mahjong-depth-y:9px}.mahjong-table[style*="--mahjong-cols:4"]{max-width:400px}
.mahjong-tile{position:absolute;min-width:44px;min-height:44px;border:0;border-radius:10px;background:transparent;padding:0;display:flex;align-items:center;justify-content:center;touch-action:manipulation;overflow:visible}
/* The solid body projects below and to the right of the raised ivory face. */
.mahjong-tile::before,.mahjong-preview>span::before{content:'';position:absolute;inset:0;transform:translateX(var(--mahjong-depth-x));border-radius:inherit;border:1px solid #76906b;background:linear-gradient(105deg,#a3b58b 0%,#718f68 68%,#5b7957 100%);box-shadow:inset -2px -2px 0 #496a4e55,inset 1px 1px 0 #dce6bd,2px 4px 5px #304b4340;pointer-events:none}
.mahjong-tile-face{position:absolute;inset:0 0 var(--mahjong-depth-y);z-index:1;display:flex;align-items:center;justify-content:center;border:1px solid #b9b79c;border-radius:inherit;background:linear-gradient(140deg,#fffdf1 0%,#f0ead4 100%);box-shadow:inset 0 2px 0 #fffef9,inset 2px 0 0 #fffef9,inset -2px -3px 0 #d8d1b4,1px 2px 2px #4b58332b;padding:4px;pointer-events:none;transition:background .15s,border-color .15s}
.mahjong-tile img{width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.mahjong-tile.mahjong-free .mahjong-tile-face{background:linear-gradient(140deg,#fffef8 0%,#fff8df 100%);border-color:#b0af8d}
.mahjong-tile.mahjong-blocked img{opacity:.62}.mahjong-tile.mahjong-blocked .mahjong-tile-face{background:linear-gradient(140deg,#eeeddf,#dcdac4)}.mahjong-tile.mahjong-free:hover .mahjong-tile-face{background:linear-gradient(140deg,#fffef5,#ffedbd)}

.mahjong-tile.selected .mahjong-tile-face{box-shadow:inset 0 2px 0 #fffef9,inset 2px 0 0 #fffef9,inset -2px -3px 0 #d8d1b4,1px 2px 2px #4b58332b,0 0 12px 2px #f9d87966}
.mahjong-selection-sparkles{display:none;position:absolute;inset:-6px;z-index:2;pointer-events:none}
.mahjong-tile.selected .mahjong-selection-sparkles{display:block}
.mahjong-selection-sparkles>span{position:absolute;width:12px;height:12px;background:radial-gradient(circle,#fffef1 0%,#ffe8a2 42%,#e8b855 100%);clip-path:polygon(50% 0,62% 37%,100% 50%,62% 63%,50% 100%,38% 63%,0 50%,38% 37%);filter:drop-shadow(0 0 2px #fff9da);opacity:.8;animation:mahjong-selection-twinkle 2.4s ease-in-out infinite}
.mahjong-selection-sparkles>span:nth-child(1){left:6%;top:4%;animation-delay:-.3s}
.mahjong-selection-sparkles>span:nth-child(2){right:4%;top:14%;width:9px;height:9px;animation-delay:-1.5s}
.mahjong-selection-sparkles>span:nth-child(3){right:0;bottom:23%;animation-delay:-.8s}
.mahjong-selection-sparkles>span:nth-child(4){left:28%;bottom:0;width:10px;height:10px;animation-delay:-2s}
.mahjong-selection-sparkles>span:nth-child(5){left:0;top:55%;width:8px;height:8px;animation-delay:-1.1s}
@keyframes mahjong-selection-twinkle{0%,100%{opacity:.35;transform:scale(.65)}50%{opacity:1;transform:scale(1.15)}}
.mahjong-tile:focus-visible{outline-offset:1px}.mahjong-tile.hint-target{outline:3px dashed #b56924;outline-offset:1px}
.mahjong-stalled{padding:14px;border:1px solid #d7bb7b;background:#fff2d0;border-radius:14px;font-size:14px;margin-bottom:15px}.mahjong-stalled strong{display:block}.mahjong-stalled .button{margin-top:10px;min-height:44px;padding:8px 16px}
.mahjong-footnote{text-align:center;font-size:12px;color:var(--muted);margin-top:15px}
.mahjong-empty{position:absolute;inset:0;display:flex;justify-content:center;align-content:center;flex-wrap:wrap;align-items:center}.mahjong-empty>span,.mahjong-empty>strong{width:100%;text-align:center;font:700 28px var(--heading)}.mahjong-empty>span{color:#bd9548}.mahjong-empty img{width:30%;height:45%;object-fit:contain}
@media(max-width:600px){.playing-mahjong .play-wrap{width:calc(100% - 16px)}.playing-mahjong .board{padding:16px 5px}.playing-mahjong .round-title h1{font-size:29px}.mahjong-felt{padding:18px 6px 18px 4px;border-radius:16px}.mahjong-table{--mahjong-layer-rise:7px;--mahjong-depth-x:3px;--mahjong-depth-y:7px}.mahjong-tile{border-radius:7px}.mahjong-tile-face{padding:2px}.mahjong-status{padding:0 5px}.mahjong-status strong{font-size:23px}.mahjong-remaining{font-size:11px}.mahjong-tools{gap:6px;justify-content:center}.mahjong-tools .option{font-size:11px;padding:8px}.mahjong-rule{padding:0 6px;font-size:12px}.mahjong-footnote{font-size:11px}}
@media(prefers-reduced-motion:reduce){.mahjong-tile-face,.mahjong-meter>span{transition:none}}
.color-flat-canvas{background:#faf3df}
.flat-scene-background{display:block;width:100%;height:auto;pointer-events:none;user-select:none}
.color-flat-canvas .color-story-background{background:transparent}
.color-object.flat-color-object{position:absolute;display:block;max-width:none;min-width:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;transform:translate(-50%,-50%);touch-action:pan-x pan-y;cursor:pointer;justify-self:auto}
.flat-color-object svg{width:100%;height:100%;display:block;transform:rotate(var(--prop-turn));pointer-events:none}
.color-object.flat-color-object:hover:not(:disabled){background:transparent;border:0;box-shadow:none}
.flat-color-object:focus-visible,.flat-color-object.hint-target{outline:3px dashed #b57130!important;outline-offset:1px;border-radius:12px;background:#fff3bd44!important}
.color-object-flight{border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.color-object-flight .collection-preview{padding:0;opacity:1;filter:none}
.color-object-flight svg{width:100%;height:100%;display:block}
.color-object.color-removed{visibility:hidden;pointer-events:none}
.color-flat-viewport[data-fit=true] .flat-color-object{min-width:0;min-height:0}
.color-flat-mode .collection-preview svg{border-radius:0}
.game-prop{display:block;overflow:visible;pointer-events:none;user-select:none}
.game-prop image{pointer-events:none}
.count-card-prop{right:12%;bottom:19%;width:90px;height:95px;display:flex;align-items:center;gap:2px}
.count-card-prop .game-prop{width:70px;height:88px;flex:none}
.count-card-prop b{font-size:30px}
.carrot{display:grid;place-items:center;padding:4px}
.carrot .game-prop{width:42px;height:50px}
.basket-slot>span{display:block;width:34px;height:38px}
.basket-slot .game-prop{width:100%;height:100%}
@media(max-width:720px){.count-card-prop{right:8%;bottom:13%;width:70px;height:70px}.count-card-prop .game-prop{width:47px;height:64px}.count-card-prop b{font-size:24px}.carrot .game-prop{width:36px;height:44px}.basket-slot>span{width:29px;height:32px}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.card-visual .puzzle-card-scene{width:90%;height:100%;object-fit:contain;align-self:center}
.puzzle-game{width:100%}.puzzle-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}.puzzle-heading h2{font-size:28px}.puzzle-heading p{font-size:13px;color:var(--muted);margin-top:6px}.puzzle-heading>strong{flex:none;font-size:17px;color:var(--teal);padding:8px 14px;border-radius:16px;background:#eef2e5}
.puzzle-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}.puzzle-drag-instruction{font-weight:800;color:var(--teal);font-size:14px;margin-bottom:20px}
.puzzle-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:25px;align-items:start}.puzzle-board-wrap{min-width:0;position:sticky;top:90px;background:var(--paper);z-index:4}.puzzle-game .puzzle-board{width:100%;display:grid;gap:2px;border:5px solid #cedcc3;border-radius:14px;padding:2px;background:#dde6d3;overflow:hidden;box-shadow:0 5px 0 #d8dfcc}
.puzzle-game .puzzle-slot{position:relative;min-width:0;min-height:0;border:0;border-radius:2px;overflow:hidden;padding:0;background:#f1f2e6;aspect-ratio:auto;display:grid;place-items:center}.puzzle-empty-dot{color:#b8c6a8;font-size:20px;pointer-events:none}.puzzle-slot.puzzle-placed{background:#fff7e9}.puzzle-game .puzzle-slot:disabled{opacity:1}.puzzle-game .puzzle-slot.puzzle-over{outline:4px solid #d99b54;outline-offset:-4px;background:#f9e8bd;z-index:1}
.puzzle-piece-grid{display:grid;gap:9px}.puzzle-tray{min-width:0}.puzzle-tray h3{display:flex;justify-content:space-between;font-size:21px;color:#71806b;margin:0 0 12px}.puzzle-tray h3 span{color:#a7b89b}
.puzzle-piece{position:relative;min-width:44px;min-height:44px;border:2px solid #d9dfcd;background:#fff5e5;border-radius:10px;padding:0;overflow:hidden;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:0 4px 0 #e2e5d7}.puzzle-piece.selected{outline:3px solid var(--teal);outline-offset:2px}.puzzle-piece.puzzle-lifted{opacity:.25}.puzzle-used-space{display:grid;place-items:center;background:#eef2e5;border:2px dashed #dae2cf;border-radius:10px;color:#b7c7aa;font-size:22px}
.puzzle-game .puzzle-fragment,.puzzle-drag-ghost .puzzle-fragment{position:absolute;inset:0;display:block;width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:0;background-repeat:no-repeat;box-shadow:none;pointer-events:none}.puzzle-ghost-image{opacity:.22}.puzzle-grip{position:absolute;right:3px;bottom:2px;font-size:14px;line-height:19px;background:#fff9e8c9;color:#617968;border-radius:5px;padding:0 4px;pointer-events:none}
.puzzle-drag-ghost{position:fixed;padding:0;z-index:250;pointer-events:none;border:2px solid #fff8e9;border-radius:9px;background:#fff5e5;box-shadow:0 10px 25px #304b4355;transform:translate(-50%,-50%);overflow:hidden}
.puzzle-game .puzzle-reference{margin-top:14px;text-align:center}.puzzle-reference summary{color:var(--teal);cursor:pointer;font-weight:800;font-size:12px;padding:6px}.puzzle-game .puzzle-reference img{display:block;width:115px;height:auto;max-height:160px;object-fit:contain;margin:10px auto 0;border:3px solid #e0e5d5;border-radius:10px}.puzzle-gallery .coloring-gallery-picture{aspect-ratio:1;object-fit:contain}
.playing-puzzle .round-title{margin-bottom:22px}.playing-puzzle .board{padding:25px;overflow:visible}
@media(max-width:720px){.playing-puzzle .play-wrap{width:calc(100% - 16px)}.playing-puzzle .round-title h1{font-size:29px}.playing-puzzle .board{padding:16px 12px}.puzzle-heading{align-items:start;gap:6px}.puzzle-heading h2{font-size:23px}.puzzle-heading p{font-size:11px}.puzzle-heading>strong{font-size:12px;padding:7px 8px}.puzzle-workspace{display:flex;flex-direction:column;gap:20px}.puzzle-board-wrap,.puzzle-tray{width:100%}.puzzle-board-wrap{top:73px}.puzzle-game .puzzle-board{border-width:4px}.puzzle-piece-grid{gap:7px}.puzzle-tray h3{font-size:19px;margin-bottom:9px}.puzzle-tools{gap:7px}.puzzle-tools .option{font-size:11px;padding:7px 10px}.puzzle-drag-instruction{font-size:12px;margin-bottom:13px}.puzzle-piece{border-radius:8px}.puzzle-grip{font-size:12px;line-height:15px;padding:0 2px}.puzzle-game .puzzle-reference{margin-top:5px}.puzzle-reference summary{font-size:10px;padding:4px}.puzzle-game .puzzle-reference img{width:70px;max-height:94px}.puzzle-empty-dot{font-size:16px}}
/* Story shadows: painted cutouts fill genuine gaps in one scene. */
.playing-shadows .board{padding:22px;overflow:visible}.playing-shadows .play-wrap{width:min(1000px,calc(100% - 40px))}.shadow-story-heading{display:flex;justify-content:space-between;align-items:start;gap:18px}.shadow-story-heading h2{font-size:28px}.shadow-story-heading p{font-size:13px;color:var(--muted);margin-top:8px;max-width:570px}.shadow-scene-choice{font-size:11px;font-weight:800;color:var(--muted);display:grid;gap:5px;max-width:235px}.shadow-scene-choice select{width:100%;min-height:44px;border:1px solid #d7dfcc;border-radius:12px;background:#fffdf5;color:var(--ink);padding:7px 10px;font:800 12px var(--body)}.shadow-story-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:22px;align-items:start}.shadow-scene-panel{position:sticky;top:87px;min-width:0;background:var(--paper);z-index:4}.shadow-scene{position:relative;aspect-ratio:1000/760;width:min(100%,max(360px,calc((100dvh - 140px)*1.315789)));margin-inline:auto;overflow:hidden;border-radius:20px;isolation:isolate}.shadow-scene-background{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.shadow-story-slot{position:absolute;transform:translate(-50%,-50%);display:block;min-width:44px;min-height:44px;padding:0!important;background:none!important;border:0!important;border-radius:0;box-shadow:none!important;cursor:pointer}.shadow-story-slot .shadow-art{width:100%;height:100%;display:block;pointer-events:none}.shadow-story-slot .shadow-art img,.shadow-story-slot .shadow-art svg{width:100%;height:100%;max-width:none;object-fit:contain;pointer-events:none}.shadow-story-slot:disabled{opacity:1;cursor:default}.shadow-story-slot.shadow-over,.shadow-story-slot.hint-target,.shadow-story-slot:focus-visible{filter:drop-shadow(3px 0 0 #e7b34f) drop-shadow(-3px 0 0 #e7b34f) drop-shadow(0 3px 0 #e7b34f) drop-shadow(0 -3px 0 #e7b34f)}.shadow-story-slot:focus-visible{outline:none}.shadow-story-slot.shadow-matched{animation:none}.shadow-story-slot.shadow-matched .shadow-art{animation:shadow-arrive .3s ease-out}.shadow-story-slot.hint-target{outline:0!important;background:none!important}.shadow-scene-check{position:absolute;bottom:3%;right:5%;color:#27766f;font-size:16px;font-weight:900;text-shadow:0 0 4px #fff8e6;pointer-events:none}.shadow-scene-caption{font-size:12px;text-align:center;color:var(--muted);padding-top:10px}.shadow-story-pieces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 8px;align-items:center}.shadow-tray h3{font-size:20px;display:flex;justify-content:space-between;color:#64776a;margin:0 0 12px}.shadow-tray h3 span{color:#a5b79a}.shadow-story-piece,.shadow-piece-space{min-width:0;min-height:95px;padding:0;border:0;border-radius:0;background:none!important;box-shadow:none;display:flex;flex-direction:column;align-items:center;justify-content:center;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}.shadow-story-piece .shadow-art,.shadow-piece-space:before{display:block;width:min(100%,var(--shadow-source-size));height:auto;aspect-ratio:var(--shadow-source-ratio);max-height:145px;pointer-events:none}.shadow-piece-space:before{content:''}.shadow-story-piece .shadow-art img,.shadow-story-piece .shadow-art svg{width:100%;height:100%;object-fit:contain;pointer-events:none}.shadow-story-piece .shadow-piece-name{font-size:12px;margin-top:2px;line-height:1.3}.shadow-story-piece.selected{border:0;box-shadow:none}.shadow-story-piece.selected .shadow-art,.shadow-story-piece.hint-target .shadow-art,.shadow-story-piece:focus-visible .shadow-art{filter:drop-shadow(0 0 5px #e7af3e)}.shadow-story-piece.hint-target{outline:0!important;background:none!important}.shadow-story-piece:focus-visible{outline:0}.shadow-piece-space{cursor:default}.shadow-tap-help{font-size:11px;color:var(--muted);margin-top:14px;text-align:center}.shadow-drag-ghost{position:fixed!important;z-index:250;display:block!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;pointer-events:none!important;transform:translate(-50%,-60%);filter:drop-shadow(0 7px 5px #304b4322);opacity:1}.shadow-drag-ghost img,.shadow-drag-ghost svg{width:100%;height:100%;object-fit:contain;pointer-events:none}.shadow-story-card-preview{display:flex;align-items:center;gap:12px}.shadow-preview-tree{font-size:145px;color:#a5c38f;position:relative;line-height:1}.shadow-preview-tree i{position:absolute;left:35px;top:32px;width:45px;height:45px;filter:brightness(0)}.shadow-preview-tree svg{width:45px;height:45px}.shadow-story-card-preview>b{font-size:30px;color:var(--teal)}.shadow-preview-cutout svg{width:90px;height:90px}
@media(max-width:800px){.shadow-story-layout{grid-template-columns:minmax(0,1fr) 175px;gap:14px}.shadow-story-heading h2{font-size:24px}.shadow-story-piece .shadow-art{max-height:110px}.shadow-scene-choice{max-width:200px}}
@media(max-width:600px){.playing-shadows .play-wrap{width:calc(100% - 16px)}.playing-shadows .board{padding:14px 10px}.shadow-story-heading{display:block}.shadow-story-heading h2{font-size:24px}.shadow-story-heading p{font-size:12px}.shadow-scene-choice{margin-top:12px;display:flex;align-items:center;max-width:none;gap:10px}.shadow-scene-choice select{flex:1;min-width:0}.shadow-story-layout{display:flex;flex-direction:column;gap:18px}.shadow-scene-panel{top:68px;width:100%;padding-bottom:6px}.shadow-scene{border-radius:14px}.shadow-scene-caption{font-size:10px;padding-top:5px}.shadow-story-layout>.shadow-tray{width:100%}.shadow-story-pieces{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 4px}.shadow-story-piece,.shadow-piece-space{min-height:78px}.shadow-story-piece .shadow-art,.shadow-piece-space:before{max-height:85px}.shadow-story-piece .shadow-piece-name{font-size:10px;overflow-wrap:anywhere}.shadow-tray h3{font-size:18px;margin-bottom:8px}.shadow-scene-check{font-size:12px}.shadow-story-game .shadow-progress{margin:13px 0;font-size:12px}.shadow-story-game .shadow-progress [role=progressbar] span{width:17px;height:17px}.shadow-tap-help{margin-top:8px}}

.card-visual .shadow-story-card-image{width:100%;height:100%;object-fit:cover;object-position:center}

/* A generous hit area must not enlarge the animal or object itself. */
.shadow-scene{container-type:inline-size}
.shadow-story-slot .shadow-art{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:var(--shadow-item-width);height:var(--shadow-item-height)}
.shadow-story-piece .shadow-art{height:auto;max-height:none;max-width:120px}
.shadow-story-slot.shadow-over{filter:drop-shadow(2px 0 0 #e7b34f) drop-shadow(-2px 0 0 #e7b34f) drop-shadow(0 2px 0 #e7b34f) drop-shadow(0 -2px 0 #e7b34f)}
@media(max-width:600px){.shadow-story-piece .shadow-art{max-width:75px}}
.shadow-story-slot.shadow-matched .shadow-art{animation:shadow-story-arrive .22s ease-out}
@keyframes shadow-story-arrive{from{transform:translate(-50%,-50%) scale(.88)}to{transform:translate(-50%,-50%) scale(1)}}
@media(prefers-reduced-motion:reduce){.shadow-story-slot.shadow-matched .shadow-art{animation:none}}
