body.versus-active > :not(#versus-shell):not(#opening):not(#vs-map-picker):not(script){display:none!important}
#versus-shell{position:fixed;inset:0;z-index:5;display:grid;grid-template:76px minmax(0,1fr) / minmax(0,1fr) 330px;background:#141b15;color:#e5e5d5;font-family:inherit;overflow:hidden}
#versus-shell[hidden],#versus-shell [hidden]{display:none!important}
#versus-shell button{font:inherit;font-size:12px;cursor:pointer;border:1px solid #586249;border-radius:5px;padding:9px 10px;color:#e4d8b1;background:#2a3428;white-space:nowrap}
#versus-shell button:hover:not(:disabled){background:#44503a;border-color:#d0b46a}
#versus-shell button:focus-visible{outline:2px solid #efcf83;outline-offset:2px}
#versus-shell button:disabled{opacity:.36;cursor:default}
#versus-shell button.active,#versus-shell button[aria-pressed=true]{border-color:#efd188;background:#63532b;color:#fff1c5}
.vs-header{grid-column:1/-1;display:flex;align-items:center;gap:20px;padding:10px 20px;border-bottom:1px solid #62644670;background:#171f19;z-index:2}
.vs-brand{min-width:220px}.vs-brand b{color:#d9c580;font-size:25px;letter-spacing:4px}.vs-brand small{display:block;margin-top:4px;font-size:10px;color:#919b84}
#vs-order{display:flex;justify-content:center;gap:7px;flex:1}
.vs-player{border:1px solid #4b5146;border-radius:5px;padding:7px 10px;color:#b6bdb0;min-width:70px;text-align:center;font-size:11px}.vs-player b{display:block;margin:3px 0;font-size:14px}.vs-player.red b{color:#ed8070}.vs-player.blue b{color:#7db3ed}.vs-player.current{box-shadow:inset 0 -3px #d0b674;border-color:#c7b26d;background:#c5b97613}.vs-player.out{opacity:.35}.vs-player span{color:#bfa980;font-size:10px}
.vs-meta{display:flex;gap:7px;align-items:center;color:#a3ac96;font-size:11px}
.vs-battlefield{position:relative;min-height:0;min-width:0;overflow:hidden}
#vs-canvas{width:100%;height:100%;display:block;touch-action:none}
.vs-map-caption{position:absolute;top:13px;left:16px;pointer-events:none;background:#0c160ec9;border:1px solid #a1985940;border-radius:4px;padding:7px 11px;color:#d1c8a3;font-size:11px}
.vs-camera{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:5px;background:#142016e8;padding:6px;border-radius:7px;border:1px solid #93965a55}
.vs-console{min-height:0;display:flex;flex-direction:column;gap:14px;padding:16px;background:#1b241c;border-left:1px solid #535d4277;overflow-y:auto}
.vs-section-title{display:flex;gap:7px;align-items:center;margin-bottom:10px;font-size:12px;color:#d4c388}.vs-section-title b{font-weight:600}.vs-section-title>span:last-of-type{margin-left:auto;color:#aab599;font-size:10px}.vs-section-title button{padding:4px 7px!important;font-size:10px!important}.vs-online{width:6px;height:6px;border-radius:50%;background:#8cbf80;box-shadow:0 0 8px #78a967}
#vs-ally-message{border-left:2px solid #8cac77;border-radius:2px;padding:11px 12px;background:#283528;color:#d4dec6;font-size:13px;line-height:1.75;min-height:62px}
.vs-orders{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:10px}.vs-orders button{padding:8px 4px!important;font-size:11px!important}.vs-orders button:nth-last-child(-n+2){grid-column:span 1}
#vs-chat-history{max-height:190px;overflow-y:auto;font-size:11px;color:#bbc5ac;padding:8px;background:#111b14}#vs-chat-history p{border-bottom:1px solid #ffffff0c;padding-bottom:5px;line-height:1.6}
.vs-operation{border-top:1px solid #5d684642;padding-top:14px}
#vs-moves{font-size:20px;color:#7de39d}.vs-main-actions{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:7px}#vs-roll{border-color:#c3a466!important}#vs-dice{color:#f2d080;margin-left:4px}#vs-die{font-size:23px;vertical-align:middle;color:#edddad;display:inline-block}#vs-die.rolling{animation:dock-die-tumble .65s ease-in-out infinite}
.vs-secondary-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.vs-secondary-actions>button{flex:1;font-size:11px!important;padding:7px 5px!important}.vs-facing{display:flex;gap:3px}.vs-facing button{padding:6px 8px!important}
#vs-tip{color:#afba9e;font-size:11px;line-height:1.7;margin:10px 0 0}
#vs-selection{display:flex;flex-wrap:wrap;gap:6px;align-items:center;background:#54482955;border:1px solid #a58c51;border-radius:5px;padding:8px;margin-top:9px;font-size:11px}#vs-selection-text{flex:1;min-width:110px}#vs-confirm{color:#ffeeaf!important;border-color:#c3ac65!important}
#vs-cards{display:flex;gap:6px;flex-wrap:wrap;padding-top:10px}#vs-cards button{font-size:11px}
.vs-event-log{flex:1;min-height:100px;border-top:1px solid #4c5738;padding-top:12px}#vs-log{padding:0;list-style:none;margin:0;max-height:260px;overflow-y:auto;font-size:11px;color:#a4b097}#vs-log li{padding:8px 0;border-bottom:1px solid #ffffff0a;line-height:1.6}
.vs-dialog{position:absolute;inset:0;z-index:10;background:#070e0bdd;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(7px)}
.vs-dialog-card{width:min(500px,100%);max-height:85dvh;overflow:auto;border:1px solid #9c8b50;border-radius:12px;padding:30px;background:linear-gradient(135deg,#34412e,#152119);box-shadow:0 20px 90px #000b;box-sizing:border-box}.vs-eyebrow{font-size:10px;letter-spacing:3px;color:#a9b38c}.vs-dialog-card h2{font-size:27px;color:#eee0ac;margin:12px 0 18px;letter-spacing:2px}#vs-dialog-body{font-size:14px;line-height:1.9;color:#c3ceb6}#vs-dialog-body p{margin:10px 0}.vs-dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}#vs-dialog-ok{background:#baa164;color:#182117;border-color:#e0c37c;font-weight:bold;padding:11px 20px}.vs-dialog-formation{display:grid;grid-template:repeat(3,auto)/repeat(3,1fr);gap:6px;text-align:center;padding:14px;border:1px solid #62714955;margin:16px 0;font-size:12px}.vs-dialog-formation span{padding:7px;border-radius:4px;background:#09150e55}.vs-dialog-formation .enemy{color:#88b8f3}.vs-dialog-formation .friend{color:#f29a84}.vs-big-die{text-align:center;font-size:70px;color:#e8d299;font-weight:bold;line-height:1.5}.vs-big-die.rolling{animation:dock-die-tumble .65s ease-in-out infinite}
@keyframes vs-dice{0%{transform:rotate(-10deg) translateY(-2px)}50%{transform:rotate(13deg) translateY(1px)}100%{transform:rotate(-10deg) translateY(-2px)}}
@media(max-width:1000px){#versus-shell{grid-template:66px minmax(0,1fr)/minmax(0,1fr) 290px}.vs-header{gap:8px;padding:7px 10px}.vs-brand{min-width:0}.vs-brand b{font-size:19px}.vs-brand small{display:none}.vs-player{padding:5px;min-width:50px}.vs-meta{gap:4px}.vs-meta button{font-size:10px!important;padding:7px!important}.vs-console{padding:12px}}
@media(max-width:760px){#versus-shell{grid-template:68px minmax(170px,1fr) auto / 1fr;height:100dvh}.vs-header{grid-column:1;display:grid;grid-template-columns:1fr auto;gap:4px;padding:5px 8px}.vs-brand{display:none}#vs-order{gap:4px;justify-content:stretch}.vs-player{min-width:0;flex:1;font-size:9px;padding:3px 4px}.vs-player b{font-size:12px;margin:2px 0}.vs-player span{font-size:9px}.vs-meta{display:grid;grid-template-columns:repeat(3,auto);gap:3px}.vs-meta>span{grid-column:1/-1;text-align:center}.vs-meta #vs-restart,.vs-meta #vs-sound{display:none}.vs-console{border-left:0;border-top:1px solid #576744;padding:8px 10px calc(8px + env(safe-area-inset-bottom));gap:7px;max-height:47dvh;overflow-y:auto}.vs-section-title{margin-bottom:4px;font-size:11px}.vs-operation{padding-top:6px}.vs-operation>.vs-section-title{position:absolute;top:76px;right:10px;background:#142417e8;padding:4px 8px;border-radius:4px;z-index:2}#vs-ally-message{min-height:0;padding:6px 9px;font-size:11px;line-height:1.55}.vs-orders{grid-template-columns:repeat(3,1fr);margin-top:5px;gap:4px}.vs-orders button{font-size:10px!important;padding:8px 1px!important}.vs-main-actions{gap:5px}.vs-main-actions button{padding:8px!important;font-size:12px!important}.vs-secondary-actions{margin-top:5px;gap:4px}.vs-secondary-actions>button{font-size:10px!important}.vs-facing button{padding:5px 7px!important}#vs-tip{font-size:10px;line-height:1.4;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vs-event-log{display:none}.vs-camera{bottom:7px;padding:4px;gap:3px;white-space:nowrap}.vs-camera button{font-size:10px!important;padding:7px 9px!important}.vs-map-caption{top:8px;left:8px;font-size:10px;padding:5px 7px}.vs-dialog-card{padding:22px}.vs-dialog-card h2{font-size:24px}#vs-dialog-body{font-size:12px}#vs-chat-history{max-height:100px}.vs-dialog-formation{font-size:10px;padding:8px}}
@media(max-height:550px) and (min-width:600px){#versus-shell{grid-template:58px minmax(0,1fr)/minmax(0,1fr) 290px}.vs-header{grid-column:1/-1}.vs-console{max-height:none;height:auto}.vs-event-log{display:none}.vs-operation>.vs-section-title{position:static}.vs-orders{grid-template-columns:repeat(3,1fr)}.vs-brand{display:none}.vs-header{display:flex}.vs-meta{display:flex}#vs-ally-message{min-height:0}.vs-camera button{padding:6px!important;font-size:10px!important}}
@media(prefers-reduced-motion:reduce){#vs-die.rolling,.vs-big-die.rolling{animation:none}}

/* 视角按钮占用独立一行，画布取景范围不会落到按钮下面。 */
.vs-battlefield{display:grid;grid-template-rows:minmax(0,1fr) auto}
#vs-canvas{min-height:0}
.vs-camera{position:static;left:auto;bottom:auto;transform:none;justify-self:center;max-width:calc(100% - 16px);margin:5px 8px 9px;flex-wrap:wrap;justify-content:center}
#vs-cards{display:grid;gap:10px}
.vs-card-slot{border:1px solid #77835b55;border-radius:5px;padding:9px;background:#152017}
.vs-card-slot h4{display:flex;justify-content:space-between;gap:6px;font-size:12px;color:#e2ce93;margin:0 0 8px}
.vs-card-slot h4 small{font-size:9px;font-weight:normal;color:#a5b197}
#vs-held-cards{display:flex;flex-wrap:wrap;gap:6px;font-size:11px;color:#aeb99d}
.vs-used-owner{font-size:10px;line-height:1.8;margin-bottom:5px}.vs-used-owner>b{display:block;color:#cbd4bd}.vs-used-owner small{color:#8b9884}
.vs-used-card{display:inline-block;margin:2px 3px 2px 0;border:1px solid #5c7350;padding:2px 5px;border-radius:3px;color:#d0e1c5;background:#344b30}
.vs-used-card:not(.active){color:#8b9884;background:#1f2b21;border-color:#3b483a}

@media(max-width:760px){.vs-camera{margin:3px 6px 4px;gap:3px;padding:3px}.vs-camera button{font-size:10px!important;padding:5px 8px!important}}

#vs-die{width:32px;height:32px;flex-shrink:0;margin-right:4px}#vs-roll{display:flex;align-items:center;justify-content:center;gap:3px}#vs-dice{font-size:22px;line-height:1;color:#edca74}
.vs-big-die.die-face{display:block;width:84px;height:84px;margin:18px auto}

/* 提示跟随各自按钮；方向按上1下3排列。 */
.vs-action-item{display:flex;flex-direction:column;gap:4px;min-width:0;text-align:center}
.vs-action-item>button{flex:1;width:100%;min-height:48px}
.vs-button-hint{font-size:10px;line-height:1.4;color:#a5b095;white-space:nowrap}
.vs-turn-controls{display:flex;flex:0 0 100%;align-items:center;gap:10px}
.vs-facing{display:grid;grid-template-columns:repeat(3,27px);grid-template-rows:repeat(2,26px);gap:3px;flex-shrink:0}
#versus-shell .vs-facing button{padding:0!important;font-size:16px!important}
.vs-facing [data-vs-dir="N"]{grid-area:1/2}
.vs-facing [data-vs-dir="W"]{grid-area:2/1}
.vs-facing [data-vs-dir="S"]{grid-area:2/2}
.vs-facing [data-vs-dir="E"]{grid-area:2/3}
.vs-turn-hint{color:#a5b095;font-size:10px;line-height:1.7}
@media(max-width:760px){.vs-action-item>button{min-height:42px}.vs-button-hint{font-size:9px}.vs-action-item{gap:2px}.vs-turn-controls{gap:8px}.vs-turn-hint{font-size:9px}.vs-facing{grid-template-columns:repeat(3,25px);grid-template-rows:repeat(2,23px)}}

/* 两个常驻卡槽：库存与持续效果。 */
#vs-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:12px}
.vs-card-slot{min-width:0;padding:9px;background:linear-gradient(150deg,#35412a80,#152018);border-color:#a795584a}
.vs-card-slot h4{font-size:11px;margin-bottom:3px;align-items:center}.vs-card-slot h4>b{color:#f0d994;font-size:15px}
.vs-slot-caption{display:block;color:#889a80;font-size:9px;margin-bottom:8px}
#vs-held-cards,#vs-used-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#versus-shell .vs-skill-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:9px 2px 6px;font-size:10px;white-space:normal;background:linear-gradient(145deg,#4a4c32,#1c3025);border:1px solid #b59a58;box-shadow:inset 0 0 0 2px #17241d;min-height:88px;color:#eed591}
.vs-skill-card svg{width:29px;height:29px;filter:drop-shadow(0 2px 2px #0008)}.vs-skill-card b{font-size:10px}.vs-skill-card small{font-size:8px;color:#afb99c}.vs-card-quantity{position:absolute;right:4px;top:3px;font-size:9px;color:#fff2c7}
#versus-shell .vs-skill-card.equipped{border-color:#659d7e;background:linear-gradient(145deg,#325448,#14291f);color:#a7dfbd}
#versus-shell .vs-skill-card[aria-disabled=true]{filter:saturate(.4);opacity:.65;cursor:help}
#versus-shell .vs-skill-card:hover{border-color:#ffe5a2;box-shadow:0 0 8px #d6b76644;transform:translateY(-1px)}
.vs-empty-cards{grid-column:1/-1;display:flex;min-height:85px;align-items:center;justify-content:center;flex-direction:column;gap:6px;border:1px dashed #8e936448;color:#889777;border-radius:4px}.vs-empty-cards>span{font-size:25px;color:#a3926155}.vs-empty-cards>small{font-size:9px}
#vs-card-detail{grid-column:1/-1;margin:0;padding:7px 8px;min-height:35px;font-size:10px;line-height:1.65;color:#c3ceb0;background:#0f1a1244;border-left:2px solid #a9975b}
#versus-shell #vs-explore{display:flex;align-items:center;justify-content:center;gap:8px;flex:0 0 100%;padding:5px 9px!important;background:linear-gradient(110deg,#29433a,#353b23);border-color:#b9a062}
#vs-explore img{width:51px;height:51px;object-fit:contain;filter:drop-shadow(0 2px 4px #0009)}#vs-explore span{display:flex;flex-direction:column;gap:4px;text-align:left}#vs-explore b{font-size:15px;color:#f0d899;letter-spacing:2px}#vs-explore small{font-size:9px;color:#b9c59d}
#vs-canvas.aim-ready{cursor:crosshair!important}
#vs-aim-reticle{position:fixed;z-index:8;width:54px;height:54px;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 0 5px #ea4d2d)}#vs-aim-reticle svg{width:100%;height:100%;fill:none;stroke:#ffe6ad;stroke-width:2;animation:vs-aim-pulse .7s ease-in-out infinite alternate}@keyframes vs-aim-pulse{to{transform:scale(.86);stroke:#ff8960}}
.vs-challenge-brand{display:flex;flex-direction:column;align-items:center;gap:4px;color:#efcf78;font-size:11px;letter-spacing:5px}.vs-challenge-brand img{width:116px;height:116px;object-fit:contain;filter:drop-shadow(0 0 16px #bfa15433)}.vs-challenge-status{text-align:center;color:#eadcb3}
.vs-reward-stage{position:relative;display:grid;place-items:center;min-height:195px;background:radial-gradient(ellipse,#eed18322,transparent 65%)}
.vs-reward-card{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;width:111px;height:155px;border:2px solid #ead085;border-radius:9px;background:linear-gradient(135deg,#647046,#193b2e 50%,#3b4329);box-shadow:0 0 35px #c7b76355,inset 0 0 0 4px #152e24;animation:vs-card-reveal .7s cubic-bezier(.15,.9,.3,1) both;color:#f9de98}.vs-reward-card svg{width:50px;height:50px}.vs-reward-card b{font-size:15px}.vs-reward-card small{font-size:11px;color:#d8ddb8}.vs-card-back{font-size:55px}
@keyframes vs-card-reveal{from{transform:perspective(500px) rotateY(100deg) scale(.3);opacity:0}65%{transform:perspective(500px) rotateY(-9deg) scale(1.06);opacity:1}to{transform:perspective(500px) rotateY(0) scale(1);opacity:1}}
#vs-reward-fly{position:fixed;z-index:15;pointer-events:none;width:64px;height:88px;display:grid;place-items:center;background:#224737;border:2px solid #ead085;border-radius:5px;color:#f9de98;transform:translate(-50%,-50%)}#vs-reward-fly svg{width:40px;height:40px}
@media(prefers-reduced-motion:reduce){#vs-aim-reticle svg,.vs-reward-card{animation:none}}
.vs-action-icon{width:30px;height:30px;flex-shrink:0;filter:drop-shadow(0 2px 2px #0005)}#vs-attack,#vs-end{display:flex;align-items:center;justify-content:center;gap:5px}.vs-radio-icon{width:21px;height:28px;object-fit:contain}
@media(max-width:760px){.vs-action-icon{width:25px;height:25px}.vs-radio-icon{width:17px;height:22px}}
/* 战场动态独立放左侧；右侧保持紧凑的一列操作。 */
@media(min-width:1001px){#versus-shell{grid-template:76px minmax(0,1fr)/180px minmax(0,1fr) 330px}.vs-battlefield{grid-column:2;grid-row:2}.vs-console{grid-column:3;grid-row:2}.vs-event-log{grid-column:1;grid-row:2;display:flex;flex-direction:column;min-height:0;margin:0;padding:12px 10px;border-top:0;border-right:1px solid #535d4277;background:#172018}.vs-event-log #vs-log{max-height:none;overflow-y:auto;min-height:0;font-size:10px}.vs-event-log #vs-log li{padding:7px 0}}
@media(max-width:1000px){#versus-shell>.vs-event-log{display:none}}
.vs-console{gap:8px;padding:10px 12px}.vs-section-title{margin-bottom:6px}#vs-ally-message{padding:7px 9px;font-size:12px;line-height:1.5;min-height:36px}.vs-orders{margin-top:6px;gap:4px}.vs-orders button{padding:6px 3px!important}.vs-operation{padding-top:8px}.vs-action-item>button{min-height:43px}.vs-secondary-actions{margin-top:6px;gap:5px}.vs-turn-controls{gap:7px}#vs-cards{padding-top:8px;gap:6px}.vs-card-slot{padding:7px}#vs-tip{margin-top:6px;line-height:1.4}
@media(min-width:761px) and (min-height:700px){.vs-console{overflow-y:auto}.vs-comms,.vs-operation{flex-shrink:0}#vs-chat-history{position:fixed;z-index:9;top:110px;right:340px;width:270px;max-height:250px;border:1px solid #738552}}
@media(min-width:761px) and (max-height:850px){.vs-console{gap:5px;padding:8px 10px}.vs-turn-hint{font-size:9px}.vs-facing{grid-template-rows:repeat(2,22px)}#vs-explore img{width:39px;height:39px}#versus-shell .vs-skill-card{min-height:66px;padding-top:5px;gap:2px}.vs-skill-card svg{width:23px;height:23px}.vs-empty-cards{min-height:62px}#vs-card-detail{font-size:9px;padding:4px 6px;min-height:27px}.vs-slot-caption{margin-bottom:4px}}

.vs-console>.vs-comms,.vs-console>.vs-operation{zoom:var(--vs-panel-scale,1)}

/* 对战结算：左侧电影感插画，右侧真实战报，底部线下邀请。 */
#vs-result{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:22px;background:#060c0bef;backdrop-filter:blur(9px);overflow-y:auto}
.vs-result-card{width:min(1120px,96vw);max-height:94dvh;overflow-y:auto;display:grid;grid-template-columns:.95fr 1.05fr;border:1px solid #c6ac626e;border-radius:14px;background:#17251d;box-shadow:0 28px 100px #000b;animation:vs-result-arrive .65s ease-out both}
.vs-result-hero{position:relative;min-height:430px;overflow:hidden;background:#13232b}.vs-result-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:48% 55%}.vs-result-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(#05101cb5,transparent 55%,#07191588);pointer-events:none}.vs-result-heading{position:relative;z-index:1;padding:35px 30px}.vs-result-heading>span{font-size:10px;letter-spacing:4px;color:#e6c577}.vs-result-heading h2{font-size:clamp(32px,4vw,54px);line-height:1.15;letter-spacing:5px;margin:14px 0;color:#ffebac;text-shadow:0 3px 24px #060b08}.vs-result-heading p{font-size:13px;line-height:1.8;max-width:340px;color:#e5e8da}.vs-result-seal{position:absolute;bottom:22px;left:30px;z-index:1;color:#eee1b2;font-size:10px;letter-spacing:4px}
#vs-result[data-winner="blue"] .vs-result-heading h2,#vs-result[data-winner="draw"] .vs-result-heading h2{color:#cee8f6}
.vs-result-report{padding:28px 28px 22px;display:flex;flex-direction:column}.vs-result-report-head{display:flex;justify-content:space-between;align-items:center;color:#efd795;font-size:19px;letter-spacing:2px}.vs-result-report-head small{font-size:10px;letter-spacing:0;color:#93a996}
#vs-result-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0 15px}#vs-result-metrics>div{display:flex;flex-direction:column;gap:5px}#vs-result-metrics strong{font:32px Georgia,serif;color:#f0db9e}#vs-result-metrics span{font-size:10px;color:#a6b49b}
.vs-result-table{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}.vs-result-table th,.vs-result-table td{padding:10px 5px;text-align:center;border-bottom:1px solid #aec79920}.vs-result-table thead th{font-size:10px;font-weight:400;color:#a2b293;background:#101b14}.vs-result-table th:first-child{text-align:left}.vs-result-table tbody th{font-weight:400}.vs-result-table tbody small{display:block;font-size:9px;margin-top:4px;color:#9eaf94}.vs-result-red b{color:#f19378}.vs-result-blue b{color:#84b9ed}.vs-result-table td{color:#ede6c9;font-size:15px}
#vs-result-detail{font-size:10px;line-height:1.6;color:#83967f;margin:10px 0}.vs-result-ally{font-size:12px;line-height:1.7;color:#c8d5b6;padding:10px 12px;border-left:2px solid #cbb671;background:#0e191266;margin:4px 0 18px}.vs-result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}#versus-shell #vs-result-replay{background:#d9bd70;color:#16231b;font-weight:bold;border-color:#edd697;padding:11px 18px}#vs-result-reopen{position:fixed;bottom:18px;left:18px;z-index:12}
.vs-result-invite{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;gap:28px;padding:22px 30px;background:linear-gradient(110deg,#273422,#14261f);border-top:1px solid #bfa65870}.vs-result-invite-label{font-size:9px;color:#cdb771;letter-spacing:4px}.vs-result-invite h3{font-size:23px;color:#f2dfaa;margin:8px 0}.vs-result-invite p{font-size:12px;line-height:1.8;color:#bbcab0;margin:0;max-width:650px}.vs-result-shop-action{display:flex;flex-direction:column;align-items:center;gap:10px}#vs-result-shop{display:block;text-decoration:none;font-size:14px;padding:14px 19px;background:linear-gradient(120deg,#f0d98e,#c7a954);color:#1b271a;border:1px solid #f7dfa1;border-radius:5px;font-weight:700;cursor:pointer;white-space:nowrap}#vs-result-shop:hover{filter:brightness(1.08)}#vs-result-shop-note{font-size:10px;color:#a4b298;max-width:240px;text-align:center;line-height:1.5}
@keyframes vs-result-arrive{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:760px){#vs-result{padding:10px}.vs-result-card{display:block;width:100%;max-height:96dvh}.vs-result-hero{min-height:285px}.vs-result-hero>img{object-position:center 66%}.vs-result-heading{padding:22px}.vs-result-heading h2{font-size:36px;margin:10px 0}.vs-result-heading p{max-width:290px;font-size:11px}.vs-result-seal{left:22px;bottom:16px}.vs-result-report{padding:20px}.vs-result-invite{display:block;padding:22px}.vs-result-invite h3{font-size:21px}.vs-result-shop-action{margin-top:18px;align-items:stretch}.vs-result-shop-action a{text-align:center}#vs-result-shop-note{max-width:none}.vs-result-table th,.vs-result-table td{padding:9px 3px}}
@media(min-width:761px) and (max-height:760px){.vs-result-hero{min-height:380px}.vs-result-report{padding:20px}#vs-result-metrics{margin:14px 0 10px}.vs-result-table th,.vs-result-table td{padding:7px 4px}.vs-result-invite{padding:16px 24px}.vs-result-invite h3{font-size:21px}}
@media(prefers-reduced-motion:reduce){.vs-result-card{animation:none}}

/* 独立地图选择层，荣耀入口不调用。 */
#vs-map-picker[hidden]{display:none!important}#vs-map-picker{position:fixed;inset:0;z-index:220;display:grid;place-items:center;padding:18px;background:#07100df2;backdrop-filter:blur(10px);color:#e7e5d2;overflow:auto;font-family:inherit}
#vs-map-picker [hidden]{display:none!important}.vs-map-card{width:min(880px,94vw);max-height:94dvh;overflow:auto;border:1px solid #c6aa6488;border-radius:12px;background:linear-gradient(130deg,#253529,#101f1c);box-shadow:0 24px 80px #000a;padding:26px}.vs-map-card header>span{font-size:10px;letter-spacing:3px;color:#c7b376}.vs-map-card h2{font-size:30px;color:#f1dfa9;letter-spacing:3px;margin:12px 0}.vs-map-card header p{color:#9eaf98;font-size:13px}.vs-map-picker-body{display:grid;grid-template-columns:1fr 1fr;gap:28px}.vs-map-options{display:grid;gap:9px;margin-top:14px}
#vs-map-picker button{font:inherit;border:1px solid #6c7757;border-radius:5px;background:#1b2c22;color:#e4dbb7;padding:10px 14px;cursor:pointer}#vs-map-picker button:focus-visible{outline:2px solid #ffe2a0;outline-offset:3px}#vs-map-picker button:hover{border-color:#f0d790}#vs-map-picker button:disabled{opacity:.4;cursor:default}.vs-map-options button{text-align:left;display:flex;justify-content:space-between;gap:10px;align-items:center;min-height:62px}.vs-map-options b{font-size:15px}.vs-map-options small{font-size:10px;color:#a6b89d}.vs-map-options button[aria-pressed="true"]{border-color:#f0d080!important;background:#50502d!important;box-shadow:inset 3px 0 #f2d587}#vs-map-explain{font-size:12px;line-height:1.7;min-height:40px;color:#c9d3b6}.vs-map-rules{font-size:11px;line-height:2;color:#92a68f;padding-left:18px}#vs-map-warning,#vs-map-error{font-size:12px;color:#e8aa80;line-height:1.5}.vs-map-preview-panel{display:flex;flex-direction:column;align-items:center;gap:10px}.vs-map-preview-panel>small{font-size:10px;color:#a6b59c;line-height:1.8;text-align:center}#vs-map-preview{display:grid;grid-template-columns:repeat(11,1fr);width:100%;max-width:350px;aspect-ratio:1;gap:2px}.map-preview-tile{display:grid;place-items:center;border-radius:2px;font-size:16px;font-weight:bold;color:#e4dec6;background:#303b34;min-width:0;line-height:1}.map-void{visibility:hidden}.map-tile-F{background:#326d3d;color:#afd68a}.map-tile-D{background:#c69947;color:#ffda82}.map-tile-I{background:#d9ebed;color:#78a2ba}.map-tile-R{background:#177ea7;color:#94e6ff}.map-tile-ruin{background:#75633e;color:#ffe3a0}.map-tile-T{background:#293537;color:#efe5cc}.map-tile-A{background:#34475b;color:#eaf5f5}.map-red{border:2px solid #f07860;color:#f68b70}.map-blue{border:2px solid #76ade2;color:#90c6f9}.vs-map-card footer{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}#vs-map-confirm{background:#d8bd75!important;color:#16261d!important;font-weight:bold!important}
@media(max-width:650px){.vs-map-card{padding:18px}.vs-map-picker-body{grid-template-columns:1fr;gap:12px}.vs-map-card h2{font-size:24px}.vs-map-options{grid-template-columns:repeat(3,1fr)}.vs-map-options button{flex-direction:column;padding:9px 5px!important;gap:5px;justify-content:center}.vs-map-options small{font-size:9px;text-align:center}.vs-map-rules{display:none}#vs-map-explain{min-height:0;margin:9px 0}#vs-map-preview{max-width:245px}.vs-map-card footer{justify-content:stretch}.vs-map-card footer button{flex:1}}

/* 手机没有鼠标右键；桌面保留结束行动的快捷方式提示。 */
@media(max-width:900px),(max-width:1100px) and (pointer:coarse){#vs-end-hint{display:none}}

/* 与荣耀版一致：投骰按钮左侧可切换手动/自动。 */
#vs-roll-controls{display:flex;gap:4px;min-width:0;flex:1}
#versus-shell #vs-auto-roll{flex:0 0 34px;padding:3px;font-size:11px;min-height:43px}
#vs-roll-controls #vs-roll{flex:1;min-width:0;padding:6px 3px;min-height:43px}
#vs-roll-controls #vs-die{width:25px;height:25px;margin-right:1px}

#versus-shell .vs-main-actions{grid-template-columns:minmax(0,1.8fr) repeat(2,minmax(0,1fr));gap:5px}
#versus-shell .vs-main-actions .vs-action-item>button{padding:6px 4px}
#versus-shell .vs-main-actions .vs-action-icon{width:24px;height:24px}
#vs-roll-controls #vs-roll{font-size:11px;gap:2px}
#vs-roll-controls #vs-die{width:22px;height:22px;margin:0}
#vs-roll-controls #vs-dice{font-size:18px;margin:0}

/* 遗迹双击说明：沿用游戏骰面，逐项对照六种结果。 */
.vs-ruin-results{list-style:none;padding:0;margin:14px 0;display:grid;gap:9px}
.vs-ruin-results li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;padding:9px;border:1px solid #8c815947;border-radius:7px;background:#14221888}
.vs-ruin-die{display:block;width:32px;height:32px}
.vs-ruin-die svg{display:block;width:100%;height:100%}
.vs-ruin-results strong{display:block;color:#e8d392;font-size:13px;line-height:1.5}
#vs-dialog-body .vs-ruin-results p{margin:3px 0 0;font-size:12px;line-height:1.6}
#vs-dialog-body .vs-ruin-intro,#vs-dialog-body .vs-ruin-note{font-size:12px;line-height:1.7;color:#aebf9f}
