.staged-loading{--staged-loading-fg: var(--app-text, #776e65);--staged-loading-muted: var(--app-text-muted, #8e857a);--staged-loading-bar: var(--app-surface-soft, #eee4da);--staged-loading-shine: var(--app-surface-light, #f9f6f2);--staged-loading-card: var(--app-surface-popover, #fffdfa);--staged-loading-border: var(--app-border-structure, rgba(143, 122, 102, .26));--staged-loading-action: var(--app-action-bg, #8f7a66);--staged-loading-action-fg: var(--app-text-on-action, #f9f6f2);--staged-loading-tile: 46px;--staged-loading-tile-gap: 7px;position:relative;width:100%;grid-column:1 / -1;color:var(--staged-loading-fg);font-family:var(--app-font-sans, "Clear Sans", "Helvetica Neue", Arial, sans-serif)}.staged-loading:has(>.staged-loading__card)[data-stage=animated],.staged-loading:has(>.staged-loading__card)[data-stage=slow]{min-height:300px}.staged-loading__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.staged-loading__skeleton{display:grid;gap:10px;padding:12px 0;opacity:0;transition:opacity .3s ease}.staged-loading:not([data-stage=pending]) .staged-loading__skeleton{opacity:1}.staged-loading:has(>.staged-loading__card)[data-stage=animated] .staged-loading__skeleton,.staged-loading:has(>.staged-loading__card)[data-stage=slow] .staged-loading__skeleton{opacity:.35}.staged-loading__row{display:flex;align-items:center;gap:14px;min-height:44px;padding:0 12px}.staged-loading__bar{display:block;height:12px;width:70%;border-radius:6px;background:linear-gradient(90deg,var(--staged-loading-bar) 0%,var(--staged-loading-shine) 45%,var(--staged-loading-bar) 90%);background-size:220% 100%;animation:staged-loading-shimmer 1.4s ease-in-out infinite}.staged-loading__bar--dot{flex:0 0 28px;width:28px;height:28px;border-radius:var(--app-radius-tile, 3px)}.staged-loading__bar--grow{flex:1 1 auto}.staged-loading__bar--end{flex:0 0 64px;width:64px}.staged-loading__bar--wide{width:92%;height:16px}.staged-loading__bar--short{width:46%}.staged-loading__card{position:absolute;inset:50% auto auto 50%;display:none;width:min(340px,calc(100% - 24px));box-sizing:border-box;padding:22px 20px 18px;border:1px solid var(--staged-loading-border);border-radius:16px;background:var(--staged-loading-card);box-shadow:0 18px 44px #776e6533,inset 0 1px #fff9;color:var(--staged-loading-fg);font-family:var(--app-font-sans, "Clear Sans", "Helvetica Neue", Arial, sans-serif);text-align:center;transform:translate(-50%,-50%)}.staged-loading[data-stage=animated] .staged-loading__card,.staged-loading[data-stage=slow] .staged-loading__card{display:block;animation:staged-loading-card-in .5s cubic-bezier(.22,1.3,.36,1) both}.staged-loading-overlay{--staged-loading-fg: var(--app-text, #776e65);--staged-loading-muted: var(--app-text-muted, #8e857a);--staged-loading-border: var(--app-border-structure, rgba(143, 122, 102, .26));--staged-loading-action: var(--app-action-bg, #8f7a66);--staged-loading-action-fg: var(--app-text-on-action, #f9f6f2);--staged-loading-veil: rgba(250, 248, 239, .5);--staged-loading-halo: rgba(250, 248, 239, .9);--staged-loading-tile: 58px;--staged-loading-tile-gap: 9px;position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--staged-loading-veil);opacity:0;visibility:hidden;-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0);transition:opacity .45s ease,visibility 0s linear .45s,backdrop-filter .6s ease,-webkit-backdrop-filter .6s ease}html[data-night-background="1"] .staged-loading-overlay{--staged-loading-veil: rgba(6, 10, 18, .5);--staged-loading-halo: rgba(6, 10, 18, .85)}.staged-loading-overlay[data-stage=animated],.staged-loading-overlay[data-stage=slow]{opacity:1;visibility:visible;-webkit-backdrop-filter:blur(10px) saturate(1.2);backdrop-filter:blur(10px) saturate(1.2);transition:opacity .45s ease,visibility 0s,backdrop-filter .6s ease,-webkit-backdrop-filter .6s ease}.staged-loading-overlay .staged-loading__card{position:relative;inset:auto;display:block;width:min(380px,100%);padding:0;border:0;background:transparent;box-shadow:none;transform:none}.staged-loading-overlay .staged-loading__stage{margin-bottom:26px}.staged-loading-overlay .staged-loading__board{border-radius:14px;box-shadow:0 26px 56px #776e654d,0 6px 14px #776e6529}.staged-loading-overlay .staged-loading__cell,.staged-loading-overlay .staged-loading__face{border-radius:7px}.staged-loading-overlay .staged-loading__title{font-size:17px}.staged-loading-overlay .staged-loading__title,.staged-loading-overlay .staged-loading__hint,.staged-loading-overlay .staged-loading__tip{text-shadow:0 0 10px var(--staged-loading-halo),0 0 2px var(--staged-loading-halo)}.staged-loading-overlay .staged-loading__hint,.staged-loading-overlay .staged-loading__tip{font-size:14px}.staged-loading-overlay[data-stage=animated] .staged-loading__card,.staged-loading-overlay[data-stage=slow] .staged-loading__card{animation:staged-loading-pop-in .6s cubic-bezier(.22,1.3,.36,1) both}.staged-loading-overlay.is-leaving{opacity:0;pointer-events:none;-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0);transition:opacity .26s ease,backdrop-filter .26s ease,-webkit-backdrop-filter .26s ease}.staged-loading-overlay.is-leaving .staged-loading__card{animation:staged-loading-pop-out .26s ease-in both}.staged-loading__stage{display:flex;justify-content:center;margin:0 auto 18px;animation:staged-loading-float 3.6s ease-in-out infinite}.staged-loading__board{--staged-loading-step: calc(var(--staged-loading-tile) + var(--staged-loading-tile-gap));position:relative;width:calc(var(--staged-loading-tile) * 3 + var(--staged-loading-tile-gap) * 4);height:calc(var(--staged-loading-tile) * 3 + var(--staged-loading-tile-gap) * 4);border-radius:12px;background:#bbada0;box-shadow:0 14px 30px #776e653d,inset 0 1px #ffffff1f}.staged-loading__board.is-nudge{animation:staged-loading-nudge .46s ease-out}.staged-loading__cells{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,var(--staged-loading-tile));grid-auto-rows:var(--staged-loading-tile);gap:var(--staged-loading-tile-gap);padding:var(--staged-loading-tile-gap)}.staged-loading__cell{border-radius:6px;background:#eee4da59}.staged-loading__tile{position:absolute;top:var(--staged-loading-tile-gap);left:var(--staged-loading-tile-gap);z-index:1;width:var(--staged-loading-tile);height:var(--staged-loading-tile);transform:translate(calc(var(--c, 0) * var(--staged-loading-step)),calc(var(--r, 0) * var(--staged-loading-step)));transition:transform .2s cubic-bezier(.3,.85,.35,1.1)}.staged-loading__tile.is-merged{z-index:2}.staged-loading__face{position:relative;display:grid;place-items:center;width:100%;height:100%;border-radius:6px;background:#eee4da;color:#776e65;font-weight:700;font-size:calc(var(--staged-loading-tile) * .44);line-height:1;transform-origin:50% 50%;will-change:transform}.staged-loading__face[data-digits="3"]{font-size:calc(var(--staged-loading-tile) * .36)}.staged-loading__face[data-digits="4"]{font-size:calc(var(--staged-loading-tile) * .29)}.staged-loading__face[data-value="4"]{background:#ede0c8}.staged-loading__face[data-value="8"]{background:#f2b179;color:#f9f6f2}.staged-loading__face[data-value="16"]{background:#f59563;color:#f9f6f2}.staged-loading__face[data-value="32"]{background:#f67c5f;color:#f9f6f2}.staged-loading__face[data-value="64"]{background:#f65e3b;color:#f9f6f2}.staged-loading__face[data-value="128"]{background:#edcf72;color:#f9f6f2;box-shadow:0 0 12px #f3d77459}.staged-loading__face[data-value="256"]{background:#edcc61;color:#f9f6f2;box-shadow:0 0 14px #f3d7746b}.staged-loading__face[data-value="512"]{background:#edc850;color:#f9f6f2;box-shadow:0 0 16px #f3d77480}.staged-loading__face[data-value="1024"]{background:#edc53f;color:#f9f6f2;box-shadow:0 0 18px #f3d7748c}.staged-loading__face[data-value="2048"]{background:#edc22e;color:#f9f6f2;box-shadow:0 0 22px #f3d774a6}.staged-loading__face.is-new{animation:staged-loading-appear .38s ease-out both}.staged-loading__face.is-squash-x{animation:staged-loading-squash-x .3s ease-out}.staged-loading__face.is-squash-y{animation:staged-loading-squash-y .3s ease-out}.staged-loading__face.is-merged{animation:staged-loading-pop .36s ease-out both}.staged-loading__face.is-merged:after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;animation:staged-loading-ring .55s ease-out both}.staged-loading__face.is-leaving{animation:staged-loading-leave .32s ease-in both}.staged-loading__title{margin:0;font-size:15px;font-weight:700}.staged-loading__dots{display:inline-flex;gap:3px;margin-left:4px;vertical-align:middle}.staged-loading__dots span{width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.35;animation:staged-loading-dot 1.2s ease-in-out infinite}.staged-loading__dots span:nth-child(2){animation-delay:.15s}.staged-loading__dots span:nth-child(3){animation-delay:.3s}.staged-loading__hint,.staged-loading__tip{margin:8px 0 0;color:var(--staged-loading-muted);font-size:13px;line-height:1.6}.staged-loading__tip-tag{display:inline-block;margin-right:6px;padding:1px 7px;border-radius:999px;background:#8f7a6624;color:var(--staged-loading-fg);font-size:12px;font-weight:700;line-height:1.6;text-shadow:none}.staged-loading__tip.is-fresh{animation:staged-loading-tip-in .5s ease-out}.staged-loading__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.staged-loading__actions:not(:empty){margin-top:14px;animation:staged-loading-tip-in .4s ease-out}.staged-loading__action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border:1px solid var(--staged-loading-action);border-radius:var(--app-radius-control, 3px);background:transparent;color:var(--staged-loading-action);font:inherit;font-size:14px;font-weight:700;text-decoration:none;cursor:pointer;transition:transform .15s ease,filter .15s ease}.staged-loading__action:hover{transform:translateY(-1px);filter:brightness(1.06)}.staged-loading__action:active{transform:translateY(0) scale(.97)}.staged-loading__action--primary{background:var(--staged-loading-action);color:var(--staged-loading-action-fg)}.staged-loading__action:focus-visible{outline:2px solid var(--staged-loading-action);outline-offset:2px}.staged-loading--panel .staged-loading__skeleton{padding:16px}.staged-loading--inline{--staged-loading-tile: 28px;--staged-loading-tile-gap: 5px}.staged-loading--inline .staged-loading__skeleton{gap:6px;padding:4px 0}.staged-loading--inline .staged-loading__row{min-height:24px;padding:0}.staged-loading--inline .staged-loading__bar--dot{flex-basis:20px;width:20px;height:12px}.staged-loading--inline[data-stage=animated],.staged-loading--inline[data-stage=slow]{min-height:0}.staged-loading--inline[data-stage=animated] .staged-loading__skeleton,.staged-loading--inline[data-stage=slow] .staged-loading__skeleton{display:none}.staged-loading--inline .staged-loading__card{position:static;width:auto;padding:6px 0;border:0;background:transparent;box-shadow:none;transform:none}.staged-loading--inline[data-stage=animated] .staged-loading__card,.staged-loading--inline[data-stage=slow] .staged-loading__card{animation-name:staged-loading-fade-in}.staged-loading--inline .staged-loading__stage{margin-bottom:8px;animation:none}.staged-loading--inline .staged-loading__board{border-radius:8px;box-shadow:none}.staged-loading--inline .staged-loading__cell,.staged-loading--inline .staged-loading__face{border-radius:4px}.staged-loading--inline .staged-loading__title{font-size:14px}.staged-loading--inline .staged-loading__hint,.staged-loading--inline .staged-loading__tip{margin-top:4px;font-size:12px}@keyframes staged-loading-fade-in{0%{opacity:0}to{opacity:1}}@keyframes staged-loading-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@keyframes staged-loading-card-in{0%{opacity:0;transform:translate(-50%,calc(-50% + 12px)) scale(.94)}to{opacity:1;transform:translate(-50%,-50%)}}@keyframes staged-loading-pop-in{0%{opacity:0;transform:translateY(16px) scale(.92)}to{opacity:1;transform:none}}@keyframes staged-loading-pop-out{0%{opacity:1;transform:none}to{opacity:0;transform:translateY(8px) scale(.96)}}@keyframes staged-loading-float{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}@keyframes staged-loading-nudge{0%,30%{transform:translate(0)}48%{transform:translate(var(--nx, 0),var(--ny, 0))}to{transform:translate(0)}}@keyframes staged-loading-appear{0%{opacity:0;transform:scale(.45);filter:blur(3px)}55%{opacity:1;transform:scale(1.06);filter:blur(0)}78%{transform:scale(.98)}to{opacity:1;transform:scale(1);filter:blur(0)}}@keyframes staged-loading-squash-x{0%{transform:scale(1)}35%{transform:scale(1.1,.92)}70%{transform:scale(.95,1.04)}to{transform:scale(1)}}@keyframes staged-loading-squash-y{0%{transform:scale(1)}35%{transform:scale(.92,1.1)}70%{transform:scale(1.04,.95)}to{transform:scale(1)}}@keyframes staged-loading-pop{0%{transform:scale(.88)}45%{transform:scale(1.2)}75%{transform:scale(.96)}to{transform:scale(1)}}@keyframes staged-loading-ring{0%{opacity:.9;box-shadow:0 0 #edc22e99}to{opacity:0;box-shadow:0 0 0 14px #edc22e00}}@keyframes staged-loading-leave{to{opacity:0;transform:scale(.5);filter:blur(2px)}}@keyframes staged-loading-dot{0%,60%,to{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}@keyframes staged-loading-tip-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.staged-loading *,.staged-loading-overlay,.staged-loading-overlay *{animation:none!important;transition:none!important}}.staged-loading[data-reduced-motion="1"] *,.staged-loading-overlay[data-reduced-motion="1"] *{animation:none!important;transition:none!important}.staged-loading-error{grid-column:1 / -1;display:flex;flex-direction:column;align-items:center;gap:12px;padding:36px 16px;color:var(--app-text, #776e65);text-align:center;animation:staged-loading-tip-in .35s ease-out}.staged-loading-error--compact{gap:8px;padding:10px 8px}.staged-loading-error__message{margin:0;color:var(--app-danger, #a7463b);font-size:14px;line-height:1.6}.staged-loading-error .staged-loading__action{--staged-loading-action: var(--app-action-bg, #8f7a66);--staged-loading-action-fg: var(--app-text-on-action, #f9f6f2)}@media(prefers-reduced-motion:reduce){.staged-loading-error{animation:none}}
