*{box-sizing:border-box}html{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}body{margin:0;min-height:100vh;color:#174260;background:radial-gradient(circle at top,#fff 2%,#dff4ff 65%,#e8faee)}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:4px solid #ffb53d;outline-offset:3px}.app{max-width:900px;margin:auto;padding:16px}.header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.logo{font-weight:900;font-size:clamp(17px,4vw,23px)}.mini{background:#fff;border:2px solid #b6e3f4;padding:10px 14px;border-radius:22px;color:#1b5478;font-weight:750}.hero{text-align:center;background:#fff;border:3px solid #ccecf8;border-radius:28px;padding:21px 14px;box-shadow:0 10px 24px #20608014}.heroEmoji{font-size:64px}.hero h1{font-size:clamp(27px,6vw,42px);margin:0 0 5px}.hero p{font-size:20px;margin:8px}.hero .small{font-size:14px;color:#56718b}.choices{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}.choice{min-height:180px;background:#e6f7ff;border:3px solid #9bd8f6;border-radius:24px;padding:20px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#174260}.choice.pink{background:#fff1fa;border-color:#f6b6d7}.choice:hover{transform:translateY(-2px)}.choice strong{font-size:24px}.choice .bigemoji{font-size:55px}.choice span:last-child{font-size:14px}.hidden{display:none!important}.game{background:#fffefa;border:3px solid #ccecf8;padding:15px;border-radius:25px;box-shadow:0 10px 24px #20608012}.gamehead{display:flex;align-items:center;gap:20px}.gamehead h1{margin:0;text-align:center;font-size:clamp(25px,5vw,38px)}.gamehead p{margin:2px 0 8px;font-size:14px;text-align:center}.gamehead>div{flex:1}.toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px;margin:10px 0 16px}.levels{display:flex;gap:6px;flex-wrap:wrap}.levels button{border:2px solid #a9d5e8;border-radius:20px;padding:9px 12px;color:#195a83;background:white;font-weight:700;font-size:13px}.levels button.active{background:#1a91c8;color:white;border-color:#1a91c8}.score{font-weight:800;background:#ffecb6;border-radius:20px;padding:10px 13px}.board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:650px;margin:0 auto}.tile{aspect-ratio:1/1.05;position:relative;padding:0;border:0;border-radius:14px;background:transparent;perspective:800px;min-width:0}.tile-inner{position:absolute;inset:0;transition:transform .4s;transform-style:preserve-3d}.tile.revealed .tile-inner,.tile.matched .tile-inner{transform:rotateY(180deg)}.face{position:absolute;inset:0;border-radius:15px;backface-visibility:hidden;overflow:hidden;box-shadow:0 3px 7px #173e5b22;display:grid;place-items:center}.front{background:linear-gradient(145deg,#55c1ea,#148abd);border:3px solid #fff;color:white;font-size:clamp(25px,7vw,60px)}.front svg{width:58%;height:58%;stroke:#fff;fill:none;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.back{transform:rotateY(180deg);border:3px solid #8ed3ef;background:#f6fcff}.back img{width:100%;height:100%;object-fit:cover}.tile.matched .back{border:4px solid #61c78b}.actions{text-align:center;margin:19px 0 4px}.primary{border:0;background:#ee719f;color:white;font-weight:800;padding:13px 23px;border-radius:27px;box-shadow:0 3px 0 #c84f78}.win{text-align:center;padding:17px;border-radius:18px;margin:12px auto;background:#fff3c9;max-width:550px;border:2px solid #f8ce77}.win h2{margin:4px}.winemoji{font-size:42px}footer{text-align:center;padding:16px 0;color:#5c7a8e;font-size:12px}#confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden}.confetti{position:absolute;top:-30px;width:11px;height:15px;animation:fall 2.7s linear forwards}@keyframes fall{to{transform:translateY(110vh) rotate(650deg)}}@media(max-width:530px){.app{padding:9px}.header{margin:8px 0 12px}.choices{gap:10px}.choice{padding:13px 7px;min-height:150px}.choice strong{font-size:19px}.choice .bigemoji{font-size:40px}.choice span:last-child{font-size:12px}.game{padding:9px}.board{gap:6px}.face{border-radius:9px}.toolbar{justify-content:center}.gamehead{gap:8px}.gamehead .mini{font-size:12px;padding:7px 9px}.front{border-width:2px}.back{border-width:2px}}@media(prefers-reduced-motion:reduce){.tile-inner{transition:none}.confetti{animation:none;display:none}}