/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.fixed{position:fixed}.relative{position:relative}.start{inset-inline-start:var(--spacing)}.table{display:table}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}:root{--navy:#082449;--navy-deep:#04152e;--navy-soft:#11345f;--cream:#f7e8cf;--cream-light:#fff5df;--card:#fffaf0;--line:#3455766b;--green:#68ca22;--yellow:#ffc42f;--blue:#1f84db;--red:#ed514a;--shadow:0 16px 36px #3a2b122e;--font-sans:Arial, Helvetica, sans-serif}*{box-sizing:border-box}html,body{min-height:100%}body{background:radial-gradient(circle at 16% 10%, #fffffff2, transparent 24rem), radial-gradient(circle at 83% 22%, #ffd14238, transparent 20rem), repeating-linear-gradient(45deg, #97693009 0 2px, transparent 2px 12px), linear-gradient(135deg, #fff7e7 0%, var(--cream) 48%, #f4dcb7 100%);color:#2d2b29;font-family:var(--font-sans);margin:0}button{font:inherit}.game-nav-actions{z-index:50;top:max(12px, env(safe-area-inset-top));right:max(12px, env(safe-area-inset-right));gap:8px;display:flex;position:fixed}.game-nav-action{min-height:40px;color:var(--navy-deep);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffaf0d6;border:1px solid #3455765c;border-radius:999px;justify-content:center;align-items:center;gap:7px;padding:0 13px;font-size:13px;font-weight:900;text-decoration:none;display:inline-flex;box-shadow:0 12px 28px #3a2b1233}.game-nav-action--share{color:var(--blue);background:linear-gradient(#fff,#dff0ff);border-color:#1f84db6b}@media (width<=520px){.game-nav-action{width:40px;min-width:40px;padding:0}.game-nav-action span:last-child{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}}.nested-game-actions{z-index:90;top:max(12px, env(safe-area-inset-top));right:max(12px, env(safe-area-inset-right));pointer-events:auto;align-items:flex-start;gap:8px;display:flex;position:fixed}.nested-game-home-button,.nested-game-share-button{color:#f8fafc;white-space:nowrap;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#070c14c7;border:1px solid #ffffff1f;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:38px;padding:8px 14px;font-size:.875rem;font-weight:800;line-height:1.25rem;text-decoration:none;display:inline-flex;box-shadow:0 12px 28px #0000003d}.nested-game-share-button:hover,.nested-game-share-button[aria-expanded=true],.nested-game-home-button:hover{color:#67e8f9;background:#070c14f0;border-color:#22d3ee4d}.nested-game-action-icon{flex:none;width:18px;height:18px}.nested-game-share-menu{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#070c14f5;border:1px solid #94a3b838;border-radius:12px;gap:4px;min-width:162px;padding:8px;display:none;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 18px 42px #00000057}.nested-game-share-menu.is-open{display:grid}.nested-game-share-option{color:#e2e8f0;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;min-height:36px;padding:8px 10px;font-size:.82rem;font-weight:800;text-decoration:none;display:flex}.nested-game-share-option:hover{color:#67e8f9;background:#22d3ee24}@media (width<=520px){.nested-game-actions{top:max(8px, env(safe-area-inset-top));right:max(8px, env(safe-area-inset-right));gap:6px}.nested-game-home-button,.nested-game-share-button{min-height:36px;padding:7px 10px;font-size:.78rem}}.game-shell{grid-template-rows:auto minmax(0,1fr) auto;min-height:100vh;display:grid;position:relative;overflow-x:hidden}.game-shell:before,.game-shell:after{z-index:-1;content:"";pointer-events:none;border-radius:999px;position:fixed}.game-shell:before{background:radial-gradient(circle,#2584db38,#0000 68%);width:340px;height:340px;top:118px;right:-120px}.game-shell:after{background:radial-gradient(circle,#68ca222e,#0000 68%);width:300px;height:300px;bottom:54px;left:-110px}.top-hud,.bottom-controls{color:#f8fbff;background:linear-gradient(90deg,#ffffff14,#0000 22%,#ffffff0d 50%,#0000 70%),linear-gradient(#1d4a7ed1,#04152e4d),linear-gradient(135deg,#092d5c 0%,#061a38 58%,#031126 100%);border-color:#ffffff1a;box-shadow:0 10px 28px #030e1f42}.top-hud{grid-template-columns:minmax(260px,1fr) auto minmax(220px,1fr);align-items:center;gap:18px;min-height:96px;padding:10px 28px;display:grid}.brand{align-items:center;gap:14px;min-width:0;display:flex}.brand-icon{color:#073161;background:linear-gradient(145deg,#ffdc4f,#ff9f19);border-radius:15px;place-items:center;width:54px;height:54px;font-size:1rem;font-weight:950;animation:2.8s ease-in-out infinite brand-bob;display:grid;transform:rotate(-12deg);box-shadow:inset 0 3px 2px #ffffff7a,0 8px #b76009}.brand-title{color:#fff;text-shadow:0 4px #0000002e;white-space:nowrap;font-size:clamp(1.9rem,3vw,3rem);font-weight:900;line-height:1}.brand-title strong{color:#ffd142}.hud-center{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#133764b8;border:1px solid #ffffff1a;border-radius:18px;grid-template-columns:repeat(4,max-content);display:grid;overflow:hidden;box-shadow:inset 0 1px #ffffff24}.hud-tile{color:#dfe9f9;border-right:1px solid #ffffff17;grid-auto-flow:column;align-items:center;gap:9px;min-height:72px;padding:10px 22px;font-size:1.04rem;font-weight:800;display:grid}.hud-tile:last-child{border-right:0}.hud-tile strong{color:#ffe056;text-shadow:0 2px #00000042,0 0 14px #ffd14247;font-size:1.55rem;line-height:1}.hud-label{color:#ecf3ff;font-size:.95rem;font-weight:800}.hud-icon{color:#0a315e;filter:drop-shadow(0 3px 1px #00000040);background:linear-gradient(#e9f7ff,#8cc9ef);border-radius:10px;place-items:center;min-width:34px;height:34px;font-size:.78rem;font-weight:950;display:inline-grid}.hud-progress{grid-template-columns:auto 150px auto}.progress-track{background:#061932;border:3px solid #0000002e;border-radius:999px;height:24px;overflow:hidden;box-shadow:inset 0 2px 7px #00000061}.progress-track span{border-radius:inherit;background:linear-gradient(90deg,#ffffff59,#0000 36%,#ffffff40 68%,#0000) 0 0/220% 100%,linear-gradient(#bafa39,#58c827);height:100%;animation:1.8s linear infinite progress-gloss;display:block;box-shadow:inset 0 2px 3px #ffffff6b}.hud-actions{justify-content:flex-end;gap:12px;display:flex}.hud-actions button,.round-control{color:#f5f8ff;cursor:pointer;background:#113056eb;border:2px solid #ffffff21;border-radius:50%;place-items:center;width:54px;height:54px;font-size:1.55rem;display:grid;box-shadow:inset 0 2px #ffffff1c,0 8px 18px #020a1933}.hud-actions .hud-round.active{background:linear-gradient(#235f9d,#0c315f);border-color:#ffd5489e;box-shadow:inset 0 2px #ffffff29,0 0 18px #ffcc2f3d,0 8px 18px #020a1933}.hud-actions .hud-round:nth-child(2){font-size:.82rem;font-weight:900}.hud-actions .hud-round:nth-child(3){font-size:.72rem;font-weight:950}.game-stage{grid-template-columns:minmax(0,1fr) 286px;gap:16px;min-height:0;padding:22px 32px 18px;display:grid}.board-card,.panel-card{box-shadow:var(--shadow), inset 0 1px 0 #ffffffe6;background:#fffaf0e8;border:2px solid #ffffffe0;border-radius:22px}.board-card{grid-template-rows:auto minmax(0,1fr);gap:10px;min-width:0;min-height:520px;padding:12px;display:grid;position:relative}.board-card:before{content:"";pointer-events:none;background:linear-gradient(135deg,#ffffff61,#0000 38%);border-radius:18px;position:absolute;inset:8px}.board-status{z-index:1;color:#76542a;justify-content:space-between;align-items:center;min-height:34px;padding:2px 6px;font-size:.9rem;font-weight:900;display:flex;position:relative}.board-status strong{color:#7f5313;background:linear-gradient(#fff6d9,#f5c66d);border-radius:999px;place-items:center;min-width:86px;min-height:28px;display:inline-grid;box-shadow:inset 0 1px #fff,0 4px 10px #784a1429}.board-frame{z-index:1;background:linear-gradient(90deg,#061933 0 7%,#0000 7% 93%,#061933 93% 100%),#e9cda0;border-radius:14px;display:grid;position:relative;overflow:hidden;box-shadow:inset 0 0 0 3px #8658222e,0 10px 22px #472f1421}.board-frame.accent-green{background:linear-gradient(135deg,#ead3a6,#b8de78)}.board-frame.accent-blue{background:linear-gradient(135deg,#ead3a6,#83c8ee)}.board-frame.accent-yellow{background:linear-gradient(135deg,#ead3a6,#f4ce62)}.board-frame.accent-red{background:linear-gradient(135deg,#ead3a6,#ee8d7e)}.board-shine{z-index:3;opacity:.55;pointer-events:none;background:linear-gradient(110deg,#0000 0 36%,#ffffff38 45%,#0000 54% 100%);animation:5.2s ease-in-out infinite board-shine;position:absolute;inset:0;transform:translate(-130%)}.board-playfield{z-index:1;grid-template-columns:minmax(82px,110px) minmax(0,1fr) minmax(82px,110px);align-items:center;gap:8px;width:100%;padding:10px;display:grid;position:relative}.side-tray{background:linear-gradient(#ffffff14,#0000 24%,#ffffff0d),linear-gradient(#082c57,#04172e);border:1px solid #ffffff1a;border-radius:13px;align-self:stretch;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff0d,0 8px 18px #020a193d}.side-tray-list{flex-direction:column;align-items:center;gap:14px;min-height:100%;max-height:min(62vh,620px);padding:14px 8px;display:flex;overflow-y:auto}.side-tray-list .tray-piece{flex:none;width:min(100%,86px)}.side-tray-list .pieces-empty{color:#e7efff;min-height:120px;padding:10px;font-size:.82rem}.puzzle-board{grid-template-columns:repeat(var(--cols), 1fr);grid-template-rows:repeat(var(--rows), 1fr);aspect-ratio:4/3;background:var(--board-image) center / 100% 100% no-repeat, var(--cream-light);width:min(100%,1080px);transform:scale(var(--zoom));transform-origin:50%;border-radius:14px;transition:transform .22s;display:grid;position:relative;overflow:hidden;box-shadow:inset 0 0 0 3px #ffffffad,inset 0 0 0 6px #563a182e,0 8px 14px #28190924}.puzzle-board:after{content:none}.cut-line-layer{z-index:4;pointer-events:none;width:100%;height:100%;position:absolute;inset:0;overflow:visible}.cut-line-layer path{fill:none;stroke:#000000ad;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6px;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px #ffffff57)drop-shadow(0 1px 1px #0000001f)}.board-cell{background:0 0;outline:0;position:relative;overflow:visible}.board-cell.empty{z-index:2}.board-cell.placed{z-index:1;background:0 0}.board-cell.empty:after{content:none}.board-cell.success-pop{animation:.52s success-pop}.piece-svg{width:100%;height:100%;display:block;overflow:visible}.board-cell .piece-svg{z-index:1;position:absolute;inset:0}.board-cell .board-piece-svg{width:136%;height:136%;inset:-18%}.piece-image{filter:saturate(1.08)contrast(1.05)}.slot-fill-svg{pointer-events:none}.piece-slot-fill{fill:#a418be}.piece-inner-highlight{fill:none;stroke:#ffffff80;stroke-width:1.55px;vector-effect:non-scaling-stroke}.piece-outline{fill:none;stroke:#0000009e;stroke-linejoin:round;stroke-width:1.3px;vector-effect:non-scaling-stroke}.board-cell.placed .piece-svg{filter:none}.board-cell.placed .piece-outline,.board-cell.placed .piece-inner-highlight{display:none}.tray-piece .piece-svg{filter:drop-shadow(0 8px 7px #3d260c57)drop-shadow(0 1px #ffffff80)}.tray-piece .piece-outline{stroke:#f8fcffb8;stroke-width:1.55px}.board-cell.placed:before{content:none}.side-panel{align-content:start;gap:10px;display:grid}.panel-card{padding:16px;position:relative;overflow:hidden}.panel-card:before{content:"";pointer-events:none;background:linear-gradient(135deg,#ffffff85,#0000 42%);position:absolute;inset:0}.panel-card>*{z-index:1;position:relative}.panel-card h2{color:#3a3229;margin:0;font-size:1.25rem;font-weight:900}.panel-title-row{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.panel-title-row strong{color:#fff;background:linear-gradient(#2e9ce5,#0e5fb4);border-radius:999px;place-items:center;min-width:48px;height:30px;display:grid;box-shadow:inset 0 2px #ffffff59,0 4px 8px #06417b38}.level-card{padding-bottom:14px}.level-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.level-chip{color:#6d4a1d;cursor:pointer;background:linear-gradient(#fff9e8,#f3d8a4);border:2px solid #dcb97cc7;border-radius:12px;gap:4px;min-height:58px;font-weight:950;display:grid;box-shadow:inset 0 1px #ffffffe6,0 5px #9c641c38}.level-chip strong{color:#0b4b8f;font-size:.8rem}.level-chip.active{background:linear-gradient(#fff6c8,#ffc83b);border-color:#ffd341f2;box-shadow:inset 0 1px #fffffff2,0 5px #a667086b,0 0 18px #ffcc2f52}.level-chip.complete{border-color:#6fbe35d9}.level-chip.locked{cursor:not-allowed;filter:grayscale(.35);opacity:.62}.pieces-grid{background:radial-gradient(circle at 18% 18%,#ffffffb3,#0000 9rem),linear-gradient(#fff3d7,#f6dcad);border:2px solid #efd7b3;border-radius:18px;grid-template-columns:repeat(2,minmax(118px,1fr));align-content:start;gap:14px;min-height:300px;max-height:min(48vh,460px);padding:14px;display:grid;overflow-y:auto}.tray-piece{aspect-ratio:1.2;cursor:grab;filter:drop-shadow(0 7px 5px #3d260c5c);background:0 0;border:0;min-width:0;padding:2px;transition:filter .16s,transform .16s;animation:3.2s ease-in-out infinite piece-float}.tray-piece:focus-visible{outline-offset:3px;outline:3px solid #ffcc2fd1}.tray-piece:nth-child(2n){animation-delay:.24s}.tray-piece:nth-child(3n){animation-delay:.42s}.tray-piece:hover,.tray-piece.dragging,.tray-piece.selected{filter:drop-shadow(0 14px 10px #26190b66);transform:scale(1.06)rotate(-1deg)}.tray-piece.selected .piece-svg{filter:drop-shadow(0 12px 10px #26190b66)drop-shadow(0 0 #ffcc2f99)}.tray-piece.selected .piece-outline{stroke:#ffcc2ff0;stroke-width:3px}.tray-piece.dragging{cursor:grabbing;opacity:.72}.action-card{gap:10px;display:grid}.pieces-empty{color:#6a5235;text-align:center;grid-column:1/-1;place-items:center;min-height:170px;font-weight:900;display:grid}.game-button{color:#fff;cursor:pointer;letter-spacing:0;text-shadow:0 2px #00000029;border:0;border-radius:14px;grid-auto-flow:column;justify-content:center;align-items:center;gap:9px;min-height:56px;font-weight:900;transition:transform .16s,filter .16s,box-shadow .16s;display:inline-grid;position:relative;overflow:hidden}.game-button:after{content:"";background:linear-gradient(110deg,#0000 0 38%,#ffffff47 46%,#0000 54% 100%);transition:transform .4s;position:absolute;inset:0;transform:translate(-120%)}.game-button:hover:after{transform:translate(120%)}.button-icon{background:#ffffff2e;border-radius:50%;place-items:center;width:24px;height:24px;font-size:.95rem;line-height:1;display:inline-grid;box-shadow:inset 0 1px #ffffff40}.game-button:disabled{cursor:not-allowed;filter:grayscale(.3)brightness(.88);opacity:.72;transform:none}.action-with-count{grid-template-columns:1fr auto;align-items:center;gap:12px;padding:0 18px;display:grid}.action-with-count>span{justify-content:center;align-items:center;gap:9px;display:inline-flex}.action-with-count strong{color:#9a6713;width:32px;height:32px;text-shadow:none;background:#fff7e3;border-radius:50%;place-items:center;display:grid}.game-button:hover,.hud-actions button:hover,.round-control:hover{filter:brightness(1.06);transform:translateY(-1px)}.game-button:active,.hud-actions button:active,.round-control:active{transform:translateY(2px)}.game-button.green{background:linear-gradient(#78d735,#42b91f);box-shadow:inset 0 2px #ffffff4d,0 6px #21830f}.game-button.yellow{background:linear-gradient(#ffd761,#f2a91e);box-shadow:inset 0 2px #ffffff61,0 6px #b56d08}.game-button.blue{background:linear-gradient(#36a1ee,#166fca);box-shadow:inset 0 2px #ffffff4d,0 6px #0b4b8f}.game-button.red{background:linear-gradient(#ff6b62,#dc3936);box-shadow:inset 0 2px #ffffff47,0 6px #9d1d1e}.game-button.navy{background:linear-gradient(#1b456f,#0b2448);box-shadow:inset 0 2px #ffffff24,0 6px #041224}.preview-card img{aspect-ratio:1200/760;object-fit:cover;border:4px solid #fff;border-radius:12px;width:100%;margin-top:12px;display:block;box-shadow:0 8px 18px #50321026}.bottom-controls{grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;min-height:76px;padding:12px 28px;display:grid}.control-cluster{align-items:center;gap:12px;display:flex}.control-cluster:last-child{justify-content:flex-end}.center-controls{color:#e6eefb;justify-content:center;min-width:410px;font-weight:800}.snap-toggle{color:#e6eefb;cursor:pointer;background:#133054eb;border:0;border-radius:999px;align-items:center;gap:9px;min-height:42px;padding:6px 12px 6px 7px;font-weight:900;display:inline-flex;box-shadow:inset 0 2px #ffffff1f,0 5px 12px #020a1933}.snap-dot{background:#12365f;border-radius:999px;width:54px;height:30px;position:relative;box-shadow:inset 0 2px 7px #00000057}.snap-dot:after{content:"";background:linear-gradient(#fff,#e6e1d3);border-radius:50%;width:24px;height:24px;transition:transform .18s;position:absolute;top:3px;left:4px;box-shadow:0 3px 6px #0000003d}.snap-toggle.active .snap-dot{background:linear-gradient(#8deb42,#4dbd25)}.snap-toggle.active .snap-dot:after{transform:translate(22px)}.bottom-controls .game-button{min-width:150px;min-height:52px}.zoom-label{white-space:nowrap}.round-control{border-radius:10px;width:38px;height:38px;font-size:1.4rem}.modal-backdrop{z-index:20;background:#020a19a3;place-items:center;display:grid;position:fixed;inset:0}.confetti{pointer-events:none;position:absolute;inset:0;overflow:hidden}.confetti span{border-radius:5px;width:15px;height:28px;animation:1.8s ease-in infinite confetti-fall;position:absolute;top:-32px}.confetti span:first-child{background:var(--yellow);animation-delay:0s;left:12%}.confetti span:nth-child(2){background:var(--green);animation-delay:.18s;left:28%}.confetti span:nth-child(3){background:var(--blue);animation-delay:80ms;left:45%}.confetti span:nth-child(4){background:var(--red);animation-delay:.26s;left:62%}.confetti span:nth-child(5){background:#fff;animation-delay:.12s;left:76%}.confetti span:nth-child(6){background:#ff9f19;animation-delay:.32s;left:88%}.completion-modal{text-align:center;background:linear-gradient(#fff8e7,#ffe1a8);border:3px solid #fff7dc;border-radius:24px;width:min(420px,100vw - 32px);padding:34px;animation:.42s cubic-bezier(.2,1.2,.2,1) modal-pop;box-shadow:0 30px 80px #00000059}.completion-modal h2{color:#082449;margin:0 0 18px;font-size:2.2rem}.complete-stats{gap:10px;margin:18px 0 24px;display:grid}.complete-level{color:#7d5520;margin:-8px 0 0;font-weight:950}.complete-actions{grid-template-columns:1fr 1fr;gap:12px;display:grid}.complete-stats p{color:#70502a;background:#ffffff94;border-radius:14px;justify-content:space-between;align-items:center;margin:0;padding:12px 14px;font-weight:900;display:flex;box-shadow:inset 0 1px #fffc}.complete-stats strong{color:var(--navy)}.game-shell.complete .top-hud,.game-shell.complete .bottom-controls{animation:1.2s ease-in-out infinite alternate clear-glow}@keyframes success-pop{0%{transform:scale(.96)}45%{filter:brightness(1.12);transform:scale(1.045)}to{transform:scale(1)}}@keyframes brand-bob{0%,to{transform:rotate(-12deg)translateY(0)}50%{transform:rotate(-7deg)translateY(-4px)}}@keyframes progress-gloss{0%{background-position:220% 0,0 0}to{background-position:-120% 0,0 0}}@keyframes board-shine{0%,48%{transform:translate(-130%)}78%,to{transform:translate(130%)}}@keyframes empty-breathe{0%,to{transform:scale(1)}50%{transform:scale(.975)}}@keyframes piece-float{0%,to{translate:0}50%{translate:0 -3px}}@keyframes modal-pop{0%{opacity:0;transform:scale(.88)translateY(16px)}to{opacity:1;transform:scale(1)translateY(0)}}@keyframes clear-glow{0%{box-shadow:0 10px 28px #030e1f42}to{box-shadow:0 10px 28px #030e1f42,0 0 24px #ffcc2f3d}}@keyframes confetti-fall{0%{opacity:0;transform:translateY(0)rotate(0)}14%{opacity:1}to{opacity:0;transform:translateY(100vh)rotate(360deg)}}@media (width<=1180px){.top-hud{grid-template-columns:1fr}.hud-center{grid-template-columns:repeat(2,minmax(0,1fr))}.hud-actions{justify-content:flex-start}.game-stage{grid-template-columns:1fr}.side-panel{grid-template-columns:1fr 1fr}.bottom-controls{grid-template-columns:1fr}.control-cluster,.control-cluster:last-child,.center-controls{flex-wrap:wrap;justify-content:center;min-width:0}}@media (width<=760px){.top-hud{grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;min-height:0;padding:8px 10px}.brand{gap:8px}.brand-icon{border-radius:11px;width:38px;height:38px;font-size:.72rem;box-shadow:inset 0 2px 1px #ffffff70,0 5px #b76009}.brand-title{font-size:clamp(1.35rem,7vw,1.75rem)}.hud-center{border-radius:13px;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}.hud-tile,.hud-progress{grid-template-columns:auto 1fr auto;gap:5px;min-height:38px;padding:6px 8px;font-size:.78rem}.hud-tile:nth-child(2),.hud-tile:nth-child(4){border-right:0}.hud-tile strong{font-size:.98rem}.hud-icon{border-radius:7px;min-width:24px;height:24px;font-size:.58rem}.hud-label{font-size:.72rem}.hud-progress{grid-column:1/-1}.progress-track{border-width:2px;height:16px}.hud-actions{justify-content:flex-end;align-self:start;gap:6px}.hud-actions button,.round-control{width:38px;height:38px;font-size:1rem}.game-stage{gap:8px;padding:8px}.board-card{border-radius:18px;min-height:0;padding:8px}.board-status{min-height:26px;font-size:.78rem}.board-status strong{min-width:72px;min-height:24px;font-size:.72rem}.puzzle-board{border-radius:12px;width:100%}.board-playfield{grid-template-columns:1fr;gap:8px;padding:7px}.puzzle-board{order:1}.side-tray{border-radius:12px}.side-tray-left{order:2}.side-tray-right{order:3}.side-tray-list{flex-direction:row;gap:10px;min-height:0;max-height:none;padding:8px 10px;display:flex;overflow:auto hidden}.side-tray-list .tray-piece{width:78px}.side-tray-list .pieces-empty{white-space:nowrap;min-height:54px}.side-panel{grid-template-columns:1fr;gap:8px}.preview-card{order:1;grid-template-columns:1fr 112px;align-items:center;gap:10px;padding:10px;display:grid}.preview-card h2{font-size:1rem}.preview-card img{border-width:3px;border-radius:10px;margin-top:0}.action-card{order:3;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px}.action-card .game-button{border-radius:12px;min-height:46px;font-size:.82rem}.action-with-count{grid-template-columns:1fr;gap:2px;padding:0 8px}.action-with-count strong{justify-self:center;width:22px;height:22px;font-size:.75rem}.level-card{order:4;padding:10px}.level-card .panel-title-row{margin-bottom:8px}.level-grid{scroll-snap-type:x proximity;gap:8px;padding-bottom:4px;display:flex;overflow-x:auto}.level-chip{scroll-snap-align:start;border-radius:11px;min-width:86px;min-height:48px;font-size:.78rem}.panel-card{border-radius:18px;padding:12px}.panel-card h2{font-size:1.05rem}.panel-title-row{margin-bottom:8px}.pieces-grid{border-radius:14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-height:0;max-height:238px;padding:10px}.bottom-controls{z-index:12;gap:8px;min-height:0;padding:8px;position:sticky;bottom:0}.bottom-controls .game-button{min-width:0;min-height:44px;padding-inline:12px;font-size:.82rem}.control-cluster,.center-controls{gap:8px}.snap-toggle{min-height:36px;padding:5px 9px 5px 6px;font-size:.8rem}.snap-dot{width:44px;height:25px}.snap-dot:after{width:19px;height:19px}.snap-toggle.active .snap-dot:after{transform:translate(18px)}.zoom-label{font-size:.82rem}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
