:root{--bg:#faf7fb;--bg2:#fff4ec;--card:#fff;--ink:#1f1b24;--sub:#6f6878;--mute:#a49dad;--line:#ece7f0;--soft:#f5f1f8;
--a1:#ff5a3c;--a2:#f5a524;--grad:linear-gradient(135deg,var(--a1),var(--a2));--glow:0 8px 24px rgba(255,98,52,.32);
--shadow:0 1px 2px rgba(31,27,36,.04),0 8px 24px rgba(31,27,36,.06);--r:22px;--fish-bg:transparent}
@media (prefers-color-scheme:dark){:root{--bg:#141118;--bg2:#1d1512;--card:#1f1b25;--ink:#f4f0f7;--sub:#b3abbd;--mute:#7d7588;--line:#302a38;--soft:#29232f;--shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.35)}}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg);min-height:100dvh;-webkit-tap-highlight-color:transparent;line-break:strict;overflow-wrap:anywhere;overflow-x:hidden}
body::before,body::after{content:"";position:fixed;z-index:-1;border-radius:50%;filter:blur(70px);opacity:.55;pointer-events:none}
body::before{width:420px;height:420px;left:-160px;top:-120px;background:#ffd8c4}
body::after{width:460px;height:460px;right:-200px;top:38%;background:#e3dcff}
@media (prefers-color-scheme:dark){body::before{background:#5a2a1c;opacity:.35}body::after{background:#2f2758;opacity:.4}}
a{color:inherit}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
img.i{width:28px;height:28px;object-fit:contain;flex:none}
.wrap{max-width:520px;margin:0 auto;padding:0 16px 120px}
header.top{display:flex;align-items:center;gap:8px;padding:14px 0}
.logo{display:flex;align-items:center;gap:6px;font-weight:800;font-size:17px;text-decoration:none;letter-spacing:.02em;margin-right:auto}
.ib{min-width:44px;height:40px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--card);display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:600;text-decoration:none}
.hero{text-align:center;padding:10px 0 4px;animation:fu .5s both}
.hero h1{font-size:34px;font-weight:900;letter-spacing:.02em;line-height:1.2;display:flex;align-items:center;justify-content:center;gap:8px}
.hero h1 .g{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero .tg{font-size:17px;font-weight:700;margin-top:8px}.hero .ld{font-size:13px;color:var(--sub);margin-top:4px}
.g{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.strip{display:flex;align-items:center;gap:10px;margin:14px 0 0;padding:10px 14px;border-radius:16px;background:var(--grad);color:#fff;font-size:13px;font-weight:700;box-shadow:var(--glow)}
.strip span{margin-right:auto}.strip b{background:rgba(255,255,255,.25);border-radius:999px;padding:3px 10px;font-variant-numeric:tabular-nums}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);padding:18px;margin-top:14px;animation:fu .5s both}
.card h2{font-size:18px;font-weight:800;display:flex;align-items:center;gap:8px}
.card .sub{font-size:13px;color:var(--sub);margin-top:4px;line-height:1.6}
.seg{display:flex;background:var(--soft);border-radius:14px;padding:4px;gap:4px}
.seg button{flex:1;min-height:40px;border:0;border-radius:11px;background:none;font-weight:700;font-size:14px;color:var(--sub);display:flex;align-items:center;justify-content:center;gap:6px}
.seg button.on{background:var(--card);color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.08)}
.seg img{width:20px;height:20px}
.pane{display:none}.pane.on{display:block;animation:fu .3s both}
.daterow{display:flex;align-items:center;justify-content:space-between;margin-top:14px;font-size:14px;font-weight:700}
.chips{display:flex;gap:6px}
.chip{display:inline-flex;align-items:center;gap:4px;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--card);font-size:13px;font-weight:700}
.chip img{width:18px;height:18px}
.lbl{text-align:center;font-size:13px;color:var(--sub);margin-top:14px;font-weight:600}
.num{text-align:center;font-size:56px;font-weight:900;line-height:1.1;font-variant-numeric:tabular-nums;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.tot{text-align:center;font-size:13px;color:var(--sub)}
.stage{position:relative;margin-top:6px;border-radius:20px;background:var(--fish-bg);min-height:260px;display:flex;align-items:center;justify-content:center;user-select:none;-webkit-user-select:none;touch-action:manipulation;overflow:hidden}
.stage .fishbtn{border:0;background:none;padding:10px;touch-action:manipulation}
.stage svg{display:block;width:min(240px,64vw);height:auto;filter:drop-shadow(0 12px 18px rgba(110,56,18,.25))}
.stage .fsx{display:none;position:absolute;top:12px;right:12px}
.stage.fs{position:fixed;inset:0;z-index:50;border-radius:0;background:var(--fish-bg,var(--bg));min-height:100dvh}
.stage.fs:not([style*="--fish-bg"]){background:var(--bg)}
.stage.fs .fsx{display:inline-flex}
.stage.fs svg{width:min(360px,80vw)}
.stage .fscount{display:none;position:absolute;top:18px;left:20px;font-weight:800;font-size:20px}
.stage.fs .fscount{display:block}
.hit{animation:hit .12s ease-out}@keyframes hit{50%{transform:scale(.93)}}
.pop{position:absolute;pointer-events:none;font-weight:900;font-size:18px;white-space:nowrap;animation:up .9s ease-out forwards;color:var(--pop,#e8572f);text-shadow:0 1px 0 rgba(255,255,255,.7)}
@keyframes up{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-80px)}}
.hint{text-align:center;font-size:13px;color:var(--a1);font-weight:700;margin-top:6px}
.tools{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:14px}
.tools .chip{min-height:40px}
.bar{height:8px;background:var(--soft);border-radius:4px;overflow:hidden;margin-top:8px}.bar i{display:block;height:100%;background:var(--grad);width:0;transition:width .2s}
.med{margin-top:14px;padding:14px;border-radius:18px;background:var(--soft)}
.med .row1{display:flex;align-items:center;justify-content:space-between;font-weight:800}
.opt{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px;font-size:13px}
.opt>span{width:64px;color:var(--sub);font-weight:600}
.opt button{min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--card);font-size:13px;font-weight:600}
.opt button.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.med small{display:block;color:var(--sub);font-size:12px;margin-top:10px;line-height:1.6}
.sw{position:relative;width:52px;height:32px;border-radius:999px;border:0;background:var(--line);transition:background .2s;flex:none}
.sw::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}
.sw[aria-checked=true]{background:var(--a1)}.sw[aria-checked=true]::after{transform:translateX(20px)}
.word{margin-top:14px;padding:14px 16px;border-radius:18px;border:1px dashed var(--line);font-size:14px;line-height:1.8}
.word b{display:block;font-size:12px;color:var(--sub);margin-bottom:2px}
.btn{width:100%;min-height:54px;border:0;border-radius:16px;background:var(--grad);color:#fff;font-weight:800;font-size:16px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:var(--glow);text-decoration:none}
.btn img{width:26px;height:26px}
.btn.weak{background:var(--card);color:var(--ink);border:1px solid var(--line);box-shadow:none}
.btns{display:grid;grid-template-columns:1.6fr 1fr;gap:8px;margin-top:14px}
.feat{display:flex;align-items:center;gap:14px;padding:16px 18px;margin-top:10px;border-radius:20px;background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);text-decoration:none;animation:fu .5s both}
.feat img{width:40px;height:40px}
.feat div{flex:1;min-width:0}.feat b{display:block;font-size:16px}.feat small{display:block;color:var(--sub);font-size:13px;margin-top:2px}
.pill{font-size:11px;font-weight:800;padding:4px 9px;border-radius:999px;background:#eef0ff;color:#4f46e5}
.pill.hot{background:#ffecec;color:#e5322d}
@media (prefers-color-scheme:dark){.pill{background:#2b2a55;color:#b7b2ff}.pill.hot{background:#4a1f1f;color:#ff8a80}}
.sec{font-size:20px;font-weight:900;margin:30px 4px 4px}
.stats{display:grid;grid-template-columns:1fr 1fr;text-align:center;padding:18px 8px}
.stats div+div{border-left:1px solid var(--line)}
.stats b{display:block;font-size:28px;font-weight:900;font-variant-numeric:tabular-nums}.stats span{font-size:12px;color:var(--sub)}
.dia{width:100%;height:auto;display:block}
.dia text{font-family:inherit}
.exl{display:inline-block;font-size:11px;font-weight:800;color:var(--sub);border:1px solid var(--line);border-radius:999px;padding:2px 8px}
.rooms a{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);text-decoration:none}
.rooms a:first-child{border-top:0}.rooms b{flex:1}.rooms small{color:var(--sub)}
.dock{position:fixed;left:0;right:0;bottom:0;z-index:20;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--bg) 60%,transparent)}
.dock .btn{max-width:488px;margin:0 auto}
article.body{margin-top:34px;line-height:1.95;font-size:15px}
article.body h2{font-size:20px;font-weight:900;margin:28px 0 8px}article.body h3{font-size:16px;margin:18px 0 4px}
article.body p,article.body ol,article.body ul{margin-bottom:12px}article.body li{margin-left:20px}
details{border-bottom:1px solid var(--line)}details summary{list-style:none;cursor:pointer;padding:14px 4px;font-weight:700;display:flex;justify-content:space-between;gap:8px}
details summary::after{content:"+";color:var(--sub);font-weight:400;font-size:20px;line-height:1}details[open] summary::after{content:"−"}
details summary::-webkit-details-marker{display:none}details p{padding:0 4px 14px;color:var(--sub);font-size:14px}
footer.ft{text-align:center;font-size:12px;color:var(--sub);padding:34px 0 10px;line-height:2.2}
footer.ft a{margin:0 6px;text-decoration:none}
footer.ft small{display:block;color:var(--mute);line-height:1.7;margin-top:8px}
.ad{margin:26px 0;min-height:0}
.toast{position:fixed;left:50%;bottom:100px;transform:translate(-50%,10px);background:var(--ink);color:var(--bg);padding:12px 18px;border-radius:14px;font-size:14px;font-weight:600;opacity:0;transition:.2s;pointer-events:none;z-index:99;max-width:90vw;text-align:center}
.toast.on{opacity:1;transform:translate(-50%,0)}
dialog{margin:auto auto 0;width:100%;max-width:520px;border:0;border-radius:26px 26px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));background:var(--card);color:var(--ink);max-height:90dvh}
@media (min-width:640px){dialog{margin:auto;border-radius:26px}}
dialog::backdrop{background:rgba(20,16,24,.45);backdrop-filter:blur(2px)}
dialog[open]{animation:fu .25s both}
dialog h3{font-size:19px;font-weight:900;display:flex;align-items:center;gap:8px;margin-bottom:14px}
dialog .x{position:absolute;top:14px;right:14px}
label.f{display:block;font-size:13px;font-weight:700;color:var(--sub);margin:12px 0 6px}
input.t,textarea{width:100%;min-height:50px;border:1px solid var(--line);border-radius:14px;padding:12px 14px;font:inherit;font-size:16px;background:var(--soft);color:var(--ink)}
textarea{min-height:84px;resize:none}
.note{font-size:12px;color:var(--sub);margin-top:8px;line-height:1.6}
.setrow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-weight:700;font-size:14px}
.setrow input[type=color]{width:52px;height:36px;border:1px solid var(--line);border-radius:10px;background:none;padding:2px}
.setrow input.t{width:110px;min-height:40px;text-align:center}
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;text-align:center;font-size:13px;margin-top:10px}
.cal .w{color:var(--sub);font-size:11px;font-weight:700}
.cal .d{aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;position:relative;font-weight:600;background:conic-gradient(var(--a1) calc(var(--p,0)*1%),var(--soft) 0)}
.cal .d span{position:absolute;inset:3px;border-radius:50%;background:var(--card);display:flex;align-items:center;justify-content:center}
.cal .d.ok span{background:none}.cal .d.ok img{width:100%;height:100%}
.cal .d.today span{outline:2px solid var(--ink);outline-offset:-2px}
.calnav{display:flex;align-items:center;justify-content:space-between;font-weight:800}
.calstat{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;margin-top:14px;gap:6px}
.calstat div{background:var(--soft);border-radius:14px;padding:10px 4px}.calstat b{display:block;font-size:20px}.calstat span{font-size:11px;color:var(--sub)}
.sharegrid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;text-align:center;font-size:11px;font-weight:700}
.sharegrid button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:44px}
.sharegrid i{width:52px;height:52px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:var(--soft);font-style:normal}
.sharegrid .ln i{background:#06c755;color:#fff}.sharegrid .xx i{background:#000;color:#fff}
#qrbox{display:flex;justify-content:center;margin-top:14px}#qrbox img{width:200px;height:200px;border-radius:12px;background:#fff;padding:8px}
.juzu{display:flex;justify-content:center;margin-top:10px}
.ema{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.ema div{background:linear-gradient(180deg,#f7dfaa,#efcd86);color:#4a3412;border-radius:12px 12px 16px 16px;padding:16px 10px 10px;position:relative;font-size:14px;line-height:1.6;min-height:116px;display:flex;flex-direction:column;box-shadow:0 4px 10px rgba(140,90,20,.15)}
.ema div::before{content:"";position:absolute;top:6px;left:50%;width:8px;height:8px;margin-left:-4px;border-radius:4px;background:#8a4b1f}
.ema p{flex:1;margin-top:6px}.ema small{display:flex;justify-content:space-between;align-items:center;margin-top:8px}
.ema button{border:0;background:#fff7e6;color:#4a3412;border-radius:999px;padding:6px 10px;font-size:12px;min-height:32px}
.ema .rep{background:none;color:#8a6a40}
/* room */
.rhead{text-align:center;padding:8px 0 0;animation:fu .5s both}
.rhead img{width:64px;height:64px}
.rhead h1{font-size:26px;font-weight:900;margin-top:6px;line-height:1.3}
.rhead .m{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font-size:13px;font-weight:700;color:var(--sub)}
.live{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18)}
.big2{display:grid;grid-template-columns:1fr 1fr;text-align:center}
.big2 div+div{border-left:1px solid var(--line)}
.big2 b{display:block;font-size:34px;font-weight:900;font-variant-numeric:tabular-nums}.big2 span{font-size:12px;color:var(--sub);font-weight:600}
.temple{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:12px;font-size:13px;font-weight:700}
.temple em{font-style:normal;padding:4px 10px;border-radius:999px;background:var(--soft)}
.lock{display:flex;align-items:center;gap:10px;padding:14px;border-radius:18px;background:var(--soft);font-size:13px;font-weight:700;margin-top:14px;line-height:1.6}
.king{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#fff3d6,#ffe1d6);border-color:#ffd8b8}
@media (prefers-color-scheme:dark){.king{background:linear-gradient(135deg,#3b2a12,#3b1d16);border-color:#5a3a1c}}
.king img{width:56px;height:56px}.king b{font-size:20px;display:block}.king small{font-size:12px;color:var(--sub);font-weight:700}
.badges{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.badges span{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;background:var(--card);border:1px solid var(--line);font-size:12px;font-weight:700}
.badges img{width:20px;height:20px}
.rk{list-style:none;margin-top:12px}
.rk li{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.rk li:first-child{border-top:0}
.rk .n{width:22px;text-align:center;font-weight:900;color:var(--sub)}
.rk li:nth-child(1) .n{color:#e0a100}.rk li:nth-child(2) .n{color:#9aa3ad}.rk li:nth-child(3) .n{color:#c27a46}
.av{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;flex:none}
.rk .who{flex:1;min-width:0}.rk .who b{display:flex;align-items:center;gap:6px;font-size:15px}.rk .who small{font-size:11px;color:var(--sub);font-weight:600}
.rk .me{font-size:10px;font-weight:800;background:var(--grad);color:#fff;border-radius:999px;padding:2px 7px}
.rk .val{font-weight:900;font-variant-numeric:tabular-nums;text-align:right;min-width:64px}
.rk .val small{font-size:11px;color:var(--sub);font-weight:600;margin-left:2px}
.rk .bar{margin-top:5px;height:6px}
.pair{display:flex;align-items:center;gap:12px;font-weight:800;line-height:1.5}
.pair img{width:44px;height:44px}.pair small{display:block;color:var(--sub);font-weight:600;font-size:12px}
.mini{min-height:200px}
.mini svg{width:min(180px,48vw)}
@keyframes fu{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media (min-width:900px){.wrap{max-width:560px}.hero h1{font-size:40px}}
