html,body{overscroll-behavior:none;background-color:#1a1a1a;width:100%;height:100%;margin:0;padding:0;font-family:sans-serif;overflow:hidden}body{justify-content:center;align-items:stretch;display:flex;position:fixed;inset:0}.background-layer{z-index:0;pointer-events:none;filter:blur(4px);background-image:url(/assets/background-desctop-jcb-AxOD.png);background-position:50%;background-repeat:no-repeat;background-size:cover;display:none;position:fixed;inset:-20px;transform:scale(1.04)}.game-wrapper{--desktop-frame-ratio:.66;z-index:1;width:var(--app-width,100vw);height:var(--app-height,100vh);overscroll-behavior:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background:#000;position:relative;overflow:hidden}.game-wrapper img,.game-wrapper canvas{-webkit-user-drag:none}.game-wrapper input,.game-wrapper textarea,.game-wrapper [contenteditable]:not([contenteditable=false]){-webkit-touch-callout:default;-webkit-user-select:text;user-select:text}.game-wrapper select{-webkit-touch-callout:default;-webkit-user-select:auto;user-select:auto}.game-wrapper [data-i18n]{overflow-wrap:anywhere;word-break:normal;-webkit-hyphens:auto;hyphens:auto;min-width:0;max-width:100%}html.desktop-layout .background-layer{display:block}html.desktop-layout .game-wrapper{--desktop-control-height:52px;--desktop-control-font-size:18px;--desktop-control-radius:14px;width:min(var(--app-width,100vw), calc(var(--app-height,100vh) * var(--desktop-frame-ratio)));height:var(--app-height,100vh);box-shadow:0 0 30px #00000073}html.fullscreen-layout .background-layer{display:none}html.fullscreen-layout .game-wrapper{width:var(--app-width,100vw);height:var(--app-height,100vh)}.loading-screen{z-index:100;box-sizing:border-box;opacity:1;visibility:visible;background-image:url(/assets/background-kHmU2nDY.png);background-position:50%;background-repeat:no-repeat;background-size:cover;justify-content:center;align-items:center;padding:24px;transition:opacity .28s,visibility .28s;display:flex;position:absolute;inset:0;overflow:hidden}.loading-screen.is-hidden{opacity:0;visibility:hidden;pointer-events:none}.loading-content{flex-direction:column;align-items:center;width:min(100%,340px);display:flex;transform:translateY(-4vh)}.loading-logo{-webkit-user-select:none;user-select:none;-webkit-user-drag:none;width:min(100%,320px);height:auto;margin-bottom:clamp(34px,7vh,64px);display:block}.loading-panel{box-sizing:border-box;background:linear-gradient(#fff9df 0%,#f0dfae 100%);border:6px solid #e2a32d;border-radius:20px;width:min(100%,300px);padding:18px 20px 16px;box-shadow:0 4px #9d6519,0 12px 22px #00000052,inset 0 3px 4px #ffffffd9}.loading-title{color:#5a351f;text-align:center;min-height:1.15em;font-size:22px;font-weight:900;line-height:1.15}.loading-progress{box-sizing:border-box;background:#d2a457;border-radius:9px;width:100%;height:22px;margin-top:14px;padding:3px;overflow:hidden;box-shadow:inset 0 3px 6px #68451459}.loading-progress-fill{background:linear-gradient(#9be337 0%,#3e9f14 100%);border-radius:6px;width:0%;height:100%;transition:width .2s;box-shadow:inset 0 2px 3px #ffffff73}.loading-percent{color:#6b4020;text-align:center;margin-top:8px;font-size:17px;font-weight:900}.loading-retry-btn{cursor:pointer;color:#fff;background:linear-gradient(#35b8ff 0%,#0075de 100%);border:0;border-radius:13px;width:min(100%,190px);min-height:46px;margin:14px auto 0;font-size:17px;font-weight:900;display:none;box-shadow:0 3px #0059a8,0 7px 12px #0000004d,inset 0 2px 3px #ffffff73}.loading-screen.has-error .loading-progress-fill{background:linear-gradient(#ff6a6a 0%,#d92727 100%)}.loading-screen.has-error .loading-retry-btn{display:block}@media (hover:hover) and (pointer:fine){html.loading-active .background-layer{display:block}html.loading-active .game-wrapper{width:min(100vw, calc(var(--app-height,100vh) * var(--desktop-frame-ratio)));box-shadow:0 0 30px #00000073}}@media (prefers-reduced-motion:reduce){.loading-screen,.loading-progress-fill{transition:none}}canvas{touch-action:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;display:block}.game-ui{z-index:10;pointer-events:none;--main-screen-inset:20px;--main-section-gap:clamp(12px, 2.2vh, 24px);--main-column-gap:clamp(8px, 2vw, 20px);--main-control-size:clamp(52px, 7vh, 64px);--main-logo-max-width:394px;--level-card-padding:clamp(10px, 1.6vw, 20px);--main-menu-gap:clamp(14px, 2vw, 20px);--main-menu-row-height:clamp(58px, 7.8vh, 84px);--puzzle-section-gap:clamp(12px, 2.2vh, 24px);--puzzle-control-size:clamp(52px, 7vh, 64px);--puzzle-control-gap:clamp(8px, 2vw, 20px);--puzzle-action-height:clamp(52px, 7vh, 64px);position:absolute;inset:0}.main-screen{z-index:11;align-content:start;gap:var(--main-section-gap);box-sizing:border-box;padding:calc(var(--platform-safe-area-top,env(safe-area-inset-top,0px)) + var(--main-screen-inset)) calc(var(--platform-safe-area-right,env(safe-area-inset-right,0px)) + var(--main-screen-inset)) calc(var(--platform-safe-area-bottom,env(safe-area-inset-bottom,0px)) + var(--main-screen-inset)) calc(var(--platform-safe-area-left,env(safe-area-inset-left,0px)) + var(--main-screen-inset));pointer-events:none;grid-template-rows:auto auto auto;display:grid;position:absolute;inset:0;overflow:hidden}.main-screen__top{grid-template-columns:var(--main-control-size) minmax(0, 1fr) var(--main-control-size);align-items:start;gap:var(--main-column-gap);min-width:0;display:grid}.ui-icon{cursor:pointer;pointer-events:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:0;justify-content:center;align-items:center;margin:0;padding:0;transition:transform .12s,filter .12s;display:flex;position:relative}.ui-icon:active,.menu-button:active,.green-big-btn:active,.back-btn:active,.setup-action-btn:active,.size-btn:active,.toggle-btn:active,.show-picture-btn:active,.puzzle-hint-btn:active,.levels-tab:active,.levels-card:active{filter:brightness(.96);transform:translateY(3px)}.account-icon{width:var(--main-control-size);height:var(--main-control-size);background:#ffffffe0;border-radius:50%;box-shadow:0 4px 10px #00000040,inset 0 0 0 3px #fffffff2}.account-icon img{width:calc(var(--main-control-size) - 10px);height:calc(var(--main-control-size) - 10px);object-fit:cover;border-radius:50%;display:block}.account-level{z-index:1;box-sizing:border-box;color:#593313;text-shadow:0 1px #ffffff8c;background:linear-gradient(#ffd75e 0%,#e49a1b 100%);border:2px solid #fff8dc;border-radius:11px;justify-content:center;align-items:center;min-width:22px;height:22px;padding:0 5px;font-size:12px;font-weight:900;line-height:1;display:flex;position:absolute;top:-2px;right:-6px;box-shadow:0 2px 5px #5530096b}.settings-icon{width:var(--main-control-size);height:var(--main-control-size);background:linear-gradient(#b95cff 0%,#7434d6 100%);border-radius:14px;justify-self:end;box-shadow:0 2px #3a1974cc,0 6px 12px #00000059,inset 0 2px 3px #ffffff73}.settings-icon img{width:calc(var(--main-control-size) * .61);height:calc(var(--main-control-size) * .61);object-fit:contain;display:block}.game-logo{pointer-events:none;width:min(100%, var(--main-logo-max-width));justify-self:center}.game-logo img{-webkit-user-select:none;user-select:none;-webkit-user-drag:none;width:100%;height:auto;display:block}.level-card{pointer-events:auto;width:100%;height:auto;min-height:0;padding:var(--level-card-padding);box-sizing:border-box;gap:var(--main-column-gap);background:linear-gradient(#fffae1f5 0%,#e9d6a9f5 100%);border-radius:20px;grid-template-rows:auto;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;display:grid;box-shadow:0 10px 22px #00000047,inset 0 2px 3px #ffffffd9}.level-preview{isolation:isolate;aspect-ratio:1;box-sizing:border-box;background:#ed1225;border:3px solid #c49a61;border-radius:9px;place-self:start center;width:100%;height:auto;position:relative;overflow:hidden;box-shadow:0 2px #8b673e,0 5px 10px #563d1f3d,inset 0 0 0 1px #fff4c88c}.level-preview-grid{z-index:1;grid-template-columns:repeat(var(--level-preview-grid-size,4), minmax(0, 1fr));grid-template-rows:repeat(var(--level-preview-grid-size,4), minmax(0, 1fr));counter-reset:preview-tile;box-sizing:border-box;pointer-events:none;background:#d6b781;gap:2px;padding:2px;display:grid;position:absolute;inset:0}.level-preview-tile{counter-increment:preview-tile;background-image:linear-gradient(145deg, #ffffff29, #00000014), var(--level-preview-image,none);background-position:center, var(--preview-tile-x,0%) var(--preview-tile-y,0%);background-repeat:no-repeat;background-size:100% 100%, var(--level-preview-image-size,400% 400%);border:1px solid #aa814d;border-radius:5px;min-width:0;min-height:0;position:relative;box-shadow:inset 1px 1px 1px #ffffff80,inset -1px -1px 1px #1e140a59}.level-preview-tile:not(:last-child):after{content:counter(preview-tile);color:#fff8dc;font-variant-numeric:tabular-nums;text-shadow:0 2px 1px #1a140cf2,0 0 3px #000c;place-items:center;font-size:clamp(11px,3.6vw,16px);font-weight:900;line-height:1;display:grid;position:absolute;inset:0}.level-info{color:#4a3520;text-align:center;flex-direction:column;justify-content:center;align-items:center;width:100%;min-width:0;height:auto;display:flex}.level-title{font-size:clamp(13px,4.8vw,20px);font-weight:800;line-height:1.1}.level-card.is-complete .level-title{max-width:100%;margin-bottom:16px;font-size:clamp(22px,6.1vw,28px);font-weight:900;line-height:1.08}.level-number{margin-top:6px;margin-bottom:14px;font-size:clamp(22px,6.8vw,32px);font-weight:800;line-height:1}.level-number[hidden]{display:none}.level-play-btn{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:#fff;text-shadow:0 2px 1px #00000047;background:linear-gradient(#9bd845 0%,#4f9f24 100%);border:0;border-radius:15px;width:min(100%,124px);height:48px;font-size:clamp(14px,5vw,16px);font-weight:800;box-shadow:0 2px #2f6f16,0 6px 10px #00000040,inset 0 2px 3px #ffffff73}.level-card.is-complete .level-play-btn{width:min(100%,136px);font-size:clamp(15px,4.4vw,18px)}.main-menu-buttons{pointer-events:auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3, var(--main-menu-row-height));gap:var(--main-menu-gap);width:100%;display:grid}.main-menu-buttons.is-reduced{grid-template-rows:repeat(2, var(--main-menu-row-height))}.menu-button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;color:#fff;text-align:left;text-shadow:0 2px 1px #00000052;border:none;border-radius:16px;justify-content:flex-start;align-items:center;gap:clamp(6px,2vw,14px);min-width:0;min-height:0;padding:0 clamp(8px,2.2vw,16px);font-size:clamp(12px,min(3.9vw,2.1vh),18px);font-weight:800;line-height:1.02;transition:transform .12s,filter .12s;display:flex}.game-wrapper .menu-button span[data-i18n]{overflow-wrap:normal;word-break:normal;-webkit-hyphens:none;hyphens:none;text-wrap:balance;min-width:0}.menu-button[hidden],.profile-stat-card[hidden],.show-picture-btn[hidden]{display:none!important}.menu-button img{object-fit:contain;flex:none;width:clamp(34px,min(10vw,6vh),52px);height:clamp(34px,min(10vw,6vh),52px)}.puzzle-day-button{background:linear-gradient(#b95cff 0%,#7434d6 100%);box-shadow:0 3px #4f1ea4,0 7px 12px #00000059,inset 0 2px 3px #ffffff73}.regular-game-button{background:linear-gradient(#32b8ff 0%,#0074d9 100%);box-shadow:0 3px #00599f,0 7px 12px #00000052,inset 0 2px 3px #ffffff73}.shop-button{background:linear-gradient(#ff4a9b 0%,#d81668 100%);box-shadow:0 3px #a40f4f,0 7px 12px #00000052,inset 0 2px 3px #ffffff73}.levels-button{background:linear-gradient(#9bd845 0%,#4f9f24 100%);box-shadow:0 3px #2f6f16,0 7px 12px #0000004d,inset 0 2px 3px #ffffff73}.leaderboard-button{background:linear-gradient(#ffb22e 0%,#f08300 100%);box-shadow:0 3px #b65f00,0 7px 12px #00000052,inset 0 2px 3px #ffffff73}.how-to-play-button{background:linear-gradient(#ffd33a 0%,#f2a600 100%);box-shadow:0 3px #b87900,0 7px 12px #0000004d,inset 0 2px 3px #ffffff73}.screen{z-index:30;pointer-events:auto;box-sizing:border-box;padding:calc(var(--platform-safe-area-top,env(safe-area-inset-top,0px)) + var(--main-screen-inset)) calc(var(--platform-safe-area-right,env(safe-area-inset-right,0px)) + var(--main-screen-inset)) calc(var(--platform-safe-area-bottom,env(safe-area-inset-bottom,0px)) + var(--main-screen-inset)) calc(var(--platform-safe-area-left,env(safe-area-inset-left,0px)) + var(--main-screen-inset));flex-direction:column;align-items:center;display:none;position:absolute;inset:0}.main-screen[hidden],.screen[hidden]{display:none!important}.back-btn{top:calc(var(--platform-safe-area-top,env(safe-area-inset-top,0px)) + 18px);left:calc(var(--platform-safe-area-left,env(safe-area-inset-left,0px)) + 18px);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:#fff;background:linear-gradient(#b95cff 0%,#7434d6 100%);border:0;border-radius:15px;justify-content:center;align-items:center;width:64px;height:64px;font-size:42px;font-weight:900;line-height:1;display:flex;position:absolute;box-shadow:0 3px #4f1ea4,0 7px 12px #00000059,inset 0 2px 3px #ffffff73}.wood-title{color:#ffe15e;text-align:center;white-space:nowrap;text-shadow:0 3px #7b310b,0 5px 7px #00000059;background:radial-gradient(circle at 25% 20%,#ffffff38 0%,#0000 22%),linear-gradient(#b97427 0%,#7b3f13 100%);border-radius:36px;justify-content:center;align-items:center;width:min(100% - 90px,320px);min-height:72px;margin-top:45px;font-size:clamp(30px,8.6vw,48px);font-weight:900;line-height:1;display:flex;box-shadow:0 5px #5d2f0d,0 10px 18px #00000059,inset 0 3px 4px #ffffff40}.cream-panel{box-sizing:border-box;background:linear-gradient(#fff9df 0%,#f0dfae 100%);border:8px solid #e2a32d;border-radius:24px;width:min(100% - 34px,388px);margin-top:34px;padding:18px;box-shadow:0 5px #9d6519,0 12px 22px #00000052,inset 0 3px 4px #ffffffd9}.green-big-btn{box-sizing:border-box;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:#fff;text-align:center;white-space:normal;overflow-wrap:anywhere;text-shadow:0 3px #00000047,0 5px 8px #00000040;background:linear-gradient(#9be337 0%,#3e9f14 100%);border:0;border-radius:18px;justify-content:center;align-items:center;width:min(100%,310px);min-height:52px;margin:20px auto 0;padding:8px 16px;font-size:clamp(28px,8vw,40px);font-weight:900;line-height:1.05;display:flex;box-shadow:0 4px #246f0d,0 9px 14px #00000052,inset 0 2px 3px #ffffff73}.green-big-btn:disabled{cursor:default;filter:grayscale(.35)brightness(.86);opacity:.72;transform:none}.setup-title{width:min(100% - 135px,280px);margin-top:18px;font-size:clamp(28px,8vw,46px)}.setup-title.wide-title{width:min(100% - 120px,305px);font-size:clamp(26px,7.4vw,42px)}.setup-panel{padding:18px 18px 20px}.setup-preview-image{aspect-ratio:1.28;background-image:url(/assets/background-kHmU2nDY.png);background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:16px;width:100%;position:relative;overflow:hidden;box-shadow:0 3px #7d582373,0 6px 14px #00000038,inset 0 0 0 3px #ffffffbf}.regular-game-setup-screen .setup-preview-image{aspect-ratio:1;width:min(100%,236px);margin:0 auto}.setup-preview-grid{grid-template-columns:repeat(var(--preview-grid-size,6), 1fr);grid-template-rows:repeat(var(--preview-grid-size,6), 1fr);pointer-events:none;display:grid;position:absolute;inset:0}.setup-preview-cell{border-bottom:2px solid #ffffffc7;border-right:2px solid #ffffffc7}.setup-action-btn{box-sizing:border-box;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:#fff;text-align:center;text-shadow:0 2px 1px #00000047;background:linear-gradient(#35b8ff 0%,#0075de 100%);border:0;border-radius:15px;justify-content:center;align-items:center;gap:12px;width:min(100%,250px);min-height:52px;margin:18px auto 0;padding:8px 14px;font-size:clamp(17px,5vw,23px);font-weight:900;line-height:1.05;display:flex;box-shadow:0 3px #0059a8,0 7px 12px #0000004d,inset 0 2px 3px #ffffff73}.field-size-title{color:#6b4020;text-align:center;white-space:normal;overflow-wrap:anywhere;justify-content:center;align-items:center;gap:14px;min-width:0;margin-top:24px;font-size:clamp(18px,5.2vw,25px);font-weight:900;display:flex}.field-size-title:before,.field-size-title:after{content:"";background:#be87328c;width:54px;height:2px}.field-size-buttons{grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px;display:grid}.size-btn{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:#6b4020;background:linear-gradient(#fff8df 0%,#f0dfae 100%);border:2px solid #be873273;border-radius:14px;min-height:52px;font-size:clamp(21px,6vw,32px);font-weight:900;box-shadow:0 3px #8f591473,0 6px 12px #0000002e,inset 0 2px 3px #fffc}.size-btn.selected{color:#fff;text-shadow:0 2px 1px #00000047;background:linear-gradient(#ffc739 0%,#f28b00 100%);border-color:#b55b00;box-shadow:0 3px #a65100,0 7px 12px #00000047,inset 0 2px 3px #ffffff73}.hidden-file-input{display:none}.profile-panel{margin-top:34px;padding:24px 16px 20px}.profile-user{text-align:center}.profile-avatar-wrap{box-sizing:border-box;background:linear-gradient(#f6b735 0%,#b96b16 100%);border-radius:50%;width:100px;height:100px;margin:0 auto 14px;padding:5px}.profile-avatar{background:linear-gradient(#7ddcff 0%,#d8f6ff 100%);border-radius:50%;width:100%;height:100%;overflow:hidden;box-shadow:inset 0 0 0 3px #ffffffd9}.profile-avatar img{object-fit:cover;width:100%;height:100%}.profile-name{color:#5a351f;text-align:center;font-size:clamp(28px,8vw,38px);font-weight:900;line-height:1.05}.profile-user.is-authorized .profile-name{margin-bottom:14px}.profile-id{color:#7a5131;overflow-wrap:anywhere;max-width:100%;margin-top:8px;font-size:clamp(12px,3.4vw,15px);font-weight:800;line-height:1.15}.profile-auth-message{color:#6b4020;overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto;max-width:280px;margin:10px auto 0;font-size:clamp(16px,4.6vw,20px);font-weight:900;line-height:1.12}.profile-auth-btn{width:min(100%,300px);margin:14px auto 16px}.profile-auth-btn[hidden]{display:none}.profile-review-btn{width:min(100%,280px);min-height:50px;margin-top:18px;font-size:clamp(20px,5.5vw,28px)}.profile-review-btn[hidden]{display:none}.profile-progress-card,.profile-stat-card{background:linear-gradient(#fffae6f5 0%,#eedeb8f5 100%);border:2px solid #be873273;box-shadow:0 3px #8f591459,0 6px 10px #00000026,inset 0 2px 3px #fffc}.profile-progress-card{border-radius:15px;padding:12px 14px 10px}.profile-section-title{color:#6b4020;text-align:center;justify-content:center;align-items:center;gap:12px;font-size:clamp(17px,5vw,24px);font-weight:900;display:flex}.profile-progress-bar{background:linear-gradient(#f4dc9f 0%,#d5aa57 100%);border-radius:999px;width:100%;height:24px;margin-top:10px;position:relative;overflow:hidden;box-shadow:inset 0 3px 6px #68451459}.profile-progress-fill{background:linear-gradient(#9be337 0%,#3e9f14 100%);border-radius:999px;width:72%;height:100%}.profile-progress-text{color:#fff;letter-spacing:1px;text-shadow:0 2px 1px #00000052;justify-content:center;align-items:center;font-size:12px;font-weight:900;display:flex;position:absolute;inset:0}.profile-xp-left{color:#5a351f;text-align:right;margin-top:8px;font-size:12px;font-weight:900}.profile-xp-left span{color:#258a11}.profile-stats-title{margin-top:18px}.profile-stats-grid{grid-template-columns:repeat(2,1fr);gap:10px;margin-top:10px;margin-bottom:10px;display:grid}.profile-stat-card{box-sizing:border-box;color:#5a351f;border-radius:14px;grid-template-columns:58px 1fr;align-items:center;gap:8px;min-height:78px;padding:10px;display:grid}.profile-stat-icon{box-sizing:border-box;object-fit:contain;object-position:center;border-radius:12px;width:52px;height:52px;padding:7px;display:block}.profile-stat-label{font-size:clamp(13px,3.8vw,17px);font-weight:900;line-height:1.05}.profile-stat-value{margin-top:4px;font-size:clamp(28px,7.5vw,38px);font-weight:900;line-height:1}.profile-stat-card.profile-best-times-card{grid-column:1/-1;min-height:0;padding:10px;display:block}.profile-best-times-header{justify-content:center;align-items:center;gap:8px;display:flex}.profile-best-times-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px;display:grid}.profile-best-time-card{box-sizing:border-box;background:#fffae6b8;border:2px solid #be87326b;border-radius:11px;min-width:0;padding:9px 5px;box-shadow:inset 0 2px 3px #ffffffb8,0 2px #8f59142e}.profile-best-time-size{color:#6b4020;font-size:clamp(13px,3.8vw,16px);font-weight:900;line-height:1}.profile-best-time-value{color:#317c1b;font-size:clamp(22px,6.5vw,32px)}.settings-screen,.how-to-play-screen,.regular-game-setup-screen,.profile-screen,.shop-screen,.leaderboard-screen,.levels-screen{opacity:0;visibility:hidden;pointer-events:none;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#1a362a94;justify-content:center;padding:0;transition:opacity .22s,visibility 0s linear .22s;display:flex}.settings-screen{--settings-modal-offset:var(--main-screen-inset);--settings-panel-side-padding:var(--settings-modal-offset);padding:calc(var(--platform-safe-area-top,env(safe-area-inset-top,0px)) + var(--settings-modal-offset)) calc(var(--platform-safe-area-right,env(safe-area-inset-right,0px)) + var(--settings-modal-offset)) calc(var(--platform-safe-area-bottom,env(safe-area-inset-bottom,0px)) + var(--settings-modal-offset)) calc(var(--platform-safe-area-left,env(safe-area-inset-left,0px)) + var(--settings-modal-offset));justify-content:flex-start}.how-to-play-screen{--how-to-play-modal-offset:var(--main-screen-inset);--how-to-play-panel-side-padding:var(--how-to-play-modal-offset);padding:calc(var(--platform-safe-area-top,env(safe-area-inset-top,0px)) + var(--how-to-play-modal-offset)) calc(var(--platform-safe-area-right,env(safe-area-inset-right,0px)) + var(--how-to-play-modal-offset)) calc(var(--platform-safe-area-bottom,env(safe-area-inset-bottom,0px)) + var(--how-to-play-modal-offset)) calc(var(--platform-safe-area-left,env(safe-area-inset-left,0px)) + var(--how-to-play-modal-offset));justify-content:flex-start}.regular-game-setup-screen{--game-setup-modal-offset:var(--main-screen-inset);padding:calc(var(--platform-safe-area-top,env(safe-area-inset-top,0px)) + var(--game-setup-modal-offset)) calc(var(--platform-safe-area-right,env(safe-area-inset-right,0px)) + var(--game-setup-modal-offset)) calc(var(--platform-safe-area-bottom,env(safe-area-inset-bottom,0px)) + var(--game-setup-modal-offset)) calc(var(--platform-safe-area-left,env(safe-area-inset-left,0px)) + var(--game-setup-modal-offset));justify-content:flex-start}.profile-screen,.shop-screen,.leaderboard-screen,.levels-screen{--info-modal-offset:var(--main-screen-inset);--info-modal-body-side-padding:var(--info-modal-offset);padding:calc(var(--platform-safe-area-top,env(safe-area-inset-top,0px)) + var(--info-modal-offset)) calc(var(--platform-safe-area-right,env(safe-area-inset-right,0px)) + var(--info-modal-offset)) calc(var(--platform-safe-area-bottom,env(safe-area-inset-bottom,0px)) + var(--info-modal-offset)) calc(var(--platform-safe-area-left,env(safe-area-inset-left,0px)) + var(--info-modal-offset));justify-content:flex-start}.settings-screen .settings-modal{width:100%;height:auto;max-height:100%;margin:0}.how-to-play-screen .how-to-play-modal,.regular-game-setup-screen .game-setup-modal,.profile-screen .info-modal,.shop-screen .info-modal,.leaderboard-screen .info-modal,.levels-screen .info-modal{width:100%;margin:0}@media (width>=600px){html.fullscreen-layout .game-ui{--main-screen-inset:64px;--main-control-size:clamp(64px, 8vh, 80px);--main-logo-max-width:520px;--main-menu-row-height:clamp(64px, 8vh, 96px);--puzzle-control-size:clamp(64px, 8vh, 80px);--puzzle-control-gap:clamp(16px, 3vw, 32px);--puzzle-action-height:clamp(60px, 8vh, 80px)}html.fullscreen-layout .modal-close-btn{border-width:5px;width:64px;height:64px;min-height:64px;padding-bottom:3px;font-size:30px;top:-15px;right:-15px}html.fullscreen-layout .profile-auth-btn{white-space:normal;overflow-wrap:anywhere;min-height:60px;padding:8px 18px;font-size:clamp(20px,3vw,24px);line-height:1.05}html.fullscreen-layout .levels-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}html.fullscreen-layout .levels-card,html.fullscreen-layout .levels-card.small{grid-column:auto}html.fullscreen-layout .puzzle-topbar{grid-template-columns:80px 1fr 1fr 80px;gap:16px}html.fullscreen-layout .puzzle-back-btn,html.fullscreen-layout .puzzle-hint-btn,html.fullscreen-layout .puzzle-stat-card{border-radius:17px;height:80px}html.fullscreen-layout .puzzle-back-btn{font-size:48px}html.fullscreen-layout .puzzle-hint-btn-icon{width:54px;height:54px}html.fullscreen-layout .puzzle-hint-btn.is-countdown{font-size:32px}html.fullscreen-layout .puzzle-hint-btn:after{width:32px;height:32px;font-size:15px;top:-9px;right:-9px}html.fullscreen-layout .puzzle-stat-card{gap:12px;font-size:28px}html.fullscreen-layout .puzzle-stat-icon{width:38px;height:38px}html.fullscreen-layout .show-picture-btn{border-radius:16px;min-height:80px;font-size:20px}html.fullscreen-layout .show-picture-btn:after{min-width:30px;height:30px;font-size:13px}html.fullscreen-layout .level-title{font-size:clamp(22px,min(4.2vw,4vh),40px);font-weight:900}html.fullscreen-layout .level-card.is-complete .level-info{box-sizing:border-box;justify-content:center;padding:0 clamp(8px,2vw,24px)}html.fullscreen-layout .level-card.is-complete .level-title{max-width:100%;margin-bottom:clamp(16px,3vh,36px);font-size:clamp(24px,min(4.6vw,4.4vh),44px);line-height:1.08}html.fullscreen-layout .level-number{margin-top:clamp(8px,1.5vh,16px);margin-bottom:clamp(14px,3vh,30px);font-size:clamp(36px,min(8vw,7vh),70px);font-weight:900}html.fullscreen-layout .level-play-btn{border-radius:24px;width:min(100%,240px);height:clamp(52px,8vh,76px);font-size:clamp(20px,min(3.8vw,3.5vh),30px)}html.fullscreen-layout .level-card.is-complete .level-play-btn{width:min(100%,270px);font-size:clamp(24px,3vw,28px)}html.fullscreen-layout .menu-button{border-radius:24px;gap:clamp(10px,2vw,20px);padding:0 clamp(12px,2.4vw,24px);font-size:clamp(16px,min(3vw,2.5vh),30px);line-height:1.08}html.fullscreen-layout .menu-button img{width:clamp(44px,min(8vw,6.5vh),76px);height:clamp(44px,min(8vw,6.5vh),76px)}html.fullscreen-layout .settings-screen{--settings-modal-offset:64px}html.fullscreen-layout .how-to-play-screen{--how-to-play-modal-offset:64px}html.fullscreen-layout .settings-modal,html.fullscreen-layout .how-to-play-modal,html.fullscreen-layout .regular-setup-modal,html.fullscreen-layout .profile-modal,html.fullscreen-layout .shop-modal,html.fullscreen-layout .leaderboard-modal,html.fullscreen-layout .levels-modal,html.fullscreen-layout .victory-modal{height:auto;max-height:100%}html.fullscreen-layout .settings-modal-body,html.fullscreen-layout .settings-modal .settings-panel,html.fullscreen-layout .how-to-play-modal-body,html.fullscreen-layout .how-to-play-modal .how-to-play-panel,html.fullscreen-layout .game-setup-modal-body,html.fullscreen-layout .game-setup-modal .setup-panel,html.fullscreen-layout .profile-body,html.fullscreen-layout .profile-modal .profile-panel,html.fullscreen-layout .shop-modal-body,html.fullscreen-layout .leaderboard-modal-body,html.fullscreen-layout .leaderboard-modal .leaderboard-panel,html.fullscreen-layout .levels-modal-body,html.fullscreen-layout .levels-modal .levels-panel,html.fullscreen-layout .victory-body,html.fullscreen-layout .victory-panel{flex:0 auto}html.fullscreen-layout .regular-game-setup-screen{--game-setup-modal-offset:64px}html.fullscreen-layout .regular-game-setup-screen .setup-preview-image{aspect-ratio:1;width:100%}html.fullscreen-layout .profile-screen,html.fullscreen-layout .shop-screen,html.fullscreen-layout .leaderboard-screen,html.fullscreen-layout .levels-screen{--info-modal-offset:64px}html.fullscreen-layout .victory-overlay{padding:calc(var(--platform-safe-area-top,env(safe-area-inset-top,0px)) + 64px) calc(var(--platform-safe-area-right,env(safe-area-inset-right,0px)) + 64px) calc(var(--platform-safe-area-bottom,env(safe-area-inset-bottom,0px)) + 64px) calc(var(--platform-safe-area-left,env(safe-area-inset-left,0px)) + 64px);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#1a362a94;justify-content:center;align-items:center}html.fullscreen-layout .victory-modal{width:100%;margin:0}html.fullscreen-layout .victory-body{padding:clamp(28px,6vh,52px) 64px}html.fullscreen-layout .victory-panel{padding:2px 2px 12px}}html.desktop-layout .settings-screen{--settings-modal-offset:32px}html.desktop-layout .how-to-play-screen{--how-to-play-modal-offset:32px}html.desktop-layout .regular-game-setup-screen{--game-setup-modal-offset:32px}html.desktop-layout .profile-screen,html.desktop-layout .shop-screen,html.desktop-layout .leaderboard-screen,html.desktop-layout .levels-screen{--info-modal-offset:32px}html.desktop-layout .settings-modal,html.desktop-layout .how-to-play-modal,html.desktop-layout .regular-setup-modal,html.desktop-layout .profile-modal,html.desktop-layout .shop-modal,html.desktop-layout .leaderboard-modal,html.desktop-layout .levels-modal{height:auto;max-height:100%}html.desktop-layout .settings-modal-body,html.desktop-layout .settings-modal .settings-panel,html.desktop-layout .how-to-play-modal-body,html.desktop-layout .how-to-play-modal .how-to-play-panel,html.desktop-layout .game-setup-modal-body,html.desktop-layout .game-setup-modal .setup-panel,html.desktop-layout .profile-body,html.desktop-layout .profile-modal .profile-panel,html.desktop-layout .shop-modal-body,html.desktop-layout .leaderboard-modal-body,html.desktop-layout .leaderboard-modal .leaderboard-panel,html.desktop-layout .levels-modal-body,html.desktop-layout .levels-modal .levels-panel{flex:0 auto}html.desktop-layout .settings-modal-body,html.desktop-layout .how-to-play-modal-body,html.desktop-layout .game-setup-modal-body,html.desktop-layout .profile-body,html.desktop-layout .info-modal-body{padding:clamp(28px,6vh,52px) 20px}html.desktop-layout .profile-modal .profile-panel{padding:0}html.desktop-layout .regular-game-setup-screen .setup-preview-image{aspect-ratio:1;width:100%}html.desktop-layout .regular-game-setup-screen #refreshPictureBtn{width:100%;max-width:none}.settings-modal,.how-to-play-modal,.game-setup-modal,.info-modal{box-sizing:border-box;opacity:0;background:#e9a928;border-radius:24px;flex-direction:column;width:calc(100% - 32px);height:clamp(390px,72%,620px);margin:0 16px;transition:opacity .22s,transform .22s;display:flex;position:relative;transform:translateY(14px)scale(.97);box-shadow:0 7px #a56a12,0 22px 38px #0000006b,inset 0 2px 3px #ffffff61}.settings-modal-header,.how-to-play-modal-header,.game-setup-modal-header,.info-modal-header{box-sizing:border-box;flex:0 0 58px;justify-content:center;align-items:center;padding:0 54px;display:flex;position:relative}.settings-modal-title,.how-to-play-modal-title,.game-setup-modal-title,.info-modal-title{color:#8a5516;text-align:center;overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto;margin:0;font-size:clamp(22px,6.4vw,30px);font-weight:900;line-height:1}.modal-close-btn{box-sizing:border-box;cursor:pointer;touch-action:manipulation;color:#fff;background:#ef2c32;border:3px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:38px;height:38px;min-height:38px;padding:0 0 2px;font-size:30px;font-weight:700;line-height:1;display:flex;position:absolute;top:-15px;right:-15px;box-shadow:0 5px 10px #00000047}.modal-close-btn:active{filter:brightness(.95);transform:translateY(2px)}.game-ui.settings-mode .settings-screen,.game-ui.how-to-play-mode .how-to-play-screen,.game-ui.regular-setup-mode .regular-game-setup-screen,.game-ui.profile-mode .profile-screen,.game-ui.shop-mode .shop-screen,.game-ui.leaderboard-mode .leaderboard-screen,.game-ui.levels-mode .levels-screen{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}.game-ui.settings-mode .settings-modal,.game-ui.how-to-play-mode .how-to-play-modal,.game-ui.regular-setup-mode .regular-setup-modal,.game-ui.profile-mode .profile-modal,.game-ui.shop-mode .shop-modal,.game-ui.leaderboard-mode .leaderboard-modal,.game-ui.levels-mode .levels-modal{opacity:1;transform:translateY(0)scale(1)}.regular-setup-modal{height:min(100% - 64px,680px)}.game-setup-modal-body{min-height:0;padding:clamp(28px, 6vh, 52px) var(--game-setup-modal-offset);box-sizing:border-box;background:linear-gradient(#fffbea 0%,#f4e6b9 100%);border-radius:18px;flex-direction:column;flex:auto;margin:0 8px 8px;display:flex;overflow:hidden;box-shadow:inset 0 2px 4px #ffffffe6,inset 0 -2px 4px #b5822b33}.game-setup-modal .setup-panel{box-sizing:border-box;flex:auto;width:100%;min-height:0;margin:0;padding:2px 2px 12px;overflow-y:auto}.game-setup-modal .setup-panel,.settings-modal .settings-panel,.info-modal-body,.info-modal .profile-panel,.leaderboard-modal-body .leaderboard-panel,.levels-modal-body .levels-panel,.how-to-play-modal-body .how-to-play-panel,.victory-panel{scrollbar-width:thin;scrollbar-color:#e9a928 #fffbea;scrollbar-gutter:stable}.game-scroll-region{overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.game-setup-modal .setup-panel::-webkit-scrollbar{width:10px}.settings-modal .settings-panel::-webkit-scrollbar{width:10px}.info-modal-body::-webkit-scrollbar{width:10px}.info-modal .profile-panel::-webkit-scrollbar{width:10px}.leaderboard-modal-body .leaderboard-panel::-webkit-scrollbar{width:10px}.levels-modal-body .levels-panel::-webkit-scrollbar{width:10px}.how-to-play-modal-body .how-to-play-panel::-webkit-scrollbar{width:10px}.victory-panel::-webkit-scrollbar{width:10px}.game-setup-modal .setup-panel::-webkit-scrollbar-track{background:linear-gradient(#fff7dc 0%,#e8c875 100%);border:2px solid #ffffff9e;border-radius:999px;box-shadow:inset 0 1px 2px #70411233}.settings-modal .settings-panel::-webkit-scrollbar-track{background:linear-gradient(#fff7dc 0%,#e8c875 100%);border:2px solid #ffffff9e;border-radius:999px;box-shadow:inset 0 1px 2px #70411233}.info-modal-body::-webkit-scrollbar-track{background:linear-gradient(#fff7dc 0%,#e8c875 100%);border:2px solid #ffffff9e;border-radius:999px;box-shadow:inset 0 1px 2px #70411233}.info-modal .profile-panel::-webkit-scrollbar-track{background:linear-gradient(#fff7dc 0%,#e8c875 100%);border:2px solid #ffffff9e;border-radius:999px;box-shadow:inset 0 1px 2px #70411233}.leaderboard-modal-body .leaderboard-panel::-webkit-scrollbar-track{background:linear-gradient(#fff7dc 0%,#e8c875 100%);border:2px solid #ffffff9e;border-radius:999px;box-shadow:inset 0 1px 2px #70411233}.levels-modal-body .levels-panel::-webkit-scrollbar-track{background:linear-gradient(#fff7dc 0%,#e8c875 100%);border:2px solid #ffffff9e;border-radius:999px;box-shadow:inset 0 1px 2px #70411233}.how-to-play-modal-body .how-to-play-panel::-webkit-scrollbar-track{background:linear-gradient(#fff7dc 0%,#e8c875 100%);border:2px solid #ffffff9e;border-radius:999px;box-shadow:inset 0 1px 2px #70411233}.victory-panel::-webkit-scrollbar-track{background:linear-gradient(#fff7dc 0%,#e8c875 100%);border:2px solid #ffffff9e;border-radius:999px;box-shadow:inset 0 1px 2px #70411233}.game-setup-modal .setup-panel::-webkit-scrollbar-thumb{background:#e9a928;border:2px solid #fff2c6;border-radius:999px;box-shadow:inset 0 1px 2px #ffffff7a,0 1px 2px #4e2a0847}.settings-modal .settings-panel::-webkit-scrollbar-thumb{background:#e9a928;border:2px solid #fff2c6;border-radius:999px;box-shadow:inset 0 1px 2px #ffffff7a,0 1px 2px #4e2a0847}.info-modal-body::-webkit-scrollbar-thumb{background:#e9a928;border:2px solid #fff2c6;border-radius:999px;box-shadow:inset 0 1px 2px #ffffff7a,0 1px 2px #4e2a0847}.info-modal .profile-panel::-webkit-scrollbar-thumb{background:#e9a928;border:2px solid #fff2c6;border-radius:999px;box-shadow:inset 0 1px 2px #ffffff7a,0 1px 2px #4e2a0847}.leaderboard-modal-body .leaderboard-panel::-webkit-scrollbar-thumb{background:#e9a928;border:2px solid #fff2c6;border-radius:999px;box-shadow:inset 0 1px 2px #ffffff7a,0 1px 2px #4e2a0847}.levels-modal-body .levels-panel::-webkit-scrollbar-thumb{background:#e9a928;border:2px solid #fff2c6;border-radius:999px;box-shadow:inset 0 1px 2px #ffffff7a,0 1px 2px #4e2a0847}.how-to-play-modal-body .how-to-play-panel::-webkit-scrollbar-thumb{background:#e9a928;border:2px solid #fff2c6;border-radius:999px;box-shadow:inset 0 1px 2px #ffffff7a,0 1px 2px #4e2a0847}.victory-panel::-webkit-scrollbar-thumb{background:#e9a928;border:2px solid #fff2c6;border-radius:999px;box-shadow:inset 0 1px 2px #ffffff7a,0 1px 2px #4e2a0847}.game-setup-modal .setup-panel::-webkit-scrollbar-thumb:hover{background:#e9a928}.settings-modal .settings-panel::-webkit-scrollbar-thumb:hover{background:#e9a928}.info-modal-body::-webkit-scrollbar-thumb:hover{background:#e9a928}.info-modal .profile-panel::-webkit-scrollbar-thumb:hover{background:#e9a928}.leaderboard-modal-body .leaderboard-panel::-webkit-scrollbar-thumb:hover{background:#e9a928}.levels-modal-body .levels-panel::-webkit-scrollbar-thumb:hover{background:#e9a928}.how-to-play-modal-body .how-to-play-panel::-webkit-scrollbar-thumb:hover{background:#e9a928}.victory-panel::-webkit-scrollbar-thumb:hover{background:#e9a928}.game-setup-modal .setup-panel::-webkit-scrollbar-button{width:0;height:0;display:none}.settings-modal .settings-panel::-webkit-scrollbar-button{width:0;height:0;display:none}.info-modal-body::-webkit-scrollbar-button{width:0;height:0;display:none}.info-modal .profile-panel::-webkit-scrollbar-button{width:0;height:0;display:none}.leaderboard-modal-body .leaderboard-panel::-webkit-scrollbar-button{width:0;height:0;display:none}.levels-modal-body .levels-panel::-webkit-scrollbar-button{width:0;height:0;display:none}.how-to-play-modal-body .how-to-play-panel::-webkit-scrollbar-button{width:0;height:0;display:none}.victory-panel::-webkit-scrollbar-button{width:0;height:0;display:none}.regular-game-setup-screen .field-size-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-modal-body{min-height:0;padding:clamp(28px, 6vh, 52px) var(--settings-panel-side-padding);box-sizing:border-box;background:linear-gradient(#fffbea 0%,#f4e6b9 100%);border-radius:18px;flex-direction:column;flex:auto;margin:0 8px 8px;display:flex;overflow:hidden;box-shadow:inset 0 2px 4px #ffffffe6,inset 0 -2px 4px #b5822b33}.settings-modal .settings-panel{box-sizing:border-box;flex-direction:column;flex:auto;justify-content:center;width:100%;min-height:0;margin:0;padding:2px 2px 12px;display:flex;overflow-y:auto}.info-modal{height:min(100%,760px);max-height:100%}.profile-body{min-height:0;padding:clamp(28px, 6vh, 52px) var(--info-modal-body-side-padding);box-sizing:border-box;background:linear-gradient(#fffbea 0%,#f4e6b9 100%);border-radius:18px;flex-direction:column;flex:auto;margin:0 8px 8px;display:flex;overflow:hidden;box-shadow:inset 0 2px 4px #ffffffe6,inset 0 -2px 4px #b5822b33}.info-modal-body{min-height:0;padding:clamp(28px, 6vh, 52px) var(--info-modal-body-side-padding);box-sizing:border-box;background:#fffbea;border-radius:18px;flex:auto;margin:0 8px 8px;overflow:hidden auto}.info-modal .profile-panel{width:100%;box-shadow:none;background:0 0;border-radius:0;margin:0;padding:2px 2px 12px;overflow-y:auto}.info-modal .profile-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.info-modal .profile-stat-card{grid-template-columns:42px minmax(0,1fr);gap:6px;min-width:0;padding:7px}.info-modal .profile-stat-card.profile-best-times-card{grid-template-columns:minmax(0,1fr);gap:0;padding:8px}.info-modal .profile-best-times-header .profile-stat-icon{width:36px;height:36px}.info-modal .profile-best-time-value{font-size:22px}.info-modal .profile-stat-icon{width:42px;height:42px;padding:0}.info-modal .profile-stat-card>div:last-child{min-width:0}.info-modal .profile-stat-label{overflow-wrap:anywhere}.info-modal .profile-stat-value{overflow-wrap:anywhere;font-size:20px}.leaderboard-modal-body .leaderboard-list,.levels-modal-body .levels-tabs{width:100%}.leaderboard-modal-body{flex-direction:column;padding-left:18px;padding-right:18px;display:flex;overflow:hidden}.leaderboard-panel{box-sizing:border-box;flex:auto;width:100%;min-height:0;margin:0;padding:2px 2px 12px;overflow:hidden auto}.levels-modal-body{flex-direction:column;display:flex;overflow:hidden}.levels-modal-body .levels-tabs{flex:none;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:0;margin-bottom:14px}.levels-modal-body .levels-panel{box-sizing:border-box;flex:auto;width:100%;min-height:0;margin:0;padding:2px 2px 12px;overflow:hidden auto}.levels-modal-body .levels-head{display:block}.levels-modal-body .levels-head>div:last-child{min-width:0}.levels-modal-body .levels-main-thumb{width:82px;height:62px}.levels-modal-body .levels-name{overflow-wrap:anywhere;min-width:0;font-size:26px}.levels-modal-body .levels-opened{width:100%;min-height:36px;padding:0 8px;font-size:14px}.levels-modal-body .levels-card.unlocked .levels-level{min-width:62px;max-width:calc(100% - 4px);padding:0 4px;font-size:12px}.levels-modal-body .levels-play-btn{flex:none;margin:14px auto 4px}.shop-modal-body{flex-direction:column;justify-content:flex-start;align-items:center;gap:24px;padding:18px;display:flex}.shop-modal-body>:first-child{margin-top:auto}.shop-modal-body>:last-child{margin-bottom:auto}.shop-summary{flex:none;justify-content:center;align-items:center;display:flex}.shop-hints-status{color:#fff;background:linear-gradient(#b95cff 0%,#7434d6 100%);border-radius:13px;justify-content:center;align-items:center;width:64px;height:62px;font-size:34px;font-weight:900;line-height:1;display:flex;position:relative;box-shadow:0 3px #4f1ea4,0 7px 12px #00000059,inset 0 2px 3px #ffffff73}.shop-hints-status-icon{object-fit:contain;object-position:center;filter:drop-shadow(0 3px 4px #40188252);width:42px;height:42px;display:block}.shop-hints-status-count{box-sizing:border-box;color:#fff;pointer-events:none;background:linear-gradient(#ff4a9b 0%,#d81668 100%);border:2px solid #fffbea;border-radius:50%;justify-content:center;align-items:center;width:25px;height:25px;font-size:13px;font-weight:900;line-height:1;display:flex;position:absolute;top:-8px;right:-8px;box-shadow:0 2px 5px #00000059}.shop-status-message{box-sizing:border-box;color:#286e17;text-align:center;overflow-wrap:anywhere;background:linear-gradient(#f8ffe9 0%,#dff7bc 100%);border:2px solid #9edb62;border-radius:8px;flex:none;justify-content:center;align-items:center;min-height:34px;padding:8px 10px;font-size:13px;font-weight:900;line-height:1.08;display:flex}.shop-products-grid{width:min(100%,520px);min-height:unset;flex:none;grid-template-columns:repeat(3,minmax(0,1fr));justify-content:center;align-items:start;gap:clamp(10px,2vw,16px);display:grid}.shop-product-card{box-sizing:border-box;background:linear-gradient(#fff 0%,#fff2c8 100%);border:2px solid #e2b548;border-radius:8px;flex-direction:column;justify-content:space-between;gap:10px;min-width:0;height:142px;min-height:142px;padding:10px;display:flex;position:relative;box-shadow:0 3px #c4851d,0 7px 12px #643e1229,inset 0 1px 2px #ffffffe6}.shop-product-card.has-badge{border-color:#46a42b}.shop-product-card.is-value-product{border-color:#ff4a9b;box-shadow:0 3px #a40f4f,0 7px 12px #00000052,inset 0 2px 3px #ffffff73}.shop-product-card.is-value-product .shop-product-badge{background:linear-gradient(#ff4a9b 0%,#d81668 100%);box-shadow:0 2px #a40f4f}.shop-product-card.is-popular-product{border-color:#9bd845;box-shadow:0 3px #2f6f16,0 7px 12px #0000004d,inset 0 2px 3px #ffffff73}.shop-product-card.is-popular-product .shop-product-badge{background:linear-gradient(#9bd845 0%,#4f9f24 100%);box-shadow:0 2px #2f6f16}.shop-product-card.is-free-product{border-color:#32b8ff;box-shadow:0 3px #00599f,0 7px 12px #00000052,inset 0 2px 3px #ffffff73}.shop-product-card.is-free-product .shop-product-badge{background:linear-gradient(#32b8ff 0%,#0074d9 100%);box-shadow:0 2px #00599f}.shop-product-card.is-free-product .shop-product-action.is-ad-action{background:linear-gradient(#32b8ff 0%,#0074d9 100%);box-shadow:0 3px #00599f,0 7px 12px #00000052,inset 0 2px 3px #ffffff73}.shop-product-badge{box-sizing:border-box;color:#fff;text-align:center;overflow-wrap:anywhere;background:linear-gradient(#63c949 0%,#2f8f18 100%);border-radius:999px;justify-content:center;align-items:center;max-width:calc(100% - 10px);min-height:18px;padding:2px 5px;font-size:10px;font-weight:900;line-height:1;display:flex;position:absolute;top:-8px;right:5px;box-shadow:0 2px #236d12}.shop-product-card.is-ad-product .shop-product-badge{background:linear-gradient(#5ed5ff 0%,#1983c6 100%);box-shadow:0 2px #0d5d91}.shop-product-visual{flex:auto;justify-content:center;align-items:center;min-height:0;display:flex;overflow:hidden}.shop-product-image{object-fit:contain;filter:drop-shadow(0 3px 3px #5b320a38);width:100%;height:100%;max-height:82px;display:block}.shop-product-footer{flex-direction:column;gap:6px;margin-top:0;display:flex}.shop-product-action{cursor:pointer;touch-action:manipulation;color:#1f1f1f;overflow-wrap:anywhere;background:linear-gradient(#ffd94d 0%,#fc0 48%,#f0b400 100%);border:0;border-radius:8px;justify-content:center;align-items:center;gap:5px;width:100%;min-height:34px;padding:5px 6px;font-size:12px;font-weight:900;line-height:1;display:flex;box-shadow:0 3px #b88400,0 6px 10px #442f0033,inset 0 1px 2px #ffffff6b}.shop-action-coin{object-fit:contain;flex:0 0 22px;width:22px;height:22px}.shop-action-text{overflow-wrap:anywhere;min-width:0;line-height:1}.shop-product-action.is-ad-action{color:#fff;text-shadow:0 1px 1px #00475052;background:linear-gradient(#42d9e5 0%,#18b6c7 56%,#0c9cae 100%);border:0;border-radius:8px;justify-content:center;gap:4px;min-height:34px;padding:5px 6px;box-shadow:0 3px #075a62,0 6px 10px #003a433d,inset 0 2px 2px #ffffff75}.shop-ad-play-icon{flex:0 0 12px;justify-content:center;align-items:center;width:26px;height:24px;display:flex}.shop-ad-play-icon:before{content:"";border-top:6px solid #0000;border-bottom:6px solid #0000;border-left:10px solid #fff;width:0;height:0;margin-left:2px}.shop-ad-counter{color:#fff;text-align:center;flex:none;min-width:0;padding:0 2px;font-size:13px;font-weight:900;line-height:1}.shop-product-action:disabled{cursor:default;opacity:.72;filter:grayscale(.25)}.shop-product-action:not(:disabled):active{filter:brightness(.96);transform:translateY(2px);box-shadow:0 1px #b88400,0 3px 7px #0003,inset 0 1px 2px #ffffff5c}.shop-product-action.is-ad-action:not(:disabled):active{box-shadow:0 1px #075a62,0 3px 7px #0003,inset 0 1px 2px #ffffff5c}.shop-empty-state{color:#8a5516;text-align:center;background:#ffe28c73;border-radius:8px;padding:18px 10px;font-size:16px;font-weight:900;line-height:1.15}html.desktop-layout .profile-modal .profile-name{overflow-wrap:anywhere;font-size:20px}html.desktop-layout .profile-modal .profile-auth-message{font-size:14px}html.desktop-layout .profile-modal .profile-section-title,html.desktop-layout .profile-modal .profile-stats-title{font-size:18px}html.desktop-layout .profile-modal .profile-section-title:before,html.desktop-layout .profile-modal .profile-section-title:after{font-size:17px}html.desktop-layout .profile-modal .green-big-btn{font-size:18px}html.desktop-layout .profile-modal .profile-stat-label{overflow-wrap:normal;word-break:normal;-webkit-hyphens:none;hyphens:none;font-size:12px;line-height:1.12}html.desktop-layout .profile-modal .profile-stat-value{font-size:18px}html.desktop-layout .settings-modal-title,html.desktop-layout .how-to-play-modal-title,html.desktop-layout .game-setup-modal-title,html.desktop-layout .info-modal-title{font-size:26px}html.desktop-layout .leaderboard-modal .info-modal-title{white-space:nowrap}html.desktop-layout .leaderboard-modal .leaderboard-row{grid-template-columns:42px 46px minmax(0,1fr) 64px;gap:8px;min-height:54px;padding-left:10px;padding-right:10px}html.desktop-layout .leaderboard-modal .leaderboard-avatar{width:40px;height:40px;font-size:22px}html.desktop-layout .leaderboard-modal .leaderboard-player,html.desktop-layout .leaderboard-modal .leaderboard-place,html.desktop-layout .leaderboard-modal .leaderboard-points{font-size:15px}html.desktop-layout .levels-modal-body .levels-tab{gap:4px;padding:0 4px;font-size:11px}.settings-decor{width:min(190px,70%);height:26px;margin:0 auto clamp(24px,5vh,42px);position:relative}.settings-decor:before,.settings-decor:after{content:"";background:#be87328c;width:78px;height:2px;position:absolute;top:12px}.settings-decor:before{left:0}.settings-decor:after{right:0}.settings-decor span{color:#d2a047;font-size:28px;position:absolute;top:0;left:50%;transform:translate(-50%)}.settings-row{box-sizing:border-box;color:#5a341e;background:linear-gradient(#fffae6f5 0%,#eedeb8f5 100%);border:2px solid #be873273;border-radius:15px;grid-template-columns:64px minmax(0,1fr) 82px;align-items:center;gap:10px;width:100%;min-height:84px;padding:12px;display:grid;box-shadow:0 3px #8f591473,0 7px 13px #0000002e,inset 0 2px 3px #fffc}.settings-row+.settings-row{margin-top:20px}.settings-row.language-settings-row{grid-template-columns:minmax(0,1fr);align-items:stretch;gap:10px}.settings-option-icon{box-sizing:border-box;object-fit:contain;object-position:center;width:60px;height:60px;padding:8px;display:block}.settings-option-title{min-width:0;font-size:clamp(22px,6vw,30px);font-weight:900}.language-settings-row .settings-option-title{box-sizing:border-box;color:#5a341e;text-align:left;background:linear-gradient(#fff9e0fa 0%,#e7cf9afa 100%);border:2px solid #be873280;border-radius:999px;justify-content:flex-start;justify-self:start;align-items:center;max-width:100%;min-height:30px;padding:5px 14px;font-size:clamp(16px,4vw,20px);line-height:1;display:flex;box-shadow:inset 0 2px 2px #ffffffbf,0 2px #8f591447}.language-settings-row .language-stepper{box-sizing:border-box;background:linear-gradient(#f2e8d0 0%,#d6c7a6 100%);border-radius:999px;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:4px;width:100%;min-width:0;height:44px;padding:4px;display:grid;box-shadow:inset 0 3px 6px #69502a61}.language-arrow-btn{cursor:pointer;color:#fff;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:linear-gradient(#9be337 0%,#3e9f14 100%);border:0;border-radius:50%;width:36px;height:36px;padding:0;font-size:22px;font-weight:900;line-height:1;box-shadow:inset 0 2px 3px #fff6,0 2px #246f0d}.language-arrow-btn:active{transform:translateY(2px);box-shadow:inset 0 2px 3px #ffffff4d}.language-arrow-btn:focus-visible{outline-offset:2px;outline:3px solid #369d1d73}.language-current{color:#5a341e;text-align:center;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;font-weight:900;line-height:1;overflow:hidden}.toggle-btn{box-sizing:border-box;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:linear-gradient(#f2e8d0 0%,#d6c7a6 100%);border:0;border-radius:999px;justify-content:flex-start;align-items:center;width:80px;height:44px;padding:4px;display:flex;box-shadow:inset 0 3px 6px #69502a61}.toggle-btn.is-on{background:linear-gradient(#9be337 0%,#3e9f14 100%);justify-content:flex-end;box-shadow:inset 0 2px 4px #ffffff59,inset 0 -3px 6px #25690f59,0 3px #246f0d}.toggle-knob{background:linear-gradient(#fffef8 0%,#e7dcc3 100%);border-radius:50%;width:36px;height:36px;box-shadow:0 3px 7px #0000004d,inset 0 2px 3px #ffffffe6}html.desktop-layout .settings-modal .settings-row{grid-template-columns:44px minmax(0,1fr) 60px;gap:4px;min-height:72px;padding:8px}html.desktop-layout .settings-modal .settings-row.language-settings-row{grid-template-columns:minmax(0,1fr);gap:7px}html.desktop-layout .settings-modal .settings-option-icon{width:42px;height:42px;padding:5px}html.desktop-layout .settings-modal .settings-option-title{font-size:18px}html.desktop-layout .settings-modal .language-settings-row .settings-option-title{min-height:25px;padding:4px 10px;font-size:15px}html.desktop-layout .settings-modal .language-settings-row .language-stepper{grid-template-columns:28px minmax(0,1fr) 28px;gap:3px;width:100%;min-width:0;height:34px;padding:3px}html.desktop-layout .settings-modal .language-arrow-btn{width:28px;height:28px;font-size:17px}html.desktop-layout .settings-modal .language-current{font-size:11px}html.desktop-layout .settings-modal .toggle-btn{width:60px;height:34px}html.desktop-layout .settings-modal .toggle-knob{width:26px;height:26px}.leaderboard-title{width:min(100% - 70px,330px);font-size:clamp(30px,8.6vw,48px)}.leaderboard-list{box-sizing:border-box;background:#fffbea;flex-direction:column;width:100%;min-height:100%;display:flex;overflow:hidden}.leaderboard-message{box-sizing:border-box;color:#6b4020;text-align:center;overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto;justify-content:center;align-items:center;min-height:180px;padding:28px 22px;font-size:clamp(16px,4.2vw,20px);font-weight:800;line-height:1.3;display:flex}.leaderboard-message.is-error{color:#a74328}.leaderboard-row{box-sizing:border-box;color:#6b4020;text-shadow:0 1px #ffffffdb;background:#fff7dd57;border-bottom:1px solid #d59023ad;grid-template-columns:48px 54px minmax(0,1fr) 76px;align-items:center;gap:10px;min-height:62px;padding:7px 16px;display:grid}.leaderboard-row:last-child{border-bottom:0}.leaderboard-row.current-player{background:linear-gradient(#ffdf6fb3 0%,#ecaa336b 100%);box-shadow:inset 3px 0 #f28b00,inset 0 1px 3px #ffffff9e}.leaderboard-separator{background:#f28b00;border-bottom:0;flex:0 0 3px}.leaderboard-place{text-align:center;min-width:0;font-size:clamp(15px,4.2vw,19px);font-weight:900}.leaderboard-avatar{box-sizing:border-box;background:linear-gradient(#fff 0%,#e7f4f7 100%);border:1px solid #5a3a246b;border-radius:50%;justify-content:center;justify-self:center;align-items:center;width:44px;height:44px;font-size:25px;display:flex;overflow:hidden;box-shadow:inset 0 1px 2px #ffffffd1}.leaderboard-avatar img{object-fit:cover;width:100%;height:100%;display:block}.leaderboard-player{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:clamp(14px,4vw,18px);font-weight:900;line-height:1.08;overflow:hidden}.leaderboard-points{text-align:right;text-overflow:ellipsis;min-width:0;font-size:clamp(15px,4.2vw,19px);font-weight:900;overflow:hidden}.levels-title{width:min(100% - 90px,315px)}.levels-tabs{pointer-events:auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:min(100% - 34px,388px);margin-top:14px;display:grid}.levels-tab{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:#5a351f;background:linear-gradient(#fff8df 0%,#f0dfae 100%);border:0;border-radius:15px;justify-content:center;align-items:center;gap:7px;min-height:48px;padding:0 10px;font-size:clamp(13px,3.8vw,18px);font-weight:900;display:flex;box-shadow:0 3px #8f591473,0 7px 12px #0000002e,inset 0 2px 3px #fffc}.levels-tab.active{color:#fff;text-shadow:0 2px 1px #00000040;background:linear-gradient(#9be337 0%,#3e9f14 100%);box-shadow:0 3px #246f0d,0 7px 12px #00000047,inset 0 2px 3px #ffffff73}.levels-filter-stars{justify-content:center;align-items:center;gap:3px;display:flex}.levels-filter-stars img{object-fit:contain;pointer-events:none;width:clamp(18px,5vw,24px);height:clamp(18px,5vw,24px);display:block}.levels-show-all{box-sizing:border-box;color:#fff;cursor:pointer;touch-action:manipulation;background:linear-gradient(#9be337 0%,#3e9f14 100%);border:0;border-radius:13px;width:100%;min-width:0;min-height:40px;margin-top:14px;padding:0 22px;font-size:clamp(15px,4.2vw,19px);font-weight:900;box-shadow:0 3px #246f0d,0 7px 12px #00000038,inset 0 2px 3px #ffffff73}.levels-show-all:disabled{color:#5a351f8c;cursor:default;background:linear-gradient(#eee6ce 0%,#cec3a7 100%);box-shadow:0 3px #705c4159,0 5px 9px #0000001f,inset 0 2px 3px #ffffff8c}.levels-panel{margin-top:16px;padding:16px 14px 18px}.levels-head{display:block}.levels-main-thumb{background-image:url(/assets/background-kHmU2nDY.png);background-position:50%;background-size:cover;border-radius:12px;width:100px;height:74px;box-shadow:0 3px #8f591473,0 7px 12px #0000002e,inset 0 0 0 3px #ffffffbf}.levels-name{color:#5a351f;font-size:clamp(23px,6.5vw,32px);font-weight:900;line-height:1}.levels-opened{box-sizing:border-box;color:#5a351f;background:linear-gradient(#fffae6f5 0%,#eedeb8f5 100%);border:2px solid #be873273;border-radius:13px;align-items:center;gap:10px;width:max-content;max-width:100%;min-height:42px;margin-top:10px;padding:0 15px;font-size:clamp(17px,5vw,23px);font-weight:900;display:flex;box-shadow:0 3px #8f591440,inset 0 2px 3px #ffffffd9}.levels-opened-star{color:#ffc421;text-shadow:0 2px 1px #9646004d;font-size:27px}.levels-divider{justify-content:center;align-items:center;gap:12px;margin:14px 0 12px;display:flex}.levels-divider:before,.levels-divider:after{content:"";background:#be873280;flex:1;height:2px}.levels-divider span{background:#d39134;border-radius:50%;width:9px;height:9px}.levels-subtitle{color:#5a351f;text-align:center;margin-bottom:12px;font-size:clamp(15px,4.5vw,20px);font-weight:900;line-height:1.15}.levels-grid{grid-template-columns:repeat(12,1fr);gap:10px;display:grid}.levels-pagination{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:18px;display:flex}.levels-page-button{color:#5a351f;cursor:pointer;background:linear-gradient(#fff8df 0%,#f0dfae 100%);border:0;border-radius:10px;min-width:38px;height:38px;padding:0 10px;font-size:16px;font-weight:900;line-height:1;box-shadow:0 2px #8f591440}.levels-page-button.active{color:#fff;background:linear-gradient(#9be337 0%,#3e9f14 100%);box-shadow:0 3px #246f0d}.levels-page-arrow{font-size:28px}.levels-page-button:disabled{cursor:default;opacity:.45}.levels-card{aspect-ratio:1;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:linear-gradient(#fffae6f5 0%,#eedeb8f5 100%);border:0;border-radius:14px;grid-column:span 6;min-height:0;padding:0;position:relative;overflow:hidden;box-shadow:0 3px #8f591459,0 7px 12px #00000029,inset 0 2px 3px #fffc}.levels-card.small{grid-column:span 4;min-height:0}.levels-card:disabled{cursor:default;opacity:1}.levels-card-img{background-image:url(/assets/background-kHmU2nDY.png);background-position:50%;background-size:cover;border-radius:10px;position:absolute;inset:8px;box-shadow:inset 0 0 0 2px #ffffff8c}.levels-card.locked .levels-card-img{filter:grayscale()sepia(.35)opacity(.72)}.levels-check{color:#fff;background:linear-gradient(#9be337 0%,#3e9f14 100%);border-radius:50%;justify-content:center;align-items:center;width:42px;height:42px;font-size:27px;font-weight:900;display:flex;position:absolute;top:-2px;right:-2px;box-shadow:0 3px #246f0d,0 7px 12px #00000040,inset 0 2px 3px #ffffff73}.levels-card-stars{box-sizing:border-box;background:#452d15d1;border-radius:9px;justify-content:center;align-items:center;gap:2px;min-height:26px;padding:1px 8px;display:flex;position:absolute;bottom:31px;left:50%;transform:translate(-50%);box-shadow:0 2px 5px #0000004d}.levels-card-star{object-fit:contain;width:18px;height:18px;display:block}.levels-card-star.is-earned{filter:drop-shadow(0 1px 1px #7a41008c)}.levels-lock{z-index:2;color:#623713;background:linear-gradient(#ffe28a 0%,#d79728 100%);border-radius:8px;justify-content:center;align-items:center;width:38px;height:34px;font-size:21px;display:flex;position:absolute;top:48%;left:50%;transform:translate(-50%,-50%);box-shadow:0 3px #8b5418,0 7px 10px #0000003d,inset 0 2px 3px #ffffff8c}.levels-level{z-index:2;box-sizing:border-box;color:#5a351f;white-space:nowrap;background:linear-gradient(#fff8df 0%,#f0dfae 100%);border:2px solid #a667187a;border-radius:8px;justify-content:center;align-items:center;min-width:54px;min-height:28px;padding:0 10px;font-size:clamp(13px,4vw,17px);font-weight:900;line-height:1;display:flex;position:absolute;bottom:4px;left:50%;transform:translate(-50%);box-shadow:0 2px #8f591440}.levels-card.unlocked .levels-level{color:#fff;text-shadow:0 2px 1px #0000003d;background:linear-gradient(#9be337 0%,#3e9f14 100%);border-color:#0000;min-width:95px;font-size:clamp(15px,4.6vw,20px);box-shadow:0 3px #246f0d}.levels-play-btn{width:min(100% - 110px,260px);margin-top:16px}.levels-empty{box-sizing:border-box;color:#6b4426;overflow-wrap:anywhere;text-align:center;background:#fffae6b8;border:2px dashed #a667186b;border-radius:14px;grid-column:1/-1;place-items:center;min-height:100px;padding:20px;font-size:clamp(16px,4.5vw,20px);font-weight:900;line-height:1.15;display:grid}.how-to-play-modal{height:min(100%,760px);max-height:100%}.how-to-play-modal-body{min-height:0;padding:clamp(28px, 6vh, 52px) var(--how-to-play-panel-side-padding);box-sizing:border-box;background:linear-gradient(#fffbea 0%,#f4e6b9 100%);border-radius:18px;flex-direction:column;flex:auto;margin:0 8px 8px;display:flex;overflow:hidden;box-shadow:inset 0 2px 4px #ffffffe6,inset 0 -2px 4px #b5822b33}.how-to-play-modal .how-to-play-panel{box-sizing:border-box;flex:auto;width:100%;min-height:0;margin:0;padding:2px 2px 12px;overflow-y:auto}.how-top-info{grid-template-columns:44% 1fr;align-items:center;gap:16px;margin-bottom:16px;display:grid}.how-mini-board{aspect-ratio:1;box-sizing:border-box;object-fit:contain;filter:drop-shadow(0 5px 8px #6c451247);border-radius:14px;width:100%;display:block}.how-main-text{color:#4f341f;font-size:18px;font-weight:900;line-height:1.25}.how-step{box-sizing:border-box;color:#4f341f;background:linear-gradient(#fffae6f5 0%,#eedeb8f5 100%);border:2px solid #be873259;border-radius:15px;grid-template-columns:34px 58px minmax(0,1fr);align-items:center;gap:8px;min-height:72px;margin-top:9px;padding:8px 9px;display:grid;box-shadow:0 3px #8f591447,0 6px 10px #0000001f,inset 0 2px 3px #fffc}.how-step-number{color:#fff;text-shadow:0 2px 1px #00000040;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:20px;font-weight:900;display:flex}.how-step:nth-of-type(2) .how-step-number{background:linear-gradient(#80d835 0%,#34a914 100%)}.how-step:nth-of-type(3) .how-step-number{background:linear-gradient(#ffb22e 0%,#f08300 100%)}.how-step:nth-of-type(4) .how-step-number{background:linear-gradient(#32b8ff 0%,#0074d9 100%)}.how-step:nth-of-type(5) .how-step-number{background:linear-gradient(#b95cff 0%,#7434d6 100%)}.how-step-icon{box-sizing:border-box;object-fit:contain;object-position:center;border-radius:12px;width:56px;height:48px;padding:0;display:block}.how-step-text{min-width:0;font-size:15px;font-weight:900;line-height:1.22}.how-tip{box-sizing:border-box;color:#4f341f;background:linear-gradient(#fff0b5 0%,#ffd86e 100%);border:2px solid #d296236b;border-radius:16px;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:9px;min-height:76px;margin-top:14px;padding:12px 14px;display:grid;box-shadow:0 3px #8f591459,0 8px 13px #00000029,inset 0 2px 3px #ffffffa6}.how-tip-icon{object-fit:contain;object-position:center;filter:drop-shadow(0 3px 4px #8f591447);width:48px;height:48px;display:block}.how-tip-text{min-width:0;font-size:15px;font-weight:900;line-height:1.25}.how-tip-text span:first-child{color:#c05b14}html.desktop-layout .how-to-play-modal .how-top-info{grid-template-columns:78px minmax(0,1fr);gap:8px}html.desktop-layout .how-to-play-modal-title{white-space:nowrap}html.desktop-layout .how-to-play-modal .how-main-text{overflow-wrap:anywhere;min-width:0;font-size:14px}html.desktop-layout .how-to-play-modal .how-step{grid-template-columns:28px 44px minmax(0,1fr);gap:5px;padding:6px}html.desktop-layout .how-to-play-modal .how-step-number{width:28px;height:28px;font-size:16px}html.desktop-layout .how-to-play-modal .how-step-icon{width:42px;height:42px;font-size:22px}html.desktop-layout .how-to-play-modal .how-step-text{overflow-wrap:anywhere;font-size:13px}html.desktop-layout .how-to-play-modal .how-tip{grid-template-columns:36px minmax(0,1fr);gap:6px;padding:9px}html.desktop-layout .how-to-play-modal .how-tip-icon{width:36px;height:36px}html.desktop-layout .how-to-play-modal .how-tip-text{overflow-wrap:anywhere;font-size:13px}.puzzle-screen-layout{align-content:start;gap:var(--puzzle-section-gap);grid-template-rows:auto auto auto;width:100%;min-width:0;height:100%;min-height:0;display:grid;overflow:visible}.levels-card-play{z-index:2;box-sizing:border-box;color:#fff;text-shadow:0 1px 1px #0000003d;background:linear-gradient(#9be337 0%,#3e9f14 100%);border-radius:8px;justify-content:center;align-items:center;min-width:70px;min-height:34px;padding:0 10px;font-size:15px;font-weight:900;line-height:1;display:flex;position:absolute;top:48%;left:50%;transform:translate(-50%,-50%);box-shadow:0 3px #246f0d,0 7px 10px #0000003d,inset 0 2px 3px #ffffff73}.puzzle-topbar{grid-template-columns:var(--puzzle-control-size) repeat(2, minmax(0, 1fr)) var(--puzzle-control-size);gap:var(--puzzle-control-gap);align-items:start;width:100%;display:grid}.puzzle-back-btn,.puzzle-hint-btn{height:var(--puzzle-control-size);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:#fff;background:linear-gradient(#b95cff 0%,#7434d6 100%);border:0;border-radius:13px;justify-content:center;align-items:center;font-size:38px;font-weight:900;line-height:1;display:flex;box-shadow:0 3px #4f1ea4,0 7px 12px #00000059,inset 0 2px 3px #ffffff73}.puzzle-hint-btn{font-size:34px;position:relative}.puzzle-hint-btn-icon{object-fit:contain;object-position:center;filter:drop-shadow(0 3px 4px #40188252);pointer-events:none;width:42px;height:42px;display:block}.puzzle-hint-btn.is-countdown{font-size:25px;font-weight:900}.puzzle-hint-btn:after{content:attr(data-hints-left);box-sizing:border-box;color:#fff;pointer-events:none;background:linear-gradient(#ff4a9b 0%,#d81668 100%);border:2px solid #fffbea;border-radius:50%;justify-content:center;align-items:center;width:25px;height:25px;font-size:13px;font-weight:900;line-height:1;display:flex;position:absolute;top:-8px;right:-8px;box-shadow:0 2px 5px #00000059}.puzzle-hint-btn:disabled{cursor:default;color:#fff;opacity:1;filter:none;transform:none}.puzzle-hint-btn.is-empty:after{background:linear-gradient(#a8a8a8 0%,#6f6f6f 100%)}.puzzle-stat-card{height:var(--puzzle-control-size);color:#493929;background:linear-gradient(#fffef9 0%,#efefef 100%);border-radius:13px;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:clamp(4px,1vw,8px);padding:0 clamp(6px,2vw,12px) 0 clamp(8px,2.5vw,16px);font-size:clamp(18px,5vw,24px);font-weight:900;display:grid;box-shadow:0 3px #a0a0a0d9,0 6px 12px #00000038,inset 0 2px 3px #ffffffe6}.puzzle-stat-icon{object-fit:contain;object-position:center;flex:none;width:clamp(24px,6vw,30px);height:clamp(24px,6vw,30px);display:block}.puzzle-stat-card>span{text-align:center;min-width:0}.puzzle-board-section{place-items:start center;min-width:0;min-height:0;display:grid}.puzzle-board-wrap{width:min(100%, max(0px, calc(var(--app-height,100vh) - var(--platform-safe-area-top,env(safe-area-inset-top,0px)) - var(--platform-safe-area-bottom,env(safe-area-inset-bottom,0px)) - var(--main-screen-inset) - var(--main-screen-inset) - var(--puzzle-control-size) - var(--puzzle-action-height) - var(--puzzle-section-gap) - var(--puzzle-section-gap))));aspect-ratio:1;height:auto;padding:var(--puzzle-board-padding-y,clamp(6px, 1.5vw, 10px)) var(--puzzle-board-padding-x,clamp(6px, 1.5vw, 10px));box-sizing:border-box;background:linear-gradient(#f4e6b9 0%,#d9b76f 100%);border-radius:18px;place-items:center;margin:0;display:grid;box-shadow:0 4px #a56a128c,0 10px 20px #00000047,inset 0 2px 4px #ffffffe6,inset 0 -2px 4px #b5822b33}.puzzle-grid{width:var(--puzzle-grid-content-size,100%);height:var(--puzzle-grid-content-size,100%);grid-template-columns:repeat(var(--grid-size,4), var(--puzzle-tile-size,minmax(0, 1fr)));grid-template-rows:repeat(var(--grid-size,4), var(--puzzle-tile-size,minmax(0, 1fr)));place-content:center;gap:var(--puzzle-grid-gap-size,2px);-webkit-user-select:none;user-select:none;border-radius:12px;display:grid;overflow:hidden}.puzzle-tile{box-sizing:border-box;color:#60411f;-webkit-user-select:none;user-select:none;background:linear-gradient(#fff7dd 0%,#ead3a0 100%);border:0;border-radius:7px;justify-content:center;align-items:center;width:100%;min-width:0;height:100%;min-height:0;font-size:clamp(16px,6vw,34px);font-weight:900;display:flex;position:relative;box-shadow:inset 0 2px 3px #ffffffbf,inset 0 -2px 3px #78501e29}.puzzle-tile.image-tile{color:#0000;text-shadow:none;background-repeat:no-repeat;box-shadow:inset 0 0 0 1px #ffffff57,inset 0 0 10px #00000029}.puzzle-tile-hint-number{box-sizing:border-box;color:#fffbea;text-shadow:0 1px 1px #00000073;pointer-events:none;z-index:3;background:linear-gradient(#32b8ff 0%,#0074d9 100%);border-radius:999px;justify-content:center;align-items:center;min-width:22px;height:22px;padding:0 5px;font-size:12px;font-weight:900;line-height:1;display:flex;position:absolute;bottom:4px;right:4px}.puzzle-grid[data-size="3"] .puzzle-tile{font-size:clamp(28px,9vw,42px)}.puzzle-grid[data-size="3"] .puzzle-tile-hint-number{min-width:24px;height:24px;font-size:14px}.puzzle-grid[data-size="4"] .puzzle-tile{font-size:clamp(24px,8vw,34px)}.puzzle-grid[data-size="5"] .puzzle-tile{font-size:clamp(18px,6vw,30px)}.puzzle-grid[data-size="6"] .puzzle-tile{font-size:clamp(15px,5vw,26px)}.puzzle-grid[data-size="5"] .puzzle-tile-hint-number,.puzzle-grid[data-size="6"] .puzzle-tile-hint-number{min-width:19px;height:19px;padding:0 4px;font-size:11px;bottom:3px;right:3px}.puzzle-tile.empty{box-shadow:none;background:0 0}.puzzle-tile.movable{cursor:grab;touch-action:none;will-change:transform}.puzzle-tile.dragging{z-index:2;cursor:grabbing}.show-picture-btn{width:100%;height:var(--puzzle-action-height);min-height:var(--puzzle-action-height);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:#fff;text-shadow:0 2px 1px #00000040;background:linear-gradient(#a9df39 0%,#5eaa19 100%);border:0;border-radius:13px;margin:0;font-size:18px;font-weight:900;position:relative;box-shadow:0 3px #3f7f12,0 7px 12px #00000047,inset 0 2px 3px #ffffff73}.show-picture-btn:after{content:attr(data-preview-badge);box-sizing:border-box;color:#fff;white-space:nowrap;min-width:25px;height:25px;text-shadow:none;pointer-events:none;background:linear-gradient(#ff4a9b 0%,#d81668 100%);border:2px solid #fffbea;border-radius:999px;justify-content:center;align-items:center;padding:0 9px;font-size:12px;font-weight:900;line-height:1;display:flex;position:absolute;top:-8px;right:-8px;box-shadow:0 2px 5px #00000059}.show-picture-btn:not([data-preview-badge]):after,.show-picture-btn[data-preview-badge=""]:after{display:none}.screen.puzzle-day-screen,.screen.level-play-screen,.screen.regular-play-screen{align-items:stretch}html.desktop-layout .puzzle-topbar{gap:var(--puzzle-control-gap)}html.desktop-layout .puzzle-back-btn,html.desktop-layout .puzzle-hint-btn{border-radius:12px;height:52px}html.desktop-layout .puzzle-back-btn{font-size:32px}html.desktop-layout .puzzle-hint-btn{font-size:28px}html.desktop-layout .puzzle-stat-icon{width:26px;height:26px}.pause-overlay{z-index:100;padding:var(--main-screen-inset);box-sizing:border-box;pointer-events:auto;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#1f3824bd;justify-content:center;align-items:center;display:none;position:absolute;inset:0}.pause-overlay.is-visible{display:flex}.pause-modal{box-sizing:border-box;color:#5a351f;text-align:center;background:linear-gradient(#fffbea 0%,#f4e6b9 100%);border:6px solid #e9a928;border-radius:24px;width:min(100%,360px);padding:28px 24px 24px;animation:.24s ease-out victory-panel-in;box-shadow:0 7px #a56a12,0 22px 38px #0000006b,inset 0 2px 4px #ffffffe6}.pause-title{color:#8a5516;overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto;margin:0;font-size:clamp(27px,8vw,36px);font-weight:900;line-height:1}.pause-message{overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto;margin:14px auto 18px;font-size:16px;font-weight:800;line-height:1.25}.pause-time{box-sizing:border-box;border-top:2px solid #be873273;border-bottom:2px solid #be873273;justify-content:space-between;align-items:center;gap:16px;width:min(100%,230px);margin:0 auto;padding:12px 16px;font-size:15px;font-weight:800;display:flex}.pause-time strong{color:#317c1b;font-size:27px;line-height:1}.pause-continue-btn{margin-top:22px}.victory-overlay{z-index:90;box-sizing:border-box;pointer-events:auto;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#1f3824ad;justify-content:center;align-items:center;padding:0;display:none;position:absolute;inset:0}.victory-overlay.is-visible{display:flex}.victory-modal{width:calc(100% - var(--main-screen-inset) - var(--main-screen-inset));max-height:calc(100% - var(--main-screen-inset) - var(--main-screen-inset));margin:0 var(--main-screen-inset);box-sizing:border-box;color:#5a351f;text-align:center;background:#e9a928;border-radius:24px;flex-direction:column;animation:.24s ease-out victory-panel-in;display:flex;position:relative;box-shadow:0 7px #a56a12,0 22px 38px #0000006b,inset 0 2px 3px #ffffff61}.victory-header{box-sizing:border-box;flex:0 0 58px;justify-content:center;align-items:center;padding:0 54px;display:flex;position:relative}.victory-title{color:#8a5516;overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto;margin:0;font-size:clamp(22px,6.4vw,30px);font-weight:900;line-height:1}.victory-body{box-sizing:border-box;background:linear-gradient(#fffbea 0%,#f4e6b9 100%);border-radius:18px;flex-direction:column;flex:auto;min-height:0;margin:0 8px 8px;padding:22px 20px 24px;display:flex;overflow:hidden;box-shadow:inset 0 2px 4px #ffffffe6,inset 0 -2px 4px #b5822b33}.victory-panel{box-sizing:border-box;flex:auto;width:100%;min-height:0;margin:0;padding:2px 2px 12px;overflow-y:auto}.victory-stars{box-sizing:border-box;border-radius:0;grid-template-columns:repeat(3,minmax(0,1fr));place-items:end center;gap:clamp(6px,3vw,16px);width:min(100%,330px);min-height:98px;margin:4px auto;padding:20px 12px 8px;display:grid}.victory-star{object-fit:contain;object-position:center;filter:drop-shadow(0 2px #53352133)drop-shadow(0 8px 10px #5335212e);width:clamp(64px,18vw,86px);height:clamp(64px,18vw,86px);display:block}.victory-star.is-earned{filter:drop-shadow(0 2px #75431142)drop-shadow(0 0 10px #ffdf5075)}.victory-star:nth-child(2){transform:translateY(-26px)}.victory-stats{border-top:2px solid #be873273;border-bottom:2px solid #be873273;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px;display:grid}.victory-stat{flex-direction:column;gap:5px;min-width:0;padding:13px 8px;display:flex}.victory-stat+.victory-stat{border-left:2px solid #be873273}.victory-stat span{font-size:14px;font-weight:800}.victory-stat strong{color:#317c1b;font-size:27px;font-weight:900;line-height:1}.victory-xp{color:#b56b00;text-align:center;margin-top:12px;font-size:22px;font-weight:900}.victory-xp.is-empty{color:#46341ead;font-size:14px;font-weight:700}.victory-level-up{color:#5a351f;background:linear-gradient(#fff6c9 0%,#f6d97e 100%);border:2px solid #b56b006b;border-radius:14px;gap:4px;margin-top:12px;padding:10px 12px;display:grid;box-shadow:0 3px #a56a124d}.victory-level-up[hidden]{display:none}.victory-level-up strong{color:#b56b00;font-size:19px;font-weight:900}.victory-level-up span{font-size:15px;font-weight:800}.victory-action-btn{cursor:pointer;touch-action:manipulation;color:#fff;white-space:normal;overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto;text-shadow:0 2px 1px #00000047;background:linear-gradient(#9be337 0%,#3e9f14 100%);border:0;border-radius:16px;width:100%;min-height:60px;margin-top:20px;padding:8px 16px;font-size:clamp(19px,5.5vw,25px);font-weight:900;line-height:1.05;box-shadow:0 4px #246f0d,0 9px 14px #0000004d,inset 0 2px 3px #ffffff73}.victory-action-btn:active{filter:brightness(.96);transform:translateY(3px)}.victory-action-btn[hidden],.victory-level-actions[hidden]{display:none}.victory-level-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,3vw,14px);width:100%;margin-top:20px;display:grid}.victory-review-btn{min-height:52px;margin-top:18px;font-size:clamp(18px,5vw,23px)}.victory-level-action-btn{cursor:pointer;touch-action:manipulation;background:linear-gradient(#9be337 0%,#3e9f14 100%);border:0;border-radius:16px;min-width:0;min-height:64px;padding:8px;box-shadow:0 4px #246f0d,0 9px 14px #0000004d,inset 0 2px 3px #ffffff73}.victory-level-action-btn img{object-fit:contain;width:clamp(40px,12vw,52px);height:100%;margin:auto;display:block}.victory-level-action-btn:active:not(:disabled){filter:brightness(.96);transform:translateY(3px)}.victory-level-action-btn:disabled{cursor:default;opacity:.45;filter:grayscale(.7);box-shadow:0 2px #6d7b63,inset 0 2px 3px #ffffff59}.game-ui .victory-overlay.daily-complete-overlay{--daily-complete-safe-top:var(--platform-safe-area-top,env(safe-area-inset-top,0px));--daily-complete-safe-right:var(--platform-safe-area-right,env(safe-area-inset-right,0px));--daily-complete-safe-bottom:var(--platform-safe-area-bottom,env(safe-area-inset-bottom,0px));--daily-complete-safe-left:var(--platform-safe-area-left,env(safe-area-inset-left,0px));--daily-complete-safe-block:max(var(--daily-complete-safe-top), var(--daily-complete-safe-bottom));--daily-complete-safe-inline:max(var(--daily-complete-safe-left), var(--daily-complete-safe-right));padding:calc(var(--daily-complete-safe-block) + var(--main-screen-inset)) calc(var(--daily-complete-safe-inline) + var(--main-screen-inset));justify-content:center;align-items:center}.game-ui .victory-modal.daily-complete-modal{flex:0 auto;align-self:center;width:min(100%,430px);height:auto;max-height:100%;margin:0 auto}.daily-complete-panel{flex-direction:column;align-items:center;display:flex}.daily-complete-icon{color:#fff;text-shadow:0 2px 1px #00000040;background:linear-gradient(#9bd845 0%,#4f9f24 100%);border-radius:22px;justify-content:center;align-items:center;width:72px;height:72px;margin:4px auto 16px;font-size:46px;font-weight:900;line-height:1;display:flex;box-shadow:0 4px #2f6f16,0 9px 14px #0000003d,inset 0 2px 3px #ffffff73}.daily-complete-text{color:#5a351f;text-align:center;overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto;width:min(100%,330px);margin:0 auto;font-size:17px;font-weight:900;line-height:1.22}.game-message-modal{width:min(100% - 32px,420px)}.game-message-body{flex:none;align-items:center;gap:20px;min-height:0}.game-message-text{color:#5a351f;text-align:center;overflow-wrap:anywhere;margin:0;font-size:clamp(17px,4.8vw,22px);font-weight:800;line-height:1.28}.game-message-action{width:min(100%,220px)}html.desktop-layout .victory-overlay{padding:calc(var(--platform-safe-area-top,env(safe-area-inset-top,0px)) + 32px) calc(var(--platform-safe-area-right,env(safe-area-inset-right,0px)) + 32px) calc(var(--platform-safe-area-bottom,env(safe-area-inset-bottom,0px)) + 32px) calc(var(--platform-safe-area-left,env(safe-area-inset-left,0px)) + 32px);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#1a362a94;flex-direction:column;justify-content:center;align-items:center}html.desktop-layout .victory-modal{width:100%;height:auto;max-height:100%;margin:0}html.desktop-layout .victory-body{flex:0 auto;padding:clamp(28px,6vh,52px) 20px}html.desktop-layout .victory-panel{flex:0 auto}html.desktop-layout .victory-title{font-size:26px}@keyframes victory-panel-in{0%{opacity:0;transform:translateY(18px)scale(.96)}to{opacity:1;transform:translateY(0)scale(1)}}@media (prefers-reduced-motion:reduce){.victory-modal,.settings-screen,.how-to-play-screen,.settings-modal,.how-to-play-modal,.regular-game-setup-screen,.game-setup-modal,.profile-screen,.shop-screen,.leaderboard-screen,.levels-screen,.info-modal{transition:none;animation:none}}.game-ui.profile-mode .main-screen,.game-ui.settings-mode .main-screen,.game-ui.shop-mode .main-screen,.game-ui.leaderboard-mode .main-screen,.game-ui.levels-mode .main-screen,.game-ui.how-to-play-mode .main-screen,.game-ui.puzzle-day-mode .main-screen,.game-ui.level-play-mode .main-screen,.game-ui.regular-setup-mode .main-screen,.game-ui.regular-play-mode .main-screen{display:none}.game-ui.profile-mode .profile-screen,.game-ui.settings-mode .settings-screen,.game-ui.shop-mode .shop-screen,.game-ui.leaderboard-mode .leaderboard-screen,.game-ui.levels-mode .levels-screen,.game-ui.how-to-play-mode .how-to-play-screen,.game-ui.puzzle-day-mode .puzzle-day-screen,.game-ui.level-play-mode .level-play-screen,.game-ui.regular-setup-mode .regular-game-setup-screen,.game-ui.regular-play-mode .regular-play-screen{display:flex}html.desktop-layout .game-ui{--main-screen-inset:32px;--main-control-size:clamp(52px, 7vh, 64px);--level-card-padding:clamp(10px, 1.6vh, 14px);--main-menu-gap:18px;--main-menu-row-height:68px;--puzzle-section-gap:24px;--puzzle-control-size:52px;--puzzle-control-gap:16px;--puzzle-action-height:52px}html.desktop-layout .level-card{border-radius:22px;box-shadow:0 14px 28px #0000004d,inset 0 3px 4px #ffffffd9}html.desktop-layout .level-preview{border-radius:10px}html.desktop-layout .level-info{text-align:center;justify-content:center;align-items:center}html.desktop-layout .level-title{font-size:22px;font-weight:900}html.desktop-layout .level-card.is-complete .level-title{margin-bottom:24px;font-size:24px}html.desktop-layout .level-number{margin-top:10px;margin-bottom:20px;font-size:42px;font-weight:900}html.desktop-layout .level-play-btn{border-radius:16px;width:min(100%,160px);height:52px;font-size:18px}html.desktop-layout .menu-button{border-radius:17px;gap:12px;min-height:68px;padding:0 14px;font-size:16px;line-height:1.08}html.desktop-layout .menu-button img{width:44px;height:44px}html.desktop-layout .levels-button span{font-size:16px}html.desktop-layout .game-wrapper button:not(.main-menu-buttons *):not(.levels-modal button):not(.shop-modal button):not(.toggle-btn):not(.language-arrow-btn):not(.modal-close-btn):not(.account-icon):not(.settings-icon){height:var(--desktop-control-height);min-height:var(--desktop-control-height);box-sizing:border-box;font-size:var(--desktop-control-font-size);border-radius:var(--desktop-control-radius)}html.desktop-layout .game-wrapper button.modal-close-btn{aspect-ratio:1;border-width:3px;border-radius:50%;width:42px;height:42px;min-height:42px;padding-bottom:2px;font-size:30px;top:-15px;right:-15px}html.desktop-layout .puzzle-stat-card{height:var(--desktop-control-height);min-height:var(--desktop-control-height);box-sizing:border-box;border-radius:var(--desktop-control-radius);font-size:var(--desktop-control-font-size)}@media (width<=599px) and (pointer:coarse){.level-card{margin-top:clamp(0px,60vh - 432px,76px)}}@media (height<=820px) and (pointer:coarse){.screen{padding-top:calc(var(--platform-safe-area-top,env(safe-area-inset-top,0px)) + var(--main-screen-inset))}.back-btn{top:calc(var(--platform-safe-area-top,env(safe-area-inset-top,0px)) + 14px);left:calc(var(--platform-safe-area-left,env(safe-area-inset-left,0px)) + 14px);width:58px;height:58px;font-size:38px}.wood-title{width:min(100% - 120px,280px);min-height:64px;margin-top:42px;font-size:clamp(27px,8vw,42px)}.cream-panel{border-width:7px;margin-top:26px;padding:15px}.profile-avatar-wrap{width:112px;height:112px}.profile-stat-card{grid-template-columns:50px 1fr;gap:7px;min-height:72px;padding:9px}.profile-stat-icon{width:46px;height:46px;padding:6px}.settings-panel{min-height:390px;margin-top:48px;padding:54px 20px 38px}.levels-tabs{gap:7px;margin-top:12px}.levels-tab{min-height:44px;padding:0 8px;font-size:13px}.levels-filter-stars img{width:20px;height:20px}.levels-panel{margin-top:12px;padding:13px}.levels-head{grid-template-columns:90px 1fr;gap:14px}.levels-main-thumb{width:90px;height:66px}.levels-opened{min-height:38px;margin-top:8px}.levels-grid{gap:8px}.levels-card,.levels-card.small{min-height:0}.levels-card-img{inset:7px}.levels-play-btn{margin-top:14px}.how-to-play-panel{margin-top:26px;padding:13px}.how-step{grid-template-columns:38px 76px 1fr;gap:8px;min-height:76px;padding:8px 10px}.how-step-icon{width:70px;height:54px;font-size:30px}.how-tip{grid-template-columns:54px 1fr;min-height:68px}.how-tip-icon{width:50px;height:50px}}@media (height<=720px) and (pointer:coarse){.screen,.settings-screen,.how-to-play-screen,.regular-game-setup-screen,.profile-screen,.shop-screen,.leaderboard-screen,.levels-screen{padding-left:calc(var(--platform-safe-area-left,env(safe-area-inset-left,0px)) + var(--main-screen-inset));padding-right:calc(var(--platform-safe-area-right,env(safe-area-inset-right,0px)) + var(--main-screen-inset))}.back-btn{width:50px;height:50px;top:calc(var(--platform-safe-area-top,env(safe-area-inset-top,0px)) + 10px);left:calc(var(--platform-safe-area-left,env(safe-area-inset-left,0px)) + 10px);font-size:32px}.wood-title{width:min(100% - 118px,250px);min-height:56px;margin-top:36px;font-size:clamp(24px,7.5vw,38px)}.cream-panel{border-width:6px;border-radius:20px;width:min(100% - 20px,372px);margin-top:20px;padding:12px}.setup-preview-image{aspect-ratio:1.45}.setup-action-btn{min-height:44px;margin-top:12px;font-size:16px}.field-size-title{margin-top:14px;font-size:17px}.field-size-buttons{gap:7px;margin-top:10px}.size-btn{min-height:44px;font-size:22px}.green-big-btn{min-height:54px;margin-top:14px;font-size:32px}.profile-review-btn{min-height:50px;font-size:22px}.profile-avatar-wrap{width:92px;height:92px;margin-bottom:10px}.profile-name{font-size:28px}.profile-progress-card{padding:10px}.profile-progress-bar{height:28px}.profile-stats-title{margin-top:12px}.profile-stats-grid{gap:7px}.profile-stat-card{grid-template-columns:44px 1fr;min-height:62px;padding:7px}.profile-stat-icon{width:40px;height:40px;padding:5px}.profile-stat-label{font-size:12px}.profile-stat-value{font-size:25px}.settings-panel{min-height:350px;margin-top:42px;padding:44px 16px 30px}.settings-decor{margin-bottom:34px}.settings-row{grid-template-columns:64px 1fr 78px;gap:10px;min-height:78px;padding:12px}.settings-row+.settings-row{margin-top:22px}.settings-option-icon{width:56px;height:56px;padding:7px}.settings-option-title{font-size:clamp(22px,7vw,32px)}.toggle-btn{width:76px;height:40px}.toggle-knob{width:32px;height:32px}.levels-tabs{gap:6px;width:min(100% - 12px,372px);margin-top:10px}.levels-tab{border-radius:12px;flex-direction:column;gap:1px;min-height:40px;padding:0 6px;font-size:10px;line-height:1.05}.levels-filter-stars img{width:16px;height:16px}.levels-panel{margin-top:10px;padding:10px}.levels-head{grid-template-columns:76px 1fr;gap:11px}.levels-main-thumb{border-radius:10px;width:76px;height:56px}.levels-name{font-size:30px}.levels-opened{min-height:34px;margin-top:7px;padding:0 10px;font-size:16px}.levels-opened-star{font-size:22px}.levels-divider{margin:10px 0 8px}.levels-subtitle{margin-bottom:8px;font-size:14px}.levels-grid{gap:7px}.levels-card{border-radius:11px;min-height:0}.levels-card.small{min-height:0}.levels-card-img{border-radius:8px;inset:6px}.levels-card.small .levels-card-img{bottom:6px}.levels-check{width:34px;height:34px;font-size:22px}.levels-lock{width:31px;height:28px;font-size:17px}.levels-level{border-radius:7px;min-width:0;max-width:calc(100% - 6px);min-height:24px;padding:0 4px;font-size:11px}.levels-card.unlocked .levels-level{min-width:0;font-size:11px}.levels-card-stars{gap:1px;padding-left:5px;padding-right:5px}.levels-card-star{width:15px;height:15px}.levels-play-btn{width:min(100% - 120px,230px);margin-top:12px}.game-ui{--puzzle-section-gap:12px;--puzzle-action-height:48px}.show-picture-btn{font-size:16px}.how-top-info{gap:12px;margin-bottom:10px}.how-step{grid-template-columns:34px 60px 1fr;gap:7px;min-height:62px;margin-top:7px;padding:7px}.how-step-number{width:30px;height:30px;font-size:19px}.how-step-icon{width:56px;height:44px;font-size:25px}.how-step-text{font-size:14px}.how-tip{grid-template-columns:44px 1fr;min-height:58px;margin-top:10px;padding:9px}.how-tip-icon{width:40px;height:40px}.how-tip-text{font-size:14px}}@media (width<=360px){.game-ui{--main-screen-inset:16px;--main-control-size:clamp(48px, 7vh, 52px)}.modal-close-btn{border-width:3px;width:34px;height:34px;min-height:34px;padding-bottom:2px;font-size:30px;top:-15px;right:-15px}.wood-title{font-size:28px}.cream-panel{width:calc(100% - 8px)}.settings-row{grid-template-columns:58px 1fr 72px;gap:8px}.settings-option-icon{width:52px;height:52px;padding:7px}.settings-option-title{font-size:23px}.toggle-btn{width:70px;height:38px}.toggle-knob{width:30px;height:30px}.profile-stat-card{grid-template-columns:40px 1fr}.profile-stat-icon{width:38px;height:38px;padding:5px}.profile-stat-value{font-size:23px}.levels-tab{flex-direction:column;gap:1px;min-width:0;padding:0 2px;font-size:9px;line-height:1.05;overflow:hidden}.levels-filter-stars{gap:1px}.levels-filter-stars img{width:15px;height:15px}.levels-level,.levels-card.unlocked .levels-level{min-width:0;max-width:calc(100% - 6px);min-height:22px;padding:0 3px;font-size:10px}.levels-card-stars{gap:1px;padding-left:4px;padding-right:4px}.levels-card-star{width:14px;height:14px}.levels-head{grid-template-columns:68px 1fr;gap:9px}.levels-main-thumb{width:68px;height:52px}.levels-name{font-size:27px}.levels-opened{font-size:14px}.leaderboard-row{grid-template-columns:35px 36px 1fr 48px;padding-left:9px;padding-right:9px}.how-step{grid-template-columns:32px 52px 1fr}.how-step-icon{width:50px}}@media (width<=439px){.shop-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:min(100%,300px)}}@media (width>=361px) and (width<=599px) and (pointer:coarse){.game-ui{--puzzle-control-size:56px;--puzzle-action-height:56px}.level-title{font-size:clamp(20px,6vw,24px);font-weight:900;line-height:1.08}.puzzle-back-btn,.puzzle-hint-btn,.puzzle-stat-card{height:56px}.show-picture-btn{height:56px;min-height:56px}html.fullscreen-layout .settings-screen .settings-modal,html.fullscreen-layout .how-to-play-screen .how-to-play-modal,html.fullscreen-layout .regular-game-setup-screen .regular-setup-modal,html.fullscreen-layout .profile-screen .profile-modal,html.fullscreen-layout .shop-screen .shop-modal,html.fullscreen-layout .leaderboard-screen .leaderboard-modal,html.fullscreen-layout .levels-screen .levels-modal{height:100%;max-height:100%}html.fullscreen-layout .victory-overlay{padding:calc(var(--platform-safe-area-top,env(safe-area-inset-top,0px)) + var(--main-screen-inset)) calc(var(--platform-safe-area-right,env(safe-area-inset-right,0px)) + var(--main-screen-inset)) calc(var(--platform-safe-area-bottom,env(safe-area-inset-bottom,0px)) + var(--main-screen-inset)) calc(var(--platform-safe-area-left,env(safe-area-inset-left,0px)) + var(--main-screen-inset));justify-content:center;align-items:center}html.fullscreen-layout .victory-modal{width:100%;height:100%;max-height:100%;margin:0}}
