.book-button{font:inherit;min-height:44px;padding:10px 16px;border:1px solid var(--color-cafe-line);border-radius:var(--radius-control);background:var(--color-paper-raised);color:var(--color-ink)}.book-button:focus-visible{outline:3px solid var(--color-cafe-focus);outline-offset:3px}.book-button:disabled{opacity:1;color:var(--color-muted);background:var(--color-cafe-wash)}.completion-info{color:var(--color-muted)}.completion-meta{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center}.creator-credit{display:inline-flex;align-items:center;min-height:44px;color:inherit;font-size:.875rem;text-underline-offset:3px}.completion-cleared{font-size:.875rem;font-weight:600}.completion-share{display:flex;align-items:center;justify-content:center;min-height:56px;padding:12px 16px;border-radius:var(--radius-control);text-decoration:none;font:inherit}.completion-screen{width:min(100%,560px);margin:auto;padding:32px 20px;display:flex;flex-direction:column;gap:20px;align-items:stretch;text-align:center}.completion-screen[hidden]{display:none}.completion-screen h2{margin:0;font-size:1.75rem;line-height:1.5}.completion-screen .completion-share{background:var(--color-primary, #284637);color:var(--color-paper, #fff8e7);border:1px solid currentColor;font-weight:600}.completion-retry{min-height:48px;padding:10px 16px;font:inherit;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit}.completion-screen .creator-credit{align-self:center}.completion-screen :focus-visible{outline:3px solid var(--color-focus, #b45b2a);outline-offset:3px}.game-credit{margin-top:16px}.completion-host{color:inherit}dialog.completion-dialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);z-index:50;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:0;padding:24px 20px;overflow-y:auto;border:1px solid var(--color-border, #bcb799);border-radius:16px;background:var(--color-paper-raised, #fff9eb);color:var(--color-ink, #284637);box-shadow:0 20px 60px #14261d40;animation:completion-dialog-enter .38s cubic-bezier(.2,.8,.2,1) both}dialog.completion-dialog:not([open]){display:none}dialog.completion-dialog::backdrop{background:#14261d66}.completion-close{align-self:flex-end;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;font:inherit;cursor:pointer}.completion-announcement{text-align:center}.completion-announcement h2{font-size:clamp(1.25rem,5.5vw,1.5rem);line-height:1.5;overflow-wrap:anywhere}.completion-announcement p{margin:8px 0 0;font-size:1.5rem;line-height:1.5;font-weight:600}.completion-seal{display:block;width:56px;height:56px;margin:0 auto 16px;overflow:visible}.completion-seal circle{fill:none;stroke:var(--color-primary, #284637);stroke-width:2;opacity:.35}.completion-seal path{fill:none;stroke:var(--color-primary, #284637);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:45;animation:completion-check .6s ease-out both}@keyframes completion-dialog-enter{0%{opacity:0;transform:translate(-50%,-46%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@keyframes completion-check{0%{stroke-dashoffset:45}to{stroke-dashoffset:0}}@keyframes completion-message-enter{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){dialog.completion-dialog,.completion-seal path,.chat-completion .completion-announcement{animation:none!important}}.completion-announcement h2:focus{outline:none}.completion-credits{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 20px}.related-work{display:flex;align-items:center;gap:8px;font-size:14px}.related-work a{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-underline-offset:3px}.completion-credits .creator-credit{margin:0}:root{font-size:16px;color-scheme:light}*{box-sizing:border-box}html,body{overscroll-behavior-y:none}body{margin:0;min-height:100dvh;display:grid;place-items:center;background:#fffaf0}#root{width:100%;max-width:580px}.inspection{--color-ink: #284637;--color-paper: #fcedd5;--color-paper-raised: #fffaf0;--color-muted: #667263;--color-cafe-line: #b8bdab;--color-cafe-focus: #956020;--color-cafe-wash: #eeeee3;--color-primary: #284637;--radius-control: 9px;--chrome: 180px;max-width:480px;margin:auto;width:100%;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));color:#284637;background:#fffaf0;font:1rem/1.5 system-ui,sans-serif}.inspection[data-solved]{--chrome: 224px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.game-header{display:flex;align-items:center}.game-header{flex-wrap:wrap;justify-content:space-between;gap:4px;margin-bottom:4px}.brief{display:flex;align-items:center;margin:0;font-size:.95rem;font-weight:600;white-space:nowrap}.word-slot{display:inline-block;width:1em;height:44px;flex-shrink:0}.paper{position:relative;width:min(100%,400px,calc((100dvh - var(--chrome))*224/304));aspect-ratio:224/304;margin:0 auto;touch-action:none;isolation:isolate}.paper-lines,.paper-front{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.paper-lines{z-index:0}.paper-front{z-index:4}.positioned{position:absolute}.slot{position:relative;width:100%;height:100%;min-height:0}.slot button{width:100%;height:100%;display:block;appearance:none;font:inherit;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}.piece{position:relative;padding:0;border:0;background:transparent;border-radius:5px;color:#284637}.piece:after{box-sizing:border-box;content:"";position:absolute;inset:1px;border:3px solid transparent;border-radius:inherit;pointer-events:none;z-index:2}.piece.selected:after{border-color:#ad7038}.slot:has(.piece.selected){z-index:5}.piece.selected{outline:none}.drop-valid{outline:2px solid #ad7038;outline-offset:-2px;z-index:3}.drop-invalid{outline:2px solid #a14822;outline-offset:2px}.piece:focus-visible,.empty-slot:focus-visible{outline:3px solid #956020;outline-offset:2px}.piece:disabled,.empty-slot:disabled{opacity:1;cursor:default}.drag-source .piece{opacity:.3}.word-slot .piece,.word-slot .empty-slot{position:absolute;top:0;left:50%;translate:-50% 0;width:44px;min-width:44px;min-height:44px}.word-slot .empty-slot{border:0;background:transparent;border-radius:0}.word-slot .piece{display:grid;place-items:center}.word-letter{display:grid;place-items:center;width:calc(1em + 8px);height:calc(1.5em + 8px)}.word-letter>span{display:block}.word-slot .piece:after{inset:50% auto auto 50%;translate:-50% -50%;width:calc(1em + 8px);height:calc(1.5em + 8px)}.word-ghost{display:grid;place-items:center;font-size:.95rem;font-weight:600;line-height:1.5}.word-slot .slot{display:block}.plate-grid{width:100%;height:100%;display:grid;grid-template:repeat(7,1fr)/repeat(7,1fr);background:linear-gradient(135deg,#819185,#6e8375);border-radius:5px;overflow:hidden;pointer-events:none}.cell{position:relative;background:#fff2d4}.cell.wet:after{content:"";position:absolute;inset:0;background:#79dbe7;animation:fill 24ms var(--delay) linear both}.board{background:#d6d5c1;border:0;box-shadow:inset 0 0 0 2px #b1b9a7;border-radius:8px 8px 0 0;padding:0}.board-grid{position:absolute;left:calc(3/146*100%);top:calc(3/146*100%);width:calc(140/146*100%);height:calc(140/146*100%);display:grid;grid-template:repeat(2,1fr)/repeat(2,1fr);gap:0;border-radius:5px;overflow:hidden}.board .plate-grid{border-radius:0;box-shadow:inset 0 0 0 1px #d6d5c1}.empty-slot{padding:0;border:0;border-radius:4px;background:#efecdc;color:#8b9d83;cursor:pointer}.empty-slot span{font-size:1.1rem;opacity:.65}.inlet-slot .empty-slot{border:0;background:transparent}.bridge-slot .empty-slot,.frame-home .empty-slot{background:transparent;border:0}.frame-home,.bridge-slot{min-height:44px}.frame-home .slot,.bridge-slot .slot{container-type:inline-size}.frame-piece{position:absolute;left:0;top:calc(100cqw*8/146 - 22px);height:44px!important;min-height:44px;transform-origin:50% 50%}.frame-piece .frame-art{top:50%;translate:0 -50%}.frame-art{position:absolute;top:0;left:0;width:100%;height:auto;overflow:visible;transform-origin:50% 50%;pointer-events:none}.frame-art rect{fill:#d6d5c1;stroke:#a7b49b;stroke-width:1}.frame-art path{fill:none;stroke:#fff2d4;stroke-width:6}.frame-art circle{fill:#8b9d83}.frame-art path.water{stroke:#79dbe7}.glyph{display:block;width:100%;height:100%;pointer-events:none;overflow:visible}.glyph path{fill:none;stroke:currentColor;stroke-width:8;stroke-linecap:round}.glyph .water{stroke:#79dbe7}.inlet-slot .glyph{color:#8a977d}.inlet-slot .glyph .water{stroke:#79dbe7}.caption{font:8px system-ui,sans-serif;fill:#65755f}.tube{fill:none;stroke:#e4dcc3;stroke-width:6;stroke-linecap:round}.faucet{color:#284637}.port{fill:#fffaf0;stroke:#9da98e;stroke-width:1}.water-line{fill:none;stroke:#79dbe7;stroke-width:4;stroke-linecap:round}.water-stop{fill:#79dbe7;animation:fill 1ms var(--delay) both}.water-trace{stroke-dasharray:1;stroke-dashoffset:0;animation:flow-draw var(--duration) linear var(--delay) both}@keyframes flow-draw{0%{stroke-dashoffset:1;opacity:0}0.1%{opacity:1}to{stroke-dashoffset:0;opacity:1}}.crossing{fill:none;stroke:#fffaf0;stroke-width:8}.flower .stem{fill:none;stroke:#50714e;stroke-width:1.1}.flower .bloom{fill:#dfbe66;stroke:#718146;stroke-width:1}.flower.bloomed .bloom{fill:#da9b76;stroke:#a9633e}.flower .pot{fill:#c4986e;stroke:#9d7956;stroke-width:1}.rotate-action button{display:flex;align-items:center;justify-content:center;gap:3px;width:100%;min-height:44px;padding:4px;font-size:.85rem}.operation{margin:4px 0;font-size:.75rem;color:#65755f;text-align:center;pointer-events:none}.rotate-action{z-index:6}.drag-ghost{position:fixed;z-index:20;pointer-events:none;opacity:.9;filter:drop-shadow(0 5px 7px #28463745)}.drag-ghost .frame-art{height:auto}.frame-ghost .frame-art{width:var(--frame-width);left:50%;top:50%;translate:-50% -50%}.game-actions,.hint-navigation{display:flex;flex-wrap:wrap;gap:8px}.game-actions{margin-top:4px}.game-actions button{min-height:44px;padding:8px 12px}.flow{flex:1;background:#284637;color:#fffaf0;border-color:#284637;font-weight:600}.feedback{display:block;min-height:20px;margin:4px 0 0;font-size:.85rem}.hint{margin-top:12px;padding:12px;border:1px solid #d6d5bf;border-radius:10px;background:#f6efdc}.hint p{margin:0 0 8px}.book-button{touch-action:manipulation;cursor:pointer}.book-button:disabled{cursor:default}.inspection .completion-actions{padding:4px 0 0;gap:8px;display:grid;grid-template-columns:1fr 1fr;font-size:.85rem}.completion-actions .completion-credits{grid-column:1/-1;gap:0 12px}.completion-actions .completion-share,.completion-actions .completion-retry{min-height:44px;padding:8px}.inspection[data-solved] .game-actions{display:none}@keyframes fill{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.cell.wet:after,.water-line,.water-trace,.water-stop{animation:none}}@media(min-width:640px){.inspection{--chrome: 252px}.inspection[data-solved]{--chrome: 296px}body{padding:24px;background:#e8e4d8}.inspection{padding:24px;border:1px solid #d7d9c9;border-radius:20px;box-shadow:0 12px 40px #2846370c}}
