@font-face{font-family:XiKai;src:url(art/kai.ttf) format('truetype');font-display:swap}
:root{--ink:#152d2b;--deep:#101e1e;--gold:#e1be79;--paper:#f0dfb7;--tea:#79958b;--red:#9b432b;font-family:"Microsoft YaHei",system-ui,sans-serif;color:var(--paper);background:#111e20}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 70% 0%,#374b40,transparent 55%),#101e20;display:grid;place-items:center}button,input{font:inherit}button{cursor:pointer;border:0;color:inherit;background:none}button:disabled{cursor:default;opacity:.62}button:focus-visible,input:focus-visible{outline:3px solid #ffdf82;outline-offset:3px}button:hover:not(:disabled){filter:brightness(1.13)}[hidden]{display:none!important}
#shell{width:min(100%,1440px);margin:0 auto;position:relative;isolation:isolate}#mast{height:68px;padding:0 3.3%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #b6985959;background:#142a29}.brand,h1,h2,h3,h4,.primary,.mode strong,.roles strong,#battle-role,.subhead button,.hud b,.home-foot b,#room-code,.king-card b,.quiet,.action-name{font-family:XiKai,KaiTi,serif}.brand{font-size:25px;letter-spacing:.04em}.brand i,.seal{font-style:normal;background:#873e2e;color:#ffdeb1;border:1px solid #c69468}.brand i{display:inline-grid;width:32px;height:32px;place-items:center;font-size:21px}.plain,#step{color:#dfccaa;font-size:14px}.plain{border:1px solid #697367;padding:7px 12px;border-radius:3px}#step{letter-spacing:.22em}
.hero{height:clamp(330px,min(60vw,calc(100dvh - 154px)),740px);min-height:305px;position:relative;background:#567265 url(art/duel.webp) center 42%/cover no-repeat;overflow:hidden}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#091c1bde,transparent 36%),linear-gradient(180deg,#13201c38,transparent 20%);pointer-events:none}.hero-title{position:absolute;top:5%;left:50%;transform:translateX(-50%);display:flex;align-items:center;flex-direction:column;text-align:center;color:#fff0c6;filter:drop-shadow(0 2px 2px #3e2528)}.hero-title h1{font-size:clamp(48px,6vw,88px);line-height:1.1;white-space:nowrap;margin:5px 0;letter-spacing:.06em;text-shadow:1px 2px #573f23,-1px -1px #785634}.seal{font:17px XiKai,KaiTi,serif;padding:2px 9px;letter-spacing:.18em}.roles{display:flex;justify-content:space-around;position:absolute;inset:0;align-items:end}.roles button{width:50%;height:100%;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;padding:0 0 4%;text-shadow:0 2px 6px #171912}.roles button:hover{background:linear-gradient(0deg,#eeb86318,transparent 40%)}.roles span,.role-tag{font-size:12px;letter-spacing:.3em;color:#ffe3a6}.roles strong{font-size:clamp(30px,3.6vw,54px);line-height:1.3}.roles small{border-top:1px solid #dfc89388;margin:5px 0;padding:6px 14px 0;color:#f9e6c2}.roles b{padding-left:8px}.home-foot{min-height:66px;background:#193431;border-top:2px solid #b59a63;display:flex;align-items:center;justify-content:space-between;padding:0 4.5%;gap:16px}.home-foot b{font-size:22px}.home-foot span,.fine{font-size:13px;color:#d1c9ac}.home-foot em{font-size:8px;padding:0 10px;font-style:normal}
.panelpage{background:linear-gradient(100deg,#192e2eef,#213b37ee),url(art/mountains.webp) center/cover;min-height:clamp(460px,77vh,790px);padding:18px 4% 22px;border-bottom:2px solid #977f50}.subhead{display:flex;align-items:center;position:relative;justify-content:center;margin:0 0 16px}.subhead button{position:absolute;left:0;font-size:19px;color:#e5cfaa}.subhead h2,h2{font-size:clamp(29px,3.1vw,47px);margin:0;letter-spacing:.07em}.king-layout{display:grid;grid-template-columns:27% 1fr;gap:1.8%}.king-feature{border:1px solid #b5955a;background:#132e2b;display:flex;flex-direction:column;border-radius:7px;overflow:hidden}.king-feature>img{width:100%;flex:1;min-height:100px;max-height:34vh;object-fit:cover;object-position:top}.king-feature>div{padding:12px 15px}.king-feature h3,.identity h3{font-size:34px;margin:0 0 5px}.king-feature b{color:#e8c37a}.king-feature p,.prep p,.overlay p{font-size:14px;line-height:1.65}.primary,.quiet{display:block;width:100%;padding:10px;border:1px solid #c0a16a;border-radius:5px;font-size:20px}.primary{background:linear-gradient(#a54a31,#793420);color:#fff0cc}.quiet{background:#25433e;margin-top:10px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.king-card{background:#e9d8b5;color:#352d23;border:2px solid #6c7664;border-radius:7px;overflow:hidden;padding:0 0 5px;display:flex;align-items:center;flex-direction:column}.king-card img{width:100%;object-fit:cover;object-position:center 39%;flex:1;min-height:42px;height:clamp(55px,10.5vh,115px)}.king-card b{font-size:clamp(17px,1.75vw,24px);line-height:1.2}.king-card small{font-size:11px}.king-card[aria-pressed=true],.map-choice[aria-pressed=true]{border-color:#ffd77c;box-shadow:0 0 0 2px #c79a48}.fine{margin:12px 0 0;line-height:1.5}
.setup-layout{display:grid;grid-template-columns:1.35fr 1fr;gap:4%;padding:2% 3%}.identity{display:flex;align-items:center;gap:18px}.identity img{width:83px;height:83px;object-fit:cover;border:2px solid #bfa26a;border-radius:50%}.identity span,.mode span,.room-panel>span{color:#d6bea0;font-size:13px}.prep p{color:#e6d5b7}.prep h4{font-size:23px;margin:20px 0 9px}#map-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.map-choice{display:flex;align-items:center;justify-content:center;gap:8px;min-height:60px;border:1px solid #746e56;border-radius:5px;background:#142f2d;font-size:14px}.map-choice img{width:45px;height:45px;object-fit:cover}.modes{border-left:1px solid #ac936652;padding-left:9%;display:flex;flex-direction:column;justify-content:center;gap:12px}.mode{padding:16px 22px;display:flex;flex-direction:column;text-align:left;background:#2f4e45;border:1px solid #a88d5c;border-radius:6px}.mode:first-child{background:#703e30}.mode strong{font-size:27px;display:flex;align-items:center;justify-content:space-between}.mode b{font-size:22px;color:#dac79c}#join-form label{display:block;margin:12px 0 6px;font-size:14px}#join-form>div{display:flex}input{min-width:0;width:100%;padding:10px;background:#152928;color:var(--paper);border:1px solid #827659;border-radius:3px}#join-room{flex-shrink:0;background:#b69b62;color:#1b2d26;padding:0 19px}.room-panel,.overlay article{width:min(440px,96%);margin:20px auto;text-align:center;padding:26px;border:1px solid #bc9d63;border-radius:8px;background:#153330}.room-panel h3{font:45px Georgia,serif;letter-spacing:.15em;margin:8px 0}.room-panel p{color:#c8c6ad}.player-line{display:flex;justify-content:space-between;border-top:1px solid #cfb37a65;padding:12px 0;font-size:15px}.room-panel .primary{margin-top:15px}
#battle{position:relative;height:min(100dvh,900px);overflow:hidden;background:#1d3933;touch-action:none}#field{position:absolute;inset:0;width:100%;height:100%}.hud{position:absolute;left:14px;top:12px;max-width:calc(100% - 120px);display:flex;align-items:center;gap:14px;background:#112925ed;color:#f5e3bf;padding:6px 14px 6px 6px;border:1px solid #bc9f65;border-radius:5px}.hud button{font-weight:bold;font-size:17px;width:35px;height:35px;background:#344b3e;border:1px solid #8d815d;border-radius:4px}.hud small{display:block;font-size:11px;color:#cfbd94}.hud strong{font-size:18px}.counter{font-size:12px;white-space:nowrap}.counter b{font-size:19px;font-variant-numeric:tabular-nums}.hud #heart{color:#f2a57d;white-space:nowrap}.play-footer{pointer-events:none;display:flex;align-items:end;gap:9px;position:absolute;inset:auto 18px 16px}.keyhint{font-size:12px;background:#132e28c9;border-radius:4px;padding:5px 8px}.play-footer button,#stick{pointer-events:auto}#stick{width:78px;height:78px;position:relative;border:2px solid #e8cd9c8c;background:#21403582;border-radius:50%;touch-action:none;display:grid;place-items:center}#stick i{height:29px;width:29px;border-radius:50%;background:#f6dc9d99;border:1px solid #f7e3ba}#actions{margin-left:auto;display:flex;align-items:flex-end;gap:12px}#actions button{position:relative;background:radial-gradient(ellipse at 38% 30%,#7c5134,#472f25 65%);border:2px solid #d0ae70;border-radius:50%;width:74px;height:74px;display:grid;align-content:center;justify-items:center;color:#ffedcb;box-shadow:0 2px 8px #13291f66}#actions button.spent{filter:grayscale(.8);opacity:.8}#actions small{font-size:10px;color:#decea9}.action-name{font-size:19px;white-space:nowrap}#signal{position:absolute;left:50%;bottom:16%;transform:translateX(-50%);max-width:70%;text-align:center;background:#112824e0;color:#f1dfb6;font-size:14px;border-radius:5px;padding:7px 12px;pointer-events:none}#signal:empty{display:none}.overlay{position:absolute;inset:0;background:#0a1a18bc;display:grid;place-items:center}.overlay article{margin:0}.overlay p{white-space:pre-line}.overlay small{color:#cfb27c}.overlay h2{margin:10px 0}#feedback{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);background:#f2dfba;color:#302b23;padding:10px 16px;border-radius:4px;z-index:10;font-size:14px;text-align:center}#feedback:empty{display:none}
@media(max-height:560px) and (orientation:landscape){#mast{height:39px}.brand{font-size:19px}.brand i{width:22px;height:22px;font-size:16px}.hero{min-height:200px;height:calc(100dvh - 79px)}.home-foot{min-height:40px}.panelpage{min-height:calc(100dvh - 39px);padding:7px 3%}.subhead{margin:0 0 5px}.subhead h2{font-size:23px}.grid{gap:4px}.king-card img{height:7vh;min-height:22px}.king-card b{font-size:15px}.king-card small{font-size:9px}.king-feature>img{max-height:24vh;min-height:50px}.king-feature h3,.identity h3{font-size:23px}.king-feature>div{padding:5px 10px}.king-feature p{margin:2px 0;font-size:12px}.primary,.quiet{padding:5px;font-size:16px}.fine{font-size:11px;margin:4px 0}.setup-layout{padding:0}.identity img{width:46px;height:46px}.mode{padding:6px 14px}.map-choice{min-height:38px}.map-choice img{height:29px;width:29px}.prep h4,.prep p{margin:7px 0}.room-panel{margin:0 auto;padding:8px 25px}.room-panel h3{font-size:25px}.player-line{padding:4px}.room-panel .primary{margin:2px 0}.counter b{font-size:16px}}
@media(max-width:680px) and (orientation:portrait){#mast{height:54px}.hero{height:68dvh;min-height:340px;background-size:auto 100%;background-position:center}.roles{gap:4px}.roles button{justify-content:flex-end;padding-bottom:26px}.hero-title{top:5%}.home-foot{align-items:start;flex-direction:column;gap:4px;padding:12px 18px}.king-layout{grid-template-columns:1fr}.king-feature{display:grid;grid-template-columns:110px 1fr}.king-feature>img{height:100%;max-height:165px}.king-feature h3{font-size:22px}.king-feature>div{padding:8px}.king-feature p{margin:4px 0;font-size:12px}.grid{margin-top:10px;gap:5px}.king-card img{height:7vh}.setup-layout{grid-template-columns:1fr}.modes{margin-top:15px;border:none;padding:0;gap:8px}.mode{padding:8px 12px}.hud{gap:6px;max-width:calc(100% - 12px);left:5px;top:5px}.hud #heart,.keyhint{display:none}.hud b{font-size:15px}.play-footer{inset:auto 8px 12px}#actions button{width:59px;height:59px}#stick{width:66px;height:66px}.action-name{font-size:15px}}
.helper-content{max-width:1080px;margin:auto}.slot-list{display:flex;justify-content:center;gap:18px;margin:12px 0 20px}.helper-slot{min-width:155px;display:flex;align-items:center;justify-content:center;gap:12px;padding:11px;border:1px solid #837654;border-radius:5px;background:#15312f}.helper-slot small,.helper-card small{letter-spacing:.12em;font-size:12px}.helper-slot strong,.helper-card h3{font:23px XiKai,KaiTi,serif}.helper-slot[aria-pressed=true]{border-color:#efd38b;background:#3a5142}.helper-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.helper-card{background:#e7d3a9;color:#332d22;overflow:hidden;border:2px solid #938363;border-radius:7px;padding:0;text-align:left}.helper-card img{display:block;width:100%;height:clamp(110px,25vh,248px);object-fit:cover;object-position:center 28%}.helper-card div{padding:9px 13px}.helper-card small{color:#765233}.helper-card h3{margin:4px 0;font-size:29px}.helper-card p{font-size:13px;line-height:1.55;min-height:40px}.helper-card strong{font-size:12px;color:#77552e}.helper-card[aria-pressed=true]{border-color:#f3ce78;box-shadow:0 0 0 1px #ca9c52}.helper-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px}.helper-bottom p{font-size:14px;color:#dfcfb1}.helper-bottom button{width:200px}.helper-content>.fine{font-size:12px}.page button{-webkit-tap-highlight-color:transparent}
@media(pointer:coarse){.keyhint{display:none}}
@media(max-height:560px) and (orientation:landscape){.helper-card img{height:21vh}.helper-card h3{font-size:19px;margin:0}.helper-card p{display:none}.helper-slot{padding:4px}.slot-list{margin:4px 0 8px}.helper-card div{padding:4px 9px}.helper-bottom{margin:3px 0}.helper-bottom p{font-size:12px}}
@media(max-width:650px) and (orientation:portrait){.helper-grid{grid-template-columns:repeat(2,1fr)}.helper-card img{height:13vh}.helper-card p{min-height:0;margin:4px 0}.helper-slot{min-width:0;flex:1}.helper-card h3{font-size:21px}.slot-list{margin:8px 0}.helper-bottom p{font-size:12px}}
