:root{color-scheme:light;font-family:system-ui,-apple-system,'Hiragino Kaku Gothic ProN',sans-serif;color:#2a2328;background:#fff}*{box-sizing:border-box}body{margin:0;-webkit-tap-highlight-color:transparent}button{font:inherit;min-height:44px;border:1px solid #dedbdf;border-radius:8px;color:inherit;background:#f3f4f6;padding:8px;touch-action:manipulation}button:disabled{opacity:.45}[hidden]{display:none!important}.shell{max-width:450px;margin:auto;padding:6px 12px max(12px,env(safe-area-inset-bottom));font-size:14px}.toolbar{display:flex;align-items:center;gap:10px;font-size:13px}.toolbar button{margin-left:auto}.instruction{font-size:12px;line-height:1.6;margin:6px 0}#board{height:min(52svh,420px);min-height:300px;position:relative;background:#eef3ee;border:1px solid #dbe3da;border-radius:12px;overflow:hidden}.tile{position:absolute;width:21%;height:16%;padding:0;min-height:44px;background:#fffdf7;border:1px solid #c8c4b8;border-bottom:5px solid #cdc5af;box-shadow:1px 2px 2px #63775d33;display:flex;align-items:center;justify-content:center;flex-direction:column;line-height:1.1;transition:background .15s}.tile .symbol{font-size:25px;color:var(--flower)}.tile small{font-size:11px;margin-top:3px}.tile.blocked{background:#d9ded6;color:#646b61;box-shadow:none}.tile.blocked .symbol{opacity:.5}.tile.selected{outline:3px solid #a94b70;outline-offset:-3px;background:#fff0f5}.tile.hinted{outline:3px dashed #526d4b;outline-offset:-3px}.tile.selected:after{content:'✓';position:absolute;top:2px;right:4px;font-size:12px;color:#a94b70}#feedback{min-height:36px;line-height:1.4;font-size:12px;margin:6px 0}.tools{display:flex;gap:8px}.tools button{flex:1}.panel{padding:14px 0;text-align:center;display:flex;align-items:center;flex-direction:column;gap:12px}.panel h2{font-size:20px;margin:0}.panel p{margin:0;line-height:1.6}.primary{width:100%;font-weight:700;background:#eef0f3}.companion{display:flex;align-items:center;gap:8px;margin-top:8px}.companion img,.panel img{object-fit:contain}.companion b{font-size:12px}.companion p{font-size:13px;margin:4px 0;line-height:1.5}#save-note,#record{font-size:11px;color:#6e626a;line-height:1.5}#save-note{margin:5px 0}@media(max-height:700px){#board{height:300px}.companion img{width:44px;height:44px}.companion{margin-top:4px}.panel{gap:8px;padding:8px 0}.panel>img{width:90px;height:90px}}@media(prefers-reduced-motion:reduce){.tile{transition:none}}

.tile .layer{position:absolute;top:2px;right:3px;font-size:9px;color:#6e626a;line-height:1}.tile.selected .layer{right:auto;left:3px}
