/* もふもふ四川 2026-10-25 NG25_1025。このページだけで読む。絵はコードで描いた仮の見た目（tiles.webp はキャラのスタンプ） */
:root{--bg:#f7efe2;--bg2:#efe1c9;--ink:#4a3628;--sub:#8a735e;--acc:#d9644a;--acc2:#7a5bb8;--card:#fffaf2;--line:#e8d6bb;--gold:#f4b42b}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:"Hiragino Maru Gothic ProN","Hiragino Sans","Yu Gothic UI","Meiryo",system-ui,sans-serif;-webkit-text-size-adjust:100%}
body.msh-body{min-height:100vh;background:radial-gradient(120% 70% at 50% 0,#fff8ec 0,var(--bg) 55%,var(--bg2) 100%) fixed}
.msh{max-width:640px;margin:0 auto;padding:0 12px calc(24px + env(safe-area-inset-bottom));position:relative;overflow-x:hidden}
button{font-family:inherit}
.msh-top{display:flex;align-items:center;gap:8px;height:52px;position:sticky;top:0;z-index:5;background:linear-gradient(var(--bg) 70%,rgba(247,239,226,0))}
.msh-top b{flex:1;text-align:center;font-size:16px;letter-spacing:.06em}
.msh-back{border:0;background:#fff;border:1.5px solid var(--line);color:var(--sub);font-weight:800;font-size:13px;padding:8px 12px;border-radius:999px;text-decoration:none;cursor:pointer;min-height:38px;display:inline-flex;align-items:center}
.msh-ib{border:1.5px solid var(--line);background:#fff;border-radius:50%;width:38px;height:38px;font-size:16px;cursor:pointer}
.msh-hero{text-align:center;padding:6px 4px 10px}
.msh-logo{display:inline-flex;flex-direction:column;align-items:center;line-height:1;margin:6px 0 10px}
.msh-logo span{font-size:15px;font-weight:900;color:var(--acc);letter-spacing:.3em}
.msh-logo b{font-size:46px;font-weight:900;letter-spacing:.12em;color:var(--ink);text-shadow:0 3px 0 #fff,0 5px 0 var(--line)}
.msh-hero p{font-size:13px;line-height:1.85;color:var(--sub);margin:0 0 8px}
.msh-hero p b{color:var(--acc)}
.msh-demo{width:220px;max-width:80%;height:auto;display:block;margin:4px auto 0;overflow:visible}
.msh-demo .d-t{fill:#fff;stroke:var(--line);stroke-width:2}.msh-demo .d-x{fill:#efe4d2;stroke:var(--line);stroke-width:2}
.msh-demo .d-c{fill:#f7c9b9}.msh-demo .d-l{fill:none;stroke:var(--gold);stroke-width:4;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:6 5;animation:mshDash 1.2s linear infinite}
.msh-demo text{font-size:10px;fill:var(--sub);font-weight:800}
@keyframes mshDash{to{stroke-dashoffset:-22}}
.msh-pv{background:#fff3cd;border:1.5px dashed #e6c46a;color:#8a6a10;font-size:12px;text-align:center;border-radius:10px;padding:6px;margin:0 0 10px}
.msh-card{background:var(--card);border:1.5px solid var(--line);border-radius:18px;padding:14px 14px 12px;margin:0 0 12px;box-shadow:0 3px 0 rgba(160,120,80,.12)}
.msh-card.is-daily{border-color:#f0c9a8;background:linear-gradient(160deg,#fffaf2,#fff0e2)}
.msh-card.is-match{border-color:#cbbbe8;background:linear-gradient(160deg,#fffaf2,#f3ecff)}
.msh-card h2{font-size:16px;margin:0 0 6px;display:flex;align-items:baseline;gap:8px}
.msh-card h2 small{font-size:12px;color:var(--sub);font-weight:700}
.msh-card p{font-size:12.5px;line-height:1.8;color:var(--sub);margin:0 0 10px}
.msh-card a{color:var(--acc2);font-weight:800}
.msh-mis{font-size:14px!important;font-weight:900;color:var(--ink)!important;margin:0 0 4px!important}
.msh-mis2{text-align:center;font-size:12px;font-weight:800;color:var(--acc);margin:0 0 4px}
.msh-row{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 0}
.msh-row .msh-btn{flex:1 1 140px}
.msh-btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:46px;padding:0 16px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font-weight:900;font-size:14px;cursor:pointer;text-decoration:none;width:100%}
.msh-row .msh-btn{width:auto}
.msh-btn.is-pri{background:linear-gradient(135deg,#e8775a,#d0507a);border-color:transparent;color:#fff;box-shadow:0 3px 0 #a8404f}
.msh-btn.is-pri:active{transform:translateY(2px);box-shadow:0 1px 0 #a8404f}
.msh-btn.is-sub{background:#fff;color:var(--acc2);border-color:#d9cdf0}
.msh-btn.is-line{background:#06c755;color:#fff;border-color:transparent}
.msh-btn small{font-size:10.5px;opacity:.7;font-weight:800}
.msh-how{background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:10px 14px;font-size:12.5px;line-height:1.85;color:var(--sub);margin:0 0 16px}
.msh-how summary{font-weight:900;color:var(--ink);cursor:pointer}
.msh-how ol{padding-left:1.3em;margin:8px 0}
.msh-rank{margin-top:10px}
.msh-rl{list-style:none;margin:0;padding:0}
.msh-rl li{display:flex;align-items:center;gap:8px;padding:6px 4px;border-bottom:1px dashed var(--line);font-size:13px}
.msh-rl li.is-me{background:#fff3e6;border-radius:8px}
.msh-rl i{width:22px;text-align:center;font-style:normal;font-weight:900;color:var(--sub)}
.msh-rl img,.msh-ph{width:28px;height:28px;border-radius:50%;background:#f3e6d2;object-fit:cover;flex:0 0 auto}
.msh-rl b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msh-rl em{font-style:normal;font-weight:900;color:var(--acc)}
.msh-rl small{font-size:11px;color:var(--sub);min-width:46px;text-align:right}
.msh-none,.msh-mine{font-size:12px!important;color:var(--sub);text-align:center;margin:6px 0 0!important}
.msh-new{font-size:13px;font-weight:900;color:var(--acc);text-align:center;margin:0 0 6px}
/* 遊ぶ */
.msh-hud{display:flex;align-items:stretch;gap:6px;margin:2px 0 6px;position:relative}
.msh-hud>span{flex:1;background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:4px 6px;text-align:center;display:flex;flex-direction:column}
.msh-hud small{font-size:10px;color:var(--sub);font-weight:800}
.msh-hud b{font-size:18px;font-variant-numeric:tabular-nums;line-height:1.2}
.msh-hud .msh-cb{position:absolute;right:4px;top:100%;flex:none;background:none;border:0;padding:0;font-weight:900;color:var(--acc);font-size:14px;z-index:3;text-shadow:0 1px 0 #fff}
.msh-cb.is-pop{animation:mshPop .5s ease}
@keyframes mshPop{0%{transform:scale(.6)}50%{transform:scale(1.35)}100%{transform:scale(1)}}
.msh-stage{display:flex;justify-content:center;padding:6px 0}
.msh-board{position:relative;border-radius:16px;background:linear-gradient(#e6d3b3,#dcc6a2);box-shadow:inset 0 2px 8px rgba(110,70,30,.25),0 2px 0 #fff;touch-action:manipulation}
.msh-board::before{content:"";position:absolute;inset:5px;border-radius:12px;background:repeating-linear-gradient(45deg,rgba(255,255,255,.06) 0 6px,rgba(0,0,0,.02) 6px 12px);pointer-events:none}
.msh-path{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:4}
.msh-pl1{fill:none;stroke:rgba(255,214,102,.55);stroke-width:12;stroke-linejoin:round;stroke-linecap:round;filter:blur(2px)}
.msh-pl2{fill:none;stroke:#fffbe6;stroke-width:4;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:400;stroke-dashoffset:400;animation:mshDraw .28s ease-out forwards}
@keyframes mshDraw{to{stroke-dashoffset:0}}
.msh-fx{position:absolute;inset:0;pointer-events:none;z-index:6}
.msh-t{position:absolute;width:calc(var(--tw) - 3px);height:calc(var(--th) - 3px);padding:0;border:0;border-radius:9px;cursor:pointer;background:linear-gradient(#fffdf8,var(--k,#fff) 85%);box-shadow:0 3px 0 #c9b08a,0 4px 4px rgba(90,60,30,.25),inset 0 -5px 0 var(--kb,#999);transition:transform .12s,box-shadow .12s,opacity .3s;z-index:2;-webkit-tap-highlight-color:transparent}
.msh-t i{position:absolute;left:6%;right:6%;top:4%;bottom:14%;background-image:url(tiles.webp);background-size:800% 800%;background-repeat:no-repeat;pointer-events:none}
.msh-t.is-in{animation:mshIn .42s cubic-bezier(.2,.9,.3,1.3) both}
@keyframes mshIn{from{transform:translateY(-10px) scale(.7);opacity:0}}
.msh-t.is-sel{transform:translateY(-4px);box-shadow:0 7px 0 #c9b08a,0 0 0 3px var(--gold),0 8px 12px rgba(244,180,43,.5),inset 0 -5px 0 var(--kb,#999);z-index:3}
.msh-t.is-hint{animation:mshHint .9s ease 2}
@keyframes mshHint{0%,100%{transform:none}25%{transform:rotate(-7deg) scale(1.06)}75%{transform:rotate(7deg) scale(1.06)}}
.msh-t.is-shake{animation:mshShake .35s}
@keyframes mshShake{20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}}
.msh-t.is-gone{animation:mshGone .38s ease forwards;pointer-events:none}
@keyframes mshGone{40%{transform:translateY(-6px) scale(1.12)}100%{transform:scale(.2);opacity:0}}
.msh-pt{position:absolute;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--gold);animation:mshPt .6s ease-out forwards}
.msh-pt.is-h{background:#ff8fab;border-radius:50% 50% 0 50%;transform:rotate(45deg)}
@keyframes mshPt{to{transform:translate(var(--dx),var(--dy)) scale(.3);opacity:0}}
.msh-ft{position:absolute;transform:translate(-50%,-50%);font-size:15px;font-weight:900;color:var(--acc);text-shadow:0 2px 0 #fff;animation:mshFt .9s ease-out forwards}
@keyframes mshFt{to{transform:translate(-50%,-160%);opacity:0}}
.msh-tools{display:flex;gap:8px;margin:6px 0 0}
.msh-tools .msh-btn{flex:1;min-height:44px;font-size:13px}
.msh-toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translate(-50%,10px);background:rgba(60,40,30,.9);color:#fff;font-size:13px;font-weight:800;padding:9px 14px;border-radius:999px;opacity:0;transition:.2s;pointer-events:none;max-width:92vw;text-align:center;z-index:20}
.msh-toast.is-in{opacity:1;transform:translate(-50%,0)}
.msh-res{position:fixed;inset:0;z-index:30;background:rgba(60,40,30,.45);display:flex;align-items:center;justify-content:center;padding:16px;animation:mshFade .25s}
@keyframes mshFade{from{opacity:0}}
.msh-resin{background:var(--card);border-radius:22px;max-width:420px;width:100%;max-height:calc(100vh - 32px);overflow:auto;padding:18px 16px 14px;text-align:center;box-shadow:0 10px 30px rgba(60,40,30,.35);animation:mshUp .35s cubic-bezier(.2,.9,.3,1.2)}
@keyframes mshUp{from{transform:translateY(30px) scale(.94)}}
.msh-resin h2{margin:4px 0;font-size:22px}
.msh-resin p{font-size:13px;line-height:1.8;color:var(--sub)}
.msh-big{font-size:42px!important;font-weight:900;color:var(--acc)!important;margin:0!important;line-height:1.1}
.msh-big small{font-size:15px;margin-left:2px}
.msh-bd{width:100%;border-collapse:collapse;font-size:12.5px;margin:8px 0}
.msh-bd td{padding:5px 4px;border-bottom:1px dashed var(--line);text-align:left}
.msh-bd td+td{text-align:right;font-weight:800}
.msh-stars{display:flex;justify-content:center;gap:8px;height:30px}
.msh-stars i{width:26px;height:26px;background:var(--gold);clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);animation:mshStar .6s cubic-bezier(.2,.9,.3,1.4) both}
.msh-stars i:nth-child(2){animation-delay:.15s;transform-origin:center}.msh-stars i:nth-child(3){animation-delay:.3s}
@keyframes mshStar{from{transform:scale(0) rotate(-90deg)}}
.msh-url{width:100%;font-size:13px;padding:10px;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition:none!important}}
