.family-puzzle-game-module__apIrlq__game{width:min(100%,1040px);min-height:100dvh;padding:max(12px, env(safe-area-inset-top)) clamp(12px, 3vw, 28px) max(14px, env(safe-area-inset-bottom));-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;flex-direction:column;display:flex;overflow:hidden}.family-puzzle-game-module__apIrlq__welcome{text-align:center;place-items:center;gap:clamp(16px,3vh,28px);width:min(100%,520px);margin:auto;display:grid}.family-puzzle-game-module__apIrlq__welcomeImage{aspect-ratio:2/3;border:7px solid var(--white);width:min(76vw,330px);box-shadow:var(--shadow-toy);background:url(/family/emily-family.jpg) 50%/cover;border-radius:38% 38% 28% 28%}.family-puzzle-game-module__apIrlq__welcome h1{color:var(--berry-dark);font-size:clamp(2rem,6vw,3.4rem)}.family-puzzle-game-module__apIrlq__startButton,.family-puzzle-game-module__apIrlq__iconButton,.family-puzzle-game-module__apIrlq__difficulty button,.family-puzzle-game-module__apIrlq__celebration button{cursor:pointer;font:inherit;touch-action:manipulation;border:0}.family-puzzle-game-module__apIrlq__startButton{aspect-ratio:1;border:6px solid var(--white);background:var(--berry);width:clamp(112px,19vw,148px);color:var(--white);border-radius:50%;place-items:center;padding-inline-start:8px;font-size:clamp(3.6rem,8vw,5rem);line-height:1;display:grid;box-shadow:0 8px #352c452e}.family-puzzle-game-module__apIrlq__startButton:active,.family-puzzle-game-module__apIrlq__iconButton:active,.family-puzzle-game-module__apIrlq__homeButton:active,.family-puzzle-game-module__apIrlq__difficulty button:active,.family-puzzle-game-module__apIrlq__celebration button:active{transform:translateY(3px)}.family-puzzle-game-module__apIrlq__toolbar{justify-content:space-between;align-items:center;gap:10px;min-height:68px;margin-bottom:8px;display:flex}.family-puzzle-game-module__apIrlq__toolbarWelcome{justify-content:flex-start;min-height:56px;margin-bottom:0}.family-puzzle-game-module__apIrlq__iconButton{border:4px solid var(--white);background:var(--sky);width:62px;height:62px;color:var(--sky-ink);border-radius:20px;place-items:center;font-size:2rem;display:grid;box-shadow:0 5px #352c4526}.family-puzzle-game-module__apIrlq__iconButton svg{stroke-width:3px;width:31px;height:31px}.family-puzzle-game-module__apIrlq__homeButton{flex-direction:column;justify-content:center;align-items:center;gap:1px;font-size:.66rem;font-weight:900;text-decoration:none;display:flex}.family-puzzle-game-module__apIrlq__homeButton svg{width:26px;height:26px}.family-puzzle-game-module__apIrlq__difficulty{background:#ffffffb3;border:3px solid #352c451f;border-radius:22px;gap:7px;padding:6px;display:flex}.family-puzzle-game-module__apIrlq__difficulty button{background:0 0;border-radius:15px;min-width:66px;min-height:48px;font-size:1.35rem}.family-puzzle-game-module__apIrlq__difficultyActive{box-shadow:inset 0 0 0 3px var(--lilac-ink);background:var(--lilac)!important}.family-puzzle-game-module__apIrlq__puzzleArea{flex:1;justify-content:center;align-items:center;gap:clamp(14px,3vw,38px);min-height:0;display:flex}.family-puzzle-game-module__apIrlq__board{aspect-ratio:9/14;grid-template-columns:repeat(var(--columns), 1fr);grid-template-rows:repeat(var(--rows), 1fr);border:6px solid var(--white);width:min(58vw,405px);box-shadow:var(--shadow-toy);direction:ltr;background:linear-gradient(#ffffff8f,#ffffff8f),url(/family/emily-family.jpg) 50%/100% 100%;border-radius:26px;gap:5px;padding:5px;display:grid}.family-puzzle-game-module__apIrlq__slot{cursor:pointer;background:#ffffff24;border:3px dashed #352c4540;border-radius:16px;min-width:0;padding:0;position:relative;overflow:hidden}.family-puzzle-game-module__apIrlq__slotLocked{border:0;border-radius:10px;animation:.24s ease-out family-puzzle-game-module__apIrlq__lock-in}.family-puzzle-game-module__apIrlq__tile,.family-puzzle-game-module__apIrlq__piece,.family-puzzle-game-module__apIrlq__dragPreview{background-repeat:no-repeat}.family-puzzle-game-module__apIrlq__tile{position:absolute;inset:0}.family-puzzle-game-module__apIrlq__tray{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(8px,1.5vw,14px);width:min(35vw,300px);display:grid}.family-puzzle-game-module__apIrlq__piece{width:100%;aspect-ratio:calc(9 * var(--rows) / (14 * var(--columns)));border:4px solid var(--white);cursor:grab;touch-action:none;-webkit-touch-callout:none;-webkit-user-drag:none;border-radius:18px;box-shadow:0 5px #352c4529}.family-puzzle-game-module__apIrlq__piece:active{cursor:grabbing}.family-puzzle-game-module__apIrlq__pieceDragging{opacity:.25}.family-puzzle-game-module__apIrlq__pieceSelected{outline:5px solid var(--berry);outline-offset:2px}.family-puzzle-game-module__apIrlq__returned{animation:.36s ease-out family-puzzle-game-module__apIrlq__gentle-return}.family-puzzle-game-module__apIrlq__dragPreview{z-index:10;width:min(27vw,160px);aspect-ratio:calc(9 * var(--rows) / (14 * var(--columns)));border:4px solid var(--white);pointer-events:none;border-radius:18px;position:fixed;transform:translate(-50%,-50%)rotate(4deg)scale(1.05);box-shadow:0 10px 20px #352c453d}.family-puzzle-game-module__apIrlq__sparkles{z-index:2;color:#fff;letter-spacing:.22em;text-shadow:0 2px 10px #d94f70;pointer-events:none;place-items:center;font-size:clamp(2.5rem,7vw,4.8rem);animation:1s ease-in-out infinite alternate family-puzzle-game-module__apIrlq__sparkle;display:grid;position:absolute;inset:0}.family-puzzle-game-module__apIrlq__board{position:relative}.family-puzzle-game-module__apIrlq__celebration{background:var(--sun);width:min(100%,510px);min-height:76px;box-shadow:var(--shadow-toy);color:var(--sun-ink);border-radius:24px;justify-content:center;align-items:center;gap:14px;margin:8px auto 0;padding:9px 14px;display:flex}.family-puzzle-game-module__apIrlq__celebration>span{font-size:2.3rem}.family-puzzle-game-module__apIrlq__celebration h2{margin:0;font-size:clamp(1.25rem,4vw,1.8rem)}.family-puzzle-game-module__apIrlq__celebration button{background:var(--white);border-radius:16px;min-width:65px;min-height:52px;font-size:1.2rem}.family-puzzle-game-module__apIrlq__srOnly{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.family-puzzle-game-module__apIrlq__startButton:focus-visible,.family-puzzle-game-module__apIrlq__iconButton:focus-visible,.family-puzzle-game-module__apIrlq__homeButton:focus-visible,.family-puzzle-game-module__apIrlq__difficulty button:focus-visible,.family-puzzle-game-module__apIrlq__slot:focus-visible,.family-puzzle-game-module__apIrlq__piece:focus-visible,.family-puzzle-game-module__apIrlq__celebration button:focus-visible{box-shadow:var(--shadow-focus);outline:0}@keyframes family-puzzle-game-module__apIrlq__lock-in{0%{transform:scale(.84)}to{transform:scale(1)}}@keyframes family-puzzle-game-module__apIrlq__gentle-return{50%{transform:translateY(-10px)}}@keyframes family-puzzle-game-module__apIrlq__sparkle{0%{transform:scale(.92)rotate(-2deg)}to{transform:scale(1.06)rotate(2deg)}}@media (max-width:620px){.family-puzzle-game-module__apIrlq__toolbar{gap:8px;min-height:58px}.family-puzzle-game-module__apIrlq__iconButton{border-radius:15px;width:48px;height:48px;font-size:1.55rem}.family-puzzle-game-module__apIrlq__homeButton{font-size:.58rem}.family-puzzle-game-module__apIrlq__homeButton svg{width:22px;height:22px}.family-puzzle-game-module__apIrlq__difficulty{gap:5px;padding:5px}.family-puzzle-game-module__apIrlq__difficulty button{min-width:46px;min-height:40px;font-size:.95rem}.family-puzzle-game-module__apIrlq__puzzleArea{flex-direction:column;gap:10px}.family-puzzle-game-module__apIrlq__board{width:min(68vw,285px);max-height:57dvh}.family-puzzle-game-module__apIrlq__tray{width:min(88vw,350px)}.family-puzzle-game-module__apIrlq__trayFour{grid-template-columns:repeat(4,minmax(0,1fr))}.family-puzzle-game-module__apIrlq__traySix{grid-template-columns:repeat(3,minmax(0,1fr))}.family-puzzle-game-module__apIrlq__piece{border-width:3px;border-radius:12px}.family-puzzle-game-module__apIrlq__dragPreview{width:min(34vw,135px)}.family-puzzle-game-module__apIrlq__celebration{min-height:60px}}@media (max-height:700px) and (max-width:620px){.family-puzzle-game-module__apIrlq__game{padding-block:7px}.family-puzzle-game-module__apIrlq__toolbar{min-height:50px;margin-bottom:3px}.family-puzzle-game-module__apIrlq__toolbarWelcome{min-height:44px}.family-puzzle-game-module__apIrlq__iconButton{width:44px;height:44px}.family-puzzle-game-module__apIrlq__homeButton svg{width:20px;height:20px}.family-puzzle-game-module__apIrlq__difficulty button{min-width:42px}.family-puzzle-game-module__apIrlq__welcomeImage{width:min(58vw,240px)}.family-puzzle-game-module__apIrlq__board{width:min(52vw,225px)}.family-puzzle-game-module__apIrlq__tray{gap:6px;width:min(78vw,300px)}}@media (prefers-reduced-motion:reduce){.family-puzzle-game-module__apIrlq__game *,.family-puzzle-game-module__apIrlq__game :before,.family-puzzle-game-module__apIrlq__game :after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
