.pocket-merge-layout{padding-bottom:max(26px,env(safe-area-inset-bottom))}.pocket-merge-layout .mobile-ad:not([data-active]),.pocket-merge-layout .ad-reserve{display:none}.pocket-merge-column{min-width:0}.pocket-merge-column>.back-link{align-self:flex-start}.pocket-merge-heading h1{margin-bottom:6px}.pocket-merge-shell{position:relative;display:grid;gap:14px;padding:clamp(12px,2.8vw,20px);overflow:hidden;background:#3b548a}.pm-scoreboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px}.pm-score-card{display:grid;justify-items:center;gap:2px;min-width:0;padding:7px 12px;border:0;border-radius:0;background:transparent;color:var(--game-desk-muted);font-size:.75rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.pm-score-card strong{color:var(--game-desk-fg);font-family:Space Grotesk,system-ui,sans-serif;font-size:clamp(1.25rem,4vw,1.7rem);font-variant-numeric:tabular-nums;letter-spacing:-.05em;line-height:1}.pocket-merge-shell .game-play-area{padding:0;background:transparent}.pm-new-game{padding:8px 12px;font-size:.78rem;white-space:nowrap}.pm-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:clamp(5px,1.4vw,9px);width:min(100%,440px,var(--responsive-surface-max-height, 440px));max-height:var(--responsive-surface-max-height, none);aspect-ratio:1;margin:0 auto;padding:clamp(7px,1.8vw,12px);border:1px solid #515b83;border-radius:22px;background:#222b4e;box-shadow:inset 0 2px 8px #131a35aa;outline:none;touch-action:none;-webkit-user-select:none;user-select:none}.pm-board:focus-visible{outline:3px solid #f89a45;outline-offset:3px}.pm-cell{display:grid;min-width:0;min-height:0;place-items:center;overflow:hidden;border-radius:clamp(9px,2.2vw,15px);background:#2d375c;color:#f8f6ff;font-family:Space Grotesk,system-ui,sans-serif;font-size:clamp(1.05rem,6vw,2.25rem);font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.06em;line-height:1;transition:background-color .12s ease,color .12s ease}.pm-cell[data-value]{background:#f6c85f;box-shadow:0 2px #dcae45;color:#352a36}.pm-cell[data-value="4"]{background:#f4a261;box-shadow:0 2px #d18243}.pm-cell[data-value="8"]{background:#ee816b;box-shadow:0 2px #cf6754;color:#352a36}.pm-cell[data-value="16"]{background:#e96b7a;box-shadow:0 2px #bd4b60;color:#352a36}.pm-cell[data-value="32"]{background:#b94383;box-shadow:0 2px #983467;color:#fff}.pm-cell[data-value="64"]{background:#914cb8;box-shadow:0 2px #71358f;color:#fff}.pm-cell[data-value="128"],.pm-cell[data-value="256"]{background:#7655c7;box-shadow:0 2px #5e429f;color:#fff}.pm-cell[data-value="512"],.pm-cell[data-value="1024"]{background:#5862c9;box-shadow:0 2px #424c9f;color:#fff}.pm-cell[data-value="2048"]{background:#4775bc;box-shadow:0 2px #345b98;color:#fff}.pm-cell[data-value="4096"],.pm-cell[data-value="8192"]{background:#36568c;box-shadow:0 2px #273f6b;color:#fff}.pm-merge-ghost[data-value="4"]{background:#f4a261;box-shadow:0 2px #d18243;color:#352a36}.pm-merge-ghost[data-value="8"]{background:#ee816b;box-shadow:0 2px #cf6754;color:#352a36}.pm-merge-ghost[data-value="16"]{background:#e96b7a;box-shadow:0 2px #bd4b60;color:#352a36}.pm-merge-ghost[data-value="32"]{background:#b94383;box-shadow:0 2px #983467;color:#fff}.pm-merge-ghost[data-value="64"]{background:#914cb8;box-shadow:0 2px #71358f;color:#fff}.pm-merge-ghost[data-value="128"],.pm-merge-ghost[data-value="256"]{background:#7655c7;box-shadow:0 2px #5e429f;color:#fff}.pm-merge-ghost[data-value="512"],.pm-merge-ghost[data-value="1024"]{background:#5862c9;box-shadow:0 2px #424c9f;color:#fff}.pm-merge-ghost[data-value="2048"]{background:#4775bc;box-shadow:0 2px #345b98;color:#fff}.pm-merge-ghost[data-value="4096"],.pm-merge-ghost[data-value="8192"]{background:#36568c;box-shadow:0 2px #273f6b;color:#fff}.pm-effects{position:absolute;z-index:3;inset:0;overflow:hidden;pointer-events:none}.pm-cell.pm-moving{animation:pm-tile-move .13s cubic-bezier(.2,.75,.3,1) both}.pm-cell.pm-merged{position:relative;z-index:1;animation:pm-merge-pop .16s cubic-bezier(.2,.8,.25,1) both;box-shadow:0 0 0 2px #fff9,0 0 20px #ffd866aa}.pm-cell.pm-milestone{z-index:2;box-shadow:0 0 0 2px #fff,0 0 28px 7px #ffdb62;animation:pm-merge-pop .17s cubic-bezier(.2,.8,.25,1) both,pm-milestone-glow .9s ease-out both}.pm-cell.pm-new-tile{animation:pm-new-tile .12s ease-out both}.pm-merge-ghost{position:absolute;z-index:4;display:grid;place-items:center;border-radius:clamp(9px,2.2vw,15px);background:#f4a261;box-shadow:0 2px #d18243;color:#352a36;font-family:Space Grotesk,system-ui,sans-serif;font-size:clamp(1.05rem,6vw,2.25rem);font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.06em;line-height:1;animation:pm-merge-in .15s cubic-bezier(.2,.75,.3,1) both}.pm-floating-score{position:absolute;z-index:5;color:#6d4300;font-size:clamp(.72rem,2.8vw,.88rem);font-weight:900;line-height:1;text-shadow:0 1px #fff,0 0 5px #fff;white-space:nowrap;animation:pm-score-float .56s ease-out both}.pm-score-card strong.pm-best-flash{animation:pm-best-highlight .48s ease-out}.pm-message{min-height:1.4em;margin:0;color:#cbc7dc;font-size:.83rem;line-height:1.45;text-align:center}.pm-notice{position:absolute;z-index:2;top:49%;left:50%;width:max-content;max-width:calc(100% - 28px);padding:11px 16px;transform:translate(-50%,-50%);border:1px solid #fff9;border-radius:15px;background:#312855ed;box-shadow:0 8px 28px #271a4840;color:#fff;font-weight:800;text-align:center;pointer-events:none}.pm-direction-pad{display:grid;justify-items:center;gap:5px}.pm-direction-pad button{display:grid;width:48px;height:40px;place-items:center;border:1px solid #7187b6;border-radius:12px;background:#304779;color:#f8f6ff;font-size:1.2rem;font-weight:800;box-shadow:0 2px #211d32}.pm-direction-pad button:active{transform:translateY(2px);box-shadow:none}.pm-horizontal-buttons{display:flex;gap:6px}.pocket-merge-howto{margin-top:16px}.pocket-merge-howto h2{font-size:1.35rem}.pocket-merge-howto p{color:#66617a;font-size:.9rem}.pm-game-over{position:absolute;z-index:5;inset:0;display:grid;place-items:center;padding:20px;background:var(--game-modal-scrim);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.pm-game-over[hidden]{display:none}.pm-over-card{width:min(100%,340px);padding:24px;border:1px solid var(--game-modal-border);border-radius:24px;background:var(--game-modal-bg);box-shadow:0 18px 50px #11152a80;text-align:center;color:var(--game-modal-fg)}.pm-over-spark{display:block;margin-bottom:5px;color:#f28b55;font-size:2rem}.pm-over-card h2{margin-bottom:7px;font-size:1.7rem;color:var(--game-modal-fg)}.pm-over-card>p:not(.pm-over-stat):not(.pm-new-record){color:var(--game-modal-muted);font-size:.9rem}.pm-over-stat{display:flex;justify-content:space-between;margin:7px 0;padding:8px 10px;border-radius:10px;background:var(--game-modal-inset);color:var(--game-modal-muted);font-size:.85rem}.pm-over-stat strong{color:var(--game-modal-fg);font-variant-numeric:tabular-nums}.pm-new-record{margin:11px 0;color:#bd5b27;font-weight:800}.pm-over-card .primary-btn{margin-top:8px}.pm-confirm-card h2{margin:0 0 12px}.pm-confirm-actions{flex-wrap:wrap}.pm-confirm-actions button{min-width:112px}.pm-confirm-actions .primary-btn{margin-top:0}@keyframes pm-tile-move{0%{transform:translate(var(--pm-dx),var(--pm-dy))}to{transform:translate(0)}}@keyframes pm-merge-pop{0%{transform:scale(.9)}68%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes pm-new-tile{0%{transform:scale(.78);opacity:.5}to{transform:scale(1);opacity:1}}@keyframes pm-merge-in{to{transform:translate(var(--pm-dx),var(--pm-dy)) scale(.72);opacity:.15}}@keyframes pm-score-float{0%{transform:translate(-50%,-65%);opacity:1}to{transform:translate(-50%,-155%);opacity:0}}@keyframes pm-best-highlight{0%,to{color:#f8f6ff}45%{color:#ffd866;text-shadow:0 0 12px #f7b63b}}@keyframes pm-milestone-glow{0%,to{box-shadow:0 0 0 2px #fff,0 0 28px 7px #ffdb62}60%{box-shadow:0 0 0 4px #fff,0 0 36px 12px #ffdb62}}@media(max-width:600px){.pocket-merge-layout{display:block;height:auto;min-height:calc(100svh - 62px);overflow:visible}.pocket-merge-column{display:flex;height:auto;min-height:0;flex-direction:column;gap:var(--game-page-gap)}.pocket-merge-layout .back-link{display:inline-block}.pocket-merge-shell{width:min(100%,500px);align-self:center;gap:10px}.pocket-merge-shell .game-play-area{width:100%;justify-self:stretch}.pm-direction-pad button{width:52px;height:42px}}@media(prefers-reduced-motion:reduce){.pm-cell,.pm-cell[data-value],.pm-cell.pm-milestone,.pm-merge-ghost,.pm-floating-score,.pm-score-card strong.pm-best-flash,.pm-direction-pad button{animation:none;transition:none}.pm-cell.pm-merged{outline:2px solid #fff9;outline-offset:-3px;box-shadow:0 0 0 2px #ffd866}.pm-cell.pm-milestone{border:2px solid #ffdc5e}.pm-merge-ghost{display:none}}@media(min-width:601px)and (max-height:900px){.pocket-merge-column{display:flex;height:auto;flex-direction:column;gap:var(--game-page-gap)}.pocket-merge-column .game-heading{margin:0}.pocket-merge-shell{gap:9px;padding:12px}.pm-board{width:min(100%,400px,var(--responsive-surface-max-height, 400px))}.pm-direction-pad button{height:36px}}
