/* ひとふでいもむし（アプリと同じ色） */
:root{--wp-bg:#eef8e4;--wp-ink:#2f3b22;--wp-accent:#4fae3c;--wp-accent-dark:#3a8a2b;--wp-card:#fff;--wp-line:#cfe3bf}
#board{flex:1 1 auto;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;touch-action:none;-webkit-user-select:none;user-select:none}
#board canvas{touch-action:none;cursor:pointer}
#legend{flex:0 0 auto;align-self:center;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 6px;margin:2px 10px 0;max-width:94%}
#legend button{font:inherit;border:0;padding:3px 9px;border-radius:999px;background:#fff;color:var(--wp-ink);font-size:12px;font-weight:700;box-shadow:0 2px 0 #cfe3bf;white-space:nowrap;cursor:pointer}
#toast{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);background:rgba(47,59,34,.9);color:#fff;font-size:14px;font-weight:700;padding:8px 14px;border-radius:999px;white-space:nowrap;pointer-events:none;max-width:92%;opacity:0;transition:opacity .2s;text-align:center;z-index:5}
#toast.on{opacity:1}
#toast.long{white-space:normal;border-radius:16px;width:88%;line-height:1.45}
#toast.at{transform:none;bottom:auto;width:auto;max-width:min(300px,92%)}

/* お正月（12/29〜1/7。../oshogatsu.js）: 初日の出と門松（アプリの 1.0.12 と同じ絵）・盤は松竹梅と鏡もち（play.js） */
body.shogatsu .wp-app{background-color:#fdf3e6;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2060%20110%22%3E%3Cpath%20d%3D%22M16%2084V30l9-6v60z%22%20fill%3D%22%235fae45%22%2F%3E%3Cpath%20d%3D%22M26%2084V14l9-6v76z%22%20fill%3D%22%236cbf4a%22%2F%3E%3Cpath%20d%3D%22M36%2084V34l9-6v56z%22%20fill%3D%22%235fae45%22%2F%3E%3Cpath%20d%3D%22M16%2030l9-6v3l-9%206zM26%2014l9-6v3l-9%206zM36%2034l9-6v3l-9%206z%22%20fill%3D%22%23e8f3c8%22%2F%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%2280%22%20rx%3D%2227%22%20ry%3D%229%22%20fill%3D%22%232f7d32%22%2F%3E%3Cellipse%20cx%3D%2214%22%20cy%3D%2277%22%20rx%3D%229%22%20ry%3D%225%22%20fill%3D%22%233c8f3a%22%2F%3E%3Cellipse%20cx%3D%2246%22%20cy%3D%2277%22%20rx%3D%229%22%20ry%3D%225%22%20fill%3D%22%233c8f3a%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2274%22%20r%3D%223%22%20fill%3D%22%23e53950%22%2F%3E%3Ccircle%20cx%3D%2241%22%20cy%3D%2273%22%20r%3D%223%22%20fill%3D%22%23e53950%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%2282%22%20width%3D%2242%22%20height%3D%2226%22%20rx%3D%224%22%20fill%3D%22%23d9b36c%22%2F%3E%3Cpath%20d%3D%22M9%2089h42M9%20100h42%22%20stroke%3D%22%238d6e4a%22%20stroke-width%3D%222.5%22%2F%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2060%20110%22%3E%3Cpath%20d%3D%22M16%2084V30l9-6v60z%22%20fill%3D%22%235fae45%22%2F%3E%3Cpath%20d%3D%22M26%2084V14l9-6v76z%22%20fill%3D%22%236cbf4a%22%2F%3E%3Cpath%20d%3D%22M36%2084V34l9-6v56z%22%20fill%3D%22%235fae45%22%2F%3E%3Cpath%20d%3D%22M16%2030l9-6v3l-9%206zM26%2014l9-6v3l-9%206zM36%2034l9-6v3l-9%206z%22%20fill%3D%22%23e8f3c8%22%2F%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%2280%22%20rx%3D%2227%22%20ry%3D%229%22%20fill%3D%22%232f7d32%22%2F%3E%3Cellipse%20cx%3D%2214%22%20cy%3D%2277%22%20rx%3D%229%22%20ry%3D%225%22%20fill%3D%22%233c8f3a%22%2F%3E%3Cellipse%20cx%3D%2246%22%20cy%3D%2277%22%20rx%3D%229%22%20ry%3D%225%22%20fill%3D%22%233c8f3a%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2274%22%20r%3D%223%22%20fill%3D%22%23e53950%22%2F%3E%3Ccircle%20cx%3D%2241%22%20cy%3D%2273%22%20r%3D%223%22%20fill%3D%22%23e53950%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%2282%22%20width%3D%2242%22%20height%3D%2226%22%20rx%3D%224%22%20fill%3D%22%23d9b36c%22%2F%3E%3Cpath%20d%3D%22M9%2089h42M9%20100h42%22%20stroke%3D%22%238d6e4a%22%20stroke-width%3D%222.5%22%2F%3E%3C%2Fsvg%3E"),radial-gradient(circle at 50% 104%,#ffd27a 0,#ffb46a 12%,rgba(255,180,106,.35) 26%,transparent 44%),linear-gradient(#fbf6ee,#fbe6d2);background-repeat:no-repeat;background-size:56px 103px,56px 103px,100% 100%,100% 100%;background-position:left 6px bottom calc(env(safe-area-inset-bottom) + 70px),right 6px bottom calc(env(safe-area-inset-bottom) + 70px),0 0,0 0}
body.shogatsu{background:#fbe6d2}
body.shogatsu .wp-bar .btn.main,body.shogatsu #wp-ov .btn.main{background:linear-gradient(#d23a36,#b3202a);box-shadow:0 4px 0 #8a6a1e}
#wp-ov .hf-ny{color:#b3202a;font-weight:800}
