*{box-sizing:border-box}body{margin:0;background:#fff;color:#2a2328;font:14px -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN",sans-serif}main{max-width:500px;margin:auto;padding:6px 12px 12px}[hidden]{display:none!important}button{font:inherit;color:inherit;border:0;border-radius:8px;background:#f3f4f6;min-height:44px;padding:10px 8px;touch-action:manipulation}button:disabled{opacity:.45}.companion{display:flex;align-items:center;gap:8px;margin-bottom:6px}.companion img{width:64px;height:64px;object-fit:contain}.companion strong{font-size:12px}.companion p{margin:4px 0;line-height:1.5}.panel{border:1px solid #e4e4e6;border-radius:12px;padding:14px}h2{font-size:18px;margin:0 0 10px}p{line-height:1.6}.note{font-size:11px;color:#6e626a}.panel button{width:100%;font-weight:600}.status{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:6px}.status button{font-size:12px}#instruction{font-weight:600;margin:8px 0}#cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.word{font-size:14px;min-height:58px;padding:8px 2px;overflow-wrap:anywhere}.word[aria-pressed=true]{background:#eee3e9;box-shadow:inset 0 0 0 2px #8c6178;font-weight:700}#feedback{min-height:42px;margin:8px 0;font-size:13px;overflow-wrap:anywhere}.actions{display:flex;gap:6px;padding-bottom:env(safe-area-inset-bottom,0px)}.actions button{flex:1}#confirm,#next{background:#eef0f3;font-weight:600}#next{width:100%;margin-top:8px}.bouquet{padding:8px 10px;border-radius:8px;margin-bottom:5px;background:#eef0f3;font-size:12px}.bouquet strong{display:block;margin-bottom:3px}#feedback[data-kind=success]{color:#45613e;font-weight:600}#feedback[data-kind=error]{color:#a33f48;font-weight:600}button{min-width:44px}#resultText{white-space:pre-line}
