:root{color-scheme:light;color:#2a2328;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans",sans-serif}*{box-sizing:border-box}body{margin:0;background:#fff}[hidden]{display:none!important}main{max-width:450px;margin:auto;padding:4px 12px calc(8px + env(safe-area-inset-bottom))}button{font:inherit;font-size:13px;color:inherit;background:#f3f4f6;border:0;border-radius:8px;min-height:44px;padding:8px 10px;touch-action:manipulation}button:disabled{opacity:.4}.partner{display:flex;align-items:center;gap:8px;min-height:60px}.partner img{object-fit:contain}.partner strong{font-size:12px}.partner p{font-size:13px;margin:4px 0;line-height:1.4}.stage{position:relative;padding:0 10px 10px;border-radius:12px;background:#faf7f8;overflow:hidden}.hud{height:40px;display:flex;align-items:center;justify-content:space-between;font-size:12px}#best{color:#6e626a}#board{display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr);aspect-ratio:1;gap:4px;padding:6px;background:#e8dfe3;border-radius:10px;touch-action:none;user-select:none}.cell{display:flex;align-items:center;justify-content:center;background:#fffaf7;border-radius:7px;position:relative}.wall{background:repeating-linear-gradient(135deg,#a99ea5 0 5px,#b9afb6 5px 10px);box-shadow:inset 0 -4px #8a7e87}.candy{width:76%;height:76%;display:grid;place-items:center;font-size:clamp(21px,7vw,33px);color:#753254;border:2px solid #b96790;border-radius:50%;background:radial-gradient(circle at 32% 25%,#fff3fa,#f2b9d2 45%,#d985b1);box-shadow:0 3px 0 #b66b91}.blue{border-radius:11px;color:#34557e;border-color:#7195ba;background:radial-gradient(circle at 32% 25%,#fff,#bfd9ef 45%,#8cb4da);box-shadow:0 3px 0 #7195ba}.exits{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:0 6px}.exits b{background:#62515e;color:#fff;text-align:center;border-radius:0 0 9px 9px;font-size:18px;height:23px}#message{font-size:12px;min-height:32px;line-height:1.4;margin:7px 0 0;text-align:center}.directions{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.directions button{font-size:23px;background:#eee7ec}.tools{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:7px}.panel{position:absolute;inset:40px 10px 10px;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#fffffff5;border-radius:10px;text-align:center;padding:12px;gap:12px}.panel h2{font-size:20px;margin:0}.panel p{font-size:13px;line-height:1.8;margin:0}.panel button{width:190px;min-height:46px}#resume{order:-1}.panel h2,.panel p{order:-2}#saveNote{font-size:12px}.game-sound-toggle{width:44px;height:44px;min-width:44px;margin-left:auto}.game-sound-toggle .material-icons{font-size:0}.game-sound-toggle:after{content:'音♪';font-size:12px}.game-sound-toggle[aria-pressed="false"]:after{content:'音×'}@media(prefers-reduced-motion:no-preference){.candy{animation:appear .16s ease-out}@keyframes appear{from{transform:scale(.85)}to{transform:scale(1)}}}@media(max-height:650px){.partner{min-height:48px}.partner img{height:44px;width:44px}.hud{height:32px}#board{max-width:calc(100dvh - 265px);margin:auto}.exits{max-width:calc(100dvh - 265px);margin:auto}.panel{top:32px}.tools{margin-top:4px}#message{min-height:29px;margin-top:4px}}
