html{box-sizing:border-box}body{margin:0;padding-bottom:24px}button,a,input,canvas{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}canvas{max-width:calc(100vw - 24px);height:auto;touch-action:none}.top-bar{max-width:100%;gap:8px}.info,.diff{flex-wrap:wrap;justify-content:center}.game-tools{position:relative;z-index:30;width:100%;display:flex;justify-content:center;gap:8px;flex-wrap:wrap;padding:12px;background:#fffc;box-shadow:0 1px 10px #83184315;color:#831843;font:500 13px system-ui;box-sizing:border-box}.game-tools a,.game-tools button{font:inherit;text-decoration:none;border:1px solid #fbcfe8;border-radius:12px;padding:9px 13px;background:#fff;color:#9d174d;cursor:pointer;min-height:36px}.game-tools .mode-switch{background:#fff7d6;border-color:#fcd34d;color:#854d0e}.mode-note{font:13px system-ui;color:#a16207;background:#fef9c3;border-radius:12px;padding:8px 14px;margin:8px;text-align:center}.touch-pad{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:8px}.touch-pad button{min-width:44px;min-height:44px;border:0;border-radius:12px;color:#fff;background:#db2777;font-size:18px;touch-action:none;cursor:pointer}.touch-pad button:active{background:#9d174d}#pause-cover{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:#0f172acc;backdrop-filter:blur(6px)}#pause-cover button{padding:24px;border:0;border-radius:20px;background:#fff;color:#9d174d;font-size:20px;cursor:pointer}@media(max-width:600px){.top-bar h1{font-size:1.15rem}body{min-width:0}.modal{max-width:calc(100vw - 32px);padding:24px;box-sizing:border-box}.game-tools{gap:5px;padding:8px}.game-tools a,.game-tools button{padding:8px 10px}.touch-pad{position:relative;z-index:20}.board,.grid{flex-shrink:0}input{max-width:90vw;box-sizing:border-box}}
