.gx-2048{isolation:isolate;width:100%;max-width:960px;margin:20px auto;color:#f7f1de;font:14px/1.4 system-ui,sans-serif}.gx-2048 *{box-sizing:border-box}.gx-2048 [hidden]{display:none!important}.gx-2048 button,.gx-2048 select{font:inherit;color:inherit;min-width:44px;min-height:44px;touch-action:manipulation;cursor:pointer;border:1px solid #a89c75;border-radius:5px;background:linear-gradient(#4a5261,#273244);padding:8px 12px}.gx-2048 button:hover{border-color:#ffdc91}.gx-2048 button:focus-visible,.gx-2048 select:focus-visible{outline:3px solid #ffdf80;outline-offset:2px;z-index:2}.gx-2048 button:disabled{cursor:default;opacity:.6}.gx-2048 p{margin:0}.gx-2048 .f8-shell{position:relative;padding:14px;border:1px solid #a79870;border-radius:10px;background:linear-gradient(135deg,#344154,#162336 65%,#454235);box-shadow:0 8px 28px #102a3e44;overflow:hidden}.gx-2048 .f8-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.gx-2048 .f8-brand small{display:block;font-size:8px;letter-spacing:.12em;color:#c7d7df}.gx-2048 .f8-brand strong{display:block;font-size:29px;letter-spacing:.02em;line-height:1.1;color:#ffdda1;font-weight:950}.gx-2048 .f8-tools{display:flex;gap:5px}.gx-2048 .f8-tools button{font-size:11px;padding:6px 8px}.gx-2048 .f8-hud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:9px}.gx-2048 .f8-hud>div{min-width:0;padding:6px 9px;background:#122034;border:1px solid #8b8f69;border-radius:4px}.gx-2048 .f8-hud span{display:block;font-size:10px;color:#c6d7e0}.gx-2048 .f8-hud strong{display:block;font-size:23px;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap;color:#fff0cb}.gx-2048 .f8-stage{position:relative;height:540px;min-height:0}.gx-2048 .f8-play{height:100%;display:flex;flex-direction:column;gap:6px}.gx-2048 .f8-contract{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:70px;padding:6px 12px;background:linear-gradient(110deg,#f7e8c7,#c9d5d2);border:1px solid #fcf4de;border-radius:5px;color:#1b3546;box-shadow:0 3px #092639}.gx-2048 .f8-order small{display:block;font-size:10px;letter-spacing:.12em}.gx-2048 .f8-order strong{font-size:17px;font-weight:900}.gx-2048 .f8-target{width:58px;height:58px;flex-shrink:0;background:#183951;border:2px solid #eff5e4;border-radius:5px;padding:3px}.gx-2048 .f8-token{display:block;width:100%;height:100%;position:relative;pointer-events:none}.gx-2048 .f8-token svg{width:100%;height:100%;display:block;filter:drop-shadow(0 2px 1px #091b2d88)}.gx-2048 .f8-token b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:950 35px/1 system-ui,sans-serif;color:#19352d;text-shadow:0 1px #fff7;transform:none}.gx-2048 .f8-target .f8-token b{font-size:28px}.gx-2048 .f8-bay{position:relative;flex:1;min-height:260px;container-type:size;overflow:hidden;border:1px solid #aa9a72;border-radius:6px;background:#102d29}.gx-2048 .f8-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}.gx-2048 .f8-grid{display:grid;grid-template-columns:repeat(var(--cols,4),minmax(0,1fr));gap:5px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(calc(100cqw - 20px),calc(100cqh - 20px),460px);aspect-ratio:1}.gx-2048 .f8-cell{display:block;min-width:44px;min-height:44px;width:100%;height:100%;padding:7px;border:2px solid #8d9e9c;border-radius:4px;background:linear-gradient(135deg,#5c7180,#293e52);box-shadow:inset 0 2px #a7b8bc,0 3px #082438;transition:opacity .12s,border-color .1s}.gx-2048 .f8-cell:disabled{opacity:1}.gx-2048 .f8-cell.is-dim{opacity:.24}.gx-2048 .f8-cell.is-correct{border-color:#8effc5;background:#1a6d57;box-shadow:inset 0 0 0 3px #c7ffe7,0 0 16px #5fffaa77}.gx-2048 .f8-cell.is-wrong{border-color:#ff9b9b;background:#743744;box-shadow:inset 0 0 0 3px #ffc2c2}.gx-2048 .f8-message{font-size:11px;min-height:17px;color:#ffe5ba;text-align:center}.gx-2048 .f8-controls{margin:8px 0;display:flex;align-items:center;gap:10px}.gx-2048 .f8-controls button{min-width:150px;background:linear-gradient(#efc177,#c0873c);color:#152e43;border-color:#ffe6b2;font-weight:900}.gx-2048 .f8-combo{font-size:15px;color:#ffda89}.gx-2048 .f8-footer{display:flex;justify-content:space-between;gap:5px;font-size:10px;color:#c4d6df}.gx-2048 .f8-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.gx-2048 .f8-panel{position:absolute;inset:4px;z-index:5;display:flex;flex-direction:column;justify-content:center;gap:9px;padding:20px;overflow:auto;overscroll-behavior:contain;background:linear-gradient(145deg,#3b6659fa,#18293dfc 70%,#3d4448fb);border:1px solid #a4b5b9;border-radius:7px;box-shadow:0 7px 20px #0006}.gx-2048 .f8-panel>*{flex-shrink:0}.gx-2048 .f8-eyebrow{text-align:center;font-size:10px;letter-spacing:.14em;color:#d4e2e3}.gx-2048 h2.f8-title{font:900 25px/1.3 system-ui,sans-serif;color:#ffe5ad!important;text-align:center;background:none!important;border:0!important;padding:0!important;margin:0!important;box-shadow:none!important}.gx-2048 .f8-title:before,.gx-2048 .f8-title:after{content:none!important;display:none!important}.gx-2048 .f8-note,.gx-2048 .f8-item-guide{text-align:center;color:#e1e9e8;font-size:12px}.gx-2048 .f8-modes,.gx-2048 .f8-upgrades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.gx-2048 .f8-modes button,.gx-2048 .f8-upgrades button{display:block;text-align:center;min-width:0;padding:10px 5px}.gx-2048 .f8-modes strong,.gx-2048 .f8-upgrades strong{font-size:14px;display:block;white-space:nowrap}.gx-2048 .f8-modes span,.gx-2048 .f8-upgrades span{font-size:11px;display:block;color:#d4e0e4;margin-top:5px}.gx-2048 .f8-modes button[aria-pressed=true]{border-color:#ffdf9d;background:#6a5c43;box-shadow:inset 0 -3px #ffdf9d}.gx-2048 .f8-difficulty{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:13px}.gx-2048 select{width:65%;background:#163b34}.gx-2048 .f8-primary{background:linear-gradient(#ffe0a4,#d5a155);color:#203445;min-height:47px;font-size:17px;font-weight:900;border-color:#ffecbd;box-shadow:0 3px #765b3c}.gx-2048 .f8-primary:hover{background:#ffe4b1}.gx-2048 .f8-secondary{font-size:12px}.gx-2048 .f8-points{display:flex;flex-direction:column;align-items:center;color:#ffe2a3;gap:1px}.gx-2048 .f8-points strong{font-size:48px;font-variant-numeric:tabular-nums;font-weight:950;line-height:1}.gx-2048 .f8-points span{font-size:10px;letter-spacing:.13em}.gx-2048 .f8-result-stats{display:grid;grid-template-columns:1fr 1fr;gap:5px}.gx-2048 .f8-result-stats>div{min-width:0;background:#122237ba;border:1px solid #7993a0;border-radius:4px;padding:7px;display:flex;flex-direction:column;gap:1px}.gx-2048 .f8-result-stats span{font-size:10px;color:#cfdde1}.gx-2048 .f8-result-stats strong{font-size:18px;color:#fff1cd;white-space:nowrap}.gx-2048 .f8-record-note{text-align:center;font-size:11px;color:#ffe2a0;min-height:15px}.gx-2048 .f8-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.gx-2048 .f8-actions button{font-size:13px}.gx-2048 .f8-panel-back{display:none}
.gx-2048 .f8-shell:fullscreen,.gx-2048 .f8-expanded{width:100vw;height:100dvh;max-width:none;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:5px;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border:0;border-radius:0;background:#192b40}.gx-2048 .f8-expanded{position:fixed;inset:0;z-index:2147483000}.gx-2048 .f8-shell:fullscreen .f8-head,.gx-2048 .f8-expanded .f8-head,.gx-2048 .f8-shell:fullscreen .f8-hud,.gx-2048 .f8-expanded .f8-hud,.gx-2048 .f8-shell:fullscreen .f8-controls,.gx-2048 .f8-expanded .f8-controls{margin:0}.gx-2048 .f8-shell:fullscreen .f8-stage,.gx-2048 .f8-expanded .f8-stage{height:auto;min-height:0}.gx-2048 .f8-shell:fullscreen .f8-bay,.gx-2048 .f8-expanded .f8-bay{min-height:0}.gx-2048 .f8-shell:fullscreen .f8-stage:has(.f8-panel:not([hidden])),.gx-2048 .f8-expanded .f8-stage:has(.f8-panel:not([hidden])){position:static}.gx-2048 .f8-shell:fullscreen .f8-panel,.gx-2048 .f8-expanded .f8-panel{inset:8px;max-width:620px;height:max-content;max-height:calc(100% - 16px);margin:auto;padding:15px;gap:9px}.gx-2048 .f8-shell:fullscreen .f8-panel-back,.gx-2048 .f8-expanded .f8-panel-back{display:block;position:absolute;top:6px;right:6px;min-width:44px;min-height:44px;font-size:11px;padding:4px;z-index:2}.gx-2048 .f8-shell:fullscreen h2.f8-title,.gx-2048 .f8-expanded h2.f8-title{padding-inline:45px!important;min-height:44px;display:flex;align-items:center;justify-content:center}.gx-2048.f8-portal{position:fixed;inset:0;z-index:2147483000;width:100vw;height:100dvh;max-width:none;margin:0;isolation:isolate}
@media(max-width:480px){.gx-2048 .f8-shell{padding:8px}.gx-2048 .f8-head{gap:4px}.gx-2048 .f8-brand strong{font-size:21px}.gx-2048 .f8-brand small{font-size:6px;letter-spacing:0}.gx-2048 .f8-tools{gap:3px}.gx-2048 .f8-tools button{font-size:9px;padding:4px}.gx-2048 .f8-hud{gap:4px}.gx-2048 .f8-hud>div{padding:5px}.gx-2048 .f8-hud strong{font-size:17px}.gx-2048 .f8-hud span{font-size:9px}.gx-2048 .f8-stage{height:480px}.gx-2048 .f8-panel{padding:13px;gap:9px}.gx-2048 h2.f8-title{font-size:21px}.gx-2048 .f8-modes,.gx-2048 .f8-upgrades{grid-template-columns:1fr;gap:5px}.gx-2048 .f8-modes button,.gx-2048 .f8-upgrades button{min-height:44px;display:flex;align-items:center;justify-content:space-between;padding:6px 10px}.gx-2048 .f8-modes strong,.gx-2048 .f8-upgrades strong{font-size:14px}.gx-2048 .f8-modes span,.gx-2048 .f8-upgrades span{margin:0;font-size:10px}.gx-2048 .f8-note,.gx-2048 .f8-item-guide{font-size:11px}.gx-2048 .f8-order strong{font-size:14px}.gx-2048 .f8-cell{padding:5px}.gx-2048 .f8-cell .f8-token b{font-size:24px}.gx-2048 .f8-controls button{min-width:134px}.gx-2048 .f8-combo{font-size:12px}.gx-2048 .f8-footer{font-size:9px}.gx-2048 .f8-result-stats strong{font-size:16px}}
@media(max-width:359px){.gx-2048 .f8-brand strong{font-size:17px}.gx-2048 .f8-brand small{font-size:5px}.gx-2048 .f8-hud strong{font-size:15px}.gx-2048 .f8-hud>div{padding:4px}.gx-2048 .f8-contract{padding:5px 8px;gap:5px}.gx-2048 .f8-order strong{font-size:12px}.gx-2048 .f8-grid{gap:4px}.gx-2048 .f8-cell{padding:4px}.gx-2048 .f8-cell .f8-token b{font-size:21px}.gx-2048 h2.f8-title{font-size:19px}}
@media(max-height:500px) and (orientation:landscape){.gx-2048 .f8-shell:fullscreen,.gx-2048 .f8-expanded{grid-template-columns:minmax(215px,.75fr) minmax(0,1.25fr);grid-template-rows:auto auto auto minmax(44px,1fr) auto;gap:5px}.gx-2048 .f8-shell:fullscreen .f8-head,.gx-2048 .f8-expanded .f8-head{grid-column:1;grid-row:1;display:block}.gx-2048 .f8-shell:fullscreen .f8-brand small,.gx-2048 .f8-expanded .f8-brand small{display:none}.gx-2048 .f8-shell:fullscreen .f8-brand strong,.gx-2048 .f8-expanded .f8-brand strong{font-size:20px}.gx-2048 .f8-shell:fullscreen .f8-tools,.gx-2048 .f8-expanded .f8-tools{margin-top:3px}.gx-2048 .f8-shell:fullscreen .f8-hud,.gx-2048 .f8-expanded .f8-hud{grid-column:1;grid-row:2;gap:3px}.gx-2048 .f8-shell:fullscreen .f8-hud>div,.gx-2048 .f8-expanded .f8-hud>div{padding:3px}.gx-2048 .f8-shell:fullscreen .f8-hud strong,.gx-2048 .f8-expanded .f8-hud strong{font-size:13px}.gx-2048 .f8-shell:fullscreen .f8-hud span,.gx-2048 .f8-expanded .f8-hud span{font-size:8px}.gx-2048 .f8-shell:fullscreen .f8-stage,.gx-2048 .f8-expanded .f8-stage,.gx-2048 .f8-shell:fullscreen .f8-play,.gx-2048 .f8-expanded .f8-play{display:contents}.gx-2048 .f8-shell:fullscreen .f8-contract,.gx-2048 .f8-expanded .f8-contract{grid-column:1;grid-row:3;min-height:66px;padding:4px 6px}.gx-2048 .f8-shell:fullscreen .f8-order strong,.gx-2048 .f8-expanded .f8-order strong{font-size:12px}.gx-2048 .f8-shell:fullscreen .f8-bay,.gx-2048 .f8-expanded .f8-bay{grid-column:2;grid-row:1/-1;min-width:0}.gx-2048 .f8-shell:fullscreen .f8-controls,.gx-2048 .f8-expanded .f8-controls{grid-column:1;grid-row:4;display:flex;gap:5px}.gx-2048 .f8-shell:fullscreen .f8-controls button,.gx-2048 .f8-expanded .f8-controls button{min-width:120px;font-size:12px;padding:5px}.gx-2048 .f8-shell:fullscreen .f8-combo,.gx-2048 .f8-expanded .f8-combo{font-size:9px}.gx-2048 .f8-shell:fullscreen .f8-footer,.gx-2048 .f8-expanded .f8-footer{grid-column:1;grid-row:5;font-size:8px}.gx-2048 .f8-shell:fullscreen .f8-message,.gx-2048 .f8-expanded .f8-message{display:none}.gx-2048 .f8-shell:fullscreen .f8-panel,.gx-2048 .f8-expanded .f8-panel{max-width:620px;gap:6px;padding:12px}.gx-2048 .f8-shell:fullscreen .f8-eyebrow,.gx-2048 .f8-expanded .f8-eyebrow,.gx-2048 .f8-shell:fullscreen .f8-item-guide,.gx-2048 .f8-expanded .f8-item-guide{display:none}.gx-2048 .f8-shell:fullscreen .f8-modes,.gx-2048 .f8-expanded .f8-modes,.gx-2048 .f8-shell:fullscreen .f8-upgrades,.gx-2048 .f8-expanded .f8-upgrades{grid-template-columns:repeat(3,minmax(0,1fr))}.gx-2048 .f8-shell:fullscreen .f8-modes button,.gx-2048 .f8-expanded .f8-modes button,.gx-2048 .f8-shell:fullscreen .f8-upgrades button,.gx-2048 .f8-expanded .f8-upgrades button{display:block;min-height:44px;padding:4px}.gx-2048 .f8-shell:fullscreen .f8-modes span,.gx-2048 .f8-expanded .f8-modes span{display:none}.gx-2048 .f8-shell:fullscreen .f8-upgrades span,.gx-2048 .f8-expanded .f8-upgrades span{font-size:10px}.gx-2048 .f8-shell:fullscreen h2.f8-title,.gx-2048 .f8-expanded h2.f8-title{font-size:19px}.gx-2048 .f8-shell:fullscreen .f8-panel[data-kind=result],.gx-2048 .f8-expanded .f8-panel[data-kind=result]{display:grid;grid-template-columns:1fr 1fr;gap:6px}.gx-2048 .f8-panel[data-kind=result] .f8-title{grid-column:1;grid-row:1;padding-inline:0!important}.gx-2048 .f8-panel[data-kind=result] .f8-points{grid-column:2;grid-row:1;padding-right:40px}.gx-2048 .f8-panel[data-kind=result] .f8-points strong{font-size:32px}.gx-2048 .f8-panel[data-kind=result] .f8-result-stats{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr))}.gx-2048 .f8-panel[data-kind=result] .f8-result-stats strong{font-size:14px}.gx-2048 .f8-panel[data-kind=result] .f8-record-note,.gx-2048 .f8-panel[data-kind=result] .f8-actions{grid-column:1/-1}.gx-2048 .f8-cell .f8-token b{font-size:25px}}
@media(prefers-reduced-motion:reduce){.gx-2048 *{animation:none!important;transition:none!important}}


.gx-2048 .f8-contract{background:linear-gradient(110deg,#f2e9d5,#d7bc92);color:#2b3340}.gx-2048 .f8-target{width:60px;height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#28364a;color:#fff0d1;border-color:#eac487}.gx-2048 .f8-target small{font-size:9px;letter-spacing:.1em}.gx-2048 .f8-target strong{font-size:27px;line-height:1}.gx-2048 .f8-bay{background:#17283a}.gx-2048 .f8-canvas{pointer-events:auto;touch-action:none}.gx-2048 .f8-grid{gap:8px;width:min(calc(100cqw - 24px),calc(100cqh - 24px),480px);grid-template-rows:repeat(var(--cols,4),minmax(0,1fr));pointer-events:none}.gx-2048 .f8-cell{background:transparent!important;box-shadow:none!important;border:0;min-width:0;min-height:0;opacity:0!important;padding:0;transition:none}.gx-2048 .f8-grid.is-armed{pointer-events:auto}.gx-2048 .f8-grid.is-armed .f8-cell:not(:disabled){opacity:1!important;border:3px dashed #fff1ac;background:#ec9a3e22!important;cursor:crosshair}.gx-2048 .f8-grid.is-armed .f8-cell:focus-visible{outline:3px solid #fff;outline-offset:0}.gx-2048 .f8-controls{display:flex;justify-content:space-between;gap:8px;align-items:center}.gx-2048 .f8-pad{display:grid;grid-template-columns:repeat(4,44px);gap:5px}.gx-2048 .f8-controls button{min-width:44px;font-size:12px;padding:5px}.gx-2048 .f8-inventory{display:flex;gap:5px}.gx-2048 .f8-inventory button{min-width:88px;background:linear-gradient(#425068,#253449);color:#fff0d2}.gx-2048 .f8-inventory button[aria-pressed=true]{background:#b96b37;border-color:#ffe69d}.gx-2048 .f8-brand strong{font-size:25px;letter-spacing:.02em}.gx-2048 .f8-hud strong{font-size:21px}.gx-2048 .f8-hud strong.is-urgent{color:#ffb48b}.gx-2048 .f8-panel{background:linear-gradient(145deg,#3b4c61,#15273a 75%,#5d4734)}.gx-2048 .f8-modes button[aria-pressed=true]{background:#705039}.gx-2048 select{background:#25364b}.gx-2048 .f8-canvas:focus-visible{outline:2px solid #e4bc78;outline-offset:-3px}
@media(max-width:600px){.gx-2048 .f8-controls{flex-direction:column;align-items:stretch;gap:5px}.gx-2048 .f8-pad{grid-template-columns:repeat(4,1fr)}.gx-2048 .f8-inventory{display:flex}.gx-2048 .f8-inventory button{flex:1}.gx-2048 .f8-brand strong{font-size:18px}.gx-2048 .f8-hud strong{font-size:16px}}
@media(max-width:359px){.gx-2048 .f8-brand strong{font-size:14px}.gx-2048 .f8-hud strong{font-size:14px}.gx-2048 .f8-order strong{font-size:13px}}
@media(max-width:600px) and (orientation:portrait){.gx-2048 .f8-shell:fullscreen .f8-controls,.gx-2048 .f8-expanded .f8-controls{display:grid;grid-template-columns:repeat(6,minmax(44px,1fr));gap:4px}.gx-2048 .f8-shell:fullscreen .f8-pad,.gx-2048 .f8-expanded .f8-pad,.gx-2048 .f8-shell:fullscreen .f8-inventory,.gx-2048 .f8-expanded .f8-inventory{display:contents}.gx-2048 .f8-shell:fullscreen .f8-inventory button,.gx-2048 .f8-expanded .f8-inventory button{min-width:44px;font-size:10px;padding:3px}.gx-2048 .f8-shell:fullscreen .f8-contract,.gx-2048 .f8-expanded .f8-contract{min-height:56px}.gx-2048 .f8-shell:fullscreen .f8-target,.gx-2048 .f8-expanded .f8-target{height:44px}}
@media(max-height:500px) and (orientation:landscape){.gx-2048 .f8-shell:fullscreen .f8-brand strong,.gx-2048 .f8-expanded .f8-brand strong{font-size:17px}.gx-2048 .f8-shell:fullscreen .f8-controls,.gx-2048 .f8-expanded .f8-controls{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:4px}.gx-2048 .f8-shell:fullscreen .f8-controls button,.gx-2048 .f8-expanded .f8-controls button{min-width:44px;min-height:44px;font-size:11px;padding:3px}.gx-2048 .f8-shell:fullscreen .f8-pad,.gx-2048 .f8-expanded .f8-pad{grid-template-columns:repeat(4,1fr);gap:3px}.gx-2048 .f8-shell:fullscreen .f8-inventory button,.gx-2048 .f8-expanded .f8-inventory button{min-width:0}.gx-2048 .f8-shell:fullscreen .f8-hud strong,.gx-2048 .f8-expanded .f8-hud strong{font-size:12px}.gx-2048 .f8-shell:fullscreen .f8-contract,.gx-2048 .f8-expanded .f8-contract{min-height:54px}.gx-2048 .f8-shell:fullscreen .f8-target,.gx-2048 .f8-expanded .f8-target{height:46px;width:46px}.gx-2048 .f8-shell:fullscreen .f8-target strong,.gx-2048 .f8-expanded .f8-target strong{font-size:20px}}
