/* ============================================================
   灵域争锋 · 5V5 国风竞技
   深墨青 + 鎏金 #FF8A3D · 移动端竖屏满屏
   ============================================================ */
:root {
  --gold: #FF8A3D;
  --gold-hi: #FFD08E;
  --gold-deep: #C9530F;
  --jade: #57E0C0;
  --jade-soft: #9BF6E3;
  --blood: #FF5A64;
  --violet: #B07BFF;
  --sky: #4FD8FF;
  --ink: #050B0C;
  --ink-2: #081315;
  --panel: #0C1A1C;
  --line: rgba(255, 170, 112, 0.16);
  --line-soft: rgba(180, 230, 220, 0.09);
  --text: #F3ECDF;
  --muted: #8CA3A0;
  --muted-2: #627673;
  --serif: "STKaiti", "Kaiti SC", "KaiTi", "Songti SC", "Noto Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --hud-top: 58px;
  --hud-bottom: 196px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: #020607;
  color: var(--text);
  font-family: var(--sans);
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
  -webkit-font-smoothing: antialiased;
}
body { overflow: hidden; }
button { font-family: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em, b, i { font-style: normal; }
p, h1, h2, h3 { margin: 0; }
.mp-icon { width: 18px; height: 18px; flex: none; }
.hide { display: none !important; }

.app {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 100%;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 80px rgba(0, 0, 0, .9);
}
@media (min-width: 561px) {
  body { background: radial-gradient(circle at 50% 20%, #0C1F1E 0%, #020607 60%); }
  .app { border-left: 1px solid rgba(255, 160, 100, .08); border-right: 1px solid rgba(255, 160, 100, .08); }
}

/* ---------------- 大厅 ---------------- */
.lobby { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; }
.scene { position: absolute; inset: 0; z-index: 0; background: #06100F; }
.scene-svg { width: 100%; height: 100%; display: block; }
.scene-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 50% 26%, rgba(0, 0, 0, 0) 0%, rgba(2, 7, 8, .28) 58%, rgba(2, 6, 7, .86) 100%),
    linear-gradient(180deg, rgba(2, 7, 8, .55) 0%, rgba(2, 7, 8, 0) 24%, rgba(2, 7, 8, .16) 56%, rgba(2, 7, 8, .92) 82%, #040A0B 100%);
}
.scene-embers { position: absolute; inset: 0; overflow: hidden; }
.ember {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #FFC27A; box-shadow: 0 0 8px 2px rgba(255, 138, 61, .55);
  opacity: 0; animation: emberRise linear infinite;
}
@keyframes emberRise {
  0% { transform: translate3d(0, 20px, 0) scale(.6); opacity: 0; }
  16% { opacity: .85; }
  80% { opacity: .35; }
  100% { transform: translate3d(18px, -220px, 0) scale(1.1); opacity: 0; }
}
.frame {
  position: absolute; inset: 6px; z-index: 1; pointer-events: none;
  border: 1.5px solid rgba(255, 168, 100, .24); border-radius: 20px;
  box-shadow: inset 0 0 44px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 200, 150, .05), 0 0 20px rgba(255, 138, 61, .08);
}
.frame::before {
  content: ""; position: absolute; inset: 4px; border-radius: 16px;
  border: 1px solid rgba(255, 210, 160, .12);
  box-shadow: inset 0 0 26px rgba(255, 138, 61, .05);
}
.frame i { position: absolute; width: 30px; height: 30px; border: 2px solid rgba(255, 180, 120, .62); filter: drop-shadow(0 0 6px rgba(255, 138, 61, .25)); }
.frame i:nth-child(1) { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.frame i:nth-child(2) { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.frame i:nth-child(3) { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.frame i:nth-child(4) { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }

.lobby-scroll {
  position: relative; z-index: 2; flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding: max(10px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom));
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lobby-scroll::-webkit-scrollbar { display: none; }

/* 顶部玩家条 */
.hud-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.player-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(9, 22, 23, .9), rgba(9, 20, 21, .55));
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
  max-width: 56%;
  transition: transform .15s;
}
.player-chip:active { transform: scale(.97); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, #1F4A45, #0B2321);
  border: 1px solid rgba(255, 196, 140, .5);
  box-shadow: 0 0 0 2px rgba(255, 138, 61, .12), inset 0 0 12px rgba(87, 224, 192, .22);
  color: var(--gold-hi); font-family: var(--serif); font-size: 18px; font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pinfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pname { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; letter-spacing: .02em; }
.prank { display: flex; align-items: center; gap: 3px; color: var(--gold); font-size: 10px; letter-spacing: .04em; }
.prank .mp-icon { width: 11px; height: 11px; }
.hud-right { display: flex; align-items: center; gap: 6px; }
.wallet {
  display: flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 9px; border-radius: 999px;
  background: rgba(6, 16, 17, .72); border: 1px solid var(--line-soft);
  font-size: 11px; color: var(--gold-hi); font-weight: 600;
}
.wallet .mp-icon { width: 13px; height: 13px; color: var(--gold); }
.wallet.gem { color: #9BE7FF; }
.gem-dot {
  width: 9px; height: 9px; flex: none; transform: rotate(45deg);
  border-radius: 2px;
  background: linear-gradient(135deg, #D8F7FF, #43B8E8 55%, #186E9E);
  box-shadow: 0 0 6px rgba(79, 216, 255, .5);
}
.pause-bars { display: flex; gap: 3px; align-items: center; }
.pause-bars i { width: 3px; height: 12px; border-radius: 1px; background: currentColor; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(6, 16, 17, .72); border: 1px solid var(--line-soft);
  color: var(--muted); transition: transform .15s, color .15s;
}
.icon-btn:active { transform: scale(.92); color: var(--text); }
.icon-btn.small { width: 32px; height: 32px; }

/* 品牌区 */
.brand { position: relative; margin-top: clamp(10px, 3vh, 26px); text-align: center; }
.brand::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 48%;
  width: 118%; height: 168%; transform: translate(-50%, -50%);
  background: radial-gradient(58% 58% at 50% 50%, rgba(2, 8, 9, .62) 0%, rgba(2, 8, 9, .34) 48%, rgba(2, 8, 9, 0) 74%);
  pointer-events: none;
}
.season {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 12px 3px 4px; border-radius: 999px;
  background: rgba(255, 138, 61, .08);
  border: 1px solid rgba(255, 138, 61, .24);
  color: var(--gold-hi); font-size: 10px; letter-spacing: .12em;
}
.season .s1 {
  background: linear-gradient(135deg, #FFC178, #E3611B);
  color: #200B02; font-weight: 800; font-size: 10px;
  padding: 2px 7px; border-radius: 999px; letter-spacing: .04em;
}
.season .s2 { color: rgba(255, 210, 170, .75); }
.title {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(42px, 13.2vw, 60px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: .06em;
  color: #F6EAD6;
  text-shadow: 0 0 30px rgba(0, 0, 0, .78), 0 0 22px rgba(255, 170, 100, .22), 0 4px 0 rgba(0, 0, 0, .55);
}
.title .gold {
  background: linear-gradient(180deg, #FFEFCB 0%, #FFC078 42%, #FF8A3D 72%, #D95C11 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 138, 61, .35));
}
.tagline { margin-top: 6px; font-size: 11px; color: rgba(214, 235, 229, .62); letter-spacing: .28em; text-indent: .28em; }
.brand-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 9px; }
.brand-line i { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 170, 110, .45)); }
.brand-line i:last-child { background: linear-gradient(90deg, rgba(255, 170, 110, .45), transparent); }
.brand-line b { font-size: 8px; letter-spacing: .36em; color: rgba(255, 180, 120, .55); font-weight: 500; }

/* 模式 */
.mode-row { margin-top: clamp(10px, 2.4vh, 20px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mode {
  position: relative; overflow: hidden;
  padding: 9px 8px 8px; border-radius: 13px; text-align: left;
  background: linear-gradient(160deg, rgba(14, 31, 32, .86), rgba(6, 15, 16, .78));
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform .16s, border-color .2s, background .2s;
}
.mode:active { transform: scale(.97); }
.mode-top { display: flex; align-items: center; gap: 4px; }
.mode-top .mp-icon { width: 15px; height: 15px; color: var(--muted); }
.mode-top em { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.mode-sub { display: block; margin-top: 3px; font-size: 9px; color: var(--muted-2); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode.on {
  border-color: rgba(255, 160, 90, .62);
  background: linear-gradient(160deg, rgba(74, 39, 15, .82), rgba(24, 18, 13, .9));
  box-shadow: 0 0 0 1px rgba(255, 138, 61, .18), 0 6px 20px rgba(255, 110, 30, .14), inset 0 1px 0 rgba(255, 220, 170, .18);
}
.mode.on .mode-top .mp-icon { color: var(--gold); }
.mode.on .mode-top em { color: #FFE1C2; }
.mode.on .mode-sub { color: rgba(255, 196, 150, .72); }
.mode.on::after {
  content: ""; position: absolute; top: 0; right: 0;
  border-top: 13px solid var(--gold); border-left: 13px solid transparent;
  opacity: .8;
}

/* 通用面板 */
.panel {
  margin-top: 10px; padding: 10px 12px;
  border-radius: 15px;
  background: linear-gradient(165deg, rgba(12, 27, 28, .82), rgba(5, 13, 14, .86));
  border: 1px solid var(--line-soft);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* 阵容 */
.line-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.team-tag { font-size: 10px; letter-spacing: .18em; padding: 2px 8px; border-radius: 4px; }
.team-tag.ally { color: var(--jade-soft); background: rgba(87, 224, 192, .09); border: 1px solid rgba(87, 224, 192, .2); }
.team-tag.enemy { color: #FFB3B8; background: rgba(255, 90, 100, .09); border: 1px solid rgba(255, 90, 100, .2); }
.line-head .vs { font-family: var(--serif); font-size: 12px; color: rgba(255, 190, 130, .6); letter-spacing: .2em; }
.lineup { display: flex; flex-direction: column; gap: 7px; }
.line-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.slot-av {
  position: relative; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 15px; font-weight: 700;
  background: linear-gradient(150deg, #1B3A38, #0A1B1B);
  border: 1px solid rgba(87, 224, 192, .3);
  color: var(--jade-soft);
  box-shadow: inset 0 0 12px rgba(87, 224, 192, .14);
}
.line-row.enemy .slot-av { background: linear-gradient(150deg, #3A1B1E, #1B0A0B); border-color: rgba(255, 90, 100, .32); color: #FFC0C4; box-shadow: inset 0 0 12px rgba(255, 90, 100, .14); }
.slot.me .slot-av { border-color: var(--gold); color: #FFE3C2; background: linear-gradient(150deg, #4A2A13, #1D1109); box-shadow: 0 0 0 2px rgba(255, 138, 61, .18), inset 0 0 14px rgba(255, 138, 61, .2); }
.slot.me .slot-av::after { content: "你"; position: absolute; bottom: -3px; right: -3px; font-family: var(--sans); font-size: 7px; background: var(--gold); color: #2A0E00; border-radius: 4px; padding: 0 3px; font-weight: 800; }
.slot-name { font-size: 9px; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-row.enemy .slot-name { color: rgba(255, 153, 158, .62); }

/* 段位 */
.rank-panel { display: flex; align-items: center; gap: 11px; }
.rank-badge {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 19px; font-weight: 800;
  color: #2A1400;
  background: linear-gradient(150deg, #FFE0B0, #FFA95C 55%, #E3691D);
  box-shadow: 0 4px 14px rgba(255, 138, 61, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
  transform: rotate(-3deg);
}
.rank-main { flex: 1; min-width: 0; }
.rank-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rank-title span { font-size: 13px; font-weight: 700; color: #FFD9B0; letter-spacing: .04em; }
.rank-title em { font-size: 9px; color: var(--muted-2); font-style: normal; }
.stars { display: flex; gap: 3px; margin-top: 5px; }
.stars i {
  width: 11px; height: 11px; border-radius: 2px; transform: rotate(45deg);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .09);
}
.stars i.on { background: linear-gradient(135deg, #FFD08E, #FF8A3D); border-color: #FFC47C; box-shadow: 0 0 6px rgba(255, 138, 61, .55); }
.rank-next { text-align: center; flex: none; padding-left: 9px; border-left: 1px solid var(--line-soft); }
.rank-next b { display: block; font-size: 16px; color: var(--gold-hi); font-family: var(--serif); }
.rank-next span { font-size: 8px; color: var(--muted-2); letter-spacing: .06em; }

/* 晋级赛 / 每日首胜 */
.status-stack { display: flex; flex-direction: column; gap: 6px; margin-top: 7px; }
.promo-strip, .daily-strip {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 7px 10px; border-radius: 12px; text-align: left;
  transition: transform .14s, border-color .18s;
}
.promo-strip {
  background: linear-gradient(100deg, rgba(82, 23, 19, .62), rgba(17, 14, 13, .82));
  border: 1px solid rgba(255, 90, 100, .28);
  box-shadow: inset 0 1px 0 rgba(255, 190, 170, .06);
  animation: promoGlow 2.8s ease-in-out infinite;
}
@keyframes promoGlow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 190, 170, .06), 0 0 0 rgba(255, 90, 100, 0); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 190, 170, .08), 0 0 16px rgba(255, 90, 100, .14); }
}
.daily-strip {
  background: linear-gradient(100deg, rgba(64, 42, 14, .6), rgba(14, 20, 18, .82));
  border: 1px solid rgba(255, 180, 90, .22);
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, .05);
}
.daily-strip:active { transform: scale(.985); border-color: rgba(255, 190, 110, .42); }
.status-ic {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
}
.status-ic .mp-icon { width: 16px; height: 16px; }
.status-ic.promo { background: rgba(255, 90, 100, .13); border: 1px solid rgba(255, 90, 100, .26); color: #FFB0B4; }
.status-ic.daily { background: rgba(255, 170, 70, .13); border: 1px solid rgba(255, 170, 70, .26); color: #FFCF8E; }
.status-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.status-main b { font-size: 11.5px; letter-spacing: .03em; color: #FFE4C6; font-weight: 700; }
.status-main span { font-size: 8.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-score {
  flex: none; font-family: var(--serif); font-size: 13px; font-weight: 800;
  color: #FFB0B4; letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.daily-state {
  flex: none; font-size: 8.5px; padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 138, 61, .14); color: #FFC99B;
  border: 1px solid rgba(255, 138, 61, .22); white-space: nowrap;
}
.daily-state.done {
  background: rgba(87, 224, 192, .12); color: #9BF6E3;
  border-color: rgba(87, 224, 192, .24);
}

/* 底部操作 */
.lobby-actions { margin-top: auto; padding-top: clamp(10px, 2.2vh, 18px); }
.lobby-quote {
  margin: 0 0 9px; text-align: center;
  font-family: var(--serif); font-size: 12px; letter-spacing: .2em; text-indent: .2em;
  color: rgba(255, 214, 174, .48);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.btn-start {
  position: relative; width: 100%; height: 60px; border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: linear-gradient(180deg, #FFB166 0%, #FF8A3D 42%, #E4621A 100%);
  box-shadow: 0 8px 26px rgba(255, 106, 26, .34), inset 0 1px 0 rgba(255, 245, 225, .55), inset 0 -2px 0 rgba(120, 40, 0, .3);
  border: 1px solid rgba(255, 206, 150, .7);
  transition: transform .14s, box-shadow .2s;
}
.btn-start:active { transform: scale(.975); box-shadow: 0 4px 14px rgba(255, 106, 26, .3), inset 0 2px 6px rgba(120, 40, 0, .25); }
.btn-start .start-txt {
  font-size: 21px; font-weight: 800; letter-spacing: .2em; text-indent: .2em;
  color: #341300; text-shadow: 0 1px 0 rgba(255, 240, 210, .55);
}
.btn-start .start-sub { font-size: 9px; letter-spacing: .16em; color: rgba(70, 25, 0, .7); font-weight: 600; }
.start-glow {
  position: absolute; top: -60%; left: -30%; width: 40%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: rotate(18deg); animation: sweep 3.6s ease-in-out infinite;
}
@keyframes sweep { 0%, 62% { left: -45%; } 88%, 100% { left: 115%; } }
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 9px; }
.quick-row button {
  height: 50px; border-radius: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: rgba(9, 21, 22, .74);
  border: 1px solid var(--line-soft);
  color: var(--muted); font-size: 10px;
  transition: transform .14s, color .16s, border-color .16s;
}
.quick-row button .mp-icon { width: 18px; height: 18px; color: rgba(255, 180, 120, .7); }
.quick-row button:active { transform: scale(.95); color: var(--text); border-color: rgba(255, 160, 90, .4); }

/* ---------------- 战斗 ---------------- */
.battle { position: absolute; inset: 0; background: #04090A; overflow: hidden; }
#gameCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.battle::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 42%, rgba(0, 0, 0, 0) 48%, rgba(1, 5, 6, .58) 100%);
}
.battle-top {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0;
  padding: max(8px, env(safe-area-inset-top)) 12px 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  pointer-events: none;
}
.scoreboard {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 11px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(9, 22, 23, .92), rgba(5, 12, 13, .82));
  border: 1px solid rgba(255, 170, 110, .16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sb-side { display: flex; align-items: baseline; gap: 4px; font-size: 9px; letter-spacing: .06em; }
.sb-side span { color: var(--muted-2); }
.sb-side b { font-size: 16px; font-family: var(--serif); line-height: 1; }
.sb-side.ally b { color: var(--jade); }
.sb-side.enemy b { color: var(--blood); }
.sb-mid { display: flex; flex-direction: column; align-items: center; padding: 0 7px; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
.sb-time { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #FFE3C6; font-variant-numeric: tabular-nums; }
.sb-mode { font-size: 7px; color: var(--muted-2); letter-spacing: .1em; margin-top: 1px; }
.pause-btn {
  pointer-events: auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(9, 22, 23, .86); border: 1px solid var(--line);
  color: var(--muted);
}
.pause-btn:active { transform: scale(.92); }
.objective {
  position: absolute; z-index: 4; top: calc(max(8px, env(safe-area-inset-top)) + 40px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(5, 13, 14, .7); border: 1px solid rgba(255, 160, 90, .14);
  font-size: 8.5px; color: rgba(255, 200, 160, .7); white-space: nowrap;
  transition: opacity .3s, color .3s;
}
.objective .mp-icon { width: 10px; height: 10px; color: var(--gold); }
.objective.vulnerable { color: #FFD0C8; border-color: rgba(255, 90, 100, .4); background: rgba(45, 12, 14, .7); }

.banner {
  position: absolute; z-index: 6; top: 100px; left: 0; right: 0;
  text-align: center; pointer-events: none;
  font-family: var(--serif); font-size: 22px; font-weight: 800; letter-spacing: .1em;
  color: #FFE5C4; opacity: 0; transform: translateY(8px) scale(.94);
  text-shadow: 0 0 18px rgba(255, 138, 61, .55), 0 2px 6px rgba(0, 0, 0, .8);
}
.banner.show { animation: bannerIn 1.9s ease-out forwards; }
.banner.gold { color: #FFD08E; }
.banner.jade { color: #9BF6E3; text-shadow: 0 0 18px rgba(87, 224, 192, .5), 0 2px 6px rgba(0, 0, 0, .8); }
.banner.blood { color: #FFB0B4; text-shadow: 0 0 18px rgba(255, 90, 100, .5), 0 2px 6px rgba(0, 0, 0, .8); }
@keyframes bannerIn {
  0% { opacity: 0; transform: translateY(10px) scale(.9); }
  14% { opacity: 1; transform: translateY(0) scale(1); }
  76% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-8px) scale(1.02); }
}

/* 快捷信号 */
.signal-dock {
  position: absolute; z-index: 7; right: 12px;
  top: calc(max(8px, env(safe-area-inset-top)) + 42px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 7px;
  pointer-events: none;
}
.signal-fab {
  position: relative; pointer-events: auto;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 32%, rgba(54, 36, 18, .94), rgba(5, 14, 15, .94) 74%);
  border: 1px solid rgba(255, 170, 110, .34);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .42), inset 0 0 16px rgba(255, 138, 61, .12);
  transition: transform .14s, border-color .18s;
}
.signal-fab:active { transform: scale(.93); }
.signal-fab .mp-icon { width: 19px; height: 19px; color: #FFC078; }
.signal-fab em {
  position: absolute; inset: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(3, 8, 9, .8);
  color: #FFE0BE; font-size: 12px; font-weight: 800; font-style: normal;
  font-variant-numeric: tabular-nums;
}
.signal-fab em:empty { display: none; }
.signal-fab.cooling { border-color: rgba(255, 170, 110, .18); }
.signal-wheel {
  pointer-events: auto;
  display: flex; gap: 6px; padding: 6px; margin-right: 2px;
  border-radius: 14px;
  background: rgba(5, 14, 15, .92);
  border: 1px solid rgba(255, 170, 110, .24);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 220, 180, .07);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: signalIn .18s ease-out;
}
@keyframes signalIn { from { opacity: 0; transform: translateY(-6px) scale(.94); } to { opacity: 1; transform: none; } }
.signal-chip {
  width: 46px; height: 48px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
  color: var(--muted); font-size: 9px;
  transition: transform .12s, background .18s, border-color .18s;
}
.signal-chip .mp-icon { width: 17px; height: 17px; color: #9BF6E3; }
.signal-chip span { letter-spacing: .04em; }
.signal-chip.retreat .mp-icon { color: #FFB0B4; }
.signal-chip.dragon .mp-icon { color: #FFB066; }
.signal-chip:active { transform: scale(.92); background: rgba(255, 138, 61, .13); border-color: rgba(255, 160, 90, .38); }

.battle-bottom { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: var(--hud-bottom); pointer-events: none; }
.player-state {
  position: absolute; left: 14px; right: 14px; bottom: calc(var(--hud-bottom) - 52px);
  padding: 8px 10px 9px; border-radius: 13px;
  background: linear-gradient(160deg, rgba(8, 20, 21, .9), rgba(4, 11, 12, .82));
  border: 1px solid rgba(255, 170, 110, .14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ps-head { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.ps-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, #3E2411, #180E08);
  border: 1px solid rgba(255, 180, 110, .5);
  font-family: var(--serif); font-size: 12px; color: #FFD7AF; font-weight: 700;
}
.ps-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-lv { font-size: 9px; color: var(--muted); letter-spacing: .02em; }
.ps-lv b { font-size: 12px; color: #FFD08E; }
.ps-role { font-size: 9px; color: var(--muted-2); padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .05); }
.ps-kda { margin-left: auto; font-size: 9px; color: var(--muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.ps-buffs { margin-left: 5px; display: flex; gap: 3px; }
.ps-buff { font-size: 7.5px; padding: 1px 4px; border-radius: 3px; background: rgba(255, 138, 61, .16); color: #FFB982; border: 1px solid rgba(255, 138, 61, .3); }
.ps-buff.blue { background: rgba(79, 216, 255, .14); color: #9BE7FF; border-color: rgba(79, 216, 255, .3); }
.hpbar {
  position: relative; height: 13px; border-radius: 4px; overflow: hidden;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .07);
}
.hpbar i {
  position: absolute; inset: 0; width: 100%; transform-origin: left center;
  background: linear-gradient(90deg, #1E8E72, #57E0C0 60%, #A6FFE9);
  box-shadow: 0 0 10px rgba(87, 224, 192, .4);
  transition: transform .18s ease-out;
}
.hpbar em {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; letter-spacing: .04em; color: #EFFDF9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7); font-variant-numeric: tabular-nums;
}
.hpbar.low i { background: linear-gradient(90deg, #9E2020, #FF5A64 60%, #FFA3A8); box-shadow: 0 0 10px rgba(255, 90, 100, .45); }
.xpbar { position: relative; height: 3px; margin-top: 4px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .07); }
.xpbar i { position: absolute; inset: 0; width: 100%; transform-origin: left center; background: linear-gradient(90deg, #B06A20, #FFC27A); transition: transform .25s; }

.joystick {
  position: absolute; left: 18px; bottom: 18px;
  width: 112px; height: 112px; border-radius: 50%;
  pointer-events: auto; touch-action: none;
  background: radial-gradient(circle at 50% 50%, rgba(87, 224, 192, .07), rgba(4, 12, 13, .42) 68%);
  border: 1px solid rgba(255, 190, 130, .22);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .45), 0 4px 18px rgba(0, 0, 0, .3);
}
.joy-ring { position: absolute; inset: 20px; border-radius: 50%; border: 1px dashed rgba(255, 190, 130, .16); }
.joy-knob {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255, 191, 128, .95), rgba(224, 96, 26, .92));
  border: 1px solid rgba(255, 228, 190, .8);
  box-shadow: 0 4px 14px rgba(255, 120, 40, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
  color: #3A1500;
  transition: transform .05s linear;
}
.joy-knob .mp-icon { width: 16px; height: 16px; opacity: .8; }
.joy-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(50, 18, 0, .6); box-shadow: 0 0 0 4px rgba(50, 18, 0, .14); }
.joy-mark { position: absolute; font-size: 8px; color: rgba(255, 200, 160, .3); font-weight: 600; letter-spacing: 0; }
.joy-mark.n { top: 5px; left: 50%; transform: translateX(-50%); }
.joy-mark.s { bottom: 5px; left: 50%; transform: translateX(-50%); }
.joy-mark.w { left: 7px; top: 50%; transform: translateY(-50%); }
.joy-mark.e { right: 7px; top: 50%; transform: translateY(-50%); }

.skills { position: absolute; right: 14px; bottom: 16px; width: 200px; height: 160px; pointer-events: none; }
.skill {
  position: absolute; border-radius: 50%; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(52, 32, 18, .96), rgba(10, 15, 15, .97) 72%);
  border: 2px solid rgba(255, 160, 90, .5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5), inset 0 0 18px rgba(255, 138, 61, .16), 0 0 0 4px rgba(255, 138, 61, .06);
  transition: transform .08s;
  touch-action: none;
}
.skill:active { transform: scale(.94); }
.skill .glyph {
  font-family: var(--serif); font-weight: 800; line-height: 1;
  background: linear-gradient(180deg, #FFF0D2, #FFB065);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 138, 61, .45));
}
.skill .skill-name { position: absolute; bottom: -13px; font-size: 8px; color: rgba(255, 210, 170, .65); white-space: nowrap; letter-spacing: .04em; }
.skill .cd {
  position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(rgba(3, 8, 9, .82) calc(var(--p, 0) * 1%), rgba(0, 0, 0, 0) 0);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #FFE0BE;
  pointer-events: none;
}
.skill .cd::after { content: attr(data-sec); font-variant-numeric: tabular-nums; }
.skill.s1 { width: 66px; height: 66px; right: 88px; bottom: 30px; }
.skill.s1 .glyph { font-size: 24px; }
.skill.ult { width: 84px; height: 84px; right: 0; bottom: 0; border-color: rgba(255, 190, 110, .75); box-shadow: 0 6px 22px rgba(255, 110, 30, .25), inset 0 0 24px rgba(255, 138, 61, .24), 0 0 0 5px rgba(255, 138, 61, .1); }
.skill.ult .glyph { font-size: 32px; }
.skill.ult.ready { animation: ultPulse 2.4s ease-in-out infinite; }
@keyframes ultPulse { 0%, 100% { box-shadow: 0 6px 22px rgba(255, 110, 30, .25), inset 0 0 24px rgba(255, 138, 61, .24), 0 0 0 5px rgba(255, 138, 61, .1); } 50% { box-shadow: 0 6px 26px rgba(255, 110, 30, .4), inset 0 0 30px rgba(255, 138, 61, .34), 0 0 0 8px rgba(255, 138, 61, .05); } }
.skill.recall { width: 42px; height: 42px; right: 6px; bottom: 101px; border-width: 1px; border-color: rgba(120, 200, 190, .3); background: rgba(7, 18, 19, .9); color: var(--muted); }
.skill.recall .mp-icon { width: 16px; height: 16px; }
.skill.recall em { font-size: 7px; color: var(--muted-2); margin-top: 1px; }

.countdown {
  position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(3, 9, 10, .45), rgba(2, 6, 7, .08) 55%);
}
.countdown b {
  font-family: var(--serif); font-size: 110px; line-height: 1; font-weight: 900;
  background: linear-gradient(180deg, #FFF3DC, #FFB264 60%, #F0722A);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 138, 61, .5));
  animation: pop .9s ease-out;
}
.countdown span { font-size: 12px; letter-spacing: .48em; text-indent: .48em; color: rgba(255, 214, 180, .8); }
@keyframes pop { 0% { transform: scale(1.7); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(.96); opacity: .95; } }

.dead-mask, .pause-mask {
  position: absolute; inset: 0; z-index: 9;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2, 6, 7, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.dead-card, .pause-card {
  width: 76%; max-width: 300px; padding: 20px 18px 18px; text-align: center;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(20, 35, 36, .96), rgba(7, 15, 16, .98));
  border: 1px solid rgba(255, 150, 90, .22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.dead-title { font-family: var(--serif); font-size: 34px; letter-spacing: .18em; color: #FFB0B4; text-shadow: 0 0 20px rgba(255, 90, 100, .4); }
.dead-card p { margin: 6px 0 16px; font-size: 11px; color: var(--muted); }
.dead-card p b { color: #FFD08E; font-size: 15px; }
.pause-title { display: block; font-family: var(--serif); font-size: 24px; letter-spacing: .14em; color: #FFE0C0; margin-bottom: 18px; }
.btn-primary, .btn-ghost, .btn-ad {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; height: 46px; border-radius: 11px; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  transition: transform .14s, opacity .2s;
}
.btn-primary { background: linear-gradient(180deg, #FFB166, #F07324); color: #321200; box-shadow: 0 5px 16px rgba(255, 106, 26, .28), inset 0 1px 0 rgba(255, 240, 215, .5); }
.btn-ghost { background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .12); color: #D9E5E1; }
.btn-ad { background: rgba(255, 138, 61, .1); border: 1px solid rgba(255, 138, 61, .3); color: #FFC79A; }
.btn-primary:active, .btn-ghost:active, .btn-ad:active { transform: scale(.97); }
.pause-card .btn-primary { margin-bottom: 9px; }
.pause-card .btn-ghost { margin-bottom: 9px; }
.pause-card .btn-ghost:last-child { margin-bottom: 0; }
.dead-card .btn-ghost { height: 42px; font-size: 12px; }
.dead-card .btn-ghost .mp-icon { width: 14px; height: 14px; }

/* ---------------- 结算 ---------------- */
.result { position: absolute; inset: 0; z-index: 20; overflow-y: auto; background: rgba(2, 7, 8, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.result-glow { position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 120%; height: 46%; background: radial-gradient(ellipse at 50% 40%, rgba(255, 138, 61, .3), transparent 65%); pointer-events: none; }
.result-inner { position: relative; max-width: 420px; margin: 0 auto; padding: max(34px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; }
.result-verdict {
  font-family: var(--serif); font-size: 62px; font-weight: 900; letter-spacing: .14em; line-height: 1.1;
  background: linear-gradient(180deg, #FFF6E3, #FFC078 55%, #E8691C);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 138, 61, .42));
  animation: verdictIn .5s cubic-bezier(.2, 1.4, .4, 1);
}
.result-verdict.lose { background: linear-gradient(180deg, #E7DDE0, #B4737A 55%, #7C3C46); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 24px rgba(255, 90, 100, .22)); }
@keyframes verdictIn { 0% { transform: scale(1.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.result-sub { margin-top: 2px; font-size: 10px; letter-spacing: .22em; color: var(--muted); }
.mvp-card {
  margin-top: 20px; width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 15px;
  background: linear-gradient(140deg, rgba(58, 39, 20, .7), rgba(11, 22, 22, .8));
  border: 1px solid rgba(255, 175, 110, .3);
  box-shadow: inset 0 1px 0 rgba(255, 230, 190, .08);
}
.mvp-avatar { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: linear-gradient(150deg, #4C2C12, #1B0F07); border: 1px solid rgba(255, 190, 120, .55); font-family: var(--serif); font-size: 20px; color: #FFD7A8; font-weight: 800; }
.mvp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mvp-tag { font-size: 7px; letter-spacing: .22em; color: #FFB877; font-weight: 800; }
.mvp-info b { font-size: 14px; letter-spacing: .03em; color: #FFEBD4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mvp-info em { font-size: 9px; color: var(--muted); font-style: normal; }
.mvp-score { text-align: center; padding-left: 10px; border-left: 1px solid rgba(255, 180, 120, .16); }
.mvp-score b { display: block; font-family: var(--serif); font-size: 22px; color: #FFC078; }
.mvp-score span { font-size: 8px; color: var(--muted-2); }
.result-stats { width: 100%; margin-top: 10px; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line-soft); padding: 11px 0; }
.result-stats > div { text-align: center; border-right: 1px solid rgba(255, 255, 255, .06); }
.result-stats > div:last-child { border-right: 0; }
.result-stats b { display: block; font-family: var(--serif); font-size: 20px; color: #F3E6D3; }
.result-stats span { font-size: 8px; color: var(--muted-2); letter-spacing: .1em; }
.result-rank { width: 100%; margin-top: 10px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 138, 61, .07); border: 1px solid rgba(255, 138, 61, .16); }
.rr-stars { display: flex; gap: 3px; }
.rr-stars i { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; background: rgba(255, 255, 255, .1); }
.rr-stars i.on { background: linear-gradient(135deg, #FFD08E, #FF8A3D); box-shadow: 0 0 5px rgba(255, 138, 61, .6); }
.rr-stars i.dim { background: rgba(255, 255, 255, .1); }
.rr-text { font-size: 10px; color: #FFC79A; letter-spacing: .04em; }
.result-reward { display: flex; gap: 22px; margin-top: 14px; }
.result-reward span { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #FFE0BE; font-weight: 700; }
.result-reward .mp-icon { width: 15px; height: 15px; color: var(--gold); }
.result-reward .gem-dot { width: 12px; height: 12px; }
.result-bonus {
  width: 100%; margin-top: 10px; padding: 9px 12px;
  border-radius: 10px; text-align: center;
  font-size: 9.5px; line-height: 1.55; letter-spacing: .03em;
  color: #FFCFA4;
  background: rgba(255, 138, 61, .08);
  border: 1px solid rgba(255, 138, 61, .18);
}
.result-bonus b { color: #FFE6B8; }
.btn-ad { margin-top: 16px; height: 40px; font-size: 11px; width: 100%; }
.result-actions { display: flex; gap: 9px; width: 100%; margin-top: 10px; }
.result-actions .btn-primary, .result-actions .btn-ghost { flex: 1; }

/* ---------------- 弹层 ---------------- */
.sheet-mask { position: absolute; inset: 0; z-index: 30; background: rgba(1, 5, 6, .66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: absolute; z-index: 31; left: 0; right: 0; bottom: 0;
  max-height: 84%; display: flex; flex-direction: column;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #0F2022 0%, #091416 30%, #060D0F 100%);
  border-top: 1px solid rgba(255, 180, 120, .26);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 220, 180, .1);
  animation: sheetUp .28s cubic-bezier(.2, .9, .3, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-handle { width: 38px; height: 4px; border-radius: 2px; background: rgba(255, 200, 160, .22); margin: 9px auto 4px; flex: none; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 5px 18px 10px; flex: none; }
.sheet-head h2 { font-family: var(--serif); font-size: 22px; letter-spacing: .1em; color: #FFE7CC; font-weight: 800; }
.sheet-head p { margin-top: 2px; font-size: 9px; letter-spacing: .1em; color: var(--muted-2); }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 18px 20px; -webkit-overflow-scrolling: touch; }
.sheet-body::-webkit-scrollbar { display: none; }

/* 英雄卡 */
.hero-card {
  display: flex; gap: 11px; width: 100%; text-align: left;
  padding: 12px; margin-bottom: 9px; border-radius: 15px;
  background: linear-gradient(150deg, rgba(16, 34, 35, .8), rgba(6, 15, 16, .9));
  border: 1px solid var(--line-soft);
  transition: border-color .18s, transform .14s, background .18s;
}
.hero-card:active { transform: scale(.985); }
.hero-card.on { border-color: rgba(255, 160, 90, .65); background: linear-gradient(150deg, rgba(58, 34, 18, .78), rgba(12, 18, 17, .92)); box-shadow: 0 0 0 1px rgba(255, 138, 61, .15); }
.hero-glyph {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 25px; font-weight: 800;
  color: #FFF0DC;
  background: linear-gradient(150deg, rgba(255, 138, 61, .28), rgba(10, 20, 20, .9));
  border: 1px solid rgba(255, 170, 110, .34);
}
.hero-main { flex: 1; min-width: 0; }
.hero-line { display: flex; align-items: center; gap: 6px; }
.hero-line b { font-size: 14px; letter-spacing: .03em; }
.hero-line span { font-size: 8px; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.hero-desc { display: block; margin-top: 3px; font-size: 9.5px; line-height: 1.5; color: var(--muted-2); }
.hero-desc2 { display: block; margin-top: 3px; font-size: 9px; line-height: 1.55; color: rgba(255, 200, 150, .55); }
.hero-skills { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.hero-skills span { font-size: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(255, 138, 61, .09); color: rgba(255, 190, 140, .8); border: 1px solid rgba(255, 138, 61, .16); }
.hero-stats { display: flex; gap: 8px; margin-top: 7px; }
.hstat { flex: 1; }
.hstat i { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 3px; }
.hstat i b { display: block; height: 100%; background: linear-gradient(90deg, #A95F1E, #FFB264); border-radius: 2px; }
.hstat span { font-size: 7.5px; color: var(--muted-2); letter-spacing: .04em; }
.hero-check { align-self: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); display: grid; place-items: center; color: transparent; flex: none; }
.hero-card.on .hero-check { background: var(--gold); border-color: var(--gold); color: #2A0E00; }
.hero-check .mp-icon { width: 13px; height: 13px; }

/* 皮肤 */
.skin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding-bottom: 8px; }
.skin-card {
  position: relative; text-align: left; border-radius: 15px; overflow: hidden;
  background: linear-gradient(160deg, rgba(16, 34, 35, .8), rgba(5, 13, 14, .92));
  border: 1px solid var(--line-soft);
  transition: transform .14s, border-color .18s;
}
.skin-card:active { transform: scale(.98); }
.skin-card.on { border-color: rgba(255, 160, 90, .7); box-shadow: 0 0 0 1px rgba(255, 138, 61, .18); }
.skin-art { position: relative; height: 96px; display: grid; place-items: center; overflow: hidden; }
.skin-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 60%, var(--sc, #57E0C0) 0%, transparent 62%); opacity: .38; }
.skin-art::after { content: ""; position: absolute; width: 64px; height: 64px; border-radius: 50% 50% 46% 46%; background: linear-gradient(160deg, var(--sc, #57E0C0), rgba(8, 18, 18, .95)); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 10px 18px rgba(0, 0, 0, .45); top: 20px; }
.skin-glyph { position: relative; z-index: 2; margin-top: 2px; font-family: var(--serif); font-size: 26px; color: #FFF3E2; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.skin-info { display: block; padding: 8px 10px 10px; }
.skin-info b { display: block; font-size: 13px; color: #F1E5D5; letter-spacing: .04em; }
.skin-info span { display: block; margin-top: 2px; font-size: 8.5px; color: var(--muted-2); }
.skin-price { display: flex; align-items: center; gap: 3px; margin-top: 6px; font-size: 10px; color: #FFC98F; font-weight: 700; }
.skin-price .mp-icon { width: 12px; height: 12px; }
.skin-tag { position: absolute; top: 7px; right: 7px; z-index: 3; font-size: 7px; padding: 2px 6px; border-radius: 4px; letter-spacing: .06em; background: rgba(255, 138, 61, .24); color: #FFD9B4; border: 1px solid rgba(255, 170, 110, .3); }
.skin-tag.owned { background: rgba(87, 224, 192, .15); color: #A9F4E2; border-color: rgba(87, 224, 192, .28); }
.skin-tag.equipped { background: linear-gradient(135deg, #FFB166, #E3691D); color: #2C1000; border-color: transparent; }
.skin-note { margin: 4px 0 12px; padding: 8px 10px; border-radius: 9px; background: rgba(87, 224, 192, .05); border: 1px solid rgba(87, 224, 192, .12); font-size: 9px; line-height: 1.6; color: rgba(160, 220, 210, .65); }

/* 战绩 */
.tabs { display: flex; gap: 6px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .05); margin-bottom: 12px; }
.tabs button { flex: 1; height: 32px; border-radius: 8px; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.tabs button.on { background: linear-gradient(160deg, rgba(255, 170, 110, .22), rgba(255, 138, 61, .1)); color: #FFD9B4; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.record-row { display: flex; align-items: center; gap: 9px; padding: 10px 11px; margin-bottom: 7px; border-radius: 11px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line-soft); }
.record-vs { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; font-family: var(--serif); font-size: 12px; font-weight: 800; }
.record-vs.win { background: rgba(87, 224, 192, .12); color: #7DF0D8; border: 1px solid rgba(87, 224, 192, .3); }
.record-vs.lose { background: rgba(255, 90, 100, .1); color: #FF9DA3; border: 1px solid rgba(255, 90, 100, .26); }
.record-main { flex: 1; min-width: 0; }
.record-main b { font-size: 11px; color: #E9DFD0; font-weight: 600; }
.record-main span { display: block; font-size: 8.5px; color: var(--muted-2); margin-top: 2px; }
.record-kda { text-align: right; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.record-kda b { color: #FFD08E; }
.empty-tip { padding: 36px 18px; text-align: center; font-size: 11px; line-height: 1.9; color: var(--muted-2); }
.empty-tip .mp-icon { width: 30px; height: 30px; color: rgba(255, 180, 120, .2); display: block; margin: 0 auto 8px; }

/* 排行榜 */
.lb-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); margin-bottom: 6px; border: 1px solid transparent; }
.lb-row.top1 { background: linear-gradient(100deg, rgba(255, 170, 80, .16), rgba(255, 255, 255, .02)); border-color: rgba(255, 170, 80, .26); }
.lb-row.top2 { background: linear-gradient(100deg, rgba(200, 220, 230, .1), rgba(255, 255, 255, .02)); }
.lb-row.top3 { background: linear-gradient(100deg, rgba(190, 120, 90, .12), rgba(255, 255, 255, .02)); }
.lb-rank { width: 22px; font-family: var(--serif); font-size: 14px; color: var(--muted-2); text-align: center; flex: none; }
.lb-row.top1 .lb-rank { color: #FFC078; }
.lb-name { flex: 1; min-width: 0; font-size: 11px; color: #EDE3D4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name em { font-size: 8px; color: var(--muted-2); margin-left: 5px; }
.lb-score { font-family: var(--serif); font-size: 15px; color: #FFC78F; }
.lb-more { text-align: center; font-size: 9px; color: var(--muted-2); padding: 10px 0 4px; }

/* 组队 */
.room-box { padding: 14px; border-radius: 15px; background: linear-gradient(150deg, rgba(58, 38, 20, .55), rgba(7, 17, 18, .8)); border: 1px solid rgba(255, 165, 100, .24); text-align: center; margin-bottom: 12px; }
.room-code { font-family: var(--serif); font-size: 28px; letter-spacing: .28em; text-indent: .28em; color: #FFD6A6; font-weight: 800; }
.room-code span { font-size: 9px; letter-spacing: .1em; color: var(--muted-2); display: block; text-indent: 0; margin-top: 2px; font-family: var(--sans); font-weight: 400; }
.room-actions { display: flex; gap: 8px; margin-top: 12px; }
.room-actions .btn-primary, .room-actions .btn-ghost { height: 38px; font-size: 11px; }
.team-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 10px; }
.team-slot { padding: 8px 3px 7px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px dashed rgba(255, 255, 255, .12); text-align: center; }
.team-slot.filled { border-style: solid; border-color: rgba(255, 165, 100, .28); background: rgba(255, 138, 61, .07); }
.team-slot.me { border-color: rgba(255, 138, 61, .6); background: rgba(255, 138, 61, .13); }
.team-slot i { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 4px; border-radius: 9px; background: rgba(255, 255, 255, .05); font-family: var(--serif); font-size: 14px; color: #FFCE9C; }
.team-slot span { display: block; font-size: 8px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-slot.filled span { color: #FFC99B; }
.friend-add { display: flex; gap: 7px; margin-top: 4px; }
.friend-add input {
  flex: 1; height: 40px; min-width: 0; padding: 0 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft);
  color: var(--text); font-size: 12px; font-family: inherit; outline: none;
}
.friend-add input::placeholder { color: var(--muted-2); }
.friend-add button { width: 78px; height: 40px; border-radius: 10px; font-size: 11px; background: linear-gradient(180deg, #FFB166, #EE7124); color: #331200; font-weight: 700; }
.tip { margin-top: 10px; font-size: 9px; line-height: 1.8; color: var(--muted-2); }

/* 设置 */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 2px; border-bottom: 1px solid var(--line-soft); }
.set-row:last-child { border-bottom: 0; }
.set-row .set-label { font-size: 12px; color: #E9DFD0; }
.set-row .set-sub { font-size: 9px; color: var(--muted-2); margin-top: 2px; }
.switch { width: 44px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, .1); position: relative; flex: none; transition: background .2s; border: 1px solid rgba(255, 255, 255, .08); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #B9C7C3; transition: transform .2s, background .2s; }
.switch.on { background: rgba(255, 138, 61, .35); border-color: rgba(255, 138, 61, .4); }
.switch.on::after { transform: translateX(18px); background: #FFC078; }
.set-link { font-size: 11px; color: #FFC79A; display: flex; align-items: center; gap: 4px; }
.set-link .mp-icon { width: 13px; height: 13px; }
.help-list { margin-top: 6px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); }
.help-list p { font-size: 9.5px; line-height: 1.9; color: var(--muted); }
.help-list p b { color: #FFCB9A; font-weight: 600; }

/* 昵称弹窗 */
.dialog-mask { position: absolute; inset: 0; z-index: 40; background: rgba(1, 5, 6, .72); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 26px; }
.dialog { width: 100%; max-width: 320px; padding: 20px 18px 16px; border-radius: 18px; background: linear-gradient(165deg, #13282A, #081416); border: 1px solid rgba(255, 170, 110, .26); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.dialog h3 { font-family: var(--serif); font-size: 19px; letter-spacing: .1em; color: #FFE4C6; }
.dialog p { margin: 5px 0 13px; font-size: 9.5px; line-height: 1.6; color: var(--muted-2); }
.dialog input { width: 100%; height: 44px; padding: 0 13px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .12); color: var(--text); font-size: 14px; outline: none; font-family: inherit; }
.dialog input:focus { border-color: rgba(255, 160, 90, .55); }
.dialog-actions { display: flex; gap: 8px; margin-top: 13px; }
.dialog-actions button { flex: 1; height: 42px; border-radius: 10px; font-size: 12px; font-weight: 700; }

.toast {
  position: absolute; z-index: 60; left: 50%; bottom: 120px;
  transform: translate(-50%, 12px);
  max-width: 80%; padding: 9px 16px; border-radius: 999px;
  background: rgba(8, 20, 21, .94); border: 1px solid rgba(255, 170, 110, .28);
  color: #FFE2C4; font-size: 11px; letter-spacing: .04em; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 小屏适配 */
@media (max-height: 750px) {
  :root { --hud-bottom: 184px; }
  .brand { margin-top: 6px; }
  .title { font-size: clamp(36px, 11vw, 48px); }
  .tagline { font-size: 10px; margin-top: 3px; }
  .brand-line { display: none; }
  .mode { padding: 7px 7px 6px; }
  .mode-sub { font-size: 8px; }
  .panel { padding: 8px 10px; margin-top: 8px; }
  .slot-av { width: 30px; height: 30px; font-size: 13px; }
  .rank-badge { width: 34px; height: 34px; font-size: 16px; }
  .status-stack { margin-top: 6px; gap: 5px; }
  .promo-strip, .daily-strip { padding: 6px 9px; }
  .status-ic { width: 27px; height: 27px; }
  .btn-start { height: 54px; margin-top: 2px; }
  .btn-start .start-txt { font-size: 19px; }
  .quick-row button { height: 44px; }
  .player-state { padding: 6px 9px 7px; }
  .joystick { width: 100px; height: 100px; left: 14px; bottom: 14px; }
  .joy-knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .skill.s1 { width: 58px; height: 58px; right: 82px; }
  .skill.ult { width: 76px; height: 76px; }
  .skills { width: 180px; height: 146px; right: 12px; }
  .result-verdict { font-size: 52px; }
  .mvp-card { margin-top: 14px; }
  .signal-dock { top: calc(max(8px, env(safe-area-inset-top)) + 40px); }
}
@media (max-height: 670px) {
  :root { --hud-bottom: 176px; }
  .season { display: none; }
  .title { font-size: 36px; margin-top: 4px; }
  .tagline { letter-spacing: .18em; }
  .mode-sub { display: none; }
  .mode { padding: 8px 7px; }
  .lineup { gap: 4px; }
  .slot-av { width: 27px; height: 27px; font-size: 12px; border-radius: 8px; }
  .rank-panel { margin-top: 6px; }
  .status-main span { font-size: 8px; }
  .lobby-quote { display: none; }
  .quick-row { margin-top: 6px; }
  .result { padding-top: 10px; }
  .signal-fab { width: 38px; height: 38px; }
  .signal-chip { width: 42px; height: 44px; }
}
