.puzzle-calendar{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;display:grid}.puzzle-day{border:1px solid color-mix(in oklab,var(--gold) 24%,transparent);background:var(--game-glass);min-width:0;height:58px;font-family:var(--font-display);border-radius:8px;flex-direction:column;gap:1px;padding:3px;font-size:17px}.puzzle-today{border-color:var(--gold);box-shadow:inset 0 0 10px color-mix(in oklab,var(--gold) 20%,transparent)}.puzzle-lock{background:var(--muted-foreground);border-radius:2px;width:10px;height:9px;margin-top:7px;display:block;position:relative}.puzzle-lock:before{content:"";border:2px solid var(--muted-foreground);border-radius:5px 5px 0 0;width:8px;height:7px;position:absolute;top:-5px;left:1px}.puzzle-board-scroll{touch-action:none;overscroll-behavior:contain;box-sizing:border-box;background:var(--game-glass);border:2px solid var(--gold);width:fit-content;max-width:100%;box-shadow:var(--game-panel-shadow);border-radius:8px;flex-shrink:0;align-self:center;padding:5px;overflow:hidden}.puzzle-viewport{box-sizing:content-box;touch-action:none;max-width:100%;position:relative;overflow:hidden}.puzzle-zoom-content{transform-origin:0 0;touch-action:none;width:100%;height:100%}.puzzle-board{touch-action:none;background:var(--surface);width:100%;height:100%}.puzzle-guide{fill:#0000;stroke:color-mix(in oklab,var(--gold) 25%,var(--surface));stroke-width:2px;cursor:pointer}.puzzle-guide:focus{fill:color-mix(in oklab,var(--crystal) 20%,transparent);outline:none}.puzzle-piece-edge{fill:none;stroke:var(--game-highlight);stroke-width:1.5px;pointer-events:none}.puzzle-tray{--piece-size:64px;--piece-gap:8px;grid-template-rows:repeat(2,var(--piece-size));grid-auto-flow:column;grid-auto-columns:var(--piece-size);gap:var(--piece-gap);height:calc(var(--piece-size) * 2 + var(--piece-gap) + 18px);min-height:calc(var(--piece-size) * 2 + var(--piece-gap) + 18px);overscroll-behavior:contain;border:1px solid color-mix(in oklab,var(--foreground) 18%,transparent);background:color-mix(in oklab,var(--muted) 65%,transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);touch-action:none;scrollbar-width:none;border-radius:8px;flex:none;padding:8px;display:grid;overflow:auto hidden}.puzzle-tray::-webkit-scrollbar{display:none}.puzzle-work-piece{cursor:grab;touch-action:none;filter:drop-shadow(0 2px 2px var(--game-ink))}.puzzle-work-dragging{opacity:.25}.puzzle-guide-hidden{stroke:#0000}.puzzle-loose-piece{height:var(--piece-size);width:var(--piece-size);touch-action:none;min-width:0;filter:drop-shadow(0 3px 3px var(--game-ink));background:0 0;border-radius:8px;padding:0}.puzzle-loose-piece>svg{width:100%;height:100%}.puzzle-selected{outline:1px solid var(--crystal);background:color-mix(in oklab,var(--crystal) 10%,transparent)}.puzzle-drag{pointer-events:none;z-index:100;width:100px;height:100px;filter:drop-shadow(0 6px 5px var(--game-ink));position:fixed;transform:translate(-50%,-50%)}.puzzle-upload-preview{aspect-ratio:2;border:2px solid var(--gold);border-radius:8px;position:relative;overflow:hidden}.puzzle-upload-preview img,.puzzle-upload-preview>svg{width:100%;height:100%;position:absolute;inset:0}@media (width>=600px){.puzzle-tray{--piece-size:86px}.puzzle-day{height:70px}}@media (height<=650px){.puzzle-tray{--piece-size:52px;--piece-gap:6px}}.puzzle-crop-stage{border:2px solid var(--gold);background:var(--surface);touch-action:none;border-radius:8px;justify-content:center;display:flex;overflow:hidden}.puzzle-crop-frame{cursor:move;touch-action:none;outline:2px solid var(--crystal);box-shadow:0 0 0 9999px color-mix(in oklab,var(--background) 72%,transparent);position:absolute}.puzzle-pick{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:46dvh;display:grid;overflow-y:auto}.puzzle-done .puzzle-guide{opacity:0;transition:opacity .6s}.puzzle-whole{opacity:1}.puzzle-reveal .puzzle-whole{animation:1.2s ease-out both puzzle-whole-in}.puzzle-reveal{animation:1.6s cubic-bezier(.2,.8,.2,1) both puzzle-lift}.puzzle-board{position:relative}.puzzle-shine{pointer-events:none;border-radius:inherit;position:absolute;inset:0;overflow:hidden}.puzzle-reveal .puzzle-shine:after{content:"";background:linear-gradient(100deg,transparent,color-mix(in oklab,var(--gold) 55%,transparent),transparent);width:45%;animation:1.4s ease-in-out .5s both puzzle-sweep;position:absolute;inset:-20% auto -20% -60%;transform:skew(-18deg)}.puzzle-rewards .puzzle-reward-star{animation:.7s cubic-bezier(.3,1.6,.5,1) both puzzle-pop}.puzzle-reward-item{animation:puzzle-pop .6s var(--d,0s) cubic-bezier(.3,1.6,.5,1) both}@keyframes puzzle-whole-in{0%{opacity:0;filter:brightness(1.8)blur(3px)}to{opacity:1;filter:none}}@keyframes puzzle-lift{0%{transform:perspective(800px)rotateX(0)scale(1)}40%{box-shadow:0 0 40px color-mix(in oklab,var(--gold) 60%,transparent);transform:perspective(800px)rotateX(8deg)scale(1.04)}to{transform:none}}@keyframes puzzle-sweep{to{left:130%}}@keyframes puzzle-pop{0%{opacity:0;transform:scale(.3)translateY(10px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.puzzle-reveal,.puzzle-reveal .puzzle-whole,.puzzle-reveal .puzzle-shine:after,.puzzle-reward-item,.puzzle-rewards .puzzle-reward-star{animation:none}}.puzzle-tools{flex-wrap:nowrap}.puzzle-tools>button{flex-shrink:0;min-width:0;height:32px;padding:0 5px;font-size:11px}.puzzle-tools>button:first-child img{width:20px;height:20px}.puzzle-board,.puzzle-board *,.puzzle-tray,.puzzle-tray *,.puzzle-drag,.puzzle-drag *{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.puzzle-work-piece,.puzzle-work-piece:focus,.puzzle-guide:focus-visible,.puzzle-loose-piece:focus,.puzzle-loose-piece:focus-visible{outline:none}.puzzle-loose-piece:hover,.puzzle-loose-piece:active,.puzzle-loose-piece:focus{background:0 0}.puzzle-work-lifted{filter:drop-shadow(0 6px 5px var(--game-ink))}.puzzle-board,.puzzle-board *,.puzzle-tray,.puzzle-tray *,.puzzle-drag *{-webkit-user-drag:none}
