:root{--ink:#302947;--purple:#7354cb;--line:#e4dfd7;font-family:Nunito,"Arial Rounded MT Bold","Trebuchet MS",sans-serif;color:var(--ink);background:#fcfaf5}
*{box-sizing:border-box}body{margin:0}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #533aa2;outline-offset:4px}.symbols,[hidden]{display:none!important}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;flex:none}
header{border-bottom:1px solid var(--line);background:#fffdf8}.nav,main{max-width:1056px;width:calc(100% - 72px);margin:auto}.nav{height:54px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:13px;font-size:25px;font-weight:900;letter-spacing:-1.4px}.logo{display:inline-flex;align-items:center;padding-left:2px}.logo i{font:bold 23px/32px "Trebuchet MS",sans-serif;text-align:center;width:30px;height:32px;border-radius:7px;background:#a98ade;box-shadow:inset -2px -3px #8464bd;color:white;transform:rotate(-11deg)}.logo i+i{background:#f9bd64;box-shadow:inset -2px -3px #e59944;color:#6a411d;transform:rotate(10deg) translateY(4px);margin-left:-5px}.sound,.stars,.action,.kb-heading h2{display:inline-flex;align-items:center;justify-content:center;gap:9px}.sound{border:1.5px solid var(--line);border-radius:24px;padding:9px 16px;background:#fffefa;font-size:14px;font-weight:700}.sound .icon{width:18px;height:18px;color:#655779}.sound:hover{background:#f3eefb}
main{padding:12px 0 32px}.heading,.kb-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.heading{margin-bottom:10px}h1,h2,p{margin:0}.titles {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.titles h1 {
  border-left: 1px solid var(--line);
  padding-left: 14px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.7px;
  color: #675779;
}.heading p{color:#675f72;font-size:16px;line-height:1.45}.stars{font-size:15px;font-weight:800;border-radius:20px;background:#fff1c9;border:1.5px solid #efd89b;padding:8px 14px;white-space:nowrap}.stars .icon{fill:#ffcc57;stroke:#b58029;width:21px}
.stage{position:relative;isolation:isolate;overflow:hidden;border-radius:29px;border:2px solid #d3c4eb;background-color:#eee5fb;background-image:radial-gradient(#dcccEE 1.3px,transparent 1.5px);background-size:18px 18px;min-height:304px;display:grid;place-items:center}.round{position:absolute;top:20px;left:23px;background:#fcf8ff;padding:7px 12px;border-radius:20px;font-size:10px;letter-spacing:1.65px;font-weight:900;color:#6d568f;border:1px solid #deceeF}.game{display:flex;flex-direction:column;align-items:center;padding:25px 8px 21px;position:relative;z-index:2;pointer-events:none}.game button{pointer-events:auto}.flashcard{width:142px;height:151px;background:#fffdf4;border:2px solid #4a3b58;border-radius:22px;box-shadow:3px 6px 0 #ad96ca;display:grid;place-items:center;transform:rotate(-4deg);position:relative}.flashcard:before,.flashcard:after{content:"";position:absolute;width:5px;height:5px;border-radius:50%;background:#dbd1c6}.flashcard:before{left:12px;top:12px}.flashcard:after{right:12px;bottom:12px}.flashcard span{font:900 112px/1 "Trebuchet MS",sans-serif;color:#6e50b5;letter-spacing:-5px;padding-right:4px}#message{margin:17px 0 10px;font-size:21px;line-height:1.2;font-weight:800;letter-spacing:-.6px;text-align:center}.action{min-height:42px;border-radius:15px;border:1.5px solid #6044ab;box-shadow:0 3px #50398f;padding:7px 21px;background:var(--purple);color:white;font-weight:bold;font-size:15px}.action:hover{background:#6546bc}.action:active{transform:translateY(2px);box-shadow:0 1px #50398f}#play{font-size:14px}.action .icon{width:18px}
.decoration{position:absolute;inset:0;z-index:0;pointer-events:none}.pencil-group,.blocks{position:absolute;width:170px;height:184px;bottom:44px}.pencil-group{left:11%}.blocks{right:10%;height:158px}.toy-shadow{height:12px;background:#c7b3df;opacity:.55;border-radius:50%;position:absolute;bottom:0;width:118px;left:20px}.pencil{width:54px;height:174px;position:absolute;bottom:9px;left:50px;transform:rotate(18deg);filter:drop-shadow(2px 3px 0 #bba4ce)}.eraser{height:29px;background:linear-gradient(90deg,#f9adad 0 25%,#f58e95 26% 78%,#dc7185 79%);border:2px solid #5b4154;border-radius:14px 14px 0 0}.ferrule{height:14px;background:linear-gradient(#c6e4e1 54%,#9ebbbf 55%);border:2px solid #5b4154;border-top:0}.shaft{height:97px;border:2px solid #594452;border-top:0;border-bottom:0;background:linear-gradient(90deg,#ffe39a 0 23%,#ffca61 24% 77%,#efa545 78%);position:relative}.point{height:35px;background:#594452;clip-path:polygon(0 0,100% 0,51% 100%);position:relative}.point:before{content:"";position:absolute;inset:0 2px 3px;background:linear-gradient(#f3cca2 0 65%,#544253 66%);clip-path:polygon(0 0,100% 0,51% 100%)}.face{position:absolute;top:36px;left:7px;width:35px;height:24px}.face i{position:absolute;left:3px;top:0;width:5px;height:7px;background:#463347;border-radius:50%}.face i+i{left:25px}.face b{position:absolute;top:8px;left:11px;width:12px;height:7px;border:2px solid #463347;border-top:0;border-radius:0 0 10px 10px}.face:after{content:"";position:absolute;top:9px;height:4px;width:7px;border-radius:50%;background:#ef937e;box-shadow:26px 0 #ef937e}.pencil-lines{position:absolute;width:22px;height:11px;border-bottom:3px solid #aa87ce;border-top:3px solid #aa87ce;transform:rotate(29deg);top:45px;left:13px}
.blocks .toy-shadow{width:155px;left:0}.block{position:absolute;display:grid;place-items:center;width:67px;height:65px;border:2px solid var(--edge);border-radius:11px;background:var(--side);box-shadow:2px 3px 0 var(--edge);font:bold 40px/1 "Trebuchet MS",sans-serif;color:var(--edge);isolation:isolate}.block:before{content:"";position:absolute;inset:4px 7px 7px 4px;background:var(--front);border:1.5px solid var(--edge);border-radius:6px;z-index:-1}.block.b{--edge:#50677e;--front:#bdddf4;--side:#91bada;bottom:12px;left:9px;transform:rotate(-6deg)}.block.c{--edge:#7e4861;--front:#f6b9c9;--side:#e798b3;bottom:9px;left:84px;transform:rotate(9deg)}.block.a{--edge:#526e62;--front:#b8e5c8;--side:#8bc9a2;bottom:79px;left:46px;transform:rotate(6deg)}.spark,.dot{position:absolute}.spark{font-family:Georgia,serif;line-height:1}.s1{left:9%;top:42%;font-size:29px;color:#a98bc9}.s2{left:32%;top:23%;font-size:27px;color:#e6a35b}.s3{right:24%;top:16%;font-size:32px;color:#ac8ccd}.s4{right:6%;top:47%;font-size:26px;color:#e4a34f}.dot{height:7px;width:7px;background:#ba9dd4;border-radius:50%}.d1{left:34%;bottom:24%}.d2{right:32%;top:40%;background:#e9b091}.d3{left:23%;top:21%;background:#a9c5b0}
.keyboard{margin-top:20px;border:1.5px solid #e0dcd3;background:#fffdf8;border-radius:24px;padding:20px clamp(14px,3vw,37px) 24px;box-shadow:0 3px 0 #eae4da}.kb-heading{margin-bottom:18px}.kb-heading h2{font-size:20px;letter-spacing:-.7px;font-weight:900}.kb-heading h2 .icon{color:#79668e;width:25px}.kb-heading>span{color:#756e7c;font-size:13px}.row{display:flex;justify-content:center;gap:8px;margin-top:8px}.key{width:8.7%;max-width:76px;height:46px;border-radius:11px;border:1.5px solid #d9d4cd;background:#fff;box-shadow:0 3px #dfdad3;font-size:21px;font-weight:800}.key:hover{background:#f4f0fc}.key.target{background:#e8dbff;border-color:#aa8cd5;box-shadow:0 3px #b59ad7;color:#6545a1}.key.wrong{background:#ffe3bf;border-color:#dfaa73}.key.right,.won .flashcard{background:#d7f0dd;border-color:#85b795}.key:active{transform:translateY(2px)}.won .flashcard span{color:#477b59}.confetti{position:absolute;left:var(--x);top:-18px;width:9px;height:15px;border-radius:3px;background:var(--color);z-index:3;pointer-events:none;animation:fall 1.2s ease-in forwards}@keyframes fall{to{transform:translateY(365px) rotate(235deg);opacity:0}}
@media(min-width:1400px){.stage{min-height:330px}.keyboard{padding-bottom:28px}.key{height:51px}}
@media(max-width:760px){.nav,main{width:calc(100% - 32px)}.nav{height:50px}.pencil-group{left:0;transform:scale(.73);transform-origin:left bottom}.blocks{right:0;transform:scale(.73);transform-origin:right bottom}.row{gap:5px}.key{width:9.3%}.keyboard{padding:17px 12px 20px}.round{top:14px;left:14px}}
@media(max-width:520px){.brand{font-size:21px;gap:8px}.sound{padding:8px 11px;font-size:13px}.heading p{font-size:14px;max-width:280px}.stars{font-size:12px;padding:5px 8px;gap:4px}.stars .icon{width:17px;height:17px}.stage{min-height:306px;border-radius:23px}.game{padding-top:45px}.pencil-group{transform:scale(.46);left:-1%;bottom:67px}.blocks{transform:scale(.46);right:-1%;bottom:67px}.flashcard{width:117px;height:126px}.flashcard span{font-size:93px}.round{font-size:9px}.s2{left:17%;top:23%}.s3{right:12%;top:18%}.s1,.s4,.pencil-lines{display:none}#message{font-size:19px}.keyboard{padding:16px 6px 19px;border-radius:18px}.kb-heading{margin:0 6px 14px}.kb-heading h2{font-size:17px;gap:6px}.kb-heading>span{font-size:11px}.row{gap:3px}.key{min-width:0;padding:0;font-size:17px;border-radius:7px;height:43px}.logo i{font-size:20px;width:25px;height:28px;line-height:27px}}
@media (max-width: 520px) {
  .titles { gap: 8px; }
  .titles h1 { padding-left: 8px; font-size: 17px; }
  .sound { width: 42px; height: 42px; }
  .sound span { display: none; }
}
@media (max-width: 370px) {
  .brand { font-size: 18px; gap: 5px; }
  .titles { gap: 6px; }
  .titles h1 { padding-left: 6px; font-size: 15px; }
}
@media(prefers-reduced-motion:reduce){.confetti{display:none}}
