@layer components{.matchstick{background:var(--color-kami)}.matchstick .game-loading{min-height:calc(100dvh - var(--asobi-header-h))}.matchstick-app{height:calc(100dvh - var(--asobi-header-h));flex-direction:column;min-height:22rem;display:flex}.matchstick-stage{flex:1;min-height:0;position:relative;overflow:hidden}.matchstick-board{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;width:100%;height:100%;display:block}.matchstick-count[data-over]{color:var(--destructive);font-weight:700}.matchstick-pose,.matchstick-figure,.matchstick-stick,.matchstick-stick-turn,.matchstick-stick-pop,.matchstick-focus{transform-box:view-box;transform-origin:0 0}.matchstick-hit{fill:#0000}.matchstick-groove-cut{transition:fill .16s}.matchstick-groove-ring{fill:none;stroke:#f3e2c0;stroke-width:1.5px;stroke-dasharray:4 3;vector-effect:non-scaling-stroke;animation:.16s ease-out both matchstick-fade-in}.matchstick-groove[data-drop] .matchstick-groove-ring{stroke:#ffe7a8;stroke-width:3px;stroke-dasharray:none}.matchstick-slot-target{pointer-events:none;outline:none}.matchstick-board:not([data-selecting]) .matchstick-slot-hit{pointer-events:none}.matchstick-board[data-selecting] .matchstick-slot-hit[data-placeable]{cursor:pointer}.matchstick-stick:not([data-movable]){pointer-events:none}.matchstick-tray{cursor:pointer;outline:none}.matchstick-tray-hit{fill:#0000}.matchstick-tray-ring{fill:none;stroke:#0000;stroke-width:1.5px;vector-effect:non-scaling-stroke;pointer-events:none}.matchstick-tray[data-open] .matchstick-tray-ring{stroke:#f3e2c0;stroke-dasharray:4 3}.matchstick-tray[data-drop] .matchstick-tray-ring{stroke:#ffe7a8;stroke-width:3px;stroke-dasharray:none}.matchstick-stick{outline:none;transition:transform .24s cubic-bezier(.3,1.2,.5,1)}.matchstick-stick-turn{transition:transform .24s cubic-bezier(.3,1.15,.45,1.1)}.matchstick-stick[data-snap],.matchstick-stick[data-snap] .matchstick-stick-turn{transition-duration:90ms;transition-timing-function:cubic-bezier(.2,.8,.3,1)}.matchstick-stick[data-dragging],.matchstick-app[data-settling] :is(.matchstick-stick,.matchstick-stick-turn,.matchstick-figure){transition:none}.matchstick-stick[data-movable]{cursor:grab;touch-action:none}.matchstick-stick[data-dragging]{cursor:grabbing}.matchstick-stick-edge{fill:none;stroke:#6b4a26;stroke-opacity:.85;stroke-width:1px;vector-effect:non-scaling-stroke}.matchstick-stick-head{stroke:#4a1208;stroke-opacity:.7;stroke-width:.75px;vector-effect:non-scaling-stroke}.matchstick-glow{fill:none;stroke:#fff3d0;stroke-width:4px;vector-effect:non-scaling-stroke;opacity:0;pointer-events:none;animation:.52s ease-out matchstick-glow}.matchstick-selected-back,.matchstick-selected-ring,.matchstick-focus-outer,.matchstick-focus-inner,.matchstick-hint-back,.matchstick-hint,.matchstick-guide-line{fill:none;stroke-linejoin:round;vector-effect:non-scaling-stroke;pointer-events:none}.matchstick-selected-back{stroke:#241208;stroke-width:5px}.matchstick-selected-ring{stroke:#ffe7a8;stroke-width:2.5px}.matchstick-focus{pointer-events:none}.matchstick-focus-outer{stroke:var(--color-ai);stroke-width:6px}.matchstick-focus-inner{stroke:#fff;stroke-width:2.5px}.matchstick-hints,.matchstick-guide{pointer-events:none}.matchstick-hint-back{stroke:var(--color-sumi);stroke-width:4px}.matchstick-hint{stroke:#fff;stroke-width:2px;stroke-dasharray:6 4}.matchstick-hint-target{fill:#ffffff38}.matchstick-guide-line{stroke:#fff;stroke-width:2.5px;stroke-dasharray:7 5;animation:1s linear infinite matchstick-guide-march}.matchstick-board[data-solved] .matchstick-stick-pop{animation:.42s cubic-bezier(.3,.9,.4,1.3) both matchstick-pop;animation-delay:calc(var(--i) * 28ms)}.matchstick-figure{transition:transform .48s cubic-bezier(.2,.8,.3,1) .38s}.matchstick-sparkles{pointer-events:none}.matchstick-sparkle{opacity:0;transform-box:fill-box;transform-origin:50%;animation:.9s ease-out both matchstick-sparkle;animation-delay:calc(.25s + var(--i) * 30ms)}@keyframes matchstick-pop{0%,to{transform:scale(1)}45%{transform:scale(1.12)}}@keyframes matchstick-sparkle{0%{opacity:0;transform:scale(0)rotate(0)}35%{opacity:1;transform:scale(1.2)rotate(45deg)}to{opacity:0;transform:scale(.9)rotate(90deg)}}@keyframes matchstick-glow{0%{opacity:0}25%{opacity:.95}to{opacity:0}}@keyframes matchstick-fade-in{0%{opacity:0}}@keyframes matchstick-guide-march{to{stroke-dashoffset:-24px}}@keyframes matchstick-clear-in{0%{opacity:0;transform:translateY(.75rem)scale(.96)}}.matchstick-clear{z-index:10;width:max-content;max-width:calc(100% - 24px);animation:.32s cubic-bezier(.2,.8,.3,1) .55s both matchstick-clear-in;position:absolute;top:0;left:0}.matchstick-clear:not([data-placed]){opacity:0;pointer-events:none}.matchstick-tip{z-index:5;border:1px solid var(--border);background:var(--card);white-space:nowrap;pointer-events:none;border-radius:999px;padding:.2rem .75rem;font-size:.875rem;animation:.3s ease-out both matchstick-fade-in;position:absolute;translate:-50% calc(-100% - .5rem)}.matchstick-tip[data-place=below]{translate:-50% .5rem}.matchstick-resumed{z-index:5;border:1px solid var(--border);background:var(--card);pointer-events:none;opacity:0;border-radius:999px;padding:.25rem .75rem;font-size:.875rem;animation:2.4s both matchstick-toast;position:absolute;top:.5rem;left:50%;translate:-50%}@keyframes matchstick-toast{0%{opacity:0}10%,75%{opacity:1}to{opacity:0}}@media (orientation:landscape) and (max-height:520px){.matchstick-app{min-height:0}}.matchstick-thumbnail{width:100%;height:100%;display:block}.matchstick-app[data-guide-undo] .kit-topbar button[title^="1手戻す"]{position:relative;overflow:visible}.matchstick-app[data-guide-undo] .kit-topbar button[title^="1手戻す"]:after{content:"";border:3px dashed var(--color-ai);pointer-events:none;border-radius:14px;position:absolute;inset:-5px;box-shadow:0 0 0 2px #fff,inset 0 0 0 2px #fff}}
