:root{font-family:Inter,ui-rounded,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#15213e;background:#dbe8ff;--app-height: 100dvh;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px);--safe-right: env(safe-area-inset-right, 0px);color-scheme:light dark}html[data-theme=dark]{color:#f3f5ff;background:#18264f}*{box-sizing:border-box}html,body,#root{width:100%;height:var(--app-height);min-height:var(--app-height);margin:0;overflow:hidden}body,#root{background:inherit}html,body{overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit}.screen{height:var(--app-height);padding:calc(var(--safe-top) + 12px) calc(var(--safe-right) + 14px) calc(var(--safe-bottom) + 12px) calc(var(--safe-left) + 14px);overflow:hidden;background:linear-gradient(165deg,#e0e7f2f0,#dfece6f0),url(/assets/brand/game-background.webp) center/cover}.scroll-screen{overflow-y:auto;overscroll-behavior:contain}.panel{border:1px solid rgba(255,255,255,.72);background:#ffffffc7;box-shadow:0 18px 50px #1d2d5d21;backdrop-filter:blur(14px);border-radius:28px}.center-screen,.splash{display:grid;place-items:center;align-content:center;gap:22px;text-align:center}.splash{background:radial-gradient(circle at 50% 38%,#7c96e9,#263466 72%);color:#fff}.splash-art{width:min(58vw,270px);aspect-ratio:1;position:relative}.splash-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:1}.asset-missing{opacity:0}.splash-berry-fallback{position:absolute;inset:17%;border-radius:50%;background:radial-gradient(circle at 35% 25%,#8da9ff 0 8%,#4058bd 10% 42%,#1d245f 70%);box-shadow:0 22px 60px #12194480}.fallback-logo{margin:0;font-weight:900;font-size:clamp(2rem,10vw,3.5rem);line-height:.96;letter-spacing:-.05em;text-wrap:balance}.loader{width:32px;height:32px;border:3px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.home-screen{display:grid;justify-items:center;align-content:start;gap:14px}.hero,.rules{width:min(100%,480px);padding:24px;text-align:center}.game-logo{width:100%;height:104px;object-fit:contain}.game-logo:not(.asset-missing)+.fallback-logo{display:none}.hero p,.rules p,.error-panel p{color:#53607d;line-height:1.5}.best-score{height:72px;display:flex;align-items:center;justify-content:space-between;margin:20px 0;padding:0 18px;border-radius:20px;background:#edf1ff}.best-score span{color:#5b6685}.best-score strong,.counters strong,.result-grid strong{font-variant-numeric:tabular-nums}.best-score strong{min-width:7ch;text-align:right;font-size:1.65rem;color:#344ba9}.primary-button,.secondary-button{width:100%;min-height:52px;margin-top:10px;border:0;border-radius:18px;font-weight:800;cursor:pointer}.primary-button{color:#fff;background:linear-gradient(135deg,#445dc5,#6a4db2);box-shadow:0 10px 22px #4d55b33f}.secondary-button{color:#34437c;background:#e9edfb}.primary-button:disabled,.secondary-button:disabled{opacity:.55;cursor:wait}.rules h2{margin:0}.rules a{color:#3e57b7}.version{color:#62708e}.level-select-screen{display:grid;align-content:start;justify-items:center;gap:14px}.level-map-header,.level-map{width:min(100%,520px)}.level-map-header{display:flex;align-items:center;gap:14px;padding:18px}.level-map-header h1,.level-map-header p{margin:0}.level-map-header p{margin-top:4px;color:#62708e;font-size:.9rem}.map-back{width:44px;height:44px;border:0;border-radius:14px;background:#e9edfb;color:#34437c;font-weight:900}.level-map{display:grid;gap:10px;padding-bottom:24px}.level-card{width:100%;height:124px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 16px;border:0;color:#1d2a50;text-align:left;cursor:pointer;overflow:hidden}.level-card.locked{opacity:.62;filter:grayscale(.35);cursor:not-allowed}.level-card.is-current{box-shadow:0 0 0 3px #536bd1,0 18px 50px #1d2d5d21}.level-number{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#536bd1,#7b57bb);color:#fff;font-weight:900}.level-copy{min-width:0}.level-objectives{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.level-copy{min-width:0;display:grid;gap:5px}.level-copy strong{overflow:hidden;color:inherit;text-overflow:ellipsis;white-space:nowrap}.level-copy small{color:#4d5a78}.stars{display:inline-flex;justify-content:center;gap:3px;color:#bcc3d4;font-size:1.35rem}.stars .earned{color:#f5ad28;text-shadow:0 2px 5px #d27d2855}.result-card>.stars{margin:-4px 0 8px;font-size:2.2rem}.dev-field{display:grid;gap:6px;margin:18px 0;text-align:left}.dev-field input{min-height:48px;padding:0 14px;border:1px solid #c9d2f0;border-radius:14px;font:inherit;font-variant-numeric:tabular-nums}.error-panel,.result-card{width:min(100%,440px);padding:28px}.game-screen{display:grid;grid-template-rows:146px minmax(0,1fr) 62px;gap:10px;align-items:center}.game-header{height:146px;width:100%;max-width:520px;justify-self:center;display:flex;flex-direction:column;gap:10px;padding:10px;overflow:hidden}.objectives{min-height:0;flex:1;display:flex;align-items:stretch;justify-content:center;gap:12px}.objectives-title{flex-shrink:0;align-self:center;color:#4f5d78;font-size:.78rem;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.level-badge{flex-shrink:0;align-self:center;display:grid;justify-items:center;gap:1px;min-width:44px;padding:6px 8px;border-radius:14px;background:linear-gradient(135deg,#536bd1,#7b57bb);color:#fff;line-height:1.1}.level-badge small{font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;opacity:.9}.level-badge strong{font-size:1.15rem;font-variant-numeric:tabular-nums}.objective{min-width:0;flex:1 1 0;max-width:220px;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;padding:6px 10px;overflow:hidden;border-radius:16px;background:#f3f5ff;box-shadow:inset 0 0 0 1px #d8def4;font-weight:800;line-height:1.15}.objective>img,.objective>span{width:32px;height:32px;object-fit:contain;font-size:1.45rem;display:grid;place-items:center}.objective>div{min-width:0;display:grid;gap:3px;container-type:inline-size}.objective small{overflow:hidden;color:#54617d;font-size:.75rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.objective strong{max-width:100%;overflow:hidden;color:#263c96;font-size:.9rem;font-variant-numeric:tabular-nums;white-space:nowrap}@supports (font-size: 1cqi){.objective strong{font-size:clamp(.72rem,13.5cqi,1.05rem)}}.objective.is-complete{background:#e7f6ec;box-shadow:inset 0 0 0 1px #aad6b8}.counters{height:52px;flex-shrink:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.counters>div{min-width:0;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:8px;padding:0 12px;border-radius:17px;background:#edf1ff}.counters span{color:#596783;font-size:.84rem}.counters strong{text-align:right;font-size:1.25rem;color:#31469d}.counters .is-urgent{background:#fff0ec}.counters .is-urgent strong{color:#b93e35}.board-slot{width:100%;height:100%;min-height:0;display:grid;place-items:center;contain:layout size style}.game-board{--gap: 0px;width:min(calc(100vw - var(--safe-left) - var(--safe-right) - 24px),calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - 230px),520px);aspect-ratio:1;display:grid;grid-template-columns:repeat(var(--board-size),1fr);grid-template-rows:repeat(var(--board-size),1fr);gap:var(--gap);padding:0;border-radius:24px;background:conic-gradient(#c9b18b 0 25%,#ddcbae 0 50%,#c9b18b 0 75%,#ddcbae 0) top left / calc(200% / var(--board-size)) calc(200% / var(--board-size));box-shadow:0 16px 35px #3b2b203d;overflow:hidden;contain:strict;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.berry-cell{--berry-scale: .94;position:relative;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden;transform:translateZ(0) scale(1);transition:transform .15s ease,opacity .15s ease,background-color .15s ease}.berry-cell.board-square-light,.berry-cell.board-square-dark{background:transparent}.berry-cell.berry-kind-strawberry{--berry-scale: .87}.berry-cell.berry-kind-raspberry{--berry-scale: .86}.berry-cell.berry-kind-lingonberry{--berry-scale: .83}.berry-cell:not(:disabled){cursor:pointer}.berry-cell.is-selected{background:#f2d78e;box-shadow:inset 0 0 0 3px #245985;transform:translateZ(0) scale(.88)}.berry-cell.is-blocked{cursor:default;pointer-events:none}.berry-cell.is-blocked img{width:100%;height:100%;display:block;object-fit:contain;transform:scale(.86);filter:drop-shadow(0 3px 3px #3b2b2070)}.berry-cell:focus-visible{outline:3px solid #0b5fff;outline-offset:-3px}@media(prefers-contrast:more){.game-board{--gap: 0px;background:conic-gradient(#ad8e65 0 25%,#f0e2c6 0 50%,#ad8e65 0 75%,#f0e2c6 0) top left / calc(200% / var(--board-size)) calc(200% / var(--board-size))}}@media(forced-colors:active){.game-board{border:2px solid CanvasText;background:Canvas}.berry-cell,.berry-cell.board-square-light,.berry-cell.board-square-dark{border:2px solid ButtonText;background:Canvas;box-shadow:none}.berry-cell.is-selected,.berry-cell:focus-visible{outline:3px solid Highlight;outline-offset:-3px}}.berry-fallback{width:100%;height:100%;display:block;border-radius:44%}.berry-fallback img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none;transform:scale(var(--berry-scale));filter:drop-shadow(0 2px 2px #3b2b205c)}.berry-strawberry img{filter:hue-rotate(8deg) saturate(1.04) brightness(1.02) contrast(1.04) drop-shadow(0 2px 2px #3b2b205c)}.berry-gooseberry img{filter:brightness(.9) contrast(1.12) drop-shadow(0 0 2px #493525) drop-shadow(0 2px 2px #3b2b2073)}.berry-raspberry img{filter:hue-rotate(342deg) saturate(.92) brightness(.82) contrast(1.08) drop-shadow(0 2px 2px #4b203c70)}.berry-lingonberry img{filter:drop-shadow(0 0 2px #6b3f1f) drop-shadow(0 2px 2px #3b2b206b)}.berry-fallback:has(.asset-missing){box-shadow:inset 0 -7px 12px #0003,inset 0 8px 10px #fff5}.berry-blueberry:has(.asset-missing){background:radial-gradient(circle at 36% 30%,#829af5 0 8%,#344ba7 10% 48%,#17215f 72%)}.berry-strawberry:has(.asset-missing){background:conic-gradient(from 195deg at 50% 0,#498d52 0 20%,#e64358 21% 100%);border-radius:44% 44% 55% 55%/36% 36% 72% 72%}.berry-raspberry:has(.asset-missing){background:radial-gradient(circle at 28% 27%,#ff7eb6 0 14%,transparent 15%),radial-gradient(circle,#c52270 0 45%,#71143f 74%)}.berry-blackberry:has(.asset-missing){background:radial-gradient(circle at 30% 28%,#8462b8 0 12%,transparent 13%),radial-gradient(circle,#432b67 0 45%,#18152c 75%)}.berry-lingonberry:has(.asset-missing){background:radial-gradient(circle at 34% 27%,#ffd16a 0 10%,#f28c18 45%,#a94d0d 78%)}.berry-gooseberry:has(.asset-missing){background:repeating-linear-gradient(80deg,transparent 0 7px,#719c3b66 8px 10px),radial-gradient(circle at 35% 28%,#d3e98b 0 10%,#93b852 60%,#547a32)}.berry-cell.is-moving{animation:cell-move var(--move-ms, .22s) var(--move-ease, ease-out) both}.game-board.motion-swap .berry-cell.is-moving{--move-ms: .13s;--move-ease: cubic-bezier(.34, .02, .28, 1)}.game-board.motion-fall .berry-cell.is-moving{--move-ms: .28s;--move-ease: cubic-bezier(.45, 0, .35, 1)}@keyframes cell-move{0%{transform:translateZ(0) translate(calc(var(--dx, 0) * (100% + var(--gap))),calc(var(--dy, 0) * (100% + var(--gap))))}to{transform:translateZ(0) translate(0)}}.berry-cell.is-removing{z-index:2;animation:cell-pop .34s cubic-bezier(.2,.7,.25,1) both}@keyframes cell-pop{45%{transform:translateZ(0) scale(1.2) rotate(4deg);filter:brightness(1.45) saturate(1.2) drop-shadow(0 0 9px #fff7b8)}to{transform:translateZ(0) scale(.18) rotate(-8deg);filter:brightness(1.2) saturate(.8);opacity:0}}.game-board.motion-shuffle:after{content:"Перемешиваем поле";position:absolute;z-index:5;left:50%;top:50%;translate:-50% -50%;padding:9px 14px;border-radius:999px;color:#fff;background:#20263ed9;box-shadow:0 8px 24px #10131c88;font-weight:850;white-space:nowrap}.game-board.motion-shuffle .berry-cell:not(.is-blocked){animation:cell-shuffle .65s cubic-bezier(.4,0,.2,1) both}@keyframes cell-shuffle{0%{transform:translateZ(0) scale(1) rotate(0);opacity:1}45%{transform:translateZ(0) scale(.7) rotate(12deg);opacity:.22}55%{transform:translateZ(0) scale(.7) rotate(-12deg);opacity:.22}to{transform:translateZ(0) scale(1) rotate(0);opacity:1}}.game-board.is-locked{pointer-events:none}.game-board.invalid-swap{animation:invalid .2s ease}@keyframes invalid{50%{box-shadow:inset 0 0 0 3px #c2536abb,0 16px 35px #1a28594a}}.game-footer{height:62px;width:100%;max-width:520px;justify-self:center;display:grid;grid-template-columns:1.3fr 1fr;gap:10px;align-items:center}.network-toast{position:fixed;z-index:20;left:50%;bottom:calc(var(--safe-bottom) + 70px);translate:-50% 0;padding:9px 14px;border-radius:999px;color:#fff;background:#8a3341e8;box-shadow:0 8px 22px #40202a55;font-size:.85rem;font-weight:750;white-space:nowrap}.secondary-button.compact{margin:0;min-height:44px}.shuffle-button{display:flex;align-items:center;justify-content:center;gap:9px}.shuffle-button strong{min-width:26px;padding:3px 7px;border-radius:999px;color:#fff;background:#5267bd}.secondary-button.shuffle-button:disabled{opacity:1;cursor:default}.secondary-button.shuffle-button.is-exhausted{opacity:.55;cursor:not-allowed}.result-mark{width:82px;height:82px;margin:auto;border-radius:50%;background:#dce4ff}.result-mark.won{background:radial-gradient(circle at 40% 35%,#a5bbff,#445bc1 60%,#263579);box-shadow:0 12px 30px #445bc155}.result-mark.lost{background:radial-gradient(circle at 40% 35%,#f2d98d,#bf8d3f 65%)}.unmet-objectives{margin:18px 0 0;padding:14px 16px;border-radius:18px;background:#fdf1f2;text-align:left}.unmet-objectives h2{margin:0 0 8px;font-size:.95rem;color:#8a3341}.unmet-objectives ul{margin:0;padding:0;list-style:none;display:grid;gap:6px}.unmet-objectives li{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.unmet-objectives strong{font-variant-numeric:tabular-nums}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:22px 0}.result-grid>div{height:78px;display:grid;align-content:center;gap:5px;background:#eef1fc;border-radius:16px}.result-grid span{color:#5b6683;font-size:.78rem}.result-grid strong{font-size:1.25rem}@media(max-width:430px),(max-height:700px){.screen{padding-left:calc(var(--safe-left) + 4px);padding-right:calc(var(--safe-right) + 4px)}.game-screen{grid-template-rows:134px minmax(0,1fr) 54px;gap:5px}.game-header{height:134px;gap:8px;padding:8px}.objectives{gap:8px}.objectives-title{display:none}.level-badge{min-width:38px;padding:4px 6px;border-radius:12px}.level-badge small{font-size:.55rem}.level-badge strong{font-size:1rem}.objective{gap:6px;padding:4px 8px}.objective>img,.objective>span{width:28px;height:28px;font-size:1.25rem}.counters{height:50px;gap:8px}.counters>div{padding:0 10px}.game-board{width:min(calc(100vw - var(--safe-left) - var(--safe-right) - 8px),calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - 199px));--gap: 0px;padding:0;border-radius:18px}.game-footer{height:54px}}[data-theme=dark] .screen{color:#f3f5ff;background:linear-gradient(165deg,#192242f7,#143734f5),url(/assets/brand/game-background.webp) center/cover}[data-theme=dark] .panel{background:#1c2546db;border-color:#ffffff20}[data-theme=dark] .hero p,[data-theme=dark] .rules p,[data-theme=dark] .error-panel p{color:#c4cae0}[data-theme=dark] .best-score,[data-theme=dark] .counters>div,[data-theme=dark] .result-grid>div{background:#222e59}[data-theme=dark] .best-score strong,[data-theme=dark] .counters strong{color:#a9baff}[data-theme=dark] .secondary-button{color:#e7eaff;background:#2b3869}[data-theme=dark] .network-status{background:#1b254ccc}[data-theme=dark] .unmet-objectives{background:#3a2334}[data-theme=dark] .unmet-objectives h2{color:#ffb3bd}[data-theme=dark] .level-card{color:#f3f5ff}[data-theme=dark] .level-card.is-current{box-shadow:0 0 0 3px #8ea0f0,0 18px 50px #080c2073}[data-theme=dark] .level-copy small,[data-theme=dark] .level-map-header p,[data-theme=dark] .result-grid span{color:#c5cce0}[data-theme=dark] .map-back{color:#e7eaff;background:#2b3869}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
