*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
:root{
  /* 波普 Pop Art：黄 / 品红 / 青 / 纯黑硬描边 */
  --bg:#ff3d7f;--panel:#fff6a8;--panel2:#ffe066;--line:#111111;
  --ink:#111111;--muted:#3a2a44;--gold:#ffef3a;--pink:#ff2d6f;
  --cyan:#2ad4ff;--green:#3dff8a;--purple:#c44dff;
  --btn-ink:#111111;--btn-edge:#111111;--btn-shadow:#111111;
  --btn-gold-a:#ffef3a;--btn-gold-b:#ffb800;
  --btn-mint-a:#b8ff6a;--btn-mint-b:#3dff8a;
  --btn-sky-a:#7ef0ff;--btn-sky-b:#2ad4ff;
  --ray:#fffbe6;--glow:#2ad4ff;
  --pop-ink:#111;--pop-yellow:#ffef3a;--pop-pink:#ff2d6f;--pop-cyan:#2ad4ff;--pop-cream:#fff8d6;
}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);overscroll-behavior:none;touch-action:manipulation;
  font-family:"Arial Black","PingFang SC","Microsoft YaHei",Impact,sans-serif}
body.in-battle{overscroll-behavior:none;touch-action:none;-webkit-user-select:none;user-select:none}
body.in-battle #app{overscroll-behavior:none}
#screen-battle.land-lock,#screen-battle{touch-action:none}
body.land #screen-battle{overscroll-behavior:none;touch-action:none}
/* 波普底：大色块 + Ben-Day 网点 */
body{background-color:#ff3d7f;background-image:
  radial-gradient(#111 1.1px,transparent 1.2px),
  radial-gradient(#111 1.1px,transparent 1.2px),
  linear-gradient(135deg,#ff3d7f 0%,#ff7a3d 38%,#ffef3a 72%,#2ad4ff 100%);
  background-size:14px 14px,14px 14px,auto;
  background-position:0 0,7px 7px,0 0;
  background-attachment:fixed;position:relative}
body::before{content:"";position:fixed;inset:-15%;z-index:0;pointer-events:none;
  background:repeating-conic-gradient(from 12deg at 50% 48%,
    rgba(255,239,58,.35) 0deg 8deg,
    transparent 8deg 22deg);
  opacity:.55;mix-blend-mode:multiply;
  animation:pageRays 56s linear infinite}
body::after{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(circle at 12% 18%,rgba(255,239,58,.55),transparent 26%),
    radial-gradient(circle at 88% 14%,rgba(42,212,255,.45),transparent 24%),
    radial-gradient(circle at 78% 82%,rgba(255,45,111,.35),transparent 30%),
    radial-gradient(circle at 50% 100%,rgba(17,17,17,.25),transparent 40%);
  mix-blend-mode:soft-light}
@keyframes pageRays{to{transform:rotate(360deg)}}
#app,.rotate-tip,.mp-float,.mask{position:relative;z-index:1}
body.in-battle::before,body.in-battle::after{opacity:.35}
body.danger-hp #screen-battle .stage-wrap{box-shadow:inset 0 0 60px rgba(255,60,80,.28);animation:dangerPulse 1s ease-in-out infinite}
body.peer-hold #stage{filter:saturate(.65) brightness(.82);transition:filter .25s ease}
body.peer-hold #battle-tip{color:#ffcf4a;font-weight:800}
body.lag-warn #screen-battle .stage-wrap{box-shadow:inset 0 0 40px rgba(255,140,90,.18)}
body.snap-stall #stage{filter:saturate(.7) brightness(.88);transition:filter .2s ease}
body.snap-stall #battle-tip{color:#ffcf4a;font-weight:800}
body.snap-stall #screen-battle .stage-wrap{box-shadow:inset 0 0 36px rgba(255,207,74,.14)}
#result-emoji.streak-win{box-shadow:0 0 0 3px rgba(255,207,74,.35);border-radius:24px}
#result-emoji.streak-win .result-burst{animation:onlinePulse .9s ease-in-out 3,resultBurst 6s linear infinite}
@keyframes dangerPulse{0%,100%{filter:saturate(1.05)}50%{filter:saturate(1.25) brightness(1.04)}}
button,select,input{font:inherit}
button{cursor:pointer;border:0;color:inherit;background:none;transition:transform .12s ease,filter .12s ease,box-shadow .12s ease}
button:active{transform:translateY(2px)}
img{display:block;max-width:100%}
[hidden]{display:none!important}
#app{max-width:1120px;margin:0 auto;padding:0 18px 28px}

.notice-bar{display:flex;align-items:center;gap:8px;margin:8px 0 0;padding:5px 8px 5px 10px;border-radius:999px;
  background:linear-gradient(90deg,#4a3510,#2a1840 55%,#1a2848);border:2px solid #6a5220;
  box-shadow:0 3px 0 var(--btn-shadow);font-size:11px;font-weight:700;color:#d8c8ff}
.notice-bar b{color:var(--btn-ink);flex:none;padding:2px 8px;border-radius:999px;border:2px solid var(--btn-edge);
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));font-weight:900;font-size:10px}
.notice-bar span{flex:1;min-width:0;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notice-bar button{flex:none;width:24px;height:24px;border-radius:50%;border:2px solid var(--btn-edge);
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));color:var(--btn-ink);font-size:12px;font-weight:900;padding:0;line-height:1}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px 10px;flex-wrap:wrap;
  margin:8px 0 0;border-radius:18px;
  background:linear-gradient(180deg,rgba(255,250,210,.22),rgba(140,220,240,.12) 45%,rgba(20,70,90,.18));
  border:2px solid rgba(255,240,180,.28);box-shadow:0 4px 0 rgba(10,48,60,.28),inset 0 1px 0 rgba(255,255,255,.25);
  backdrop-filter:blur(6px)}
.brand-wrap{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;flex:1 1 auto;overflow:visible}
.brand{position:relative;font-size:24px;font-weight:900;letter-spacing:2px;color:#ffe566;
  text-shadow:0 3px 0 #1a4050,0 0 28px rgba(255,240,160,.55),0 0 8px rgba(255,255,255,.35);
  -webkit-text-stroke:.5px rgba(20,60,70,.45);display:inline-flex;align-items:center;gap:8px;
  margin-right:22px;padding-top:2px;overflow:visible}
.brand-badge{position:absolute;top:-8px;right:-18px;z-index:3;pointer-events:none;
  font-size:11px;font-weight:900;letter-spacing:.5px;line-height:1;-webkit-text-stroke:0;
  color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.45);padding:4px 7px;border-radius:8px 10px 9px 3px;
  border:2px solid rgba(255,255,255,.92);transform:rotate(12deg);
  background:linear-gradient(115deg,#ff3b6b,#ff8a00 22%,#ffd400 42%,#19d3a5 62%,#3b82ff 80%,#c44dff 100%);
  background-size:240% 240%;animation:brand-badge-shine 2.4s ease-in-out infinite;
  box-shadow:0 2px 0 rgba(20,40,60,.45),0 0 12px rgba(255,90,180,.55)}
@keyframes brand-badge-shine{0%,100%{background-position:0% 40%}50%{background-position:100% 60%}}
.nick-chip,.title-chip{border:2px solid var(--btn-edge);background:linear-gradient(180deg,#3a2a0a,#241830);
  border-radius:999px;padding:6px 12px;font-size:11px;font-weight:800;color:#d8c8ff;max-width:148px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 3px 0 var(--btn-shadow)}
.user-chip-wrap{display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:220px}
.nick-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 4px}
.nick-chip-av{width:24px;height:24px;border-radius:50%;overflow:hidden;flex:none;
  border:2px solid rgba(255,207,74,.55);background:#1a3040;box-shadow:0 0 0 1px rgba(0,0,0,.25)}
.nick-chip-av img{width:100%;height:100%;object-fit:cover;display:block}
.nick-chip b{color:var(--gold);font-weight:900;min-width:0;overflow:hidden;text-overflow:ellipsis}
.friend-chip{flex:none;border:2px solid #1a4058;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:900;
  color:#e8f7ff;background:linear-gradient(180deg,#2a6a88,#163a50);box-shadow:0 3px 0 rgba(8,24,40,.55)}
.friend-chip:hover{filter:brightness(1.08);transform:translateY(-1px)}
/* 大厅角色卡内：用户条在战绩下方；好友嵌进昵称条右侧 */
#lobby-hero-card .lobby-user-chip{
  grid-column:1/-1;display:block;width:100%;max-width:100%;min-width:0;
  margin:2px 0 0;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible;z-index:2}
#lobby-hero-card .lobby-user-chip .nick-chip{
  display:flex;align-items:center;gap:6px;width:100%;max-width:none;min-width:0;
  height:30px;box-sizing:border-box;padding:2px 3px 2px 3px;
  border:2px solid #17102e;border-radius:999px;
  background:linear-gradient(180deg,#fffdf8,#ffe9b0);
  box-shadow:2px 2px 0 rgba(23,16,46,.55);font-size:11px}
#lobby-hero-card .lobby-user-chip .nick-chip b{
  color:#17102e;flex:1 1 auto;min-width:0;text-align:left;font-size:11px;line-height:1.1}
#lobby-hero-card .lobby-user-chip .nick-chip-av{
  width:22px;height:22px;border-color:#17102e;background:#dff9ff;box-shadow:none}
#lobby-hero-card .lobby-user-chip .nick-chip-act{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  margin:0;padding:0 8px;height:22px;font-style:normal;font-size:10px;font-weight:900;
  line-height:1;border:2px solid #17102e;border-radius:999px;
  box-shadow:1px 1px 0 rgba(23,16,46,.4);cursor:pointer;user-select:none}
#lobby-hero-card .lobby-user-chip .nick-chip-home{
  background:linear-gradient(180deg,#ffe9a8,#ffcf4a);color:#17102e}
#lobby-hero-card .lobby-user-chip .nick-chip-friends{
  background:#e8f8ff;color:#0a3050}
#lobby-hero-card .lobby-user-chip .nick-chip-home:hover,
#lobby-hero-card .lobby-user-chip .nick-chip-home:focus{
  background:linear-gradient(180deg,#fff0c0,#ffd76a);outline:none}
#lobby-hero-card .lobby-user-chip .nick-chip-friends:hover,
#lobby-hero-card .lobby-user-chip .nick-chip-friends:focus{
  background:#d4f0ff;outline:none}
#lobby-hero-card .lobby-user-chip .nick-chip:hover{
  filter:none;transform:none;background:linear-gradient(180deg,#fff,#ffe08a)}
.shop-chip{flex:none;border:2px solid #1a4058;border-radius:999px;padding:5px 12px;font-size:11px;font-weight:900;
  color:#fff;background:linear-gradient(180deg,#54c8f0,#2a78c8);box-shadow:0 3px 0 rgba(8,24,40,.55);text-shadow:0 1px 0 rgba(20,40,90,.35)}
.shop-chip:hover{filter:brightness(1.08);transform:translateY(-1px)}
.title-chip{border-color:#4a1020;background:linear-gradient(180deg,#4a2030,#2a1020)}
.title-chip i{font-style:normal;color:var(--pink);font-weight:900}
.region-chip{display:inline-flex;align-items:center;gap:3px;border:2px solid #1a4058;border-radius:999px;
  padding:5px 10px 5px 8px;font-size:11px;font-weight:900;color:#dff6ff;
  background:linear-gradient(180deg,#1a4058,#0e2438);box-shadow:0 3px 0 rgba(8,24,40,.55);max-width:120px}
.region-chip .region-pin{font-style:normal;font-size:12px;line-height:1}
.region-chip b{font-weight:900;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.region-chip:hover{filter:brightness(1.08);transform:translateY(-1px)}
.nick-chip:hover,.title-chip:hover{filter:brightness(1.08);transform:translateY(-1px)}
.lobby-power-row{display:flex;flex-wrap:wrap;gap:4px;align-items:center;justify-content:center}
.lobby-stage > .lobby-power-row{
  position:absolute;left:4px;right:4px;bottom:4px;z-index:5;margin:0;padding:0;
  gap:3px;pointer-events:none}
.lobby-stage > .lobby-power-row > *{pointer-events:auto}
.lobby-power-row .lobby-rule-btn{margin:0;padding:2px 7px;border:2px solid #17102e;border-radius:999px;
  background:#fff;color:#3a5568;font-size:10px;font-weight:900;box-shadow:1px 1px 0 rgba(23,16,46,.45)}
.lobby-power-row .lobby-rule-btn:hover{color:#17102e;background:#ffe9a8}
#lobby-hero-card .lobby-meta{grid-column:1/-1;display:inline-flex;align-items:center;justify-content:center;
  margin:2px auto 4px;padding:4px 10px;border-radius:999px;border:2px solid #17102e;
  background:#fff8e8;color:#3a2808;font-size:11px;font-weight:800;box-shadow:2px 2px 0 rgba(23,16,46,.55);
  max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lobby-week-rank{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;border:2px solid #17102e;
  font-size:11px;font-weight:900;box-shadow:2px 2px 0 rgba(23,16,46,.55);letter-spacing:.2px}
.lobby-week-rank[data-tier="none"]{background:#d8dde8;color:#4a5568}
.lobby-week-rank[data-tier="plain"]{background:linear-gradient(#e8f0ff,#c8d8f0);color:#243658}
.lobby-week-rank[data-tier="teal"]{background:linear-gradient(#c8fff0,#54e0c0);color:#0a4038}
.lobby-week-rank[data-tier="blue"]{background:linear-gradient(#b8e8ff,#54b0ff);color:#0a2850;box-shadow:0 0 10px rgba(84,176,255,.45)}
.lobby-week-rank[data-tier="purple"]{background:linear-gradient(#e0c8ff,#a878ff);color:#2a1050;box-shadow:0 0 12px rgba(168,120,255,.5)}
.lobby-week-rank[data-tier="orange"]{background:linear-gradient(#ffe0a8,#ff9a3c);color:#4a2008;box-shadow:0 0 12px rgba(255,154,60,.55)}
.lobby-week-rank[data-tier="gold"]{background:linear-gradient(#fff3b0,#ffd76a 40%,#ffb020);color:#4a2808;
  box-shadow:0 0 14px rgba(255,207,74,.65);animation:rank-glow 1.6s ease-in-out infinite}
.lobby-week-rank[data-tier="legend"]{background:linear-gradient(110deg,#fff7c8,#ffd76a 30%,#ff8a2b 55%,#ff5adc 80%,#54f2ff);
  background-size:220% 220%;color:#2a1008;animation:rank-legend 2.2s linear infinite;
  box-shadow:0 0 16px rgba(255,90,180,.55),0 0 8px rgba(255,215,100,.7);border-color:#fff}
@keyframes rank-glow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.12)}}
@keyframes rank-legend{0%{background-position:0% 50%}100%{background-position:100% 50%}}
.lobby-rule-btn{display:inline-flex;align-items:center;gap:4px;cursor:pointer}
.lobby-rule-btn i{font-style:normal;opacity:.85}
.rule-body{display:flex;flex-direction:column;gap:10px;margin:4px 0 8px}
.rule-body p{margin:0;font-size:13px;font-weight:700;line-height:1.55;color:#2a3548}
.rule-body b{color:#a1123f}
.region-panel .region-tabs{display:flex;gap:8px;margin:0 0 10px}
.region-panel .region-tabs button{flex:1;padding:8px 10px;border-radius:12px;border:2px solid #17102e;
  background:#fff;font-weight:900;color:#17102e}
.region-panel .region-tabs button.on{background:linear-gradient(#ffe08a,#ffb020)}
.region-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;
  max-height:min(52vh,360px);overflow:auto;padding:2px}
.region-grid button{padding:8px 6px;border-radius:12px;border:2px solid #17102e;background:#fff;
  font-size:12px;font-weight:900;color:#17102e}
.region-grid button.on{background:linear-gradient(#c8f0ff,#7fd0ff);box-shadow:2px 2px 0 rgba(23,16,46,.55)}
.profile-rank-box{margin:0 0 10px;padding:10px;border-radius:14px;border:2px solid rgba(255,255,255,.14);background:rgba(8,30,40,.28)}
.profile-rank-head{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.profile-rank-head b{font-size:13px;color:#17102e}
.profile-rank-head .ghost{margin-left:auto;padding:4px 10px;font-size:11px}
.profile-rank-list{display:flex;flex-direction:column;gap:6px}
.profile-rank-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:12px;
  border:2px solid rgba(255,255,255,.12);background:rgba(0,0,0,.18)}
.profile-rank-item em{font-style:normal;font-weight:900;color:#fff;min-width:72px}
.profile-rank-item .rk{margin-left:auto;font-size:12px;font-weight:900;padding:2px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.2)}
.rank-share-cv{width:100%;max-width:320px;height:auto;display:block;margin:8px auto;border-radius:12px;border:2px solid #17102e;background:#1a2030}
.top-actions{display:flex;gap:6px;flex-wrap:wrap;max-width:100%;justify-content:flex-end;align-items:center}
.top-actions .ghost{padding:7px 11px;font-size:12px;white-space:nowrap}
.top-actions .top-share,
.top-actions #btn-share-site.top-share{
  display:inline-flex!important;align-items:center;justify-content:center;
  width:34px;min-width:34px;height:34px;padding:0!important;margin:0;
  border-radius:50%!important;aspect-ratio:1/1;box-sizing:border-box;
  line-height:0;flex:none
}
.top-actions .top-share svg,
.top-actions #btn-share-site.top-share svg{
  display:block;width:16px;height:16px;margin:0;flex:none
}
.wx-share-cover{position:absolute;left:-9999px;top:0;width:300px;height:300px;opacity:0;pointer-events:none}
.wx-share-tip{
  position:fixed;inset:0;z-index:260;background:rgba(8,4,20,.72);
  color:#fff8e8;padding:18px 16px;box-sizing:border-box;
  display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;gap:8px}
.wx-share-tip[hidden]{display:none!important}
.wx-share-tip-arrow{
  width:0;height:0;margin:2px 18px 0 0;
  border-left:10px solid transparent;border-right:10px solid transparent;
  border-bottom:14px solid #ffe08a;
  filter:drop-shadow(0 2px 0 #17102e);align-self:flex-end}
.wx-share-tip>b{font-size:16px;font-weight:900;color:#ffe08a;text-shadow:0 2px 0 #17102e;margin-right:8px}
.wx-share-tip>p{margin:0 8px 0 0;max-width:280px;text-align:right;font-size:13px;font-weight:800;line-height:1.55;color:#fff}
.wx-share-tip em{color:#ffe08a;font-style:normal}
.wx-share-tip .primary{margin:6px 8px 0 0;padding:9px 16px;font-weight:900}
.wx-share-tip-close{
  position:absolute;top:10px;left:12px;width:34px;height:34px;border-radius:999px;
  border:2px solid #17102e;background:#fff;color:#17102e;font-size:16px;font-weight:900;cursor:pointer}
.mask-topmost{z-index:120!important}
/* 对外信息卡：必须压过好友/世界聊天等同层 mask */
.mask-card-top,
#panel-card.mask{
  z-index:140!important;
}
body.fake-land .mask-card-top,
body.fake-land #panel-card.mask{
  z-index:140!important;
}
.more-panel{width:min(380px,96%)}
.more-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 2px}
.more-grid .ghost{width:100%;padding:12px 10px;font-size:14px;font-weight:900;text-align:center;
  box-sizing:border-box}
.vs-pick{margin-bottom:12px;text-align:left;padding:10px;border-radius:16px;
  background:linear-gradient(180deg,rgba(84,242,255,.08),rgba(0,0,0,.18));
  border:2px solid rgba(84,242,255,.22);box-shadow:0 3px 0 rgba(18,6,31,.25)}
.vs-hint{margin:8px 0 0;font-size:11px;font-weight:800;color:#9fe8ff;
  padding:4px 10px;border-radius:999px;display:inline-block;
  background:rgba(10,40,60,.45);border:1px solid rgba(84,242,255,.25)}
.field{width:100%;padding:12px 14px;border-radius:999px;border:2px solid var(--line);background:#120c26;
  color:var(--ink);outline:none;margin-bottom:10px;font-weight:700;box-shadow:inset 0 2px 0 rgba(0,0,0,.25)}
.field:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(255,207,74,.18),inset 0 2px 0 rgba(0,0,0,.25)}
.nick-field-row{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.nick-field-row .field{flex:1;min-width:0;margin-bottom:0}
.nick-dice{flex:none;width:46px;height:46px;border-radius:50%;
  border:2px solid var(--btn-edge);background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));
  color:var(--btn-ink);font-size:22px;line-height:1;box-shadow:0 4px 0 var(--btn-shadow);
  display:flex;align-items:center;justify-content:center;padding:0}
.nick-dice:hover{filter:brightness(1.06);transform:translateY(-1px)}
.nick-dice:active{transform:translateY(1px) rotate(25deg);box-shadow:0 2px 0 var(--btn-shadow)}

/* —— 个人主页（顶栏身份 + 左侧 Tab） —— */
.profile-panel{padding:0 0 10px;overflow:hidden;display:flex;flex-direction:column;min-height:0}
.profile-panel>.panel-close{z-index:3}
.profile-panel.panel-side{width:min(860px,96%);max-height:min(92vh,720px)}
.profile-hero{
  position:relative;display:grid;grid-template-columns:72px 1fr;gap:8px 12px;align-items:center;
  flex:0 0 auto;padding:16px 16px 12px;
  background:
    radial-gradient(ellipse at 18% 20%,rgba(255,220,120,.28),transparent 42%),
    radial-gradient(ellipse at 88% 0%,rgba(90,160,255,.35),transparent 46%),
    linear-gradient(160deg,#0c1a38 0%,#16305a 48%,#1a1440 100%);
  border-bottom:2px solid rgba(120,170,255,.28)}
.profile-avatar{
  width:68px;height:68px;border-radius:50%;padding:0;position:relative;overflow:hidden;
  border:3px solid rgba(255,224,120,.75);background:radial-gradient(circle at 40% 30%,#4a6a90,#142038);
  box-shadow:0 0 0 3px rgba(20,40,80,.55),0 0 18px rgba(255,207,74,.35),0 5px 0 rgba(8,12,28,.45)}
.profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.profile-avatar i{position:absolute;left:0;right:0;bottom:0;font-style:normal;font-size:10px;font-weight:900;
  color:#2a1240;background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));padding:2px 0;text-align:center}
.profile-id{min-width:0}
.profile-id b{display:block;font-size:20px;font-weight:900;color:#fff;letter-spacing:.04em;
  text-shadow:0 2px 0 rgba(0,0,0,.35);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-id em{display:inline-block;margin-top:4px;font-style:normal;font-size:12px;font-weight:800;color:#ff8fa8;
  padding:2px 8px;border-radius:999px;border:1px solid rgba(255,140,160,.35);background:rgba(60,20,40,.45)}
.profile-rank-pill{display:inline-block;margin:6px 0 0 6px;font-size:11px;font-weight:900;color:#0c2a44;
  padding:2px 9px;border-radius:999px;border:2px solid #0c3a55;
  background:linear-gradient(#b8ecff,#54c4ff);box-shadow:0 2px 0 #0c1f3a}
.profile-split{flex:1 1 auto;min-height:0;margin:10px 12px 0}
.profile-pane{min-height:0}
.profile-pane-block{padding:2px 2px 8px;min-height:0}
.profile-quick{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 0;padding:0 2px}
.profile-quick .ghost{padding:7px 12px;font-size:12px}
.profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:0;
  background:transparent}
.profile-stat{text-align:center;padding:10px 4px;border-radius:12px;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(0,0,0,.16));
  border:1px solid rgba(255,255,255,.1)}
.profile-stat b{display:block;font-size:16px;font-weight:900;color:#c4184a;line-height:1.1}
.profile-stat span{display:block;margin-top:3px;font-size:10px;font-weight:800;color:var(--muted)}
.profile-sec{display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:2px 2px 8px;font-size:13px;font-weight:900;color:#17102e}
.profile-sec-main{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;flex:1 1 auto}
.profile-sec-main b{line-height:1.2;color:#17102e}
.profile-meta{display:inline-flex;align-items:center;max-width:100%;padding:3px 9px;border-radius:999px;
  border:2px solid #17102e;background:#fff8e8;color:#3a2808;font-size:11px;font-weight:800;
  box-shadow:2px 2px 0 rgba(23,16,46,.45);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-sec .ghost{padding:4px 10px;font-size:11px;flex:none}
.profile-hist{max-height:none;padding:0;margin:0;overflow:visible}
.profile-hist .hist-item{padding:7px 9px}
.profile-avatar-pick{padding:0;border-top:0;background:transparent}
.profile-pick-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.profile-pick-head b{font-size:13px;color:var(--gold)}
.profile-avatar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:8px;
  max-height:min(46vh,320px);overflow:auto;-webkit-overflow-scrolling:touch;padding-bottom:6px}
.profile-av-cell{aspect-ratio:1;border-radius:14px;overflow:hidden;padding:0;border:2px solid rgba(255,255,255,.18);
  background:#142438;box-shadow:0 2px 0 rgba(18,6,31,.3)}
.profile-av-cell img{width:100%;height:100%;object-fit:cover;display:block}
.profile-av-cell.on{border-color:var(--gold);box-shadow:0 0 0 2px rgba(255,207,74,.35),0 2px 0 var(--btn-shadow)}
.profile-panel .panel-foot{padding:8px 14px 4px;margin:8px 0 0;flex:0 0 auto}
.profile-account{margin:0;padding:12px;border-radius:14px;
  background:linear-gradient(165deg,#fffdf8,#fff1c8 55%,#ffe3a0);
  border:3px solid #17102e;box-shadow:4px 4px 0 rgba(23,16,46,.55)}
.profile-acc-row{display:flex;align-items:center;gap:8px;margin:0 0 8px;min-width:0;
  padding:8px 10px;border-radius:12px;border:2px solid #17102e;background:#fff;
  box-shadow:2px 2px 0 rgba(23,16,46,.35)}
.profile-acc-row span{flex:0 0 auto;font-size:11px;font-weight:900;color:#17102e;
  padding:3px 8px;border-radius:999px;border:2px solid #17102e;background:#e8f8ff}
.profile-acc-row b{flex:1;min-width:0;font-size:16px;font-weight:900;color:#c4184a;letter-spacing:.08em;
  font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis}
.profile-acc-row .ghost{padding:4px 10px;font-size:11px;flex:0 0 auto;
  border:2px solid #17102e;border-radius:999px;background:#fff8e8;color:#17102e;
  box-shadow:1px 1px 0 rgba(23,16,46,.4);font-weight:900}
.profile-acc-row .ghost:hover{background:#ffe08a}
.profile-acc-save{width:100%;margin-top:4px;border:3px solid #17102e!important;
  background:linear-gradient(#ffe9a8,#ffcf4a)!important;color:#17102e!important;
  box-shadow:3px 3px 0 rgba(23,16,46,.55)!important;font-weight:900}
.profile-account > .panel-note{margin:10px 0 0;padding:8px 10px;border-radius:12px;
  border:2px solid #17102e;background:#fff;color:#17102e;box-shadow:2px 2px 0 rgba(23,16,46,.35)}
.profile-province{margin:0 0 10px}
.profile-rank-box{margin:0}
.account-card{margin:0 0 12px;padding:16px 14px 14px;border-radius:16px;
  background:linear-gradient(145deg,#1a4a58 0%,#0d2a36 55%,#1c3d2a 100%);
  border:2px solid rgba(255,207,74,.45);box-shadow:0 8px 0 rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.12)}
.account-card-brand{font-size:12px;font-weight:900;color:var(--gold);letter-spacing:.06em}
.account-card-nick{margin:8px 0 12px;font-size:22px;font-weight:900;color:#fff}
.account-card-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;
  padding:8px 10px;margin:0 0 8px;border-radius:12px;background:rgba(0,0,0,.28)}
.account-card-row span{font-size:12px;font-weight:800;color:#9ec8d4}
.account-card-row b{font-size:22px;font-weight:900;color:#ffcf4a;letter-spacing:.12em;
  font-variant-numeric:tabular-nums}
.account-card-tip{margin:8px 0 0;font-size:11px;font-weight:700;color:#b7d7e0;line-height:1.5}
.account-save-acts{gap:8px;flex-wrap:wrap}
.account-save-acts .primary,.account-save-acts .ghost{flex:1;min-width:120px}
.field-label{display:block;margin:0 0 6px;font-size:12px;font-weight:800;color:var(--muted)}
#panel-account-login .field{margin-bottom:10px}
@media(max-width:520px){
  .profile-stats{grid-template-columns:repeat(2,1fr);gap:6px}
  .profile-stat{padding:8px 4px}
  .profile-stat b{font-size:15px}
  .profile-hero{grid-template-columns:60px 1fr;padding:12px;gap:8px 10px}
  .profile-avatar{width:58px;height:58px}
  .profile-id b{font-size:17px}
  .profile-split{margin:8px 8px 0}
  .profile-panel.panel-side{width:min(96vw,520px);max-height:92vh}
}
body.port-pad .profile-avatar-grid{max-height:min(42vh,260px)}
body.fake-land .profile-hero{padding:10px 12px;gap:8px 10px;grid-template-columns:56px 1fr}
body.fake-land .profile-avatar{width:54px;height:54px}
body.fake-land .profile-id b{font-size:16px}
body.fake-land .profile-stats{gap:4px}
body.fake-land .profile-avatar-grid{max-height:min(38vh,200px);grid-template-columns:repeat(auto-fill,minmax(44px,1fr))}
body.fake-land .profile-account{padding:8px 10px}
body.fake-land .profile-acc-row b{font-size:14px}
body.fake-land .account-card-nick{font-size:18px;margin:4px 0 8px}
body.fake-land .account-card-row b{font-size:18px}
body.port-pad .profile-account{padding:8px 10px}
body.land .profile-panel .side-split,
body.fake-land .profile-panel .side-split{grid-template-columns:104px minmax(0,1fr)}
.panel-note{margin:0 0 8px;font-size:11px;font-weight:700;color:#d8c8ff;line-height:1.6;
  padding:8px 10px;border-radius:12px;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.08)}
.hist-list{max-height:320px;overflow:auto;display:grid;gap:8px}
.hist-item{display:grid;grid-template-columns:56px 1fr auto;gap:10px;align-items:center;
  background:linear-gradient(90deg,rgba(255,207,74,.06),#171029);border:2px solid var(--line);border-radius:14px;padding:9px 11px;font-size:12px;
  box-shadow:0 3px 0 rgba(18,6,31,.28)}
.hist-item.lose{background:linear-gradient(90deg,rgba(255,107,138,.08),#171029)}
.hist-item b{color:var(--gold)}.hist-item.lose b{color:var(--pink)}
.hist-item span{color:var(--muted)}.hist-item > span{color:#fff;font-weight:800}
.hist-item em{font-style:normal;color:#ffe9a8;font-size:11px;font-weight:700}
.hist-item div > span{color:#c8d8e8}
.hist-item .hist-replay{
  flex:0 0 auto;border:2px solid #17102e;border-radius:10px;padding:6px 10px;
  font-size:12px;font-weight:900;cursor:pointer;line-height:1.1;
  background:linear-gradient(#c9a0ff,#8b5cf6);color:#fff;text-shadow:0 1px 0 #17102e;
  box-shadow:2px 2px 0 rgba(23,16,46,.35)
}
.hist-item .hist-replay:disabled{opacity:.55;cursor:wait}
.hist-item.has-replay{border-color:#8b5cf6}
/* 个人主页：浅底纸卡，胜绿负红，标题/连击黑色可读 */
#panel-profile .profile-hist .hist-item{
  background:linear-gradient(90deg,#fffdf8,#fff1c8)!important;
  border:2px solid #17102e!important;box-shadow:2px 2px 0 rgba(23,16,46,.4)!important}
#panel-profile .profile-hist .hist-item.lose{
  background:linear-gradient(90deg,#fff8f8,#ffe0e8)!important}
#panel-profile .profile-hist .hist-item.has-replay{
  border-color:#7c3aed!important}
#panel-profile .profile-hist .hist-item b{color:#1fa85a!important;text-shadow:none!important}
#panel-profile .profile-hist .hist-item.lose b{color:#c4184a!important}
#panel-profile .profile-hist .hist-item em{color:#17102e!important}
#panel-profile .profile-hist .hist-item div > span{color:#4a5568!important}
#panel-profile .profile-hist .hist-item > span{color:#17102e!important}
#panel-profile .profile-hist .hist-replay{
  background:linear-gradient(#c9a0ff,#8b5cf6)!important;color:#fff!important;border-color:#17102e!important
}
.season-box{background:linear-gradient(180deg,rgba(255,207,74,.1),transparent 40%),#171029;
  border:3px solid rgba(255,207,74,.32);border-radius:18px;padding:14px;margin-bottom:8px;
  box-shadow:0 5px 0 rgba(18,6,31,.3)}
.season-row{display:flex;justify-content:space-between;font-size:13px;font-weight:700;color:var(--muted);margin:4px 0}
.season-row b{color:var(--gold);font-size:17px;text-shadow:0 1px 0 rgba(18,6,31,.35)}
.season-bar{height:10px;background:#100a22;border-radius:99px;overflow:hidden;margin:10px 0 12px;
  border:2px solid #322550;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.season-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#ff8fa8,#ffcf4a);border-radius:99px;
  box-shadow:0 0 8px rgba(255,207,74,.3)}
/* Q 萌胶囊按钮（对齐参考站） */
.ghost{border:2px solid rgba(255,255,255,.48);background:rgba(255,255,255,.06);border-radius:999px;
  padding:9px 16px;font-size:13px;font-weight:900;color:var(--ink);
  box-shadow:0 3px 0 rgba(18,6,31,.4)}
.ghost:hover{border-color:rgba(255,255,255,.85);background:rgba(255,255,255,.12);filter:brightness(1.05)}
.ghost:active{box-shadow:0 1px 0 rgba(18,6,31,.35)}
.ghost.wide{display:block;width:100%;margin-bottom:10px;text-align:center}
.primary{border:2px solid var(--btn-edge);background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));
  color:var(--btn-ink);border-radius:999px;padding:9px 16px;font-size:13px;font-weight:900;
  box-shadow:0 4px 0 var(--btn-shadow)}
.primary:hover{filter:brightness(1.06)}
.primary:active{box-shadow:0 2px 0 var(--btn-shadow)}
.big{display:block;width:100%;border:3px solid var(--btn-edge);
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));color:var(--btn-ink);border-radius:999px;
  padding:14px 16px;font-size:19px;font-weight:900;letter-spacing:2px;
  box-shadow:0 6px 0 var(--btn-shadow),0 12px 28px rgba(0,0,0,.35)}
.big:hover{filter:brightness(1.06);transform:translateY(-1px)}
.big:active{transform:translateY(2px);box-shadow:0 3px 0 var(--btn-shadow),0 8px 18px rgba(0,0,0,.3)}
#btn-online-quick{border-color:#1d4a12;color:#1d4a12;
  background:linear-gradient(var(--btn-mint-a),var(--btn-mint-b));box-shadow:0 4px 0 #0e2a0a}
#btn-online-create{border-color:var(--btn-edge);color:var(--btn-ink);
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));box-shadow:0 4px 0 var(--btn-shadow)}
#btn-online-join{border-color:#0c3a55;color:#9fe8ff;
  background:linear-gradient(180deg,rgba(84,242,255,.18),rgba(20,40,80,.55));box-shadow:0 3px 0 #0c1f3a}
#btn-mp,#btn-mp2{border-color:#14305a;color:#fff;
  background:linear-gradient(var(--btn-sky-a),var(--btn-sky-b));box-shadow:0 4px 0 #0c1f3a;
  text-shadow:0 1px 0 rgba(20,40,90,.35)}

.screen{padding-bottom:8px}
/* —— 大厅首页（明亮青蓝主场 + 中心光线，原创布局） —— */
.lobby{position:relative;margin:0 0 14px;padding:8px 16px 14px;border-radius:24px;overflow:visible;
  background:
    radial-gradient(circle at 50% 40%,rgba(255,248,210,.35) 0%,transparent 42%),
    radial-gradient(circle at 12% 80%,rgba(255,140,200,.18),transparent 42%),
    radial-gradient(circle at 88% 20%,rgba(120,230,255,.22),transparent 40%),
    linear-gradient(165deg,rgba(40,110,130,.55),rgba(20,70,90,.72) 55%,rgba(16,58,78,.78));
  border:3px solid rgba(255,240,180,.42);box-shadow:0 8px 0 rgba(10,48,60,.4),inset 0 1px 0 rgba(255,255,255,.28),
    0 0 40px rgba(140,230,255,.18)}
.lobby::before{content:"";position:absolute;inset:-35% -20%;pointer-events:none;z-index:0;
  background:repeating-conic-gradient(from 8deg at 50% 48%,
    rgba(255,252,220,.16) 0deg 5deg,transparent 5deg 16deg);
  opacity:.9;mix-blend-mode:screen;animation:lobbyRays 36s linear infinite}
.lobby::after{content:"";position:absolute;left:50%;top:42%;width:min(520px,90%);height:min(520px,90%);
  transform:translate(-50%,-50%);pointer-events:none;z-index:0;border-radius:50%;
  background:radial-gradient(circle,rgba(255,250,210,.4) 0%,rgba(160,230,255,.16) 28%,transparent 68%);
  filter:blur(2px)}
@keyframes lobbyRays{to{transform:rotate(360deg)}}
.lobby-mark{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);
  font-size:clamp(56px,13vw,118px);font-weight:900;letter-spacing:.14em;white-space:nowrap;
  color:rgba(255,236,160,.18);-webkit-text-stroke:2px rgba(255,248,200,.28);
  text-shadow:0 6px 0 rgba(10,40,50,.35),0 0 48px rgba(255,240,180,.28);
  pointer-events:none;user-select:none;z-index:0}
.rank-season-row{grid-column:2;grid-row:1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  justify-self:end;align-self:start;z-index:3;margin:0}
.rank-season{margin:0;padding:6px 12px;border-radius:999px;border:2px solid #17102e;
  background:linear-gradient(#ffe9a8,#ffcf4a);color:#17102e;font-size:13px;font-weight:900;
  box-shadow:2px 2px 0 rgba(23,16,46,.55);display:inline-flex;align-items:center}
.rank-season-btn{padding:6px 12px;font-size:12px;font-weight:900;border:2px solid #17102e!important;
  background:#fff!important;color:#17102e!important;border-radius:999px;box-shadow:2px 2px 0 rgba(23,16,46,.55)}
.lobby-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;
  margin-bottom:12px;font-size:12px;font-weight:800}
.lobby-season{color:var(--btn-ink);background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));
  border:2px solid var(--btn-edge);border-radius:999px;padding:4px 12px;box-shadow:0 3px 0 var(--btn-shadow);
  transform:rotate(-2deg)}
.lobby-meta{color:#e8f8ff;align-self:center;background:rgba(8,40,55,.35);border:1px solid rgba(255,255,255,.22);
  border-radius:999px;padding:4px 10px;backdrop-filter:blur(4px)}
.lobby-board-btn{border:2px solid var(--btn-edge);border-radius:999px;padding:4px 12px;font-size:12px;font-weight:900;
  color:#fff;background:linear-gradient(115deg,#ff4d6d,#ff9f1c 35%,#ffd60a 55%,#2ec4b6 78%,#5b8cff);
  box-shadow:0 3px 0 var(--btn-shadow);letter-spacing:.04em}
.lobby-board-btn:hover{filter:brightness(1.06);transform:translateY(-1px)}
.lobby-arena{position:relative;z-index:1;display:grid;grid-template-columns:minmax(168px,32%) minmax(0,1fr);gap:14px;align-items:center}
.lobby-go{grid-column:1/-1;justify-self:center;min-width:min(320px,100%);margin-top:4px;padding:14px 18px;font-size:17px}
.lobby-fighter{text-align:center}
#lobby-hero-card{
  position:relative;z-index:2;overflow:visible;
  display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;
  gap:5px;align-content:start;justify-items:stretch;text-align:center;
  padding:8px;border-radius:18px;border:3px solid #17102e;
  background:linear-gradient(165deg,#fffdf6,#ffe9b8 55%,#ffe0a0);
  box-shadow:4px 4px 0 rgba(23,16,46,.75)}

/* —— 大厅 · 我的角色 —— */
.lobby-chars-btn{
  position:absolute;top:8px;right:8px;z-index:6;
  padding:4px 10px;border:2px solid #17102e;border-radius:999px;
  background:linear-gradient(#fff7d1,#ffd36b);color:#17102e;
  font-size:11px;font-weight:900;line-height:1.2;cursor:pointer;
  box-shadow:2px 2px 0 rgba(23,16,46,.45)
}
.lobby-chars-btn:active{transform:translateY(1px)}
.chars-tabs{
  display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px;max-width:100%
}
.chars-tabs button{
  border:2px solid #17102e;border-radius:999px;background:#fff7e6;color:#17102e;
  padding:5px 10px;font-size:11px;font-weight:900;cursor:pointer;
  box-shadow:2px 2px 0 rgba(23,16,46,.28)
}
.chars-tabs button.on{background:linear-gradient(#ffd76a,#ffb020);outline:2px solid #e67700;outline-offset:1px}
.chars-panel .chars-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px;
  max-height:min(52vh,420px);overflow:auto;padding:8px;
  border:3px solid #17102e;border-radius:14px;background:#fff8ef;
  align-content:start
}
.chars-grid .char-cell{
  position:relative;display:flex;flex-direction:column;align-items:stretch;gap:4px;
  padding:6px;border:3px solid #17102e;border-radius:12px;background:#fff;
  text-align:center;color:#17102e;font:inherit;
  box-shadow:2px 2px 0 rgba(23,16,46,.35)
}
.chars-grid .char-cell.on{outline:3px solid #e67700;outline-offset:1px;background:linear-gradient(#fff7d0,#ffe08a)}
.chars-grid .char-cell.lock{opacity:.95}
.chars-grid .char-pick{
  display:flex;flex-direction:column;align-items:stretch;gap:4px;
  border:0;background:transparent;padding:0;margin:0;cursor:pointer;color:inherit;font:inherit;text-align:center
}
.chars-grid .char-cell.lock .char-pick{cursor:default}
.chars-grid .char-thumb{
  position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;
  border:2px solid #17102e;background:linear-gradient(180deg,#f7f2ea,#e8dfd2)
}
.chars-grid .char-thumb img{width:100%;height:100%;object-fit:contain;object-position:center 55%;display:block}
.chars-grid .char-lock{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:rgba(18,12,32,.62);color:#ffe56a;font-size:22px;font-weight:900;
  text-shadow:0 2px 0 #000;pointer-events:none
}
.chars-grid .char-lock::before{content:"🔒"}
.chars-grid .char-name-row{
  display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;width:100%
}
.chars-grid .char-cell b{
  display:block;font-size:11px;font-weight:900;line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0
}
.chars-grid .char-skin-tag{
  flex:0 0 auto;max-width:46%;padding:1px 5px;border-radius:999px;
  border:1.5px solid #17102e;background:linear-gradient(180deg,#e8f7ff,#9fe8ff);
  color:#0c3a52;font-size:9px;font-weight:900;font-style:normal;line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:1px 1px 0 #17102e
}
.chars-grid .char-cell small{display:block;font-size:9px;opacity:.7;font-weight:800}
.chars-grid .char-skin-btn{
  border:2px solid #17102e;border-radius:999px;padding:4px 0;margin-top:2px;
  background:linear-gradient(180deg,#fffef6,#ffe28a);color:#17102e;
  font-size:11px;font-weight:900;cursor:pointer;box-shadow:1px 1px 0 #17102e
}
.chars-grid .char-skin-btn:hover{filter:brightness(1.05)}
.chars-grid .char-skin-btn:disabled{opacity:.45;cursor:not-allowed;filter:none}
.chars-panel .panel-foot{gap:8px}
#btn-chars-use{margin-right:auto}
.char-skin-panel{width:min(520px,92vw)!important}
.char-skin-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;
  max-height:min(48vh,360px);overflow:auto;padding:8px;
  border:3px solid #17102e;border-radius:14px;background:#fff8ef
}
.char-skin-item{
  display:flex;flex-direction:column;gap:6px;align-items:stretch;
  border:3px solid #17102e;border-radius:12px;background:#fff;padding:6px;
  cursor:pointer;text-align:center;color:#17102e;font:inherit;
  box-shadow:2px 2px 0 rgba(23,16,46,.3)
}
.char-skin-item.on{outline:3px solid #1f8fd4;outline-offset:1px;background:linear-gradient(#e8f7ff,#c8ecff)}
.char-skin-item.lock{opacity:.55;cursor:not-allowed}
.char-skin-item .sk-thumb{
  aspect-ratio:1;border:2px solid #17102e;border-radius:10px;overflow:hidden;
  background:radial-gradient(circle at 50% 70%,#2a2038,#120c1c)
}
.char-skin-item .sk-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.char-skin-item b{font-size:12px;font-weight:900}
.char-skin-item small{font-size:10px;opacity:.75;font-weight:800;line-height:1.25}

.lobby-stage-wrap{position:relative;z-index:1;width:100%;margin:2px 0 0;overflow:visible}
.lobby-stage{position:relative;height:148px;border-radius:16px;overflow:hidden;margin:0;
  background:radial-gradient(circle at 50% 70%,#7fd0e8,#2a6a88 55%,#163a50 100%);
  border:3px solid #17102e;box-shadow:0 4px 0 rgba(23,16,46,.55),inset 0 -20px 40px rgba(0,30,50,.22),
    0 0 18px rgba(140,230,255,.25);
  display:flex;align-items:flex-end;justify-content:center}
/* 上场角色名：可超出舞台/卡片边缘 */
.lobby-stage-wrap .lobby-dog-name,
#lobby-dog-name.lobby-dog-name{
  position:absolute;top:-11px;left:-8px;z-index:6;margin:0;max-width:min(92%,180px);
  display:inline-block;font-size:12px;font-weight:900;line-height:1.15;color:#17102e;
  padding:4px 10px;border-radius:999px;border:2px solid #17102e;
  background:linear-gradient(#ffe9a8,#ffcf4a);box-shadow:3px 3px 0 rgba(23,16,46,.7);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;
  transform:rotate(-6deg)}
#lobby-hero-card .lobby-stage > .lobby-power-row{margin:0;gap:3px;justify-content:center}
#lobby-hero-card .lobby-stage .lobby-power,
#lobby-hero-card .lobby-stage .lobby-week-rank{
  padding:2px 7px;font-size:10px;line-height:1.15;box-shadow:1px 1px 0 rgba(23,16,46,.5)}
#lobby-hero-card .lobby-meta{margin:0 auto;width:100%;max-width:100%;box-sizing:border-box}
.lobby-stage img{height:138px;width:auto;object-fit:contain;position:relative;z-index:2;
  filter:drop-shadow(0 4px 0 rgba(0,0,0,.35));animation:lobbyBob 2.4s ease-in-out infinite}
.lobby-stage-foe{border-color:rgba(84,242,255,.45);box-shadow:0 5px 0 #0c1f3a,inset 0 -20px 40px rgba(0,0,0,.25)}
.lobby-stage-foe img{transform:scaleX(-1);animation:lobbyBobFoe 2.6s ease-in-out infinite}
@keyframes lobbyBobFoe{0%,100%{transform:scaleX(-1) translateY(0)}50%{transform:scaleX(-1) translateY(-5px)}}
.lobby-foe-ghost{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:52px;font-weight:900;color:rgba(84,242,255,.55);text-shadow:0 3px 0 rgba(0,0,0,.35);z-index:2}
.lobby-foe-ghost[hidden]{display:none!important}
.lobby-foe .lobby-foe-tag{display:inline-block;font-size:11px;font-weight:800;color:#0c2a44;margin:-2px 0 8px;
  padding:3px 10px;border-radius:999px;border:2px solid #0c3a55;
  background:linear-gradient(#b8ecff,#54c4ff);box-shadow:0 2px 0 #0c1f3a}
.lobby-foe.waiting .lobby-foe-tag{color:#9fe8ff;border-color:rgba(84,242,255,.35);
  background:rgba(10,40,60,.55);box-shadow:none}
.lobby-foe.waiting .lobby-stage-foe{border-style:dashed;animation:onlinePulse 1.4s ease-in-out infinite}
.lobby-foe .coin-chip{margin:0 0 8px}
.lobby-go.pulse-ready{animation:onlinePulse 1s ease-in-out infinite}
.lobby-foe .streak-chip{margin:0 0 8px}
.lobby-aura{position:absolute;left:50%;bottom:10px;width:110px;height:36px;margin-left:-55px;border-radius:50%;
  border:3px solid #ff8a2b;box-shadow:0 0 16px #ff8a2b,inset 0 0 12px rgba(255,140,40,.45);z-index:1;
  animation:lobbyAura 1.6s ease-in-out infinite}
.lobby-aura[hidden]{display:none!important}
@keyframes lobbyAura{0%,100%{transform:scale(.92);opacity:.7}50%{transform:scale(1.08);opacity:1}}
@keyframes lobbyBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media (prefers-reduced-motion:reduce){
  .lobby-stage img,.lobby-aura,.fx-aura,.fx-burst,.fx-dog,.dress-item .swatch .sw-hit,.dog-cell.on,.preview img{animation:none!important}
}
.lobby-fighter > b{display:inline-block;font-size:14px;margin:0 0 8px;color:var(--btn-ink);
  padding:4px 12px;border-radius:999px;border:2px solid var(--btn-edge);
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));
  box-shadow:0 3px 0 var(--btn-shadow);text-shadow:0 1px 0 rgba(255,255,255,.25)}
.lobby-dress,.lobby-shop{display:inline-block;width:auto;min-width:76px;border:2px solid var(--btn-edge);border-radius:999px;
  padding:9px 10px;font-size:13px;font-weight:900;margin:0 3px 7px;box-shadow:0 4px 0 var(--btn-shadow)}
.lobby-dress{background:linear-gradient(#ffb0d8,#ff5a9a);color:#4a1030}
.lobby-dress:hover,.lobby-shop:hover{filter:brightness(1.06);transform:translateY(-1px)}
.lobby-shop{background:linear-gradient(var(--btn-sky-a),var(--btn-sky-b));color:#fff;text-shadow:0 1px 0 rgba(20,40,90,.35)}
.lobby-modes{min-width:0;position:relative}
.mode-vs{position:absolute;right:-14px;top:46%;left:auto;z-index:5;pointer-events:none;
  transform:translate(0,-50%) rotate(-12deg);font-size:15px;font-weight:900;letter-spacing:1px;
  color:var(--btn-ink);background:linear-gradient(#ffe9a8,#ff9a1f);border:2px solid var(--btn-edge);
  border-radius:999px;padding:3px 10px;box-shadow:0 3px 0 var(--btn-shadow);
  text-shadow:0 1px 0 rgba(255,255,255,.25)}
.lobby-hint{display:none!important}
.lobby-mode-tag,.lobby-mode-lab{display:none!important}
.mode-sub.mode-immortal{background:linear-gradient(#2a1848,#6a3cff)!important;color:#ffe9a8!important;
  border-color:#ffef3a!important;box-shadow:0 3px 0 #17102e,0 0 14px rgba(255,239,58,.35)}
.mode-sub.mode-immortal small{color:rgba(255,233,168,.9)!important}
body.in-battle.immortal-mode .pad-act.moba button{
  border-color:rgba(255,239,58,.55)!important;
  background:linear-gradient(160deg,#5a2aff,#c45cff 55%,#ff8ad8)!important;color:#fff!important;
  text-shadow:0 1px 0 rgba(23,16,46,.55);box-shadow:0 0 10px rgba(196,92,255,.45)}
body.in-battle.immortal-mode .pad-act.moba .b-super{
  background:linear-gradient(160deg,#ffef3a,#ff8a2b)!important;color:#17102e!important;
  box-shadow:0 0 16px rgba(255,239,58,.7)}
.lobby-foe b{color:#0c2a44;background:linear-gradient(#b8ecff,#54c4ff);border-color:#0c3a55;
  box-shadow:0 3px 0 #0c1f3a}
.pick-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:2px 0 10px;
  padding:9px 14px;border-radius:18px;
  background:linear-gradient(90deg,rgba(255,207,74,.14),rgba(84,242,255,.08));
  border:2px solid rgba(255,224,102,.28);box-shadow:0 3px 0 rgba(10,48,60,.28)}
.pick-back{flex:none;padding:7px 12px;font-size:12px;font-weight:900}
.pick-head h1{margin:0;font-size:16px;letter-spacing:1px;color:var(--btn-ink);
  padding:3px 10px;border-radius:999px;border:2px solid var(--btn-edge);
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));box-shadow:0 2px 0 var(--btn-shadow)}
.pick-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.4;font-weight:700;flex:1}
.pick-start{display:block;width:100%;margin:10px 0 8px;padding:14px 12px;font-size:18px}
.mode-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 8px}
.mode-tabs button{padding:9px 8px;border-radius:12px;border:3px solid rgba(255,255,255,.28);
  background:rgba(16,60,78,.55);color:#e8f8ff;font-size:13px;font-weight:900;cursor:pointer}
.mode-tabs button.on{border-color:#17102e;background:linear-gradient(#ffe9a8,#ffcf4a);color:#17102e;
  box-shadow:0 3px 0 rgba(23,16,46,.55)}
.mode-row{display:block!important;margin-bottom:0;grid-template-columns:none!important}
.mode-panel{width:100%}
.mode-panel[hidden]{display:none!important}
.mode-panel-fun{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px}
.mode-panel-fun[hidden]{display:none!important}
.mode-panel-fun .mode-sub{width:100%;min-width:0;grid-column:auto!important}
.mode-panel-online{display:block}
.mode-panel-online .mode-online-enter{width:100%;grid-column:auto}
@media (max-width:720px){
  .mode-panel-fun{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px}
  .mode-panel-fun .mode-sub{padding:7px 2px;font-size:11px}
  .mode-panel-fun .mode-sub small{display:none}
  .mode-tabs button{padding:8px 4px;font-size:12px}
}
.mode-ranked-pack{
  display:flex;flex-direction:row;align-items:stretch;gap:6px;padding:6px;
  border-radius:16px;border:3px solid rgba(255,207,74,.45);
  background:linear-gradient(180deg,rgba(255,232,140,.22),rgba(255,180,60,.08));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28)}
.mode-ranked-pack > .mode-main{flex:1.15 1 0;width:auto;min-width:0;grid-column:auto}
.mode-ranked-subs{display:flex;flex:2 1 0;gap:6px;min-width:0}
.mode-ranked-subs .mode-sub{flex:1 1 0;width:auto;min-width:0;min-height:0;grid-column:auto}
.mode-ranked-pack.on-family{border-color:#ffcf4a;box-shadow:0 0 0 2px rgba(255,207,74,.28),inset 0 1px 0 rgba(255,255,255,.35)}
body.on-home .mode-ranked-pack,
body.land.on-home .mode-ranked-pack,
body.fake-land.on-home .mode-ranked-pack,
body.port-pad.on-home .mode-ranked-pack{flex-direction:row!important;align-items:stretch!important}
body.on-home .mode-ranked-pack > .mode-main,
body.land.on-home .mode-ranked-pack > .mode-main,
body.fake-land.on-home .mode-ranked-pack > .mode-main,
body.port-pad.on-home .mode-ranked-pack > .mode-main{width:auto!important;min-width:0!important}
body.on-home .mode-ranked-subs,
body.land.on-home .mode-ranked-subs,
body.fake-land.on-home .mode-ranked-subs,
body.port-pad.on-home .mode-ranked-subs{display:flex!important;flex:2 1 0!important;gap:6px!important;min-width:0!important}
@media (max-width:520px){
  .mode-ranked-pack > .mode-main small,
  .mode-ranked-subs .mode-sub small{display:none}
}
.ol-phase{display:flex;flex-direction:column;gap:8px}
.ol-phase[hidden]{display:none!important}
.online-more-row{gap:6px}
.online-acts-duo{align-items:stretch}
.online-acts-duo #btn-go-pick-online{flex:1 1 auto;min-width:140px}
.ol-phase{display:flex;flex-direction:column;gap:8px}
.ol-phase[hidden]{display:none!important}
.online-more-row{gap:6px}
.online-acts-duo{align-items:stretch}
.online-acts-duo #btn-go-pick-online{flex:1 1 auto;min-width:140px}
.ol-phase{display:flex;flex-direction:column;gap:8px}
.ol-phase[hidden]{display:none!important}
.online-more-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.online-acts-duo{align-items:stretch}
.online-acts-duo #btn-go-pick-online{flex:1 1 auto;min-width:140px}
.online-bar{display:flex;flex-direction:column;gap:10px;margin:0 0 14px;
  padding:14px;background:linear-gradient(135deg,rgba(84,242,255,.12),rgba(255,207,74,.08)),var(--panel);
  border:3px solid rgba(84,242,255,.32);border-radius:20px;
  box-shadow:0 6px 0 rgba(18,6,31,.38)}
.online-bar-title{display:inline-block;align-self:flex-start;font-size:12px;font-weight:900;color:#0c2a44;
  letter-spacing:.04em;padding:4px 12px;border-radius:999px;border:2px solid #0c3a55;
  background:linear-gradient(#b8ecff,#54c4ff);box-shadow:0 2px 0 #0c1f3a}
.online-bar-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
@media (max-width:900px),(max-height:720px){
  .online-bar:not([hidden]){
    position:sticky;top:0;z-index:12;
    background:rgba(16,10,28,.94);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border-radius:0 0 16px 16px;
  }
}
.online-code{width:128px;margin:0;padding:9px 12px;letter-spacing:3px;font-weight:900;text-align:center;
  border:2px solid rgba(84,242,255,.35)!important;background:#0c1528!important;
  box-shadow:inset 0 2px 0 rgba(0,0,0,.3),0 3px 0 rgba(18,6,31,.28)}
.online-code:disabled{opacity:.45;cursor:not-allowed}
.btn-start.pulse-ready,#btn-start.pulse-ready,#btn-rematch-ready.pulse-ready{animation:onlinePulse 1s ease-in-out infinite;box-shadow:0 0 0 3px rgba(255,207,74,.28)}
#btn-online-copy.nudge,#btn-online-create.nudge{animation:onlinePulse .7s ease-in-out 2;border-color:rgba(255,207,74,.7);color:var(--gold)}
#btn-quit.quit-pending,#btn-online-leave.leave-pending{border-color:rgba(255,110,90,.7);color:#ff8a6a;animation:onlinePulse .7s ease-in-out infinite}
.field.field-err{border-color:#ff8a6a!important;box-shadow:0 0 0 2px rgba(255,110,90,.25)}
@media (prefers-reduced-motion: reduce){
  #btn-quit.quit-pending,#btn-online-leave.leave-pending{animation:none!important}
}
@media (prefers-reduced-motion: reduce){
  .online-status.wait,.online-bar.queueing,.online-bar.connecting,.online-bar.starting,
  .btn-start.pulse-ready,#btn-rematch-ready.pulse-ready,.online-vs-preview.starting b,
  #btn-online-copy.nudge,#btn-online-create.nudge,#btn-invite-again.nudge,.streak-chip.hot,#btn-quit.quit-pending,
  #btn-online-leave.leave-pending,
  body.danger-hp #screen-battle .stage-wrap,.timer.urgent,.meter.ready,.controls .b-super.hot,
  .online-bar.reconnecting{animation:none!important}
}
.online-bar button:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.35)}
.streak-chip{margin:8px 0 0;padding:6px 12px;border-radius:999px;
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));border:2px solid var(--btn-edge);
  color:var(--btn-ink);font-size:12px;font-weight:900;box-shadow:0 3px 0 var(--btn-shadow);text-align:center}
.streak-chip.hot{animation:onlinePulse 1.1s ease-in-out infinite;border-color:rgba(255,207,74,.85);box-shadow:0 0 12px rgba(255,207,74,.28)}
#pick-name.flash{animation:tipPop .35s ease}
.result-stats .streak-stat b{color:var(--gold);text-shadow:0 0 10px rgba(255,207,74,.45)}
.hist-tabs{display:flex;gap:6px;margin:0 0 10px;flex-wrap:wrap;padding:8px;border-radius:14px;
  background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.08)}
.hist-tabs button{border:2px solid rgba(255,255,255,.28);background:rgba(255,255,255,.06);color:var(--muted);border-radius:999px;padding:6px 14px;font-size:12px;font-weight:900;box-shadow:0 2px 0 rgba(18,6,31,.35)}
.hist-tabs button.on{border-color:var(--btn-edge);color:var(--btn-ink);background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));box-shadow:0 3px 0 var(--btn-shadow)}
.hist-tabs button:hover{filter:brightness(1.06)}
.confetti-layer{pointer-events:none;position:absolute;inset:0;overflow:hidden;z-index:5}
.confetti-layer i{position:absolute;top:-12px;width:8px;height:12px;border-radius:2px;
  animation:confettiFall linear forwards;opacity:.95}
@keyframes confettiFall{0%{transform:translateY(0) rotate(0);opacity:1}100%{transform:translateY(110vh) rotate(540deg);opacity:0}}
#screen-result{position:relative}
#screen-result::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background:radial-gradient(circle at 50% 28%,rgba(255,207,74,.16),transparent 42%),
    repeating-conic-gradient(from 0deg at 50% 40%,rgba(255,255,255,.04) 0 8deg,transparent 8deg 16deg);
  opacity:.85}
#screen-result .result-card{position:relative;z-index:1}
#screen-result:has(.result-card.lose)::before{
  background:radial-gradient(circle at 50% 28%,rgba(255,107,138,.14),transparent 42%),
    repeating-conic-gradient(from 0deg at 50% 40%,rgba(255,180,200,.05) 0 8deg,transparent 8deg 16deg)}
.online-status{font-size:12px;font-weight:800;color:var(--muted);margin-left:auto;max-width:100%;
  padding:5px 12px;border-radius:999px;border:2px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.28);box-shadow:0 2px 0 rgba(18,6,31,.28)}
.online-status.on{color:#0e2a12;border-color:#1d4a12;background:linear-gradient(var(--btn-mint-a),var(--btn-mint-b))}
.online-status.wait{color:var(--btn-ink);border-color:var(--btn-edge);
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));animation:onlinePulse 1.2s ease-in-out infinite}
.online-stats{font-size:11px;font-weight:700;color:var(--muted);opacity:.9;padding:4px 8px;border-radius:999px;
  background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.08)}
.online-lag{font-size:11px;font-weight:800;letter-spacing:.02em;padding:4px 9px;border-radius:999px;
  background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.1)}
.online-lag.ok{color:#6dffa8}
.online-lag.mid{color:#ffcf4a;background:rgba(255,207,74,.12)}
.online-lag.bad{color:#ff8a6a;background:rgba(255,138,106,.14)}
.online-bar.queueing{animation:onlinePulse 1.1s ease-in-out infinite;border-color:rgba(255,207,74,.55)}
.online-bar.queueing #btn-online-cancel{border-color:rgba(255,207,74,.65);color:var(--gold);font-weight:700}
.online-bar.connecting{border-color:rgba(84,242,255,.55);animation:onlinePulse 1s ease-in-out infinite}
.online-bar.reconnecting{border-color:rgba(255,138,106,.65);animation:onlinePulse .85s ease-in-out infinite}
.online-bar.reconnecting .online-status{color:#4a1020;border-color:#4a1020;
  background:linear-gradient(#ffb0c2,#ff6b8a)}
.online-bar.starting{border-color:rgba(140,233,154,.7);animation:onlinePulse .7s ease-in-out infinite;box-shadow:0 0 0 2px rgba(140,233,154,.22)}
#btn-invite-again.nudge{animation:onlinePulse .7s ease-in-out 2;border-color:rgba(255,207,74,.7);color:var(--gold)}
.online-bar.lag-mid{border-color:rgba(255,207,74,.4)}
.online-bar.lag{border-color:rgba(255,110,90,.55);box-shadow:0 0 0 1px rgba(255,110,90,.2)}
@keyframes onlinePulse{
  0%,100%{box-shadow:0 0 0 0 rgba(255,207,74,.0)}
  50%{box-shadow:0 0 0 4px rgba(255,207,74,.18)}
}
@media (max-width:900px){
  .lobby-arena{grid-template-columns:1fr 1fr;gap:8px}
  .lobby-modes{grid-column:1/-1;order:-1}
  .lobby-fighter{text-align:center}
  .lobby-fighter:not(.lobby-foe){display:block}
  .lobby-stage{margin:0 0 6px;height:96px}
  .lobby-stage img{height:88px}
  .lobby-fighter b{margin:0 0 4px;font-size:12px;padding:3px 8px}
  .lobby-dress,.lobby-shop{margin:0 0 4px;padding:6px 5px;font-size:11px}
  .lobby-foe .lobby-foe-tag{margin:0 0 6px;font-size:10px;padding:2px 8px}
  .lobby-foe .coin-chip{margin:0 0 6px;padding:5px 8px;font-size:11px}
  .lobby-go{min-width:100%;margin-top:2px;padding:13px 12px;font-size:16px}
  .mode-row{grid-template-columns:repeat(6,1fr);gap:6px}
  .mode-row .mode-sub{font-size:12px}
  .lobby-hint{display:none}
  .dress-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
  .fx-preview{min-height:160px;height:auto;max-height:200px;flex-direction:column;padding:6px}
  .fx-preview-stage{min-height:110px}
  .fx-canvas{max-width:100%}
  .online-status{margin-left:0;width:100%}
}
.mode-row button{border:3px solid rgba(255,255,255,.28);background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.06)),rgba(16,60,78,.72);
  border-radius:999px;padding:14px 10px;text-align:center;font-size:15px;font-weight:900;color:var(--ink);
  box-shadow:0 5px 0 rgba(18,6,31,.55);transition:transform .12s,filter .12s,box-shadow .12s,border-color .12s}
.mode-row button.mode-main{padding:16px 12px;font-size:17px;letter-spacing:.5px}
.mode-row button.mode-sub{padding:10px 8px;font-size:13px;color:var(--muted)}
.mode-row button small{display:block;font-size:11px;font-weight:700;margin-top:3px;opacity:.78}
.mode-row button:hover{filter:brightness(1.08);color:var(--ink);transform:translateY(-1px)}
.mode-row button.on{border-color:var(--btn-edge);background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));color:var(--btn-ink);
  box-shadow:0 5px 0 var(--btn-shadow);text-shadow:0 1px 0 rgba(255,255,255,.25);transform:translateY(-1px)}
.mode-row button.on small{color:rgba(42,18,64,.72);opacity:1}
.mode-row button[data-m="ranked"].on{border-color:#6a3a00;color:#4a2800;
  background:linear-gradient(#ffe7a0,#ffb84a);box-shadow:0 4px 0 #6a3a00,0 8px 18px rgba(106,58,0,.28)}
.mode-row button[data-m="ranked"].on small{color:rgba(74,40,0,.72)}
.mode-row button[data-m="online"].on{border-color:#1d4a12;color:#1d4a12;
  background:linear-gradient(var(--btn-mint-a),var(--btn-mint-b));box-shadow:0 5px 0 #0e2a0a}
.mode-row button[data-m="online"].on small{color:rgba(29,74,18,.7)}
.mode-row button[data-m="versus"].on{border-color:#0c3a55;color:#0c2a44;
  background:linear-gradient(#b8ecff,#54c4ff);box-shadow:0 5px 0 #0c1f3a}
.mode-row button[data-m="versus"].on small{color:rgba(12,42,68,.7)}
.mode-row button[data-m="practice"].on{border-color:#1a0a38;color:#1a0a38;
  background:linear-gradient(#e0d0ff,#9a6dff);box-shadow:0 5px 0 #120628}
.mode-row button[data-m="practice"].on small{color:rgba(26,10,56,.7)}
.mode-row button[data-m="chaos"].on{border-color:#5a0840;color:#5a0840;
  background:linear-gradient(#ffd0ef,#ff8ec8);box-shadow:0 4px 0 #5a0840,0 8px 18px rgba(90,8,64,.28)}
.mode-row button[data-m="chaos"].on small{color:rgba(90,8,64,.72)}
.mode-row button.mode-locked{opacity:.48;filter:grayscale(.35);cursor:not-allowed}
.mode-row button.mode-locked:hover{transform:none;filter:grayscale(.35)}
.gold-claim{display:block;width:100%;margin-top:10px;background:linear-gradient(#ffe7a0,#ffb84a)!important;color:#4a2800!important;border-color:#6a3a00!important}
.ladder-head{display:flex;justify-content:space-between;align-items:baseline;margin:14px 0 8px;font-size:14px;font-weight:800;color:var(--ink)}
.ladder-head span{font-size:12px;font-weight:700;color:var(--muted)}
.ladder-list{max-height:240px;overflow:auto;border:2px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(8,4,18,.45)}
.ladder-item{display:grid;grid-template-columns:42px 1fr auto;gap:8px;align-items:center;padding:8px 10px;border-bottom:1px solid rgba(255,255,255,.06);font-size:12px}
.ladder-item:last-child{border-bottom:0}
.ladder-item b{color:var(--gold);font-size:14px}
.ladder-item em{font-style:normal;font-weight:800;color:var(--ink)}
.ladder-item span{color:var(--muted)}
.ladder-item.me{background:rgba(255,207,74,.12)}
.ladder-item.top3 b{color:#ff8fa8}
/* —— 排行榜场景背景（夜空领奖台） —— */
#screen-board{
  position:relative;isolation:isolate;
  background:#070e1c;
}
.board-scene{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.board-scene-sky{
  position:absolute;inset:0;
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(255,220,120,.34), transparent 42%),
    radial-gradient(55% 45% at 12% 78%, rgba(255,60,120,.16), transparent 60%),
    radial-gradient(50% 40% at 92% 70%, rgba(50,140,255,.18), transparent 55%),
    linear-gradient(168deg,#0a1430 0%,#101c3a 38%,#0b1528 72%,#08101c 100%)}
.board-scene-glow{
  position:absolute;left:50%;top:-8%;width:70%;height:46%;transform:translateX(-50%);
  background:radial-gradient(ellipse at center,rgba(255,236,160,.28),transparent 68%);
  filter:blur(8px)}
.board-scene-beam{
  position:absolute;top:-20%;height:140%;width:12%;
  background:linear-gradient(180deg,rgba(255,236,180,.0),rgba(255,236,180,.14) 28%,rgba(120,180,255,.08) 68%,transparent);
  filter:blur(12px);transform:skewX(-8deg);opacity:.55;animation:boardBeam 10s ease-in-out infinite alternate}
.board-scene-beam.b1{left:18%;animation-delay:-2s}
.board-scene-beam.b2{left:46%;width:8%;animation-delay:-5s;opacity:.4}
.board-scene-beam.b3{left:72%;animation-delay:-8s}
@keyframes boardBeam{from{transform:skewX(-10deg) translateX(-1.2%)}to{transform:skewX(-4deg) translateX(1.2%)}}
.board-scene-grid{
  position:absolute;inset:0;opacity:.16;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(180deg,transparent 0%,#000 28%,#000 78%,transparent 100%)}
.board-scene-podium{
  position:absolute;left:-5%;right:-5%;bottom:-18%;height:42%;
  background:
    radial-gradient(55% 70% at 50% 0%, rgba(255,210,90,.22), transparent 70%),
    linear-gradient(180deg, transparent, rgba(8,14,28,.55) 35%, rgba(4,8,18,.9));
  border-top:1px solid rgba(255,220,140,.18)}
body.on-board #screen-board{display:flex;flex-direction:column;min-height:0;flex:1;z-index:1}
.board-hall{position:relative;z-index:1;display:flex;flex-direction:column;gap:10px;min-height:0;flex:1;
  padding:12px 14px 14px;border-radius:18px;
  background:
    linear-gradient(180deg,rgba(255,246,210,.1),transparent 22%),
    linear-gradient(165deg,rgba(16,28,58,.88),rgba(8,14,32,.94) 55%,rgba(10,18,40,.92));
  border:3px solid #17102e;
  box-shadow:4px 4px 0 #17102e, 0 0 0 1px rgba(255,220,120,.18) inset, 0 12px 36px rgba(0,0,0,.35);
  backdrop-filter:none;-webkit-backdrop-filter:none}
.board-head{display:flex;align-items:center;gap:10px}
.board-head h1{flex:1;margin:0;font-size:20px;font-weight:900;color:#ffef3a;text-align:center;
  letter-spacing:.12em;text-shadow:0 2px 0 #17102e,0 0 18px rgba(255,220,100,.35)}
.board-head .ghost{
  border:2px solid #17102e!important;border-radius:12px!important;
  background:rgba(255,248,220,.92)!important;color:#17102e!important;
  box-shadow:2px 2px 0 #17102e!important;font-weight:900}
.board-nav{display:flex;gap:6px;flex-wrap:wrap}
.board-nav button{flex:1 1 88px;border:2px solid #17102e;border-radius:14px;padding:8px 6px 7px;
  font-size:13px;font-weight:900;color:#eef3ff;background:rgba(12,22,48,.72);box-shadow:2px 2px 0 rgba(23,16,46,.85);
  display:flex;flex-direction:column;align-items:center;gap:2px;line-height:1.15}
.board-nav button small{font-size:10px;font-weight:700;color:rgba(200,214,240,.72)}
.board-nav button.on{color:#17102e;background:linear-gradient(#ffef3a,#ffb800);
  border-color:#17102e;box-shadow:2px 2px 0 #17102e}
.board-nav button.on small{color:rgba(40,30,10,.72)}
.board-tip{margin:0;font-size:11px;font-weight:700;color:#b8c8e8;text-align:center}
.hero-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:6px 8px;border:2px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(8,30,40,.35)}
.hero-filters[hidden]{display:none!important}
.hero-filters label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:#e8f8ff}
.hero-filters select{min-width:96px;max-width:42vw;padding:5px 8px;border-radius:10px;border:2px solid var(--btn-edge);background:#fff8e8;color:#1a2030;font-weight:800;font-size:12px}
.hero-filters #btn-hero-awards{padding:5px 10px;font-size:11px}
.profile-province{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 10px;padding:8px 10px;border:2px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(8,30,40,.28)}
.profile-province span{font-size:12px;font-weight:900;color:#17102e}
.profile-province select{flex:1 1 140px;min-width:120px;padding:6px 8px;border-radius:10px;border:2px solid var(--btn-edge);background:#fff8e8;color:#1a2030;font-weight:800}
.profile-province small{flex:1 1 100%;font-size:11px;font-weight:700;color:#17102e}
.profile-titles{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.profile-titles button{border:2px solid var(--btn-edge);border-radius:999px;padding:4px 10px;font-size:11px;font-weight:800;background:linear-gradient(#ffe08a,#ffb020);color:#3a2808}
.lobby-chat{margin-top:6px;border:2px solid rgba(255,255,255,.18);border-radius:14px;background:rgba(6,28,40,.42);overflow:hidden}
.lobby-chat-head{display:flex;align-items:center;gap:8px;padding:5px 8px;border-bottom:1px solid rgba(255,255,255,.1)}
.lobby-chat-head b{font-size:12px;color:#ffe9a8;margin-right:auto}
.lobby-chat-head .ghost{padding:3px 8px;font-size:11px}
.lobby-chat.collapsed .lobby-chat-body{display:none}
.lobby-chat-list{max-height:88px;overflow:auto;padding:6px 8px;font-size:12px;line-height:1.45}
.lobby-chat-item{margin:0 0 4px;color:#e8f8ff;display:flex;gap:8px;align-items:flex-start}
.lobby-chat-item em{font-style:normal;font-weight:900;color:#ffe08a;cursor:pointer}
.lobby-chat-item.invite{color:#9fe8ff}
.lobby-chat-item .lobby-join{margin-left:6px;border:0;border-radius:999px;padding:1px 8px;font-size:11px;font-weight:900;background:linear-gradient(#54c4ff,#1f8fd4);color:#062038;cursor:pointer;vertical-align:middle}
.lobby-chat-item .lobby-join.is-dead{opacity:.45;cursor:not-allowed;filter:grayscale(.35)}
.lobby-room-st{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.02em;vertical-align:middle;border:1px solid transparent;white-space:nowrap}
.lobby-room-st.wait{background:rgba(255,255,255,.14);color:#cfe7ff;border-color:rgba(180,210,255,.25)}
.lobby-room-st.ok{background:rgba(60,210,130,.22);color:#9dffc5;border-color:rgba(80,230,150,.45)}
.lobby-room-st.busy{background:rgba(255,180,70,.2);color:#ffd089;border-color:rgba(255,190,90,.4)}
.lobby-room-st.dead{background:rgba(255,90,110,.16);color:#ffb0bc;border-color:rgba(255,120,140,.35);text-decoration:line-through}
.lobby-room-result{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;font-size:10px;font-weight:800;
  color:#ffe0a8;background:rgba(255,160,60,.14);border:1px solid rgba(255,180,90,.35);vertical-align:middle;max-width:100%}
.lobby-chat-item.room-ended .lobby-room-st.dead{text-decoration:none;background:rgba(255,180,70,.16);color:#ffd089;border-color:rgba(255,190,90,.4)}
.lobby-chat-av{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:0 0 auto;border:2px solid rgba(255,224,138,.55);cursor:pointer;background:#123}
.lobby-chat-body{min-width:0;flex:1 1 auto;line-height:1.35}
.lobby-chat-meta{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}
.lobby-chat-title{font-size:11px;font-weight:800;color:#9fe8ff;opacity:.9}
.lobby-chat-rank{font-size:11px;font-weight:900;color:#ffe08a;padding:1px 7px;border-radius:999px;border:1px solid rgba(255,224,138,.45);background:rgba(255,184,0,.16)}
.lobby-chat-pager{display:flex;gap:8px;align-items:center;margin:0 0 8px}
.lobby-chat-pager .ghost{padding:5px 10px;font-size:12px}
.lobby-chat-pager span{flex:1;text-align:center;font-size:12px;font-weight:800;opacity:.8}
.lobby-chat-text{display:block;margin-top:2px;word-break:break-word}
.lobby-chat-geng{display:block;width:min(132px,58%);max-width:148px;border-radius:10px;border:2px solid rgba(255,224,138,.45);margin-top:4px;background:#0a1428;object-fit:cover}
.lobby-chat-compose{display:flex;gap:6px;padding:6px 8px 8px;align-items:stretch}
.lobby-chat-input-wrap{position:relative;flex:1 1 auto;min-width:0;display:flex;align-items:center}
.lobby-chat-compose .field{flex:1 1 auto;min-width:0;padding:6px 78px 6px 8px;font-size:12px;width:100%;box-sizing:border-box}
.lobby-chat-compose .primary{padding:6px 12px;font-size:12px;flex:0 0 auto}
.chat-emoji-btn{position:absolute;right:6px;top:0;bottom:0;margin:auto 0;transform:none;height:28px;width:auto;border:2px solid #17102e;border-radius:999px;background:linear-gradient(180deg,#fffef6,#ffe28a);color:#17102e;font-size:11px;font-weight:900;line-height:1;padding:0 8px 0 6px;cursor:pointer;z-index:2;display:inline-flex;align-items:center;gap:3px;box-shadow:1px 1px 0 #17102e;white-space:nowrap}
.chat-emoji-btn .chat-emoji-ico{font-size:14px;line-height:1}
.chat-emoji-btn .chat-emoji-lab{letter-spacing:.04em}
.chat-emoji-btn:hover,.chat-emoji-btn:focus-visible{filter:brightness(1.05);outline:none}
.chat-emoji-pop{position:absolute;left:0;right:0;bottom:calc(100% + 8px);z-index:50;display:flex;flex-direction:column;gap:6px;padding:8px;max-height:230px;border:3px solid #17102e;border-radius:14px;background:linear-gradient(180deg,#fffdf8,#ffe9f0 70%,#ffd8e8);box-shadow:4px 4px 0 #17102e;box-sizing:border-box}
.chat-emoji-pop[hidden]{display:none!important}
.chat-emoji-tabs{display:flex;gap:6px;flex:0 0 auto}
.chat-emoji-tabs button{flex:1;border:2px solid #17102e;border-radius:999px;padding:5px 8px;font-size:12px;font-weight:900;background:#fff;color:#17102e;cursor:pointer}
.chat-emoji-tabs button.on{background:linear-gradient(#54c4ff,#1f8fd4);color:#fff}
.chat-emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;overflow:auto;max-height:168px;padding:2px;min-height:0}
.chat-emoji-grid.is-geng{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.chat-emoji-item{border:0;background:transparent;font-size:22px;line-height:1.2;padding:4px;border-radius:8px;cursor:pointer}
.chat-emoji-item:hover,.chat-geng-item:hover{background:rgba(23,16,46,.08)}
.chat-geng-item{border:2px solid #17102e;border-radius:10px;padding:0;background:#fff;aspect-ratio:1;overflow:hidden;cursor:pointer}
.chat-geng-item img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.board-me{padding:8px 12px;border-radius:12px;border:2px solid #17102e;
  background:linear-gradient(180deg,rgba(255,239,58,.22),rgba(255,184,0,.12));
  font-size:12px;font-weight:800;color:#ffe9a8;box-shadow:2px 2px 0 rgba(23,16,46,.7)}
.board-me b{color:#ffef3a}
.board-list{flex:1;min-height:180px;max-height:min(58vh,520px);overflow:auto;border:2px solid #17102e;
  border-radius:14px;background:rgba(4,10,24,.55);padding:4px;box-shadow:2px 2px 0 rgba(23,16,46,.55) inset}
.hero-filters{border-color:#17102e!important;background:rgba(10,18,40,.55)!important;box-shadow:2px 2px 0 rgba(23,16,46,.55)}
.board-item{display:grid;grid-template-columns:42px 44px minmax(0,1fr) auto;gap:8px;align-items:center;
  width:100%;margin:0;padding:8px 10px;border:0;border-radius:12px;text-align:left;cursor:pointer;
  background:transparent;color:inherit;font:inherit;border-bottom:1px solid rgba(255,255,255,.06);
  transition:background .12s,transform .12s}
.board-item:last-child{border-bottom:0}
.board-item:hover,.board-item:focus-visible{background:rgba(255,255,255,.07);outline:none}
.board-item:active{transform:scale(.995)}
.board-item .board-place{color:var(--gold);font-size:14px;font-weight:900;font-variant-numeric:tabular-nums;text-align:center}
.board-face{width:40px;height:40px;border-radius:50%;overflow:hidden;flex:0 0 auto;
  border:2px solid rgba(255,224,120,.55);background:radial-gradient(circle at 35% 30%,#4a6a90,#142038);
  box-shadow:0 2px 0 rgba(8,12,28,.4)}
.board-face img{width:100%;height:100%;object-fit:cover;display:block}
.board-meta{min-width:0}
.board-meta em{display:block;font-style:normal;font-weight:900;color:#fff;font-size:13px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.board-meta .board-rank-title{display:inline;margin-left:6px;padding:1px 6px;border-radius:6px;
  font-style:normal;font-weight:800;font-size:11px;letter-spacing:.02em;vertical-align:1px;
  color:#ffe9a8;background:rgba(255,207,74,.14);border:1px solid rgba(255,207,74,.32)}
.board-item.top3 .board-rank-title{color:#ffd0da;background:rgba(255,120,150,.16);border-color:rgba(255,140,160,.38)}
.board-item.p1 .board-rank-title{color:#ffe27a;background:rgba(255,207,74,.22);border-color:rgba(255,215,100,.55)}
.board-meta span{display:block;margin-top:2px;font-size:11px;font-weight:700;color:#9ec8d4;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.board-item .board-score{font-weight:900;color:#ffe9a8;font-variant-numeric:tabular-nums;white-space:nowrap;
  font-size:13px;padding:4px 8px;border-radius:999px;background:rgba(255,207,74,.12);border:1px solid rgba(255,207,74,.28)}
.board-item.me{background:rgba(255,207,74,.14)}
.board-item.me:hover{background:rgba(255,207,74,.2)}
.board-item.top3 .board-place{color:#ff8fa8}
.board-item.top3 .board-face{border-color:#ffb0c0;box-shadow:0 0 0 2px rgba(255,140,160,.25),0 2px 0 rgba(8,12,28,.4)}
.board-item.p1 .board-place{color:#ffd76a}
.board-item.p2 .board-place{color:#d8e4f0}
.board-item.p3 .board-place{color:#e0a070}
.card-panel .card-hero .profile-avatar i{display:none}
.card-place{display:block;margin-top:6px;font-size:11px;font-weight:800;color:#ffe0ea}
.card-region-box{padding:14px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(0,0,0,.16))}
.card-region-lab{display:block;font-size:11px;font-weight:800;color:var(--muted);margin-bottom:6px}
.card-region-box>b{display:block;font-size:22px;font-weight:900;color:#ffe9a8;margin-bottom:8px}
/* 对外信息卡：浅底上禁用黄字，数字/重点改红，保证可读 */
#panel-card .card-panel,
#panel-card .profile-panel{
  color:#17102e!important}
#panel-card .profile-stat{
  background:#fff!important;border:2px solid #17102e!important;
  box-shadow:2px 2px 0 rgba(23,16,46,.35)!important}
#panel-card .profile-stat b{
  color:#c4184a!important;text-shadow:none!important}
#panel-card .profile-stat span{
  color:#5a3040!important}
#panel-card .card-place{
  color:#ffe0ea!important;font-weight:900!important}
#panel-card .profile-id b{
  color:#fff!important}
#panel-card .profile-id em{
  color:#fff!important;background:#ff2d6f!important;border-color:#17102e!important}
#panel-card .profile-rank-pill{
  color:#fff!important;background:linear-gradient(#ff6b9a,#ff2d6f)!important;
  border-color:#17102e!important;box-shadow:2px 2px 0 #17102e!important}
#panel-card #card-overview-tip,
#panel-card .panel-note,
#panel-card .profile-sec,
#panel-card .profile-sec b,
#panel-card .card-region-lab{
  color:#7a1840!important}
#panel-card .card-region-box{
  background:#fff!important;border:2px solid #17102e!important}
#panel-card .card-region-box>b{
  color:#c4184a!important}
#panel-card .hist-item b,
#panel-card .hist-item em{
  color:#c4184a!important}
#panel-card .hist-item span{
  color:#5a3040!important}
#panel-card .side-tabs button.on{
  color:#fff!important;background:#ff2d6f!important;border-color:#17102e!important}
body.on-board #screen-board{display:flex;flex-direction:column;min-height:0;flex:1}
body.fake-land.on-board #app{display:flex;flex-direction:column;overflow:hidden;padding:4px 8px}
body.fake-land.on-board #screen-board{flex:1;min-height:0;overflow:hidden}
body.fake-land.on-board .board-list{max-height:none;flex:1}
body.fake-land.on-home .lobby-board-btn{padding:2px 8px;font-size:10px}
.mode-row button[data-m="gauntlet"].on{border-color:#3a1800;color:#3a1800;
  background:linear-gradient(#ffd0a0,#ff8a2b);box-shadow:0 5px 0 #2a1000}
.mode-row button[data-m="gauntlet"].on small{color:rgba(58,24,0,.7)}
/* 选角：左=头像墙+资料同高，右=大立绘/开打 */
.pick-body{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(240px,34%);gap:12px;align-items:stretch}
.pick-select{display:grid;grid-template-columns:minmax(0,1fr) minmax(148px,26%);gap:8px;align-items:stretch;min-height:0;min-width:0}
.pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:6px;
  background:linear-gradient(180deg,rgba(255,207,74,.07),transparent 30%),var(--panel);
  border:3px solid rgba(255,224,102,.28);border-radius:20px;padding:10px;box-shadow:0 7px 0 rgba(18,6,31,.32);
  max-height:none;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;
  scroll-snap-type:y proximity;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,207,74,.45) transparent;
  align-content:start}
.pick-grid::-webkit-scrollbar{width:6px}
.pick-grid::-webkit-scrollbar-thumb{background:rgba(255,207,74,.4);border-radius:99px}
.dog-cell{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--panel2);touch-action:manipulation;-webkit-user-select:none;user-select:none;
  border:2px solid rgba(255,255,255,.1);padding:0;transition:border-color .12s,transform .12s,box-shadow .12s;
  box-shadow:0 3px 0 rgba(18,6,31,.35);scroll-snap-align:start}
.dog-cell img{width:100%;height:100%;object-fit:contain;object-position:center 55%;padding:2px;box-sizing:border-box}
.dog-cell:hover{transform:translateY(-3px) scale(1.03);border-color:rgba(255,224,102,.55);z-index:1}
.dog-cell.on{border-color:var(--btn-edge);box-shadow:0 0 0 2px rgba(255,224,102,.45),0 4px 0 var(--btn-shadow);
  transform:translateY(-2px);animation:dogOnPulse 1.6s ease-in-out infinite;z-index:1}
@keyframes dogOnPulse{
  0%,100%{box-shadow:0 0 0 2px rgba(255,224,102,.4),0 4px 0 var(--btn-shadow)}
  50%{box-shadow:0 0 0 3px rgba(255,224,102,.75),0 4px 0 var(--btn-shadow),0 0 14px rgba(255,207,74,.4)}
}
.pick-grid.locked{pointer-events:none;opacity:.72;filter:grayscale(.15);outline:2px solid rgba(140,233,154,.35);outline-offset:2px}
#btn-random-dog:disabled{opacity:.45;cursor:not-allowed}
.online-bar.starting #btn-start{border-color:rgba(140,233,154,.65);color:#8ce99a}
.dog-cell.peer{border-color:#54f2ff;box-shadow:0 0 0 2px rgba(84,242,255,.28)}
.dog-cell.peer-ready{border-color:#8ce99a;box-shadow:0 0 0 2px rgba(140,233,154,.35)}
.dog-cell.peer:not(.on)::after{content:'对手';position:absolute;top:3px;right:3px;z-index:2;
  font-size:9px;line-height:1.2;padding:1px 4px;border-radius:6px;background:rgba(10,40,60,.82);color:#54f2ff;pointer-events:none}
.dog-cell.peer-ready:not(.on)::after{content:'对手✓';background:rgba(20,50,28,.9);color:#8ce99a}
.dog-cell.on.peer::after{content:'同选';position:absolute;top:3px;right:3px;z-index:2;
  font-size:9px;line-height:1.2;padding:1px 4px;border-radius:6px;background:rgba(40,28,8,.85);color:var(--gold);pointer-events:none}
.dog-cell.on.peer-ready::after{content:'同选✓';background:rgba(20,50,28,.9);color:#8ce99a}
.dog-cell i{position:absolute;left:0;right:0;bottom:0;font-style:normal;font-size:8px;font-weight:800;line-height:1.2;
  background:linear-gradient(180deg,transparent,rgba(10,6,22,.92));color:#fff;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  padding:8px 1px 2px;text-shadow:0 1px 0 rgba(0,0,0,.55)}
.dog-cell em{position:absolute;top:2px;left:2px;font-style:normal;font-size:8px;line-height:1.1;font-weight:900;
  padding:1px 4px;border-radius:999px;border:1px solid rgba(0,0,0,.25);pointer-events:none;
  background:rgba(20,12,40,.72);color:var(--gold)}
/* 8 流派色标 */
.st-combo em,.st-tag.st-combo,.style-line.st-combo span{background:linear-gradient(#ffb0c2,#ff6b8a)!important;color:#4a1020!important;border-color:#4a1020!important}
.st-super em,.st-tag.st-super,.style-line.st-super span{background:linear-gradient(#ffe9a8,#ffcf4a)!important;color:#2a1240!important;border-color:#24103d!important}
.st-armor em,.st-tag.st-armor,.style-line.st-armor span{background:linear-gradient(#c8d8ff,#7a9cff)!important;color:#10204a!important;border-color:#10204a!important}
.st-vamp em,.st-tag.st-vamp,.style-line.st-vamp span{background:linear-gradient(#ffb0b0,#e04040)!important;color:#3a0808!important;border-color:#3a0808!important}
.st-range em,.st-tag.st-range,.style-line.st-range span{background:linear-gradient(#b8ecff,#54c4ff)!important;color:#0c2a44!important;border-color:#0c2a44!important}
.st-shadow em,.st-tag.st-shadow,.style-line.st-shadow span{background:linear-gradient(#e0d0ff,#9a6dff)!important;color:#1a0a38!important;border-color:#1a0a38!important}
.st-poison em,.st-tag.st-poison,.style-line.st-poison span{background:linear-gradient(#d6ffc2,#5ed97a)!important;color:#0e2a12!important;border-color:#0e2a12!important}
.st-rage em,.st-tag.st-rage,.style-line.st-rage span{background:linear-gradient(#ffd0a0,#ff8a2b)!important;color:#3a1800!important;border-color:#3a1800!important}
.dog-cell.st-combo.on{box-shadow:0 0 0 2px rgba(255,107,138,.45),0 4px 0 var(--btn-shadow)}
.dog-cell.st-super.on{box-shadow:0 0 0 2px rgba(255,207,74,.5),0 4px 0 var(--btn-shadow)}
.dog-cell.st-armor.on{box-shadow:0 0 0 2px rgba(122,156,255,.45),0 4px 0 var(--btn-shadow)}
.dog-cell.st-vamp.on{box-shadow:0 0 0 2px rgba(224,64,64,.45),0 4px 0 var(--btn-shadow)}
.dog-cell.st-range.on{box-shadow:0 0 0 2px rgba(84,196,255,.45),0 4px 0 var(--btn-shadow)}
.dog-cell.st-shadow.on{box-shadow:0 0 0 2px rgba(154,109,255,.45),0 4px 0 var(--btn-shadow)}
.dog-cell.st-poison.on{box-shadow:0 0 0 2px rgba(94,217,122,.45),0 4px 0 var(--btn-shadow)}
.dog-cell.st-rage.on{box-shadow:0 0 0 2px rgba(255,138,43,.45),0 4px 0 var(--btn-shadow)}
.pick-side{position:relative;display:flex;flex-direction:column;min-height:0;
  background:linear-gradient(180deg,rgba(255,207,74,.1),transparent 28%),var(--panel);
  border:3px solid rgba(255,224,102,.35);border-radius:22px;padding:26px 12px 12px;text-align:center;
  box-shadow:0 7px 0 rgba(18,6,31,.36),inset 0 1px 0 rgba(255,255,255,.08)}
.pick-side::before{content:"上场卡";position:absolute;top:6px;left:50%;transform:translateX(-50%) rotate(-3deg);
  font-size:11px;font-weight:900;color:var(--btn-ink);padding:3px 12px;border-radius:999px;
  border:2px solid var(--btn-edge);background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));
  box-shadow:0 2px 0 var(--btn-shadow);letter-spacing:.04em;z-index:2;pointer-events:none}
.nameplate{margin:2px 0 8px;padding:10px 12px 8px;border-radius:16px;
  background:linear-gradient(180deg,#4a3510,#241830);
  border:3px solid rgba(255,207,74,.45);box-shadow:0 4px 0 rgba(18,6,31,.35),inset 0 1px 0 rgba(255,255,255,.1)}
.nameplate h2{margin:0 0 3px;font-size:21px;color:var(--gold);text-shadow:0 2px 0 rgba(18,6,31,.5)}
.nameplate .tag{margin:0;color:#d8c8ff;font-weight:700}
.online-vs-preview{display:flex;align-items:center;justify-content:center;gap:12px;margin:8px 0 6px;
  padding:12px;border-radius:18px;
  background:linear-gradient(90deg,rgba(255,207,74,.16),rgba(84,242,255,.12));
  border:3px solid rgba(255,224,102,.32);box-shadow:0 5px 0 rgba(18,6,31,.32)}
.online-vs-preview b{color:var(--btn-ink);font-size:12px;font-weight:900;letter-spacing:1px;
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));border:2px solid var(--btn-edge);
  border-radius:999px;padding:3px 9px;box-shadow:0 2px 0 var(--btn-shadow);transform:rotate(-8deg)}
.online-vs-preview .ovp-side{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:76px}
.online-vs-preview img{width:48px;height:48px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,207,74,.55);
  background:#1a1230;box-shadow:0 3px 0 rgba(18,6,31,.35)}
.online-vs-preview .ovp-side:last-child img{border-color:rgba(84,242,255,.6)}
.online-vs-preview .ovp-side.ready img{border-color:#8ce99a;box-shadow:0 0 10px rgba(140,233,154,.45)}
.online-vs-preview .ovp-side.waiting{cursor:pointer;animation:onlinePulse 1.4s ease-in-out infinite}
.online-vs-preview .ovp-side.waiting:hover span{color:var(--gold)}
.online-vs-preview .ovp-side.waiting img{opacity:.28;filter:grayscale(.35)}
.online-vs-preview .ovp-side.waiting span{color:rgba(255,207,74,.92)}
@media (prefers-reduced-motion:reduce){
  .online-vs-preview .ovp-side.waiting{animation:none!important}
}
.online-vs-preview.starting{border-color:rgba(140,233,154,.55);box-shadow:0 0 0 1px rgba(140,233,154,.18)}
.online-vs-preview.starting b{color:#8ce99a;animation:onlinePulse .7s ease-in-out infinite}
.online-vs-preview.peer-ghost{border-color:rgba(255,207,74,.45)}
.online-vs-preview.peer-ghost b{color:var(--gold)}
.online-vs-preview .ovp-side.ghost img{filter:grayscale(.5);opacity:.45}
.online-vs-preview span{font-size:11px;color:var(--muted);max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#btn-taunt{border-color:#4a1020;color:#4a1020;background:linear-gradient(#ffb0c2,#ff6b8a);
  box-shadow:0 3px 0 #2a0810}
#btn-taunt:disabled{opacity:.55;filter:grayscale(.25)}
.result-card.win .score{border-color:rgba(255,207,74,.55);color:var(--gold);
  background:linear-gradient(180deg,rgba(255,207,74,.18),rgba(0,0,0,.25))}
.result-card.lose .score{border-color:rgba(255,107,138,.45);color:#ff8fa8;
  background:linear-gradient(180deg,rgba(255,107,138,.14),rgba(0,0,0,.25))}
.result-card.win h1{color:var(--gold)}
.result-card.lose h1{color:#ff8fa8}
.preview{flex:1 1 auto;min-height:220px;height:auto;border-radius:16px;background:radial-gradient(circle at 50% 70%,#3b2a63,#20173c);
  display:flex;align-items:flex-end;justify-content:center;overflow:hidden;margin-bottom:8px;
  border:3px solid rgba(255,224,102,.28);box-shadow:0 4px 0 rgba(18,6,31,.3),inset 0 -18px 36px rgba(0,0,0,.28)}
.preview img{height:92%;max-height:min(360px,46vh);width:auto;object-fit:contain;filter:drop-shadow(0 4px 0 rgba(0,0,0,.3));
  animation:lobbyBob 2.5s ease-in-out infinite}
.pick-side h2{margin:0 0 2px;font-size:21px}
.tag{color:var(--muted);font-size:11px;margin-bottom:8px}
.btn-random{border-color:#5a3a10!important;color:var(--btn-ink)!important;
  background:linear-gradient(180deg,#ffe9a8,#ffb84a)!important;box-shadow:0 4px 0 #5a3a10!important;
  font-weight:900!important;letter-spacing:.04em}
.btn-random:hover{filter:brightness(1.06);transform:translateY(-1px)}
.style-line{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.style-line span{background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));color:var(--btn-ink);border:2px solid var(--btn-edge);
  border-radius:99px;padding:4px 12px;font-size:11px;font-weight:900;box-shadow:0 2px 0 var(--btn-shadow)}
.style-line em{font-style:normal;background:linear-gradient(#ffb0c2,#ff6b8a);color:#4a1020;border:2px solid #4a1020;
  border-radius:99px;padding:4px 12px;font-size:11px;font-weight:900;box-shadow:0 2px 0 #2a0810}
.stats{margin:0 0 14px;display:grid;gap:9px;padding:10px 12px;border-radius:16px;
  background:linear-gradient(180deg,rgba(255,207,74,.06),rgba(0,0,0,.22));
  border:2px solid rgba(255,255,255,.1);box-shadow:0 3px 0 rgba(18,6,31,.25)}
.stats div{display:grid;grid-template-columns:40px 1fr;align-items:center;gap:10px;text-align:left}
.stats dt{color:var(--muted);font-size:12px;font-weight:900}
.stats dd{margin:0;height:11px;background:#100a22;border-radius:99px;overflow:hidden;
  border:2px solid #322550;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.stats dd i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#ff8fa8,#ffcf4a);width:60%;
  box-shadow:0 0 8px rgba(255,207,74,.25);transition:width .2s ease}
.stats div:nth-child(1) dd i{background:linear-gradient(90deg,#ff6b8a,#ffb36b)}
.stats div:nth-child(2) dd i{background:linear-gradient(90deg,#ffcf4a,#ff9a1f)}
.stats div:nth-child(3) dd i{background:linear-gradient(90deg,#6ad1ff,#54f2ff)}
.stats div:nth-child(4) dd i{background:linear-gradient(90deg,#b48cff,#ffcf4a)}
.diff-label{display:inline-block;font-size:11px;color:var(--btn-ink);text-align:left;margin-bottom:7px;font-weight:900;
  padding:3px 10px;border-radius:999px;border:2px solid var(--btn-edge);
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));box-shadow:0 2px 0 var(--btn-shadow)}
.diff-row{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:14px}
.diff-row button{border:2px solid rgba(255,255,255,.28);background:rgba(255,255,255,.06);border-radius:999px;padding:9px 0;
  font-size:12px;font-weight:900;color:var(--muted);box-shadow:0 3px 0 rgba(18,6,31,.35)}
.diff-row button.on{background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));border-color:var(--btn-edge);
  color:var(--btn-ink);box-shadow:0 3px 0 var(--btn-shadow)}
.diff-row button[data-d="2"].on{background:linear-gradient(#ffb0c2,#ff6b8a);border-color:#4a1020;color:#4a1020;
  box-shadow:0 3px 0 #2a0810}
.keys{margin-top:11px;font-size:11px;font-weight:700;color:#d8c8ff;line-height:1.55;padding:9px 12px;border-radius:14px;
  background:linear-gradient(180deg,rgba(84,242,255,.06),rgba(0,0,0,.22));
  border:2px solid rgba(84,242,255,.18);text-align:left;box-shadow:0 3px 0 rgba(18,6,31,.22)}
.foot-note{margin:12px 0 0;text-align:center;font-size:11px;font-weight:800;color:rgba(216,200,255,.75);
  letter-spacing:.04em;padding:6px 14px;border-radius:999px;display:inline-block;width:100%;
  background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.08)}
.rank-strip{margin-top:10px;background:linear-gradient(90deg,rgba(255,207,74,.1),rgba(84,242,255,.08)),var(--panel);
  border:2px solid rgba(255,224,102,.22);border-radius:16px;padding:8px 10px;display:flex;gap:6px;flex-wrap:wrap;
  align-items:center;font-size:12px;color:var(--muted);box-shadow:0 4px 0 rgba(18,6,31,.28)}
.rank-strip span{background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(0,0,0,.22));
  border:2px solid rgba(255,255,255,.12);border-radius:999px;
  padding:4px 9px;font-weight:800;box-shadow:0 2px 0 rgba(18,6,31,.28)}
.rank-strip b{color:var(--gold);font-size:13px}
.rank-strip .rs-more{display:none}
.rank-strip.expanded .rs-more{display:inline-flex}
.rank-strip .rs-toggle{border:2px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08);color:#efe8ff;
  border-radius:999px;padding:4px 10px;font-size:11px;font-weight:900;box-shadow:0 2px 0 rgba(18,6,31,.28)}
.rank-strip.expanded .rs-toggle{border-color:var(--btn-edge);color:var(--btn-ink);
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b))}
@media(max-width:720px){
  .rank-strip{padding:7px 8px;gap:5px;margin-top:8px}
  .rank-strip span{padding:3px 8px;font-size:11px}
}

.hud{display:grid;grid-template-columns:1fr minmax(72px,92px) 1fr;gap:10px;align-items:center;margin:4px 0 8px;
  padding:8px 10px;border-radius:16px;
  background:linear-gradient(180deg,rgba(255,207,74,.08),rgba(12,7,28,.72) 40%,rgba(12,7,28,.28));
  border:2px solid rgba(255,224,102,.2);box-shadow:0 5px 0 rgba(0,0,0,.3)}
.fighter{min-width:0}
.fname{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:800;margin-bottom:4px;
  text-shadow:0 1px 0 rgba(0,0,0,.45);padding:3px 9px;border-radius:999px;
  background:linear-gradient(90deg,rgba(255,207,74,.16),rgba(0,0,0,.28));
  border:2px solid rgba(255,207,74,.32);width:fit-content;max-width:100%;
  box-shadow:0 2px 0 rgba(0,0,0,.28);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fighter.right .fname{margin-left:auto;justify-content:flex-end;color:#9fe8ff;
  background:linear-gradient(90deg,rgba(0,0,0,.28),rgba(84,242,255,.16));
  border-color:rgba(84,242,255,.35)}
.fname small{font-size:10px;color:var(--gold);font-weight:700;opacity:.9}
.fighter.right .fname small{color:#9fe8ff}
.avatar{width:32px;height:32px;border-radius:10px;overflow:hidden;display:block;border:2px solid #5b478c;flex:none;
  box-shadow:0 2px 0 rgba(0,0,0,.35)}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar.frame-gold,.profile-avatar.frame-gold{border-color:var(--gold);box-shadow:0 0 8px rgba(255,207,74,.7)}
.avatar.frame-neon,.profile-avatar.frame-neon{border-color:#b58cff;box-shadow:0 0 9px #b58cff}
.avatar.frame-sakura,.profile-avatar.frame-sakura{border-color:#ff9ec4;box-shadow:0 0 9px #ff9ec4}
.avatar.frame-dragon,.profile-avatar.frame-dragon{border-color:#ff8a2b;box-shadow:0 0 10px #ff8a2b}
.avatar.frame-ice,.profile-avatar.frame-ice{border-color:#9fe8ff;box-shadow:0 0 9px #9fe8ff}
.avatar.frame-s1chaos,.profile-avatar.frame-s1chaos{
  border-color:#c77dff;box-shadow:0 0 12px rgba(199,125,255,.85),0 0 2px #ffef3a inset}
.coin-chip{margin:8px 0 10px;font-size:12px;font-weight:800;color:var(--btn-ink);text-align:center;
  padding:7px 12px;border-radius:999px;border:2px solid var(--btn-edge);
  background:linear-gradient(180deg,#ffe9a8,#ffcf4a);box-shadow:0 3px 0 var(--btn-shadow)}
.coin-chip b{color:#7a3a00;font-size:16px}
.shop-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding-right:36px}
.shop-title-row h2{margin:0}
.shop-bal{flex:none;display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:800;color:#17102e;
  padding:5px 12px;border-radius:999px;border:2px solid #17102e;
  background:linear-gradient(90deg,#fff,#ffe08a);box-shadow:2px 2px 0 rgba(23,16,46,.45)}
.shop-bal b{color:#9a1040;font-size:18px;font-weight:900;line-height:1}
.shop-head{display:flex;flex-direction:column;gap:8px;margin-bottom:10px;font-size:13px;font-weight:700;color:#17102e;
  padding:10px 12px;border-radius:14px;background:linear-gradient(90deg,#fff,#ffe08a);
  border:3px solid #17102e;box-shadow:3px 3px 0 rgba(23,16,46,.35)}
.shop-head b{color:#9a1040;font-size:20px;text-shadow:none}
.dress-layout{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.35fr);gap:12px;min-height:0;flex:1;overflow:hidden;align-items:stretch}
.dress-main{min-width:0;display:flex;flex-direction:column;min-height:0;gap:6px}
.dress-main-lab{flex:0 0 auto;font-size:11px;font-weight:900;letter-spacing:.08em;color:#5a3a10;opacity:.9}
.fx-preview{position:relative;border-radius:18px;overflow:hidden;border:3px solid #17102e;
  background:linear-gradient(180deg,#fff,#ffe9b8);padding:8px;text-align:center;display:flex;flex-direction:column;align-items:stretch;
  justify-content:flex-start;min-height:0;height:100%;
  box-shadow:4px 4px 0 rgba(23,16,46,.4)}
.fx-preview-stage{position:relative;flex:1 1 auto;min-height:140px;border-radius:12px;overflow:hidden;
  border:2px solid #17102e;background:linear-gradient(180deg,#2a6a88,#1a4058)}
.fx-preview-meta{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px 2px}
.fx-canvas{position:absolute;inset:0;z-index:1;width:100%;height:100%;max-width:none;
  border-radius:0;display:block;background:transparent;box-shadow:none}
.fx-stage{position:absolute;inset:0;background:linear-gradient(180deg,#3a2a6a,#6a4a9a 45%,#2a1848);z-index:0;
  transition:background .25s ease}
.fx-aura{position:absolute;left:50%;bottom:58px;width:96px;height:30px;margin-left:-48px;border-radius:50%;
  border:3px solid #ff8a2b;box-shadow:0 0 14px currentColor;z-index:1;animation:lobbyAura 1.5s ease-in-out infinite}
.fx-aura[hidden],.fx-burst[hidden],.fx-dog[hidden],.fx-stage[hidden]{display:none!important}
.fx-dog{position:relative;z-index:2;height:128px;width:auto;object-fit:contain;margin-bottom:6px;
  filter:drop-shadow(0 4px 0 rgba(0,0,0,.35));transition:filter .2s ease;animation:lobbyBob 2.6s ease-in-out infinite}
.fx-burst{position:absolute;left:50%;top:42%;width:72px;height:72px;margin:-36px 0 0 -36px;border-radius:50%;
  z-index:3;pointer-events:none;box-shadow:0 0 0 0 rgba(255,207,74,.5);animation:fxBurst 1.1s ease-out infinite}
@keyframes fxBurst{0%{transform:scale(.4);opacity:.9;box-shadow:0 0 0 0 rgba(255,207,74,.55)}
  70%{transform:scale(1.15);opacity:.35;box-shadow:0 0 0 18px rgba(255,207,74,0)}100%{opacity:0;transform:scale(1.3)}}
.fx-preview b,.fx-preview-meta b{position:relative;z-index:2;font-size:13px;font-weight:900;color:#17102e;margin:0;
  padding:3px 10px;border-radius:999px;border:2px solid #17102e;
  background:linear-gradient(#ffe08a,#ffb800);box-shadow:0 2px 0 #17102e}
.fx-preview small,.fx-preview-meta small{position:relative;z-index:2;font-size:11px;font-weight:700;color:#3a2a18;line-height:1.4;margin:0;display:block;opacity:.9}
.dress-item .swatch .sw-fx-badge{position:absolute;top:5px;left:5px;z-index:3;padding:2px 6px;border-radius:999px;
  font-size:9px;font-weight:900;letter-spacing:.04em;color:#1a3040;
  background:linear-gradient(#ffe9a8,#ffcf4a);border:1px solid #5a3a08;box-shadow:0 2px 0 rgba(0,0,0,.35)}
.dress-item .swatch{position:relative;height:78px;border-radius:14px;margin-bottom:7px;overflow:hidden;
  display:flex;align-items:flex-end;justify-content:center;border:2px solid rgba(255,224,102,.2);
  box-shadow:inset 0 -14px 24px rgba(0,0,0,.28)}
.dress-item .swatch img{height:64px;width:auto;object-fit:contain;position:relative;z-index:2;
  filter:drop-shadow(0 3px 0 rgba(0,0,0,.3))}
.dress-item .swatch .sw-ring{position:absolute;left:50%;bottom:6px;width:70%;height:14px;margin-left:-35%;
  border-radius:50%;border:2px solid currentColor;opacity:.85;z-index:1;box-shadow:0 0 10px currentColor}
.dress-item .swatch .sw-orb{position:absolute;left:50%;bottom:28px;width:8px;height:8px;margin:-4px;border-radius:50%;
  background:var(--c,#ff8a2b);box-shadow:0 0 8px var(--c,#ff8a2b);z-index:3;
  animation:swOrb 1.6s linear infinite;animation-delay:calc(var(--i,0) * -.32s);
  --ang:calc(var(--i,0) * 72deg)}
@keyframes swOrb{
  from{transform:rotate(var(--ang,0deg)) translateX(26px) rotate(calc(-1 * var(--ang,0deg)))}
  to{transform:rotate(calc(var(--ang,0deg) + 360deg)) translateX(26px) rotate(calc(-1 * (var(--ang,0deg) + 360deg)))}
}
.dress-item .swatch .sw-trail{position:absolute;left:8px;right:8px;top:50%;height:8px;border-radius:99px;
  background:linear-gradient(90deg,transparent,currentColor);opacity:.75;z-index:1}
.dress-item .swatch .sw-ghost{position:absolute;left:18%;bottom:10px;width:22px;height:28px;border-radius:8px;
  background:var(--c,#ffcf4a);opacity:.35;z-index:1;filter:blur(1px);
  animation:swGhost 1.2s ease-in-out infinite;animation-delay:calc(var(--i,0) * -.2s);
  transform:translateX(calc(var(--i,0) * 12px))}
@keyframes swGhost{0%,100%{opacity:.15;transform:translateX(calc(var(--i,0)*10px)) scale(.85)}
  50%{opacity:.45;transform:translateX(calc(var(--i,0)*14px)) scale(1)}}
.dress-item .swatch .sw-hit{position:absolute;inset:18% 22%;border-radius:50%;border:2px dashed currentColor;
  box-shadow:0 0 10px currentColor;z-index:1;animation:fxBurst 1.4s ease-out infinite}
.dress-item .swatch .sw-spark{position:absolute;left:50%;top:42%;width:6px;height:6px;margin:-3px;border-radius:50%;
  background:var(--c,#ffcf4a);box-shadow:0 0 8px var(--c,#ffcf4a);z-index:3;
  animation:swSpark .9s ease-out infinite;animation-delay:calc(var(--i,0) * -.12s);
  --ang:calc(var(--i,0) * 60deg)}
@keyframes swSpark{
  0%{transform:rotate(var(--ang,0deg)) translateX(0);opacity:1}
  100%{transform:rotate(var(--ang,0deg)) translateX(28px);opacity:0}
}
@media (prefers-reduced-motion:reduce){
  .dress-item .swatch .sw-orb,.dress-item .swatch .sw-ghost,.dress-item .swatch .sw-spark{animation:none!important}
}
.battle-meta-btns{display:flex;gap:8px}
.pad-act.moba{position:relative;display:block;width:232px;height:186px;flex:none;margin-left:auto}
.pad-act.moba button{position:absolute!important;width:48px;height:48px;min-width:0;border-radius:50%;padding:0;
  box-shadow:0 3px 10px rgba(0,0,0,.55),inset 0 -6px 12px rgba(0,0,0,.35),inset 0 2px 4px rgba(255,255,255,.22);
  transform-origin:center center;z-index:2;flex:none!important;
  border:2px solid rgba(255,255,255,.35)!important;font-size:12px;line-height:1.05;font-weight:900;
  color:#fff;text-shadow:0 1px 2px #000,0 0 4px #000;
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:0}
.pad-act.moba button .btn-lab{font-size:11px;font-weight:900;letter-spacing:1px}
.pad-act.moba button small{font-size:8px;font-weight:800;margin-top:0;opacity:.75}
.pad-act.moba .b-light{
  width:60px;height:60px;z-index:5;border-width:3px!important;border-color:rgba(190,225,255,.65)!important;
  background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.35),transparent 46%),linear-gradient(160deg,#3f7fd0,#16304f)!important;
  color:#fff!important}
.pad-act.moba .b-super{
  width:52px;height:52px;z-index:4;border-color:rgba(255,170,90,.7)!important;
  background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.28),transparent 46%),linear-gradient(160deg,#c45a28,#7a2c14)!important;
  box-shadow:0 0 12px rgba(255,140,60,.45),inset 0 -6px 12px rgba(0,0,0,.4),inset 0 2px 4px rgba(255,255,255,.22)}
.pad-act.moba .b-skill,.pad-act.moba .b-heavy,.pad-act.moba .b-roll{
  width:46px;height:46px;border-color:rgba(255,190,90,.55)!important;
  background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.22),transparent 46%),linear-gradient(160deg,#b07028,#6b4a1c)!important;
  color:#fff!important}
.pad-act.moba .b-kick,.pad-act.moba .b-guard,.pad-act.moba .b-toss{
  width:40px;height:40px;font-size:10px;border-color:rgba(170,230,120,.5)!important;
  background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.2),transparent 46%),linear-gradient(160deg,#3d6a28,#1c3a20)!important;
  color:#fff!important}
.pad-act.moba .b-guard{border-color:rgba(120,230,160,.55)!important;
  background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.2),transparent 46%),linear-gradient(160deg,#2a7a48,#1c5a34)!important}
.pad-act.moba .b-toss{border-color:rgba(120,180,255,.55)!important;
  background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.2),transparent 46%),linear-gradient(160deg,#2a5080,#1d3f70)!important}
.pad-act.moba .b-jump{
  width:40px;height:40px;font-size:10px;border-color:rgba(140,190,255,.45)!important;
  background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.18),transparent 46%),linear-gradient(160deg,#2a4058,#1d3048)!important;
  color:#fff!important}
.pad-act.moba .b-toss .btn-wood{width:14px;height:14px;margin:0}
.pad-act.moba .b-guard .btn-shield{font-size:11px;margin:0;line-height:1}
.pad-act.moba button.press,
.pad-act.moba button:active{
  transform:scale(calc(var(--btn-scale,1) * .92))!important;
  filter:brightness(1.2)}
/* 默认横屏三列键环（JS layoutLand 可覆盖）；竖屏见 .pad-port */
.pad-act.moba .b-toss{left:20px;bottom:62px}
.pad-act.moba .b-guard{left:20px;bottom:10px}
.pad-act.moba .b-kick{left:68px;bottom:10px}
.pad-act.moba .b-jump{left:68px;bottom:62px}
.pad-act.moba .b-roll{left:111px;bottom:59px}
.pad-act.moba .b-heavy{left:111px;bottom:7px}
.pad-act.moba .b-skill{left:173px;bottom:73px}
.pad-act.moba .b-super{left:170px;bottom:126px}
.pad-act.moba .b-light{left:166px;bottom:4px}
.pad-act.moba.pad-port{width:216px;height:188px}
.pad-act.moba.pad-port button{width:46px;height:46px;font-size:10px;
  background:linear-gradient(180deg,#3a2d60,#251c44)!important;color:var(--ink)!important}
.pad-act.moba.pad-port .b-super{width:54px;height:54px}
.pad-act.moba.pad-port .b-light{width:46px;height:46px}
.pad-act.moba.pad-port .b-jump{width:46px;height:46px}
.controls .b-kick{border-color:#3a4a1a;color:#1a2a08;background:linear-gradient(#d8f080,#8bc34a)}
.controls .b-skill{border-color:#4a2a6a;color:#2a1040;background:linear-gradient(#e0c0ff,#a070e0)}
.controls .b-toss{border-color:#6a3a12;color:#3a1c08;background:linear-gradient(#ffe0a8,#d4893a);font-size:12px}
.controls .b-toss .btn-wood{display:block;width:22px;height:22px;margin:0 auto 1px;object-fit:contain;pointer-events:none}
.controls .b-toss.hot{box-shadow:0 0 12px rgba(212,137,58,.75),0 4px 0 rgba(60,28,8,.4)}
.controls .b-toss.empty{opacity:.45;filter:grayscale(.4)}
.controls .b-guard .btn-shield{display:block;font-size:12px;line-height:1;margin-bottom:0}
.wood-chip{display:inline-flex;align-items:center;gap:2px;margin:0;padding:1px 7px;border-radius:999px;
  font-size:11px;font-weight:900;color:#ffe9a8;background:rgba(0,0,0,.35);border:1px solid rgba(255,207,74,.35);
  flex:none;white-space:nowrap;line-height:1.2}
.wood-chip img{width:14px;height:14px;object-fit:contain}
.wood-chip.empty{opacity:.45;filter:grayscale(.35)}
.fighter.left .fname > span{order:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.fighter.left .fname .wood-chip{order:2}
.fighter.left .fname > small{order:3}
.pick-wood{margin-top:6px;font-size:12px;font-weight:800;color:#ffcf4a;
  padding:4px 10px;border-radius:999px;background:rgba(255,207,74,.1);border:1px solid rgba(255,207,74,.28);
  display:inline-block}
.joystick{position:relative}
/* 横屏触屏：摇杆/出招叠在画布角上（竖屏见下方 .port-pad，沉到底栏空白） */
body.land .joystick{
  position:absolute;left:var(--lx,18px);bottom:var(--ly,14px);
  transform:scale(var(--ls,1));transform-origin:bottom left;z-index:40}
body.land .pad-act.moba{
  position:absolute;right:44px;bottom:12px;left:auto;margin:0;z-index:40}
/* 真横屏对局：整屏铺满画布（fixed 压过 relative，否则所有子项 absolute 会把战斗屏塌成 0 高） */
body.land.in-battle:not(.fake-land) #screen-battle{
  position:fixed;inset:0;z-index:20;width:100%;height:100%;max-width:none;
  margin:0;padding:0;background:#0b0820}
body.land.in-battle:not(.fake-land) .stage-wrap{
  position:absolute;inset:0;border:0;border-radius:0;overflow:hidden;max-height:none;
  width:100%;height:100%;
  display:block;background:#0b0820;box-shadow:none}
body.land.in-battle:not(.fake-land) #stage{position:absolute;left:0;top:0;width:100%;height:100%;max-width:none;max-height:none}
body.land.in-battle:not(.fake-land) .hud{position:absolute;top:4px;left:8px;right:8px;z-index:5;margin:0}
body.land.in-battle:not(.fake-land) .battle-foot{
  position:absolute;left:0;right:0;bottom:0;z-index:30;
  margin:0;padding:0 12px calc(8px + env(safe-area-inset-bottom,0px));
  background:transparent;border:0;box-shadow:none;pointer-events:none}
body.land.in-battle:not(.fake-land) .controls{
  position:relative;min-height:0;width:100%;height:0;pointer-events:none}
body.land.in-battle:not(.fake-land) .joystick,
body.land.in-battle:not(.fake-land) .pad-act{pointer-events:auto!important;z-index:40}
body.land.in-battle:not(.fake-land) .joy-base{touch-action:none;pointer-events:auto!important}
/* 触屏横屏把全屏/键位/退出收进底部居中小簇，落在摇杆与技能环之间的空档，始终可点 */
body.land.in-battle:not(.fake-land) .battle-meta{
  position:absolute;left:50%;bottom:calc(6px + env(safe-area-inset-bottom,0px));
  transform:translateX(-50%);margin:0;min-height:0;gap:6px;justify-content:center;
  pointer-events:auto;z-index:36}
body.land.in-battle:not(.fake-land) #battle-tip{display:none}
body.land.in-battle:not(.fake-land) .battle-meta-btns{gap:5px;flex-wrap:nowrap}
body.land.in-battle:not(.fake-land) .battle-meta-btns .ghost{
  padding:5px 10px;font-size:11px;background:rgba(10,6,24,.78);
  border:2px solid rgba(255,224,102,.32);box-shadow:0 2px 0 rgba(0,0,0,.4)}
body.land.in-battle:not(.fake-land) .practice-bar{position:absolute;top:74px;left:8px;right:8px;z-index:7;margin:0}
/* 检测浮钮在对战/选角会压住技能环与上场按钮，仅大厅保留 */
/*
 * 竖屏触屏：操作区沉到画布下方空白。
 * 旧规则 is-touch 绝对定位会以塌缩的 battle-foot 为底，键位向上盖住舞台。
 */
body.port-pad #screen-battle{
  display:flex;flex-direction:column;gap:0;
  min-height:calc(100dvh - 52px);
  padding-bottom:env(safe-area-inset-bottom,0px)}
body.port-pad #screen-battle .hud{flex:0 0 auto;margin:2px 0 6px}
body.port-pad #screen-battle .stage-wrap{
  flex:0 0 auto;width:100%;max-width:100%;
  /* 底栏约 220：给画布多一点 */
  max-height:min(44vh, calc(100dvh - 300px))}
body.port-pad #screen-battle #stage{width:100%;height:auto;max-height:100%}
body.port-pad #screen-battle .battle-foot{
  flex:1 1 auto;position:relative;min-height:220px;
  margin-top:6px;padding:6px 6px 6px;
  display:flex;flex-direction:column;justify-content:flex-end;
  background:linear-gradient(180deg,rgba(255,207,74,.06),rgba(0,0,0,.28));
  border:2px solid rgba(255,224,102,.16);border-radius:18px;
  box-shadow:0 5px 0 rgba(18,6,31,.3)}
body.port-pad #screen-battle .controls{
  position:relative;flex:1 1 auto;min-height:176px;
  pointer-events:none}
body.port-pad #screen-battle .joystick{
  position:absolute;left:var(--lx,6px);bottom:var(--ly,6px);
  transform:scale(var(--ls,1));transform-origin:bottom left;
  z-index:8;pointer-events:auto;display:flex}
body.port-pad #screen-battle .pad-act.moba{
  position:absolute;right:2px;bottom:2px;left:auto;margin:0;
  z-index:8;pointer-events:auto;width:216px;height:188px}
body.port-pad #screen-battle .pad-act.moba button{width:46px;height:46px;font-size:10px}
body.port-pad #screen-battle .pad-act.moba .b-super{width:54px;height:54px}
body.port-pad #screen-battle .pad-act.moba button small{display:none}
/* 竖屏默认坐标（与 LAYOUT_PORT 一致；JS 会再写一遍） */
body.port-pad #screen-battle .pad-act.moba .b-jump{left:64px;bottom:4px}
body.port-pad #screen-battle .pad-act.moba .b-heavy{left:114px;bottom:22px}
body.port-pad #screen-battle .pad-act.moba .b-kick{left:164px;bottom:22px}
body.port-pad #screen-battle .pad-act.moba .b-roll{left:12px;bottom:62px}
body.port-pad #screen-battle .pad-act.moba .b-light{left:64px;bottom:62px}
body.port-pad #screen-battle .pad-act.moba .b-skill{left:164px;bottom:78px}
body.port-pad #screen-battle .pad-act.moba .b-toss{left:164px;bottom:128px}
body.port-pad #screen-battle .pad-act.moba .b-guard{left:64px;bottom:118px}
body.port-pad #screen-battle .pad-act.moba .b-super{left:122px;bottom:126px}
body.port-pad #screen-battle .joy-base{width:96px;height:96px}
body.port-pad #screen-battle .joy-label{display:block}
body.port-pad #screen-battle .battle-meta{
  position:relative;z-index:9;margin-top:6px;pointer-events:auto;
  flex:0 0 auto}
body.port-pad #screen-battle .pad-move{display:none}
body.port-pad #screen-battle .practice-bar{order:3;margin-top:8px}
.layout-editor{display:grid;grid-template-columns:1fr 200px;gap:14px;align-items:start}
.layout-preview{position:relative;height:280px;min-height:260px;background:
  radial-gradient(circle at 20% 80%,rgba(255,207,74,.1),transparent 40%),
  radial-gradient(circle at 80% 70%,rgba(84,242,255,.1),transparent 40%),#0f0a22;
  border:3px solid rgba(255,224,102,.22);border-radius:16px;overflow:hidden;
  box-shadow:0 4px 0 rgba(18,6,31,.3),inset 0 0 30px rgba(0,0,0,.35)}
.lp-joy{position:absolute;width:54px;height:54px;border-radius:50%;background:linear-gradient(#4a3510,#3a2a0a);
  border:3px solid var(--gold);color:var(--gold);font-size:10px;font-weight:900;
  display:flex;align-items:center;justify-content:center;box-shadow:0 3px 0 #5a3a08}
.lp-joy.on,.lp-btn.on{outline:3px solid #ff6b8a;outline-offset:1px}
.lp-pad{position:absolute;right:8px;bottom:8px;width:232px;height:186px}
.lp-pad.lp-port{width:216px;height:188px}
.lp-btn{position:absolute;width:36px;height:36px;border-radius:50%;
  background:linear-gradient(#3a2d60,#251c44);border:2px solid var(--line);
  font-size:9px;font-weight:800;color:var(--muted);display:flex;align-items:center;justify-content:center;
  transform-origin:center;box-shadow:0 2px 0 rgba(18,6,31,.4)}
.layout-controls{display:grid;gap:10px;font-size:12px;font-weight:700;color:var(--muted)}
.layout-controls label{display:grid;gap:4px;padding:8px 10px;border-radius:12px;
  background:rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.08)}
.layout-controls input[type=range]{width:100%}
.layout-controls select{background:#171029;color:var(--ink);border:2px solid var(--line);border-radius:999px;padding:7px 10px;
  font-weight:800;box-shadow:0 2px 0 rgba(18,6,31,.28)}
.bar{position:relative;height:16px;background:#0d0820;border:2px solid #24103d;border-radius:99px;overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 2px 0 rgba(0,0,0,.25)}
.bar.low{border-color:rgba(255,107,138,.65);box-shadow:0 0 10px rgba(255,80,100,.25)}
.bar.hit{box-shadow:0 0 0 2px rgba(255,107,138,.85),0 0 14px rgba(255,80,100,.45)!important}
.bar.low>i:not(.trail){background:linear-gradient(90deg,#ff6b8a,#ffcf4a)!important;animation:hpLowPulse .7s ease-in-out infinite}
@keyframes hpLowPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.25)}}
.bar i{position:absolute;top:0;left:0;display:block;height:100%;width:100%;border-radius:99px}
.bar i.trail{background:#fff;opacity:.45;z-index:1;transition:width .09s linear}
.bar i:not(.trail){z-index:2;background:linear-gradient(90deg,#ff5c7a,#ffb36b);transition:width .08s}
.fighter.right .bar i{left:auto;right:0;background:linear-gradient(90deg,#6ad1ff,#8f8bff)}
.fighter.right .bar i.trail{background:#fff}
.bar.bump{animation:barbump .2s}
@keyframes barbump{0%{transform:translateX(0)}25%{transform:translateX(-5px)}55%{transform:translateX(4px)}100%{transform:translateX(0)}}
.mini{display:flex;gap:6px;align-items:center;margin-top:5px;height:9px}
.fighter.right .mini{justify-content:flex-end}
.meter,.gbar{position:relative;flex:1;height:10px;background:#100a22;border-radius:99px;overflow:hidden;
  border:2px solid #322550;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.meter i{position:absolute;left:0;top:0;height:100%;width:0;background:linear-gradient(90deg,#8f6bff,#ffcf4a);transition:width .12s}
.fighter.right .meter i{left:auto;right:0;background:linear-gradient(90deg,#ffcf4a,#6ad1ff)}
.meter b{position:absolute;left:4px;top:0;font-size:8px;font-weight:900;color:rgba(255,255,255,.65);z-index:2;line-height:10px}
.fighter.right .meter b{left:auto;right:4px}
.meter.ready i{box-shadow:0 0 9px #ffcf4a}
.meter.ready{animation:meterpulse .7s infinite alternate}
@keyframes meterpulse{from{filter:brightness(1)}to{filter:brightness(1.45)}}
.gbar{flex:0 0 56px;overflow:hidden}
.gbar .guard-ico{position:absolute;left:2px;top:50%;transform:translateY(-50%);z-index:3;flex:none;
  font-size:10px;line-height:1;pointer-events:none;filter:drop-shadow(0 1px 0 rgba(0,0,0,.4))}
.fighter.right .gbar .guard-ico{left:auto;right:2px}
/* JS 设 width:%；left 让出盾标后必须 max-width，否则 100% 会顶出框 */
.gbar i{position:absolute;left:14px;top:0;bottom:0;height:auto;width:0;max-width:calc(100% - 14px);
  background:linear-gradient(90deg,#6ad1ff,#54f2ff);transition:width .1s;border-radius:99px;box-sizing:border-box}
.fighter.right .gbar i{left:auto;right:14px}
.pips{display:flex;gap:6px;margin-top:7px;height:10px}
.fighter.right .pips{justify-content:flex-end}
.pips b{width:10px;height:10px;border-radius:50%;background:#3a2d60;display:block;
  border:2px solid rgba(0,0,0,.35);box-shadow:0 1px 0 rgba(0,0,0,.3)}
.pips b.on{background:linear-gradient(#ffe9a8,#ffcf4a);border-color:#5a3a08;box-shadow:0 0 8px rgba(255,207,74,.45)}
.fighter.right .pips b.on{background:linear-gradient(#b8ecff,#54c4ff);border-color:#0c3a55;box-shadow:0 0 8px rgba(84,242,255,.4)}
.pips.pop{animation:pipPop .45s ease}
@keyframes pipPop{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
.center{text-align:center;padding:6px 8px;border-radius:16px;
  background:linear-gradient(180deg,rgba(255,207,74,.14),rgba(0,0,0,.32));
  border:2px solid rgba(255,207,74,.35);box-shadow:0 3px 0 rgba(18,6,31,.4)}
.round{font-size:11px;color:var(--muted);font-weight:900;letter-spacing:.04em}
.round.flash{color:var(--gold);animation:roundFlash .55s ease}
@keyframes roundFlash{0%{transform:scale(1.35);opacity:.4}100%{transform:scale(1);opacity:1}}
.timer{font-size:28px;font-weight:900;color:var(--gold);line-height:1.1;font-variant-numeric:tabular-nums;
  text-shadow:0 2px 0 #24103d,0 0 14px rgba(255,207,74,.35)}
.modetag{display:inline-block;font-size:10px;color:var(--btn-ink);font-weight:900;
  padding:2px 8px;border-radius:999px;border:2px solid var(--btn-edge);
  background:linear-gradient(#e0d0ff,#b48cff);box-shadow:0 2px 0 rgba(18,6,31,.35)}
.timer.urgent{color:var(--pink);animation:timerBlink .5s steps(2) infinite;text-shadow:0 0 12px rgba(255,107,138,.55)}
@keyframes timerBlink{50%{opacity:.55}}
.fighter.me .fname{color:var(--gold)}
.fighter.me .bar{box-shadow:0 0 0 1px rgba(255,207,74,.35)}
.fighter.me .avatar{outline:2px solid rgba(255,207,74,.55)}
.fighter.me .pips{filter:drop-shadow(0 0 4px rgba(255,207,74,.35))}
#battle-tip.combo-flash{color:var(--gold);font-weight:800;animation:tipPop .35s ease}
#round-label{transition:color .2s ease}
body.online-setpoint #round-label{color:var(--gold)}
@keyframes tipPop{0%{transform:scale(1)}40%{transform:scale(1.18)}100%{transform:scale(1)}}
.stage-wrap{border:3px solid rgba(255,224,102,.28);border-radius:18px;overflow:hidden;background:#0b0820;position:relative;
  box-shadow:0 6px 0 rgba(18,6,31,.45),inset 0 0 40px rgba(90,40,140,.18)}
#stage{display:block;width:100%;height:auto;touch-action:none}
.battle-foot{margin-top:10px;padding:10px 12px;border-radius:18px;
  background:linear-gradient(180deg,rgba(255,207,74,.08),rgba(0,0,0,.22));
  border:2px solid rgba(255,224,102,.18);box-shadow:0 5px 0 rgba(18,6,31,.35)}
/* 键鼠桌面：战斗不显示虚拟键位底栏，只留右下角退出/全屏/键位 */
body.in-battle:not(.is-touch) .battle-foot{
  position:absolute;left:0;right:0;bottom:0;z-index:6;
  margin:0;padding:0 12px calc(8px + env(safe-area-inset-bottom,0px));
  min-height:0;background:transparent;border:0;box-shadow:none;
  border-radius:0;pointer-events:none}
body.in-battle:not(.is-touch) .controls,
body.in-battle:not(.is-touch) .pad-move,
body.in-battle:not(.is-touch) .pad-act,
body.in-battle:not(.is-touch) .joystick{display:none!important}
body.in-battle:not(.is-touch) .battle-meta{
  display:flex;pointer-events:auto;margin:0;min-height:0;justify-content:space-between}
body.in-battle:not(.is-touch) #screen-battle{position:relative}
.controls{display:flex;justify-content:space-between;gap:8px}
.pad-move,.pad-act{display:flex;gap:6px}
.controls button{border:2px solid var(--btn-edge);background:linear-gradient(180deg,#3a2d60,#251c44);border-radius:18px;min-width:52px;height:56px;
  font-size:13px;font-weight:900;color:var(--ink);user-select:none;touch-action:manipulation;
  box-shadow:0 4px 0 rgba(18,6,31,.55)}
.controls button small{display:block;font-size:10px;font-weight:700;color:var(--muted);margin-top:2px}
.pad-move button{min-width:58px;font-size:19px;border-radius:50%}
.controls .b-light{border-color:#7a5a2a;color:var(--btn-ink);background:linear-gradient(#ffe9a8,#ffb84a)}
.controls .b-heavy{border-color:#7a2f45;color:#4a1020;background:linear-gradient(#ffb0c2,#ff6b8a)}
.controls .b-guard{border-color:#2f5f7a;color:#0c2a44;background:linear-gradient(#b8ecff,#54c4ff)}
.controls .b-guard.guarding{box-shadow:0 0 12px rgba(84,242,255,.75),0 4px 0 rgba(12,42,68,.45);filter:brightness(1.08)}
.controls .b-guard.cooling{opacity:.55;filter:grayscale(.35) brightness(.9);box-shadow:0 3px 0 rgba(18,6,31,.35)}
.gbar.cooling i{background:linear-gradient(90deg,#5a6a7a,#7a90a0)!important;opacity:.7}
.gbar.cooling .guard-ico{opacity:.55}
.controls .b-jump{border-color:#2a5a2a;color:#1d4a12;background:linear-gradient(#d6ffc2,#5ed97a)}
.controls .b-roll{border-color:#5a4a7a;color:#2a1840;background:linear-gradient(#e0d0ff,#b48cff)}
.controls .b-super{border-color:var(--btn-edge);background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));color:var(--btn-ink)}
.controls .b-super.hot{box-shadow:0 0 14px rgba(255,207,74,.85),0 4px 0 var(--btn-shadow);animation:meterpulse .6s infinite alternate}
.controls .b-skill.hot{box-shadow:0 0 12px rgba(160,112,224,.85),0 4px 0 rgba(40,16,64,.45);animation:meterpulse .7s infinite alternate}
/* 角标定位；MOBA 扇形键必须保持 absolute，勿被此规则盖掉 */
.controls .b-super{position:relative}
.pad-act.moba .b-super{position:absolute!important}
.controls .b-super[data-free="1"]::after{content:'1';position:absolute;top:-7px;right:-5px;
  width:20px;height:20px;line-height:20px;text-align:center;border-radius:50%;
  background:linear-gradient(#ff8a8a,#d81e3c);color:#fff;font-size:11px;font-weight:900;
  border:2px solid #4a1020;box-shadow:0 2px 0 #4a1020}
.controls button,.joystick,.pad-act,.pad-move{touch-action:manipulation;-webkit-user-select:none;user-select:none}
.controls button.press{transform:translateY(2px) scale(.97);box-shadow:0 1px 0 rgba(18,6,31,.45);filter:brightness(.96)}
.pad-act.moba button.press{transform:scale(calc(var(--btn-scale,1) * .95))}
.pad-act.moba button{border-radius:50%!important}
.online-code:focus{outline:2px solid rgba(255,207,74,.45);outline-offset:1px}
.battle-meta{display:flex;justify-content:space-between;align-items:center;margin-top:10px;min-height:34px;gap:8px}
.battle-meta-btns .ghost{border-radius:999px;padding:6px 12px;font-weight:800;font-size:12px;
  border:2px solid rgba(255,255,255,.22);box-shadow:0 3px 0 rgba(18,6,31,.4)}
.battle-meta-btns .ghost:hover{filter:brightness(1.08);transform:translateY(-1px)}
#battle-tip{font-size:13px;font-weight:800;color:#e8dcff;padding:5px 12px;border-radius:999px;
  background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.12)}
.lobby-go:not(.pulse-ready){animation:startIdle 2.8s ease-in-out infinite}
@keyframes startIdle{0%,100%{filter:brightness(1)}50%{filter:brightness(1.08)}}
@media (prefers-reduced-motion:reduce){
  .lobby-go:not(.pulse-ready),.lobby-stage-foe img{animation:none!important}
  .lobby-stage-foe img{transform:scaleX(-1)}
}
.practice-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px;
  background:linear-gradient(90deg,rgba(84,242,255,.1),rgba(255,207,74,.06)),#171029;
  border:2px solid rgba(84,242,255,.32);border-radius:16px;padding:10px 12px;font-size:12px;color:var(--muted);
  box-shadow:0 4px 0 rgba(18,6,31,.3)}
.practice-bar>span{font-weight:900;color:#0c2a44;padding:4px 10px;border-radius:999px;
  background:linear-gradient(#b8ecff,#54c4ff);border:2px solid #0c3a55;box-shadow:0 2px 0 #0c1f3a}
.practice-bar select{background:#251c44;color:var(--ink);border:2px solid var(--line);border-radius:999px;padding:5px 10px;font-size:12px;
  box-shadow:0 2px 0 rgba(18,6,31,.3)}
.practice-bar label{display:flex;align-items:center;gap:5px;font-weight:800;padding:4px 10px;border-radius:999px;
  background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.1)}
.practice-bar em{margin-left:auto;font-style:normal;font-size:11px;font-weight:700;opacity:.8}

.result-card{position:relative;max-width:560px;margin:18px auto;background:
  radial-gradient(circle at 50% 18%,rgba(255,207,74,.2),transparent 42%),
  radial-gradient(circle at 80% 80%,rgba(84,242,255,.08),transparent 40%),var(--panel);
  border:3px solid var(--btn-edge);border-radius:24px;padding:22px 22px 24px;text-align:center;overflow:hidden;
  box-shadow:0 8px 0 var(--btn-shadow),0 24px 50px rgba(0,0,0,.4)}
.result-banner{position:absolute;top:12px;left:-30px;z-index:3;padding:5px 34px;font-size:13px;font-weight:900;
  letter-spacing:2px;transform:rotate(-18deg);border:2px solid var(--btn-edge);box-shadow:0 3px 0 rgba(0,0,0,.35);
  color:var(--btn-ink);background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b))}
.result-card.win{border-color:#ffcf4a;box-shadow:0 8px 0 #5a3a08,0 0 28px rgba(255,207,74,.22)}
.result-card.win .result-banner{color:var(--btn-ink);background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b))}
.result-card.lose{border-color:#ff8fa8;box-shadow:0 8px 0 #4a1020,0 0 22px rgba(255,107,138,.16)}
.result-card.lose .result-banner{color:#4a1020;background:linear-gradient(#ffb0c2,#ff6b8a);border-color:#4a1020}
.result-hero{position:relative;width:min(260px,70vw);height:min(220px,38vw);margin:6px auto 14px;
  display:flex;align-items:flex-end;justify-content:center;overflow:visible}
.result-hero::before{content:"";position:absolute;left:50%;top:46%;width:72%;height:72%;
  transform:translate(-50%,-50%);border-radius:50%;z-index:0;pointer-events:none;
  background:radial-gradient(circle,rgba(255,239,58,.55) 0%,rgba(255,184,0,.22) 42%,transparent 70%)}
.result-burst{position:absolute;left:50%;top:46%;width:165%;aspect-ratio:1/1;height:auto;
  transform:translate(-50%,-50%);border-radius:50%;z-index:0;pointer-events:none;opacity:.92;
  background:repeating-conic-gradient(
    from 0deg,
    #ffef3a 0deg 7deg,
    #ffb800 7deg 9deg,
    transparent 9deg 18deg,
    #fff8d6 18deg 20deg,
    transparent 20deg 30deg
  );
  -webkit-mask-image:radial-gradient(circle,transparent 14%,#000 28%,#000 52%,transparent 72%);
  mask-image:radial-gradient(circle,transparent 14%,#000 28%,#000 52%,transparent 72%);
  filter:drop-shadow(0 0 6px rgba(255,207,74,.35));
  animation:resultBurst 3.6s linear infinite}
.result-card.lose .result-hero::before{
  background:radial-gradient(circle,rgba(255,143,168,.4) 0%,rgba(255,45,111,.18) 42%,transparent 70%)}
.result-card.lose .result-burst{
  background:repeating-conic-gradient(
    from 0deg,
    #ff8fa8 0deg 7deg,
    #ff2d6f 7deg 9deg,
    transparent 9deg 18deg,
    #ffd0e0 18deg 20deg,
    transparent 20deg 30deg
  );
  filter:drop-shadow(0 0 6px rgba(255,45,111,.3));opacity:.85}
.result-hero img{position:relative;z-index:2;height:92%;width:auto;max-width:100%;object-fit:contain;
  filter:drop-shadow(0 10px 0 rgba(0,0,0,.35));animation:lobbyBob 2.6s ease-in-out infinite}
.result-hero-meta{position:absolute;left:50%;bottom:-2px;transform:translateX(-50%);z-index:3;
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center;max-width:110%}
.result-hero-meta b{font-size:13px;font-weight:900;color:#ff7ab8;text-shadow:0 2px 0 rgba(0,0,0,.35);
  padding:3px 10px;border-radius:999px;background:rgba(10,20,40,.55);border:1px solid rgba(255,255,255,.2)}
.result-hero-meta span{font-size:11px;font-weight:800;color:#1a3040;padding:3px 9px;border-radius:999px;
  background:linear-gradient(#b8ecff,#54c4ff);border:2px solid #0c3a55;box-shadow:0 2px 0 #0c1f3a}
.result-emoji.streak-win .result-burst{opacity:1;filter:drop-shadow(0 0 10px rgba(255,207,74,.65));
  animation:resultBurst 2.4s linear infinite,onlinePulse .9s ease-in-out 3}
@keyframes resultBurst{to{transform:translate(-50%,-50%) rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .result-hero img,.result-burst{animation:none!important}
}
.result-card h1{margin:2px 0 6px;font-size:clamp(24px,5.5vw,34px);font-weight:900;letter-spacing:.5px;
  color:#ffe566;-webkit-text-stroke:.6px rgba(20,40,70,.45);
  text-shadow:0 3px 0 #1a4050,0 0 18px rgba(255,240,160,.45)}
.result-card.lose h1{color:#ffb0c2;text-shadow:0 3px 0 #3a1020,0 0 14px rgba(255,120,150,.35)}
.result-card>p{color:rgba(255,255,255,.78);font-size:13px;margin:0 0 10px;font-weight:700}
.score{display:inline-block;font-size:15px;font-weight:800;color:#e8f8ff;letter-spacing:.5px;margin-bottom:10px;
  text-shadow:0 1px 0 rgba(18,6,31,.35);padding:6px 14px;border-radius:999px;
  background:rgba(0,0,0,.28);border:2px solid rgba(255,255,255,.18)}
.result-card.win .score{border-color:rgba(255,207,74,.45);color:var(--gold)}
.result-card.lose .score{border-color:rgba(255,107,138,.4);color:#ff8fa8}
.result-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}
.result-stats div{background:linear-gradient(180deg,rgba(255,207,74,.08),#171029);border:2px solid rgba(255,224,102,.22);
  border-radius:14px;padding:10px 4px;box-shadow:0 3px 0 rgba(18,6,31,.28)}
.result-stats b{display:block;font-size:17px;color:var(--gold);text-shadow:0 1px 0 rgba(18,6,31,.4)}
.result-stats span{font-size:10px;font-weight:800;color:var(--muted)}
blockquote{margin:0 0 14px;padding:12px 14px;
  background:linear-gradient(90deg,rgba(255,107,138,.12),#171029);
  border-radius:14px;font-size:13px;font-weight:700;color:#e8dcff;text-align:left;line-height:1.7;
  border:2px solid rgba(255,107,138,.3);box-shadow:0 3px 0 rgba(18,6,31,.25)}
.result-mp{display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:linear-gradient(90deg,#3a2a0a,#2a1840);border:2px solid #7a5a2a;
  border-radius:16px;padding:12px;margin-bottom:14px;font-size:12px;font-weight:700;text-align:left;
  box-shadow:0 3px 0 rgba(18,6,31,.3)}
.result-mp b{color:var(--gold)}
.result-mp button{white-space:nowrap}
.result-btns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch}
.result-btns .big,.result-btns .result-cta-main{grid-column:1/-1;font-size:17px;padding:14px 16px}
.result-btns .result-home{grid-column:auto;font-size:14px;font-weight:800;padding:12px 10px}
.result-btns #btn-rematch-ready{grid-column:1/-1;font-size:15px;font-weight:800;padding:12px 14px}
.result-btns #btn-rematch:not([hidden]){grid-column:1/-1;font-size:15px;font-weight:900;padding:12px 14px;background:linear-gradient(#54c4ff,#1f8fd4);color:#062038;border:0}
.result-btns #btn-rematch.pulse-ready{animation:onlinePulse 1s ease-in-out infinite}
.result-btns .ghost{font-size:14px}
.result-btns .primary{font-size:13px}
.result-btns #btn-invite-again:not([hidden]){grid-column:1/-1}
.result-vs{display:flex;align-items:center;justify-content:center;gap:14px;margin:10px 0 8px;
  padding:10px 14px;border-radius:18px;
  background:linear-gradient(90deg,rgba(255,207,74,.12),rgba(84,242,255,.1));
  border:2px solid rgba(255,224,102,.28);box-shadow:0 3px 0 rgba(18,6,31,.28)}
.result-vs img{width:58px;height:58px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,207,74,.55);
  background:#1a1233;box-shadow:0 3px 0 rgba(18,6,31,.35)}
.result-vs img:last-of-type{border-color:rgba(84,242,255,.6)}
.result-vs span{font-size:12px;font-weight:900;color:var(--btn-ink);letter-spacing:.08em;
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));border:2px solid var(--btn-edge);
  border-radius:999px;padding:3px 10px;box-shadow:0 2px 0 var(--btn-shadow);transform:rotate(-8deg)}

.mask{position:absolute;inset:0;min-height:100vh;background:rgba(6,3,16,.86);display:flex;
  align-items:center;justify-content:center;padding:20px;z-index:50;
  backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.panel,.mp-card{position:relative;width:min(360px,100%);background:
  linear-gradient(180deg,rgba(255,207,74,.08),transparent 40%),var(--panel);
  border:3px solid var(--btn-edge);border-radius:22px;padding:24px 22px;
  box-shadow:0 8px 0 var(--btn-shadow),0 24px 60px rgba(0,0,0,.55)}
.wide-panel{width:min(720px,100%);max-height:86vh;display:flex;flex-direction:column}
.panel h2{margin:0 0 8px;font-size:20px;color:var(--btn-ink);font-weight:900;
  display:inline-block;padding:5px 14px;border-radius:999px;border:2px solid var(--btn-edge);
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));box-shadow:0 3px 0 var(--btn-shadow);
  text-shadow:0 1px 0 rgba(255,255,255,.25)}
.panel-sub{margin:0 0 14px;font-size:12px;font-weight:700;color:#d8c8ff;line-height:1.6}
.panel-close,.mp-close{position:absolute;right:12px;top:10px;width:34px;height:34px;border-radius:50%;
  border:2px solid var(--btn-edge);background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));
  color:var(--btn-ink);font-size:18px;font-weight:900;line-height:30px;text-align:center;
  box-shadow:0 3px 0 var(--btn-shadow)}
.panel-close:hover,.mp-close:hover{filter:brightness(1.08);transform:translateY(-1px)}
.panel-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;
  padding:12px 4px 0;border-top:2px solid rgba(255,224,102,.18);font-size:12px;font-weight:800;color:#d8c8ff}
#dress-hint{padding:5px 10px;border-radius:999px;background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.1);max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dress-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px;padding:8px;border-radius:14px;
  background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.08)}
.dress-tabs button{border:2px solid rgba(255,255,255,.28);background:rgba(255,255,255,.06);border-radius:999px;
  padding:7px 12px;font-size:12px;font-weight:900;color:var(--muted);box-shadow:0 2px 0 rgba(18,6,31,.35)}
.dress-tabs button.on{background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));border-color:var(--btn-edge);
  color:var(--btn-ink);box-shadow:0 3px 0 var(--btn-shadow)}
.dress-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px;overflow:auto;min-height:0;flex:1 1 auto;
  padding:10px;border-radius:14px;background:#fff;border:3px solid #17102e;box-shadow:3px 3px 0 rgba(23,16,46,.35)}
.dress-item{position:relative;border:3px solid #17102e;border-radius:14px;padding:10px 8px 8px;background:#fff8e8;text-align:center;
  box-shadow:3px 3px 0 rgba(23,16,46,.4);transition:transform .12s,border-color .12s,box-shadow .12s,filter .12s;color:#17102e}
.dress-item:hover:not(:disabled):not(.lock){transform:translate(-1px,-2px);filter:brightness(1.03);box-shadow:4px 5px 0 rgba(23,16,46,.45)}
.dress-item.on{border-color:#17102e;background:linear-gradient(180deg,#ffe08a,#ffcf4a);box-shadow:0 0 0 2px #ff2d6f,3px 3px 0 #17102e}
.dress-item.worn{box-shadow:0 0 0 2px #2ad4ff,3px 3px 0 #17102e}
.dress-item.lock{opacity:.72;filter:grayscale(.2)}
.dress-item .swatch{background:linear-gradient(180deg,#2a6a88,#1a4058);border:2px solid #17102e!important;border-radius:10px}
.dress-item b{display:block;font-size:12px;font-weight:900;margin-bottom:2px;color:#17102e}
.dress-item.on b{color:#17102e}
.dress-item small{font-size:10px;font-weight:700;color:#5a3a18;line-height:1.35;display:block}
.price-tag{position:absolute;top:6px;right:6px;z-index:3;font-style:normal;font-size:10px;font-weight:900;
  padding:2px 7px;border-radius:999px;border:2px solid #17102e;line-height:1.2;
  background:linear-gradient(#ffe08a,#ffb800);color:#17102e;
  box-shadow:2px 2px 0 #17102e;transform:rotate(4deg)}
.price-tag.own{background:linear-gradient(#b8ff9a,#6dff7a);border-color:#17102e;color:#0e2a12;box-shadow:2px 2px 0 #17102e}
.price-tag.worn{background:linear-gradient(#ff9ad0,#ff2d6f);border-color:#17102e;color:#fff;box-shadow:2px 2px 0 #17102e}
.price-tag.lock{background:#17102e;border-color:#17102e;color:#ffe08a;box-shadow:2px 2px 0 rgba(23,16,46,.5)}
.guide-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;overflow:auto}
.guide-grid section{background:linear-gradient(180deg,rgba(255,207,74,.08),transparent 35%),#171029;
  border:2px solid rgba(255,224,102,.2);border-radius:16px;padding:12px;box-shadow:0 4px 0 rgba(18,6,31,.28)}
.guide-grid h3{margin:0 0 8px;font-size:13px;color:var(--btn-ink);font-weight:900;
  display:inline-block;padding:3px 10px;border-radius:999px;border:2px solid var(--btn-edge);
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));box-shadow:0 2px 0 var(--btn-shadow)}
.guide-grid p{margin:0;font-size:11px;font-weight:700;color:#d8c8ff;line-height:1.8}
.guide-grid kbd{background:linear-gradient(#3a2d60,#251c44);border:2px solid var(--btn-edge);border-radius:8px;padding:1px 6px;
  font-size:10px;font-weight:900;color:var(--gold);margin-right:4px;box-shadow:0 2px 0 rgba(18,6,31,.35)}
.roster-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:7px;overflow:auto;max-height:44vh;
  padding:8px;border-radius:16px;background:rgba(0,0,0,.18);border:2px solid rgba(255,255,255,.08)}
.roster-grid button{position:relative;aspect-ratio:1;border:2px solid rgba(255,255,255,.12);border-radius:12px;
  overflow:hidden;background:#171029;padding:0;box-shadow:0 3px 0 rgba(18,6,31,.3);
  transition:transform .12s,border-color .12s,box-shadow .12s}
.roster-grid button:hover{transform:translateY(-2px);border-color:rgba(255,224,102,.45)}
.roster-grid button.on{border-color:var(--btn-edge);box-shadow:0 0 0 2px rgba(255,224,102,.4),0 3px 0 var(--btn-shadow);
  transform:translateY(-1px)}
.roster-grid button em{position:absolute;top:3px;left:3px;font-style:normal;font-size:8px;font-weight:900;
  line-height:1.2;padding:1px 4px;border-radius:999px;pointer-events:none;border:1px solid rgba(0,0,0,.2)}
.roster-grid img{width:100%;height:100%;object-fit:cover}
.st-tag{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:900;
  border:1px solid rgba(0,0,0,.2);vertical-align:baseline}
#roster-detail{font-size:12px;line-height:1.7;color:#d8c8ff;margin-top:10px;padding:12px 14px;
  border-radius:14px;background:linear-gradient(180deg,rgba(255,207,74,.08),rgba(0,0,0,.22));
  border:2px solid rgba(255,224,102,.22);box-shadow:0 3px 0 rgba(18,6,31,.25);font-weight:700}
#roster-detail b{color:var(--gold)}
.mp-badge{display:inline-block;background:linear-gradient(var(--btn-mint-a),var(--btn-mint-b));color:#1d4a12;
  border:2px solid #1d4a12;border-radius:99px;padding:4px 12px;font-size:11px;font-weight:900;margin-bottom:10px;
  box-shadow:0 2px 0 #0e2a0a}
.mp-card{text-align:center}
.mp-card h2{margin:0 0 8px;font-size:24px;letter-spacing:2px;color:var(--btn-ink);
  display:inline-block;padding:6px 16px;border-radius:999px;border:2px solid var(--btn-edge);
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));box-shadow:0 3px 0 var(--btn-shadow)}
.mp-how{font-size:13px;font-weight:700;color:#d8c8ff;margin:0 0 18px}
.mp-how b{color:var(--gold)}
.qr-box{width:160px;height:160px;margin:0 auto 18px;border:3px solid var(--btn-edge);border-radius:16px;
  background:#f7f4ff;display:flex;align-items:center;justify-content:center;color:#6b5b8f;
  font-size:11px;line-height:1.7;overflow:hidden;box-shadow:0 4px 0 var(--btn-shadow)}
.qr-box img{width:100%;height:100%;object-fit:contain}
.mp-card .primary{width:100%;padding:12px;font-size:14px}
.mp-note{margin:14px 0 0;font-size:11px;color:var(--muted);line-height:1.6}

/* 设置 · 手动横竖屏（微信等无可靠 orientation） */
.orient-box{background:linear-gradient(180deg,rgba(255,207,74,.1),transparent 40%),#171029;
  border:2px solid rgba(255,255,255,.12);border-radius:14px;padding:14px 14px 12px;margin:8px 0 4px}
.orient-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700;color:var(--muted);margin-bottom:10px}
.orient-row b{color:var(--gold);font-size:16px}
.orient-btns{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.orient-btns button{padding:12px 8px;font-size:14px;font-weight:900}
.orient-btns button.on{border-color:var(--btn-edge);background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));color:var(--btn-ink);
  box-shadow:0 4px 0 var(--btn-shadow)}

/* 强制横屏：竖拿手机时整页假旋转（微信可靠写法：左上原点 + left:视口宽） */
body.fake-land{
  overflow:hidden !important;
  width:var(--fl-w,100vw);height:var(--fl-h,100vh);
  position:relative;
}
body.fake-land #app{
  position:fixed;z-index:2;
  top:0;left:var(--fl-w,100vw);
  width:var(--fl-h,100vh);height:var(--fl-w,100vw);
  max-width:none !important;max-height:none !important;
  margin:0 !important;padding:6px 10px;
  box-sizing:border-box;
  transform-origin:top left;
  transform:rotate(90deg);
  overflow:auto;-webkit-overflow-scrolling:touch;
  background:transparent;
}
/* 弹层在 #app 外：必须同一套假旋转，否则设置窗仍竖着 */
body.fake-land .mask{
  position:fixed !important;z-index:120;
  inset:auto; /* 先清掉 .mask 的 inset:0，再写 top/left */
  top:0;left:var(--fl-w,100vw);right:auto;bottom:auto;
  width:var(--fl-h,100vh);height:var(--fl-w,100vw);
  min-height:0 !important;
  transform-origin:top left;
  transform:rotate(90deg);
  overflow:auto;-webkit-overflow-scrolling:touch;
  padding:12px 16px;align-items:center;justify-content:center;
}
body.fake-land .rotate-tip{
  position:fixed;inset:auto;
  width:var(--fl-h,100vh);height:var(--fl-w,100vw);
  top:0;left:var(--fl-w,100vw);right:auto;bottom:auto;
  transform-origin:top left;transform:rotate(90deg);
}
body.fake-land .mp-float{display:none !important}
/* 假横屏弹窗宽度改由 zk-pop.css + fitZkPops 等比例缩放，不再用 vw/固定上限自适应压窄 */
body.fake-land .panel:not(.zk-pop-fit){width:min(480px,92%);max-height:min(92%,calc(var(--fl-w,100vw) - 24px))}
body.fake-land .wide-panel:not(.zk-pop-fit){width:min(780px,94%);max-height:min(92%,calc(var(--fl-w,100vw) - 20px))}
/* 假横屏内强制横版排版（媒体查询仍按竖屏视口，会误叠成竖栏） */
body.fake-land .lobby{padding:4px 10px 8px;margin:0;height:auto;overflow:visible}
body.fake-land .lobby-arena{
  grid-template-columns:minmax(150px,36%) minmax(0,1fr) !important;
  grid-template-rows:minmax(0,1fr) auto !important;
  grid-template-areas:"hero modes" "hero go" !important;
  gap:8px !important;align-items:stretch !important;min-height:0 !important;margin-top:12px !important}
body.fake-land .lobby-fighter{grid-area:hero !important;display:grid !important;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:4px;align-content:stretch;justify-items:stretch;text-align:center}
body.fake-land #lobby-hero-card .lobby-user-chip,
body.fake-land #lobby-hero-card .lobby-stage-wrap{grid-column:1/-1;width:100%}
body.fake-land #lobby-hero-card .lobby-stage-wrap{margin-top:4px}
body.fake-land .lobby-foe{display:none !important}
body.fake-land .lobby-modes{grid-area:modes !important}
body.fake-land .lobby-go{grid-area:go !important;grid-column:auto !important;justify-self:stretch !important;min-width:0 !important;width:auto !important;margin-top:0 !important;padding:8px 10px;font-size:14px}
body.fake-land .lobby-fighter .lobby-stage{height:auto !important;margin:0 !important;width:100%}
body.fake-land .lobby-fighter .lobby-stage img{height:100% !important;max-height:170px;width:auto;padding-bottom:26px;box-sizing:border-box}
body.fake-land .lobby-foe .lobby-stage-foe{width:44px !important;height:32px !important;flex:none;margin:0 !important;border-radius:9px;border-width:2px}
body.fake-land .lobby-foe .lobby-stage-foe img{height:27px !important}
body.fake-land .lobby-foe>b{flex:none;margin:0 !important;font-size:12px;padding:2px 8px}
body.fake-land .lobby-foe .lobby-foe-tag{flex:1;min-width:0;margin:0 !important;padding:2px 7px;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.fake-land .lobby-foe .coin-chip{flex:none;margin:0 !important;font-size:10px;padding:3px 7px}
body.fake-land .lobby-foe .coin-chip b{font-size:11px}
body.fake-land .lobby-foe .streak-chip{flex:none;margin:0 !important;padding:3px 7px;font-size:10px}
body.fake-land .lobby-dress,body.fake-land .lobby-shop{padding:4px 6px;font-size:10px;margin:0;width:auto;min-width:0}
body.fake-land .mode-row{gap:5px;grid-template-columns:repeat(4,1fr) !important}
body.fake-land .mode-row button{padding:6px 4px;font-size:12px}
body.fake-land .mode-row button small{display:none}
body.fake-land .lobby-hint,body.fake-land .mode-vs{display:none}
body.fake-land .online-bar{margin:6px 0 0;padding:8px 10px;gap:6px}
body.fake-land .topbar{padding:4px 8px;margin:0 0 4px;gap:6px}
body.fake-land .brand{font-size:14px}
body.fake-land .top-actions .ghost,body.fake-land .top-actions #btn-more{padding:5px 9px;font-size:11px}
body.fake-land .pick-body{
  display:grid !important;grid-template-columns:minmax(0,1fr) minmax(280px,46%) !important;gap:10px;
  min-height:0;width:100%}
body.fake-land .pick-grid{
  order:0 !important;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));min-height:0;max-height:min(58vh,420px);
  flex:none !important;overflow:auto}
body.fake-land .pick-side{
  order:0 !important;display:flex !important;flex-direction:column !important;position:relative !important;bottom:auto;
  text-align:center;padding:10px;width:auto;grid-template-columns:unset;min-height:0}
body.fake-land .pick-side .stats{display:grid}
body.fake-land .preview{flex:1 1 auto;min-height:160px;height:auto;margin:0 0 6px;grid-row:auto}
body.fake-land .preview img{height:90%;max-height:min(280px,42vh);width:auto}
body.fake-land .dress-layout{display:grid;grid-template-columns:minmax(160px,.85fr) minmax(0,1.3fr);gap:8px}
body.fake-land .dress-layout .fx-preview{order:0;min-height:0;max-height:none;height:100%}
body.fake-land .dress-grid{min-height:0;gap:6px;padding:8px;grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
body.fake-land .dress-item{padding:7px 5px;border-radius:12px}
body.fake-land .dress-item .swatch{height:54px;margin-bottom:4px}
body.fake-land .dress-item b{font-size:11px}
body.fake-land .dress-item small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:9px}
body.fake-land #screen-battle{
  position:relative;min-height:calc(var(--fl-w,100vw) - 12px);
  display:block;padding:0}
body.fake-land #screen-battle .hud{
  position:absolute;top:4px;left:8px;right:8px;z-index:4;margin:0}
body.fake-land #screen-battle .stage-wrap{
  position:absolute;inset:0;max-height:none;border-radius:0}
body.fake-land #screen-battle #stage{max-height:100%;width:100%;height:100%}
body.fake-land #screen-battle .battle-foot{
  position:absolute;left:0;right:0;bottom:0;flex:none;min-height:0;
  margin:0;padding:0 12px 8px;background:transparent;border:0;box-shadow:none}
body.fake-land #screen-battle .controls{position:relative;min-height:0;flex:none}
body.fake-land #screen-battle .pad-move{display:none}
body.fake-land #screen-battle .joystick{display:flex}
body.fake-land #screen-battle .battle-meta{display:none}

/* v198：假横屏战斗必须像首页一样撑满短边，禁止画布只占一半 */
body.fake-land.in-battle #app{
  display:flex !important;flex-direction:column;
  padding:0 !important;overflow:hidden !important;
  max-width:none !important;max-height:none !important}
body.fake-land.in-battle #screen-battle{
  flex:1 1 auto !important;position:relative !important;
  width:100% !important;height:auto !important;
  min-height:0 !important;max-height:none !important;
  inset:auto !important;padding:0 !important;margin:0 !important;
  background:#0b0820}
body.fake-land.in-battle #screen-battle .stage-wrap{
  position:absolute !important;inset:0 !important;
  width:auto !important;height:auto !important;
  max-width:none !important;max-height:none !important;
  border:0 !important;border-radius:0 !important;
  display:block !important;overflow:hidden !important;background:#0b0820}
body.fake-land.in-battle #screen-battle #stage{
  position:absolute !important;left:0 !important;top:0 !important;
  width:100% !important;height:100% !important;
  max-width:none !important;max-height:none !important;
  display:block !important}
body.fake-land.in-battle #screen-battle .hud{
  position:absolute;top:2px;left:6px;right:6px;z-index:5;margin:0}
body.fake-land.in-battle #screen-battle .battle-foot{
  position:absolute;left:0;right:0;bottom:0;z-index:30;
  margin:0;padding:0 8px calc(6px + env(safe-area-inset-bottom,0px));
  background:transparent;border:0;box-shadow:none;pointer-events:none}
body.fake-land.in-battle #screen-battle .controls{
  position:relative;min-height:0;width:100%;height:0;pointer-events:none}
body.fake-land.in-battle #screen-battle .joystick,
body.fake-land.in-battle #screen-battle .pad-act{
  pointer-events:auto!important;z-index:40;-webkit-touch-callout:none}
body.fake-land.in-battle #screen-battle .joy-base{
  touch-action:none;pointer-events:auto!important;z-index:41}
/* 假横屏对局同样保留 全屏/键位/退出 小簇，否则旋转后无法退出对局 */
body.fake-land.in-battle #screen-battle .battle-meta{
  display:flex;position:absolute;left:50%;bottom:calc(6px + env(safe-area-inset-bottom,0px));
  transform:translateX(-50%);margin:0;min-height:0;gap:6px;justify-content:center;
  pointer-events:auto;z-index:36}
body.fake-land.in-battle #screen-battle #battle-tip{display:none}
body.fake-land.in-battle #screen-battle .battle-meta-btns{gap:5px;flex-wrap:nowrap}
body.fake-land.in-battle #screen-battle .battle-meta-btns .ghost{
  padding:5px 10px;font-size:11px;background:rgba(10,6,24,.78);
  border:2px solid rgba(255,224,102,.32);box-shadow:0 2px 0 rgba(0,0,0,.4)}

/* v191：假横屏可视高度≈手机短边，大厅必须一次看完不滚 */
body.fake-land.on-home #app{
  display:flex;flex-direction:column;padding:4px 8px;overflow:hidden}
body.fake-land.on-home .topbar{
  flex:0 0 auto;padding:2px 6px;margin:0 0 2px;gap:4px;
  flex-wrap:nowrap}
body.fake-land.on-home .brand{font-size:13px;letter-spacing:.5px;margin-right:16px}
body.fake-land.on-home .brand-badge{top:-6px;right:-14px;font-size:9px;padding:3px 5px}
body.fake-land.on-home .title-chip,
body.fake-land.on-home .top-actions #btn-sound,
body.fake-land.on-home .top-actions #btn-mp{display:none}
body.fake-land.on-home .shop-chip{padding:2px 7px;font-size:10px}
body.fake-land.on-home #lobby-hero-card .lobby-user-chip{margin:2px 0 0}
body.fake-land.on-home #lobby-hero-card .lobby-user-chip .nick-chip{height:28px;padding:1px 2px 1px 2px;font-size:10px}
body.fake-land.on-home #lobby-hero-card .lobby-user-chip .nick-chip b{font-size:10px}
body.fake-land.on-home #lobby-hero-card .lobby-user-chip .nick-chip-av{width:20px;height:20px}
body.fake-land.on-home #lobby-hero-card .lobby-user-chip .nick-chip-act{height:20px;padding:0 7px;font-size:10px}
body.fake-land.on-home .top-actions .ghost,
body.fake-land.on-home .top-actions #btn-more{padding:4px 7px;font-size:10px}
body.fake-land.on-home #screen-home{
  flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin:0;overflow:hidden}
body.fake-land.on-home .lobby{
  flex:1 1 auto;min-height:0;display:flex;flex-direction:column;
  padding:2px 8px 6px;margin:0;overflow:visible}
body.fake-land.on-home .lobby-mark{display:none}
body.fake-land.on-home .lobby-top{margin-bottom:4px;flex:0 0 auto}
body.fake-land.on-home .lobby-season{padding:2px 8px;font-size:10px}
body.fake-land.on-home .layout-switch button{padding:3px 8px;font-size:10px}
body.fake-land.on-home .lobby-arena{
  flex:1 1 auto;min-height:0;align-content:center;gap:6px !important}
body.fake-land.on-home .lobby-stage-wrap{margin-top:2px}
body.fake-land.on-home .lobby-stage{height:58px;margin-bottom:0}
body.fake-land.on-home .lobby-stage img{height:54px}
body.fake-land.on-home .lobby-dog-name{top:-9px;left:-6px;font-size:10px;padding:3px 8px}
body.fake-land.on-home .lobby-fighter>b{margin:0 0 2px;font-size:11px;padding:2px 6px}
body.fake-land.on-home .lobby-dress,
body.fake-land.on-home .lobby-shop{padding:3px 4px;font-size:10px;margin:0 0 2px}
body.fake-land.on-home .lobby-foe-tag{margin:0 0 2px;font-size:9px;padding:1px 6px}
body.fake-land.on-home .coin-chip,
body.fake-land.on-home .streak-chip{margin:0 0 2px;padding:2px 6px;font-size:10px}
body.fake-land.on-home .mode-row{gap:4px}
body.fake-land.on-home .mode-row button.mode-main{padding:6px 4px;font-size:13px}
body.fake-land.on-home .mode-row button.mode-sub{padding:4px 2px;font-size:10px}
body.fake-land.on-home .lobby-go{padding:7px 10px;font-size:13px;margin-top:2px}
body.fake-land.on-home .online-bar{
  flex:0 0 auto;margin:4px 0 0;padding:5px 8px;gap:4px;border-width:2px}
body.fake-land.on-home .online-bar-title{font-size:10px;padding:2px 7px}
body.fake-land.on-home .online-stats{font-size:10px}
body.fake-land.on-home .online-bar-acts{gap:4px}
body.fake-land.on-home .online-bar-acts>button{padding:5px 7px;font-size:11px}
body.fake-land.on-home .online-code{width:64px;min-width:56px;padding:5px 2px;font-size:12px}
body.fake-land.on-home .online-bar-acts #btn-online-paste{display:none}
body.fake-land.on-home .rank-strip{display:none !important}
body.fake-land .notice-bar{display:none !important}

/* 真横屏矮屏：同样压紧，避免只露出上半 */
body.land.on-home:not(.fake-land) .rank-strip{display:none}
body.land.on-home:not(.fake-land) .lobby-hint,
body.land.on-home:not(.fake-land) .mode-vs{display:none}
@media (orientation:landscape) and (max-height:430px){
  body.land.on-home .topbar{padding:2px 8px;margin:0}
  body.land.on-home .lobby{padding:3px 8px 6px;margin:0;overflow:visible}
  body.land.on-home .lobby-stage{height:64px}
  body.land.on-home .lobby-stage img{height:58px}
  body.land.on-home .mode-row button.mode-main{padding:7px 4px;font-size:13px}
  body.land.on-home .mode-row button.mode-sub{padding:5px 3px;font-size:11px}
  body.land.on-home .lobby-go{padding:8px 10px;font-size:14px}
  body.land.on-home .online-bar{padding:6px 8px;gap:4px;margin:4px 0 0}
}

/* 假横屏选角：左小头像墙 + 右大立绘（禁止再压成 36px） */
body.fake-land.on-pick #app{padding:4px 8px;overflow:hidden;display:flex;flex-direction:column}
body.fake-land.on-pick #screen-pick{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
body.fake-land.on-pick .pick-head{margin:0 0 4px;padding:4px 8px}
body.fake-land.on-pick .pick-head p{display:none}
body.fake-land.on-pick .pick-head::after{width:40px;height:40px;font-size:13px;right:8px;top:-8px}
body.fake-land.on-pick .pick-tabs{margin:8px 0 6px}
body.fake-land.on-pick .pick-body{
  flex:1;min-height:0;grid-template-columns:minmax(0,1fr) minmax(260px,46%);gap:8px;align-items:stretch}
body.fake-land.on-pick .pick-grid{
  max-height:none;height:100%;overflow:auto;
  grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:4px;padding:5px}
body.fake-land.on-pick .dog-cell i{display:none}
body.fake-land.on-pick .dog-cell em{font-size:7px;padding:0 3px}
body.fake-land.on-pick .pick-side{display:flex !important;flex-direction:column;min-height:0;overflow:visible;padding:22px 8px 8px}
body.fake-land.on-pick .pick-side .stats,
body.fake-land.on-pick .pick-side .keys,
body.fake-land.on-pick .pick-wood{display:none}
body.fake-land.on-pick .preview{
  flex:1 1 auto !important;min-height:120px !important;height:auto !important;margin:0 0 4px !important}
body.fake-land.on-pick .preview img{
  height:90% !important;max-height:min(220px,48vh) !important;width:auto !important}
body.fake-land.on-pick .pick-side .nameplate{margin:0 0 2px;padding:4px 8px}
body.fake-land.on-pick .pick-side .style-line{margin:0 0 2px}
body.fake-land.on-pick .diff-label{margin:2px 0 0}
body.fake-land.on-pick .pick-side h2{font-size:16px}
body.fake-land.on-pick .diff-row button{padding:4px 8px;font-size:11px}
body.fake-land.on-pick #btn-random-dog{padding:5px 8px;font-size:12px}
body.fake-land.on-pick .pick-start{padding:8px 10px;font-size:15px;margin:auto 0 0}
body.fake-land .panel{padding:12px 14px}
body.fake-land .panel h2{font-size:16px;margin:0 0 4px;padding:3px 10px}
body.fake-land .panel-sub{font-size:11px;margin:0 0 8px;-webkit-line-clamp:2;
  display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
body.fake-land .orient-box{padding:8px 10px;margin:4px 0}
body.fake-land .orient-btns button{padding:8px 6px;font-size:13px}

/* v192：假横屏排位/结算/弹层压进短边；对战键略缩小 */
/* 排位 vibe 全屏：#app 仍走 fake-land 的 fixed+rotate，勿改 position/display 破坏旋转 */
body.fake-land.on-rank #app{
  padding:0!important;overflow:hidden!important}
body.fake-land.on-rank #screen-rank{
  position:absolute!important;inset:0!important;padding:0!important;overflow:hidden!important;
  width:100%!important;height:100%!important;display:block!important}
body.fake-land.on-rank .rank-hall{
  flex:1 1 auto;min-height:0 !important;width:100%;
  grid-template-columns:92px minmax(0,1fr) !important;
  grid-template-rows:auto minmax(0,1fr) auto !important;
  gap:6px 10px;padding:8px}
body.fake-land.on-rank .rank-back{grid-column:1;grid-row:1;justify-self:start}
body.fake-land.on-rank .rank-nav{
  grid-column:1;grid-row:2;flex-direction:column !important;width:auto;margin:0;gap:4px}
body.fake-land.on-rank .rank-nav button{
  flex:none !important;width:100%;text-align:left;
  border-left:3px solid transparent !important;border-bottom:0 !important;
  padding:6px 6px;font-size:12px}
body.fake-land.on-rank .rank-nav button small{display:none}
body.fake-land.on-rank .rank-nav button.on{
  border-left-color:#54c4ff !important;border-bottom-color:transparent !important}
body.fake-land.on-rank .rank-main{
  grid-column:2;grid-row:1 / span 2;min-height:0 !important;gap:8px;padding:0;justify-content:center}
body.fake-land.on-rank .rank-badge{width:min(108px,26vw);border-width:3px}
body.fake-land.on-rank .rank-stars{gap:4px;margin-bottom:4px}
body.fake-land.on-rank .rank-stars i{width:10px;height:10px}
body.fake-land.on-rank .rank-sub{font-size:14px}
body.fake-land.on-rank .rank-badge h2{font-size:12px;margin:2px 0 0}
body.fake-land.on-rank .rank-score-card{padding:8px 14px}
body.fake-land.on-rank .rank-score-card b{font-size:26px}
body.fake-land.on-rank .rank-score-card em{font-size:11px;margin-top:2px}
body.fake-land.on-rank .rank-enter{min-width:132px;padding:8px 14px;font-size:13px}
body.fake-land.on-rank .rank-reward{grid-column:1 / -1;grid-row:3;padding:4px 8px;gap:8px}
body.fake-land.on-rank .rank-reward img{width:40px;height:40px}
body.fake-land.on-rank .rank-reward b{font-size:11px}
body.fake-land.on-rank .rank-reward p{font-size:10px;margin:1px 0 4px}

body.fake-land.on-result #app{padding:4px 8px;overflow:auto}
body.fake-land.on-result .result-card{margin:4px auto;padding:10px 12px;max-width:min(520px,96%)}
body.fake-land.on-result .result-hero{width:min(160px,28vw);height:min(120px,22vw);margin:2px auto 8px}
body.fake-land.on-result .result-banner{font-size:11px;padding:3px 26px;top:8px;left:-26px}
body.fake-land.on-result .result-hero-meta b{font-size:11px}
body.fake-land.on-result .result-hero-meta span{font-size:10px;padding:2px 7px}
body.fake-land.on-result .result-card h1{font-size:18px;margin:0 0 4px}
body.fake-land.on-result .result-card>p{font-size:11px;margin:0 0 8px}
body.fake-land.on-result .score{font-size:12px;padding:4px 10px;margin-bottom:6px}
body.fake-land.on-result .result-quote,
body.fake-land.on-result .result-mp{display:none}
body.fake-land.on-result .result-desc{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.fake-land.on-result .result-stats{gap:6px;margin-bottom:8px}
body.fake-land.on-result .result-btns{gap:6px;grid-template-columns:1fr 1fr}

body.fake-land .wide-panel{overflow:auto;-webkit-overflow-scrolling:touch}
body.fake-land .shop-title-row{margin:0 0 4px;padding-right:28px;gap:8px}
body.fake-land .shop-bal{font-size:12px;padding:4px 10px}
body.fake-land .shop-bal b{font-size:15px}
body.fake-land .shop-head{gap:4px;margin-bottom:6px;padding:6px 8px;font-size:12px}
body.fake-land .shop-head b{font-size:16px}
body.fake-land .dress-grid,
body.fake-land #shop-grid{max-height:min(42%,200px);overflow:auto}
body.fake-land .guide-grid{gap:6px;overflow:auto;max-height:min(68%,260px)}
body.fake-land .guide-grid section{padding:6px 8px}
body.fake-land .guide-grid h3{font-size:11px;margin:0 0 2px}
body.fake-land .guide-grid p{font-size:10px;line-height:1.45}
body.fake-land #panel-season .panel{overflow:auto}

/* 假横屏/真横屏：技能环跟 battle-hud 尺寸走 */
body.fake-land.in-battle .pad-act.moba,
body.land.in-battle .pad-act.moba,
body.fake-land.in-battle .pad-act.moba.pad-land{
  width:232px;height:186px;right:38px;bottom:6px}
body.land.in-battle .pad-act.moba button small,
body.fake-land.in-battle .pad-act.moba button small{display:none}
body.land.in-battle .pad-act.moba button.press,
body.land.in-battle .pad-act.moba button:active,
body.fake-land.in-battle .pad-act.moba button.press,
body.fake-land.in-battle .pad-act.moba button:active{
  transform:scale(calc(var(--btn-scale,1) * .92))!important;
  filter:brightness(1.22)}

/* 横屏摇杆：贴合参考（半透明底 + 蓝球） */
body.land.in-battle .joy-base,
body.fake-land.in-battle .joy-base{
  width:118px;height:118px;border-width:2px;border-color:rgba(160,200,255,.32);
  background:radial-gradient(circle at 50% 40%,rgba(255,255,255,.1),rgba(10,18,30,.45) 70%);
  box-shadow:inset 0 4px 14px rgba(0,0,0,.5)}
body.land.in-battle .joy-base.active,
body.fake-land.in-battle .joy-base.active{
  border-color:rgba(255,215,106,.65);
  box-shadow:inset 0 4px 14px rgba(0,0,0,.45),0 0 16px rgba(255,207,74,.35)}
body.land.in-battle .joy-knob,
body.fake-land.in-battle .joy-knob{
  width:58px;height:58px;border-width:2px;border-color:rgba(200,230,255,.55);
  background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.5),transparent 50%),linear-gradient(160deg,#4a8fe0,#1d3f70);
  box-shadow:0 4px 12px rgba(0,0,0,.6)}
body.land.in-battle .joy-label,
body.fake-land.in-battle .joy-label{display:none}
body.land.in-battle .joy-arrow,
body.fake-land.in-battle .joy-arrow{opacity:.35}

body.land.in-battle #screen-battle .hud,
body.fake-land.in-battle #screen-battle .hud{
  top:4px;padding:7px 10px;border-radius:16px;
  background:linear-gradient(180deg,rgba(20,12,40,.82),rgba(10,6,24,.55));
  border:2px solid rgba(255,224,102,.28);
  box-shadow:0 5px 0 rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.12)}
body.land.in-battle .fname,
body.fake-land.in-battle .fname{
  font-size:12px;padding:3px 8px;border-radius:999px;
  background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.12);
  box-shadow:0 2px 0 rgba(0,0,0,.25)}
body.land.in-battle .bar,
body.fake-land.in-battle .bar{
  height:15px;border-width:2px;
  box-shadow:0 3px 0 rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.1)}
body.land.in-battle .meter,body.land.in-battle .gbar,
body.fake-land.in-battle .meter,body.fake-land.in-battle .gbar{
  height:11px;border:2px solid rgba(0,0,0,.45);
  box-shadow:0 2px 0 rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.08)}
body.land.in-battle .timer,
body.fake-land.in-battle .timer{
  font-size:26px;padding:4px 10px;border-radius:14px;
  background:linear-gradient(180deg,#4a3510,#2a1840);
  border:2px solid var(--btn-edge);
  box-shadow:0 4px 0 var(--btn-shadow),inset 0 1px 0 rgba(255,255,255,.2)}
body.land.in-battle .avatar,
body.fake-land.in-battle .avatar{
  width:28px;height:28px;border-width:2px;
  box-shadow:0 3px 0 rgba(0,0,0,.35)}

/* 横屏大厅按钮也鼓一点（假横屏压扁后补回） */
body.land .mode-row button,
body.fake-land .mode-row button{
  border-width:3px;font-weight:900;
  box-shadow:0 5px 0 rgba(10,48,60,.45),inset 0 2px 0 rgba(255,255,255,.28)!important}
body.land .mode-row button:active,
body.fake-land .mode-row button:active{
  transform:translateY(3px);box-shadow:0 2px 0 rgba(10,48,60,.4)!important}
body.land .lobby-go,body.fake-land .lobby-go,
body.land .lobby-dress,body.fake-land .lobby-dress,
body.land .lobby-shop,body.fake-land .lobby-shop{
  border-width:3px;
  box-shadow:0 5px 0 var(--btn-shadow),inset 0 2px 0 rgba(255,255,255,.3)!important}
body.land .top-actions .ghost,
body.fake-land .top-actions .ghost,
body.land .layout-switch button,
body.fake-land .layout-switch button{
  border-width:2px;font-weight:900;
  box-shadow:0 3px 0 rgba(18,6,31,.45),inset 0 1px 0 rgba(255,255,255,.18)}
body.land .nick-chip,body.fake-land .nick-chip,
body.land .title-chip,body.fake-land .title-chip{
  box-shadow:0 4px 0 var(--btn-shadow),inset 0 1px 0 rgba(255,255,255,.12)}

/* 竖屏排位再压一点徽章 */
body.port-pad.on-rank .rank-hall{min-height:0;padding:10px;gap:8px}
body.port-pad.on-rank .rank-main{min-height:140px;gap:8px}
body.port-pad.on-rank .rank-badge{width:min(132px,40vw)}
body.port-pad.on-rank .rank-enter{padding:10px 12px;font-size:14px}

/* ============ 手机横屏 / 虚拟轮盘 ============ */
.rotate-tip{display:none;position:fixed;inset:0;z-index:200;background:rgba(8,4,20,.97);
  align-items:center;justify-content:center;text-align:center;padding:24px}
body.need-rotate .rotate-tip{display:flex}
.rotate-inner{max-width:320px;padding:22px 20px;border-radius:22px;
  background:linear-gradient(180deg,rgba(255,207,74,.1),transparent 40%),var(--panel);
  border:3px solid var(--btn-edge);box-shadow:0 8px 0 var(--btn-shadow)}
.rotate-phone{width:70px;height:116px;margin:0 auto 24px;border:4px solid var(--gold);border-radius:15px;
  position:relative;animation:rotphone 2.4s ease-in-out infinite;
  box-shadow:0 4px 0 #5a3a08,inset 0 0 12px rgba(255,207,74,.15)}
.rotate-phone i{position:absolute;left:50%;bottom:7px;transform:translateX(-50%);width:22px;height:4px;
  border-radius:4px;background:var(--gold)}
@keyframes rotphone{0%,32%{transform:rotate(0)}68%,100%{transform:rotate(-90deg)}}
.rotate-inner h2{font-size:24px;font-weight:900;color:var(--gold);margin:0 0 10px;text-shadow:0 2px 0 #24103d}
.rotate-inner p{font-size:13px;color:var(--muted);line-height:1.8;margin:0 0 22px}
.rotate-acts{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.rotate-inner button{border:2px solid var(--btn-edge);border-radius:999px;padding:11px 20px;font-size:13px;
  font-weight:900;color:var(--btn-ink);background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));
  box-shadow:0 4px 0 var(--btn-shadow)}

.mp-float{display:none;position:fixed;right:10px;top:7px;z-index:70;
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));color:var(--btn-ink);
  border:2px solid var(--btn-edge);border-radius:99px;padding:7px 13px;font-size:11px;font-weight:900;
  box-shadow:0 3px 0 var(--btn-shadow)}
/* 顶栏已有「关注」入口；浮动按钮会盖住右上角「更多」，横屏一律隐藏 */
body.land .mp-float{display:none}


.joystick{display:none;flex-direction:column;align-items:center;gap:3px;user-select:none;-webkit-user-select:none}
body.is-touch .joystick{display:flex}
body.is-touch .pad-move{display:none}
.joy-base{width:118px;height:118px;border-radius:50%;position:relative;touch-action:none;
  border:3px solid var(--btn-edge);
  background:radial-gradient(circle at 50% 40%,rgba(110,80,180,.6),rgba(18,11,38,.88) 70%);
  box-shadow:inset 0 0 22px rgba(0,0,0,.55),0 5px 0 var(--btn-shadow),0 0 16px rgba(120,90,200,.22)}
.joy-base.active{border-color:#ffcf4a;box-shadow:inset 0 0 22px rgba(0,0,0,.45),0 5px 0 #5a3a08,0 0 20px rgba(255,207,74,.55)}
.joy-knob{position:absolute;left:50%;top:50%;width:50px;height:50px;border-radius:50%;
  transform:translate(-50%,-50%);pointer-events:none;
  background:radial-gradient(circle at 35% 30%,#fff2c9,#ffcf4a 45%,#c8890f 100%);
  border:2px solid #5a3a08;box-shadow:0 4px 0 #7c5405,0 0 14px rgba(255,207,74,.55)}
.joy-arrow{position:absolute;font-size:11px;font-weight:900;color:rgba(255,224,102,.55);pointer-events:none;
  text-shadow:0 1px 0 rgba(0,0,0,.45)}
.joy-arrow.up{top:5px;left:50%;transform:translateX(-50%)}
.joy-arrow.down{bottom:5px;left:50%;transform:translateX(-50%)}
.joy-arrow.left{left:6px;top:50%;transform:translateY(-50%)}
.joy-arrow.right{right:6px;top:50%;transform:translateY(-50%)}
.joy-label{font-size:10px;font-weight:800;color:rgba(230,218,255,.65);white-space:nowrap;
  padding:2px 8px;border-radius:999px;background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.1)}

@media(orientation:landscape) and (max-height:640px){
  html,body{height:100%;overflow:hidden}
  #app{max-width:none;padding:0;height:100%;display:flex;flex-direction:column;overflow:hidden}
  .notice-bar{display:none!important}
  /* 顶栏改为流内 flex（不再 absolute 盖住大厅首行） */
  .topbar{position:relative;flex:0 0 auto;z-index:45;margin:0;padding:3px 10px;border-radius:0;
    flex-wrap:nowrap;gap:6px;
    border-width:0 0 2px;border-style:solid;border-color:rgba(255,224,102,.2);
    background:linear-gradient(180deg,rgba(20,12,40,.92),rgba(9,5,22,.82));backdrop-filter:blur(6px);
    box-shadow:0 3px 0 rgba(0,0,0,.35)}
  .brand-wrap{flex:0 1 auto;min-width:0}
  .brand{font-size:13px;margin-right:14px;letter-spacing:.5px}
  .brand-badge{top:-5px;right:-12px;font-size:8px;padding:2px 4px}
  .nick-chip,.title-chip{padding:3px 8px;font-size:10px;box-shadow:0 2px 0 rgba(18,6,31,.35)}
  .nick-chip{max-width:80px}
  .top-actions{gap:5px;flex:0 0 auto;flex-wrap:nowrap}
  .top-actions button{padding:5px 9px;font-size:10px;border-radius:999px}

  /* —— 大厅：一屏看完，选角上场始终在底 —— */
  body.on-home #screen-home{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin:0;padding:0;overflow:hidden}
  body.on-home .lobby{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;
    padding:2px 10px 8px;margin:0;border-radius:16px;overflow:visible}
  body.on-home .lobby-mark{display:none}
  body.on-home .lobby-top{flex:0 0 auto;margin-bottom:4px;gap:6px}
  body.on-home .lobby-season{padding:2px 8px;font-size:10px}
  body.on-home .layout-switch button{padding:3px 8px;font-size:10px}
  body.on-home .lobby-board-btn{padding:2px 8px;font-size:10px}
  body.on-home .lobby-meta{font-size:10px;padding:2px 8px}
  /* 复位竖屏泄漏：左角色 + 右玩法 */
  .lobby-arena{grid-template-columns:minmax(112px,150px) minmax(0,1fr);gap:8px;align-items:stretch}
  .lobby-modes{grid-column:auto;order:0;min-width:0}
  .lobby-go{grid-column:1/-1}
  body.on-home .lobby-arena{flex:1 1 auto;min-height:0;align-content:center;gap:6px}
  body.on-home .lobby-stage-wrap{margin-top:4px}
  body.on-home .lobby-stage{height:84px;margin-bottom:0}
  body.on-home .lobby-stage img{height:78px}
  body.on-home .lobby-dog-name{top:-10px;left:-7px;font-size:11px}
  body.on-home .lobby-fighter>b{margin:0 0 3px;font-size:11px;padding:2px 6px}
  body.on-home .lobby-dress,body.on-home .lobby-shop{padding:3px 8px;font-size:10px;margin:0 2px 2px;min-width:0}
  body.on-home .lobby-foe-tag{margin:0 0 2px;font-size:9px;padding:1px 6px}
  body.on-home .coin-chip,body.on-home .streak-chip{margin:0 0 2px;padding:2px 6px;font-size:10px}
  .lobby-hint{display:none}
  .mode-vs{display:none}
  .mode-row{margin-bottom:0;gap:5px;grid-template-columns:repeat(4,1fr)}
  .mode-row button{padding:7px 4px;font-size:12px}
  .mode-row button.mode-main{padding:9px 4px;font-size:13px}
  .mode-row button.mode-sub{padding:7px 3px;font-size:11px}
  .mode-row button small{display:none}
  body.on-home .lobby-go{padding:9px 10px;font-size:14px;margin-top:2px;min-width:100%}
  body.on-home .online-bar{flex:0 0 auto;margin:4px 0 0;padding:5px 8px;gap:4px;border-width:2px}
  body.on-home .online-bar-title{font-size:10px;padding:2px 7px}
  body.on-home .online-stats{font-size:10px}
  body.on-home .online-bar-acts{gap:4px}
  body.on-home .online-bar-acts>button{padding:5px 7px;font-size:11px}
  body.on-home .online-code{width:64px;min-width:56px;padding:5px 2px;font-size:12px}
  body.on-home .online-bar-acts #btn-online-paste{display:none}
  body.on-home .rank-strip{display:none!important}

  /* —— 排行榜：一屏，列表内部滚 —— */
  body.on-board #screen-board{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding:4px 8px;overflow:hidden}
  body.on-board .board-hall{flex:1 1 auto;min-height:0}
  body.on-board .board-list{flex:1 1 auto;min-height:0;max-height:none}

  /* —— 选角：网格优先 + 上场卡贴底，开打始终可见 —— */
  #screen-pick{position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:6px 10px}
  .pick-head{flex:0 0 auto;margin:0 0 4px;padding:4px 8px;gap:8px}
  .pick-head h1{font-size:13px}
  .pick-head p{display:none}
  .pick-tabs{flex:0 0 auto;margin:8px 0 6px}
  .pick-body{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,46%);gap:8px;align-items:stretch}
  .pick-grid{grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:4px;padding:5px;height:100%;max-height:none;min-height:0;overflow:auto}
  .pick-side{display:flex;flex-direction:column;min-height:0;overflow:visible;padding:22px 8px 8px;text-align:center;position:relative}
  .pick-side::before{font-size:9px;padding:2px 8px;top:4px}
  .preview{flex:1 1 auto;min-height:140px;height:auto;margin:0 0 4px}.preview img{height:90%;max-height:min(260px,50vh)}
  .pick-side .nameplate{margin:0 0 4px;padding:5px 8px}
  .pick-side h2{font-size:15px;margin:0 0 2px}
  .style-line{margin:0 0 4px;justify-content:center}
  .pick-side .stats,.pick-side .keys,.pick-wood{display:none}
  .diff-label{margin:0 0 3px;font-size:10px}
  .diff-row{margin:0 0 6px;gap:5px}.diff-row button{padding:5px 0;font-size:11px}
  .vs-pick{margin:0 0 6px;padding:6px 8px}
  .btn-random{margin:0 0 4px;padding:7px;font-size:12px}
  .pick-start{margin:auto 0 0;padding:10px;font-size:15px;flex:0 0 auto}
  .online-vs-preview{margin:0 0 4px}

  /* —— 排位大厅：左导航 + 右徽章 + 底部奖励，一屏 —— */
  #screen-rank{position:relative;flex:1 1 auto;min-height:0;display:flex;padding:4px 8px;overflow:hidden}
  .rank-hall{flex:1 1 auto;min-height:0!important;width:100%;
    grid-template-columns:96px minmax(0,1fr)!important;
    grid-template-rows:auto minmax(0,1fr) auto!important;gap:6px 10px;padding:8px}
  body.land.on-rank .rank-back{grid-column:1;grid-row:1;justify-self:start}
  body.land.on-rank .rank-nav{grid-column:1;grid-row:2;flex-direction:column!important;width:auto;margin:0;gap:4px}
  body.land.on-rank .rank-nav button{flex:none!important;width:100%;text-align:left;border-left:3px solid transparent!important;
    border-bottom:0!important;padding:6px;font-size:12px}
  body.land.on-rank .rank-nav button small{display:none}
  body.land.on-rank .rank-nav button.on{border-left-color:#54c4ff!important;border-bottom-color:transparent!important}
  body.land.on-rank .rank-main{grid-column:2;grid-row:1 / span 2;min-height:0!important;gap:8px;padding:0;justify-content:center}
  body.land.on-rank .rank-badge{width:min(112px,26vw);border-width:3px}
  body.land.on-rank .rank-stars{gap:4px;margin-bottom:4px}body.land.on-rank .rank-stars i{width:10px;height:10px}
  body.land.on-rank .rank-sub{font-size:14px}body.land.on-rank .rank-badge h2{font-size:12px;margin:2px 0 0}
  body.land.on-rank .rank-score-card{padding:8px 14px}body.land.on-rank .rank-score-card b{font-size:26px}body.land.on-rank .rank-score-card em{font-size:11px;margin-top:2px}
  body.land.on-rank .rank-enter{min-width:132px;padding:8px 14px;font-size:13px}
  body.land.on-rank .rank-reward{grid-column:1 / -1;grid-row:3;padding:4px 8px;gap:8px}
  body.land.on-rank .rank-reward img{width:40px;height:40px}body.land.on-rank .rank-reward b{font-size:11px}body.land.on-rank .rank-reward p{font-size:10px;margin:1px 0 4px}

  /* —— 结算：压进短边，可滚 —— */
  #screen-result{position:relative;flex:1 1 auto;min-height:0;overflow:auto;padding:6px 12px}
  .result-card{max-width:480px;margin:4px auto;padding:12px}
  .result-hero{width:min(160px,30vw);height:min(120px,24vw);margin:2px auto 8px}
  .result-card h1{font-size:19px;margin-bottom:4px}.score{font-size:13px;margin-bottom:8px}
  .result-quote,.result-mp{display:none}
  .result-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .result-stats{gap:6px;margin-bottom:8px}
  .result-btns{gap:6px}
  blockquote{margin-bottom:10px;padding:8px 10px;font-size:12px}

  /* —— 对战：整屏画布由 body.land.in-battle 规则定位，这里只定键位尺寸 —— */
  .hud{grid-template-columns:1fr 62px 1fr;gap:8px;padding:5px 9px;border-radius:10px}
  .fname{font-size:11px;margin-bottom:3px}.avatar{width:22px;height:22px}
  .bar{height:11px}.mini{height:7px;margin-top:3px}.meter,.gbar{height:7px}
  .pips{height:6px;margin-top:3px}.pips b{width:7px;height:7px}
  .timer{font-size:19px}.round{font-size:9px}.modetag{font-size:9px}
  .joy-base{width:112px;height:112px;user-select:none;-webkit-user-select:none}
  .joy-label{display:none}
  .pad-act.moba{position:absolute;right:38px;bottom:8px;display:block;width:232px;height:186px;
    grid-template-columns:unset;grid-auto-rows:unset;gap:0}
  .pad-act.moba button{min-width:0;border-radius:50%;padding:0;
    font-size:10px;line-height:1.1;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 3px 0 rgba(0,0,0,.45)}
  .pad-act.moba button small{display:none}
  .pad-act.moba .b-super{box-shadow:0 0 16px rgba(255,207,74,.55),0 3px 0 #7c5405}
  .pad-act.moba .b-super.hot{animation:meterpulse .6s infinite alternate}
  .practice-bar{padding:6px 9px;font-size:11px;background:rgba(23,16,41,.92);gap:8px}
  .practice-bar em{display:none}

  /* —— 弹层：遮罩可滚 + 面板限高，关闭/保存始终够得着 —— */
  .mask{position:fixed;inset:0;min-height:0;overflow:auto;padding:8px;
    display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
  .mask .panel,.mask .mp-card{margin:auto}
  .mask .wide-panel{max-height:calc(100vh - 16px);overflow:auto}
  .panel{padding:16px 16px}
  .panel h2{font-size:16px;margin:0 0 6px;padding:3px 10px}
  .panel-sub{font-size:11px;margin:0 0 8px;line-height:1.45;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .panel-close,.mp-close{width:30px;height:30px;line-height:26px;font-size:16px;right:8px;top:8px}
  .panel-foot{margin-top:10px;padding:10px 2px 0}
  .dress-layout{grid-template-columns:minmax(160px,.85fr) minmax(0,1.3fr);gap:8px;flex:1 1 auto;min-height:0;overflow:hidden}
  .dress-main{min-height:0}
  .dress-tabs{flex:0 0 auto;margin-bottom:8px;padding:6px;gap:5px;flex-wrap:wrap;overflow-x:visible}
  .dress-tabs button{padding:5px 9px;font-size:11px;flex:none}
  .dress-grid{flex:1 1 auto;min-height:0;max-height:none;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:6px;padding:8px}
  .dress-item{padding:7px 5px;border-radius:12px}
  .dress-item .swatch{height:54px;margin-bottom:4px}
  .dress-item b{font-size:11px}.dress-item small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:9px}
  .fx-preview{min-height:0;height:100%}
  .fx-dog{height:96px}
  .layout-editor{flex:1 1 auto;min-height:0;overflow:auto;grid-template-columns:1fr 184px;gap:10px}
  .layout-preview{height:150px;min-height:0}
  .layout-controls{gap:6px;align-content:start}
  .layout-controls label{grid-template-columns:auto 1fr;align-items:center;gap:6px;padding:4px 8px}
  .layout-controls input[type=range]{height:16px}
  .layout-controls select{padding:4px 8px;font-size:11px}
  .layout-controls .panel-foot{margin-top:6px;padding:6px 2px 0}
  .layout-controls .panel-foot button{padding:7px 12px;font-size:12px}
  .guide-grid{flex:1 1 auto;min-height:0;grid-template-columns:1fr;gap:8px}
  .guide-grid section{padding:8px 10px}
  .guide-grid h3{font-size:12px;margin:0 0 4px}.guide-grid p{font-size:10px;line-height:1.5}
  .wide-panel .ladder-list{flex:1 1 auto;min-height:0;max-height:none}
  .roster-grid{max-height:none;flex:1 1 auto;min-height:0}
  .mp-card{padding:16px}.qr-box{width:110px;height:110px;margin-bottom:10px}
  .mp-card h2{font-size:21px}.mp-how{margin-bottom:10px;font-size:12px}
}

@media(max-width:820px){
  /* 狗脸网格优先：侧栏沉底，避免先看到一堆按钮 */
  .pick-body{display:flex;flex-direction:column;gap:10px}
  .pick-grid{order:1;grid-template-columns:repeat(6,1fr);max-height:none;
    min-height:42vh;flex:1 1 auto}
  .pick-side{order:2;display:grid;grid-template-columns:96px 1fr;gap:6px 12px;align-items:center;
    text-align:left;padding:12px 10px 10px;position:sticky;bottom:6px;z-index:6;
    background:linear-gradient(180deg,rgba(20,40,60,.96),rgba(12,24,40,.98));
    box-shadow:0 -6px 18px rgba(0,0,0,.28),0 6px 0 rgba(18,6,31,.36)}
  .preview{height:92px;grid-row:span 3;margin:0}
  .preview img{height:86px}
  .pick-side .nameplate{margin:0;padding:6px 8px}
  .pick-side .nameplate h2{margin:0 0 2px;font-size:16px}
  .pick-side .style-line{justify-content:flex-start;margin:0}
  .pick-side .stats{display:none}
  .pick-side .keys{display:none}
  .diff-label{grid-column:1/-1;margin:4px 0 0;font-size:11px}
  .diff-row,.vs-pick,.pick-side .wide,.pick-side .big,.online-vs-preview{grid-column:1/-1}
  .pick-side .wide{margin:4px 0 0}
  .pick-start{margin:6px 0 0;padding:12px 10px;font-size:16px;
    position:sticky;bottom:0;z-index:7}
  .guide-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  #app{padding:0 8px 16px}
  .brand{font-size:16px}.brand-badge{font-size:9px;padding:1px 6px}
  .topbar{padding:7px 8px 8px;gap:8px}
  /* 窄屏：顶栏入口横滑，不整排换行把大厅顶下去 */
  .top-actions{
    width:100%;flex-wrap:nowrap;justify-content:flex-start;
    overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px;scrollbar-width:none}
  .top-actions::-webkit-scrollbar{display:none}
  .top-actions .ghost{display:inline-block;flex:none;padding:6px 10px;font-size:11px}
  .top-actions #btn-mp{flex:none}
  .pick-grid,.roster-grid{grid-template-columns:repeat(5,1fr);gap:5px;padding:7px}
  .dress-grid{grid-template-columns:repeat(3,1fr)}
  .pick-head{padding:7px 10px;gap:8px;margin:0 0 8px}
  .pick-head h1{font-size:14px}
  .pick-head p{font-size:11px}
  .pick-side{padding:14px 10px 10px}
  .pick-side::before{font-size:10px;padding:2px 10px}
  .nameplate h2{font-size:18px}
  .mode-row{grid-template-columns:repeat(6,1fr);gap:6px}
  .mode-row button.mode-main{font-size:13px;padding:11px 5px}
  .mode-row button.mode-sub{font-size:11px;padding:8px 3px}
  .mode-row button small{font-size:9px}
  .mode-vs{display:none}
  .lobby-hint{font-size:10px;padding:5px 8px;border-radius:14px}
  .layout-switch{margin:0;padding:3px}
  .layout-switch button{padding:4px 9px;font-size:11px}
  .foot-note{font-size:10px;margin-top:8px}
  .nick-chip,.title-chip{max-width:88px;padding:5px 8px;font-size:10px}
  .hud{grid-template-columns:1fr 56px 1fr;gap:5px;padding:6px 7px;margin:2px 0 6px}
  .fname{font-size:10px;padding:2px 6px}.fname small{display:none}
  .avatar{width:22px;height:22px;border-radius:8px}
  .timer{font-size:18px}.modetag{display:none}
  .gbar{flex:0 0 48px}
  .pad-move button,.controls > button{min-width:0;flex:1;height:48px;font-size:11px;padding:0 2px}
  .pad-move button{font-size:16px}
  /* 窄屏只压竖屏底栏；横屏/假横屏保持疏布局 */
  body.port-pad .pad-act.moba{margin-left:auto;width:216px;height:188px}
  body.land .pad-act.moba,body.fake-land .pad-act.moba{width:232px;height:186px}
  .battle-meta{gap:6px;font-size:11px}
  .battle-meta-btns{gap:5px;flex-wrap:wrap}
  .battle-meta-btns .ghost{padding:5px 8px;font-size:11px}
  .result-stats{grid-template-columns:repeat(2,1fr)}
  .result-btns{grid-template-columns:1fr}
  .panel{padding:18px 14px}
}

/* 横屏优先：压过上面的窄屏规则（body.land 提高优先级，盖住 max-width:820 的竖屏沉底写法） */
@media(orientation:landscape) and (max-height:640px){
  body.land .pick-body{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,46%);gap:8px;align-items:stretch}
  body.land .pick-grid,body.land .roster-grid{grid-template-columns:repeat(auto-fill,minmax(48px,1fr));order:0;min-height:0;max-height:none}
  body.land .pick-grid{height:100%;overflow:auto}
  body.land .pick-side{order:0;display:flex;flex-direction:column;min-height:0;overflow:visible;text-align:center;
    padding:8px;position:relative;bottom:auto;
    background:linear-gradient(180deg,rgba(255,207,74,.1),transparent 28%),var(--panel);box-shadow:0 7px 0 rgba(18,6,31,.36)}
  body.land .preview{flex:1 1 auto;min-height:140px;height:auto;grid-row:auto;margin:0 0 4px}
  body.land .preview img{height:90%;max-height:min(260px,50vh);width:auto}
  body.land .pick-side .stats,body.land .pick-side .keys,body.land .pick-wood{display:none}
  body.land .pick-side h2{margin:0 0 2px;font-size:15px}
  body.land .style-line{justify-content:center;margin:0 0 4px}
  body.land .pick-start{margin:auto 0 0;flex:0 0 auto}
  body.land .top-actions .ghost{display:inline-block}
  body.land .hud{grid-template-columns:1fr 62px 1fr;gap:8px}
  body.land .timer{font-size:19px}
  body.land .controls button{min-width:0;flex:none;height:58px;font-size:12px;padding:0}
  body.land.on-result .result-card{margin:4px auto;padding:10px 12px;max-width:560px}
  body.land.on-result .result-hero{width:min(120px,22vw);height:min(92px,20vw);margin:2px auto 6px}
  body.land.on-result .result-card h1{font-size:18px;margin:0 0 3px}
  body.land.on-result .result-card>p{font-size:11px;margin:0 0 5px}
  body.land.on-result .score{font-size:12px;padding:4px 10px;margin-bottom:6px}
  body.land.on-result .result-stats{grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:6px}
  body.land.on-result .result-stats b{font-size:15px}
  body.land.on-result .result-btns{grid-template-columns:1.4fr 1fr 1fr 1fr;gap:6px}
  body.land.on-result .result-btns .big,
  body.land.on-result .result-btns .result-cta-main,
  body.land.on-result .result-btns .result-home,
  body.land.on-result .result-btns #btn-rematch-ready{grid-column:auto;font-size:13px;padding:9px 8px}
  body.land.on-result .result-btns .ghost,
  body.land.on-result .result-btns .primary{font-size:12px;padding:9px 6px}
  body.land .mode-row{grid-template-columns:repeat(6,1fr)}
}
@media(max-width:520px){
  .result-btns{grid-template-columns:1fr}
}

/* —— 布局切换已迁到设置；大厅顶栏仅留排行榜 —— */
.layout-switch{display:none!important}
.layout-switch-legacy{display:inline-flex;align-items:center;gap:4px;margin:0;padding:3px;
  border-radius:999px;background:rgba(0,0,0,.22);border:1px solid rgba(255,224,102,.18);
  width:fit-content;max-width:100%;flex:0 0 auto}
.layout-switch button{border:2px solid rgba(255,255,255,.28);background:transparent;color:#efe8ff;border-radius:999px;
  padding:4px 10px;font-size:11px;font-weight:800}
.layout-switch button.on{border-color:var(--btn-edge);background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));color:var(--btn-ink)}

/* —— 选角 Tab —— */
.pick-tabs-row{display:flex;align-items:center;gap:8px;margin:10px 0 10px;min-width:0}
.pick-tabs{display:flex;gap:8px;margin:0;flex:1 1 auto;min-width:0;flex-wrap:nowrap;align-items:center;
  overflow-x:auto;-webkit-overflow-scrolling:touch;padding:2px 0 4px;scrollbar-width:none}
.pick-tabs::-webkit-scrollbar{display:none}
.pick-tabs button{border:2px solid rgba(255,255,255,.28);background:rgba(0,0,0,.22);color:#efe8ff;border-radius:999px;
  padding:8px 14px;font-size:13px;font-weight:800;min-width:84px;flex:none}
.pick-tabs button.on{border-color:var(--btn-edge);background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));color:var(--btn-ink);
  box-shadow:0 3px 0 var(--btn-shadow)}
.pick-tabs button.on::before{content:"★";margin-right:4px;font-size:12px;line-height:1;color:inherit}
.pick-tabs-random{flex:0 0 auto;margin:0;padding:8px 14px;font-size:13px;font-weight:900;white-space:nowrap;
  border:2px solid var(--btn-edge)!important;border-radius:999px;
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));color:var(--btn-ink);
  box-shadow:0 3px 0 var(--btn-shadow)}
.cpu-diff-panel{width:min(380px,96%)}
.cpu-diff-panel .diff-label{display:block;margin:4px 0 8px}
.cpu-diff-panel .diff-row{margin:0 0 4px}
.dog-cell.lock{opacity:.45;filter:grayscale(.35)}
.dog-cell.lock em{color:#ff8aa8}

/* —— 排位/巅峰大厅（王者风 · flex 防叠压） —— */
#screen-rank{padding:8px 0 20px}
.rank-hall{display:grid;grid-template-columns:120px 1fr;grid-template-rows:auto 1fr auto;gap:12px 16px;
  min-height:min(520px,78vh);border-radius:20px;overflow:hidden;padding:14px 14px 16px;
  background:
    radial-gradient(ellipse at 50% 18%,rgba(90,140,255,.28),transparent 55%),
    linear-gradient(160deg,#0a1630 0%,#14244a 45%,#1a1040 100%);
  border:2px solid rgba(120,170,255,.28);box-shadow:0 8px 0 rgba(8,12,28,.45)}
.rank-back{grid-column:1;grid-row:1;justify-self:start;align-self:start;z-index:3}
.rank-nav{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:8px;align-self:start;margin-top:4px}
.rank-nav button{text-align:left;border:0;border-left:3px solid transparent;background:transparent;color:rgba(255,255,255,.55);
  padding:10px 8px;font-size:14px;font-weight:800}
.rank-nav button small{display:block;font-size:10px;font-weight:700;opacity:.75;margin-top:2px}
.rank-nav button.on{color:#fff;border-left-color:#54c4ff;text-shadow:0 0 12px rgba(84,196,255,.45)}
.rank-main{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:260px;padding:8px 8px 0}
.rank-panel-peak{display:none}
.rank-hall.peak .rank-panel-ranked{display:none}
.rank-hall.peak .rank-panel-peak{display:block}
.rank-badge{width:min(240px,58vw);aspect-ratio:1;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:radial-gradient(circle at 40% 30%,rgba(200,220,255,.25),rgba(20,30,70,.9) 62%);
  border:4px solid rgba(180,200,255,.45);box-shadow:0 0 40px rgba(90,140,255,.35),inset 0 0 30px rgba(0,0,0,.35)}
.rank-stars{display:flex;gap:6px;margin-bottom:8px;align-items:center;flex-wrap:wrap}
.rank-stars .rank-stars-x{font-size:13px;font-weight:900;color:#ffcf4a;letter-spacing:.02em;margin-left:2px}
.rank-stars i{width:14px;height:14px;display:block;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  background:rgba(255,255,255,.18)}
.rank-stars i.on{background:linear-gradient(#fff6c8,#ffcf4a);box-shadow:0 0 8px rgba(255,207,74,.65)}
.rank-sub{font-size:22px;font-weight:900;color:#dfe9ff;letter-spacing:.08em}
.rank-badge h2{margin:4px 0 0;font-size:clamp(16px,4.2vw,20px);font-weight:900;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.35)}
.rank-score-card{text-align:center;padding:18px 28px;border-radius:18px;background:rgba(0,0,0,.28);border:2px solid rgba(120,170,255,.35)}
.rank-score-card span{display:block;font-size:12px;font-weight:800;color:rgba(255,255,255,.55)}
.rank-score-card b{display:block;font-size:clamp(36px,10vw,48px);font-weight:900;color:#fff;line-height:1.1;text-shadow:0 0 20px rgba(84,196,255,.45)}
.rank-score-card em{display:block;margin-top:6px;font-style:normal;font-size:14px;font-weight:800;color:#ffcf4a}
.rank-enter{min-width:min(200px,70vw);padding:12px 28px}
.rank-reward{grid-column:1 / -1;grid-row:3;display:flex;gap:10px;align-items:center;width:100%;
  padding:8px 10px;border-radius:14px;background:rgba(0,0,0,.42);border:1px solid rgba(255,207,74,.28);box-sizing:border-box;
  cursor:pointer;user-select:none;transition:filter .15s ease,transform .15s ease,border-color .15s ease}
.rank-reward:hover,.rank-reward:focus-visible{filter:brightness(1.08);border-color:rgba(255,207,74,.55);
  outline:none;transform:translateY(-1px)}
.rank-reward:active{transform:translateY(0);filter:brightness(1.02)}
.rank-reward img{width:64px;height:64px;object-fit:contain;background:rgba(255,255,255,.06);border-radius:12px;flex:none;
  pointer-events:none}
.rank-reward-copy{min-width:0;flex:1}
.rank-reward b{display:block;font-size:13px;color:#ffcf4a}
.rank-reward p{margin:2px 0 4px;font-size:11px;color:rgba(255,255,255,.65);font-weight:700;line-height:1.35}
.rank-reward-more{display:inline-block;font-size:10px;font-weight:800;color:#1a3040;padding:2px 8px;border-radius:999px;
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));border:1.5px solid var(--btn-edge)}
.gold-reward-panel{width:min(440px,96%);text-align:center}
/* 波普：纯白底 + 粗黑描边 + 硬偏移色块 */
.gold-reward-hero{position:relative;margin:8px 0 14px;padding:18px 14px;border-radius:10px;
  background:#fff;border:4px solid #111018;
  box-shadow:7px 7px 0 #ff3d7f, 14px 14px 0 #111018}
.gold-reward-hero::after{content:"";position:absolute;right:10px;top:10px;width:14px;height:14px;
  border-radius:50%;background:#ffe14a;border:3px solid #111018;box-shadow:3px 3px 0 #111018;pointer-events:none}
.gold-reward-hero img{display:block;width:min(280px,78vw);height:auto;max-height:min(360px,46vh);margin:0 auto;
  object-fit:contain;
  filter:drop-shadow(2px 0 0 #111018) drop-shadow(-2px 0 0 #111018)
         drop-shadow(0 2px 0 #111018) drop-shadow(0 -2px 0 #111018)
         drop-shadow(3px 3px 0 rgba(17,16,24,.18))}
.gold-reward-bar{display:flex;align-items:center;justify-content:space-between;gap:10px 12px;
  margin-top:2px;padding:10px 12px;border-radius:12px;text-align:left;
  background:rgba(255,255,255,.06);border:2px solid rgba(255,255,255,.14)}
.gold-reward-bar #gold-reward-status{flex:1;min-width:0;margin:0;font-size:12px;font-weight:800;
  color:#ffe9a8;line-height:1.45}
.gold-reward-acts{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.gold-reward-acts .ghost,.gold-reward-acts .primary{padding:7px 12px;font-size:12px;white-space:nowrap}
@media(max-width:420px){
  .gold-reward-bar{flex-wrap:wrap}
  .gold-reward-acts{width:100%;justify-content:flex-end}
}
@media(max-width:720px){
  .rank-hall{grid-template-columns:1fr;grid-template-rows:auto auto 1fr auto;gap:10px;min-height:0;padding:12px}
  .rank-back{grid-column:1;grid-row:1}
  .rank-season-row{grid-column:1;grid-row:1;justify-self:end;max-width:72%}
  .rank-nav{grid-column:1;grid-row:2;flex-direction:row;width:100%;margin:0;gap:4px}
  .rank-nav button{flex:1;border-left:0;border-bottom:3px solid transparent;padding:8px 6px;text-align:center;font-size:13px}
  .rank-nav button.on{border-bottom-color:#54c4ff;border-left-color:transparent}
  .rank-main{grid-column:1;grid-row:3;min-height:220px;padding:4px 0 8px;gap:14px}
  .rank-reward{grid-column:1;grid-row:4}
  .rank-badge{width:min(200px,56vw)}
}
/* 联机条：头栏 + 操作 + 状态 */
.online-bar{gap:8px;padding:10px 10px 12px}
.online-bar-head{display:grid;grid-template-columns:1fr auto;gap:6px 8px;align-items:center}
.online-bar-title{margin:0;align-self:auto;grid-column:1}
.online-bar-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;grid-column:2;justify-self:end}
.online-bar-head .online-status{
  grid-column:1/-1;display:block;width:100%;max-width:none;margin-left:0;min-width:0;
  line-height:1.3;padding:6px 10px;box-sizing:border-box;border-radius:12px}
.online-bar-head .online-status.idle,
.online-bar-head .online-status[hidden]{display:none!important}
.online-bar-acts{align-items:center;gap:6px}
.online-code{width:96px;min-width:88px;flex:0 0 auto;margin-bottom:0!important;text-align:center;letter-spacing:.12em}
.online-stats,.online-lag{white-space:nowrap}
.foot-note{display:none!important}
/* 大厅去重：提示条与 VS 水印少占高 */
.lobby-hint{display:none}
@media(max-width:900px){
  .mode-vs{display:none}
  body.on-home .title-chip{display:none}
  body.on-home .topbar{padding:6px 8px;margin-top:6px;gap:6px}
  body.on-home .brand{font-size:18px;letter-spacing:1px}
  body.on-home .notice-bar{margin-top:6px}
}
.online-status:not(.on):not(.wait){opacity:.72;font-weight:700}
@media(max-width:520px){
  .online-bar{padding:8px;gap:6px;margin-bottom:10px}
  .online-bar-title{font-size:11px;padding:3px 9px}
  .online-bar-acts>button{padding:7px 9px;font-size:12px}
  .online-code{width:78px;min-width:72px;padding:8px 4px;font-size:13px;letter-spacing:.08em}
  .online-bar-head .online-status{font-size:12px;padding:5px 8px}
  /* 大厅再挤一档：模式小字藏掉，顶栏只留主入口 */
  body.on-home .top-actions #btn-sound{display:none}
  body.on-home .lobby{padding:2px 10px 8px;margin-bottom:10px;overflow:visible}
  body.on-home .lobby-top{gap:6px;margin-bottom:8px}
  body.on-home #lobby-hero-card .lobby-meta{display:inline-flex}
  body.on-home .mode-row button small{display:none}
  body.on-home .mode-row button.mode-main{padding:12px 6px;font-size:15px}
  body.on-home .mode-row button.mode-sub{padding:9px 4px;font-size:12px}
  body.on-home .lobby-go{padding:12px 10px;font-size:15px;margin-top:4px}
  body.on-home .online-bar-acts #btn-online-paste{display:none}
  body.on-home .nick-chip{max-width:72px;padding:4px 8px;font-size:10px}
  .top-actions{gap:5px}
  .top-actions .ghost,.top-actions .primary,.top-actions #btn-more{padding:6px 9px;font-size:11px}
  .pick-head p{display:none}
}

/* 仅藏 #app 直属首页顶栏；排位页自己的 .topbar（含返回）要保留 */
body:not(.on-home) #app > .topbar,
body:not(.on-home) .mp-float{display:none!important}
body.in-battle #app,
body.on-pick #app,
body.on-rank #app,
body.on-board #app,
body.on-online #app,
body.on-adventure #app,
body.on-scene #app,
body.on-result #app{padding-top:4px;padding-bottom:12px}
body.on-advplay #app{padding:0!important}
body.in-battle #app{max-width:100%;padding-left:8px;padding-right:8px}
body.port-pad.in-battle #app{padding-left:4px;padding-right:4px;padding-bottom:0}
body.port-pad #screen-battle .controls .b-guard .btn-shield{font-size:14px}
body.port-pad #screen-battle .controls .b-guard{font-size:0}
body.port-pad #screen-battle .controls .b-guard .btn-shield{font-size:16px;display:block}
body.port-pad #screen-battle .battle-meta #battle-tip{
  flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:48vw}
.battle-meta .lab-short{display:none}
body.port-pad .battle-meta .lab-full{display:none}
body.port-pad .battle-meta .lab-short{display:inline}
body.port-pad .battle-meta-btns .ghost{padding:5px 8px;min-width:36px}

/* 竖屏：排位厅紧凑 */
body.port-pad.on-rank .rank-hall{
  grid-template-columns:1fr;grid-template-rows:auto auto 1fr auto;gap:8px;min-height:0;padding:10px}
body.port-pad.on-rank .rank-back{grid-column:1;grid-row:1}
body.port-pad.on-rank .rank-nav{grid-column:1;grid-row:2;flex-direction:row;width:100%;margin:0;gap:4px}
body.port-pad.on-rank .rank-nav button{flex:1;border-left:0;border-bottom:3px solid transparent;
  padding:8px 6px;text-align:center;font-size:13px}
body.port-pad.on-rank .rank-nav button.on{border-bottom-color:#54c4ff;border-left-color:transparent}
body.port-pad.on-rank .rank-nav button small{display:none}
body.port-pad.on-rank .rank-main{grid-column:1;grid-row:3;min-height:180px;padding:0;gap:12px}
body.port-pad.on-rank .rank-reward{grid-column:1;grid-row:4;padding:6px 8px}
body.port-pad.on-rank .rank-reward img{width:48px;height:48px}
body.port-pad.on-rank .rank-badge{width:min(168px,48vw)}
body.port-pad.on-rank .rank-enter{min-width:100%;padding:12px 14px;font-size:16px}

/* 竖屏：结算去广告位，按钮一列 */
body.port-pad.on-result .result-quote,
body.port-pad.on-result .result-mp{display:none}
body.port-pad.on-result .result-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.port-pad.on-result .result-btns{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
body.port-pad.on-result .result-btns .big,
body.port-pad.on-result .result-btns .result-cta-main,
body.port-pad.on-result .result-btns #btn-rematch-ready{grid-column:1/-1}
body.port-pad.on-result .result-btns .result-home{grid-column:auto;font-size:12px;padding:9px 4px}
body.port-pad.on-result .result-card{margin:6px auto;padding:14px 12px}
body.port-pad.on-home .notice-bar{display:none}
body.on-result .result-card{margin:10px auto;padding:18px 14px}
body.on-result .result-hero{width:min(240px,68vw);height:min(200px,36vw)}
@media(max-width:520px){
  body.on-result .result-card{margin:6px auto;padding:14px 12px}
  body.on-result .result-hero{width:min(200px,62vw);height:min(168px,34vw);margin:4px auto 10px}
  body.on-result .result-mp{flex-direction:column;align-items:stretch;text-align:center;gap:8px}
  body.on-result .result-mp button{width:100%}
  body.on-pick #app,body.on-rank #app,body.on-result #app{padding-top:2px;padding-bottom:8px}
  body.on-pick .pick-head{margin:0 0 6px}
}

/* 竖屏版：选角跟窄屏一样「网格优先 + 底栏上场卡」，不跟浏览器宽度走 */
body.port-pad.on-pick #app{padding-bottom:8px;max-width:960px}
body.port-pad.on-pick .pick-head{margin:0 0 6px;padding:6px 8px;gap:8px}
body.port-pad.on-pick .pick-head p{display:none}
body.port-pad.on-pick .pick-tabs{margin:10px 0 6px;gap:6px}
body.port-pad.on-pick .pick-tabs button{padding:5px 10px;font-size:12px}
body.port-pad.on-pick .pick-body{
  display:flex;flex-direction:column;gap:8px;
  min-height:calc(100dvh - 72px);width:100%}
body.port-pad.on-pick .pick-grid{
  order:1;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));
  max-height:none;min-height:44vh;flex:1 1 auto;gap:6px;padding:8px;width:100%}
body.port-pad.on-pick .pick-side{
  order:2;display:grid;grid-template-columns:88px 1fr;gap:6px 10px;align-items:center;
  text-align:left;padding:10px 10px 8px;position:sticky;bottom:4px;z-index:6;
  width:100%;box-sizing:border-box;align-self:stretch;
  background:linear-gradient(180deg,rgba(20,40,60,.97),rgba(12,24,40,.99));
  box-shadow:0 -6px 18px rgba(0,0,0,.3),0 5px 0 rgba(18,6,31,.36);
  border-radius:16px}
body.port-pad.on-pick .pick-side::before{display:none}
body.port-pad.on-pick .preview{height:84px;grid-row:span 3;margin:0}
body.port-pad.on-pick .preview img{height:78px}
body.port-pad.on-pick .pick-side .nameplate{margin:0;padding:5px 8px}
body.port-pad.on-pick .pick-side .nameplate h2{margin:0 0 2px;font-size:15px}
body.port-pad.on-pick .pick-side .style-line{justify-content:flex-start;margin:0}
body.port-pad.on-pick .pick-side .stats,
body.port-pad.on-pick .pick-side .keys{display:none}
body.port-pad.on-pick .diff-label{grid-column:1/-1;margin:2px 0 0;font-size:11px}
body.port-pad.on-pick .diff-row,
body.port-pad.on-pick .vs-pick,
body.port-pad.on-pick .pick-side .wide,
body.port-pad.on-pick .pick-side .big,
body.port-pad.on-pick .online-vs-preview{grid-column:1/-1}
body.port-pad.on-pick .pick-side .wide{margin:2px 0 0;padding:8px 10px;font-size:13px}
body.port-pad.on-pick .pick-start{margin:4px 0 0;padding:12px 10px;font-size:16px}

/* 大厅换装/商城并排，少占一行 */
@media(max-width:820px){
  .lobby-fighter{display:grid;grid-template-columns:1fr 1fr;gap:4px;align-items:center}
  .lobby-stage,.lobby-fighter>b,.lobby-foe-tag,.coin-chip,.streak-chip{grid-column:1/-1}
  .lobby-dress,.lobby-shop{margin:0;width:100%}
}

/* v187：竖屏再挤大厅 / 选角 / 弹层 */
body.port-pad.on-home .rank-strip{display:none}
body.port-pad.on-home .mode-vs{display:none}
body.port-pad.on-home .mode-row{gap:5px}
body.port-pad.on-home .mode-row button{border-width:2px}
body.port-pad.on-home .mode-row button.mode-main{padding:10px 6px;font-size:14px}
body.port-pad.on-home .mode-row button.mode-sub{padding:7px 3px;font-size:11px}
body.port-pad.on-home .mode-row button small{display:none}
body.port-pad.on-home .lobby{padding:2px 8px 8px;margin-bottom:8px;overflow:visible}
body.port-pad.on-home .lobby-stage{height:84px}
body.port-pad.on-home .lobby-stage img{height:76px}
body.port-pad.on-home .lobby-go{
  position:sticky;bottom:6px;z-index:8;margin-top:6px;
  box-shadow:0 6px 0 var(--btn-shadow),0 0 22px rgba(0,0,0,.4)}
body.port-pad.on-home .online-bar{margin-bottom:8px;padding:8px}
body.port-pad.on-home .brand{font-size:17px;letter-spacing:1px}
body.port-pad.on-home .nick-chip{max-width:84px;padding:4px 9px}
body.port-pad.on-home .top-actions #btn-sound,
body.port-pad.on-home .top-actions #btn-mp{display:none}

body.port-pad.on-pick .dog-cell{border-radius:12px;border-width:2px;box-shadow:0 2px 0 rgba(18,6,31,.3)}
body.port-pad.on-pick .dog-cell em{display:none}
body.port-pad.on-pick .dog-cell i{font-size:9px;padding:8px 1px 2px}
body.port-pad.on-pick .dog-cell:hover{transform:none}
body.port-pad.on-pick .pick-grid{gap:5px;padding:6px;border-width:2px}

body.port-pad .panel{padding:14px 12px;border-radius:18px;max-width:min(420px,94vw)}
body.port-pad .panel h2{font-size:18px;margin:0 0 6px}
body.port-pad .panel-sub{font-size:12px;margin:0 0 10px;line-height:1.4}
body.port-pad .panel-note{font-size:10px;padding:6px 8px;margin-bottom:6px}
body.port-pad .wide-panel{max-height:88vh;width:min(640px,96vw)}
body.port-pad .panel-foot{gap:8px;margin-top:10px}
body.port-pad .rotate-inner{padding:18px 16px;max-width:min(360px,92vw)}
body.port-pad .rotate-inner h2{font-size:18px;margin:0 0 6px}
body.port-pad .rotate-inner p{font-size:12px;margin:0 0 12px;line-height:1.4}
body.port-pad .rotate-phone{display:none}

/* v188：联机条吸底 + 装扮/指南弹层更紧 */
body.port-pad.on-home .lobby-mark{opacity:.1;font-size:clamp(42px,11vw,80px)}
body.port-pad.on-home #screen-home{
  display:flex;flex-direction:column;min-height:calc(100dvh - 52px)}
body.port-pad.on-home .lobby{flex:0 0 auto}
body.port-pad.on-home:has(#online-bar:not([hidden])) .lobby-go{
  position:static;box-shadow:0 5px 0 var(--btn-shadow),0 10px 20px rgba(0,0,0,.28)}
body.port-pad.on-home:has(#online-bar:not([hidden])) .online-bar{
  position:sticky;bottom:0;z-index:12;margin:auto 0 0;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));
  border-radius:16px 16px 0 0;
  background:rgba(12,20,36,.97);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  box-shadow:0 -10px 28px rgba(0,0,0,.38),0 6px 0 rgba(18,6,31,.35)}
body.port-pad.on-home .lobby-foe-tag{font-size:10px;padding:2px 7px}

/* v189：大厅空档用立绘撑满；顶栏再压；对战画布多给一点 */
body.port-pad.on-home #app{
  display:flex;flex-direction:column;min-height:100dvh;
  padding-bottom:0;box-sizing:border-box}
body.port-pad.on-home .topbar{
  flex:0 0 auto;padding:4px 6px;margin-top:4px;gap:4px}
body.port-pad.on-home .brand{font-size:15px;letter-spacing:.5px}
body.port-pad.on-home .brand-badge{font-size:8px;padding:1px 5px}
body.port-pad.on-home .top-actions .ghost,
body.port-pad.on-home .top-actions .primary,
body.port-pad.on-home .top-actions #btn-more{padding:5px 8px;font-size:10px}
body.port-pad.on-home .nick-chip{max-width:68px;padding:3px 7px;font-size:10px}
body.port-pad.on-home #screen-home{
  flex:1 1 auto;min-height:0;display:flex;flex-direction:column;
  margin:0}
body.port-pad.on-home .lobby{
  flex:1 1 auto;min-height:0;display:flex;flex-direction:column;
  margin-bottom:0;padding:2px 8px 6px;overflow:visible}
body.port-pad.on-home .lobby-top{margin-bottom:6px;flex:0 0 auto}
body.port-pad.on-home .lobby-arena{
  flex:1 1 auto;min-height:0;align-content:space-between;gap:8px}
body.port-pad.on-home .lobby-stage{
  height:clamp(92px,17vh,132px);margin-bottom:4px}
body.port-pad.on-home .lobby-stage img{
  height:clamp(84px,15.5vh,122px)}
body.port-pad.on-home .lobby-go{margin-top:0;padding:13px 10px;font-size:16px;
  box-shadow:0 5px 0 var(--btn-shadow),0 0 18px rgba(0,0,0,.28)}
body.port-pad.on-home:has(#online-bar:not([hidden])) .online-bar{
  position:relative;margin:0;flex:0 0 auto;
  border-radius:16px 16px 0 0;
  padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px))}
body.port-pad.on-home .online-bar-acts{gap:5px}
body.port-pad.on-home .online-bar-acts>button{padding:8px 8px;font-size:12px}
body.port-pad.on-home .online-code{width:70px;min-width:64px;padding:8px 3px;font-size:12px}

body.port-pad.in-battle #screen-battle .stage-wrap{
  max-height:min(48vh, calc(100dvh - 268px))}
body.port-pad.in-battle #screen-battle .battle-foot{min-height:200px;margin-top:4px;padding:4px}
body.port-pad.in-battle #screen-battle .controls{min-height:168px}
body.port-pad.in-battle #screen-battle .pad-act.moba{width:208px;height:180px}
body.port-pad.in-battle #screen-battle .hud{padding:5px 6px;margin:0 0 4px;gap:4px}
body.port-pad.in-battle .battle-meta{margin-top:4px;font-size:10px}

body.port-pad.on-pick .pick-body{min-height:calc(100dvh - 58px);gap:6px}
body.port-pad.on-pick .pick-grid{min-height:40vh;padding:5px;gap:4px}
body.port-pad.on-pick .pick-side{padding:8px 8px 6px;gap:4px 8px}
body.port-pad.on-pick .preview{height:76px}
body.port-pad.on-pick .preview img{height:70px}
body.port-pad.on-pick .pick-start{padding:11px 10px;font-size:15px;margin-top:2px}

body.port-pad .dress-layout{display:flex;flex-direction:column;gap:8px;overflow:hidden;height:100%}
body.port-pad .dress-layout .fx-preview{order:-1;min-height:110px;max-height:148px;padding:6px;flex:0 0 auto;height:auto}
body.port-pad .fx-preview-stage{min-height:78px}
body.port-pad .dress-main{flex:1 1 auto;min-height:0}
body.port-pad .dress-tabs,
body.port-pad .hist-tabs{margin-bottom:8px;padding:5px;gap:4px;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}
body.port-pad .dress-tabs button,
body.port-pad .hist-tabs button{padding:5px 9px;font-size:11px;flex:none}
body.port-pad .dress-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:6px;max-height:none;flex:1}
body.port-pad .dress-item{padding:7px 5px;border-radius:12px}
body.port-pad .dress-item .swatch{height:54px;margin-bottom:4px;border-radius:10px}
body.port-pad .dress-item b{font-size:11px;margin-bottom:1px}
body.port-pad .dress-item small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:9px}
body.port-pad .fx-preview b,body.port-pad .fx-preview-meta b{font-size:12px;margin:0}
body.port-pad .fx-preview small,body.port-pad .fx-preview-meta small{display:block;font-size:10px}
body.port-pad .guide-grid{grid-template-columns:1fr;gap:8px}
body.port-pad .guide-grid section{padding:8px 10px;border-radius:12px}
body.port-pad .guide-grid h3{font-size:12px;margin:0 0 4px}
body.port-pad .guide-grid p{font-size:10px;line-height:1.55}
body.port-pad .panel-sub{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* 横屏版大厅：少叠字 */
body.land.on-home .mode-row button small,
body.fake-land.on-home .mode-row button small{display:none}
body.land.on-home .rank-strip .rs-more,
body.fake-land.on-home .rank-strip .rs-more{display:none}
body.fake-land.on-home .notice-bar{display:none}
body.land.on-home .lobby-hint,
body.fake-land.on-home .lobby-hint{display:none}

/* 矮横屏（<=430px 高）再压一档：选角侧栏 / 键位面板 / 结算昵称保证一屏够得着 */
@media(orientation:landscape) and (max-height:430px) and (pointer:coarse){
  body.land .pick-body{grid-template-columns:minmax(0,1fr) minmax(240px,48%) !important}
  body.land .pick-grid{grid-template-columns:repeat(auto-fill,minmax(40px,1fr)) !important}
  body.land .dog-cell i{display:none}
  body.land .preview{flex:1 1 auto !important;min-height:110px !important;height:auto !important}
  body.land .preview img{height:88% !important;max-height:min(180px,46vh) !important}
  body.land .pick-side{padding:6px}
  body.land .pick-side .nameplate{margin:0 0 3px;padding:4px 6px}
  body.land .pick-side h2{font-size:13px}
  body.land .style-line{margin:0 0 3px}
  body.land .diff-row{margin:0 0 4px}
  body.land .btn-random{margin:0 0 3px;padding:5px;font-size:11px}
  body.land .pick-start{padding:8px;font-size:14px}
  body.land .layout-preview{height:120px}
  body.land .panel{padding:12px 14px}
}

/* 极矮横屏（<=380px 高）：结算再压一档，四个按钮整行留在首屏 */
@media(orientation:landscape) and (max-height:380px) and (pointer:coarse){
  body.land.on-result .result-card{margin:2px auto;padding:8px 10px}
  body.land.on-result .result-hero{width:min(104px,20vw);height:min(78px,17vw);margin:2px auto 4px}
  body.land.on-result .result-card h1{font-size:16px;margin:0 0 2px}
  body.land.on-result .score{padding:3px 8px;margin-bottom:4px}
  body.land.on-result .result-stats{gap:5px;margin-bottom:4px}
  body.land.on-result .result-stats b{font-size:14px}
  body.land.on-result blockquote{margin:0 0 6px;padding:6px 8px;font-size:11px}
  body.land.on-result .result-btns .big,
  body.land.on-result .result-btns .result-cta-main,
  body.land.on-result .result-btns .result-home,
  body.land.on-result .result-btns #btn-rematch-ready{font-size:12px;padding:8px 6px}
  body.land.on-result .result-btns .ghost,
  body.land.on-result .result-btns .primary{font-size:11px;padding:8px 4px}
}

/* 假横屏（竖持旋转）：媒体查询按真实竖屏算，横屏压缩块不生效，结算单独压进旋转后的一屏 */
body.fake-land.on-result .result-card{margin:2px auto;padding:8px 10px;max-width:560px}
body.fake-land.on-result .result-hero{width:min(104px,26vw);height:min(76px,20vw);margin:2px auto 4px}
body.fake-land.on-result .result-card h1{font-size:16px;margin:0 0 2px}
body.fake-land.on-result .result-card>p{font-size:11px;margin:0 0 4px}
body.fake-land.on-result .score{font-size:12px;padding:3px 8px;margin-bottom:4px}
body.fake-land.on-result .result-stats{grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:4px}
body.fake-land.on-result .result-stats b{font-size:14px}
body.fake-land.on-result blockquote{margin:0 0 6px;padding:6px 8px;font-size:11px}
body.fake-land.on-result .result-btns{grid-template-columns:1.4fr 1fr 1fr 1fr;gap:6px}
body.fake-land.on-result .result-btns .big,
body.fake-land.on-result .result-btns .result-cta-main,
body.fake-land.on-result .result-btns .result-home,
body.fake-land.on-result .result-btns #btn-rematch-ready{grid-column:auto;font-size:12px;padding:8px 6px}
body.fake-land.on-result .result-btns .ghost,
body.fake-land.on-result .result-btns .primary{font-size:11px;padding:8px 4px}
body.fake-land.on-result .result-hero-meta{width:max-content;max-width:none;flex-wrap:nowrap}
body.fake-land.on-result .result-hero-meta b{font-size:10px;white-space:nowrap}
body.fake-land.on-result .result-hero-meta span{font-size:9px;padding:2px 6px;white-space:nowrap}

/* 假横屏弹层：限高按旋转后的高（真实视口宽）算，关闭按钮留在首屏；键位面板单行标签压缩 */
body.fake-land .mask .wide-panel{max-height:calc(100vw - 24px)}
body.fake-land .layout-preview{height:120px}
body.fake-land .layout-controls label{grid-template-columns:auto 1fr;align-items:center;gap:6px;padding:4px 8px}
body.fake-land .layout-controls input[type=range]{height:16px}
body.fake-land .layout-controls select{padding:4px 8px;font-size:11px}
body.fake-land .layout-controls .panel-foot{margin-top:6px;padding:6px 2px 0}
body.fake-land .layout-controls .panel-foot button{padding:7px 12px;font-size:12px}

/* 横屏内部滚动区（选角网格/装扮/键位/弹层/榜单）用主题色滚动条，不用浏览器默认灰条 */
body.land *{scrollbar-width:thin;scrollbar-color:#ffcf4a rgba(10,6,24,.55)}
body.land ::-webkit-scrollbar{width:8px;height:8px}
body.land ::-webkit-scrollbar-track{background:rgba(10,6,24,.55);border-radius:8px}
body.land ::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#ffcf4a,#ff9d3c);border-radius:8px;border:2px solid rgba(10,6,24,.55)}
body.land ::-webkit-scrollbar-thumb:hover{background:#ffe066}
body.land ::-webkit-scrollbar-corner{background:transparent}

/* 桌面矮窗横屏会整页滚：顶栏吸顶，设置/更多/全屏始终够得着 */
body.land .topbar{position:sticky;top:0;z-index:45}

/* 结算昵称牌：绝对定位 left:50% 会把可用宽度减半导致换行，按内容取宽单行显示 */
body.land.on-result .result-hero-meta{width:max-content;max-width:none;flex-wrap:nowrap}
body.land.on-result .result-hero-meta b{font-size:10px;white-space:nowrap}
body.land.on-result .result-hero-meta span{font-size:9px;padding:2px 6px;white-space:nowrap}

/* 鼠标矮横屏：保留键位/数值参考（侧栏内部滚），开打吸底始终够得着 */
@media(orientation:landscape) and (max-height:640px) and (pointer:fine){
  body.land .pick-side .stats{display:grid}
  body.land .pick-side .keys{display:block}
  body.land .pick-wood{display:block}
  body.land .pick-start{position:sticky;bottom:0;z-index:7;box-shadow:0 -8px 16px rgba(0,0,0,.35)}
}

/* —— 漫画风战斗：纸白面板 + 墨线描边 + 网点印刷，与画布墨线喊字同一语言 —— */
body.land.in-battle #screen-battle .hud,
body.fake-land.in-battle #screen-battle .hud,
body.in-battle #screen-battle .hud{
  grid-template-columns:1fr auto 1fr;
  background:linear-gradient(180deg,#fff9ea,#ffedc9);
  border:3px solid #17102e;border-radius:16px;
  box-shadow:4px 4px 0 rgba(23,16,46,.9)}
body.land.in-battle #screen-battle .fname,
body.fake-land.in-battle #screen-battle .fname,
body.in-battle #screen-battle .fname{
  color:#17102e;background:#fff;border:2px solid #17102e;border-radius:10px;
  padding:2px 8px;box-shadow:2px 2px 0 rgba(23,16,46,.8)}
body.in-battle .fname small{color:#c2410c;opacity:1}
body.in-battle #screen-battle .fname span:not(.avatar){min-width:0;overflow:hidden;text-overflow:ellipsis}
body.in-battle #screen-battle .fname small{flex:none}
body.land.in-battle #screen-battle .bar,
body.fake-land.in-battle #screen-battle .bar,
body.in-battle #screen-battle .bar{background:#fff;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.7)}
body.in-battle .bar i.trail{background:#17102e;opacity:.25}
body.in-battle .bar i:not(.trail){
  background-image:radial-gradient(rgba(255,255,255,.4) 1px,transparent 1.4px),linear-gradient(90deg,#ff5c7a,#ffb36b);
  background-size:6px 6px,auto}
body.in-battle .bar.low>i:not(.trail){
  background-image:radial-gradient(rgba(255,255,255,.4) 1px,transparent 1.4px),linear-gradient(90deg,#ff6b8a,#ffcf4a);
  background-size:6px 6px,auto}
body.land.in-battle #screen-battle .meter,body.land.in-battle #screen-battle .gbar,
body.fake-land.in-battle #screen-battle .meter,body.fake-land.in-battle #screen-battle .gbar,
body.in-battle #screen-battle .meter,body.in-battle #screen-battle .gbar{
  background:#fff;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.6)}
body.in-battle .meter i{
  background-image:radial-gradient(rgba(255,255,255,.45) 1px,transparent 1.3px),linear-gradient(90deg,#8f6bff,#ffcf4a);
  background-size:5px 5px,auto}
body.in-battle .meter b{color:#17102e}
body.in-battle .gbar i{
  background-image:radial-gradient(rgba(255,255,255,.45) 1px,transparent 1.3px),linear-gradient(90deg,#6ad1ff,#54f2ff);
  background-size:5px 5px,auto}
body.in-battle .pips b{background:#fff;border:2px solid #17102e}
body.in-battle .pips b.on{background:linear-gradient(#ffe9a8,#ffcf4a);border-color:#17102e;box-shadow:2px 2px 0 rgba(23,16,46,.7)}
body.in-battle .center{
  background:#fff;border:3px solid #17102e;border-radius:14px;
  box-shadow:3px 3px 0 rgba(23,16,46,.85);padding:4px 8px}
body.in-battle .round{color:#17102e;white-space:nowrap}
body.land.in-battle #screen-battle .timer,
body.fake-land.in-battle #screen-battle .timer,
body.in-battle #screen-battle .timer{
  display:inline-block;background:#ffcf4a;color:#17102e;border:3px solid #17102e;border-radius:12px;
  padding:0 10px;transform:rotate(-2deg);box-shadow:3px 3px 0 rgba(23,16,46,.85);
  text-shadow:none;font-size:24px;white-space:nowrap}
body.land.in-battle #screen-battle .timer.urgent,
body.fake-land.in-battle #screen-battle .timer.urgent,
body.in-battle #screen-battle .timer.urgent{background:#ff6b8a;color:#fff;text-shadow:none}
body.in-battle .wood-chip{background:#fff;color:#17102e;border:2px solid #17102e;white-space:nowrap}
body.in-battle .modetag{background:#54c4ff;color:#0c2a44;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.8);white-space:nowrap}
/* 摇杆：漫画底盘 + 墨线蓝球 */
body.in-battle #screen-battle .joy-base{
  background:radial-gradient(rgba(23,16,46,.14) 1.2px,transparent 1.3px) 0 0/7px 7px,
    linear-gradient(180deg,rgba(255,249,234,.94),rgba(255,237,201,.9));
  border:3px solid #17102e;
  box-shadow:4px 4px 0 rgba(23,16,46,.8),inset 0 -8px 0 rgba(23,16,46,.08)}
body.in-battle #screen-battle .joy-base.active{
  border-color:#ffcf4a;box-shadow:4px 4px 0 rgba(23,16,46,.8),0 0 18px rgba(255,207,74,.5)}
body.in-battle #screen-battle .joy-knob{
  background:radial-gradient(circle at 34% 28%,#fff 0 6px,rgba(255,255,255,0) 7px),linear-gradient(160deg,#54c4ff,#1d6fd0);
  border:3px solid #17102e;box-shadow:0 4px 0 #17102e}
body.in-battle #screen-battle .joy-arrow{color:#17102e;text-shadow:none;opacity:.75}
/* 技能环：墨边圆钮 + 硬阴影 + 网点，按语义分色 */
body.in-battle #screen-battle .pad-act.moba button{
  border:3px solid #17102e!important;
  box-shadow:0 4px 0 #17102e,inset 0 -6px 0 rgba(23,16,46,.22);
  color:#fff;text-shadow:1px 0 0 #17102e,-1px 0 0 #17102e,0 1px 0 #17102e,0 -1px 0 #17102e,2px 2px 0 #17102e}
body.in-battle #screen-battle .pad-act.moba button::before{
  content:"";position:absolute;inset:0;border-radius:50%;z-index:0;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.3) 1.1px,transparent 1.2px);background-size:6px 6px}
body.in-battle #screen-battle .pad-act.moba .btn-lab,
body.in-battle #screen-battle .pad-act.moba button small,
body.in-battle #screen-battle .pad-act.moba .btn-wood,
body.in-battle #screen-battle .pad-act.moba .btn-shield{position:relative;z-index:1}
body.in-battle #screen-battle .pad-act.moba .btn-lab{font-size:13px;letter-spacing:0}
body.in-battle #screen-battle .pad-act.moba .b-light .btn-lab{font-size:18px}
body.in-battle #screen-battle .pad-act.moba .b-light{background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.4),transparent 46%),linear-gradient(160deg,#54c4ff,#1d6fd0)!important}
body.in-battle #screen-battle .pad-act.moba .b-super{background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.35),transparent 46%),linear-gradient(160deg,#ff9d3c,#e04a1a)!important}
body.in-battle #screen-battle .pad-act.moba .b-skill{background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.3),transparent 46%),linear-gradient(160deg,#b48cff,#7a3ff0)!important}
body.in-battle #screen-battle .pad-act.moba .b-heavy{background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.3),transparent 46%),linear-gradient(160deg,#ff8fb0,#ff4d6d)!important}
body.in-battle #screen-battle .pad-act.moba .b-roll{background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.3),transparent 46%),linear-gradient(160deg,#ffd76a,#ff9d3c)!important}
body.in-battle #screen-battle .pad-act.moba .b-kick{background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.3),transparent 46%),linear-gradient(160deg,#a8e05a,#4caf3f)!important}
body.in-battle #screen-battle .pad-act.moba .b-guard{background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.3),transparent 46%),linear-gradient(160deg,#7ae0c0,#1faf8a)!important}
body.in-battle #screen-battle .pad-act.moba .b-toss{background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.3),transparent 46%),linear-gradient(160deg,#ffe0a8,#d4893a)!important}
body.in-battle #screen-battle .pad-act.moba .b-jump{background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.3),transparent 46%),linear-gradient(160deg,#9fe8ff,#3fa9e0)!important}
body.in-battle #screen-battle .b-guard.guarding{box-shadow:0 4px 0 #17102e,0 0 14px rgba(31,175,138,.8)}
body.in-battle #screen-battle .b-guard.cooling{opacity:.55;filter:grayscale(.35)}
body.in-battle #screen-battle .b-toss.empty{opacity:.5;filter:grayscale(.4)}
body.in-battle #screen-battle .b-super.hot{box-shadow:0 4px 0 #17102e,0 0 16px rgba(255,157,60,.8)}
body.in-battle #screen-battle .b-skill.hot{box-shadow:0 4px 0 #17102e,0 0 14px rgba(122,63,240,.75)}
body.in-battle #screen-battle .controls .b-super[data-free="1"]::after{
  width:18px;height:18px;border-radius:50%;background:#ff4d6d;border:2px solid #17102e;
  color:#fff;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center;
  top:-8px;right:-6px;box-shadow:2px 2px 0 rgba(23,16,46,.8)}
/* 底部功能簇 / 练习条：纸片漫画牌 */
body.in-battle #screen-battle .battle-meta-btns .ghost,
body.fake-land.in-battle #screen-battle .battle-meta-btns .ghost{
  background:#fff6e2;color:#17102e;border:2px solid #17102e;
  box-shadow:2px 2px 0 rgba(23,16,46,.85);font-weight:900}
body.in-battle #screen-battle #battle-tip{
  background:#fff6e2;border:2px solid #17102e;color:#17102e;border-radius:999px;
  padding:3px 10px;font-weight:900;box-shadow:2px 2px 0 rgba(23,16,46,.8)}
body.in-battle #screen-battle .practice-bar{
  background:#fff6e2;border:3px solid #17102e;border-radius:12px;
  box-shadow:4px 4px 0 rgba(23,16,46,.85);color:#17102e}
body.in-battle #screen-battle .practice-bar span{color:#17102e}
body.in-battle #screen-battle .practice-bar label{color:#17102e}
body.in-battle #screen-battle .practice-bar .ghost{background:#fff;color:#17102e;border:2px solid #17102e}
/* —— 漫画封面大厅：纸白三面板 + 墨线票格，与战斗同一语言 —— */
body.on-home .topbar{background:linear-gradient(180deg,#fff9ea,#ffedc9);border-bottom:3px solid #17102e;box-shadow:0 3px 0 rgba(23,16,46,.25);backdrop-filter:none}
body.on-home .brand{color:#17102e;background:linear-gradient(#ffe9a8,#ffcf4a);border:3px solid #17102e;border-radius:10px;padding:2px 10px;transform:rotate(-1.5deg);box-shadow:3px 3px 0 rgba(23,16,46,.85);text-shadow:none}
body.on-home .nick-chip,body.on-home .title-chip,body.on-home .region-chip,
body.on-home .friend-chip,body.on-home .shop-chip{background:#fff;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.8)}
body.on-home .nick-chip b{color:#17102e}
body.on-home .friend-chip{background:#e8f8ff;color:#0a3050}
body.on-home .shop-chip{background:linear-gradient(#9fe8ff,#3fa9e0);color:#fff;text-shadow:1px 1px 0 #17102e}
body.on-home .title-chip{background:#ffd7e2}
body.on-home .title-chip i{color:#a1123f}
body.on-home .region-chip{background:#d8f4ff;color:#0a3050}
body.on-home .lobby-power-row .lobby-rule-btn{color:#3a5568}
body.on-home #lobby-hero-card .lobby-meta{display:inline-flex!important}
body.on-home .top-actions .ghost{background:#fff6e2;color:#17102e;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.8);font-weight:900}
body.on-home .top-actions .primary{background:linear-gradient(#ffe9a8,#ffcf4a);color:#17102e;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.8)}
body.on-home .lobby{background:radial-gradient(rgba(23,16,46,.10) 1.2px,transparent 1.3px) 0 0/8px 8px,linear-gradient(165deg,#fff9ea,#ffedc9 60%,#ffe3b8);border:3px solid #17102e;box-shadow:5px 5px 0 rgba(23,16,46,.85)}
body.on-home .lobby::before{background:repeating-conic-gradient(from 8deg at 50% 48%,rgba(23,16,46,.06) 0deg 5deg,transparent 5deg 16deg);mix-blend-mode:multiply;opacity:.8}
body.on-home .lobby::after{background:none;filter:none}
body.on-home .lobby-mark{color:rgba(23,16,46,.07);-webkit-text-stroke:2px rgba(23,16,46,.12);text-shadow:none}
body.on-home .lobby-season{border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.8);color:#17102e}
body.on-home .layout-switch{background:#fff;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.8)}
body.on-home .layout-switch button{color:#17102e;border-color:transparent}
body.on-home .layout-switch button.on{border-color:#17102e;background:linear-gradient(#ffe9a8,#ffcf4a);color:#17102e}
body.on-home .lobby-board-btn{background:linear-gradient(#ff8fb0,#ff4d6d);color:#fff;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.8);text-shadow:1px 1px 0 #17102e}
body.on-home .lobby-meta{background:#fff;color:#17102e;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.7);backdrop-filter:none}
body.on-home .lobby-fighter,body.on-home .lobby-modes{position:relative;background:#fff;border:3px solid #17102e;border-radius:14px;box-shadow:4px 4px 0 rgba(23,16,46,.8);padding:8px 8px 8px;overflow:visible}
body.on-home .lobby-arena{align-items:stretch}
body.on-home .lobby-fighter{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:5px;align-content:stretch;justify-items:stretch;text-align:center}
body.on-home .lobby-modes{display:flex;flex-direction:column;justify-content:space-between}
body.on-home .lobby-stage,body.on-home .lobby-stage-wrap,body.on-home .lobby-stats,body.on-home .lobby-user-chip,body.on-home .lobby-fighter>b,body.on-home .lobby-foe-tag,body.on-home .coin-chip,body.on-home .streak-chip{grid-column:1/-1;width:100%}
body.on-home .lobby-stage{width:100%}
body.on-home .lobby-fighter::before,body.on-home .lobby-modes::before{content:"我方上场";position:absolute;top:-13px;right:-6px;z-index:5;background:linear-gradient(#ffe9a8,#ffcf4a);color:#17102e;border:2px solid #17102e;border-radius:8px;padding:2px 9px;font-size:10px;font-weight:900;transform:rotate(-6deg);box-shadow:2px 2px 0 rgba(23,16,46,.8);pointer-events:none}
body.on-home .lobby-modes::before{content:"选择玩法";right:10px;top:-11px;transform:rotate(-2deg)}
body.on-home .lobby-foe::before{content:"对手情报";background:linear-gradient(#b8ecff,#54c4ff)}
body.on-home .lobby-stage{background:radial-gradient(rgba(23,16,46,.12) 1.2px,transparent 1.3px) 0 0/7px 7px,linear-gradient(180deg,#dff9ff,#9fe8ff);border:3px solid #17102e;border-radius:12px;box-shadow:3px 3px 0 rgba(23,16,46,.7)}
body.on-home .lobby-stage-foe{background:radial-gradient(rgba(23,16,46,.12) 1.2px,transparent 1.3px) 0 0/7px 7px,linear-gradient(180deg,#ffe3ec,#ff8fb0);border-color:#17102e;box-shadow:3px 3px 0 rgba(23,16,46,.7)}
body.on-home .lobby-stage img{filter:drop-shadow(0 3px 0 rgba(23,16,46,.35))}
body.on-home .lobby-fighter>b{background:#fff;color:#17102e;border:2px solid #17102e;border-radius:8px;box-shadow:2px 2px 0 rgba(23,16,46,.7);text-shadow:none}
body.on-home .lobby-stage-wrap .lobby-dog-name,
body.on-home #lobby-dog-name.lobby-dog-name{
  top:-11px;left:-8px;font-size:12px;padding:4px 10px;
  background:linear-gradient(#ffe9a8,#ffcf4a);color:#17102e;border:2px solid #17102e;
  box-shadow:3px 3px 0 rgba(23,16,46,.7);text-shadow:none;border-radius:999px;
  transform:rotate(-6deg)}
body.on-home .lobby-foe>b{background:#fff;color:#17102e;border-color:#17102e}
body.on-home .lobby-dress{background:linear-gradient(#ff8fb0,#ff4d6d);color:#fff;border:2px solid #17102e;box-shadow:0 3px 0 #17102e;text-shadow:1px 1px 0 #17102e}
body.on-home .lobby-shop{background:linear-gradient(#9fe8ff,#3fa9e0);color:#fff;border:2px solid #17102e;box-shadow:0 3px 0 #17102e;text-shadow:1px 1px 0 #17102e}
body.on-home .lobby-foe-tag{background:#fff;color:#17102e;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.7)}
body.on-home .lobby-foe.waiting .lobby-foe-tag{color:#0c2a44;border-color:#17102e;border-style:dashed}
body.on-home .lobby-foe-ghost{color:#17102e}
body.on-home .coin-chip{background:linear-gradient(#ffe9a8,#ffcf4a);color:#17102e;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.8);line-height:1.25}
body.on-home .coin-chip b{color:#17102e;font-size:12px}
body.on-home .streak-chip{background:linear-gradient(#ffe9a8,#ffcf4a);color:#17102e;border:2px solid #17102e}
body.on-home .mode-row button{position:relative;background:#fff;color:#17102e;border:3px solid #17102e;border-radius:12px;box-shadow:0 3px 0 #17102e;font-weight:900}
body.on-home .mode-row button small{color:rgba(23,16,46,.65);opacity:1}
body.on-home .mode-row button:hover{transform:translateY(-1px);box-shadow:0 4px 0 #17102e;color:#17102e}
body.on-home .mode-row button.on{background:linear-gradient(#ffe9a8,#ffcf4a);color:#17102e;border-color:#17102e;box-shadow:0 3px 0 #17102e}
body.on-home .mode-row button.on small{color:inherit;opacity:.85}
body.on-home .mode-row button.on::after{content:"★";position:absolute;top:-12px;left:-7px;width:18px;height:18px;border-radius:50%;background:#ff4d6d;color:#fff;border:2px solid #17102e;font-size:11px;line-height:1;display:flex;align-items:center;justify-content:center;transform:rotate(12deg);box-shadow:2px 2px 0 rgba(23,16,46,.8);animation:stampPop .25s ease}
@keyframes stampPop{0%{transform:scale(1.6) rotate(30deg);opacity:0}100%{transform:scale(1) rotate(12deg);opacity:1}}
body.on-home .mode-row button[data-m="online"].on{background:linear-gradient(#a8e05a,#4caf3f);color:#fff;text-shadow:1px 1px 0 #17102e}
body.on-home .mode-row button[data-m="versus"].on{background:linear-gradient(#9fe8ff,#3fa9e0);color:#fff;text-shadow:1px 1px 0 #17102e}
body.on-home .mode-row button[data-m="practice"].on{background:linear-gradient(#b48cff,#7a3ff0);color:#fff;text-shadow:1px 1px 0 #17102e}
body.on-home .mode-tabs button{background:#fff;color:#17102e;border:3px solid #17102e;box-shadow:0 3px 0 #17102e}
body.on-home .mode-tabs button.on{background:linear-gradient(#ffe9a8,#ffcf4a);box-shadow:0 3px 0 #17102e}
body.on-home .mode-panel-fun{gap:6px}
body.on-home .mode-panel-fun .mode-sub{padding:8px 4px;font-size:12px}
body.on-home .mode-ranked-pack{border:3px solid #17102e;background:linear-gradient(180deg,#fff8e0,#ffe2a0);box-shadow:3px 3px 0 rgba(23,16,46,.75)}
body.on-home .mode-ranked-pack.on-family{border-color:#17102e;box-shadow:3px 3px 0 rgba(23,16,46,.75),0 0 0 2px rgba(255,207,74,.55)}
body.on-home .mode-ranked-pack > .mode-main{box-shadow:0 2px 0 #17102e}
body.on-home .mode-row button[data-m="gauntlet"].on{background:linear-gradient(#ffd76a,#ff9d3c);color:#17102e}
body.on-home .mode-row button[data-m="adventure"].on{background:linear-gradient(#7ae0c0,#1faf8a);color:#fff;text-shadow:1px 1px 0 #17102e}
body.on-home .mode-row button[data-m="chaos"].on{background:linear-gradient(#ff8fb0,#ff4d6d);color:#fff;text-shadow:1px 1px 0 #17102e}
body.on-home .mode-row button.mode-locked{border-style:dashed;opacity:.55;filter:grayscale(.35)}
body.on-home .lobby-go{position:relative;background:linear-gradient(#ffe9a8,#ffcf4a 55%,#ff9d3c);color:#17102e;border:3px solid #17102e;border-radius:14px;box-shadow:4px 4px 0 #17102e;font-weight:900;letter-spacing:3px;text-shadow:none}
body.on-home .lobby-go::before{content:"";position:absolute;inset:0;border-radius:11px;background-image:radial-gradient(rgba(255,255,255,.35) 1.1px,transparent 1.2px);background-size:6px 6px;pointer-events:none}
body.on-home .lobby-hint{display:none!important}
body.on-home .lobby-mode-tag{background:#fff;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.7)}
body.on-home .lobby-mode-lab{color:#43324a}
body.on-home .mode-vs{border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.8);color:#17102e}
body.on-home .online-bar{background:#fff;border:3px solid #17102e;border-radius:14px;box-shadow:4px 4px 0 rgba(23,16,46,.8)}
body.on-home .online-bar-title{background:linear-gradient(#ffe9a8,#ffcf4a);color:#17102e;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.8)}
body.on-home .online-bar .ghost{background:#fff6e2;color:#17102e;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.8);font-weight:900}
body.on-home .online-bar .primary{background:linear-gradient(#a8e05a,#4caf3f);color:#fff;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.8);text-shadow:1px 1px 0 #17102e}
body.on-home .online-bar.queueing #btn-online-cancel{color:#7a3a00;border-color:#17102e}
body.on-home .online-code{background:#fff;color:#17102e;border:2px solid #17102e}
body.on-home .online-stats{color:#17102e}
body.on-home .online-status{background:#fff;color:#17102e;border:2px solid #17102e;box-shadow:2px 2px 0 rgba(23,16,46,.7)}
/* 联机条展开时进入紧凑档：立绘缩小、对手牌双列、藏面板贴纸 */
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-stage{height:48px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-stage img{height:44px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-fighter,
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-modes{padding:6px 6px 5px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-hint{display:none}
body.on-home #screen-home:has(.online-bar:not([hidden])) .mode-row{gap:4px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .mode-row button.mode-main{padding:5px 4px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .mode-row button.mode-sub{padding:3px 2px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-go{padding:6px 10px;margin-top:0}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-foe .lobby-foe-tag{grid-column:1;margin:0;white-space:nowrap}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-foe .coin-chip{grid-column:2;margin:0;white-space:nowrap;font-size:9px;padding:2px 4px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-foe .coin-chip b{font-size:10px;padding:1px 6px;line-height:1.1}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-fighter::before,
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-modes::before,
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-foe::before{display:none}
body.on-home #screen-home:has(.online-bar:not([hidden])) .online-bar-head .online-status{padding:2px 8px;font-size:10px}
/* 漫画封面需要提示条与 VS 贴纸：覆盖各档压缩隐藏 */
body.land.on-home:not(.fake-land) .lobby-hint{display:none!important}
body.land.on-home:not(.fake-land) .lobby-mode-tag{display:flex}
body.land.on-home:not(.fake-land) .mode-vs{display:block}
body.fake-land.on-home .mode-vs{display:block}
/* 票格固定 4 列：两大玩法居上，四个休闲居中，冒险/癫疯压底 */
body.land.on-home .mode-row{grid-template-columns:repeat(4,1fr)}
/* 假横屏 app 空间有 844px 宽：顶栏单行，不被窄屏媒体查询挤成两行 */
body.fake-land.on-home .top-actions{width:auto;flex-wrap:nowrap;overflow:visible}
/* 公告条同套纸墨语言 */
body.on-home .notice-bar{background:#fff6e2;border:2px solid #17102e;color:#17102e;box-shadow:3px 3px 0 rgba(23,16,46,.8)}
body.on-home .notice-bar button{background:#fff;color:#17102e;border:2px solid #17102e}
/* 检测按钮让位：矮屏停顶栏中空，假横屏停屏幕右中（= app 顶栏中空），不压任何控件 */
@media (max-height:640px){
}
/* —— 首页 v2 排版：左侧全高海报面板 + 右侧「情报横条 / 玩法票格 / 出击」竖栏 —— */
body.on-home .lobby-arena{
  display:grid;
  grid-template-columns:minmax(188px,36%) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) auto;
  grid-template-areas:"hero modes" "hero go";
  gap:10px;align-items:stretch;min-height:min(360px,58vh)}
body.on-home .lobby-fighter{grid-area:hero;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:5px;align-content:stretch;justify-items:stretch;overflow:visible}
body.on-home .lobby-foe{display:none!important}
body.on-home .lobby-modes{grid-area:modes}
body.on-home .lobby-go{grid-area:go;grid-column:auto;justify-self:stretch;min-width:0;width:auto;margin-top:0;padding:10px 12px;font-size:16px}
body.on-home .lobby-fighter .lobby-stage-wrap{min-height:0;align-self:stretch;display:flex;flex-direction:column}
body.on-home .lobby-fighter .lobby-stage{height:auto;min-height:0;flex:1 1 auto;margin:0;width:100%;align-self:stretch}
body.on-home .lobby-fighter .lobby-stage img{height:100%;max-height:220px;width:auto;padding-bottom:28px;box-sizing:border-box}
body.on-home .lobby-foe .lobby-stage-foe{width:52px;height:40px;flex:none;margin:0;border-radius:10px;border-width:2px}
body.on-home .lobby-foe .lobby-stage-foe img{height:34px}
body.on-home .lobby-foe-ghost{font-size:26px}
body.on-home .lobby-foe>b{flex:none;margin:0;font-size:13px;padding:3px 10px}
body.on-home .lobby-foe .lobby-foe-tag{flex:1;min-width:0;margin:0;padding:2px 8px;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.on-home .lobby-foe .coin-chip{flex:none;margin:0;font-size:10px;padding:3px 8px;line-height:1.2}
body.on-home .lobby-foe .coin-chip b{font-size:11px}
body.on-home .lobby-foe .streak-chip{flex:none;margin:0;padding:3px 8px;font-size:10px}
body.on-home .lobby-foe::before{top:-10px;right:8px}
/* 玩法栏：两大票 + 四小票 + 冒险/癫疯，提示条贴底 */
body.on-home .lobby-modes .mode-row{gap:6px}
body.on-home .lobby-modes .mode-row button.mode-main{padding:8px 8px;font-size:14px}
body.on-home .lobby-modes .mode-row button.mode-main small{font-size:10px;margin-top:2px}
body.on-home .lobby-modes .mode-row button.mode-sub{padding:6px 4px;font-size:12px}
body.on-home .lobby-modes .mode-row button.mode-sub small{font-size:9px;margin-top:2px}
body.on-home .lobby-modes .lobby-hint{margin-top:8px;padding:5px 10px;font-size:10px;line-height:1.45;text-align:center}
body.on-home .mode-vs{right:-16px;top:48%;left:auto;font-size:13px;padding:2px 8px;
  transform:translate(0,-50%) rotate(-12deg)}
body.on-home #lobby-hero-card{overflow:visible}
body.on-home .lobby{overflow:visible}
/* 联机条展开：竖栏再压一档，海报舞台缩成小台 */
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-arena{gap:6px;min-height:0}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-fighter .lobby-stage{height:auto}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-fighter .lobby-stage img{height:46px;max-height:none}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-foe{padding:4px 8px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-foe .lobby-stage-foe{width:44px;height:30px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-foe .lobby-stage-foe img{height:26px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-go{padding:7px 10px;font-size:15px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-modes .mode-row button.mode-main{padding:5px 6px;font-size:13px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-modes .mode-row button.mode-sub{padding:3px 3px;font-size:11px}

/* —— 首页 v2 修正：贴纸避让 + 联机档竖栏压缩 —— */
body.on-home .lobby-arena{margin-top:14px}
body.on-home .lobby-modes::before{display:none}
body.on-home .lobby-foe::before{display:none}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-arena{
  margin-top:0;grid-template-rows:minmax(0,1fr) 40px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-modes .mode-row button[data-m="adventure"],
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-modes .mode-row button[data-m="chaos"]{display:none}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-fighter{padding:5px 6px 4px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-fighter .lobby-stage img{height:34px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-fighter>b{font-size:11px;padding:2px 8px;margin:0}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-dress,
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-shop{padding:5px 9px;font-size:11px;margin:0 3px 3px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-foe{padding:2px 6px;gap:6px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-foe .lobby-stage-foe{height:26px;width:38px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-foe .lobby-stage-foe img{height:22px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-foe>b{font-size:11px;padding:2px 7px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-foe .lobby-foe-tag{padding:2px 7px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-modes{padding:4px 6px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-modes .mode-row button.mode-main{padding:2px 6px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-modes .mode-row button.mode-main small{display:none}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-modes .mode-row button.mode-sub{padding:2px 3px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-modes .mode-row button.mode-sub small{display:none}
body.on-home #screen-home:has(.online-bar:not([hidden])) .lobby-go{padding:4px 10px;font-size:14px}
body.on-home #screen-home:has(.online-bar:not([hidden])) .online-bar-head{flex-wrap:nowrap}
body.on-home #screen-home:has(.online-bar:not([hidden])) .online-bar-head .online-status{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
body.on-home #screen-home:has(.online-bar:not([hidden])) #lobby-hero-card .lobby-meta{display:inline-flex!important}
/* 矮屏触摸横版（手机/小屏）：玩法面板放不下提示条，让位给 CTA */
@media (orientation:landscape) and (max-height:430px) and (pointer:coarse){
  body.land.on-home:not(.fake-land) .lobby-hint{display:none}
}
/* ========== POP ART 全局覆盖（波普） ========== */
#app{color:var(--pop-ink)}
.brand{color:#111!important;text-shadow:3px 3px 0 #ffef3a,6px 6px 0 #111!important;letter-spacing:1px}
.brand-badge{border:3px solid #111!important;background:#ff2d6f!important;color:#fff!important;
  box-shadow:3px 3px 0 #111!important;border-radius:6px!important}
.topbar{background:var(--pop-cream)!important;border:4px solid #111!important;border-radius:14px!important;
  box-shadow:6px 6px 0 #111!important}
.ghost,.primary,.big,.lobby-board-btn,.lobby-dress,.lobby-shop,.lobby-go,
.top-actions .ghost,.layout-switch button,.nick-chip,.title-chip{
  border:3px solid #111!important;border-radius:12px!important;box-shadow:4px 4px 0 #111!important;
  font-weight:900!important}
.primary,.big,.lobby-go,#btn-start,.pick-start{
  background:linear-gradient(#ffef3a,#ffb800)!important;color:#111!important}
.ghost{background:#fff!important;color:#111!important}
.lobby{background:var(--pop-cream)!important;border:4px solid #111!important;border-radius:18px!important;
  box-shadow:8px 8px 0 #111!important}
.lobby::before,.lobby::after{opacity:.25!important;mix-blend-mode:multiply!important}
.lobby-mark{color:rgba(17,17,17,.08)!important;-webkit-text-stroke:0!important}
.lobby-season,.online-bar-title,.mode-row button.on,.diff-row button.on{
  background:#ffef3a!important;color:#111!important;border:3px solid #111!important;box-shadow:3px 3px 0 #111!important}
.mode-row button{background:#fff!important;color:#111!important;border:3px solid #111!important;
  border-radius:12px!important;box-shadow:3px 3px 0 #111!important}
.mode-row button[data-m="online"].on{background:#2ad4ff!important}
.mode-row button[data-m="ranked"].on,.mode-row button[data-m="chaos"].on{background:#ff2d6f!important;color:#fff!important}
.online-bar{background:#fff8d6!important;border:4px solid #111!important;border-radius:16px!important;
  box-shadow:6px 6px 0 #111!important}
.panel,.mp-card,.result-card,.rank-hall,.account-card,.profile-panel{
  background:var(--pop-cream)!important;border:4px solid #111!important;border-radius:16px!important;
  box-shadow:8px 8px 0 #111!important;color:#111!important}
.panel h2,.result-card h1,.mp-card h2{color:#111!important;
  text-shadow:3px 3px 0 #ffef3a!important}
.panel-sub,.panel-note,.panel-foot,#announce-meta,#dress-hint,.field-label{
  color:#17102e!important}
.panel .field,.mp-card .field,.profile-panel .field,.world-chat-panel .field,#panel-nick .field,#panel-title .field,
#panel-account-login .field{
  background:#fff!important;color:#17102e!important;border:3px solid #111!important;
  box-shadow:2px 2px 0 rgba(17,17,17,.35)!important}
.panel .field::placeholder,.world-chat-panel .field::placeholder,#panel-nick .field::placeholder{
  color:#6b5a40!important;opacity:.85}
.announce-item{
  background:#fff!important;border:3px solid #111!important;border-radius:12px!important;
  box-shadow:3px 3px 0 rgba(17,17,17,.35)!important}
.announce-item b{color:#17102e!important}
.announce-item p{color:#2a2038!important}
.announce-item em{color:#6b4a20!important}
.world-chat-panel .panel-sub,.world-chat-panel .panel-note{color:#17102e!important}
.world-chat-panel .lobby-chat-compose .field{
  background:#fff!important;color:#17102e!important;border:3px solid #111!important}
.mask{background:rgba(17,17,17,.72)!important}

/* —— 选角上场：漫画波普主视觉 —— */
#screen-pick .pick-head{
  background:#ffef3a!important;border:4px solid #111!important;border-radius:16px!important;
  box-shadow:6px 6px 0 #111!important;position:relative}
#screen-pick .pick-head::after{
  content:"POW!";position:absolute;right:14px;top:-12px;font-size:18px;font-weight:900;
  color:#fff;background:#ff2d6f;border:3px solid #111;border-radius:50%;
  width:52px;height:52px;display:flex;align-items:center;justify-content:center;
  transform:rotate(12deg);box-shadow:3px 3px 0 #111;pointer-events:none}
#screen-pick .pick-head h1{
  background:#ff2d6f!important;color:#fff!important;border:3px solid #111!important;
  border-radius:10px!important;box-shadow:3px 3px 0 #111!important;
  font-size:18px!important;letter-spacing:2px!important;transform:rotate(-2deg)}
#screen-pick .pick-head p{color:#111!important;font-weight:900!important}
#screen-pick .pick-back{
  background:#2ad4ff!important;color:#111!important;border:3px solid #111!important;
  border-radius:10px!important;box-shadow:3px 3px 0 #111!important}
.pick-tabs-row{gap:8px;margin:12px 0 10px}
.pick-tabs{gap:6px;margin:0;display:flex;flex-wrap:wrap}
.pick-tabs button{
  background:#fff!important;color:#111!important;border:3px solid #111!important;
  border-radius:999px!important;padding:6px 12px!important;font-weight:900!important;
  box-shadow:3px 3px 0 #111!important}
.pick-tabs button.on{background:#ff2d6f!important;color:#fff!important;transform:translate(-1px,-1px)}
.pick-tabs button.on::before{content:"★";margin-right:4px;color:#ffef3a}
.pick-tabs-random{
  border:3px solid #111!important;box-shadow:3px 3px 0 #111!important;
  background:linear-gradient(#ffe08a,#ffb800)!important;color:#111!important}
#screen-pick .pick-grid{
  background:
    radial-gradient(#ff2d6f 1px,transparent 1.2px) 0 0/10px 10px,
    #fff8d6!important;
  border:4px solid #111!important;border-radius:16px!important;
  box-shadow:8px 8px 0 #111!important}
#screen-pick .dog-cell{
  border:3px solid #111!important;border-radius:10px!important;
  background:#fff!important;box-shadow:3px 3px 0 #111!important}
#screen-pick .dog-cell:nth-child(4n+1){background:#ffef3a!important}
#screen-pick .dog-cell:nth-child(4n+2){background:#2ad4ff!important}
#screen-pick .dog-cell:nth-child(4n+3){background:#ff9ad0!important}
#screen-pick .dog-cell:nth-child(4n){background:#b8ff6a!important}
#screen-pick .dog-cell.on{
  border-width:4px!important;transform:translate(-2px,-2px) scale(1.04)!important;
  box-shadow:0 0 0 3px #ffef3a,5px 5px 0 #111!important;animation:none!important;z-index:2}
#screen-pick .dog-cell i{
  background:linear-gradient(180deg,transparent,#111)!important;color:#ffef3a!important;
  font-weight:900!important;text-shadow:none!important}
#screen-pick .dog-cell em{
  background:#ff2d6f!important;color:#fff!important;border:2px solid #111!important;
  border-radius:6px!important;box-shadow:2px 2px 0 #111!important}
#screen-pick .pick-side{
  background:#fff8d6!important;border:4px solid #111!important;border-radius:16px!important;
  box-shadow:8px 8px 0 #111!important}
#screen-pick .pick-side::before{
  content:"上场卡"!important;background:#2ad4ff!important;color:#111!important;
  border:3px solid #111!important;border-radius:8px!important;
  box-shadow:3px 3px 0 #111!important;transform:translateX(-50%) rotate(-6deg)!important}
#screen-pick .preview{
  background:
    radial-gradient(#111 1.2px,transparent 1.3px) 0 0/12px 12px,
    linear-gradient(160deg,#ff2d6f,#ffef3a 55%,#2ad4ff)!important;
  border:4px solid #111!important;border-radius:12px!important;
  box-shadow:5px 5px 0 #111!important}
#screen-pick .preview img{filter:drop-shadow(4px 4px 0 #111)!important}
#screen-pick .nameplate{
  background:#111!important;border:3px solid #111!important;border-radius:10px!important;
  box-shadow:4px 4px 0 #ff2d6f!important}
#screen-pick .nameplate h2{color:#ffef3a!important;text-shadow:3px 3px 0 #ff2d6f!important}
#screen-pick .nameplate .tag{color:#2ad4ff!important}
#screen-pick .style-line span{
  background:#ffef3a!important;color:#111!important;border:3px solid #111!important;
  border-radius:8px!important;box-shadow:3px 3px 0 #111!important}
#screen-pick .style-line em{
  background:#ff2d6f!important;color:#fff!important;border:3px solid #111!important;
  border-radius:8px!important;box-shadow:3px 3px 0 #111!important}
#screen-pick .stats{
  background:#fff!important;border:3px solid #111!important;border-radius:12px!important;
  box-shadow:4px 4px 0 #111!important}
#screen-pick .stats dt{color:#111!important}
#screen-pick .stats dd{background:#eee!important;border:2px solid #111!important}
#screen-pick .diff-label{
  background:#2ad4ff!important;color:#111!important;border:3px solid #111!important;
  border-radius:8px!important;box-shadow:2px 2px 0 #111!important}
#screen-pick .diff-row button{
  background:#fff!important;color:#111!important;border:3px solid #111!important;
  border-radius:10px!important;box-shadow:3px 3px 0 #111!important}
#screen-pick .diff-row button.on{background:#ff2d6f!important;color:#fff!important}
#screen-pick .pick-start,#screen-pick #btn-start{
  background:#ffef3a!important;color:#111!important;border:4px solid #111!important;
  border-radius:14px!important;box-shadow:6px 6px 0 #111!important;
  font-size:20px!important;letter-spacing:4px!important;text-transform:uppercase}
#screen-pick .pick-start:active,#screen-pick #btn-start:active{
  transform:translate(3px,3px)!important;box-shadow:3px 3px 0 #111!important}
#screen-pick .btn-random{
  background:#2ad4ff!important;color:#111!important;border:3px solid #111!important;
  border-radius:12px!important;box-shadow:4px 4px 0 #111!important}
#screen-pick .pick-wood{
  background:#111!important;color:#ffef3a!important;border:3px solid #111!important;
  box-shadow:3px 3px 0 #ff2d6f!important}
#screen-pick .keys{color:#3a2a44!important;font-weight:700!important;font-size:11px!important}

/* 结算 / HUD 波普点缀 */
.result-card.win{border-color:#111!important;box-shadow:8px 8px 0 #ffef3a!important}
.result-card.lose{border-color:#111!important;box-shadow:8px 8px 0 #ff2d6f!important}
.result-banner{border:3px solid #111!important;box-shadow:3px 3px 0 #111!important}
.hud:not(.hud-v2){background:rgba(255,248,214,.88)!important;border:3px solid #111!important;
  border-radius:12px!important;box-shadow:4px 4px 0 #111!important;color:#111!important}
.hud.hud-v2{background:transparent!important;border:0!important;box-shadow:none!important;color:inherit!important}
.timer{background:#ffef3a!important;color:#111!important;border:3px solid #111!important;
  box-shadow:3px 3px 0 #111!important}
.bar{border:2px solid #111!important;background:#111!important}
.fname{background:#fff!important;border:2px solid #111!important;color:#111!important}

body.in-battle{background:#1a1030!important}
body.in-battle::before,body.in-battle::after{opacity:.15!important}

/* ========== 选角锁：小头像墙 + 选中大立绘（压过所有媒体查询） ========== */
body.land.on-pick .pick-body,
body.fake-land.on-pick .pick-body{
  grid-template-columns:minmax(0,1fr) minmax(300px,46%) !important;
  gap:10px !important;align-items:stretch !important}
body.land.on-pick .pick-grid,
body.fake-land.on-pick .pick-grid{
  grid-template-columns:repeat(auto-fill,minmax(52px,1fr)) !important;
  gap:5px !important;align-content:start !important;height:100% !important;max-height:none !important}
body.land.on-pick .dog-cell i,
body.fake-land.on-pick .dog-cell i{font-size:0 !important;padding:0 !important;height:0 !important;overflow:hidden !important}
body.land.on-pick .pick-side,
body.fake-land.on-pick .pick-side{
  display:flex !important;flex-direction:column !important;min-height:0 !important;overflow:visible !important}
body.land.on-pick .preview,
body.fake-land.on-pick .preview,
#screen-pick .preview{
  flex:1 1 auto !important;min-height:180px !important;height:auto !important;margin:0 0 6px !important}
body.land.on-pick .preview img,
body.fake-land.on-pick .preview img,
#screen-pick .preview img{
  height:92% !important;max-height:min(340px,52vh) !important;width:auto !important;object-fit:contain !important}
body.land.on-pick .pick-side .keys,
body.fake-land.on-pick .pick-side .keys{display:none !important}
body.land.on-pick .pick-start,
body.fake-land.on-pick .pick-start{margin-top:auto !important;flex:0 0 auto !important}

/* —— 联机独立页（左 VS / 右操作坞） ——
   大厅定宽 760，禁止随视口拉伸变形；假横屏也不走 max-width 断点单列 */
#screen-online{display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:0;flex:1;padding:6px 10px 8px;overflow:auto}
.online-hall{
  /* 设计定宽 760：窄屏由 JS 整体 zoom/scale，不拆内部栅格 */
  flex:0 0 auto;min-height:0;
  width:760px!important;max-width:760px!important;min-width:760px!important;
  box-sizing:border-box;margin:auto;
  transform-origin:top center;
  display:flex;flex-direction:column;gap:8px;
  padding:10px 12px;border-radius:20px;border:4px solid #17102e;
  position:relative;isolation:isolate;overflow:hidden;
  background:
    radial-gradient(circle at 12% 18%,rgba(255,90,180,.55) 0 14%,transparent 15%),
    radial-gradient(circle at 88% 22%,rgba(84,242,255,.5) 0 12%,transparent 13%),
    radial-gradient(circle at 76% 78%,rgba(255,207,74,.55) 0 16%,transparent 17%),
    radial-gradient(circle at 18% 82%,rgba(140,233,154,.45) 0 11%,transparent 12%),
    repeating-linear-gradient(90deg,rgba(23,16,46,.08) 0 2px,transparent 2px 18px),
    repeating-linear-gradient(0deg,rgba(23,16,46,.06) 0 2px,transparent 2px 18px),
    linear-gradient(135deg,#ff7ab8 0%,#ffcf4a 38%,#54e0ff 72%,#b8ff9a 100%);
  background-size:100% 100%,100% 100%,100% 100%,100% 100%,36px 36px,36px 36px,200% 200%;
  animation:onlinePopArtShift 14s ease-in-out infinite alternate;
  box-shadow:0 7px 0 #17102e,0 0 0 3px #fff inset}
.online-hall::before{
  content:"";position:absolute;inset:-20%;z-index:0;pointer-events:none;opacity:.35;
  background:
    radial-gradient(circle,rgba(23,16,46,.55) 1.4px,transparent 1.6px) 0 0/14px 14px,
    radial-gradient(circle,rgba(255,255,255,.35) 1px,transparent 1.2px) 7px 7px/18px 18px;
  animation:onlinePopDotDrift 18s linear infinite}
.online-hall::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    linear-gradient(115deg,transparent 0 42%,rgba(255,255,255,.22) 46%,transparent 52%),
    linear-gradient(295deg,transparent 0 58%,rgba(255,90,180,.18) 62%,transparent 70%);
  mix-blend-mode:soft-light;animation:onlinePopShine 7s ease-in-out infinite}
.online-hall>*{position:relative;z-index:1}
@keyframes onlinePopArtShift{
  0%{background-position:0 0,0 0,0 0,0 0,0 0,0 0,0% 40%}
  100%{background-position:0 0,0 0,0 0,0 0,8px -6px,-6px 8px,100% 60%}
}
@keyframes onlinePopDotDrift{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(-18px,12px,0)}}
@keyframes onlinePopShine{0%,100%{opacity:.55;transform:translateX(-2%)}50%{opacity:.9;transform:translateX(3%)}}
@media (prefers-reduced-motion:reduce){
  .online-hall,.online-hall::before,.online-hall::after{animation:none!important}
}
.online-hall-head{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,auto);
  align-items:center;gap:8px 10px;flex:0 0 auto;min-width:0}
.online-hall-head h1{margin:0;font-size:18px;font-weight:900;color:#17102e;letter-spacing:.06em;
  text-shadow:2px 2px 0 #fff,-1px -1px 0 #ffcf4a;white-space:nowrap;
  padding:3px 10px;border:3px solid #17102e;border-radius:12px;background:linear-gradient(#fff,#ffe08a);
  box-shadow:3px 3px 0 #17102e;transform:rotate(-1.5deg)}
.online-hall-meta{justify-self:end;display:flex;align-items:center;gap:6px;flex-wrap:nowrap;
  justify-content:flex-end;min-width:0;max-width:100%;overflow:hidden}
.online-hall-meta .online-stats{flex:0 1 auto;min-width:0;max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.online-hall-meta .online-status{margin-left:0;flex:0 1 auto;min-width:0;max-width:36vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.online-hall-meta .online-lag{flex:0 0 auto}
.online-hall-body{flex:1 1 auto;min-height:0;display:grid;
  grid-template-columns:460px 250px!important;gap:10px;align-items:stretch}
.online-vs{display:grid;grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);gap:4px;align-items:stretch;min-height:0;
  width:100%;max-width:100%;box-sizing:border-box;
  padding:8px;border-radius:18px;border:3px solid #17102e;
  background:
    radial-gradient(circle at 20% 20%,rgba(255,90,180,.2),transparent 40%),
    radial-gradient(circle at 80% 30%,rgba(84,242,255,.22),transparent 42%),
    linear-gradient(180deg,#fff,#ffe9c8 55%,#ffd6ef);
  box-shadow:4px 4px 0 #17102e}
.online-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  text-align:center;padding:6px 4px 8px;border-radius:14px;border:3px solid #17102e;
  background:#fff;min-width:0;min-height:0;box-shadow:3px 3px 0 rgba(23,16,46,.25)}
.online-card.me{border-color:#17102e;background:linear-gradient(180deg,#fff7d6,#ffe08a)}
.online-card.foe{border-color:#17102e;background:linear-gradient(180deg,#e8fbff,#9fe8ff)}
.online-card.foe.waiting{border-style:dashed;animation:onlinePulse 1.4s ease-in-out infinite}
.online-card-stage{position:relative;flex:1 1 auto;width:100%;min-height:120px;height:auto;border-radius:12px;
  overflow:hidden;margin:0 0 8px;display:flex;align-items:flex-end;justify-content:center;
  background:
    radial-gradient(circle,rgba(23,16,46,.18) 1.2px,transparent 1.4px) 0 0/10px 10px,
    linear-gradient(180deg,#ff9ed8,#ffcf4a 55%,#54e0ff);border:2px solid #17102e}
.online-card.foe .online-card-stage{
  background:
    radial-gradient(circle,rgba(23,16,46,.18) 1.2px,transparent 1.4px) 0 0/10px 10px,
    linear-gradient(180deg,#54e0ff,#b8ff9a 55%,#ff9ed8)}
.online-card-stage img{height:min(160px,28vh);width:auto;max-width:92%;object-fit:contain;position:relative;z-index:2;
  filter:drop-shadow(2px 3px 0 #17102e);animation:lobbyBob 2.4s ease-in-out infinite}
.online-card.foe .online-card-stage img{transform:scaleX(-1);animation:lobbyBobFoe 2.6s ease-in-out infinite}
.online-card-meta{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%}
.online-card-acts{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:2px}
.online-card b{display:inline-block;font-size:13px;margin:0;padding:3px 10px;border-radius:999px;
  border:2px solid #17102e;background:linear-gradient(#fff,#ffe08a);color:#17102e;box-shadow:2px 2px 0 #17102e}
.online-card.foe b{background:linear-gradient(#fff,#9fe8ff);color:#0c2a44;border-color:#17102e}
.online-card small{display:block;font-size:11px;font-weight:800;color:#3a2850;margin:0;max-width:100%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.online-card #btn-ol-skin,.online-card #btn-ol-dress,.online-card #btn-ol-pick{margin-top:0;padding:4px 12px;font-size:12px;
  border:2px solid #17102e;box-shadow:2px 2px 0 #17102e;background:#fff;color:#17102e;font-weight:900}
.online-card #btn-ol-skin{background:linear-gradient(#e8f7ff,#9fe8ff)}
.online-card #btn-ol-pick{background:linear-gradient(#ffe08a,#ffb800)}
.online-card .streak-chip{margin:2px 0 0;padding:3px 10px;font-size:11px}
.online-vs-mark{display:flex;align-items:center;justify-content:center;align-self:center;
  width:36px;min-width:36px;max-width:36px;padding:0;margin:0;border:0;background:transparent;box-shadow:none}
.online-vs-mark span{display:inline-flex;align-items:center;justify-content:center;width:34px;min-width:34px;height:34px;
  font-size:12px;font-weight:900;letter-spacing:.04em;color:#17102e;
  border:3px solid #17102e;border-radius:50%;
  background:linear-gradient(#ffe08a,#ffb800);box-shadow:0 2px 0 #17102e}
body.on-online #online-bar{grid-column:auto;grid-row:auto;margin:0;padding:12px;gap:10px;position:relative!important;
  top:auto;z-index:1;height:100%;min-height:0;justify-content:flex-start;
  border-radius:18px;border:3px solid #17102e;
  background:
    radial-gradient(circle at 90% 8%,rgba(255,90,180,.25),transparent 35%),
    linear-gradient(180deg,#fff,#ffe08a 60%,#ffc4e8);
  box-shadow:4px 4px 0 #17102e;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:auto}
#online-bar .online-bar-title,.online-bar-lab{display:none!important}
.online-bar-sec{display:flex;flex-direction:column;gap:6px}
.online-acts-primary{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.online-acts-primary .primary{padding:12px 8px;font-size:15px}
.online-acts-primary #btn-online-cancel:not([hidden]){grid-column:1/-1}
.online-acts-join{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center}
.online-acts-join .online-code{width:auto!important;min-width:0;flex:unset;
  background:#fff!important;color:#17102e!important;border:3px solid #17102e!important;
  box-shadow:2px 2px 0 rgba(23,16,46,.35)!important}
.online-acts-join #btn-online-last:not([hidden]),
.online-acts-join #btn-online-copy:not([hidden]),
.online-acts-join #btn-lobby-invite:not([hidden]),
.online-acts-join #btn-online-leave:not([hidden]){grid-column:1/-1}
.online-go{width:100%;margin:auto 0 0;padding:14px 12px;font-size:16px;flex:0 0 auto}
#lobby-chat{display:none!important}
body.on-online #screen-online{display:flex;justify-content:center;align-items:center}
body.land.on-online .online-hall-body,
body.fake-land.on-online .online-hall-body{grid-template-columns:460px 250px!important}
body.fake-land.on-online #screen-online{padding:4px 8px;overflow:auto}
body.fake-land.on-online .online-hall{
  width:760px!important;max-width:760px!important;min-width:760px!important;
  padding:8px;gap:6px}
body.fake-land.on-online .online-card-stage{min-height:88px}
body.fake-land.on-online .online-card-stage img{height:min(110px,34vh)}
body.fake-land.on-online .online-acts-primary .primary{padding:9px 6px;font-size:13px}
body.fake-land.on-online .online-go{padding:10px;font-size:14px}
body.fake-land.on-online .online-vs-mark span{width:30px;min-width:30px;height:30px;font-size:11px}
/* 真竖屏版才允许单列；横屏/假横屏一律锁双列定宽，避免竖屏视口误触发变形 */
@media (max-width:820px){
  body.port-pad.on-online .online-hall,
  body.port.on-online .online-hall{
    width:100%!important;max-width:100%!important;min-width:0!important}
  body.port-pad.on-online .online-hall-body,
  body.port.on-online .online-hall-body{
    grid-template-columns:1fr!important;grid-template-rows:minmax(160px,1fr) auto!important}
  body.port-pad.on-online .online-card-stage,
  body.port.on-online .online-card-stage{min-height:100px}
  body.port-pad.on-online .online-card-stage img,
  body.port.on-online .online-card-stage img{height:min(120px,22vh)}
  body.port-pad.on-online #online-bar,
  body.port.on-online #online-bar{height:auto}
}

/* —— 首页滚动公告 + 横屏侧栏 Tab —— */
.announce-rail{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding:4px 8px 4px 10px;
  border:2px solid var(--btn-edge);border-radius:999px;background:linear-gradient(90deg,#fff6e2,#ffe08a);
  box-shadow:2px 2px 0 rgba(23,16,46,.55);min-height:32px;flex:0 0 auto}
.announce-rail-tag{flex:none;font-size:11px;font-weight:900;color:#fff;background:#e11d48;
  border:2px solid #17102e;border-radius:999px;padding:2px 8px;letter-spacing:.04em}
.announce-rail-track{flex:1 1 auto;min-width:0;overflow:hidden;position:relative;height:20px}
.announce-rail-track i{position:absolute;left:0;top:0;white-space:nowrap;font-style:normal;font-size:12px;font-weight:800;
  color:#17102e;line-height:20px;padding-left:100%;animation:announceMarquee 120s linear infinite}
@keyframes announceMarquee{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}
@media (prefers-reduced-motion:reduce){
  .announce-rail-track i{animation:none;position:static;padding-left:0;display:block;overflow:hidden;text-overflow:ellipsis}
}
.announce-rail-btn{flex:none;border:2px solid #17102e;border-radius:999px;padding:3px 10px;font-size:11px;font-weight:900;
  background:linear-gradient(#54c4ff,#1f8fd4);color:#062038;box-shadow:2px 2px 0 rgba(23,16,46,.45)}
.announce-rail-btn:hover{filter:brightness(1.06)}

.panel-side{min-height:0}
.side-split{display:flex;flex-direction:column;gap:8px;min-height:0;flex:1 1 auto;overflow:hidden}
.side-tabs{display:flex;gap:6px;flex-wrap:wrap;padding:6px;border-radius:12px;
  background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.1);flex:0 0 auto}
.side-tabs button{border:2px solid rgba(255,255,255,.28);background:rgba(255,255,255,.06);color:var(--muted);
  border-radius:12px;padding:7px 12px;font-size:12px;font-weight:900;text-align:left}
.side-tabs button.on{border-color:var(--btn-edge);color:var(--btn-ink);
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b));box-shadow:0 3px 0 var(--btn-shadow)}
.side-pane{min-height:0;flex:1 1 auto;overflow:auto;-webkit-overflow-scrolling:touch}
.announce-list{display:flex;flex-direction:column;gap:8px}
.announce-item{padding:10px 12px;border-radius:12px;border:2px solid rgba(255,255,255,.14);background:rgba(0,0,0,.22)}
.announce-item b{display:block;font-size:13px;margin:0 0 4px;color:#ffe08a}
.announce-item p{margin:0;font-size:12px;line-height:1.45;color:#e8f8ff;font-weight:700}
.announce-item em{display:block;margin-top:6px;font-style:normal;font-size:11px;color:#9ec8d4;font-weight:700}

/* 横屏 / 假横屏：Tab 一律左侧，右侧列表吃满剩余高度 */
body.land .side-split,
body.fake-land .side-split,
body.land .panel-side .side-split,
body.fake-land .panel-side .side-split{
  display:grid!important;grid-template-columns:112px minmax(0,1fr);gap:10px;align-items:stretch;
  flex:1 1 auto;min-height:0;overflow:hidden}
body.land .side-tabs,
body.fake-land .side-tabs{
  flex-direction:column!important;flex-wrap:nowrap!important;align-content:start;gap:6px;padding:6px;
  overflow:auto;max-height:none;height:100%}
body.land .side-tabs button,
body.fake-land .side-tabs button{width:100%;padding:8px 8px;font-size:12px;border-radius:10px}
body.land .side-pane,
body.fake-land .side-pane{min-height:0;max-height:none;overflow:auto}
body.land .wide-panel.panel-side,
body.fake-land .wide-panel.panel-side{
  width:min(860px,96%);max-height:min(92%,calc(var(--fl-w,100vh) - 16px));
  display:flex;flex-direction:column;overflow:hidden}
body.fake-land .wide-panel.panel-side:not(.zk-pop-fit){
  /* 假横屏可用高度是 --fl-w（机宽），禁止 92vh（机高）把逻辑搞乱 */
  max-height:calc(var(--fl-w,100vw) - 20px)}
body.land .panel-side > .panel-sub,
body.fake-land .panel-side > .panel-sub{margin-bottom:6px;-webkit-line-clamp:1;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
body.land .panel-side .panel-foot,
body.fake-land .panel-side .panel-foot{flex:0 0 auto;margin-top:8px}

/* 装扮/商城右侧 pane 吃满高度，内部自己滚 */
body.land #panel-dress .side-pane,
body.fake-land #panel-dress .side-pane,
body.land #panel-shop .side-pane,
body.fake-land #panel-shop .side-pane{
  display:flex!important;flex-direction:column!important;overflow:hidden!important;min-height:0!important}
body.land #panel-shop .shop-title-row,
body.fake-land #panel-shop .shop-title-row{flex:0 0 auto}
body.land #panel-dress .side-pane .dress-layout,
body.fake-land #panel-dress .side-pane .dress-layout,
body.land #panel-shop .side-pane .dress-layout,
body.fake-land #panel-shop .side-pane .dress-layout{flex:1 1 auto}
/* 装扮/商城：左 Tab · 右（预览|列表） */
body.land #panel-dress .dress-layout,
body.fake-land #panel-dress .dress-layout,
body.land #panel-shop .dress-layout,
body.fake-land #panel-shop .dress-layout{
  display:grid!important;grid-template-columns:minmax(200px,.85fr) minmax(0,1.4fr)!important;
  grid-template-rows:minmax(0,1fr)!important;gap:10px!important;flex:1;min-height:0;overflow:hidden;height:100%}
body.land #panel-dress .fx-preview,
body.fake-land #panel-dress .fx-preview,
body.land #panel-shop .fx-preview,
body.fake-land #panel-shop .fx-preview{min-height:0;max-height:none;height:100%;overflow:hidden}
body.land #panel-dress .dress-main,
body.fake-land #panel-dress .dress-main,
body.land #panel-shop .dress-main,
body.fake-land #panel-shop .dress-main{display:flex;flex-direction:column;min-height:0;overflow:hidden;height:100%}
body.land #panel-dress .dress-tabs,
body.fake-land #panel-dress .dress-tabs,
body.land #panel-shop .dress-tabs,
body.fake-land #panel-shop .dress-tabs,
body.land #panel-shop .shop-head .dress-tabs,
body.fake-land #panel-shop .shop-head .dress-tabs{
  flex-direction:column;flex-wrap:nowrap;overflow:auto;max-height:none;margin:0 0 6px;gap:4px}
body.land #panel-dress .dress-tabs button,
body.fake-land #panel-dress .dress-tabs button,
body.land #panel-shop .dress-tabs button,
body.fake-land #panel-shop .dress-tabs button{width:100%;text-align:left}
body.land #panel-dress .dress-grid,
body.fake-land #panel-dress .dress-grid,
body.land #panel-shop .dress-grid,
body.fake-land #panel-shop .dress-grid{flex:1;min-height:0;overflow:auto}

/* 排行榜页：横屏左 Tab */
body.land.on-board .board-hall,
body.fake-land.on-board .board-hall{
  display:grid;grid-template-columns:118px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);
  gap:8px;align-content:stretch}
body.land.on-board .board-head,
body.fake-land.on-board .board-head{grid-column:1 / -1}
body.land.on-board .board-nav,
body.fake-land.on-board .board-nav{
  grid-column:1;grid-row:2 / span 2;flex-direction:column;flex-wrap:nowrap;align-content:start;
  overflow:auto;gap:5px;height:100%}
body.land.on-board .board-nav button,
body.fake-land.on-board .board-nav button{flex:none;width:100%;text-align:left;padding:8px 8px}
body.land.on-board .hero-filters,
body.fake-land.on-board .hero-filters{grid-column:2;grid-row:2}
body.land.on-board .board-tip,
body.fake-land.on-board .board-tip{grid-column:2;margin:0}
body.land.on-board .board-me,
body.fake-land.on-board .board-me{grid-column:2}
body.land.on-board .board-list,
body.fake-land.on-board .board-list{grid-column:2;grid-row:3;min-height:0;max-height:none;overflow:auto}

/* 首页公告条在假横屏也显示（旧 notice 可关） */
body.fake-land.on-home .announce-rail{display:flex!important;margin:0 0 4px;padding:2px 6px;min-height:26px}
body.fake-land.on-home .announce-rail-tag{font-size:10px;padding:1px 6px}
body.fake-land.on-home .announce-rail-track{height:16px}
body.fake-land.on-home .announce-rail-track i{font-size:11px;line-height:16px}
body.fake-land.on-home .announce-rail-btn{padding:2px 8px;font-size:10px}
body.land.on-home .announce-rail{margin:0 0 6px}

/* 赛季弹层横屏：进度与天梯并排，少滚 */
body.land #panel-season .wide-panel,
body.fake-land #panel-season .wide-panel{display:flex;flex-direction:column;overflow:hidden}
body.land #panel-season .season-side,
body.fake-land #panel-season .season-side{
  display:grid;grid-template-columns:minmax(180px,.9fr) minmax(0,1.2fr);gap:10px;min-height:0;flex:1;overflow:hidden}
body.land #panel-season .season-box,
body.fake-land #panel-season .season-box{margin:0;overflow:auto;min-height:0}
body.land #panel-season .season-ladder,
body.fake-land #panel-season .season-ladder{display:flex;flex-direction:column;min-height:0;overflow:hidden}
body.land #panel-season .ladder-list,
body.fake-land #panel-season .ladder-list{flex:1;min-height:0;max-height:none;overflow:auto}

/* 战绩列表横屏吃满 */
body.land #panel-history .hist-list,
body.fake-land #panel-history .hist-list{max-height:none;min-height:0}

/* board hero-filters hidden: tip sits at row2 */
body.land.on-board .hero-filters[hidden]+.board-tip,
body.fake-land.on-board .hero-filters[hidden]+.board-tip{grid-row:2}
/* dress/shop right pane: preview | grid 左右分栏 */
body.land #panel-dress .side-pane .dress-layout,
body.fake-land #panel-dress .side-pane .dress-layout,
body.land #panel-shop .side-pane .dress-layout,
body.fake-land #panel-shop .side-pane .dress-layout{
  display:grid!important;grid-template-columns:minmax(200px,.85fr) minmax(0,1.4fr)!important;
  grid-template-rows:minmax(0,1fr)!important;gap:10px!important;min-height:0;height:100%;overflow:hidden}
body.land #panel-dress .side-pane .fx-preview,
body.fake-land #panel-dress .side-pane .fx-preview,
body.land #panel-shop .side-pane .fx-preview,
body.fake-land #panel-shop .side-pane .fx-preview{flex:none;max-height:none;min-height:0;height:100%}
body.land #panel-dress .side-pane .dress-main,
body.fake-land #panel-dress .side-pane .dress-main,
body.land #panel-shop .side-pane .dress-main,
body.fake-land #panel-shop .side-pane .dress-main{flex:none;min-height:0;overflow:hidden;display:flex;flex-direction:column;height:100%}

/* —— 战斗 HUD v2：透明底 + 波普斜切 PK 铭牌 —— */
body.land.in-battle #screen-battle .hud.hud-v2,
body.fake-land.in-battle #screen-battle .hud.hud-v2,
body.in-battle #screen-battle .hud.hud-v2,
.hud.hud-v2{
  display:grid;grid-template-columns:1fr minmax(78px,96px) 1fr;gap:8px;align-items:stretch;
  margin:0 0 6px;padding:2px 0;position:relative;overflow:visible;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important}
.hud.hud-v2::before{display:none!important;content:none!important}
.hud.hud-v2 .fighter{position:relative;min-width:0}
.hud.hud-v2 .hud-card{
  position:relative;display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center;min-width:0;
  padding:6px 8px;isolation:isolate;clip-path:none;
  border:0!important;background:transparent!important;box-shadow:none!important}
.hud.hud-v2 .hud-card::before,
.hud.hud-v2 .hud-card::after{display:none!important;content:none!important}
.hud.hud-v2 .fighter.right .hud-card{
  grid-template-columns:1fr auto;padding:6px 8px;
  background:transparent!important;box-shadow:none!important}
.hud.hud-v2 .hud-av{position:relative;flex:none;z-index:2}
.hud.hud-v2 .avatar{
  width:46px;height:46px;border-radius:10px;border:3px solid #111!important;
  box-shadow:3px 3px 0 #111,0 0 0 2px #ffef3a!important;
  background:#fff}
.hud.hud-v2 .fighter.right .avatar{
  box-shadow:3px 3px 0 #111,0 0 0 2px #2ad4ff!important}
.hud.hud-v2 .hud-meta{min-width:0;display:flex;flex-direction:column;gap:4px;z-index:2}
body.land.in-battle #screen-battle .hud.hud-v2 .fname,
body.fake-land.in-battle #screen-battle .hud.hud-v2 .fname,
body.in-battle #screen-battle .hud.hud-v2 .fname,
.hud.hud-v2 .fname{
  margin:0!important;padding:0!important;border:0!important;background:none!important;
  box-shadow:none!important;border-radius:0!important;width:auto!important;max-width:100%;
  font-size:13px;font-weight:900;letter-spacing:.02em;
  text-shadow:none!important}
.hud.hud-v2 .fighter.left .fname{color:#fff!important}
.hud.hud-v2 .fighter.left #hud-name-l{
  color:#ffef3a!important;
  text-shadow:0 1px 0 #111, 1px 1px 0 rgba(0,0,0,.55)}
.hud.hud-v2 .fighter.right .fname{color:#fff!important;margin-left:0;justify-content:flex-end}
.hud.hud-v2 .fighter.right #hud-name-r{
  color:#9fe8ff!important;
  text-shadow:0 1px 0 #111, 1px 1px 0 rgba(0,0,0,.55)}
.hud.hud-v2 .fname small{color:rgba(255,240,200,.9)!important;opacity:1;font-weight:800;
  text-shadow:0 1px 0 #111}
.hud.hud-v2 .fighter.right .fname small{color:rgba(200,240,255,.92)!important}
body.land.in-battle #screen-battle .hud.hud-v2 .bar,
body.fake-land.in-battle #screen-battle .hud.hud-v2 .bar,
body.in-battle #screen-battle .hud.hud-v2 .bar,
.hud.hud-v2 .bar{
  height:15px;border:3px solid #111!important;border-radius:4px!important;background:#111!important;
  box-shadow:2px 2px 0 rgba(17,17,17,.55)!important;overflow:hidden;
  clip-path:none}
.hud.hud-v2 .fighter.right .bar{clip-path:none}
.hud.hud-v2 .bar .bar-gloss{position:absolute;left:0;right:0;top:0;height:42%;pointer-events:none;z-index:3;
  background:linear-gradient(180deg,rgba(255,255,255,.35),transparent);border-radius:0}
.hud.hud-v2 .bar i:not(.trail){
  border-radius:2px!important;
  background:
    radial-gradient(rgba(255,255,255,.45) 1px,transparent 1.3px),
    linear-gradient(90deg,#ff2d6f,#ff8a2b 55%,#ffef3a)!important;
  background-size:5px 5px,auto!important;
  box-shadow:none}
.hud.hud-v2 .fighter.right .bar i:not(.trail){
  background:
    radial-gradient(rgba(255,255,255,.45) 1px,transparent 1.3px),
    linear-gradient(90deg,#2ad4ff,#6b7bff 55%,#ff2d6f)!important;
  background-size:5px 5px,auto!important}
.hud.hud-v2 .mini{gap:5px}
.hud.hud-v2 .meter,.hud.hud-v2 .gbar{
  height:8px;border:2px solid #111!important;border-radius:3px!important;
  background:#fff8d6!important;overflow:hidden!important;
  box-shadow:1px 1px 0 #111}
.hud.hud-v2 .gbar i{max-width:calc(100% - 14px)!important;border-radius:1px!important}
.hud.hud-v2 .meter i{
  background:linear-gradient(90deg,#8f6bff,#ffef3a)!important}
.hud.hud-v2 .fighter.right .meter i{
  background:linear-gradient(90deg,#ffef3a,#2ad4ff)!important}
.hud.hud-v2 .meter b{color:#111!important;font-weight:900}
.hud.hud-v2 .hud-center{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  padding:4px 2px;border-radius:0;position:relative;z-index:3;
  clip-path:none;border:0!important;background:transparent!important;box-shadow:none!important}
.hud.hud-v2 .hud-center .timer{
  font-size:28px;line-height:1;font-weight:900;color:#fff!important;
  text-shadow:0 0 2px #111, 1px 1px 0 #111, -1px -1px 0 #111, 2px 2px 0 rgba(0,0,0,.45)!important;
  padding:0;background:none!important;border:0!important;box-shadow:none!important}
.hud.hud-v2 .hud-center .round,
.hud.hud-v2 .hud-center #round-label{
  font-size:9px;font-weight:900;color:#17102e!important;
  background:#fff!important;border:2px solid #17102e!important;
  border-radius:999px;padding:1px 7px;box-shadow:2px 2px 0 rgba(23,16,46,.8)!important;
  text-shadow:none}
.hud.hud-v2 .hud-center .modetag,
.hud.hud-v2 .hud-center #modetag,
body.in-battle .hud.hud-v2 #modetag{
  font-size:9px;font-weight:900;color:#0c2a44!important;
  background:#54c4ff!important;border:2px solid #17102e!important;
  border-radius:999px;padding:1px 7px;box-shadow:2px 2px 0 rgba(23,16,46,.8)!important;
  text-shadow:none;display:inline-block}
.hud.hud-v2 .fname .wood-chip{
  margin:0 0 0 2px;border:2px solid #111;background:#ffef3a;color:#111;
  box-shadow:2px 2px 0 #111;padding:1px 6px;font-size:10px;border-radius:999px}
.hud.hud-v2 .fname .wood-chip img{width:13px;height:13px}
.hud.hud-v2 .fname .wood-chip b{font-size:11px;font-weight:900}
.hud.hud-v2 .pips{margin-top:4px;justify-content:flex-start}
.hud.hud-v2 .fighter.right .pips{justify-content:flex-end}
.hud.hud-v2 .pips b{background:#fff;border:2px solid #111;box-shadow:1px 1px 0 #111}
.hud.hud-v2 .pips b.on{background:linear-gradient(#ffef3a,#ff2d6f);border-color:#111}
.hud.hud-v2 .fighter.right .pips b.on{background:linear-gradient(#2ad4ff,#ff2d6f);border-color:#111}
body.fake-land.in-battle .hud.hud-v2{padding:2px 0;gap:5px;margin:0}
body.fake-land.in-battle .hud.hud-v2 .avatar{width:36px;height:36px;border-radius:8px}
body.fake-land.in-battle .hud.hud-v2 .bar{height:12px}
body.fake-land.in-battle .hud.hud-v2 .hud-center .timer{font-size:20px}
body.fake-land.in-battle .hud.hud-v2 .fname{font-size:11px}
body.fake-land.in-battle .hud.hud-v2 .hud-card{padding:5px 10px 5px 6px}
body.fake-land.in-battle .hud.hud-v2 .fighter.right .hud-card{padding:5px 6px 5px 10px}
body.land.in-battle:not(.fake-land) .hud.hud-v2{top:6px;left:10px;right:10px}

/* —— 战斗舞台框 / tip 胶囊 —— */
body.in-battle .stage-wrap{
  border:3px solid #17102e!important;
  box-shadow:5px 5px 0 rgba(23,16,46,.75), inset 0 0 0 2px rgba(255,224,102,.25)!important;
  background:#0a0614!important}
body.in-battle #battle-tip{
  border:2px solid #17102e!important;border-radius:999px!important;
  background:linear-gradient(90deg,#ffe08a,#ff6b8a)!important;color:#17102e!important;
  font-weight:900!important;box-shadow:2px 2px 0 rgba(23,16,46,.65)!important}
body.in-battle .battle-foot{
  border-top:2px solid rgba(255,224,102,.2);
  background:linear-gradient(180deg,rgba(18,8,36,.2),rgba(8,4,18,.55))}
/* 结算页波普强化 */
body.on-result .result-card{
  border:3px solid #17102e!important;
  box-shadow:6px 6px 0 rgba(23,16,46,.8)!important}
body.on-result .result-card.win{background:linear-gradient(180deg,#fff6e2,#ffe08a 40%,#fff)!important}
body.on-result .result-card.lose{background:linear-gradient(180deg,#ffe8f0,#ffb0c2 40%,#fff)!important}
/* 联机页 VS：夹在两角色卡中间的小圆标，勿再撑成宽徽章 */
.online-vs-mark{
  font-size:inherit!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;color:inherit!important;text-shadow:none!important;
  box-shadow:none!important}

/* —— 大厅角色卡 / 大按钮 / 冒险闯关 —— */
body.on-home .lobby-dress,body.on-home .lobby-shop,body.on-home .lobby-friends,
body.fake-land.on-home .lobby-dress,body.fake-land.on-home .lobby-shop,body.fake-land.on-home .lobby-friends,
body.land .lobby-dress,body.land .lobby-shop,body.land .lobby-friends,
body.fake-land .lobby-dress,body.fake-land .lobby-shop,body.fake-land .lobby-friends{
  min-width:88px!important;padding:10px 14px!important;font-size:14px!important;font-weight:900!important;
  border-width:3px!important;border-radius:14px!important;box-shadow:0 4px 0 #17102e!important}
body.on-home .lobby-hero-acts{grid-column:1/-1;display:flex;gap:8px;justify-content:center;width:100%;margin-top:4px}
body.on-home .lobby-power,body.fake-land.on-home .lobby-power{
  display:inline-block;margin:0;padding:3px 10px;border-radius:999px;
  border:2px solid #17102e;background:linear-gradient(#ffe08a,#ffb020);color:#3a2808;
  font-size:12px;font-weight:900;box-shadow:2px 2px 0 rgba(23,16,46,.7)}
body.on-home .lobby-fighter:not(.lobby-foe){cursor:pointer}
body.on-home .lobby-fighter:not(.lobby-foe):active{transform:translateY(1px)}
body.on-home .lobby-fighter:not(.lobby-foe) .lobby-stage{cursor:pointer;grid-column:1/-1}
body.on-home .lobby-fighter:not(.lobby-foe)>b{grid-column:1/-1}
body.on-home .lobby-stage-tip{display:none!important}
body.fake-land.on-home .lobby-hero-acts .lobby-dress,
body.fake-land.on-home .lobby-hero-acts .lobby-shop,
body.fake-land.on-home .lobby-hero-acts .lobby-friends{
  flex:1;min-width:72px!important;padding:8px 10px!important;font-size:13px!important}

/* —— 冒险闯关专用游玩页：iframe 铺满手机横屏 —— */
#screen-adv-play{display:none;flex-direction:column;min-height:0;flex:1;padding:0;overflow:hidden}
body.on-advplay #screen-adv-play{display:flex!important}
.adv-play{
  flex:1;min-height:0;display:flex;flex-direction:column;gap:0;padding:0;overflow:hidden;
  border:0;border-radius:0;box-shadow:none;background:#05081e;position:relative}
.adv-play-hud{
  flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;
  padding:4px 8px;min-height:36px;box-sizing:border-box;
  border:0;border-bottom:2px solid #17102e;border-radius:0;
  background:rgba(255,255,255,.94);box-shadow:none;z-index:4}
.adv-play-me{display:flex;align-items:center;gap:6px;min-width:0}
.adv-play-me img{width:28px;height:28px;border-radius:50%;border:2px solid #17102e;object-fit:cover;background:#dff9ff;flex:0 0 auto}
.adv-play-me-meta{flex:1;min-width:0}
.adv-play-me-meta b{display:block;font-size:12px;font-weight:900;color:#17102e;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.adv-play-me-meta span{display:block;font-size:10px;font-weight:800;color:#3a4050;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.adv-play-mid{display:none}
.adv-play-src{font-size:11px;font-weight:800;color:#3a4050;padding:4px 10px;border:2px dashed #17102e;
  border-radius:999px;background:#e8f8ff}
.adv-play-loot{display:flex;align-items:center;gap:6px;flex:0 0 auto;justify-content:flex-end}
.adv-play-loot #btn-adv-quit{
  padding:0 12px;height:30px;line-height:30px;font-size:12px;font-weight:900;
  border:2px solid #17102e;border-radius:10px;box-shadow:2px 2px 0 #17102e;background:#fff;white-space:nowrap}
.adv-stage-host{
  flex:1 1 auto;min-height:0;position:relative;border:0;border-radius:0;overflow:hidden;
  background:#05081e;box-shadow:none;-webkit-overflow-scrolling:touch}
.adv-stage-host #adv-embed{
  position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#05081e;
  /* iOS iframe 触控 */
  touch-action:none;-webkit-overflow-scrolling:touch}
.adv-play-tip{display:none!important}
/* 真横屏 / 竖屏版：闯关铺满 #app */
body.on-advplay #app,
body.land.on-advplay:not(.fake-land) #app,
body.port-pad.on-advplay #app{
  max-width:100%!important;width:100%!important;height:100%!important;min-height:0!important;
  display:flex!important;flex-direction:column!important;
  padding:0!important;margin:0!important;overflow:hidden!important}
/* 假横屏：禁止 width/height:100% 覆盖旋转盒，否则只占半屏露出彩虹底 */
body.fake-land.on-advplay{
  background:#05081e!important;overflow:hidden!important}
body.fake-land.on-advplay #app{
  position:fixed!important;z-index:2!important;
  top:0!important;left:var(--fl-w,100vw)!important;right:auto!important;bottom:auto!important;
  width:var(--fl-h,100vh)!important;height:var(--fl-w,100vw)!important;
  max-width:none!important;max-height:none!important;min-height:0!important;
  margin:0!important;padding:0!important;box-sizing:border-box!important;
  transform-origin:top left!important;transform:rotate(90deg)!important;
  display:flex!important;flex-direction:column!important;
  overflow:hidden!important;background:#05081e!important}
html:has(body.on-advplay),body.on-advplay{height:100%;overflow:hidden;overscroll-behavior:none}
body.on-advplay .topbar,body.on-advplay .mp-float,body.on-advplay #notice-bar{display:none!important}
/* 假横屏：闯关页占满旋转盒 */
body.fake-land.on-advplay #screen-adv-play,
body.land.on-advplay #screen-adv-play{
  padding:0!important;flex:1 1 auto!important;min-height:0!important;
  width:100%!important;height:auto!important;max-height:none!important}
body.fake-land.on-advplay .adv-play{
  flex:1 1 auto!important;min-height:0!important;height:100%!important;width:100%!important}
body.fake-land.on-advplay .adv-stage-host{
  flex:1 1 auto!important;min-height:0!important;height:auto!important}
body.fake-land.on-advplay .adv-play-hud,
body.land.on-advplay .adv-play-hud{min-height:32px;padding:3px 6px}
body.fake-land.on-advplay .adv-play-me img,
body.land.on-advplay .adv-play-me img{width:24px;height:24px}
body.fake-land.on-advplay .adv-play-loot #btn-adv-quit,
body.land.on-advplay .adv-play-loot #btn-adv-quit{height:28px;line-height:28px;padding:0 10px;font-size:11px}
@media (min-width:900px) and (min-height:520px){
  #screen-adv-play{padding:6px 8px}
  .adv-play{border:3px solid #17102e;border-radius:16px;box-shadow:5px 5px 0 rgba(23,16,46,.7);
    background:linear-gradient(160deg,#9ad7ff,#dff7ff 40%,#b8f0a8);padding:0;overflow:hidden}
  .adv-play-hud{grid-template-columns:minmax(160px,.9fr) minmax(0,1.2fr) auto;border-radius:12px 12px 0 0}
  .adv-play-mid{display:flex;align-items:center;justify-content:center;min-width:0}
  .adv-stage-host{border-radius:0 0 12px 12px}
}

/* —— 冒险岛：横屏优先 · 地图铺满 + 底栏情报条 —— */
#screen-adventure{display:flex;flex-direction:column;min-height:0;flex:1;padding:4px 6px;overflow:hidden}
.adv-hall{
  flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;
  padding:6px 8px;border-radius:16px;border:3px solid #17102e;overflow:hidden;
  background:linear-gradient(160deg,#9ad7ff 0%,#dff7ff 28%,#b8f0a8 62%,#7bc96a 100%);
  box-shadow:4px 4px 0 rgba(23,16,46,.7)}
.adv-head{
  flex:0 0 auto;display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:nowrap}
.adv-head #btn-adv-back{
  flex:0 0 auto;padding:6px 10px;font-size:12px;font-weight:900;
  border:2px solid #17102e;border-radius:10px;box-shadow:2px 2px 0 #17102e;background:#fff}
.adv-head h1{
  margin:0;font-size:16px;font-weight:900;color:#17102e;text-shadow:2px 2px 0 #fff;
  letter-spacing:.04em;white-space:nowrap}
.adv-chips{display:inline-flex;flex-wrap:nowrap;gap:4px;margin-left:auto;min-width:0}
.adv-chips i{font-style:normal;font-size:10px;font-weight:900;padding:2px 7px;border-radius:999px;
  border:2px solid #17102e;background:#fff;color:#3a4050;box-shadow:1px 1px 0 rgba(23,16,46,.45);white-space:nowrap}
.adv-meta{flex:0 0 auto;font-size:12px;font-weight:900;padding:3px 10px;border-radius:999px;
  border:2px solid #17102e;background:#ffe08a;color:#17102e;box-shadow:2px 2px 0 #17102e}
.adv-body{
  flex:1 1 auto;min-height:0;display:grid;
  grid-template-rows:minmax(0,1fr) auto;grid-template-columns:1fr;gap:6px}
.adv-world{
  position:relative;min-height:0;border:3px solid #17102e;border-radius:14px;overflow:hidden;
  box-shadow:3px 3px 0 rgba(23,16,46,.5);background:
  linear-gradient(180deg,#6ec8ff 0%,#b8e8ff 38%,#d4f5a8 62%,#6dbb4a 100%)}
.adv-sky{position:absolute;inset:0 0 42% 0;pointer-events:none;
  background:
    radial-gradient(circle at 18% 28%,rgba(255,255,255,.95) 0 10px,transparent 11px),
    radial-gradient(circle at 22% 30%,rgba(255,255,255,.85) 0 16px,transparent 17px),
    radial-gradient(circle at 70% 18%,rgba(255,255,255,.9) 0 12px,transparent 13px),
    radial-gradient(circle at 76% 20%,rgba(255,255,255,.75) 0 20px,transparent 21px)}
.adv-hills{position:absolute;left:0;right:0;bottom:0;height:46%;pointer-events:none;
  background:
    radial-gradient(ellipse 46% 80% at 12% 110%,#4fa83a 0 70%,transparent 71%),
    radial-gradient(ellipse 50% 90% at 55% 120%,#5fba48 0 68%,transparent 69%),
    radial-gradient(ellipse 42% 70% at 90% 115%,#3f9630 0 72%,transparent 73%),
    linear-gradient(180deg,transparent 0%,#3a8f2c 78%,#2f6f22 100%)}
.adv-route{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.adv-route-bg{stroke:#17102e;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:2.2 2.4;opacity:.55}
.adv-route-fg{stroke:#ffe08a;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.95}
.adv-map{position:absolute;inset:0;z-index:2}
.adv-node{position:absolute;transform:translate(-50%,-50%);width:48px;height:48px;padding:0;border:0;background:transparent;
  cursor:pointer;z-index:2}
.adv-node .adv-pin{display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin:0 auto;
  border-radius:50%;border:3px solid #17102e;font-style:normal;font-size:12px;font-weight:900;color:#17102e;
  background:linear-gradient(#fff9ea,#ffe08a);box-shadow:2px 2px 0 rgba(23,16,46,.65)}
.adv-node .adv-lab{display:block;margin-top:1px;padding:1px 5px;border-radius:8px;border:2px solid #17102e;
  background:rgba(255,255,255,.92);box-shadow:1px 1px 0 rgba(23,16,46,.4);white-space:nowrap;max-width:78px;
  overflow:hidden;text-overflow:ellipsis}
.adv-node .adv-lab b{display:block;font-size:9px;line-height:1.15;color:#17102e}
.adv-node .adv-lab small{display:none}
.adv-node .adv-foe{position:absolute;right:-10px;top:-8px;width:22px;height:22px;border-radius:50%;
  border:2px solid #17102e;object-fit:cover;background:#fff;box-shadow:2px 2px 0 #17102e}
.adv-node .adv-go{position:absolute;left:50%;top:-14px;transform:translateX(-50%);z-index:3;
  font-size:9px;font-weight:900;padding:1px 6px;border-radius:999px;border:2px solid #17102e;
  background:linear-gradient(#7dffb2,#2f9e6a);color:#fff;box-shadow:2px 2px 0 #17102e;white-space:nowrap}
.adv-node.cleared .adv-pin{background:linear-gradient(#d8ffe8,#3dff8a)}
.adv-node.current .adv-pin{background:linear-gradient(#ffe08a,#ff6b8a);animation:onlinePulse 1.2s ease-in-out infinite}
.adv-node.on .adv-pin{outline:3px solid #1f8fd4;outline-offset:1px;transform:scale(1.08)}
.adv-node.locked{cursor:not-allowed;opacity:.55;filter:grayscale(.45)}
.adv-node.locked .adv-pin{background:#d8d8d8;color:#5a6478}
.adv-node.motif-neon .adv-pin{background:linear-gradient(#ffb0ff,#54c4ff)}
.adv-node.motif-rain .adv-pin{background:linear-gradient(#b8ecff,#5478ff)}
.adv-node.motif-finale .adv-pin{background:linear-gradient(#ffe08a,#ff6b8a)}
.adv-me{position:absolute;z-index:3;transform:translate(-50%,-118%);pointer-events:none;transition:left .25s ease,top .25s ease}
.adv-me img{height:40px;width:auto;object-fit:contain;filter:drop-shadow(0 3px 0 rgba(23,16,46,.55));
  animation:lobbyBob 2.4s ease-in-out infinite}
.adv-me.on-locked{opacity:.35}
/* 底栏：横排情报 + 开战，不抢地图高度 */
.adv-side{
  flex:0 0 auto;min-height:0;overflow:hidden;
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;
  padding:6px 8px;border:3px solid #17102e;border-radius:14px;
  background:rgba(255,255,255,.96);box-shadow:3px 3px 0 rgba(23,16,46,.55)}
.adv-hero-card{
  display:flex;align-items:center;gap:6px;padding:4px 6px 4px 8px;border-radius:12px;border:2px solid #17102e;
  background:linear-gradient(135deg,#fff6d0,#b8ecff);min-width:0}
.adv-hero-id{flex:1;min-width:0}
.adv-hero-id b{display:block;font-size:13px;color:#17102e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:88px}
.adv-hero-id span{display:inline-block;margin-top:1px;font-size:10px;font-weight:900;color:#7a3a00;
  padding:1px 6px;border-radius:999px;border:2px solid #17102e;background:linear-gradient(#ffe08a,#ffb020)}
.adv-hero-card #btn-adv-switch{flex:0 0 auto;padding:7px 10px;font-size:12px;font-weight:900;
  border:2px solid #17102e;border-radius:10px;box-shadow:2px 2px 0 #17102e;background:#fff;white-space:nowrap}
.adv-focus{
  display:flex;align-items:center;gap:10px;min-width:0;padding:2px 4px;border:0;background:transparent;border-radius:0}
.adv-focus-main{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.adv-focus-no,.adv-focus .adv-focus-no{display:inline-block;font-size:10px;font-weight:900;opacity:.65;margin:0;line-height:1.1}
.adv-focus b,#adv-focus-name{
  display:block;font-size:16px;font-weight:900;letter-spacing:.02em;line-height:1.1;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(220px,28vw)}
.adv-focus-state,.adv-focus #adv-focus-state{
  display:inline-block;margin:0;font-size:10px;font-weight:900;padding:1px 7px;border-radius:999px;
  border:2px solid #17102e;background:#54c4ff;color:#fff;line-height:1.2}
.adv-focus-state.cleared,.adv-focus #adv-focus-state.cleared{background:linear-gradient(#7dffb2,#2f9e6a)}
.adv-focus-state.locked,.adv-focus #adv-focus-state.locked{background:#9aa3b2}
.adv-focus-state.current,.adv-focus #adv-focus-state.current{background:linear-gradient(#ffe08a,#ff6b8a);color:#17102e}
.adv-focus-foe,[hidden].adv-focus-foe{display:none!important}
.adv-focus em,#adv-focus-stat{
  display:inline-block;margin:0;font-style:normal;font-size:11px;font-weight:900;
  padding:4px 8px;border-radius:999px;border:2px solid #17102e;background:#ffe08a;color:#17102e;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.adv-acts{display:flex;align-items:center;gap:6px;margin:0}
.adv-acts .ghost[hidden],.adv-acts #btn-adv-pick[hidden]{display:none!important}
.adv-acts .ghost,.adv-acts .primary{
  padding:0 16px;height:44px;min-width:112px;font-size:14px;font-weight:900;line-height:44px;
  border:3px solid #17102e;border-radius:12px;box-shadow:3px 3px 0 #17102e;white-space:nowrap}
.adv-acts .primary,#btn-adv-fight{
  background:linear-gradient(#7dffb2,#2f9e6a)!important;color:#fff!important}
#btn-adv-fight:disabled{opacity:.55;filter:grayscale(.3)}
#btn-adv-fight.adv-fight-ready{animation:onlinePulse 1.2s ease-in-out infinite}
.adv-foot-hint,[hidden].adv-foot-hint{display:none!important}
.adv-tip,.adv-foot,.adv-stage{display:none}
body.on-adventure #screen-adventure{display:flex}
/* 真机 / 假横屏矮窗：再压一档 */
body.fake-land.on-adventure .adv-hall,
body.land.on-adventure .adv-hall{padding:4px 6px;gap:4px}
body.fake-land.on-adventure .adv-head h1,
body.land.on-adventure .adv-head h1{font-size:14px}
body.fake-land.on-adventure .adv-chips,
body.land.on-adventure .adv-chips{display:none}
body.fake-land.on-adventure .adv-side,
body.land.on-adventure .adv-side{padding:5px 6px;gap:6px}
body.fake-land.on-adventure .adv-me img,
body.land.on-adventure .adv-me img{height:34px}
body.fake-land.on-adventure .adv-node,
body.land.on-adventure .adv-node{width:42px;height:42px}
body.fake-land.on-adventure .adv-node .adv-pin,
body.land.on-adventure .adv-node .adv-pin{width:28px;height:28px;font-size:11px}
body.fake-land.on-adventure .adv-node .adv-lab,
body.land.on-adventure .adv-node .adv-lab{max-width:64px}
body.fake-land.on-adventure .adv-focus b,
body.land.on-adventure .adv-focus b{font-size:14px;max-width:min(160px,24vw)}
body.fake-land.on-adventure .adv-acts .primary,
body.land.on-adventure .adv-acts .primary{height:40px;line-height:40px;min-width:96px;font-size:13px;padding:0 12px}
body.fake-land.on-adventure .adv-hero-id b,
body.land.on-adventure .adv-hero-id b{max-width:72px;font-size:12px}
/* 竖屏垫：侧栏改底栏仍保持横排；极窄才换行 */
body.port-pad.on-adventure .adv-chips{display:none}
body.port-pad.on-adventure .adv-side{
  grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:6px}
body.port-pad.on-adventure .adv-hero-card{grid-column:1;grid-row:1}
body.port-pad.on-adventure .adv-focus{grid-column:1 / -1;grid-row:2}
body.port-pad.on-adventure .adv-acts{grid-column:2;grid-row:1}
@media (max-height:360px){
  .adv-head{gap:6px}
  .adv-chips{display:none}
  .adv-side{padding:4px 6px;gap:6px}
  .adv-acts .primary{height:38px;line-height:38px;min-width:90px;font-size:12px}
  .adv-node .adv-go{display:none}
}

/* —— 选角：头像墙旁资料同高 + 右侧大图 —— */
.pick-body{grid-template-columns:minmax(0,1.15fr) minmax(220px,32%)!important;gap:10px}
.pick-select{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(148px,28%);gap:8px;align-items:stretch;min-height:0;min-width:0}
.pick-side{display:flex;flex-direction:column;min-height:0;overflow:visible;padding:10px 8px 8px;text-align:center}
.pick-info{
  display:flex!important;flex-direction:column;gap:6px;min-width:0;min-height:0;height:100%;overflow:auto;text-align:left;
  padding:10px 8px;border-radius:16px;box-sizing:border-box;
  background:linear-gradient(180deg,rgba(255,207,74,.1),transparent 28%),var(--panel);
  border:3px solid rgba(255,224,102,.32);box-shadow:0 5px 0 rgba(18,6,31,.3)}
.pick-info .nameplate{margin:0;padding:8px 8px 6px;border-radius:12px}
.pick-info .nameplate h2{margin:0 0 2px;font-size:15px;line-height:1.2}
.pick-info .nameplate .tag{font-size:10px;margin:0;line-height:1.3}
.pick-info .style-line{justify-content:flex-start;margin:0;gap:4px}
.pick-info .style-line span,.pick-info .style-line em{padding:3px 8px;font-size:10px}
.pick-info .pick-wood{display:inline-block!important;margin:0;padding:4px 8px;border-radius:999px;border:2px solid #17102e;
  background:linear-gradient(#ffe08a,#ffb020);color:#3a2808;font-size:11px;font-weight:900;width:fit-content}
.pick-info .stats{display:grid!important;margin:auto 0 0;padding:6px 8px;gap:5px;border-radius:12px}
.pick-info .stats div{grid-template-columns:32px 1fr;gap:6px}
.pick-info .stats dt{font-size:10px}
.pick-info .stats dd{height:8px}
.pick-hero{flex:1 1 auto;min-height:0;display:flex!important;flex-direction:column;margin:0 0 6px;grid-template-columns:none!important}
.pick-hero .preview{flex:1 1 auto;min-height:160px;height:auto;margin:0!important;display:flex;align-items:flex-end;justify-content:center}
.pick-hero .preview img{height:94%;max-height:min(360px,52vh);width:auto}
.pick-side .keys{display:none}
.diff-bar[hidden]{display:none!important}
body.fake-land.on-pick .pick-body,
body.land.on-pick .pick-body,
body.on-pick .pick-body{grid-template-columns:minmax(0,1.15fr) minmax(200px,30%)!important;gap:8px}
body.fake-land.on-pick .pick-select,
body.land.on-pick .pick-select,
body.on-pick .pick-select{grid-template-columns:minmax(0,1fr) minmax(132px,26%)!important}
body.fake-land.on-pick .pick-info .nameplate h2,
body.land.on-pick .pick-info .nameplate h2{font-size:13px}
body.fake-land.on-pick .pick-info .stats,
body.land.on-pick .pick-info .stats,
body.on-pick .pick-info .stats{display:grid!important}
body.fake-land.on-pick .pick-info .pick-wood,
body.land.on-pick .pick-info .pick-wood,
body.on-pick .pick-info .pick-wood{display:inline-block!important}
body.fake-land.on-pick .pick-hero .preview,
body.land.on-pick .pick-hero .preview{min-height:140px!important;margin:0!important}
body.fake-land.on-pick .pick-hero .preview img,
body.land.on-pick .pick-hero .preview img{max-height:min(280px,48vh)!important}
body.port-pad.on-pick .pick-info .stats{display:grid!important}
body.port-pad.on-pick .pick-info .pick-wood{display:inline-block!important}
@media (max-width:720px){
  .pick-select{grid-template-columns:minmax(0,1fr) minmax(120px,34%)!important}
  .pick-info .nameplate h2{font-size:13px}
}

/* —— 大厅大按钮 / 战力卡 v254 —— */
body.on-home .lobby-hero-acts,
body.fake-land.on-home .lobby-hero-acts,
body.land.on-home .lobby-hero-acts{
  grid-column:1/-1!important;display:flex!important;gap:10px!important;justify-content:center!important;
  width:100%!important;margin-top:6px!important}
body.on-home .lobby-dress,body.on-home .lobby-shop,
body.fake-land.on-home .lobby-dress,body.fake-land.on-home .lobby-shop,
body.fake-land.on-home .lobby-hero-acts .lobby-dress,
body.fake-land.on-home .lobby-hero-acts .lobby-shop,
body.land.on-home .lobby-dress,body.land.on-home .lobby-shop,
body.on-home #btn-dress,body.on-home #btn-shop2,
body.fake-land.on-home #btn-dress,body.fake-land.on-home #btn-shop2{
  flex:1 1 0!important;min-width:96px!important;max-width:160px!important;
  padding:12px 16px!important;font-size:16px!important;font-weight:900!important;line-height:1.1!important;
  border-width:3px!important;border-radius:16px!important;
  box-shadow:0 5px 0 #17102e!important;margin:0!important}
body.on-home .lobby-stage .lobby-power,body.fake-land.on-home .lobby-stage .lobby-power,body.land.on-home .lobby-stage .lobby-power,
body.on-home .lobby-stage #lobby-power{
  grid-column:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:2px!important;margin:0!important;padding:2px 7px!important;border-radius:999px!important;
  border:2px solid #17102e!important;background:linear-gradient(#ffe08a,#ff9a1f)!important;color:#3a2808!important;
  font-size:10px!important;font-weight:900!important;box-shadow:1px 1px 0 rgba(23,16,46,.55)!important;
  min-width:0!important;line-height:1.15!important}
body.on-home .lobby-stage .lobby-power::before{content:"⚔ ";font-size:9px}
body.on-home .lobby-stage .lobby-week-rank,
body.land.on-home .lobby-stage .lobby-week-rank,
body.fake-land.on-home .lobby-stage .lobby-week-rank{
  padding:2px 7px!important;font-size:10px!important;line-height:1.15!important;
  box-shadow:1px 1px 0 rgba(23,16,46,.5)!important}
body.on-home .lobby-stage > .lobby-power-row,
body.land.on-home .lobby-stage > .lobby-power-row,
body.fake-land.on-home .lobby-stage > .lobby-power-row{
  position:absolute!important;left:4px!important;right:4px!important;bottom:4px!important;
  margin:0!important;gap:3px!important;z-index:5!important}
body.on-home .lobby-stage-tip{font-size:11px!important;color:#ffef9a!important;font-weight:900!important}
body.on-home #lobby-hero-card,body.on-home .lobby-fighter:not(.lobby-foe){
  cursor:pointer!important;outline:3px solid transparent;transition:outline-color .12s}
body.on-home #lobby-hero-card:hover,body.on-home .lobby-fighter:not(.lobby-foe):hover{
  outline-color:rgba(255,224,102,.55)}
@media (max-height:480px){
  body.fake-land.on-home .lobby-dress,body.fake-land.on-home .lobby-shop,
  body.fake-land.on-home #btn-dress,body.fake-land.on-home #btn-shop2{
    padding:10px 12px!important;font-size:14px!important;min-width:84px!important}
}

/* —— 结算页重排：矮屏也要露出底部按钮 —— */
#screen-result{
  display:flex;align-items:stretch;justify-content:center;
  flex:1 1 auto;min-height:0;padding:6px 10px;overflow:auto;
  -webkit-overflow-scrolling:touch}
#screen-result .result-card{
  width:min(860px,100%);max-width:860px;max-height:100%;margin:auto;
  padding:12px 14px 10px;text-align:left;border-radius:18px;
  display:flex;flex-direction:column;gap:8px;min-height:0;overflow:hidden}
#screen-result .result-banner{
  position:static;display:inline-block;transform:none;left:auto;top:auto;margin:0;
  flex:0 0 auto;padding:4px 14px;border-radius:999px;letter-spacing:1px;font-size:12px}
#screen-result .result-main{
  flex:1 1 auto;min-height:0;overflow:auto;
  display:grid;grid-template-columns:minmax(120px,30%) minmax(0,1fr);gap:10px 14px;align-items:center;margin:0}
#screen-result .result-hero{
  width:100%;height:clamp(96px,28vh,200px);margin:0;min-height:0}
#screen-result .result-copy{min-width:0;display:flex;flex-direction:column;gap:5px}
#screen-result .result-card h1{
  margin:0;font-size:clamp(18px,3vw,28px);line-height:1.2;text-align:left}
#screen-result .result-card>p,
#screen-result .result-copy>p{margin:0;text-align:left;font-size:13px}
#screen-result .score{
  align-self:flex-start;margin:0;font-size:12px;padding:4px 10px}
#screen-result .result-vs{margin:2px 0;padding:6px 10px;justify-content:flex-start}
#screen-result .result-vs img{width:42px;height:42px}
#screen-result .result-stats{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:2px 0 0}
#screen-result .result-stats div{padding:8px 4px;border-radius:12px}
#screen-result .result-stats b{font-size:15px}
#screen-result blockquote{
  margin:4px 0 0;padding:8px 10px;font-size:12px;line-height:1.45}
#screen-result .result-mp{
  flex:0 0 auto;margin:0;padding:8px 10px;border-radius:12px}
#screen-result .result-btns{
  flex:0 0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  padding-top:2px;position:relative;z-index:2}
#screen-result .result-btns .big,
#screen-result .result-btns .result-cta-main,
#screen-result .result-btns #btn-rematch-ready{grid-column:1/-1;padding:11px 12px;font-size:15px}
#screen-result .result-btns .result-home{grid-column:auto;padding:10px 8px;font-size:13px;font-weight:800}
#screen-result .result-btns #btn-share,
#screen-result .result-btns #btn-change,
#screen-result .result-btns #btn-result-home{min-width:0}
body.on-result #app{
  display:flex!important;flex-direction:column!important;min-height:0!important;
  height:100%!important;overflow:hidden!important;padding:4px 6px!important}
body.on-result #screen-result{flex:1 1 auto;min-height:0}
body.fake-land.on-result #screen-result,
body.land.on-result #screen-result{padding:4px 6px;overflow:auto}
body.fake-land.on-result .result-card,
body.land.on-result .result-card{padding:8px 10px;max-width:min(920px,100%)}
body.fake-land.on-result .result-main,
body.land.on-result .result-main{grid-template-columns:minmax(96px,26%) minmax(0,1fr);gap:6px 10px;margin:0}
body.fake-land.on-result .result-hero,
body.land.on-result .result-hero{height:clamp(84px,34vh,150px);min-height:0}
body.fake-land.on-result .result-card h1,
body.land.on-result .result-card h1{font-size:17px}
body.fake-land.on-result .result-stats,
body.land.on-result .result-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
body.fake-land.on-result .result-btns,
body.land.on-result .result-btns{gap:6px}
body.port-pad.on-result .result-main{grid-template-columns:1fr;gap:6px}
body.port-pad.on-result .result-hero{height:clamp(100px,26vh,160px);margin:0 auto}
body.port-pad.on-result .result-card h1,
body.port-pad.on-result .result-copy>p,
body.port-pad.on-result .score{text-align:center;align-self:center}
body.port-pad.on-result .result-vs{justify-content:center}
body.port-pad.on-result .result-btns{grid-template-columns:repeat(3,minmax(0,1fr))}
/* 矮屏：压立绘/广告条，按钮始终在视口内 */
@media (max-height:520px){
  #screen-result .result-hero{height:clamp(72px,28vh,110px)}
  #screen-result .result-mp{display:none}
  #screen-result blockquote{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:2px 0 0;padding:6px 8px}
  #screen-result .result-stats div{padding:5px 2px}
  #screen-result .result-stats b{font-size:13px}
  #screen-result .result-btns .big,
  #screen-result .result-btns .result-cta-main,
  #screen-result .result-btns #btn-rematch-ready{padding:9px 10px;font-size:14px}
  #screen-result .result-btns .ghost,
  #screen-result .result-btns .primary,
  #screen-result .result-btns .result-home{padding:8px 6px;font-size:12px}
}
@media (max-height:400px){
  #screen-result .result-main{grid-template-columns:minmax(72px,22%) minmax(0,1fr);gap:4px 8px}
  #screen-result .result-hero{height:64px}
  #screen-result .result-hero-meta{display:none}
  #screen-result .result-burst{opacity:.35}
  #screen-result .result-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  #screen-result .result-btns{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
}
@media (max-width:520px){
  #screen-result .result-btns{grid-template-columns:1fr 1fr}
  #screen-result .result-btns .big,
  #screen-result .result-btns .result-cta-main,
  #screen-result .result-btns #btn-rematch-ready{grid-column:1/-1}
  #screen-result .result-btns #btn-result-home{grid-column:1/-1}
}

/* 操控透明度：左摇杆默认更透，可调 */
#screen-battle{--joy-op:.38;--pad-op:.78}
body.in-battle #screen-battle .joystick{opacity:var(--joy-op)!important}
body.in-battle #screen-battle .pad-act{opacity:var(--pad-op)!important}
body.in-battle #screen-battle .joystick:has(.joy-base.active),
body.in-battle #screen-battle .joystick:active{opacity:max(var(--joy-op), .72)!important}
body.in-battle #screen-battle .pad-act button.press,
body.in-battle #screen-battle .pad-act button:active{opacity:1}
body.in-battle #screen-battle .joy-base{
  background:radial-gradient(circle at 50% 40%,rgba(255,255,255,.08),rgba(10,18,30,.28) 72%)!important;
  border-color:rgba(160,200,255,.28)!important;
  box-shadow:inset 0 3px 10px rgba(0,0,0,.35)!important}
.layout-opacity{display:grid;gap:8px;margin:10px 0 0;padding:10px;border-radius:12px;
  border:2px solid rgba(255,224,102,.28);background:rgba(0,0,0,.18)}
.layout-opacity label{display:grid;grid-template-columns:1fr auto;gap:6px 10px;align-items:center;font-size:12px;font-weight:800}
.layout-opacity input[type=range]{grid-column:1/-1;width:100%}
.layout-opacity b{font-size:12px;color:var(--gold)}

/* —— 首页顶栏一行公告 + 横屏弹窗左Tab v257 —— */
#screen-home{display:flex;flex-direction:column;min-height:0;overflow:hidden}
#screen-home > .announce-rail{
  order:-1;flex:0 0 auto;display:flex!important;align-items:center;gap:8px;
  margin:0 0 8px;padding:5px 8px 5px 10px;min-height:34px;width:100%;
  border:3px solid #17102e;border-radius:12px;
  background:linear-gradient(90deg,#fff8d6,#ffe08a 60%,#ffd0a0);
  box-shadow:3px 3px 0 rgba(23,16,46,.65);cursor:pointer;box-sizing:border-box}
#screen-home > .announce-rail .announce-rail-tag{
  flex:none;font-size:11px;font-weight:900;color:#fff;background:#e11d48;
  border:2px solid #17102e;border-radius:999px;padding:2px 8px}
#screen-home > .announce-rail .announce-rail-track{
  flex:1 1 auto;min-width:0;overflow:hidden;position:relative;height:20px}
#screen-home > .announce-rail .announce-rail-track i{
  position:absolute;left:0;top:0;white-space:nowrap;font-style:normal;font-size:12px;font-weight:800;
  color:#17102e;line-height:20px;padding-left:100%;animation:announceMarquee 120s linear infinite}
#screen-home > .announce-rail .announce-rail-btn{
  flex:none;min-width:58px;padding:6px 12px;font-size:12px;font-weight:900;
  border:3px solid #17102e;border-radius:10px;background:linear-gradient(#54c4ff,#1f8fd4);
  color:#062038;box-shadow:0 3px 0 #17102e}
#screen-home > .lobby{flex:1 1 auto;min-height:0;overflow:hidden}
body.fake-land.on-home #screen-home > .announce-rail{margin:0 0 4px;padding:3px 6px;min-height:28px}
body.fake-land.on-home #screen-home > .announce-rail .announce-rail-track{height:16px}
body.fake-land.on-home #screen-home > .announce-rail .announce-rail-track i{font-size:11px;line-height:16px}
body.fake-land.on-home #screen-home > .announce-rail .announce-rail-btn{padding:4px 9px;font-size:11px;min-width:48px}
/* 旧顶条 S1 notice 横屏默认收，避免占高；公告条已承接 */
body.land.on-home .notice-bar,
body.fake-land.on-home .notice-bar{display:none!important}

/* 所有带 Tab 的弹窗：左 Tab / 右内容（横屏+假横屏硬规则） */
body.land .mask .panel.panel-side,
body.fake-land .mask .panel.panel-side,
body.land .mask .wide-panel.panel-side,
body.fake-land .mask .wide-panel.panel-side{
  width:min(920px,96vw)!important;
  max-height:min(94vh, calc(var(--fl-w, 100vh) - 12px))!important;
  height:auto;display:flex!important;flex-direction:column!important;
  overflow:hidden!important;padding:12px 14px 10px!important;box-sizing:border-box}
body.land .mask .panel.panel-side > h2,
body.fake-land .mask .panel.panel-side > h2,
body.land .mask .panel.panel-side > .shop-title-row,
body.fake-land .mask .panel.panel-side > .shop-title-row{margin:0 0 4px;flex:0 0 auto}
body.land .mask .panel.panel-side > .shop-title-row h2,
body.fake-land .mask .panel.panel-side > .shop-title-row h2{margin:0;font-size:16px}
body.land .mask .panel.panel-side > .panel-sub,
body.fake-land .mask .panel.panel-side > .panel-sub{
  margin:0 0 8px;font-size:11px;flex:0 0 auto;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.land .mask .side-split,
body.fake-land .mask .side-split,
body.land .mask .panel-side .side-split,
body.fake-land .mask .panel-side .side-split,
body.land .mask .season-side.side-split,
body.fake-land .mask .season-side.side-split{
  display:grid!important;grid-template-columns:120px minmax(0,1fr)!important;
  gap:10px!important;align-items:stretch!important;
  flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;margin:0!important}
body.land .mask .side-tabs,
body.fake-land .mask .side-tabs,
body.land .mask .side-tabs.dress-tabs,
body.fake-land .mask .side-tabs.dress-tabs,
body.land .mask .side-tabs.hist-tabs,
body.fake-land .mask .side-tabs.hist-tabs{
  display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;
  align-content:start!important;gap:5px!important;padding:6px!important;
  overflow:auto!important;height:100%!important;max-height:none!important;
  margin:0!important;border-radius:12px}
body.land .mask .side-tabs button,
body.fake-land .mask .side-tabs button{
  width:100%!important;flex:none!important;text-align:left!important;
  padding:8px 9px!important;font-size:12px!important;border-radius:10px!important;white-space:normal}
body.land .mask .side-pane,
body.fake-land .mask .side-pane{
  min-height:0!important;max-height:none!important;overflow:auto!important;-webkit-overflow-scrolling:touch}
body.land .mask .panel-side .panel-foot,
body.fake-land .mask .panel-side .panel-foot{flex:0 0 auto!important;margin-top:8px!important}

/* 装扮/商城右侧：预览舞台 + 可选网格 */
body.land #panel-dress .dress-layout,
body.fake-land #panel-dress .dress-layout,
body.land #panel-shop .dress-layout,
body.fake-land #panel-shop .dress-layout{
  display:grid!important;grid-template-columns:minmax(210px,.9fr) minmax(0,1.35fr)!important;
  gap:10px!important;min-height:0!important;height:100%;overflow:hidden!important}
body.land #panel-dress .fx-preview,
body.fake-land #panel-dress .fx-preview,
body.land #panel-shop .fx-preview,
body.fake-land #panel-shop .fx-preview{max-height:none!important;min-height:0!important;height:100%;overflow:hidden}
body.land #panel-dress .dress-grid,
body.fake-land #panel-dress .dress-grid,
body.land #panel-shop .dress-grid,
body.fake-land #panel-shop .dress-grid{min-height:0;overflow:auto}

/* 赛季：左摘要 / 右天梯列表 */
body.land #panel-season .season-box,
body.fake-land #panel-season .season-box{
  overflow:auto;min-height:0;padding:8px;border-radius:12px;border:2px solid rgba(255,255,255,.12)}
body.land #panel-season .season-ladder,
body.fake-land #panel-season .season-ladder{min-height:0;overflow:hidden;display:flex;flex-direction:column}
body.land #panel-season .ladder-list,
body.fake-land #panel-season .ladder-list{flex:1;min-height:0;overflow:auto;max-height:none!important}

/* 怎么打：左目录右正文 */
body.land #panel-guide .guide-split,
body.fake-land #panel-guide .guide-split{
  display:grid!important;grid-template-columns:118px minmax(0,1fr)!important;
  gap:10px;flex:1;min-height:0;overflow:hidden}
body.land #panel-guide .guide-tabs,
body.fake-land #panel-guide .guide-tabs{
  display:flex;flex-direction:column;gap:5px;overflow:auto;padding:6px;border-radius:12px;
  background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.1)}
body.land #panel-guide .guide-tabs button,
body.fake-land #panel-guide .guide-tabs button{
  width:100%;text-align:left;padding:8px 9px;font-size:12px;font-weight:900;border-radius:10px;
  border:2px solid rgba(255,255,255,.28);background:rgba(255,255,255,.06);color:var(--muted)}
body.land #panel-guide .guide-tabs button.on,
body.fake-land #panel-guide .guide-tabs button.on{
  border-color:var(--btn-edge);color:var(--btn-ink);
  background:linear-gradient(var(--btn-gold-a),var(--btn-gold-b))}
body.land #panel-guide .guide-pane,
body.fake-land #panel-guide .guide-pane{min-height:0;overflow:auto;padding:4px 2px}
body.land #panel-guide .guide-pane section,
body.fake-land #panel-guide .guide-pane section{margin:0 0 8px}
body.land #panel-guide .guide-grid,
body.fake-land #panel-guide .guide-grid{flex:1 1 auto;min-height:0;overflow:hidden;display:flex;flex-direction:column}
body.land #panel-guide .guide-grid > .guide-split,
body.fake-land #panel-guide .guide-grid > .guide-split{flex:1;min-height:0}
body.land #panel-guide .guide-grid,
body.fake-land #panel-guide .guide-grid{flex:1 1 auto;min-height:0;overflow:hidden;display:flex;flex-direction:column}
body.land #panel-guide .guide-grid > .guide-split,
body.fake-land #panel-guide .guide-grid > .guide-split{flex:1;min-height:0}
body.land #panel-guide.panel,
body.fake-land #panel-guide .panel,
body.land #panel-guide .wide-panel,
body.fake-land #panel-guide .wide-panel{
  width:min(900px,96vw);max-height:min(94vh,calc(var(--fl-w,100vh) - 12px));
  display:flex;flex-direction:column;overflow:hidden}

/* 排行榜/排位页：继续压高度，列表内部滚 */
body.land.on-board .board-hall,
body.fake-land.on-board .board-hall{
  display:grid!important;grid-template-columns:118px minmax(0,1fr)!important;
  grid-template-rows:auto auto minmax(0,1fr)!important;gap:8px!important;
  height:100%;min-height:0;overflow:hidden}
body.land.on-board .board-nav,
body.fake-land.on-board .board-nav{
  flex-direction:column!important;flex-wrap:nowrap!important;overflow:auto!important;height:100%}
body.land.on-board .board-list,
body.fake-land.on-board .board-list{min-height:0!important;max-height:none!important;overflow:auto!important}

body.land.on-rank .rank-hall,
body.fake-land.on-rank .rank-hall{
  display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;gap:8px 10px!important;
  min-height:0;height:100%;overflow:hidden;padding:8px!important}
body.land.on-rank .rank-nav,
body.fake-land.on-rank .rank-nav{flex-direction:column!important;width:auto!important;overflow:auto}
body.land.on-rank .rank-main,
body.fake-land.on-rank .rank-main{min-height:0;overflow:auto}

/* 键位面板横屏压高 */
body.land #panel-layout .wide-panel,
body.fake-land #panel-layout .wide-panel,
body.land #panel-layout .panel,
body.fake-land #panel-layout .panel{
  width:min(860px,96vw);max-height:min(94vh,calc(var(--fl-w,100vh) - 12px));
  display:flex;flex-direction:column;overflow:hidden}
body.land #panel-layout .layout-editor,
body.fake-land #panel-layout .layout-editor{flex:1;min-height:0;overflow:auto;grid-template-columns:1fr 200px}

/* 公告列表更紧凑 */
#panel-announce .announce-item{padding:8px 10px}
#panel-announce .announce-item b{font-size:13px;margin:0 0 3px}
#panel-announce .announce-item p{font-size:12px;line-height:1.4}
#btn-announce-continue{min-width:110px;padding:9px 16px;font-size:14px;font-weight:900}

/* —— 品牌 Logo v258 —— */
.brand{
  position:relative;display:inline-flex!important;align-items:center;gap:8px;
  padding:4px 12px 4px 4px!important;margin:0 10px 0 0;border-radius:14px!important;
  border:3px solid #17102e!important;background:linear-gradient(135deg,#fff9ea 0%,#ffe08a 48%,#ffb84a 100%)!important;
  box-shadow:4px 4px 0 #17102e, inset 0 1px 0 rgba(255,255,255,.55)!important;
  transform:rotate(-1.2deg);color:#17102e!important;text-shadow:none!important;
  font-size:inherit;font-weight:900;letter-spacing:0;line-height:1;overflow:visible}
.brand-mark{
  flex:none;width:34px;height:34px;border-radius:11px;border:2.5px solid #17102e;
  background:radial-gradient(circle at 30% 25%,#fff,#ff6b8a 55%,#c41e5a);
  display:flex;align-items:center;justify-content:center;
  box-shadow:2px 2px 0 rgba(23,16,46,.55), inset 0 -3px 0 rgba(23,16,46,.12);
  position:relative;overflow:hidden}
.brand-mark::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.2px);
  background-size:5px 5px;opacity:.55}
.brand-mark-img{
  position:relative;z-index:1;width:22px;height:22px;object-fit:contain;
  filter:drop-shadow(1px 1px 0 #17102e);transform:rotate(-12deg)}
/* 文字品牌保留；左侧木头图换成正式圆形 logo */
.brand.has-logo{gap:8px!important}
.brand-mark-logo{
  width:34px;height:34px;border-radius:50%;overflow:hidden;
  background:#17102e;border:2.5px solid #17102e;
  box-shadow:2px 2px 0 rgba(23,16,46,.55)}
.brand-mark-logo::after{display:none}
.brand-mark-logo .brand-mark-img{
  width:100%;height:100%;object-fit:cover;transform:none;
  filter:none}
.brand-text{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-width:0;padding-right:2px}
.brand-cn{
  display:block;font-size:16px;font-weight:900;letter-spacing:1.5px;line-height:1.05;
  color:#17102e!important;text-shadow:1px 1px 0 rgba(255,255,255,.55)!important}
.brand-en{
  display:block;font-style:normal;font-size:8px;font-weight:900;letter-spacing:.18em;
  color:#7a3a00;opacity:.9;line-height:1;transform:translateY(-1px)}
.brand-badge{
  position:absolute!important;top:-9px!important;right:-12px!important;z-index:4;pointer-events:none;
  font-size:9px!important;font-weight:900;line-height:1;letter-spacing:.04em;
  padding:4px 7px!important;border-radius:999px!important;border:2.5px solid #17102e!important;
  color:#fff!important;background:linear-gradient(135deg,#ff2d6f,#ff6b8a)!important;
  box-shadow:2px 2px 0 #17102e!important;transform:rotate(12deg);
  animation:brand-badge-pop 2.8s ease-in-out infinite}
@keyframes brand-badge-pop{
  0%,100%{transform:rotate(12deg) scale(1)}
  50%{transform:rotate(16deg) scale(1.06)}
}
body.on-home .brand{
  background:linear-gradient(135deg,#fff9ea 0%,#ffe08a 48%,#ffb84a 100%)!important;
  color:#17102e!important;border:3px solid #17102e!important;
  box-shadow:4px 4px 0 #17102e!important;text-shadow:none!important;padding:4px 12px 4px 4px!important}
body.fake-land .brand,body.fake-land.on-home .brand{
  gap:6px;padding:3px 9px 3px 3px!important;border-radius:12px!important;margin-right:8px}
body.fake-land .brand-mark,body.fake-land.on-home .brand-mark{width:26px;height:26px;border-radius:9px}
body.fake-land .brand-mark-img,body.fake-land.on-home .brand-mark-img{width:16px;height:16px}
body.fake-land .brand-mark-logo,body.fake-land.on-home .brand-mark-logo{width:26px;height:26px;border-radius:50%}
body.fake-land .brand-mark-logo .brand-mark-img,body.fake-land.on-home .brand-mark-logo .brand-mark-img{width:100%;height:100%}
body.fake-land .brand-cn,body.fake-land.on-home .brand-cn{font-size:12px;letter-spacing:1px}
body.fake-land .brand-en,body.fake-land.on-home .brand-en{font-size:7px;letter-spacing:.12em}
body.fake-land .brand-badge,body.fake-land.on-home .brand-badge{
  top:-7px!important;right:-10px!important;font-size:8px!important;padding:3px 5px!important}
@media (max-width:720px){
  .brand{gap:6px;padding:3px 9px 3px 3px!important}
  .brand-mark{width:28px;height:28px}
  .brand-mark-img{width:17px;height:17px}
  .brand-mark-logo{width:28px;height:28px}
  .brand-mark-logo .brand-mark-img{width:100%;height:100%}
  .brand-cn{font-size:13px;letter-spacing:1px}
  .brand-en{font-size:7px}
}

/* —— 对手立绘溢出框外 v259 —— */
body.on-home .lobby,
body.fake-land.on-home .lobby{overflow:visible!important}
body.on-home .lobby-arena,
body.fake-land.on-home .lobby-arena{overflow:visible!important}
body.on-home .lobby-foe,
body.fake-land.on-home .lobby-foe{
  overflow:visible!important;position:relative;z-index:4}
body.on-home .lobby-stage-foe,
body.fake-land.on-home .lobby-stage-foe,
body.on-home .lobby-foe .lobby-stage-foe,
body.fake-land.on-home .lobby-foe .lobby-stage-foe{
  overflow:visible!important;position:relative;z-index:2;
  background:radial-gradient(rgba(23,16,46,.1) 1.2px,transparent 1.3px) 0 0/7px 7px,
    linear-gradient(180deg,#ffe3ec,#ff8fb0)!important}
body.on-home .lobby-stage-foe img,
body.fake-land.on-home .lobby-stage-foe img,
body.on-home #lobby-foe-img,
body.fake-land.on-home #lobby-foe-img{
  position:absolute!important;left:50%!important;bottom:-18%!important;
  height:158%!important;width:auto!important;max-width:none!important;
  z-index:3!important;pointer-events:none;
  filter:drop-shadow(2px 3px 0 rgba(23,16,46,.55)) drop-shadow(0 6px 10px rgba(0,0,0,.25))!important;
  transform:translateX(-50%) scaleX(-1)!important;
  animation:lobbyFoePop 2.8s ease-in-out infinite!important}
@keyframes lobbyFoePop{
  0%,100%{transform:translateX(-50%) scaleX(-1) translateY(0) rotate(-2deg)}
  50%{transform:translateX(-50%) scaleX(-1) translateY(-6px) rotate(2deg)}
}
/* 横条对手卡：框小，立绘大幅探出 */
body.on-home .lobby-foe .lobby-stage-foe,
body.fake-land.on-home .lobby-foe .lobby-stage-foe{
  width:56px!important;height:42px!important;flex:none;margin:0!important}
body.on-home .lobby-foe .lobby-stage-foe img,
body.fake-land.on-home .lobby-foe .lobby-stage-foe img,
body.on-home .lobby-foe #lobby-foe-img,
body.fake-land.on-home .lobby-foe #lobby-foe-img{
  height:86px!important;bottom:-22px!important;left:42%!important}
body.fake-land.on-home .lobby-foe .lobby-stage-foe{width:48px!important;height:34px!important}
body.fake-land.on-home .lobby-foe .lobby-stage-foe img,
body.fake-land.on-home .lobby-foe #lobby-foe-img{height:68px!important;bottom:-18px!important}
@media (prefers-reduced-motion:reduce){
  body.on-home .lobby-stage-foe img,body.fake-land.on-home .lobby-stage-foe img,
  body.on-home #lobby-foe-img,body.fake-land.on-home #lobby-foe-img{animation:none!important}
}

/* —— 结算页样式校正 v260 —— */
body.on-result #screen-result{
  display:flex!important;align-items:center;justify-content:center;
  padding:8px 12px;overflow:auto;min-height:0;flex:1}
body.on-result .result-card{
  width:min(860px,100%)!important;max-width:860px!important;margin:0 auto!important;
  padding:14px 16px 12px!important;text-align:left!important;border-radius:18px!important;
  border:4px solid #17102e!important;color:#17102e!important;
  background:linear-gradient(180deg,#fff9ea,#ffe8a8 42%,#fff)!important;
  box-shadow:7px 7px 0 rgba(23,16,46,.82)!important;overflow:hidden}
body.on-result .result-card.lose{
  background:linear-gradient(180deg,#fff0f4,#ffc0d2 42%,#fff)!important;
  border-color:#17102e!important;box-shadow:7px 7px 0 #ff2d6f!important}
body.on-result .result-card.win{
  background:linear-gradient(180deg,#fff9ea,#ffe08a 42%,#fff)!important;
  box-shadow:7px 7px 0 #ffcf4a!important}
body.on-result .result-banner{
  position:static!important;display:inline-block!important;transform:none!important;
  left:auto!important;top:auto!important;margin:0 0 8px!important;
  padding:5px 14px!important;border-radius:999px!important;border:3px solid #17102e!important;
  font-size:12px!important;font-weight:900!important;letter-spacing:1px;
  background:linear-gradient(#ffe08a,#ffb020)!important;color:#17102e!important;
  box-shadow:2px 2px 0 #17102e!important}
body.on-result .result-card.lose .result-banner{
  background:linear-gradient(#ff8fb0,#ff2d6f)!important;color:#fff!important}
body.on-result .result-main{
  display:grid!important;grid-template-columns:minmax(130px,30%) minmax(0,1fr)!important;
  gap:12px 14px!important;align-items:center!important;margin:0 0 10px!important}
body.on-result .result-hero{
  width:100%!important;height:min(220px,40vh)!important;min-height:120px!important;margin:0!important}
body.on-result .result-hero-meta b{
  background:#17102e!important;color:#ffe08a!important;border:2px solid #17102e!important}
body.on-result .result-hero-meta span{
  background:linear-gradient(#b8ecff,#54c4ff)!important;color:#0c2a44!important;
  border:2px solid #17102e!important;box-shadow:2px 2px 0 rgba(23,16,46,.55)!important}
body.on-result .result-copy{min-width:0;display:flex;flex-direction:column;gap:6px}
body.on-result .result-card h1,
body.on-result .result-copy h1{
  margin:0!important;color:#17102e!important;text-align:left!important;
  font-size:clamp(20px,3vw,28px)!important;line-height:1.2!important;
  text-shadow:2px 2px 0 #ffe08a!important;-webkit-text-stroke:0!important}
body.on-result .result-card.lose h1,
body.on-result .result-card.lose .result-copy h1{
  color:#9a1040!important;text-shadow:2px 2px 0 #ffb0c2!important}
body.on-result .result-copy>p,
body.on-result #result-desc{
  margin:0!important;color:#3a4050!important;font-size:13px!important;font-weight:800!important;
  text-align:left!important}
body.on-result .score,
body.on-result #result-score{
  align-self:flex-start!important;margin:0!important;padding:5px 12px!important;
  border-radius:999px!important;border:3px solid #17102e!important;
  background:#fff!important;color:#17102e!important;font-size:12px!important;font-weight:900!important;
  box-shadow:2px 2px 0 rgba(23,16,46,.55)!important}
body.on-result .result-card.lose .score{background:#fff!important;color:#9a1040!important}
body.on-result .result-stats{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:6px!important;margin:2px 0 0!important}
body.on-result .result-stats div{
  background:#fff!important;border:3px solid #17102e!important;border-radius:12px!important;
  padding:8px 4px!important;box-shadow:3px 3px 0 rgba(23,16,46,.55)!important;text-align:center}
body.on-result .result-stats b{
  display:block;font-size:16px!important;color:#17102e!important;text-shadow:none!important}
body.on-result .result-card.win .result-stats b{color:#7a3a00!important}
body.on-result .result-card.lose .result-stats b{color:#9a1040!important}
body.on-result .result-stats span{
  font-size:10px!important;font-weight:900!important;color:#5a6478!important}
body.on-result blockquote,
body.on-result #result-quote{
  margin:4px 0 0!important;padding:8px 10px!important;border-radius:12px!important;
  border:3px solid #17102e!important;background:#fff!important;color:#17102e!important;
  font-size:12px!important;font-weight:800!important;line-height:1.45!important;
  box-shadow:3px 3px 0 rgba(23,16,46,.45)!important;text-align:left!important}
body.on-result .result-mp{
  display:flex!important;align-items:center;justify-content:space-between;gap:10px;
  margin:0 0 10px!important;padding:8px 10px!important;border-radius:12px!important;
  border:3px solid #17102e!important;background:linear-gradient(90deg,#fff6e2,#ffe08a)!important;
  color:#17102e!important;font-size:12px!important;font-weight:800!important;
  box-shadow:3px 3px 0 rgba(23,16,46,.55)!important}
body.on-result .result-mp b{color:#9a1040!important}
body.on-result .result-mp .primary,
body.on-result #btn-mp2{
  background:linear-gradient(#54c4ff,#1f8fd4)!important;color:#fff!important;
  border:3px solid #17102e!important;border-radius:10px!important;
  box-shadow:2px 2px 0 #17102e!important;padding:7px 12px!important;font-weight:900!important}
body.on-result .result-btns{
  display:grid!important;grid-template-columns:1fr 1fr!important;
  gap:8px!important;align-items:stretch!important}
body.on-result .result-btns .big,
body.on-result .result-btns .result-cta-main,
body.on-result .result-btns #btn-again,
body.on-result .result-btns #btn-rematch-ready{
  grid-column:1 / -1!important;width:100%!important;padding:12px 14px!important;font-size:16px!important;
  border:4px solid #17102e!important;border-radius:14px!important;
  background:linear-gradient(#ffef3a,#ffb800)!important;color:#17102e!important;
  box-shadow:4px 4px 0 #17102e!important;font-weight:900!important}
body.on-result .result-btns .result-home,
body.on-result .result-btns #btn-result-home{
  grid-column:auto!important;width:100%!important;padding:10px 8px!important;font-size:13px!important;
  background:#fff!important;color:#17102e!important;border:3px solid #17102e!important;
  border-radius:12px!important;box-shadow:3px 3px 0 #17102e!important;font-weight:900!important}
body.on-result .result-btns .ghost,
body.on-result .result-btns .primary,
body.on-result #btn-share,
body.on-result #btn-change,
body.on-result #btn-invite-again{
  width:100%!important;padding:10px 8px!important;font-size:13px!important;font-weight:900!important;
  border:3px solid #17102e!important;border-radius:12px!important;
  box-shadow:3px 3px 0 #17102e!important;grid-column:auto!important;
  background:#fff!important;color:#17102e!important}
body.on-result #btn-share,
body.on-result .result-btns #btn-share{
  background:linear-gradient(#54c4ff,#1f8fd4)!important;color:#fff!important}
body.on-result #btn-change,
body.on-result #btn-invite-again{
  background:#fff!important;color:#17102e!important}
body.on-result .result-vs{
  margin:2px 0!important;padding:6px 10px!important;border:3px solid #17102e!important;
  border-radius:14px!important;background:#fff!important;box-shadow:2px 2px 0 rgba(23,16,46,.45)!important}
body.fake-land.on-result .result-card,
body.land.on-result .result-card{padding:10px 12px!important;max-width:min(920px,98%)!important}
body.fake-land.on-result .result-main,
body.land.on-result .result-main{
  grid-template-columns:minmax(100px,26%) minmax(0,1fr)!important;gap:8px 10px!important}
body.fake-land.on-result .result-hero,
body.land.on-result .result-hero{height:min(150px,46vh)!important;min-height:96px!important}
body.fake-land.on-result .result-card h1,
body.land.on-result .result-card h1{font-size:18px!important}
body.fake-land.on-result .result-btns,
body.land.on-result .result-btns{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
body.fake-land.on-result .result-btns .big,
body.land.on-result .result-btns .big,
body.fake-land.on-result .result-btns .result-cta-main,
body.land.on-result .result-btns .result-cta-main,
body.fake-land.on-result .result-btns #btn-again,
body.land.on-result .result-btns #btn-again,
body.fake-land.on-result .result-btns #btn-rematch-ready,
body.land.on-result .result-btns #btn-rematch-ready{
  grid-column:1 / -1!important;padding:10px!important;font-size:14px!important}
body.fake-land.on-result .result-btns .result-home,
body.land.on-result .result-btns .result-home,
body.fake-land.on-result .result-btns #btn-result-home,
body.land.on-result .result-btns #btn-result-home{
  grid-column:auto!important;padding:10px 6px!important;font-size:13px!important}
body.fake-land.on-result .result-mp,
body.land.on-result .result-mp{display:flex!important}
body.fake-land.on-result #result-quote,
body.land.on-result #result-quote{display:block!important}
body.port-pad.on-result .result-main{grid-template-columns:1fr!important}
body.port-pad.on-result .result-card h1,
body.port-pad.on-result .result-copy>p,
body.port-pad.on-result .score{text-align:center!important;align-self:center!important}
body.port-pad.on-result .result-btns{grid-template-columns:repeat(3,minmax(0,1fr))!important}

/* —— 场景PK v262 —— */
#mode-row button[data-m="scene"]{
  background:linear-gradient(#b8f0ff,#3db7ff)!important;color:#0c2a44!important;
  border:3px solid #17102e!important;box-shadow:3px 3px 0 #17102e!important;font-weight:900!important}
#mode-row button[data-m="scene"].on{
  background:linear-gradient(#ffe08a,#54c4ff)!important;transform:translateY(1px);
  box-shadow:1px 1px 0 #17102e!important}
#screen-scene{display:flex;flex-direction:column;min-height:0;flex:1;padding:6px 10px;overflow:hidden}
.scene-hall{flex:1;min-height:0;display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(250px,.78fr);
  grid-template-rows:auto minmax(0,1fr);gap:6px 10px;padding:8px 12px;border-radius:18px;
  border:3px solid #17102e;background:linear-gradient(145deg,#fff9ea 0%,#dff9ff 48%,#ffe08a 100%);
  box-shadow:5px 5px 0 rgba(23,16,46,.75);overflow:hidden}
.scene-head{grid-column:1;grid-row:1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  min-width:0;width:100%;align-self:center}
.scene-head h1{margin:0;font-size:18px;font-weight:900;color:#17102e;text-shadow:2px 2px 0 #fff}
.scene-chips{display:inline-flex;flex-wrap:wrap;gap:4px;margin-left:auto}
.scene-chips i{font-style:normal;font-size:10px;font-weight:900;padding:2px 7px;border-radius:999px;
  border:2px solid #17102e;background:#fff;color:#3a4050;box-shadow:1px 1px 0 rgba(23,16,46,.45)}
.scene-meta{margin-left:0;font-size:12px;font-weight:900;padding:3px 10px;border-radius:999px;
  border:2px solid #17102e;background:#54c4ff;color:#fff;box-shadow:2px 2px 0 #17102e}
.scene-body{display:contents}
.scene-map{grid-column:1;grid-row:2;min-height:0}
.scene-controls{grid-column:2;grid-row:1 / -1;align-self:stretch;min-height:0;width:100%;height:100%;
  overflow:auto;display:flex;flex-direction:column;gap:6px;padding:8px;border:3px solid #17102e;
  border-radius:16px;background:#fff;box-shadow:4px 4px 0 rgba(23,16,46,.6)}
.scene-picked{padding:8px 10px;border-radius:12px;border:2px solid #17102e;
  background:linear-gradient(135deg,#fff6d0,#b8ecff);color:#17102e}
.scene-picked .scene-no{display:inline-block;font-size:11px;font-weight:900;opacity:.7;margin-bottom:2px}
.scene-picked b{display:block;font-size:18px;font-weight:900;letter-spacing:.03em;line-height:1.15}
.scene-picked small{display:block;margin-top:4px;font-size:12px;font-weight:800;color:#4a5568;line-height:1.35}
.scene-picked em{display:inline-block;margin-top:6px;font-style:normal;font-size:11px;font-weight:900;
  padding:2px 8px;border-radius:999px;border:2px solid #17102e;background:#54c4ff;color:#fff}
.scene-card .scene-prev i{position:absolute;height:5px;background:#ffe08a;border-radius:2px;box-shadow:0 0 0 1px #17102e}
.scene-hero{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:14px;border:3px solid #17102e;
  background:#fff;box-shadow:3px 3px 0 rgba(23,16,46,.55)}
.scene-hero img{height:48px;width:48px;object-fit:cover;border-radius:50%;border:2px solid #17102e;background:#dff9ff}
.scene-hero-id{flex:1;min-width:0}
.scene-hero-id b{display:block;font-size:14px;color:#17102e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scene-hero-id span{display:inline-block;margin-top:2px;font-size:11px;font-weight:900;color:#7a3a00;
  padding:1px 7px;border-radius:999px;border:2px solid #17102e;background:linear-gradient(#ffe08a,#ffb020)}
.scene-hero #btn-scene-switch{flex:0 0 auto;padding:6px 10px;font-size:12px;font-weight:900;
  border:2px solid #17102e;border-radius:10px;box-shadow:2px 2px 0 #17102e}
.scene-diff{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 8px;border-radius:12px;
  border:2px solid #17102e;background:rgba(255,255,255,.72)}
.scene-diff .diff-label{font-size:11px;font-weight:900;color:#3a4050;white-space:nowrap}
.scene-diff .diff-row{display:flex;gap:4px;flex:1;min-width:0}
.scene-diff .diff-row button{flex:1;min-width:0;padding:6px 4px;font-size:12px;font-weight:900;
  border:2px solid #17102e;border-radius:10px;background:#fff;color:#17102e;box-shadow:2px 2px 0 rgba(23,16,46,.45)}
.scene-diff .diff-row button.on{background:linear-gradient(#ffe08a,#ffb800);box-shadow:0 2px 0 #17102e;transform:translateY(1px)}
.scene-acts{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:auto}
.scene-acts .ghost,.scene-acts .primary{padding:9px 10px;font-size:13px;font-weight:900;
  border:3px solid #17102e;border-radius:12px;box-shadow:3px 3px 0 #17102e}
.scene-acts .primary{grid-column:1/-1;background:linear-gradient(#7dffb2,#2f9e6a)!important;color:#fff!important}
.scene-foot-hint{margin:0;font-size:11px;font-weight:800;color:#3a4050;line-height:1.35}
.scene-map{overflow:auto;display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:minmax(120px,1fr);
  gap:8px;padding:2px;align-content:stretch}
.scene-card{position:relative;display:flex;flex-direction:column;border:3px solid #17102e;border-radius:14px;
  padding:0;text-align:left;background:#fff;box-shadow:3px 3px 0 rgba(23,16,46,.7);cursor:pointer;
  font-weight:900;color:#17102e;overflow:hidden;min-height:0}
.scene-card .scene-prev{display:block;position:relative;flex:0 0 58px;margin:0;border:0;border-bottom:2px solid #17102e;
  border-radius:0;background:linear-gradient(180deg,#2a1848,#6a4a9a 55%,#1a1030);overflow:hidden}
.scene-card.motif-fair .scene-prev{background:linear-gradient(180deg,#12082a,#5a1860 50%,#2a1030)}
.scene-card.motif-site .scene-prev{background:linear-gradient(180deg,#243040,#708090 50%,#1e2830)}
.scene-card.motif-sub .scene-prev{background:linear-gradient(180deg,#0c1420,#1a4058 50%,#0c141c)}
.scene-card-body{display:block;padding:7px 9px 9px;min-width:0}
.scene-card .scene-no{display:block;font-size:10px;opacity:.65;margin-bottom:1px;letter-spacing:.08em}
.scene-card b{display:block;font-size:14px;margin:0 0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scene-card small{display:block;font-size:10px;font-weight:800;color:#4a5568;line-height:1.3;
  max-height:2.6em;overflow:hidden}
.scene-card em{display:block;margin-top:4px;font-style:normal;font-size:10px;font-weight:900;color:#1f8fd4}
.scene-card .scene-go{
  position:absolute;right:6px;top:6px;z-index:2;font-size:10px;font-weight:900;padding:2px 7px;
  border-radius:999px;border:2px solid #17102e;background:rgba(255,255,255,.92);color:#17102e;
  box-shadow:2px 2px 0 #17102e;opacity:.75}
.scene-card.on{background:linear-gradient(#fff6d0,#b8ecff);outline:3px solid #17102e;outline-offset:0;
  box-shadow:4px 4px 0 #17102e}
.scene-card.on .scene-go{opacity:1;background:linear-gradient(#7dffb2,#2f9e6a);color:#fff}
.scene-card:active{transform:translateY(1px)}
.scene-tip{display:none}
.scene-foot{display:none}
body.on-scene #screen-scene{display:flex}
body.fake-land.on-scene .scene-hall,body.land.on-scene .scene-hall{padding:6px 8px;gap:4px 8px}
body.fake-land.on-scene .scene-controls,body.land.on-scene .scene-controls{padding:7px;gap:5px}
body.fake-land.on-scene .scene-hero img,body.land.on-scene .scene-hero img{height:40px;width:40px}
body.fake-land.on-scene .scene-picked b,body.land.on-scene .scene-picked b{font-size:16px}
body.fake-land.on-scene .scene-card .scene-prev,body.land.on-scene .scene-card .scene-prev{flex-basis:52px}
body.port-pad.on-scene .scene-hall{
  grid-template-columns:1fr;grid-template-rows:auto minmax(0,1.2fr) auto;gap:6px}
body.port-pad.on-scene .scene-head{grid-column:1;grid-row:1}
body.port-pad.on-scene .scene-chips{display:none}
body.port-pad.on-scene .scene-map{grid-column:1;grid-row:2;grid-template-columns:1fr 1fr}
body.port-pad.on-scene .scene-controls{grid-column:1;grid-row:3;height:auto}
@media (max-width:820px){
  .scene-hall{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1.15fr) auto;gap:6px}
  .scene-head{grid-column:1;grid-row:1}
  .scene-chips{display:none}
  .scene-map{grid-column:1;grid-row:2}
  .scene-controls{grid-column:1;grid-row:3;height:auto}
}
body.in-battle .hud .mode-tag,body.in-battle #modetag{
  border:2px solid #17102e!important;box-shadow:2px 2px 0 rgba(23,16,46,.55)}

/* —— 选角侧栏排版 v294 —— */
.pick-side{padding-top:14px!important}
.pick-side::before{top:-9px!important}
.pick-hero{
  display:flex!important;flex-direction:column!important;
  flex:1 1 auto!important;min-height:0!important;
  grid-template-columns:none!important;gap:0!important;margin:0 0 8px!important}
.pick-info{
  gap:5px!important;padding:8px!important;height:100%!important;box-sizing:border-box!important}
.pick-info .nameplate{padding:7px 8px 5px!important;margin:0!important}
.pick-info .nameplate h2{font-size:15px!important;margin:0 0 2px!important}
.pick-info .nameplate .tag{font-size:10px!important;line-height:1.25!important}
.pick-info .style-line{gap:4px!important;margin:0!important}
.pick-info .style-line span,.pick-info .style-line em{padding:2px 7px!important;font-size:10px!important}
.pick-info .pick-wood{padding:3px 8px!important;font-size:10px!important;margin:0!important;display:inline-block!important}
.pick-info .stats{padding:5px 7px!important;gap:4px!important;margin:auto 0 0!important;display:grid!important}
.pick-info .stats div{grid-template-columns:30px 1fr!important;gap:5px!important}
.pick-info .stats dt{font-size:10px!important}
.pick-info .stats dd{height:7px!important}
.pick-hero .preview{
  flex:1 1 auto!important;min-height:160px!important;height:auto!important;margin:0!important;
  border-radius:14px!important;border:3px solid #17102e!important;
  box-shadow:3px 3px 0 rgba(23,16,46,.55)!important}
.pick-hero .preview img{height:96%!important;max-height:min(360px,52vh)!important;width:auto!important}

.diff-bar{
  display:flex!important;align-items:center!important;gap:6px!important;
  margin:0 0 8px!important;min-width:0;flex:0 0 auto}
.diff-bar[hidden]{display:none!important}
.diff-bar .diff-label,
#diff-bar #diff-label{
  flex:0 0 auto!important;margin:0!important;padding:4px 8px!important;
  font-size:10px!important;white-space:nowrap;line-height:1.1}
.diff-bar .diff-row,
#diff-bar #diff-row{
  flex:1 1 auto!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:4px!important;margin:0!important;min-width:0}
.diff-bar .diff-row button{
  padding:6px 2px!important;font-size:11px!important;border-radius:10px!important;
  border:2px solid #17102e!important;box-shadow:2px 2px 0 rgba(23,16,46,.55)!important}

.pick-acts{
  display:flex!important;align-items:stretch!important;gap:8px!important;
  margin:0 0 6px!important;flex:0 0 auto;width:100%}
.pick-acts #btn-start,
.pick-acts .pick-start{
  flex:1 1 auto!important;width:100%!important;margin:0!important;
  padding:11px 12px!important;font-size:16px!important;
  border-radius:12px!important;border:3px solid #17102e!important;
  box-shadow:3px 3px 0 #17102e!important}

body.fake-land.on-pick .pick-hero,
body.land.on-pick .pick-hero{
  display:flex!important;flex-direction:column!important;grid-template-columns:none!important;margin:0 0 6px!important}
body.fake-land.on-pick .pick-hero .preview img,
body.land.on-pick .pick-hero .preview img{max-height:min(280px,48vh)!important}
body.fake-land.on-pick .diff-bar,
body.land.on-pick .diff-bar{margin:0 0 6px!important;gap:5px!important}
body.fake-land.on-pick .diff-bar .diff-label,
body.land.on-pick .diff-bar .diff-label{padding:3px 6px!important;font-size:9px!important}
body.fake-land.on-pick .diff-bar .diff-row button,
body.land.on-pick .diff-bar .diff-row button{padding:4px 2px!important;font-size:10px!important}
body.fake-land.on-pick .pick-acts,
body.land.on-pick .pick-acts{gap:6px!important;margin:0 0 4px!important}
body.fake-land.on-pick .pick-tabs-row,
body.land.on-pick .pick-tabs-row{margin:8px 0 6px}
body.fake-land.on-pick .pick-tabs-random,
body.land.on-pick .pick-tabs-random{padding:6px 12px;font-size:12px}
body.fake-land.on-pick .pick-acts #btn-start,
body.land.on-pick .pick-acts #btn-start{padding:8px 10px!important;font-size:14px!important}

body.port-pad.on-pick .diff-bar{grid-column:1/-1;margin:4px 0}
body.port-pad.on-pick .pick-acts{grid-column:1/-1;margin:4px 0 0}

/* —— 世界聊天首页条 v264 —— */
.home-rails{
  order:-1;flex:0 0 auto;display:flex;align-items:stretch;gap:8px;width:100%;
  margin:0 0 8px;box-sizing:border-box}
.home-rails .announce-rail{
  flex:1 1 auto;min-width:0;margin:0!important;width:auto!important;max-width:none;
  display:flex!important;align-items:center;gap:8px;
  padding:5px 8px 5px 10px;min-height:34px;
  border:3px solid #17102e;border-radius:12px;
  background:linear-gradient(90deg,#fff8d6,#ffe08a 60%,#ffd0a0);
  box-shadow:3px 3px 0 rgba(23,16,46,.65);cursor:pointer;box-sizing:border-box}
.chat-rail{
  flex:0 1 42%;max-width:46%;min-width:168px;margin:0;
  display:flex!important;align-items:center;gap:6px;
  padding:5px 8px 5px 10px;min-height:34px;
  border:3px solid #17102e;border-radius:12px;
  background:linear-gradient(90deg,#e8fff6,#b8ecff 55%,#9fe8ff);
  box-shadow:3px 3px 0 rgba(23,16,46,.65);cursor:pointer;box-sizing:border-box}
.chat-rail-tag{
  flex:none;font-size:11px;font-weight:900;color:#fff;background:#0f766e;
  border:2px solid #17102e;border-radius:999px;padding:2px 8px}
.chat-rail-track{flex:1 1 auto;min-width:0;overflow:hidden;position:relative;height:20px}
.chat-rail-track i{
  position:absolute;left:0;top:0;right:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font-style:normal;font-size:12px;font-weight:800;color:#0c2a44;line-height:20px}
.chat-rail-btn{
  flex:none;align-self:center;display:inline-flex;align-items:center;justify-content:center;
  min-width:48px;min-height:24px;padding:3px 10px;font-size:11px;font-weight:900;line-height:1;
  border:2px solid #17102e;border-radius:10px;background:linear-gradient(#ffe08a,#ffb800);
  color:#17102e;box-shadow:0 1px 0 rgba(23,16,46,.35);box-sizing:border-box
}
.chat-rail-btn:hover{filter:brightness(1.06)}
#screen-home > .home-rails{order:-1}
#screen-online #lobby-chat,
.online-hall #lobby-chat{display:none!important}
/* 竖屏 / 窄屏：VS 上、操作坞下（横屏保持左右分栏） */
body.port.on-online .online-hall-body,
body.port-pad.on-online .online-hall-body{
  grid-template-columns:1fr!important;
  grid-template-rows:minmax(150px,1fr) auto!important}
body.port.on-online .online-hall,
body.port-pad.on-online .online-hall{
  width:100%!important;max-width:100%!important;min-width:0!important}
/* 禁止再用裸 .online-hall-body 的 max-width 断点去拆横屏定宽 */
/* 世界聊天：左侧频道 Tab */
.world-chat-body{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:stretch;min-height:0}
.world-chat-tabs{display:flex;flex-direction:column;gap:6px;padding:2px 0}
.world-chat-tabs button{
  border:2px solid #17102e;border-radius:12px;padding:8px 4px;font-size:12px;font-weight:900;
  background:#fff8d6;color:#17102e;box-shadow:2px 2px 0 #17102e;line-height:1.2}
.world-chat-tabs button.on{
  background:linear-gradient(#ffef3a,#ffb800);color:#17102e}
.world-chat-tabs button:active{transform:translate(1px,1px);box-shadow:1px 1px 0 #17102e}
.world-chat-main{display:flex;flex-direction:column;min-width:0;min-height:0}
.world-chat-panel .lobby-chat-list{
  max-height:min(42vh,280px);min-height:140px;overflow:auto;margin:0 0 10px;
  padding:10px;border:3px solid #17102e;border-radius:14px;background:#fff;
  box-shadow:3px 3px 0 rgba(23,16,46,.45);color:#17102e;flex:1}
.world-chat-panel .lobby-chat-ch{
  display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;font-size:10px;font-weight:900;
  border:1px solid #17102e;background:#eef2f7;color:#334;vertical-align:1px}
.world-chat-panel .lobby-chat-item.ch-trade .lobby-chat-ch{background:#ffe8c8;color:#9a3b00}
.world-chat-panel .lobby-chat-item.ch-room .lobby-chat-ch{background:#d7ecff;color:#0b4f8a}
.world-chat-panel .lobby-chat-item.ch-system .lobby-chat-ch{background:#e8e0ff;color:#4a2fb8}
.world-chat-panel .lobby-chat-item.ch-system{opacity:.92}
body.fake-land .world-chat-body,body.port-pad .world-chat-body{grid-template-columns:64px minmax(0,1fr);gap:8px}
body.fake-land .world-chat-tabs button,body.port-pad .world-chat-tabs button{font-size:11px;padding:7px 2px}
.world-chat-panel .lobby-chat-item{color:#17102e;margin:0 0 8px;font-size:13px;font-weight:800}
.world-chat-panel .lobby-chat-item em{color:#9a1040;font-style:normal;font-weight:900}
.world-chat-panel .lobby-chat-item.invite{color:#0c4a6e}
.world-chat-panel .lobby-room-st.wait{background:#eef2f7;color:#5a6478;border-color:#c9d2e0}
.world-chat-panel .lobby-room-st.ok{background:#d7f5e3;color:#0a6b3c;border-color:#8ad9ad}
.world-chat-panel .lobby-room-st.busy{background:#ffe8c8;color:#9a3b00;border-color:#f0b56a}
.world-chat-panel .lobby-room-st.dead{background:#ffe0e6;color:#8a1030;border-color:#f0a0b0}
.world-chat-panel .lobby-room-result{color:#7a3a00;background:#ffe8c8;border-color:#f0b56a}
.world-chat-panel .lobby-chat-item.room-ended .lobby-room-st.dead{background:#ffe8c8;color:#9a3b00;border-color:#f0b56a;text-decoration:none}
.world-chat-panel .lobby-chat-item.room-dead .lobby-chat-text{opacity:.72}
.world-chat-panel .lobby-chat-av{border-color:#f3b0c4;background:#ffe8ef}
.world-chat-panel .lobby-chat-title{color:#0c4a6e}
.world-chat-panel .lobby-chat-rank{color:#17102e;border-color:#17102e;background:linear-gradient(#ffe9a8,#ffcf4a)}
.world-chat-panel .lobby-chat-pager span{color:#17102e}
.friends-panel .friends-list,.friends-panel .friends-incoming,.friends-panel .friends-invites{max-height:42vh;overflow:auto;margin:0 0 10px}
.friend-row{display:flex;gap:10px;align-items:center;padding:8px 10px;margin:0 0 6px;border-radius:12px;background:rgba(255,255,255,.55);border:1px solid rgba(30,20,60,.08)}
.friend-row img{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid rgba(154,16,64,.25);flex:0 0 auto;cursor:pointer}
.friend-row .friend-main{flex:1 1 auto;min-width:0}
.friend-row .friend-main b{display:block;font-size:14px;cursor:pointer}
.friend-row .friend-main em{display:block;font-style:normal;font-size:12px;opacity:.75}
.friend-row .friend-st{flex:0 0 auto;font-size:11px;font-weight:900;padding:2px 8px;border-radius:999px;background:#dfe7f2;color:#334}
.friend-row .friend-st.on{background:#d7f5e3;color:#0a6b3c}
.friend-row .friend-st.room{background:#d7ecff;color:#0b4f8a}
.friend-row .friend-st.battle{background:#ffe0c8;color:#9a3b00}
.friend-row .friend-acts{display:flex;gap:4px;flex-wrap:wrap}
.friend-row .friend-acts button{border:0;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:900;cursor:pointer;background:linear-gradient(#54c4ff,#1f8fd4);color:#062038}
.friend-row .friend-acts button.ghost{background:#eef2f7;color:#334}
.friend-row .friend-acts button.danger{background:#ffd0d8;color:#8a1030}
.friends-sec-lab{margin:0 0 6px;font-size:12px;font-weight:900;opacity:.7}
.world-chat-panel .lobby-chat-compose{display:flex;gap:8px;margin:0;align-items:center}
.world-chat-panel .lobby-chat-input-wrap{position:relative;flex:1 1 auto;min-width:0;display:flex;align-items:center;align-self:center}
.world-chat-panel .lobby-chat-compose .field{
  flex:1;width:100%;height:41px;border:3px solid #17102e;border-radius:12px;
  padding:0 88px 0 12px;font-weight:800;line-height:35px;box-sizing:border-box}
.world-chat-panel .lobby-chat-compose .primary{
  border:3px solid #17102e;border-radius:12px;box-shadow:3px 3px 0 #17102e;font-weight:900;
  background:linear-gradient(#54c4ff,#1f8fd4);color:#fff;height:41px;padding:0 14px;line-height:1}
.world-chat-panel .chat-emoji-btn{
  right:8px;top:0;bottom:0;margin:auto 0;transform:none;
  height:30px;padding:0 10px 0 7px;font-size:12px}
.world-chat-panel .lobby-chat-geng{border-color:#17102e;background:#fff}
body.fake-land.on-home .home-rails,
body.land.on-home .home-rails{gap:6px;margin:0 0 4px}
body.fake-land.on-home .chat-rail,
body.land.on-home .chat-rail{min-width:140px;max-width:44%;padding:3px 6px;min-height:28px}
body.fake-land.on-home .chat-rail-tag,
body.land.on-home .chat-rail-tag{font-size:10px;padding:1px 6px}
body.fake-land.on-home .chat-rail-track,
body.land.on-home .chat-rail-track{height:16px}
body.fake-land.on-home .chat-rail-track i,
body.land.on-home .chat-rail-track i{font-size:11px;line-height:16px}
body.fake-land.on-home .chat-rail-btn,
body.land.on-home .chat-rail-btn{padding:3px 8px;font-size:10px;min-width:40px}
@media (max-width:720px){
  .home-rails{flex-wrap:wrap}
  .home-rails .announce-rail{flex:1 1 100%}
  .chat-rail{flex:1 1 100%;max-width:100%;min-width:0}
}

/* —— DIY 获胜语音 v267 —— */
.winvoice-box{
  display:flex;flex-direction:column;gap:12px;padding:14px 14px 16px;
  border:3px solid #17102e;border-radius:16px;background:linear-gradient(160deg,#fff9e8,#ffe7b8 55%,#ffd0a8);
  box-shadow:4px 4px 0 rgba(23,16,46,.55);color:#17102e;min-height:180px;box-sizing:border-box}
.winvoice-box h3{margin:0;font-size:16px;font-weight:900}
.winvoice-box p{margin:0;font-size:12px;font-weight:700;line-height:1.45;opacity:.92}
.winvoice-actions{display:flex;flex-wrap:wrap;gap:8px}
.winvoice-actions button{
  flex:1 1 auto;min-width:96px;padding:10px 12px;font-size:13px;font-weight:900;
  border:3px solid #17102e;border-radius:12px;background:linear-gradient(#fff,#ffe08a);
  color:#17102e;box-shadow:0 3px 0 #17102e;cursor:pointer}
.winvoice-actions button.recording{
  background:linear-gradient(#ffb4b4,#ff6b6b);color:#fff;animation:wv-pulse 1s ease-in-out infinite}
.winvoice-actions button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
#winvoice-status{font-size:12px;font-weight:800;min-height:18px}
.winvoice-meter{
  height:10px;border:2px solid #17102e;border-radius:999px;background:#fff;overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(23,16,46,.08)}
.winvoice-meter-fill{
  display:block;height:100%;width:100%;
  background:linear-gradient(90deg,#ff6b6b,#ffb800 55%,#7dffb2);
  transition:width .1s linear}
#result-voice-tip{
  margin:8px 0 0;padding:7px 12px;border:2px solid #17102e;border-radius:999px;
  background:linear-gradient(90deg,#e8fff6,#c8f0ff);font-size:12px;font-weight:900;color:#0c2a44;
  display:inline-block;box-shadow:2px 2px 0 rgba(23,16,46,.35);cursor:pointer;font-family:inherit}
#result-voice-tip:hover{filter:brightness(1.05)}
#result-voice-tip[hidden]{display:none!important}
.dress-tabs button[data-k="winvoice"].on{background:linear-gradient(#b8ecff,#7ad7ff)}
@keyframes wv-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.03)}}
@media (prefers-reduced-motion:reduce){
  .winvoice-actions button.recording{animation:none}
}

/* —— DIY 获胜语音 v268 —— */
.dress-grid:has(.winvoice-box){
  display:block!important;overflow:auto;padding:8px}
.winvoice-box{grid-column:1/-1;width:100%;box-sizing:border-box;min-height:220px}
#panel-dress .dress-layout.wv-mode{
  grid-template-columns:1fr!important}
#panel-dress .dress-layout.wv-mode .fx-preview{display:none!important}
#panel-dress .dress-layout.wv-mode .dress-main{min-height:0}
#panel-dress .dress-layout.wv-mode .dress-main-lab{display:none}
#panel-dress .dress-layout.wv-mode .dress-main-lab{display:none}
#result-voice-tip{
  display:block;margin:10px auto 0;text-align:center;max-width:92%}
#result-voice-tip.wv-cta{
  background:linear-gradient(90deg,#ffe08a,#ffb800)!important;color:#17102e}
body.port-pad .winvoice-box{min-height:200px}
body.fake-land .dress-grid:has(.winvoice-box),
body.land .dress-grid:has(.winvoice-box){max-height:none}

/* —— 首页双条 / 语音边角 v269 —— */
body.fake-land.on-home .home-rails,
body.land.on-home .home-rails,
body.port-pad.on-home .home-rails{
  flex-wrap:nowrap!important;gap:5px;margin:0 0 4px}
body.fake-land.on-home .home-rails .announce-rail,
body.land.on-home .home-rails .announce-rail,
body.port-pad.on-home .home-rails .announce-rail{
  flex:1 1 auto!important;min-width:0;padding:3px 6px 3px 8px;min-height:26px}
body.fake-land.on-home .chat-rail,
body.land.on-home .chat-rail,
body.port-pad.on-home .chat-rail{
  flex:1 1 42%!important;max-width:48%!important;min-width:180px!important;
  padding:3px 6px;min-height:26px}
body.fake-land.on-home .chat-rail-btn,
body.land.on-home .chat-rail-btn,
body.port-pad.on-home .chat-rail-btn{
  min-width:36px;padding:2px 8px;font-size:10px;min-height:22px;
  align-self:center;box-shadow:0 1px 0 rgba(23,16,46,.3)
}
body.fake-land.on-home .announce-rail-btn,
body.land.on-home .announce-rail-btn,
body.port-pad.on-home .announce-rail-btn{min-width:36px;padding:2px 6px;font-size:10px}
@media (max-width:720px){
  body.fake-land.on-home .home-rails,
  body.land.on-home .home-rails,
  body.port-pad.on-home .home-rails{flex-wrap:nowrap!important}
  body.fake-land.on-home .home-rails .announce-rail,
  body.land.on-home .home-rails .announce-rail,
  body.port-pad.on-home .home-rails .announce-rail{flex:1 1 auto!important}
  body.fake-land.on-home .chat-rail,
  body.land.on-home .chat-rail,
  body.port-pad.on-home .chat-rail{flex:0 1 34%!important;max-width:36%!important;min-width:0!important}
}

/* —— 场景PK收尾 v270 —— */
.scene-card .scene-go{
  position:absolute;right:8px;top:8px;z-index:2;
  font-size:10px;font-weight:900;padding:3px 7px;border-radius:999px;
  border:2px solid #17102e;background:linear-gradient(#ffe08a,#ffb800);color:#17102e;
  box-shadow:2px 2px 0 #17102e;opacity:0;transform:scale(.9);pointer-events:none;
  transition:opacity .15s,transform .15s}
.scene-card.on .scene-go{opacity:1;transform:scale(1)}
.scene-foot-hint{flex:1;min-width:0;font-size:12px;font-weight:800;color:#17102e;opacity:.85}
body.fake-land.on-scene .scene-foot-hint,body.land.on-scene .scene-foot-hint{font-size:11px}
.scene-foot{align-items:center;gap:8px;flex-wrap:wrap}

/* —— 场景难度 / 小地图 v271 —— */
.scene-diff{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  padding:6px 8px;border:3px solid #17102e;border-radius:12px;
  background:linear-gradient(90deg,#fff8d6,#e8fff6);box-shadow:3px 3px 0 rgba(23,16,46,.45)}
.scene-diff .diff-label{font-size:12px;font-weight:900;color:#17102e;flex:none}
.scene-diff .diff-row{display:flex;gap:6px;flex:1;flex-wrap:wrap}
.scene-diff .diff-row button{
  flex:1;min-width:64px;padding:7px 8px;font-size:12px;font-weight:900;
  border:3px solid #17102e;border-radius:10px;background:#fff;color:#17102e;
  box-shadow:0 3px 0 #17102e;cursor:pointer}
.scene-diff .diff-row button.on{
  background:linear-gradient(#ffe08a,#ffb800);transform:translateY(1px);box-shadow:0 2px 0 #17102e}
body.fake-land.on-scene .scene-diff,body.land.on-scene .scene-diff{padding:4px 6px;gap:6px}
body.fake-land.on-scene .scene-diff .diff-row button,body.land.on-scene .scene-diff .diff-row button{padding:5px 6px;font-size:11px}

/* —— 场景厅压紧 v301 —— */
body.fake-land.on-scene .scene-hero,
body.land.on-scene .scene-hero{padding:4px 6px;gap:6px}
body.fake-land.on-scene .scene-map,
body.land.on-scene .scene-map{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px}
body.port-pad.on-scene .scene-map{
  grid-template-columns:repeat(2,minmax(0,1fr))}
#btn-scene-fight.scene-fight-ready{
  background:linear-gradient(#7dffb2,#2f9e6a)!important;color:#fff!important;
  animation:sceneFightPulse 1.6s ease-in-out infinite}
@keyframes sceneFightPulse{
  0%,100%{filter:brightness(1)}
  50%{filter:brightness(1.08)}
}
@media (prefers-reduced-motion:reduce){
  #btn-scene-fight.scene-fight-ready{animation:none}
}

/* —— 冒险闯关收尾 v273 —— */
.adv-stage{position:relative}
#btn-adv-fight.adv-fight-ready{
  background:linear-gradient(#7dffb2,#2f9e6a)!important;color:#fff;
  animation:sceneFightPulse 1.6s ease-in-out infinite}
body.fake-land.on-adventure .adv-foot-hint,
body.land.on-adventure .adv-foot-hint{font-size:11px}

/* —— 木桩练习 v275 —— */
.practice-bar{
  border:3px solid #17102e!important;border-radius:14px!important;
  background:linear-gradient(90deg,#e8fff6,#fff8d6 55%,#ffe0b0)!important;
  box-shadow:3px 3px 0 rgba(23,16,46,.5)!important;padding:8px 10px!important}
.practice-bar>span{
  background:linear-gradient(#54c4ff,#1f8fd4)!important;color:#fff!important;
  border:2px solid #17102e;box-shadow:2px 2px 0 #17102e}
.practice-bar select{
  border:3px solid #17102e!important;border-radius:10px!important;
  background:#fff!important;color:#17102e!important;font-weight:900!important;
  box-shadow:0 2px 0 #17102e}
.practice-bar label{
  border:2px solid #17102e!important;background:#fff!important;color:#17102e!important;
  box-shadow:0 2px 0 #17102e}
.practice-bar #pr-reset{
  border:3px solid #17102e!important;border-radius:10px!important;font-weight:900!important;
  background:linear-gradient(#ffe08a,#ffb800)!important;color:#17102e!important;
  box-shadow:0 3px 0 #17102e}
.practice-bar em{color:#17102e!important;opacity:.9!important;font-weight:800!important}

/* —— 首页间距 v298：收紧外边距，保住左侧换装/商城完整可见 —— */
body.on-home .topbar,
body.land.on-home .topbar,
body.fake-land.on-home .topbar,
body.port-pad.on-home .topbar{
  margin:4px 0 0!important;
  padding:4px 8px!important;
  border-radius:12px!important;
  box-shadow:0 3px 0 rgba(23,16,46,.25)!important}
body.on-home .brand-mark-logo,
body.land.on-home .brand-mark-logo,
body.fake-land.on-home .brand-mark-logo,
body.port-pad.on-home .brand-mark-logo{width:34px!important;height:34px!important}
body.fake-land.on-home .brand-mark-logo,
body.port-pad.on-home .brand-mark-logo{width:26px!important;height:26px!important}
body.on-home .home-rails,
body.land.on-home .home-rails,
body.fake-land.on-home .home-rails,
body.port-pad.on-home .home-rails{
  margin:6px 0 6px!important;
  gap:6px!important}
body.on-home .home-rails .announce-rail,
body.land.on-home .home-rails .announce-rail,
body.fake-land.on-home .home-rails .announce-rail,
body.port-pad.on-home .home-rails .announce-rail,
body.on-home .chat-rail,
body.land.on-home .chat-rail,
body.fake-land.on-home .chat-rail,
body.port-pad.on-home .chat-rail{
  min-height:28px!important;
  padding:3px 8px!important;
  box-shadow:2px 2px 0 rgba(23,16,46,.5)!important}
body.on-home .lobby,
body.land.on-home .lobby,
body.fake-land.on-home .lobby,
body.port-pad.on-home .lobby{
  margin:0 0 6px!important;
  padding:8px 8px 10px!important}
body.on-home .lobby-arena,
body.land.on-home .lobby-arena,
body.fake-land.on-home .lobby-arena,
body.port-pad.on-home .lobby-arena{
  min-height:0!important;
  gap:8px!important}
body.on-home .lobby-fighter .lobby-stage img,
body.land.on-home .lobby-fighter .lobby-stage img,
body.fake-land.on-home .lobby-fighter .lobby-stage img{
  max-height:min(180px,34vh)!important}
body.on-home .lobby-stage > .lobby-power-row,
body.land.on-home .lobby-stage > .lobby-power-row,
body.fake-land.on-home .lobby-stage > .lobby-power-row{margin:0!important;gap:3px!important}
body.on-home #lobby-hero-card .lobby-meta,
body.land.on-home #lobby-hero-card .lobby-meta,
body.fake-land.on-home #lobby-hero-card .lobby-meta{margin:1px auto 2px!important;padding:2px 8px!important}
body.on-home .lobby-hero-acts,
body.land.on-home .lobby-hero-acts,
body.fake-land.on-home .lobby-hero-acts,
body.port-pad.on-home .lobby-hero-acts{
  margin-top:4px!important;margin-bottom:0!important;gap:8px!important;
  padding-bottom:4px!important}
body.on-home .lobby-dress,body.on-home .lobby-shop,body.on-home .lobby-friends,
body.land.on-home .lobby-dress,body.land.on-home .lobby-shop,body.land.on-home .lobby-friends,
body.fake-land.on-home .lobby-dress,body.fake-land.on-home .lobby-shop,body.fake-land.on-home .lobby-friends,
body.port-pad.on-home .lobby-dress,body.port-pad.on-home .lobby-shop,body.port-pad.on-home .lobby-friends,
body.on-home #btn-dress,body.on-home #btn-shop2,
body.land.on-home #btn-dress,body.land.on-home #btn-shop2,
body.fake-land.on-home #btn-dress,body.fake-land.on-home #btn-shop2{
  padding:8px 12px!important;font-size:14px!important;
  min-width:72px!important;max-width:140px!important;
  box-shadow:0 3px 0 #17102e!important}
body.on-home #lobby-hero-card .nick-chip-act,
body.land.on-home #lobby-hero-card .nick-chip-act,
body.fake-land.on-home #lobby-hero-card .nick-chip-act{
  min-width:0!important;max-width:none!important;padding:0 8px!important;font-size:10px!important;
  height:22px!important;box-shadow:1px 1px 0 rgba(23,16,46,.4)!important}
body.on-home .rank-strip{
  margin-top:6px!important}
body.on-home #app,
body.land.on-home #app,
body.fake-land.on-home #app,
body.port-pad.on-home #app{
  padding-left:max(10px,1.2vw)!important;
  padding-right:max(10px,1.2vw)!important;
  padding-bottom:10px!important}

/* —— 结算定稿 v315：中部可压/可滚，底栏钉死，「返回首页」必见 —— */
html:has(body.on-result),
body.on-result{
  height:100%!important;max-height:100%!important;overflow:hidden!important}
body.on-result #app,
body.land.on-result #app,
body.fake-land.on-result #app,
body.port-pad.on-result #app{
  display:flex!important;flex-direction:column!important;
  padding:4px 8px!important;overflow:hidden!important;min-height:0!important;
  height:100%!important;max-height:100dvh!important;box-sizing:border-box!important}
body.on-result #screen-result,
body.land.on-result #screen-result,
body.fake-land.on-result #screen-result,
body.port-pad.on-result #screen-result{
  display:flex!important;align-items:stretch!important;justify-content:center!important;
  padding:0!important;overflow:hidden!important;flex:1 1 auto!important;
  min-height:0!important;max-height:100%!important;width:100%!important}
body.on-result .result-card,
body.land.on-result .result-card,
body.fake-land.on-result .result-card,
body.port-pad.on-result .result-card{
  display:flex!important;flex-direction:column!important;gap:6px!important;
  width:min(980px,100%)!important;max-width:100%!important;max-height:100%!important;
  height:100%!important;min-height:0!important;margin:0!important;padding:8px 10px!important;
  box-sizing:border-box!important;overflow:hidden!important}
body.on-result .result-banner,
body.land.on-result .result-banner,
body.fake-land.on-result .result-banner,
body.port-pad.on-result .result-banner{
  flex:0 0 auto!important;margin:0!important;padding:3px 10px!important;font-size:11px!important;
  align-self:flex-start!important;border-width:2px!important;box-shadow:2px 2px 0 #17102e!important}
body.on-result .result-main,
body.land.on-result .result-main,
body.fake-land.on-result .result-main,
body.port-pad.on-result .result-main{
  display:grid!important;grid-template-columns:minmax(72px,84px) minmax(0,1fr)!important;
  gap:6px 10px!important;align-items:center!important;margin:0!important;
  flex:1 1 0!important;min-height:0!important;overflow:auto!important;
  -webkit-overflow-scrolling:touch}
body.on-result .result-hero,
body.land.on-result .result-hero,
body.fake-land.on-result .result-hero,
body.port-pad.on-result .result-hero{
  width:84px!important;height:84px!important;min-height:0!important;max-height:84px!important;margin:0!important}
body.on-result .result-hero::before,
body.land.on-result .result-hero::before,
body.fake-land.on-result .result-hero::before,
body.port-pad.on-result .result-hero::before{width:78%!important;height:78%!important}
body.on-result .result-burst,
body.land.on-result .result-burst,
body.fake-land.on-result .result-burst,
body.port-pad.on-result .result-burst{width:150%!important}
body.on-result .result-hero img,
body.land.on-result .result-hero img,
body.fake-land.on-result .result-hero img,
body.port-pad.on-result .result-hero img{filter:drop-shadow(0 4px 0 rgba(0,0,0,.28))!important}
body.on-result .result-hero-meta,
body.land.on-result .result-hero-meta,
body.fake-land.on-result .result-hero-meta,
body.port-pad.on-result .result-hero-meta{
  bottom:-2px!important;gap:3px!important;width:max-content!important;max-width:none!important;flex-wrap:nowrap!important}
body.on-result .result-hero-meta b,
body.land.on-result .result-hero-meta b,
body.fake-land.on-result .result-hero-meta b,
body.port-pad.on-result .result-hero-meta b{font-size:10px!important;padding:2px 6px!important;white-space:nowrap!important}
body.on-result .result-hero-meta span,
body.land.on-result .result-hero-meta span,
body.fake-land.on-result .result-hero-meta span,
body.port-pad.on-result .result-hero-meta span{font-size:9px!important;padding:1px 5px!important;white-space:nowrap!important}
body.on-result .result-copy,
body.land.on-result .result-copy,
body.fake-land.on-result .result-copy,
body.port-pad.on-result .result-copy{
  gap:3px!important;min-width:0!important;min-height:0!important;overflow:hidden!important;justify-content:center!important}
body.on-result .result-card h1,
body.on-result .result-copy h1,
body.land.on-result .result-card h1,
body.land.on-result .result-copy h1,
body.fake-land.on-result .result-card h1,
body.fake-land.on-result .result-copy h1,
body.port-pad.on-result .result-card h1,
body.port-pad.on-result .result-copy h1{font-size:17px!important;margin:0!important;line-height:1.15!important}
body.on-result #result-desc,
body.on-result .result-copy>p,
body.land.on-result #result-desc,
body.land.on-result .result-copy>p,
body.fake-land.on-result #result-desc,
body.fake-land.on-result .result-copy>p,
body.port-pad.on-result #result-desc,
body.port-pad.on-result .result-copy>p{
  font-size:11px!important;margin:0!important;line-height:1.3!important;
  display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
body.on-result .score,
body.on-result #result-score,
body.land.on-result .score,
body.land.on-result #result-score,
body.fake-land.on-result .score,
body.fake-land.on-result #result-score,
body.port-pad.on-result .score,
body.port-pad.on-result #result-score{
  padding:2px 8px!important;font-size:11px!important;border-width:2px!important;box-shadow:1px 1px 0 rgba(23,16,46,.45)!important}
body.on-result .result-vs,
body.land.on-result .result-vs,
body.fake-land.on-result .result-vs,
body.port-pad.on-result .result-vs{margin:0!important;padding:3px 8px!important;gap:8px!important}
body.on-result .result-vs img,
body.land.on-result .result-vs img,
body.fake-land.on-result .result-vs img,
body.port-pad.on-result .result-vs img{width:30px!important;height:30px!important;border-width:2px!important}
body.on-result .result-stats,
body.land.on-result .result-stats,
body.fake-land.on-result .result-stats,
body.port-pad.on-result .result-stats{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;margin:0!important}
body.on-result .result-stats div,
body.land.on-result .result-stats div,
body.fake-land.on-result .result-stats div,
body.port-pad.on-result .result-stats div{
  padding:4px 2px!important;border-width:2px!important;border-radius:8px!important;
  box-shadow:2px 2px 0 rgba(23,16,46,.4)!important}
body.on-result .result-stats b,
body.land.on-result .result-stats b,
body.fake-land.on-result .result-stats b,
body.port-pad.on-result .result-stats b{font-size:13px!important}
body.on-result .result-stats span,
body.land.on-result .result-stats span,
body.fake-land.on-result .result-stats span,
body.port-pad.on-result .result-stats span{font-size:9px!important}
body.on-result #result-quote,
body.land.on-result #result-quote,
body.fake-land.on-result #result-quote,
body.port-pad.on-result #result-quote{
  display:block!important;margin:0!important;padding:4px 8px!important;
  font-size:11px!important;line-height:1.3!important;font-weight:800!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  border-width:2px!important;box-shadow:2px 2px 0 rgba(23,16,46,.3)!important}
body.on-result #result-voice-tip,
body.land.on-result #result-voice-tip,
body.fake-land.on-result #result-voice-tip,
body.port-pad.on-result #result-voice-tip{display:none!important}
body.on-result .result-mp,
body.land.on-result .result-mp,
body.fake-land.on-result .result-mp,
body.port-pad.on-result .result-mp{display:none!important}
/* 两行底栏：主 CTA 独占一行，次按钮含「返回首页」始终可见 */
body.on-result .result-btns,
body.land.on-result .result-btns,
body.fake-land.on-result .result-btns,
body.port-pad.on-result .result-btns{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;align-items:stretch!important;margin:0!important;
  flex:0 0 auto!important;width:100%!important;padding-top:2px!important;
  position:relative!important;z-index:5!important;
  background:inherit!important}
body.on-result .result-btns > *,
body.land.on-result .result-btns > *,
body.fake-land.on-result .result-btns > *,
body.port-pad.on-result .result-btns > *{
  min-width:0!important;width:auto!important;grid-column:auto!important;
  padding:9px 6px!important;font-size:12px!important;border-width:2px!important;
  border-radius:10px!important;box-shadow:2px 2px 0 #17102e!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important}
body.on-result .result-btns .big,
body.on-result .result-btns .result-cta-main,
body.on-result .result-btns #btn-again,
body.on-result .result-btns #btn-rematch-ready,
body.land.on-result .result-btns .big,
body.land.on-result .result-btns .result-cta-main,
body.land.on-result .result-btns #btn-again,
body.land.on-result .result-btns #btn-rematch-ready,
body.fake-land.on-result .result-btns .big,
body.fake-land.on-result .result-btns .result-cta-main,
body.fake-land.on-result .result-btns #btn-again,
body.fake-land.on-result .result-btns #btn-rematch-ready,
body.port-pad.on-result .result-btns .big,
body.port-pad.on-result .result-btns .result-cta-main,
body.port-pad.on-result .result-btns #btn-again,
body.port-pad.on-result .result-btns #btn-rematch-ready{
  grid-column:1 / -1!important;font-size:14px!important;padding:10px 8px!important;
  border-width:3px!important}
body.on-result .result-btns #btn-result-home,
body.land.on-result .result-btns #btn-result-home,
body.fake-land.on-result .result-btns #btn-result-home,
body.port-pad.on-result .result-btns #btn-result-home{
  font-weight:900!important}
body.on-result .result-btns [hidden],
body.land.on-result .result-btns [hidden],
body.fake-land.on-result .result-btns [hidden],
body.port-pad.on-result .result-btns [hidden]{
  display:none!important;flex:0!important;width:0!important;padding:0!important;margin:0!important;border:0!important}
@media (max-height:420px){
  body.on-result .result-hero,
  body.land.on-result .result-hero,
  body.fake-land.on-result .result-hero,
  body.port-pad.on-result .result-hero{width:64px!important;height:64px!important;max-height:64px!important}
  body.on-result .result-main,
  body.land.on-result .result-main,
  body.fake-land.on-result .result-main,
  body.port-pad.on-result .result-main{grid-template-columns:64px minmax(0,1fr)!important;gap:4px 8px!important}
  body.on-result .result-card h1,
  body.land.on-result .result-card h1,
  body.fake-land.on-result .result-card h1,
  body.port-pad.on-result .result-card h1{font-size:15px!important}
  body.on-result .result-stats div,
  body.land.on-result .result-stats div,
  body.fake-land.on-result .result-stats div,
  body.port-pad.on-result .result-stats div{padding:2px 1px!important}
  body.on-result #result-quote,
  body.land.on-result #result-quote,
  body.fake-land.on-result #result-quote,
  body.port-pad.on-result #result-quote{display:none!important}
  body.on-result .result-btns > *,
  body.land.on-result .result-btns > *,
  body.fake-land.on-result .result-btns > *,
  body.port-pad.on-result .result-btns > *{padding:7px 4px!important;font-size:11px!important}
  body.on-result .result-btns .big,
  body.on-result .result-btns .result-cta-main,
  body.on-result .result-btns #btn-again,
  body.on-result .result-btns #btn-rematch-ready,
  body.land.on-result .result-btns .big,
  body.land.on-result .result-btns .result-cta-main,
  body.land.on-result .result-btns #btn-again,
  body.land.on-result .result-btns #btn-rematch-ready,
  body.fake-land.on-result .result-btns .big,
  body.fake-land.on-result .result-btns .result-cta-main,
  body.fake-land.on-result .result-btns #btn-again,
  body.fake-land.on-result .result-btns #btn-rematch-ready,
  body.port-pad.on-result .result-btns .big,
  body.port-pad.on-result .result-btns .result-cta-main,
  body.port-pad.on-result .result-btns #btn-again,
  body.port-pad.on-result .result-btns #btn-rematch-ready{padding:8px 6px!important;font-size:13px!important}
}
@media (max-height:340px){
  body.on-result .result-hero,
  body.land.on-result .result-hero,
  body.fake-land.on-result .result-hero,
  body.port-pad.on-result .result-hero{width:48px!important;height:48px!important;max-height:48px!important}
  body.on-result .result-main,
  body.land.on-result .result-main,
  body.fake-land.on-result .result-main,
  body.port-pad.on-result .result-main{grid-template-columns:48px minmax(0,1fr)!important}
  body.on-result .result-hero-meta,
  body.land.on-result .result-hero-meta,
  body.fake-land.on-result .result-hero-meta,
  body.port-pad.on-result .result-hero-meta{display:none!important}
  body.on-result .result-stats,
  body.land.on-result .result-stats,
  body.fake-land.on-result .result-stats,
  body.port-pad.on-result .result-stats{display:none!important}
  body.on-result .result-vs,
  body.land.on-result .result-vs,
  body.fake-land.on-result .result-vs,
  body.port-pad.on-result .result-vs{display:none!important}
}

/* —— v316：非首页藏 #app 直属顶栏（排位页 .topbar 例外） —— */
body:not(.on-home) #app > .topbar,
body:not(.on-home) .mp-float{display:none!important}

/* —— v320：邀请好友 / 发放奖励 —— */
.profile-invite,.invite-mine{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0;
  padding:8px 10px;border:2px solid #17102e;border-radius:12px;
  background:linear-gradient(180deg,#fff9ea,#ffe8b8)}
.profile-invite span,.invite-mine span{font-size:12px;font-weight:800;color:#4a3208}
.profile-invite b,.invite-mine b{
  font-size:16px;letter-spacing:1px;color:#17102e;font-variant-numeric:tabular-nums}
.profile-invite .ghost,.invite-mine .ghost{padding:6px 10px;font-size:12px}
.profile-invite + .profile-invite-note{
  margin:6px 0 0;padding:7px 10px;font-size:12px;line-height:1.55;
}
.invite-bind-box{
  margin:12px 0 0;padding:10px 12px;border:3px solid #17102e;border-radius:14px;
  background:linear-gradient(180deg,#fffdf6,#ffe9c2)}
.invite-bind-box>b{display:block;margin:0 0 4px;font-size:14px;color:#17102e}
.invite-bind-row{display:flex;gap:8px;align-items:stretch;margin:8px 0 4px}
.invite-bind-row .field{
  flex:1;min-width:0;padding:10px 12px;border:2px solid #17102e;border-radius:10px;
  font-size:15px;font-weight:800;letter-spacing:1px;text-transform:uppercase}
.invite-bind-row .primary{flex:0 0 auto;padding:10px 14px}
#reward-box{display:flex;flex-direction:column;gap:10px;min-height:0}
#reward-box[hidden]{display:none!important}
.reward-cards{display:flex;flex-direction:column;gap:8px}
.reward-card{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 12px;border:3px solid #17102e;border-radius:14px;
  background:linear-gradient(180deg,#fff,#ffe7a8);box-shadow:3px 3px 0 #17102e}
.reward-card.ready{background:linear-gradient(180deg,#fff9c8,#ffd36a)}
.reward-card.done{opacity:.72;background:linear-gradient(180deg,#f3f3f3,#e4e4e4)}
.reward-card b{display:block;font-size:14px;color:#17102e;margin:0 0 3px}
.reward-card p{margin:0;font-size:12px;line-height:1.4;color:#4a3208;font-weight:700}
.reward-card .primary,.reward-card .ghost{flex:0 0 auto;padding:8px 12px;font-size:13px;white-space:nowrap}
body.land #panel-announce .reward-card,
body.fake-land #panel-announce .reward-card{padding:8px 10px}
body.land #panel-settings .invite-bind-box,
body.fake-land #panel-settings .invite-bind-box{margin-top:8px;padding:8px 10px}

/* —— 邀请好友 / 发放奖励 —— */
.profile-invite,.invite-mine{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  margin:8px 0;padding:8px 10px;border:2px solid #17102e;border-radius:12px;
  background:linear-gradient(180deg,#fff9ea,#ffe8b0)}
.profile-invite span,.invite-mine span{font-size:12px;font-weight:800;color:#4a2800}
.profile-invite b,.invite-mine b{
  font-size:16px;letter-spacing:1px;color:#17102e;font-variant-numeric:tabular-nums;
  min-width:5.5em}
.profile-invite .ghost,.invite-mine .ghost{padding:5px 10px;font-size:12px}
.invite-bind-box{
  margin:12px 0 0;padding:10px 12px;border:3px solid #17102e;border-radius:14px;
  background:linear-gradient(180deg,#fffdf6,#ffe9c2)}
.invite-bind-box>b{display:block;margin:0 0 4px;font-size:14px;color:#17102e}
.invite-bind-row{display:flex;gap:8px;align-items:center;margin:8px 0 4px}
.invite-bind-row .field{flex:1;min-width:0;text-transform:uppercase;letter-spacing:1px;font-weight:800}
.invite-bind-row .primary{flex:0 0 auto;padding:8px 14px}
#reward-box{display:flex;flex-direction:column;gap:10px;min-height:0}
#reward-box[hidden]{display:none!important}
.reward-cards{display:flex;flex-direction:column;gap:8px}
.reward-card{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 12px;border:3px solid #17102e;border-radius:12px;
  background:linear-gradient(180deg,#fff,#ffe9b8);box-shadow:3px 3px 0 #17102e}
.reward-card b{display:block;font-size:14px;color:#17102e;margin:0 0 2px}
.reward-card p{margin:0;font-size:12px;line-height:1.4;color:#4a2800;font-weight:700}
.reward-card .primary,.reward-card .ghost{flex:0 0 auto;padding:8px 12px;font-size:12px;white-space:nowrap}
.reward-card.ready{border-color:#17102e;background:linear-gradient(180deg,#fff6c8,#ffd76a)}
.reward-card.done{opacity:.72;background:linear-gradient(180deg,#f3f3f3,#e4e4e4)}
body.land #panel-announce .reward-card,
body.fake-land #panel-announce .reward-card{padding:8px 10px}
body.land #panel-announce .reward-card b,
body.fake-land #panel-announce .reward-card b{font-size:13px}
body.land #panel-settings .invite-bind-box,
body.fake-land #panel-settings .invite-bind-box{margin-top:8px;padding:8px 10px}

/* —— v319：结算底栏定死视口底部 ~10px，矮屏也不丢「返回首页」 —— */
body.on-result #screen-result,
body.land.on-result #screen-result,
body.fake-land.on-result #screen-result,
body.port-pad.on-result #screen-result{
  position:relative!important;display:flex!important;flex-direction:column!important;
  align-items:stretch!important;justify-content:flex-start!important;
  padding:0 0 0!important;overflow:hidden!important}
body.on-result .result-card,
body.land.on-result .result-card,
body.fake-land.on-result .result-card,
body.port-pad.on-result .result-card{
  flex:1 1 auto!important;height:auto!important;max-height:none!important;
  margin:0 auto!important;padding:8px 10px!important;
  padding-bottom:calc(118px + env(safe-area-inset-bottom,0px))!important;
  overflow:auto!important;-webkit-overflow-scrolling:touch;
  width:min(980px,100%)!important}
body.on-result .result-mp,
body.land.on-result .result-mp,
body.fake-land.on-result .result-mp,
body.port-pad.on-result .result-mp{display:none!important}
body.on-result .result-btns,
body.on-result .result-btns-dock,
body.land.on-result .result-btns,
body.land.on-result .result-btns-dock,
body.fake-land.on-result .result-btns,
body.fake-land.on-result .result-btns-dock,
body.port-pad.on-result .result-btns,
body.port-pad.on-result .result-btns-dock{
  position:fixed!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;
  bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
  z-index:80!important;width:min(980px,calc(100% - 20px))!important;max-width:calc(100% - 20px)!important;
  margin:0!important;padding:8px!important;box-sizing:border-box!important;
  display:flex!important;flex-direction:column!important;gap:6px!important;
  grid-template-columns:none!important;
  background:linear-gradient(180deg,rgba(255,249,234,.96),rgba(255,236,196,.98))!important;
  border:3px solid #17102e!important;border-radius:14px!important;
  box-shadow:0 4px 0 #17102e,0 10px 24px rgba(0,0,0,.28)!important}
body.on-result .result-btns > .big,
body.on-result .result-btns > .result-cta-main,
body.on-result .result-btns > #btn-again,
body.on-result .result-btns > #btn-rematch-ready,
body.land.on-result .result-btns > .big,
body.land.on-result .result-btns > .result-cta-main,
body.land.on-result .result-btns > #btn-again,
body.land.on-result .result-btns > #btn-rematch-ready,
body.fake-land.on-result .result-btns > .big,
body.fake-land.on-result .result-btns > .result-cta-main,
body.fake-land.on-result .result-btns > #btn-again,
body.fake-land.on-result .result-btns > #btn-rematch-ready,
body.port-pad.on-result .result-btns > .big,
body.port-pad.on-result .result-btns > .result-cta-main,
body.port-pad.on-result .result-btns > #btn-again,
body.port-pad.on-result .result-btns > #btn-rematch-ready{
  grid-column:auto!important;width:100%!important;flex:0 0 auto!important;
  margin:0!important;padding:11px 10px!important;font-size:15px!important}
body.on-result .result-btns-row,
body.land.on-result .result-btns-row,
body.fake-land.on-result .result-btns-row,
body.port-pad.on-result .result-btns-row{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;width:100%!important;align-items:stretch!important}
body.on-result .result-btns-row > *,
body.land.on-result .result-btns-row > *,
body.fake-land.on-result .result-btns-row > *,
body.port-pad.on-result .result-btns-row > *{
  min-width:0!important;width:auto!important;padding:9px 6px!important;font-size:12px!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.on-result .result-btns-row #btn-result-home,
body.land.on-result .result-btns-row #btn-result-home,
body.fake-land.on-result .result-btns-row #btn-result-home,
body.port-pad.on-result .result-btns-row #btn-result-home{font-weight:900!important}
body.on-result .result-btns [hidden],
body.on-result .result-btns-row [hidden]{display:none!important}
@media (max-height:420px){
  body.on-result .result-card,
  body.land.on-result .result-card,
  body.fake-land.on-result .result-card,
  body.port-pad.on-result .result-card{
    padding-bottom:calc(108px + env(safe-area-inset-bottom,0px))!important}
  body.on-result .result-btns,
  body.on-result .result-btns-dock{padding:6px!important;gap:4px!important}
  body.on-result .result-btns > .big,
  body.on-result .result-btns > #btn-again,
  body.on-result .result-btns > #btn-rematch-ready{padding:9px 8px!important;font-size:14px!important}
  body.on-result .result-btns-row > *{padding:8px 4px!important;font-size:11px!important}
}
@media (max-width:520px){
  body.on-result .result-btns,
  body.on-result .result-btns-dock{left:8px!important;right:8px!important;max-width:calc(100% - 16px)!important}
}

/* —— v322：结算独立页 · 版本/复制BUG · 主CTA分行 · 次要按钮单行 —— */
body.on-result .topbar,
body.land.on-result .topbar,
body.fake-land.on-result .topbar,
body.port-pad.on-result .topbar,
body.on-result #notice-bar,
body.on-result .mp-float,
body.on-result #btn-mp-float{display:none!important}
body.on-result #app,
body.land.on-result #app,
body.fake-land.on-result #app,
body.port-pad.on-result #app{
  padding:0!important;height:100dvh!important;max-height:100dvh!important}
body.on-result #screen-result,
body.land.on-result #screen-result,
body.fake-land.on-result #screen-result,
body.port-pad.on-result #screen-result{
  display:flex!important;flex-direction:column!important;
  width:100%!important;height:100%!important;min-height:0!important;
  padding:0!important;overflow:hidden!important;gap:0!important}
body.on-result .result-meta{
  flex:0 0 auto;display:flex;align-items:center;gap:8px;
  margin:0;padding:6px 10px;box-sizing:border-box;
  width:100%;z-index:90;
  background:linear-gradient(180deg,#17102e,#2a2148);
  color:#ffe08a;border-bottom:3px solid #17102e}
body.on-result .result-meta .result-ver{
  flex:0 0 auto;font-size:12px;font-weight:900;letter-spacing:.5px;
  padding:2px 8px;border-radius:999px;border:2px solid #ffe08a;background:#17102e}
body.on-result .result-meta .result-meta-tip{
  flex:1 1 auto;min-width:0;font-size:11px;font-weight:800;opacity:.85;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.on-result .result-meta #btn-copy-bug{
  flex:0 0 auto;margin:0;padding:4px 10px;font-size:11px;font-weight:900;
  border:2px solid #ffe08a;border-radius:999px;background:#ffe08a;color:#17102e;
  box-shadow:none;min-width:0;white-space:nowrap}
body.on-result .result-card,
body.land.on-result .result-card,
body.fake-land.on-result .result-card,
body.port-pad.on-result .result-card{
  flex:1 1 auto!important;height:auto!important;max-height:none!important;
  width:min(980px,100%)!important;margin:0 auto!important;
  padding:8px 10px!important;
  padding-bottom:calc(var(--result-dock-h, 140px) + 14px + env(safe-area-inset-bottom,0px))!important;
  overflow:auto!important;-webkit-overflow-scrolling:touch;
  border-radius:0!important;border-left:0!important;border-right:0!important;
  box-shadow:none!important}
body.on-result .result-btns,
body.on-result .result-btns-dock,
body.land.on-result .result-btns,
body.land.on-result .result-btns-dock,
body.fake-land.on-result .result-btns,
body.fake-land.on-result .result-btns-dock,
body.port-pad.on-result .result-btns,
body.port-pad.on-result .result-btns-dock{
  position:fixed!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;
  bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
  z-index:95!important;width:min(980px,calc(100% - 16px))!important;
  display:flex!important;flex-direction:column!important;gap:6px!important;
  grid-template-columns:none!important;padding:8px!important;
  background:linear-gradient(180deg,rgba(255,249,234,.98),rgba(255,236,196,.99))!important;
  border:3px solid #17102e!important;border-radius:14px!important;
  box-shadow:0 4px 0 #17102e,0 10px 24px rgba(0,0,0,.28)!important}
/* 主 CTA 各占一行，不和次要按钮挤 */
body.on-result .result-btns > #btn-again,
body.on-result .result-btns > #btn-rematch-ready,
body.land.on-result .result-btns > #btn-again,
body.land.on-result .result-btns > #btn-rematch-ready,
body.fake-land.on-result .result-btns > #btn-again,
body.fake-land.on-result .result-btns > #btn-rematch-ready,
body.port-pad.on-result .result-btns > #btn-again,
body.port-pad.on-result .result-btns > #btn-rematch-ready{
  display:block!important;width:100%!important;flex:0 0 auto!important;
  margin:0!important;padding:11px 10px!important;font-size:15px!important;
  grid-column:auto!important}
body.on-result .result-btns > #btn-rematch-ready[hidden],
body.on-result .result-btns-row > [hidden]{display:none!important}
/* 次要按钮：短宽、强制单行 */
body.on-result .result-btns-row,
body.land.on-result .result-btns-row,
body.fake-land.on-result .result-btns-row,
body.port-pad.on-result .result-btns-row{
  display:flex!important;flex-wrap:nowrap!important;gap:4px!important;
  width:100%!important;align-items:stretch!important;
  grid-template-columns:none!important}
body.on-result .result-btns-row > *,
body.land.on-result .result-btns-row > *,
body.fake-land.on-result .result-btns-row > *,
body.port-pad.on-result .result-btns-row > *{
  flex:1 1 0!important;min-width:0!important;width:auto!important;
  padding:7px 4px!important;font-size:12px!important;font-weight:900!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.on-result .result-btns-row #btn-result-home{font-weight:900!important}
@media (max-height:420px){
  body.on-result .result-meta{padding:4px 8px}
  body.on-result .result-btns,
  body.on-result .result-btns-dock{padding:6px!important;gap:4px!important}
  body.on-result .result-btns > #btn-again,
  body.on-result .result-btns > #btn-rematch-ready{padding:9px 8px!important;font-size:14px!important}
  body.on-result .result-btns-row > *{padding:6px 3px!important;font-size:11px!important}
}

/* —— v327：真横屏/竖屏用 fixed 浮栏（留边）；仅 fake-land 用文档流（rotate 下 fixed 会撑满） —— */
body.on-result #screen-result,
body.land.on-result #screen-result,
body.port-pad.on-result #screen-result{
  display:flex!important;flex-direction:column!important;
  align-items:stretch!important;justify-content:flex-start!important;
  width:100%!important;height:100%!important;min-height:0!important;
  padding:0!important;overflow:hidden!important;gap:0!important;
  position:relative!important}
body.on-result .result-meta{
  flex:0 0 auto!important;position:relative!important;z-index:6!important}
body.on-result .result-card,
body.land.on-result .result-card,
body.port-pad.on-result .result-card{
  flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;
  width:100%!important;margin:0!important;
  padding:8px 10px!important;
  padding-bottom:calc(var(--result-dock-h, 132px) + 16px + env(safe-area-inset-bottom,0px))!important;
  overflow:auto!important;-webkit-overflow-scrolling:touch;
  position:relative!important;z-index:1!important;
  border-radius:0!important;box-shadow:none!important}
/* 真机：浮在底部的圆角栏，左右+底留白 */
body.on-result .result-btns,
body.on-result .result-btns-dock,
body.land.on-result .result-btns,
body.land.on-result .result-btns-dock,
body.port-pad.on-result .result-btns,
body.port-pad.on-result .result-btns-dock{
  position:fixed!important;left:50%!important;right:auto!important;top:auto!important;
  bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
  transform:translateX(-50%)!important;inset:auto!important;
  width:min(980px,calc(100% - 20px))!important;max-width:calc(100% - 20px)!important;
  height:auto!important;max-height:none!important;
  margin:0!important;padding:8px!important;box-sizing:border-box!important;
  display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;
  align-items:stretch!important;justify-content:flex-start!important;gap:5px!important;
  grid-template-columns:none!important;grid-template-rows:none!important;
  z-index:95!important;
  background:linear-gradient(180deg,rgba(255,249,234,.98),rgba(255,236,196,.99))!important;
  border:3px solid #17102e!important;
  border-radius:14px!important;
  box-shadow:0 4px 0 #17102e,0 10px 24px rgba(0,0,0,.28)!important}
body.on-result .result-btns > #btn-again,
body.on-result .result-btns > #btn-rematch-ready,
body.land.on-result .result-btns > #btn-again,
body.land.on-result .result-btns > #btn-rematch-ready,
body.port-pad.on-result .result-btns > #btn-again,
body.port-pad.on-result .result-btns > #btn-rematch-ready,
body.on-result .result-btns > .big,
body.on-result .result-btns > .result-cta-main{
  position:relative!important;display:block!important;
  flex:0 0 auto!important;align-self:stretch!important;
  width:100%!important;height:auto!important;min-height:0!important;max-height:44px!important;
  margin:0!important;padding:9px 8px!important;font-size:14px!important;line-height:1.2!important;
  box-sizing:border-box!important;grid-column:auto!important}
body.on-result .result-btns > #btn-rematch-ready[hidden],
body.on-result .result-btns-row > [hidden]{display:none!important}
body.on-result .result-btns-row,
body.land.on-result .result-btns-row,
body.port-pad.on-result .result-btns-row{
  position:relative!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  flex:0 0 auto!important;align-items:stretch!important;justify-content:stretch!important;
  width:100%!important;height:auto!important;max-height:38px!important;gap:4px!important;
  grid-template-columns:none!important}
body.on-result .result-btns-row > *,
body.land.on-result .result-btns-row > *,
body.port-pad.on-result .result-btns-row > *{
  position:relative!important;flex:1 1 0!important;
  width:auto!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:36px!important;
  margin:0!important;padding:6px 3px!important;font-size:12px!important;line-height:1.15!important;
  box-sizing:border-box!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  grid-column:auto!important}
body.on-result .result-btns > *,
body.land.on-result .result-btns > *{align-self:stretch!important}
@media (max-height:420px){
  body.on-result .result-btns,
  body.on-result .result-btns-dock{padding:5px!important;gap:3px!important}
  body.on-result .result-btns > #btn-again,
  body.on-result .result-btns > #btn-rematch-ready{padding:7px 6px!important;font-size:13px!important;max-height:36px!important}
  body.on-result .result-btns-row > *{padding:5px 2px!important;font-size:11px!important;max-height:30px!important}
}

/* fake-land：文档流底栏，禁止 fixed（#app rotate 会把 fixed 拉成整屏竖条） */
body.fake-land.on-result #screen-result{
  display:flex!important;flex-direction:column!important;
  width:100%!important;height:100%!important;min-height:0!important;
  padding:0!important;overflow:hidden!important;position:relative!important}
body.fake-land.on-result .result-card{
  flex:1 1 auto!important;min-height:0!important;width:100%!important;margin:0!important;
  padding:8px 10px!important;padding-bottom:8px!important;overflow:auto!important}
body.fake-land.on-result .result-btns,
body.fake-land.on-result .result-btns-dock{
  position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  transform:none!important;inset:auto!important;
  flex:0 0 auto!important;align-self:stretch!important;
  width:100%!important;max-width:100%!important;height:auto!important;
  margin:0!important;padding:6px 8px!important;gap:4px!important;
  z-index:6!important;
  border-radius:14px 14px 0 0!important;
  border-left:0!important;border-right:0!important;border-bottom:0!important;
  box-shadow:0 -4px 16px rgba(0,0,0,.18)!important}
body.fake-land.on-result .result-btns > #btn-again,
body.fake-land.on-result .result-btns > #btn-rematch-ready{
  max-height:40px!important;padding:8px 6px!important;font-size:13px!important}
body.fake-land.on-result .result-btns-row{max-height:34px!important}
body.fake-land.on-result .result-btns-row > *{max-height:32px!important;padding:5px 2px!important;font-size:11px!important}

.dog-cell.face-left img,.dog-cell.face-left canvas{transform:scaleX(-1)}


/* —— 个人主页波普头图（紧凑） —— */
.profile-hero.pop-hero{
  position:relative;overflow:hidden;
  display:grid;grid-template-columns:56px 1fr;gap:6px 10px;align-items:center;
  padding:8px 12px 8px;
  background:
    radial-gradient(circle at 10px 10px, rgba(0,0,0,.18) 1.5px, transparent 2.5px) 0 0/12px 12px,
    linear-gradient(135deg,#ff3d7f 0%,#ff3d7f 28%,#ffd23f 28%,#ffd23f 55%,#3ec6ff 55%,#3ec6ff 78%,#7cff6b 78%,#7cff6b 100%);
  border-bottom:3px solid #111;
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.14);
}
.profile-hero.pop-hero::before{display:none}
.profile-hero.pop-hero .profile-avatar{
  width:52px;height:52px;border:3px solid #111;border-radius:12px;
  box-shadow:3px 3px 0 #111;background:#fff;overflow:hidden;z-index:2
}
.profile-hero.pop-hero .profile-avatar i{
  font-size:9px;padding:1px 0;background:#111;color:#ffd23f;font-weight:900;border-top:2px solid #111
}
.profile-hero.pop-hero .profile-id{
  display:flex;flex-direction:column;gap:5px;min-width:0
}
.profile-id-top{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-width:0}
.profile-hero.pop-hero .profile-id b{
  display:inline-block;max-width:min(100%,180px);font-size:16px;font-weight:900;color:#111;
  padding:1px 6px;background:#fff;border:2px solid #111;box-shadow:2px 2px 0 #111;
  text-shadow:none;transform:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.profile-hero.pop-hero .profile-id em{
  margin:0;color:#111;background:#ff9ad5;border:2px solid #111;border-radius:6px;
  box-shadow:1px 1px 0 #111;padding:1px 6px;font-size:10px;font-weight:900
}
.profile-hero.pop-hero .profile-rank-pill{
  margin:0;color:#111;background:#7cff6b;border:2px solid #111;border-radius:6px;
  box-shadow:1px 1px 0 #111;padding:1px 6px;font-size:10px;font-weight:900
}
.profile-hero.pop-hero .profile-stats{
  display:flex;flex-wrap:nowrap;gap:4px;margin:0;padding:0;background:transparent;min-width:0
}
.profile-hero.pop-hero .profile-stat{
  flex:1 1 0;min-width:0;display:flex;align-items:baseline;justify-content:center;gap:3px;
  text-align:center;padding:3px 4px;border-radius:8px;border:2px solid #111;
  background:#fff;box-shadow:2px 2px 0 #111
}
.profile-hero.pop-hero .profile-stat:nth-child(1){background:#ffe566}
.profile-hero.pop-hero .profile-stat:nth-child(2){background:#ff9ad5}
.profile-hero.pop-hero .profile-stat:nth-child(3){background:#7ad7ff}
.profile-hero.pop-hero .profile-stat:nth-child(4){background:#b8ff8a}
.profile-hero.pop-hero .profile-stat b{color:#111;font-size:13px;font-weight:900;line-height:1}
.profile-hero.pop-hero .profile-stat span{color:#333;font-size:9px;font-weight:900;margin:0;white-space:nowrap}

@media(max-width:720px){
  .profile-hero.pop-hero{grid-template-columns:48px 1fr;padding:6px 8px;gap:6px 8px}
  .profile-hero.pop-hero .profile-avatar{width:46px;height:46px}
  .profile-hero.pop-hero .profile-id b{font-size:14px;max-width:120px}
  .profile-hero.pop-hero .profile-stat{padding:2px 3px;gap:2px}
  .profile-hero.pop-hero .profile-stat b{font-size:12px}
  .profile-hero.pop-hero .profile-stat span{font-size:8px}
}

.profile-acc-strip{
  display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  margin:0 0 8px;padding:8px 10px;border:3px solid #17102e;border-radius:12px;
  background:linear-gradient(180deg,#fffdf2,#ffe7a8);box-shadow:3px 3px 0 rgba(23,16,46,.35)
}
.profile-acc-strip-main{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;flex:1}
.profile-acc-strip-main span{font-size:12px;font-weight:800;color:#4a3208}
.profile-acc-strip-main b{font-size:15px;font-weight:900;color:#17102e;letter-spacing:.04em;font-variant-numeric:tabular-nums}
.profile-acc-strip .primary{flex:0 0 auto;padding:8px 12px;font-size:12px;font-weight:900;white-space:nowrap}

@media(max-width:720px){
  .profile-hero.pop-hero{grid-template-columns:64px 1fr;padding:14px 12px 12px}
  .profile-hero.pop-hero .profile-avatar{width:60px;height:60px}
  .profile-hero.pop-hero .profile-id b{font-size:17px}
  .profile-hero.pop-hero .profile-stats{gap:4px}
  .profile-hero.pop-hero .profile-stat{padding:6px 2px}
  .profile-hero.pop-hero .profile-stat b{font-size:14px}
}


/* —— 赛季面板波普风 —— */
#panel-season .panel.pop-season,
.panel.pop-season{
  background:
    radial-gradient(circle at 10px 10px, rgba(0,0,0,.18) 2px, transparent 3px) 0 0/16px 16px,
    linear-gradient(180deg,#fff7d6 0%,#ffe8a8 40%,#ffd6ef 100%);
  border:4px solid #111;
  box-shadow:6px 6px 0 #111;
}
.panel.pop-season>.panel-close{border:3px solid #111;background:#ff5c8a;color:#fff;font-weight:900;box-shadow:2px 2px 0 #111}
.season-hero{
  position:relative;margin:0 0 10px;padding:12px 14px 10px;
  background:linear-gradient(120deg,#ff3d7f 0 34%,#ffd23f 34% 66%,#3ec6ff 66% 100%);
  border:4px solid #111;border-radius:14px;box-shadow:4px 4px 0 #111;
}
.season-hero h2{
  margin:0 0 4px;display:inline-block;padding:4px 10px;font-size:20px;font-weight:900;color:#111;
  background:#fff;border:3px solid #111;box-shadow:3px 3px 0 #111;transform:rotate(-1.5deg)
}
.season-hero .panel-sub{
  margin:8px 0 0;padding:6px 8px;font-size:12px;font-weight:800;color:#111;line-height:1.35;
  background:rgba(255,255,255,.88);border:3px solid #111;border-radius:10px
}
.season-hero::after{
  content:"SEASON";position:absolute;top:8px;right:10px;
  font-size:10px;font-weight:900;letter-spacing:.14em;color:#111;
  padding:2px 7px;border:3px solid #111;background:#7cff6b;transform:rotate(7deg);box-shadow:2px 2px 0 #111
}

/* 覆盖窄侧栏 120px，波普卡需要更宽 */
body.land .mask #panel-season .season-side.side-split,
body.fake-land .mask #panel-season .season-side.side-split,
body.port-pad .mask #panel-season .season-side.side-split,
#panel-season .season-side.side-split{
  display:grid!important;
  grid-template-columns:minmax(210px,.95fr) minmax(0,1.25fr)!important;
  gap:12px!important;align-items:stretch!important;min-height:0!important;overflow:hidden!important
}

#panel-season .season-box{
  margin:0;padding:10px;overflow:auto;min-height:0;
  background:#fff;
  border:4px solid #111;border-radius:14px;box-shadow:4px 4px 0 #111
}
.season-rank-card{
  display:flex;flex-direction:column;gap:4px;align-items:flex-start;
  margin:0 0 10px;padding:10px 12px;
  background:#ff9ad5;border:3px solid #111;border-radius:12px;box-shadow:3px 3px 0 #111
}
.season-rank-card span{font-size:11px;font-weight:900;color:#111}
.season-rank-card b{font-size:22px;font-weight:900;color:#111;line-height:1.1;letter-spacing:.02em}
.season-stat-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px
}
.season-stat{
  display:flex;flex-direction:column;gap:4px;padding:8px;
  border:3px solid #111;border-radius:12px;box-shadow:3px 3px 0 #111;background:#fff
}
.season-stat.s1{background:#ffe566}
.season-stat.s2{background:#7ad7ff}
.season-stat.s3{background:#b8ff8a}
.season-stat.s4{background:#ffc48a;grid-column:1/-1}
.season-stat span{font-size:10px;font-weight:900;color:#333}
.season-stat b{font-size:15px;font-weight:900;color:#111}
#panel-season .season-bar{
  height:12px;margin:2px 0 0;border:3px solid #111;border-radius:999px;background:#fff;overflow:hidden;box-shadow:inset 2px 2px 0 rgba(0,0,0,.08)
}
#panel-season .season-bar>i{
  display:block;height:100%;width:0;border-radius:999px;
  background:repeating-linear-gradient(90deg,#ff3d7f 0 8px,#111 8px 10px,#ffd23f 10px 18px,#111 18px 20px)
}
.season-tips{display:flex;flex-direction:column;gap:6px;margin:0 0 8px}
#panel-season .season-tips .panel-note,
#panel-season .season-box .panel-note{
  margin:0;padding:7px 9px;font-size:11px;font-weight:800;color:#111;line-height:1.35;
  background:#fff7c2;border:3px solid #111;border-radius:10px;box-shadow:2px 2px 0 #111
}
#panel-season .season-tips .panel-note:nth-child(2){background:#d9f4ff}
#panel-season .season-tips .panel-note:nth-child(3){background:#ffe0f0}
#panel-season .gold-claim{
  width:100%;border:3px solid #111!important;box-shadow:3px 3px 0 #111!important;
  background:linear-gradient(180deg,#ffe566,#ffb703)!important;color:#111!important;font-weight:900!important
}

#panel-season .season-ladder{
  display:flex;flex-direction:column;min-height:0;overflow:hidden;
  background:#fff;border:4px solid #111;border-radius:14px;box-shadow:4px 4px 0 #111;padding:8px
}
#panel-season .ladder-head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin:0 0 8px;padding:8px 10px;
  background:#3ec6ff;border:3px solid #111;border-radius:10px;box-shadow:3px 3px 0 #111
}
#panel-season .ladder-head b{font-size:14px;font-weight:900;color:#111}
#panel-season .ladder-head span{
  font-size:11px;font-weight:900;color:#111;padding:2px 8px;background:#fff;border:2px solid #111;border-radius:999px
}
#panel-season .ladder-list{
  flex:1;min-height:0;max-height:none!important;overflow:auto;
  border:3px solid #111;border-radius:12px;background:
    radial-gradient(circle at 8px 8px, rgba(0,0,0,.12) 1.5px, transparent 2px) 0 0/12px 12px,
    #fffdf2
}
#panel-season .ladder-item{
  display:grid;grid-template-columns:48px 1fr auto;gap:8px;align-items:center;
  margin:6px;padding:8px 10px;
  border:3px solid #111;border-radius:12px;background:#fff;box-shadow:3px 3px 0 #111;
  border-bottom:3px solid #111;font-size:12px
}
#panel-season .ladder-item:last-child{border-bottom:3px solid #111}
#panel-season .ladder-item b{
  display:inline-flex;align-items:center;justify-content:center;min-width:40px;padding:4px 0;
  font-size:13px;font-weight:900;color:#111;background:#ffe566;border:3px solid #111;border-radius:10px
}
#panel-season .ladder-item.top3 b{background:#ff5c8a;color:#fff}
#panel-season .ladder-item.me{background:#e8ffb8}
#panel-season .ladder-item em{font-style:normal;font-weight:900;color:#111}
#panel-season .ladder-item span{font-weight:800;color:#333}
#panel-season .ladder-item>span:last-child{
  font-weight:900;color:#111;padding:3px 8px;background:#7ad7ff;border:2px solid #111;border-radius:999px;white-space:nowrap
}
#panel-season .panel-foot{
  margin-top:10px;padding-top:8px;border-top:3px solid #111
}
#panel-season .panel-foot .primary,
#panel-season .panel-foot .ghost{
  border:3px solid #111!important;box-shadow:3px 3px 0 #111!important;font-weight:900!important
}
#panel-season .panel-foot .primary{background:#ffd23f!important;color:#111!important}
#panel-season .panel-foot .ghost{background:#fff!important;color:#111!important}

@media(max-width:720px){
  body.land .mask #panel-season .season-side.side-split,
  body.fake-land .mask #panel-season .season-side.side-split,
  #panel-season .season-side.side-split{
    grid-template-columns:1fr!important;
    grid-template-rows:auto minmax(180px,1fr)!important
  }
  .season-hero h2{font-size:16px}
  .season-rank-card b{font-size:18px}
}

.char-shop-thumb{
  display:block;width:100%;aspect-ratio:1;border-radius:10px;overflow:hidden;
  border:2px solid #17102e;background:linear-gradient(180deg,#f7f2ea,#e8dfd2);margin:0 0 4px
}
.char-shop-thumb img{width:100%;height:100%;object-fit:contain;object-position:center 55%;display:block}
#btn-chars-buy{margin-right:auto;background:linear-gradient(#fff7d1,#ffd36b);color:#17102e}
#btn-chars-buy.is-deny{background:linear-gradient(#ffe0e8,#ff8fab);color:#7a1028}
.chars-tip{
  margin:8px 0 0;padding:8px 10px;border:2px solid #17102e;border-radius:10px;
  background:#fff7e6;color:#17102e;font-size:12px;font-weight:900;line-height:1.35
}
.chars-tip.bad{background:linear-gradient(180deg,#fff0f3,#ffd6df);color:#9b1c3a;border-color:#c2255c}

/* 公告 · 角色调整 / 增强投票 */
.char-vote-box{
  margin-top:10px;padding:10px 12px;border:3px solid #17102e;border-radius:14px;
  background:linear-gradient(180deg,#fffdf4,#ffe7b0);
  display:flex;flex-direction:column;gap:8px
}
.char-vote-head b{display:block;font-size:14px;color:#17102e;margin:0 0 4px}
.char-vote-head p{margin:0;font-size:12px;line-height:1.45;color:#4a3208;font-weight:700}
.char-vote-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.char-vote-label{flex:1 1 100%;font-size:12px;font-weight:900;color:#17102e}
.char-vote-select{flex:1 1 160px;min-width:140px;max-width:100%}
#btn-char-vote{flex:0 0 auto;white-space:nowrap}
.char-vote-rank{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.char-vote-rank-item{
  display:flex;align-items:center;gap:8px;padding:6px 8px;border:2px solid #17102e;
  border-radius:12px;background:#fff
}
.char-vote-rank-item i{
  flex:0 0 22px;height:22px;border-radius:999px;display:flex;align-items:center;justify-content:center;
  background:#17102e;color:#ffd76a;font-style:normal;font-size:12px;font-weight:900
}
.char-vote-rank-item img{width:36px;height:36px;object-fit:cover;border-radius:8px;border:2px solid #17102e;background:#f3ebe0}
.char-vote-rank-item b{flex:1 1 auto;font-size:13px;color:#17102e}
.char-vote-rank-item span{font-size:12px;font-weight:900;color:#c2255c}
.announce-item .ann-date,.announce-item.balance-item em{
  display:block;margin-top:6px;font-style:normal;font-size:11px;font-weight:800;color:#8a5a18
}
#panel-announce .announce-item.balance-item{border-color:rgba(230,119,0,.45);background:linear-gradient(180deg,rgba(255,247,209,.95),rgba(255,227,160,.9))}
