*{box-sizing:border-box}body{margin:0;background:#fff;color:#2a2328;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP",sans-serif}main{max-width:480px;margin:auto;padding:2px 12px max(8px,env(safe-area-inset-bottom))}.companion{display:flex;align-items:center;gap:8px;min-height:64px}.companion img{object-fit:contain}.companion small{font-size:11px;color:#6e626a}.companion p{font-size:13px;margin:4px 0}.toolbar{display:flex;justify-content:space-between;font-size:13px;margin:4px 0}#best{color:#6e626a;font-size:11px}#order{font-size:12px;margin:8px 0}#board{display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr);gap:4px;background:#faf1e8;padding:8px;border-radius:12px;aspect-ratio:1}.tile{position:relative;min-width:0;min-height:0;border:1px solid #dfd2c6;border-radius:9px;padding:0;background:#eee4da;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;color:#644634;touch-action:manipulation}.tile .arrow{font-size:27px;line-height:1}.tile small{font-size:10px;line-height:1.3;font-weight:600;white-space:nowrap}.tile.empty{background:#f5eee6;border-color:transparent}.tile.top{background:#fff3e1;border-color:#b78d62}.tile.goal{background:#e7eee6;border-color:#94a88e}.tile.cross{background:#e9e9ec;border-style:dashed}.cup{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:27px;background:#fff9;border-radius:8px;text-shadow:0 1px white}.cup span{font-size:13px;background:white;border-radius:4px}.hint{font-size:11px;line-height:1.7;color:#6e626a;text-align:center;margin:6px 0}#delay-row{display:flex;align-items:center;justify-content:center;gap:12px;font-size:13px}select,button{font:inherit;color:#2a2328;background:#f3f4f6;border:0;border-radius:8px;min-height:46px;padding:9px 12px;touch-action:manipulation}button:active{filter:brightness(.95)}button:disabled,select:disabled{opacity:.65}#notice{font-size:13px;min-height:36px;line-height:1.4;margin:8px 0}.actions{display:flex;gap:8px}.actions button{flex:1;font-weight:650}#go{background:#ecdfd3}#save{font-size:11px;color:#6e626a;margin:4px 0}[hidden]{display:none!important}@media(max-height:700px){.companion{min-height:50px}.companion img{width:46px;height:46px}#board{max-width:310px;margin:auto}.hint{margin:3px 0}.tile .arrow{font-size:24px}#notice{margin:5px 0;min-height:32px}}

.tile:disabled{opacity:1}
