:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#344c5e;background:#e8eef1;font-synthesis:none;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0}button,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,input:focus-visible{outline:3px solid #1f6590;outline-offset:5px}button{touch-action:manipulation}button svg{width:24px;height:24px;flex-shrink:0}button{border:0}h1,h2,p{margin:0}.app{--ink:#344c5e;--muted:#526b7b;--accent:#506c86;--wash:#e8eef1;--tile-edge:#b8c9cb;position:relative;min-height:100svh;overflow:hidden;color:var(--ink);background:radial-gradient(ellipse at 85% 12%,#e0ddf0 0,transparent 48%),radial-gradient(ellipse at 8% 75%,#d4e9e6 0,transparent 50%),#eaf0f3}.app.kids{--ink:#244b65;--muted:#416981;--accent:#236d9a;--tile-edge:#e4c99e;background:radial-gradient(ellipse at 90% 80%,#e0f0c5 0,transparent 50%),linear-gradient(#d4efff,#edf8ff 65%,#e6f1d2)}.ambient{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden}.ambient span{position:absolute;border:1px solid #ffffff70;border-radius:50%;width:600px;height:600px;right:-330px;top:10%}.ambient span:nth-child(2){width:720px;height:720px;right:-390px;top:6%}.ambient span:nth-child(3){width:380px;height:380px;left:-280px;top:65%}.shell{position:relative;max-width:490px;margin:auto;min-height:100svh;display:flex;flex-direction:column;padding:max(22px,env(safe-area-inset-top)) 24px max(12px,env(safe-area-inset-bottom))}.home-top{display:flex;justify-content:space-between;align-items:center;min-height:44px}.wordmark{font-size:16px;font-weight:650;letter-spacing:-.5px}.wordmark-dot{color:#af839b;margin-left:5px}.icon-button{border:1px solid #ffffffb3;background:#ffffff60;width:44px;height:44px;border-radius:50%;display:grid;place-items:center}.home-heading{text-align:center;margin:28px 0 0}.home-heading p{font-size:14px;color:var(--muted);margin-bottom:6px}.home-heading h1{font-family:Georgia,Times New Roman,serif;font-size:64px;letter-spacing:-3px;font-weight:400;line-height:1.12}.home-heading>span{display:block;font-size:14px;margin-top:12px;color:var(--muted)}.hero-tiles{height:190px;position:relative;width:270px;margin:14px auto 4px;isolation:isolate}.tile{position:absolute;background:linear-gradient(125deg,#fffefa,#f8f3e8 80%);border:1px solid #fffdf5;border-radius:10px;box-shadow:1px 3px #d7ddd6,2px 7px 0 var(--tile-edge),3px 10px 12px #35495a26,inset 0 0 0 2px #e5dece88;padding:4px;display:grid;place-items:center;transition:filter .16s,outline-color .16s,translate .16s;-webkit-user-select:none;user-select:none}.tile:before{content:"";position:absolute;top:3px;right:3px;bottom:3px;left:3px;border:1px solid #ffffff;border-radius:7px;pointer-events:none}.tile .motif{width:100%;height:100%;pointer-events:none}.tile img{width:100%;height:100%;object-fit:cover;border-radius:7px;pointer-events:none}.tile.selected{outline:3px solid #dfad52;outline-offset:1px;filter:brightness(1.05);translate:0 -3px}.tile.blocked{filter:brightness(.9) saturate(.78)}.hero-tiles .tile{width:88px;height:116px;top:34px}.hero-tiles .tile:nth-child(1){left:12px;transform:rotate(-19deg);top:48px;z-index:1}.hero-tiles .tile:nth-child(2){left:91px;transform:rotate(-4deg);z-index:3}.hero-tiles .tile:nth-child(3){left:169px;transform:rotate(17deg);top:49px;z-index:2}.hero-spark{position:absolute;right:0;top:8px;color:#af839b;font-size:29px}.profile-section h2{font-size:16px;font-weight:600;text-align:center;margin-bottom:16px}.profile-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-option{position:relative;min-height:149px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#ffffff45;border:1px solid #ffffffb3;border-radius:23px;padding:12px 5px}.profile-option.active{background:#ffffffb0;border:2px solid var(--accent);box-shadow:0 6px 18px #506c860b}.profile-option strong{font-size:17px}.profile-option>span:last-of-type{font-size:11px;color:var(--muted)}.profile-symbol{width:45px;height:48px;display:block}.profile-symbol svg{height:48px;width:40px}.profile-symbol img{width:48px;height:48px;border-radius:14px;object-fit:cover}.profile-option i{position:absolute;right:9px;top:9px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;width:19px;height:19px}.profile-option i svg{width:14px;height:14px}.home-actions{margin-top:24px}.primary{width:100%;min-height:58px;padding:14px 22px;border-radius:19px;background:var(--accent);color:#fff;box-shadow:0 5px #34506924;display:flex;justify-content:center;align-items:center;gap:12px;font-weight:600;font-size:17px}.primary span{display:block}.primary small{display:block;font-size:11px;opacity:.86;font-weight:400;margin-top:5px}.text-button{display:block;min-height:44px;padding:12px;margin:9px auto 0;background:none;font-size:14px}.home-note{font-size:11px;color:var(--muted);text-align:center;margin:12px 0 18px}.prototype-label{margin-top:auto;text-align:center;font-size:10px;color:var(--muted);padding-top:14px;opacity:.85}.game-header{display:flex;align-items:center;justify-content:space-between;gap:15px}.game-header>div{text-align:center}.game-header span{font-size:12px;color:var(--muted)}.game-header h1{font-family:Georgia,serif;font-weight:400;font-size:30px;margin-top:4px}.avatar-button{width:44px;height:44px;border-radius:50%;background:#fff9;padding:5px;overflow:hidden}.avatar-button>svg,.avatar-button img{width:100%;height:100%;object-fit:cover;border-radius:50%}.level-track{height:4px;background:#fff8;border-radius:4px;margin:24px 5px 0;overflow:hidden}.level-track span{display:block;width:38%;height:100%;background:#879aab;border-radius:4px}.kids .level-track span{background:#79ae5a}.game-status{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin:18px 3px}.game-status strong{font-size:22px;font-weight:500;margin-right:3px}.game-status>span:last-child{color:var(--muted)}.play-area{flex:1;display:flex;align-items:center;justify-content:center;position:relative;min-height:0;padding:22px 0 24px}.board-stage{width:100%;position:relative;z-index:1}.board{position:relative;width:100%;margin:auto}.game-message{min-height:40px;text-align:center;font-size:12px;color:var(--muted);line-height:1.5;max-width:330px;margin:14px auto 2px}.tools{display:flex;justify-content:space-evenly;padding:12px 0 0}.tools button{display:flex;flex-direction:column;align-items:center;gap:9px;background:none;font-size:12px;width:80px;min-height:84px}.tools button>span{display:grid;place-items:center;width:57px;height:54px;border-radius:18px;background:#ffffff80;border:1px solid #ffffffbd;box-shadow:0 4px #91a5ae20}.tools svg{width:25px;height:25px}.preview-link{background:none;text-decoration:underline;text-underline-offset:3px;font-size:11px;min-height:36px;padding:8px;margin:8px auto 0;color:var(--muted)}.kids .game-header h1{font-family:inherit;font-weight:750;font-size:29px}.kids .tile{border-radius:12px;padding:1px}.kids .tile:before{display:none}.kids .primary{background:#246f9e;box-shadow:0 5px #1b5375}.kids .tools button>span{background:#fffffff0;box-shadow:0 4px #a0c2d0}.cloud{position:absolute;width:140px;height:37px;border-radius:80px;background:#ffffff6e;top:22px;right:-30px}.cloud:before{content:"";position:absolute;border-radius:50%;background:inherit;left:25px;top:-24px;width:60px;height:60px}.win-screen{flex:1;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 0}.win-art{position:relative;width:150px;height:170px;border-radius:50%;background:#ffffff65;margin:10px auto 22px;display:grid;place-items:center}.win-art>svg{width:100px;height:130px}.win-art>img{width:120px;height:140px;object-fit:cover;border-radius:24px;transform:rotate(-7deg);box-shadow:0 10px 30px #34506926}.orbit{position:absolute;color:#b38c42;font-size:28px}.o1{top:0;right:-20px}.o2{bottom:10px;left:-25px;font-size:19px}.o3{top:30px;left:-30px;font-size:14px}.stars{display:flex;gap:12px;color:#b18329;margin-bottom:24px}.stars svg{width:30px;height:30px;fill:#eec775;stroke-width:1.2}.stars svg:nth-child(2){width:40px;height:40px;margin-top:-8px}.win-screen>p{font-size:14px;color:var(--muted);line-height:1.6}.win-screen h1{font-family:Georgia,serif;font-size:43px;font-weight:400;letter-spacing:-1px;margin:12px 0}.kids .win-screen h1{font-family:inherit;font-weight:750;font-size:38px}.win-stats{display:flex;justify-content:center;gap:60px;margin:34px 0}.win-stats span{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted)}.win-stats strong{font-size:25px;color:var(--ink);font-weight:500}.win-screen>small{font-size:10px;color:var(--muted);margin-top:20px}.scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;background:#243c5366;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:22px}.dialog{width:100%;max-width:380px;border-radius:30px;background:#f5f8fa;padding:28px;color:var(--ink);box-shadow:0 25px 100px #243c5340}.dialog h2{font-family:Georgia,serif;font-size:29px;font-weight:400;margin-bottom:13px}.dialog p{font-size:14px;line-height:1.6;margin-bottom:24px;color:var(--muted)}.secondary{width:100%;border:1px solid #c8d5df;border-radius:16px;min-height:48px;background:#fff;margin-top:14px;font-size:14px}.setting-row{display:flex;justify-content:space-between;align-items:center;margin:22px 0;font-size:15px;gap:12px}.setting-row small{display:block;font-size:11px;margin-top:6px;color:var(--muted)}input[type=checkbox]{width:27px;height:27px;accent-color:var(--accent)}@media(min-width:650px){.shell{min-height:880px;margin:30px auto;max-width:460px;border:1px solid #ffffffa0;border-radius:40px;background:#ffffff18;box-shadow:0 25px 90px #344c5e14;padding:28px 28px 20px}.home-heading{margin-top:32px}.hero-tiles{margin-top:25px;height:212px}.home-actions{margin-top:30px}.profile-option{min-height:160px}.home-note{margin-top:22px}.play-area{padding:40px 0}.win-screen{padding-top:55px}}@media(max-width:370px){.shell{padding-left:16px;padding-right:16px}.home-heading{margin-top:18px}.home-heading h1{font-size:54px}.hero-tiles{height:160px;transform:scale(.87);margin-top:0;margin-bottom:0}.profile-option{min-height:133px}.home-actions{margin-top:16px}.home-note{margin:7px 0}.profile-section h2{margin-bottom:10px}.play-area{padding-top:8px;padding-bottom:12px}.game-message{margin-top:0}.game-header h1{font-size:26px}.level-track{margin-top:16px}}@media(max-height:740px)and (max-width:649px){.home-heading{margin-top:15px}.hero-tiles{height:155px;transform:scale(.87);margin-top:0}.profile-option{min-height:128px}.home-actions{margin-top:16px}.home-note{margin:5px 0}.play-area{padding:8px 0}.game-status{margin:12px 0}.game-message{margin:5px auto 0}.level-track{margin-top:14px}.tools{padding-top:0}.prototype-label{padding-top:7px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(orientation:landscape)and (max-height:600px){.shell{max-width:800px}.play-area{min-height:400px}.board-stage{max-width:330px}.home-shell{max-width:490px}}@media(max-width:649px)and (orientation:portrait){.screen-game .shell{height:100svh;min-height:0}.screen-game .play-area{padding:4px 0;flex:1;min-height:0}.screen-game .board-stage{width:min(100%,calc((100svh - 300px)*.76))}.screen-game .kids-board{width:min(100%,calc((100svh - 300px)*.94))}.screen-game .game-header,.screen-game .game-status,.screen-game .tools,.screen-game .game-message,.screen-game .preview-link,.screen-game .prototype-label,.screen-game .level-track{flex-shrink:0}.screen-game .game-message{min-height:36px;margin:6px auto 0}.screen-game .preview-link{margin-top:0}}button:disabled{cursor:default;opacity:.45}button[aria-disabled=true]{cursor:default}.board-container{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;z-index:1;touch-action:manipulation}.live-board{max-width:none;flex-shrink:0;isolation:isolate}.live-board .tile{padding:3px}.live-board .image-tile{padding:1px}.live-board .tile img{object-fit:cover}.live-board .tile.blocked{filter:brightness(.86) saturate(.72)}.tile.hinted{outline:3px solid #b07a1c;outline-offset:1px;box-shadow:0 0 0 6px #fff8c780,1px 3px #d7ddd6,2px 7px 0 var(--tile-edge),3px 10px 12px #35495a26}.tile.dying{pointer-events:none;animation:pair-away .18s ease-out forwards}.screen-game .play-area{flex:1;height:100%;min-height:180px;padding:8px 0}.screen-game .shell{height:100svh;min-height:650px}.screen-game .game-header,.screen-game .game-status,.screen-game .tools,.screen-game .game-feedback,.screen-game .preview-link,.screen-game .prototype-label,.screen-game .level-track{flex-shrink:0}.screen-game .game-message{margin:4px auto 0;min-height:36px;font-size:12px}.game-feedback{min-height:42px}.recovery-link{display:block;margin:0 auto;background:none;text-decoration:underline;min-height:28px;font-size:12px;color:var(--ink)}.live-board .tile:focus-visible{z-index:999!important}.dialog{border:0;max-height:calc(100svh - 40px);overflow-y:auto;overscroll-behavior:contain}.dialog::backdrop{background:#243c5366;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.dialog .primary{margin-top:20px}.dialog .text-button{margin-top:8px}.settings-stats{padding:15px 0;border-block:1px solid #cbd6de}.settings-stats h3{font-size:15px;margin:0 0 8px}.settings-stats p{font-size:13px;line-height:1.8;margin:0}.setting-row select{max-width:180px;padding:9px 4px;border:1px solid #bccbd4;background:#fff;border-radius:8px;color:#344c5e;font-size:14px}.dialog .install-note{font-size:12px;margin:20px 0 0}.save-error{position:relative;z-index:1000;background:#fff0ed;border:1px solid #a0473a;padding:14px;border-radius:12px;font-size:14px;line-height:1.5;margin-bottom:14px;color:#742a24}.save-error button{display:block;background:none;text-decoration:underline;min-height:40px}.menu-notice{font-size:13px;line-height:1.5;text-align:center;margin:12px}.loading{justify-content:center;align-items:center;gap:20px}.loading h1{font:54px Georgia,serif}.loading p{font-size:14px}.large-board.screen-game .play-area{overflow:auto;display:block}.large-board .board-container{width:600px;min-height:650px;height:650px}.large-board .live-board{margin:10px auto}.screen-win .win-art{animation:celebrate .5s ease-out}.screen-win .stars{animation:celebrate .7s ease-out}.screen-win .stars svg{filter:drop-shadow(0 3px 2px #a87a1920)}@keyframes pair-away{to{opacity:0;transform:translateY(-7px) scale(.85)}}@keyframes celebrate{0%{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@media(max-width:649px)and (orientation:portrait){.screen-game .shell{height:100svh;min-height:0}.screen-game .play-area{min-height:0;padding:8px 0}.screen-game .board-container{width:100%;height:100%}.large-board.screen-game .board-container{width:540px;height:650px}.screen-game .game-feedback{min-height:42px}.game-header>div>span{font-size:11px}.screen-game .game-message{max-width:100%;font-size:11px}.screen-game .tools{padding-top:4px}.screen-game .prototype-label{padding-top:2px}.screen-game .preview-link{margin:0 auto;min-height:30px}.screen-game .level-track{margin-top:16px}.screen-game .game-status{margin:12px 0}.screen-game .tools button{min-height:80px}}@media(min-width:650px){.screen-game .shell{height:calc(100svh - 60px);min-height:650px}.screen-game .play-area{min-height:200px}.live-board{max-width:none}}@media(orientation:landscape)and (max-height:600px){.screen-game .shell{min-height:760px;height:760px}.screen-game .play-area{min-height:390px}.screen-game .board-container{height:390px;max-width:500px;margin:auto}}@media(prefers-reduced-motion:reduce){.tile.dying{opacity:0;animation:none}.screen-win .win-art,.screen-win .stars{animation:none}}@media(forced-colors:active){.tile{border:2px solid ButtonText}.tile.selected,.tile.hinted{outline:3px solid Highlight}.tile.blocked{opacity:.6}}.live-board .tile img,.tile img,.avatar-button img,.profile-symbol img,.win-art>img{object-fit:contain}.live-board .image-tile{background:#fff9ee}.large-board.screen-game .play-area{display:flex;overflow:hidden}.large-board.screen-game .board-container{width:100%;height:100%;min-height:0;display:block;overflow:auto;touch-action:pan-x pan-y;overscroll-behavior:contain;padding:0 8px 12px}.large-board .live-board{margin:0 auto}.zoom-note{text-align:center;font-size:11px;color:var(--muted);flex-shrink:0}.tray-area{flex-shrink:0;text-align:center;margin:0 auto 6px;width:min(260px,100%)}.tray-slots{display:flex;gap:6px;padding:8px;border-radius:16px;background:#e5d9c5;box-shadow:inset 0 2px 4px #594a3720}.tray-slot{flex:1;aspect-ratio:3/4;min-width:0;display:grid;place-items:center;background:#ffffff70;border-radius:9px;overflow:hidden}.tray-slot>svg,.tray-slot>img{width:100%;height:100%;object-fit:contain}.tray-area small{display:block;margin-top:5px;font-size:10px;color:var(--muted)}@media(max-height:700px){.tray-area{width:190px}.tray-area small{font-size:9px}.screen-game .tray-area~.play-area{min-height:0}}@media(max-height:700px)and (orientation:portrait){.tray-game.screen-game .shell{padding-top:max(12px,env(safe-area-inset-top))}.tray-game.screen-game .game-header h1{font-size:30px;margin:2px 0 0}.tray-game.screen-game .level-track{margin-top:10px}.tray-game.screen-game .game-status{margin:8px 0}.tray-game.screen-game .tools button{min-height:62px}.tray-game.screen-game .tools button>span{width:44px;height:44px;margin-bottom:3px}.tray-game.screen-game .game-feedback{min-height:30px}.tray-game.screen-game .game-message{min-height:26px}.tray-game .tray-area{width:180px;margin-bottom:0}}@media(max-width:649px)and (orientation:portrait){.screen-game .shell,.tray-game.screen-game .shell{padding:max(8px,env(safe-area-inset-top)) 12px max(6px,env(safe-area-inset-bottom));gap:0}.screen-game .game-header{min-height:44px;gap:8px}.screen-game .game-header h1,.tray-game.screen-game .game-header h1{font-size:26px;line-height:1.1;margin:1px 0 0}.screen-game .game-header>div>span{font-size:10px;line-height:1.2;display:block}.screen-game .level-track,.tray-game.screen-game .level-track{height:3px;margin:7px 0 0}.screen-game .game-status,.tray-game.screen-game .game-status{font-size:11px;min-height:26px;margin:4px 0}.screen-game .game-status strong{font-size:18px}.screen-game .tray-area,.tray-game.screen-game .tray-area{width:168px;max-width:55%;margin:0 auto 2px}.screen-game .tray-slots{gap:4px;padding:5px;border-radius:11px}.screen-game .tray-slot{border-radius:7px}.screen-game .tray-area small{font-size:9px;line-height:1.25;margin-top:3px;white-space:nowrap}.screen-game .play-area{flex:1 1 0;height:auto;min-height:0;padding:5px 0 10px}.screen-game .game-feedback,.tray-game.screen-game .game-feedback{min-height:26px}.screen-game .game-message,.tray-game.screen-game .game-message{font-size:11px;line-height:1.35;min-height:22px;margin:2px auto}.screen-game .tools{gap:8px;padding:3px 0 0}.screen-game .tools button,.tray-game.screen-game .tools button{flex:1;min-width:0;width:auto;min-height:44px;flex-direction:row;justify-content:center;gap:6px;font-size:12px;border:1px solid #ffffffaa;border-radius:14px;background:#ffffff75}.screen-game .tools button>span,.tray-game.screen-game .tools button>span{width:22px;height:24px;margin:0;background:none;border:0;border-radius:0;box-shadow:none}.screen-game .tools svg{width:21px;height:21px}.screen-game .preview-link{min-height:40px;margin:0 auto;padding:8px}.screen-game .prototype-label{font-size:9px;line-height:1.2;padding:0;margin:0}.screen-game .zoom-note{font-size:10px;line-height:1.2}}
