:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--text:#f4f4f1;--muted:#7d818d;--shell-max-width:760px;--shell-padding-x:14px}*,:before,:after{box-sizing:border-box;-webkit-tap-highlight-color:transparent}::selection{color:inherit;background:0 0}::selection{color:inherit;background:0 0}html,body,#app{width:100%;height:100%}body{color:var(--text);-webkit-user-select:none;user-select:none;background:#211d30;margin:0;font-family:Rubik Custom,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overflow:hidden}body.is-screen-transitioning #app{pointer-events:none}body.transition-home-to-levels{--screen-leave-y:-18px;--screen-enter-y:26px}body.transition-home-to-daily{--screen-leave-y:-12px;--screen-enter-y:22px}body.transition-levels-to-home{--screen-leave-y:18px;--screen-enter-y:-22px}body.transition-daily-to-home{--screen-leave-y:16px;--screen-enter-y:-18px}body.transition-menu-to-game{--screen-leave-y:-8px;--screen-enter-y:18px}body.transition-game-to-menu{--screen-leave-y:12px;--screen-enter-y:-18px}button{font:inherit;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}body.is-home-menu,body.is-level-menu,body.is-daily-menu{color:#f4f4f1;background:radial-gradient(circle at 50% 0,#ffffff0f,#0000 28%),#211d30;overflow:auto}body.is-home-menu,body.is-daily-menu{overflow:hidden}body.is-home-menu #app,body.is-level-menu #app,body.is-daily-menu #app{height:auto;min-height:100%}body.is-home-menu #app,body.is-daily-menu #app{height:100dvh;min-height:100dvh}.home-menu,.level-menu{width:min(100%, var(--shell-max-width));min-height:100dvh;padding:max(18px, env(safe-area-inset-top)) var(--shell-padding-x) max(24px, env(safe-area-inset-bottom));align-content:start;gap:18px;margin:0 auto;display:grid}.home-menu,.level-menu,.daily-menu,.game-shell{will-change:transform, opacity, filter;transition:transform .24s cubic-bezier(.18,.92,.2,1),opacity .18s,filter .24s}.screen-leave{opacity:0;filter:blur(8px);transform:translateY(var(--screen-leave-y,18px)) scale(.985)}.screen-enter{opacity:0;filter:blur(10px);transform:translateY(var(--screen-enter-y,20px)) scale(.985)}.screen-enter.screen-enter-active{opacity:1;filter:blur();transform:translateY(0)scale(1)}.home-menu{grid-template-rows:auto minmax(0,1fr) auto;gap:16px;height:100dvh;overflow:hidden}.level-menu{padding-top:max(10px, env(safe-area-inset-top));align-content:start;gap:12px}.daily-menu{width:min(100%, var(--shell-max-width));height:100dvh;min-height:100dvh;padding:max(10px, env(safe-area-inset-top)) var(--shell-padding-x) max(24px, env(safe-area-inset-bottom));grid-template-rows:auto minmax(0,1fr);align-content:start;gap:12px;margin:0 auto;display:grid;overflow:hidden}.home-menu>*{min-width:0}.home-panel{color:#343642;background:linear-gradient(#f8f7f4 0%,#ece9e3 100%);border:0;border-radius:clamp(24px,4vw,34px);gap:12px;padding:18px 18px 20px;display:grid;box-shadow:inset 0 2px #fffffff2,0 14px 32px #0000002e}.home-panel-kicker{color:#7d818d;text-transform:uppercase;letter-spacing:.08em;font-size:12px;line-height:1}.home-profile-panel{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:12px;padding:0 2px 4px;display:grid}.home-profile-actions{align-items:center;gap:10px;display:inline-flex}.home-main-actions{align-content:start;gap:16px;min-height:0;display:grid}.home-progress-panel{text-align:center;color:#343642;justify-items:center;gap:18px;display:grid}.home-profile-avatar{color:#65489a;background:radial-gradient(circle at 30% 30%,#fffffff5,#ffffffe6 55%,#dddbe2f2 100%);border-radius:999px;place-items:center;width:72px;height:72px;font-size:32px;display:grid;box-shadow:inset 0 2px #fffffff2,0 6px 18px #00000029}.home-profile-copy h1,.home-play-copy h2{letter-spacing:-.03em;color:#f7f5f2;margin:0;font-size:clamp(34px,9vw,60px);line-height:.95}.home-profile-copy p,.home-play-copy p,.home-play-copy small{color:#6d727d;margin:0;font-size:clamp(14px,3.6vw,16px);line-height:1.35}.home-profile-copy{align-items:center;min-width:0;display:flex}.home-profile-copy h1{font-size:clamp(26px,7vw,42px)}.home-profile-stars{min-width:0;box-shadow:none;background:0 0;justify-content:center;align-items:center;gap:10px;padding:0;display:inline-flex}.home-profile-stars-icon{font-size:32px;line-height:1}.home-profile-stars strong{color:#fff;font-size:clamp(28px,6.4vw,42px);line-height:.9}.home-profile-settings{color:#f7f5f2;background:linear-gradient(#4d4f65f5,#36374aeb);border:0;border-radius:22px;place-items:center;width:68px;height:68px;padding:0;display:grid;box-shadow:inset 0 1px #ffffff40,0 10px 24px #0003}.home-profile-settings-icon{font-size:30px;line-height:1}.home-daily-panel{background:linear-gradient(#4d4f65f5,#36374aeb);grid-template-rows:minmax(0,1fr) auto auto;align-content:start;gap:14px;width:100%;height:100%;min-height:0;box-shadow:inset 0 1px #ffffff40,0 14px 32px #00000038}.home-daily-card{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"copy stack""button button";gap:18px}.home-daily-card-copy{grid-area:copy;align-content:start;gap:10px;display:grid}.home-daily-card-copy h2{color:#343642;letter-spacing:-.03em;margin:0;font-size:clamp(32px,8vw,56px);line-height:.95}.home-daily-card-copy small{color:#6d727d;margin:0;font-size:clamp(14px,3.6vw,16px);line-height:1.35}.home-daily-card-stack{grid-area:stack;width:122px;height:112px;position:relative}.home-daily-card-badge,.home-daily-card-rank{border-radius:22px;place-items:center;display:grid;position:absolute;box-shadow:0 14px 24px #00000024}.home-daily-card-badge{color:#ffffffeb;background:linear-gradient(#ffd79a 0%,#f0ad43 100%);width:74px;height:74px;font-size:30px;font-weight:700;top:0;right:6px;transform:rotate(15deg)}.home-daily-card-rank{color:#343642b3;background:linear-gradient(#f1e7ff 0%,#d8bff6 100%);width:72px;height:72px;font-size:22px;font-weight:700;bottom:6px;left:4px;transform:rotate(-14deg)}.home-daily-card-button{color:#23243a;background:linear-gradient(#ffd68c 0%,#f7bf59 100%);border:0;border-radius:28px;grid-area:button;justify-content:center;align-items:center;gap:14px;width:100%;min-height:96px;padding:0 28px;font-size:clamp(24px,6vw,42px);font-weight:600;display:inline-flex;box-shadow:inset 0 2px #fff7e0f5,inset 0 -5px #a262161f,0 12px 22px #c9841d2e}.daily-screen-panel{height:100%;min-height:0;margin-top:4px}.home-daily-copy strong,.home-daily-reward strong,.home-daily-tab strong,.home-daily-play-copy strong{color:#343642;font-size:clamp(24px,6.5vw,38px);line-height:1}.home-daily-copy small,.home-daily-reward span,.home-daily-tab small,.home-daily-play-copy small{color:#7d818d;font-size:clamp(13px,3.2vw,15px)}.home-daily-board{background:linear-gradient(#ffffffe0,#fbf9f4eb);border-radius:28px;grid-template-rows:minmax(0,1fr) auto;align-content:start;gap:0;min-height:0;padding:0;display:grid;overflow:hidden;box-shadow:inset 0 1px #fffffff2,0 4px 12px #0000000a}.home-daily-board-list{overscroll-behavior:contain;scrollbar-width:none;align-content:start;gap:0;min-height:0;display:grid;overflow-y:auto}.home-daily-board-list::-webkit-scrollbar{width:0;height:0}.home-daily-board-row,.home-daily-player-row{border-radius:0;grid-template-columns:44px 42px minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;padding:12px 16px;display:grid}.home-daily-board-row{background:0 0;border-bottom:1px solid #494b5e14}.home-daily-board-row.is-top{background:linear-gradient(#ffc6601a,#fff0)}.home-daily-player-wrap{background:linear-gradient(#fbf9f400 0%,#fbf9f4db 42%,#fbf9f4fa 100%);padding:18px 10px 10px}.home-daily-player-row{background:linear-gradient(#fff7e4e0,#fffffff5);border-radius:16px;margin-top:0;box-shadow:inset 0 0 0 1px #f1b34473,0 8px 18px #efb84a24}.home-daily-board-medal{color:#fff;border-radius:999px;place-items:center;width:38px;height:38px;font-size:18px;font-weight:700;display:grid;box-shadow:inset 0 2px #fff6}.home-daily-board-medal.medal-1{background:linear-gradient(#ffd46e 0%,#f0a72f 100%)}.home-daily-board-medal.medal-2{background:linear-gradient(#d8dbe4 0%,#a8aebb 100%)}.home-daily-board-medal.medal-3{background:linear-gradient(#efbe90 0%,#c67d42 100%)}.home-daily-board-avatar{background:linear-gradient(#f1f4f8 0%,#d5deeb 100%);border-radius:999px;place-items:center;width:38px;height:38px;font-size:21px;display:grid;box-shadow:inset 0 1px #fffffff2}.home-daily-board-avatar.is-player{color:#6f49a4;background:linear-gradient(#f4efff 0%,#dfd0ff 100%)}.home-daily-board-place,.home-daily-board-score{font-size:15px;line-height:1}.home-daily-board-place{color:#565b67;text-align:center;justify-content:center;align-items:center;width:38px;font-weight:700;display:inline-flex}.home-daily-board-place.is-player-place{color:#7d818d}.home-daily-board-name{color:#343642;min-width:0;font-size:17px;font-weight:600}.home-daily-board-score{color:#343642}.home-daily-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.home-daily-tab{text-align:left;color:#343642;background:linear-gradient(#ffffffd6,#f7f5f1eb);border:0;border-radius:24px;align-content:space-between;justify-items:start;gap:12px;min-height:120px;padding:18px 18px 20px;display:grid;box-shadow:inset 0 1px #fffffff5,0 10px 20px #00000014}.home-daily-tab.active{background:linear-gradient(#fff7e6fa,#fff4e2f5);box-shadow:inset 0 0 0 2px #f6af33b8,0 12px 22px #ecb34624}.home-daily-tab:not(.active){box-shadow:inset 0 1px #fffffff0,0 10px 18px #00000012}.home-daily-tab-kicker{color:#343642;font-size:clamp(17px,4vw,22px);font-weight:600;line-height:1.15}.home-daily-tab-reward{background:#fffffff5;border-radius:999px;align-items:center;gap:6px;padding:8px 12px;display:inline-flex;box-shadow:inset 0 1px #fffffffa,0 4px 10px #0000000f}.home-daily-tab-star{color:#ffb13a;font-size:18px;line-height:1}.home-daily-tab-reward small{color:#5d6472;font-size:16px;font-weight:700;line-height:1}.home-daily-play,.home-play-button{color:#23243a;background:linear-gradient(#ffd68c 0%,#f7bf59 100%);border:0;border-radius:28px;justify-content:center;align-items:center;gap:14px;width:100%;min-height:96px;padding:0 28px;font-size:clamp(24px,6vw,42px);font-weight:600;display:inline-flex;box-shadow:inset 0 2px #fff7e0f5,inset 0 -5px #a262161f,0 12px 22px #c9841d2e}.home-daily-play{text-align:center;margin-top:auto}.home-daily-play-copy{gap:0;display:grid}.home-daily-play-copy strong{font-size:inherit;font-weight:inherit}.home-daily-play-icon,.home-play-icon{flex:none;font-size:.72em;line-height:1}.home-play-copy{align-content:start;gap:10px;display:grid}.home-play-panel{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"copy stack""button button";gap:18px}.home-play-copy{grid-area:copy}.home-play-copy h2{color:#343642}.home-play-progress{background:#494b5e14;border-radius:999px;width:100%;height:12px;overflow:hidden}.home-play-progress-fill{border-radius:inherit;background:linear-gradient(90deg,#f0ac35 0%,#ffd37a 100%);height:100%;display:block}.home-play-stack{grid-area:stack;width:144px;height:118px;position:relative}.home-play-stack-tile{color:#34364273;border-radius:20px;place-items:center;width:72px;height:72px;font-size:28px;font-weight:700;display:grid;position:absolute;box-shadow:0 14px 24px #00000024}.stack-a{background:linear-gradient(#fffdf9 0%,#ece6dc 100%);top:0;right:14px;transform:rotate(18deg)}.stack-b{background:linear-gradient(#dff4e8 0%,#9ed1c2 100%);top:34px;left:14px;transform:rotate(-20deg)}.stack-c{color:#ffffffd6;background:linear-gradient(#ffd79a 0%,#f0ad43 100%);bottom:0;right:0;transform:rotate(16deg)}.home-play-button{color:#f7f4ff;background:linear-gradient(#b57cff 0%,#8f5ae8 52%,#7443cf 100%);grid-area:button;gap:18px;box-shadow:inset 0 2px #f0e2ffeb,inset 0 -5px #502b9057,0 12px 24px #683ab952}body.is-home-compact .home-menu{gap:12px}body.is-home-compact .home-panel{padding:16px 16px 18px}body.is-home-compact .home-profile-avatar{width:64px;height:64px;font-size:28px}body.is-home-compact .home-profile-stars{gap:8px}body.is-home-compact .home-profile-copy h1,body.is-home-compact .home-play-copy h2{font-size:clamp(28px,8vw,46px)}body.is-home-compact .home-daily-tab{min-height:100px;padding:14px 14px 16px}body.is-home-compact .home-daily-tab-kicker{font-size:clamp(15px,3.8vw,18px)}body.is-home-compact .home-daily-tab-reward small{font-size:14px}body.is-home-compact .home-daily-play,body.is-home-compact .home-play-button{min-height:82px;font-size:clamp(21px,5.4vw,32px)}body.is-home-compact .home-profile-settings{border-radius:18px;width:58px;height:58px}body.is-home-compact .home-play-panel,body.is-home-compact .home-daily-card{gap:14px}body.is-home-compact .home-play-stack{width:118px;height:86px}body.is-home-compact .home-daily-card-stack{width:108px;height:92px}body.is-home-compact .home-play-stack-tile{width:54px;height:54px;font-size:22px}body.is-home-compact .home-daily-card-badge{width:62px;height:62px;font-size:24px}body.is-home-compact .home-daily-card-rank{width:60px;height:60px;font-size:18px}body.is-home-tight .home-menu{gap:10px}body.is-home-tight .home-profile-panel{column-gap:10px}body.is-home-tight .home-profile-avatar{width:56px;height:56px;font-size:24px}body.is-home-tight .home-profile-stars{gap:8px}body.is-home-tight .home-daily-board-row,body.is-home-tight .home-daily-player-row{gap:8px;padding:8px 10px}body.is-home-tight .home-daily-board-avatar,body.is-home-tight .home-daily-board-medal{width:32px;height:32px;font-size:18px}body.is-home-tight .home-daily-board-row,body.is-home-tight .home-daily-player-row{grid-template-columns:32px 32px minmax(0,1fr) auto}body.is-home-tight .home-daily-board-place{width:32px}body.is-home-tight .home-daily-board-place,body.is-home-tight .home-daily-board-score,body.is-home-tight .home-daily-board-name{font-size:13px}body.is-home-tight .home-daily-player-wrap{padding:14px 8px 8px}body.is-home-tight .home-daily-tab{min-height:0;padding:12px 10px 14px}body.is-home-tight .home-daily-tab-kicker{font-size:14px;line-height:1.08}body.is-home-tight .home-daily-tab-reward{padding:6px 10px}body.is-home-tight .home-daily-play,body.is-home-tight .home-play-button{min-height:72px;padding:0 18px;font-size:clamp(18px,5vw,26px)}body.is-home-tight .home-play-panel,body.is-home-tight .home-daily-card{grid-template-columns:1fr;grid-template-areas:"copy""button"}body.is-home-tight .home-play-stack,body.is-home-tight .home-daily-card-stack{display:none}body.is-home-tight .home-profile-settings{border-radius:16px;width:50px;height:50px}body.is-home-tight .home-profile-settings-icon{font-size:24px}@media (height<=820px){.home-menu{padding-top:max(14px, env(safe-area-inset-top));padding-bottom:max(18px, env(safe-area-inset-bottom));gap:14px}.home-panel{padding:16px 16px 18px}.home-profile-avatar{width:84px;height:84px;font-size:38px}.home-main-actions{gap:14px}.home-daily-panel{min-height:0}.home-profile-copy h1,.home-play-copy h2{font-size:clamp(28px,8vw,46px)}.home-tile{min-height:130px;padding:16px 14px}.home-tile-icon{border-radius:20px;width:62px;height:62px;font-size:26px}.home-daily-play-copy strong{font-size:clamp(22px,5.8vw,30px)}}@media (width<=520px){.home-menu{gap:12px;padding-left:10px;padding-right:10px}.home-panel{padding:14px 14px 16px}.home-profile-panel{grid-template-columns:64px minmax(0,1fr) auto;align-items:start;column-gap:10px}.home-profile-avatar{width:64px;height:64px;font-size:28px}.home-profile-stars{place-self:start end;gap:10px;min-width:0;padding:0}.home-profile-stars-icon{font-size:24px}.home-profile-stars strong{font-size:clamp(22px,5.8vw,32px)}.home-profile-actions{gap:8px}.home-profile-settings{border-radius:20px;width:64px;height:64px}.home-profile-settings-icon{font-size:30px}.home-profile-copy{gap:4px}.home-profile-copy h1{font-size:clamp(26px,8vw,44px)}.home-play-copy p,.home-play-copy small{font-size:12px}.home-daily-board-row,.home-daily-player-row{gap:10px;padding:10px 12px}.home-daily-board-avatar,.home-daily-board-medal{width:36px;height:36px;font-size:20px}.home-daily-board-row,.home-daily-player-row{grid-template-columns:36px 36px minmax(0,1fr) auto}.home-daily-board-place{width:36px}.home-daily-board-name{font-size:16px}.home-daily-board-place,.home-daily-board-score,.home-daily-board-name{font-size:14px}.home-daily-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.home-daily-tab{min-height:0;padding:10px 8px 12px}.home-daily-tab-kicker{font-size:13px;line-height:1.05}.home-daily-tab-reward{padding:6px 10px}.home-daily-tab-reward small{font-size:13px}.home-daily-play{min-height:74px;padding:0 16px}.home-daily-play-copy strong{font-size:clamp(18px,6.2vw,24px)}.home-daily-play-icon,.home-play-icon{font-size:.72em}.home-play-panel{grid-template-columns:1fr;grid-template-areas:"copy""button";gap:12px;position:relative}.home-play-copy{padding-right:104px}.home-play-stack{justify-self:auto;width:92px;height:74px;position:absolute;bottom:92px;right:14px}.home-play-stack-tile{border-radius:14px;width:46px;height:46px;font-size:18px}.stack-a{right:8px}.stack-b{top:22px;left:8px}.home-play-button{min-height:78px;font-size:clamp(18px,6vw,24px)}.home-daily-card{grid-template-columns:1fr;grid-template-areas:"copy""button";gap:12px;position:relative}.home-daily-card-copy{padding-right:98px}.home-daily-card-copy h2{font-size:clamp(28px,8vw,40px)}.home-daily-card-stack{width:84px;height:72px;position:absolute;bottom:88px;right:14px}.home-daily-card-badge{border-radius:14px;width:44px;height:44px;font-size:18px}.home-daily-card-rank{border-radius:14px;width:46px;height:46px;font-size:14px}.home-daily-card-button{min-height:78px;font-size:clamp(18px,6vw,24px)}}.debug-toggle{color:#505461;cursor:pointer;background:#34364214;border:0;border-radius:14px;min-height:38px;padding:0 14px;font-size:13px;line-height:1;box-shadow:inset 0 1px #ffffffb3,inset 0 -3px #00000014}.debug-toggle.active{color:#2b2418;background:#f2b867;box-shadow:inset 0 1px #fff9,inset 0 -3px #0000001f}.debug-toggle:active{transform:translateY(1px)}.level-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(8px,2.4vw,12px);display:grid}.level-card{aspect-ratio:1;color:#0c0d10db;background:var(--tile,#86beb3);cursor:pointer;min-width:0;box-shadow:inset 0 -5px 0 var(--tile-side,#0000001f), 0 8px 0 #00000047, 0 13px 20px #00000029;border:0;border-radius:clamp(10px,2.2vw,14px);grid-template-rows:auto 1fr auto;align-content:center;place-items:center;gap:6px;padding:10px 8px 12px;display:grid;position:relative}.level-card.theme-reach,.level-card.theme-classic{--tile:#86beb3;--tile-side:#5d8982}.level-card.theme-collection{--tile:#efeec0;--tile-side:#b6b48a}.level-card.theme-score{--tile:#f2b867;--tile-side:#b9823d}.level-card.theme-puzzle{--tile:#f45b5f;--tile-side:#b43940}.level-card-number{font-size:clamp(22px,6vw,34px);line-height:1}.level-card-goal{place-items:center;width:100%;min-height:34px;display:grid}.level-card-goal-number,.level-card-goal-text{color:inherit;font-size:clamp(14px,3.8vw,18px);font-weight:700;line-height:1}.level-card-goal-number{letter-spacing:-.03em}.level-card-goal-text{text-transform:lowercase;font-size:clamp(12px,3.2vw,15px)}.level-card-stars{justify-content:center;align-items:center;gap:4px;display:inline-flex}.level-card-star{color:#12161c38;font-size:clamp(15px,4vw,19px);line-height:1}.level-card-star.is-earned{color:#fff4b4;text-shadow:0 1px #815f193d,0 0 10px #ffef9e47}.level-card-footer{color:#0c0d109e;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:clamp(10px,2.7vw,12px);line-height:1;overflow:hidden}.level-card.locked{color:#ffffffe6;cursor:default;opacity:.78;background:#4e5160;box-shadow:inset 0 -4px #0000002e,0 8px #00000038,0 13px 20px #00000024}.level-card.locked .level-card-footer,.level-card.locked .level-card-star{color:#ffffffb8}.level-card.completed{box-shadow:inset 0 -4px #0000001a,inset 0 0 0 3px #ffffff61,0 8px #00000047,0 13px 20px #00000029}.level-card:active{transform:translateY(2px);box-shadow:inset 0 -2px #0000001a,0 5px #00000047,0 9px 16px #00000029}.level-menu-strip.level-strip,.daily-menu-strip.level-strip{top:max(10px, env(safe-area-inset-top));z-index:12;position:sticky}.daily-menu-strip.level-strip{box-shadow:inset 0 2px #ffffffe6,inset 0 -7px #00000029}.level-menu-season,.daily-menu-title{margin:0}.level-menu-progress{text-transform:lowercase;white-space:nowrap}.level-menu-tools{justify-content:flex-end;margin-top:-4px;display:flex}body.is-game-screen{--board-recess:#171423;--muted:#7d818d;--cell-gap:2px;--select-press-ms:.16s;--select-press-ease:cubic-bezier(.18, .92, .2, 1);--game-sticky-top:max(10px, env(safe-area-inset-top));--game-strip-height:74px;--game-hud-height:66px;--game-shell-padding-y:max(10px, env(safe-area-inset-top));--game-shell-padding-bottom:max(18px, env(safe-area-inset-bottom));--game-chrome-height:calc(var(--game-strip-height) + var(--game-hud-height) + 20px);--game-board-max-width:calc(var(--shell-max-width) - (var(--shell-padding-x) * 2));--board-size:min(calc(100vw - (var(--shell-padding-x) * 2)), var(--game-board-max-width), calc(100dvh - var(--game-chrome-height) - var(--game-shell-padding-y) - var(--game-shell-padding-bottom) - 28px));background:#211d30;overflow:auto}body.is-game-screen:before{content:"";pointer-events:none;opacity:.45;background:radial-gradient(at 50% 30%,#ffffff09,#0000 42%),linear-gradient(#ffffff06,#0000 38%);position:fixed;inset:0}.game-shell{z-index:1;min-height:100dvh;width:min(100%, var(--shell-max-width));padding:var(--game-shell-padding-y) var(--shell-padding-x) var(--game-shell-padding-bottom);grid-template-rows:auto auto minmax(0,1fr);align-items:stretch;gap:10px;margin:0 auto;display:grid;position:relative}.game-top-slot{display:none}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.level-strip{color:#343642;background:linear-gradient(#f4f4f1 0%,#e7e7e3 100%);border-radius:clamp(20px,4vw,30px);grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;width:100%;min-height:58px;margin:0 auto;padding:8px;display:grid;box-shadow:inset 0 2px #ffffffe6,inset 0 -7px #00000029,0 12px #00000038}body.is-game-screen .level-strip{top:var(--game-sticky-top);z-index:16;position:sticky}.level-strip-left{justify-self:start;align-items:center;gap:10px;min-width:0;display:flex}.menu-icon-button{aspect-ratio:1;color:#556273;cursor:pointer;background:linear-gradient(#eef3f7,#cfd8e3);border:0;border-radius:50%;flex:none;align-self:center;place-items:center;width:42px;height:42px;padding:0;font-size:34px;line-height:.8;display:grid;transform:translateY(-3px);box-shadow:inset 0 2px #ffffffe0,inset 0 -2px #3f526624}.level-strip-copy{align-items:center;min-width:0;display:flex}.level-strip-copy strong{color:#6d727d;font-size:clamp(11px,3vw,13px);font-weight:500;line-height:1.2}.level-strip-goal,.level-strip-meta{color:#6d727d;font-size:clamp(11px,3vw,13px);line-height:1.2}.level-strip-goal{color:#343642;text-align:center;text-overflow:ellipsis;white-space:nowrap;justify-self:center;min-width:0;max-width:min(100%,320px);padding:0 8px;font-size:clamp(18px,4.8vw,26px);font-weight:700;overflow:hidden}.goal-tile-row{vertical-align:middle;align-items:center;gap:6px;display:inline-flex}.goal-prefix,.goal-suffix{color:#7a7d86;font-size:.56em;font-weight:600}.goal-value{color:inherit}.goal-score-live{transform-origin:50%;transition:transform .12s linear;display:inline-block;transform:scale(1)}.goal-score-live.score-gain{transform:scale(var(--score-gain-scale,1))}.goal-tile{vertical-align:middle;width:1.45em;height:1.45em;color:var(--tile-text,#211d30);background:var(--tile-side,#00000047);border-radius:.34em;place-items:center;display:inline-grid;position:relative}.goal-tile:before{content:"";border-radius:inherit;background:var(--tile,#86beb3);position:absolute;inset:0 0 .2em}.goal-tile-label{z-index:1;font-size:.62em;font-weight:800;line-height:1;position:relative;transform:translateY(-.08em)}.goal-tile-top{border-radius:13px;width:45px;height:45px;margin-left:.18em}.goal-tile-top:before{inset:0 0 6px}.goal-tile-top .goal-tile-label{font-size:.7em;transform:translateY(-2px)}.level-strip-meta{text-align:right;min-width:72px;max-width:120px}.level-strip-meta:empty{min-width:0}.level-strip-meta.level-strip-meta-emphasis{color:#4e5563;font-size:clamp(14px,3.8vw,18px);font-weight:700;line-height:1}.level-strip-side{justify-content:flex-end;justify-self:end;align-items:center;gap:8px;display:flex}.game-over{z-index:30;pointer-events:none;opacity:0;background:#0d0b1561;place-items:center;padding:24px;transition:opacity .18s;display:grid;position:fixed;inset:0}.game-over.visible{opacity:1;pointer-events:auto}.game-over-card{color:#333642;background:linear-gradient(#f4f4f1 0%,#e7e7e3 100%);border-radius:clamp(22px,4vw,34px);place-items:center;gap:8px;min-width:min(78vw,320px);padding:22px 28px 26px;transition:transform .18s cubic-bezier(.16,.9,.2,1);display:grid;transform:translateY(8px)scale(.96);box-shadow:inset 0 2px #ffffffe6,inset 0 -7px #00000029,0 12px #00000042,0 22px 42px #00000047}.game-over.visible .game-over-card{transform:translateY(0)scale(1)}.game-over-card strong{font-size:clamp(30px,8vw,48px);line-height:1}.game-over-card span{color:#6d727d;font-size:clamp(14px,3.8vw,17px)}.game-over-score{color:#5e6470;margin-top:4px;font-size:clamp(16px,4vw,20px)}.game-over-score strong{font-size:inherit}.game-over-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;margin-top:10px;display:grid}.game-over-actions.single{grid-template-columns:minmax(0,1fr)}.game-over-button{color:#444755;cursor:pointer;background:#dcdcd7;border:0;border-radius:16px;min-height:46px;font-size:16px;font-weight:700;box-shadow:inset 0 2px #ffffffd9,inset 0 -5px #0000001f,0 6px #0000002e}.game-over-button.primary{color:#2b2418;background:#f2b867}.game-over-button:active{transform:translateY(1px)}.hud{background:linear-gradient(#f4f4f1 0%,#e7e7e3 100%);border:0;border-radius:clamp(22px,4vw,34px);width:100%;min-height:66px;margin:0 auto;padding:0;overflow:hidden;box-shadow:inset 0 2px #ffffffe6,inset 0 -7px #00000029,0 12px #00000038}body.is-game-screen .hud{top:calc(var(--game-sticky-top) + var(--game-strip-height) + 10px);z-index:15;position:sticky}.hud strong{letter-spacing:0;color:#333642;transform-origin:50%;font-size:clamp(22px,6vw,32px);line-height:1;transition:transform .12s linear;display:inline-block;transform:scale(1)}.hud strong.score-gain{transform:scale(var(--score-gain-scale,1))}.hud-timer{width:100%;min-height:66px;position:relative;overflow:hidden}.hud-timer.no-timer .hud-timer-track,.hud-timer.no-timer .hud-timer-text{opacity:0}.hud-timer-track{border-radius:calc(clamp(22px,4vw,34px) - 1px);position:absolute;inset:1px 2px 8px;overflow:hidden}.hud-timer-base{background:#ecece7;position:absolute;inset:0}.hud-timer-fill{border-radius:inherit;background:linear-gradient(90deg,#f2b867 0%,#f08a4b 55%,#df5757 100%);width:100%;transition:width .12s linear,filter .12s linear;position:absolute;inset:0 auto 0 0;box-shadow:0 0 14px #f08a4b42}.hud-timer-overlay{pointer-events:none;background:linear-gradient(#ffffff47,#ffffff0f 36%,#fff0 54%);position:absolute;inset:0}.hud-timer.is-low .hud-timer-fill{filter:saturate(1.12)brightness(.98)}.hud-timer.is-critical .hud-timer-fill{filter:saturate(1.24)brightness(.95)}.hud-timer-text{z-index:1;color:#5f5f63;font-variant-numeric:tabular-nums;font-size:clamp(12px,3vw,14px);font-weight:700;line-height:1;position:absolute;top:50%;left:18px;transform:translateY(-50%)}.hud-score{z-index:1;pointer-events:none;place-items:center;display:grid;position:absolute;inset:0}.hud-score.hidden{opacity:0}.hud-collection-goals{z-index:1;pointer-events:none;justify-content:center;align-items:center;gap:34px;display:flex;position:absolute;inset:0 20px}.hud-collection-slot{color:#333642;align-items:center;gap:12px;font-weight:700;display:inline-flex}.goal-tile-hud{border-radius:13px;width:45px;height:45px;font-size:29px}.goal-tile-hud:before{inset:0 0 6px}.goal-tile-hud .goal-tile-label{font-size:.7em;transform:translateY(-2px)}.hud-collection-count{transform-origin:50%;min-width:1ch;font-size:clamp(18px,4.8vw,28px);line-height:1;transition:transform .12s linear;display:inline-block;transform:scale(1)}.hud-collection-count.score-gain{transform:scale(var(--score-gain-scale,1))}.icon-button{aspect-ratio:1;color:#6a4b18;cursor:pointer;text-indent:-2px;background:linear-gradient(#f8e6bf,#e8bd6b);border:0;border-radius:50%;flex:none;align-self:center;place-items:center;width:44px;height:44px;padding:2px 0 0;font-size:28px;line-height:.8;display:grid;transform:translateY(-3px);box-shadow:inset 0 2px #fff7e0e6,inset 0 -2px #81591724}.icon-button:active{transform:translateY(-2px)}.board-wrap{width:var(--board-size);height:var(--board-size);grid-row:3;place-self:center;place-items:center;margin:0 auto;display:grid}.board{width:100%;height:100%;padding:var(--cell-gap);background:var(--board-recess);touch-action:manipulation;-webkit-user-select:none;user-select:none;border:0;border-radius:clamp(16px,3vw,26px);position:relative;box-shadow:inset 0 22px 28px #00000057,inset 0 2px #00000052,0 16px 28px #0000001f}.cell{z-index:1;border-radius:var(--cell-radius,20px);color:var(--tile-text,#211d30);font-size:var(--cell-font-size,36px);letter-spacing:0;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;box-shadow:none;background:0 0;border:0;outline:none;place-items:center;font-weight:760;line-height:1;transition:transform .18s cubic-bezier(.16,.9,.2,1),filter .16s,opacity .16s;display:grid;position:absolute;overflow:visible;transform:scale(1)}.blocker{z-index:0;border-radius:var(--cell-radius,20px);background:linear-gradient(#ffffff0d,#0000 42%),#0f0d17;position:absolute;box-shadow:inset 0 8px 12px #00000061,inset 0 -2px #ffffff0a}.blocker:after{content:"";border-radius:inherit;background:#ffffff09;position:absolute;inset:20%}.cell:before{content:"";inset:0 0 var(--cell-depth,9px);z-index:1;border-radius:inherit;background:var(--tile,#86beb3);pointer-events:none;filter:brightness();transition:transform var(--select-press-ms,.16s) var(--select-press-ease,cubic-bezier(.18, .92, .2, 1)), filter var(--select-press-ms,.16s) ease;position:absolute;overflow:hidden;transform:translateY(0)}.cell-label{z-index:2;pointer-events:none;-webkit-user-select:none;user-select:none;transition:transform var(--select-press-ms,.16s) var(--select-press-ease,cubic-bezier(.18, .92, .2, 1));position:relative;transform:translateY(-4px)}.cell:after{content:"";inset:var(--cell-back-offset,8px) 0 0;z-index:0;border-radius:inherit;background:var(--tile-side,#00000047);pointer-events:none;position:absolute}.cell.selected:before{transform:translateY(var(--cell-press-y,6px));filter:brightness(.98)}.cell.selected .cell-label{transform:translateY(var(--cell-label-press-y,2px))}.selection-edge{z-index:6;pointer-events:none;background:#fff;border-radius:999px;position:absolute;box-shadow:0 0 4px #ffffff42,0 0 8px #ffffff1a}.selection-particle{z-index:5;pointer-events:none;width:5px;height:5px;animation:selectionParticle .98s ease-in-out var(--particle-delay,0s) infinite;background:#fffce6f0;border-radius:999px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 8px #fffce69e,0 0 14px #ffffff52}.cell.invalid{animation:.22s shake}.cell.spawn{animation:.24s pop}.cell.merge-flyover{z-index:3;pointer-events:none;transition:transform var(--fly-duration,.24s) cubic-bezier(.12, .82, .2, 1);box-shadow:none}.cell.merge-flyover:before{filter:brightness(.98);transform:translateY(6px)}.cell.merge-flyover .cell-label{transform:translateY(2px)}.cell.merge-anchor{z-index:8}.merge-score-popup{z-index:20;pointer-events:none;color:#fffffffa;font-size:calc(var(--cell-font-size,36px) * 2);white-space:nowrap;text-shadow:0 2px #00000038,0 6px 14px #00000047;transform-origin:50% 100%;animation:mergeScoreFloat var(--merge-score-duration,.72s) cubic-bezier(.16, .9, .2, 1) both;font-weight:760;line-height:1;position:fixed;transform:translate(-50%,-50%)}.cell.dropping,.cell.merged-pulse{pointer-events:none}.cell.merged-pulse{animation:.42s ease-out both mergeGlow}.cell.merged-pulse:before{animation:.42s ease-out both mergeFlashTop}.value-1{--tile:#86beb3;--tile-side:#5d8982}.value-2{--tile:#efeec0;--tile-side:#b6b48a}.value-3{--tile:#f2b867;--tile-side:#b9823d}.value-4{--tile:#f45b5f;--tile-side:#b43940}.value-5{--tile:#604d55;--tile-side:#3f3238;--tile-text:#fffaeceb}.value-6{--tile:#4ea6b8;--tile-side:#347587;--tile-text:#fffaecf5}.value-7{--tile:#a85f9b;--tile-side:#76426d;--tile-text:#fffaecf5}.value-8{--tile:#b0bd7b;--tile-side:#7f8b52;--tile-text:#fffaecf5}.value-9{--tile:#d08a3f;--tile-side:#9a622d;--tile-text:#fffaecf5}.value-10{--tile:#88b6cc;--tile-side:#5f8699;--tile-text:#211d30}@keyframes pop{0%{opacity:0;transform:scale(.66)}to{opacity:1;transform:scale(1)}}@keyframes shake{25%{transform:translate(-4px)}50%{transform:translate(4px)}75%{transform:translate(-2px)}}@keyframes selectionParticle{0%{opacity:0;transform:translate(-50%,-50%)scale(.45)}22%{opacity:1}72%{opacity:.55}to{opacity:0;transform:translate(calc(-50% + var(--float-x,0px)), calc(-50% + var(--float-y,0px))) scale(1)}}@keyframes mergeGlow{0%{filter:brightness(1.08);box-shadow:0 0 0 4px #ffffffd1,0 0 18px #ffffff94,0 0 34px #ffffff47}45%{filter:brightness(1.03);box-shadow:0 0 0 2px #ffffff57,0 0 12px #ffffff3d,0 0 24px #ffffff1f}to{filter:brightness();box-shadow:none}}@keyframes mergeFlashTop{0%{filter:saturate(.6)brightness(1.1);box-shadow:inset 0 0 0 999px #ffffffe0,inset 0 2px #ffffffeb}38%{filter:saturate(.82)brightness(1.04);box-shadow:inset 0 0 0 999px #ffffff5c,inset 0 2px #fff6}to{box-shadow:none;filter:none}}@keyframes mergeScoreFloat{0%{opacity:1;transform:translate(-50%,-50%)translate(0)scale(1)}42%{opacity:1;transform:translate(-50%,-50%)translateY(-46px)scale(1)}to{opacity:0;transform:translate(-50%, -50%) translate(var(--merge-score-dx,0px), var(--merge-score-dy,-120px)) scale(.58)}}@media (width<=520px){:root{--shell-padding-x:10px}body.is-game-screen{--game-strip-height:68px;--game-hud-height:60px;--board-size:min(calc(100vw - (var(--shell-padding-x) * 2)), calc(100dvh - var(--game-chrome-height) - var(--game-shell-padding-y) - var(--game-shell-padding-bottom) - 22px))}.game-shell{gap:8px}.level-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.level-strip{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px}.level-strip-left{gap:8px}.level-strip-side{grid-column:auto;justify-content:flex-end;align-items:center;display:flex}.level-strip-goal{padding:0 4px;font-size:clamp(15px,4.4vw,20px)}.level-strip-meta{text-align:right;max-width:none}.hud{min-height:60px}.hud strong{font-size:clamp(20px,6.4vw,28px)}.hud-timer{min-height:60px}.hud-timer-text{left:14px}.hud-timer-track{inset:1px 2px 7px}}@font-face{font-family:Rubik Custom;src:url(/assets/Rubik-Light-E9r0CFAQ.ttf)format("truetype");font-weight:300;font-style:normal;font-display:swap}
