/* 联动闯关团 · 竖屏 H5
   主色 #FF8A3D / 卡通冒险风 / 无顶部标题栏，直接铺满屏幕 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --theme: #FF8A3D;
  --gold: #FFC53D;
  --gold-deep: #FF9A1F;
  --blue: #3A8BFF;
  --violet: #8B6BFF;
  --cyan: #5EE7FF;
  --navy: #0B173C;
  --panel: #152558;
  --line: rgba(146, 190, 255, .22);
  --txt: #F5F9FF;
  --muted: rgba(218, 233, 255, .64);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
html, body {
  margin: 0; padding: 0; height: 100%; overflow: hidden;
  background: #071027; color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  user-select: none; -webkit-user-select: none; overscroll-behavior: none;
}
button, input { font-family: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
button:active { transform: scale(.97); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.device {
  position: relative; width: 100%; max-width: 520px; height: 100vh; height: 100dvh; margin: 0 auto;
  overflow: hidden; background: #0b173c; isolation: isolate;
}
@media (min-width: 540px) {
  body { background: radial-gradient(circle at 50% 0%, #17306b 0%, #070d20 60%); }
  .device { box-shadow: 0 0 80px rgba(0, 0, 0, .65); }
}
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* ============================ 首页 ============================ */
.home {
  background: linear-gradient(180deg, #241C86 0%, #1D44C8 23%, #2C86F4 55%, #6CC8FF 100%);
}
.home-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.home-sky::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .26), transparent 28%),
    radial-gradient(circle at 18% 8%, rgba(123, 83, 255, .5), transparent 32%),
    linear-gradient(180deg, rgba(81, 49, 218, .25), transparent 36%);
}
.sky-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .65; }
.sky-orb-a { width: 190px; height: 190px; left: -70px; top: 120px; background: radial-gradient(circle, rgba(255, 207, 115, .38), transparent 68%); }
.sky-orb-b { width: 220px; height: 220px; right: -90px; top: 320px; background: radial-gradient(circle, rgba(92, 220, 255, .38), transparent 68%); }
.sky-star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: twinkle 2.6s infinite ease-in-out; }
.sky-star.s1 { left: 12%; top: 18%; }
.sky-star.s2 { left: 66%; top: 10%; animation-delay: .8s; }
.sky-star.s3 { left: 88%; top: 30%; animation-delay: 1.5s; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.25); } }

.hud {
  position: relative; z-index: 6;
  display: flex; align-items: center; gap: 7px;
  padding: calc(9px + var(--safe-t)) 13px 7px;
}
.hud-profile {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  padding: 2px 4px 2px 2px; border-radius: 24px; flex: 0 1 auto;
}
.avatar {
  width: 43px; height: 43px; flex: 0 0 43px; border-radius: 50%;
  background-color: #4a7dff;
  background-image: url("images/gen/gptimg_1795256259_look.png");
  background-size: 196px auto; background-position: -70px -95px;
  background-repeat: no-repeat;
  border: 2px solid rgba(255, 255, 255, .92);
  box-shadow: 0 3px 10px rgba(7, 17, 54, .5), inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.hud-id { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: 2px; }
.hud-name {
  max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 2px 4px rgba(8, 19, 60, .55);
}
.hud-lv { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; color: #FFE48E; }
.hud-lv b { font-size: 10px; color: #fff; }
.exp-mini { display: block; width: 52px; height: 4px; border-radius: 3px; background: rgba(4, 14, 48, .48); overflow: hidden; }
.exp-mini i { display: block; width: 12%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #FFD44D, #FF9D1B); }
.hud-cur { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.cur {
  display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 6px;
  border-radius: 15px; background: rgba(7, 22, 64, .34);
  border: 1px solid rgba(188, 222, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cur b { font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .2px; }
.cur-plus {
  display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(255, 255, 255, .24); font-size: 13px; line-height: 1; color: #fff; font-weight: 700;
}
.coin-ico, .gem-ico { position: relative; width: 16px; height: 16px; flex: 0 0 16px; display: block; }
.coin-ico { border-radius: 50%; background: linear-gradient(180deg, #FFE77B, #FFB01E 62%, #E27B06); box-shadow: inset 0 0 0 2px rgba(255, 245, 170, .7), 0 0 8px rgba(255, 188, 43, .55); }
.coin-ico::after { content: ""; position: absolute; left: 5px; top: 4px; width: 6px; height: 8px; border-radius: 1px; background: #FF8D00; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.gem-ico { background: linear-gradient(160deg, #9EF8FF, #42B4FF 55%, #7A5DFF); clip-path: polygon(50% 0, 100% 38%, 78% 100%, 22% 100%, 0 38%); box-shadow: 0 0 8px rgba(94, 220, 255, .6); }
.hud-tools { display: flex; align-items: center; gap: 1px; }
.icon-btn {
  position: relative; width: 28px; height: 32px; display: grid; place-items: center;
  color: #fff; opacity: .92;
}
.icon-btn .mp-icon { width: 19px; height: 19px; filter: drop-shadow(0 1px 2px rgba(5, 15, 50, .5)); }
.red-dot {
  position: absolute; right: 2px; top: 3px; width: 8px; height: 8px; border-radius: 50%;
  background: #FF493D; border: 1.5px solid #2C78EC; box-shadow: 0 0 6px rgba(255, 73, 61, .7);
}
.hud-tools .red-dot { border-color: #1B57C8; }

.top-row {
  position: relative; z-index: 5;
  display: flex; gap: 9px; padding: 4px 13px 9px; height: 92px; flex: 0 0 92px;
}
.season {
  position: relative; flex: 1 1 auto; min-width: 0; height: 82px; border-radius: 17px; overflow: hidden;
  text-align: left; border: 1px solid rgba(174, 216, 255, .4);
  background: linear-gradient(120deg, #2C5DE0, #5D9CFF); box-shadow: 0 5px 14px rgba(7, 20, 60, .28);
  transition: transform .12s ease;
}
.season:active { transform: scale(.985); }
.season-art {
  position: absolute; inset: 0;
  background-image: url("images/gen/gptimg_1795256259_look.png");
  background-repeat: no-repeat; background-size: 310px auto;
  background-position: -92px -153px; opacity: .96;
}
.season::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(24, 48, 150, .9) 0%, rgba(28, 78, 200, .55) 48%, rgba(26, 80, 210, .05) 100%);
}
.season-txt { position: absolute; z-index: 2; left: 11px; top: 18px; display: flex; flex-direction: column; gap: 5px; }
.season-txt b { font-size: 13px; color: #fff; letter-spacing: .4px; text-shadow: 0 2px 6px rgba(10, 30, 90, .6); }
.season-txt em { font-size: 9.5px; font-style: normal; color: rgba(226, 243, 255, .8); }
.season-dots { position: absolute; z-index: 2; left: 12px; bottom: 10px; display: flex; gap: 4px; }
.season-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.season-dots i.on { width: 12px; border-radius: 4px; background: #FFE07A; box-shadow: 0 0 6px rgba(255, 224, 122, .7); }
.quick { display: flex; gap: 5px; flex: 0 0 auto; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 54px; }
.quick-ic {
  position: relative; width: 43px; height: 43px; border-radius: 15px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 5px 12px rgba(8, 22, 70, .32), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.quick-ic .mp-icon { width: 24px; height: 24px; color: #fff; filter: drop-shadow(0 1px 2px rgba(90, 30, 0, .3)); }
.qi-gift { background: linear-gradient(150deg, #FF9BC4, #FF4E93); }
.qi-shop { background: linear-gradient(150deg, #FFD56B, #FF8A1D); }
.qi-rank { background: linear-gradient(150deg, #FFE58A, #F4A313); }
.quick-item > span:last-child { font-size: 10px; color: #fff; font-weight: 700; text-shadow: 0 1px 3px rgba(6, 18, 56, .5); }

/* 主视觉 */
.hero { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.hero-art {
  position: absolute; inset: 0;
  background-image: url("images/gen/gptimg_1795256259_look.png");
  background-repeat: no-repeat;
  background-size: auto 142%;
  background-position: 52% 59%;
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.01);
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 49, 152, .72) 0%, rgba(24, 49, 152, .08) 16%, transparent 26%),
    linear-gradient(0deg, rgba(13, 27, 78, .82) 0%, rgba(15, 34, 96, .16) 18%, transparent 36%);
  pointer-events: none;
}
.portal-glow {
  position: absolute; right: 5%; top: 24%; width: 120px; height: 160px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(88, 210, 255, .45), rgba(85, 100, 255, .12) 55%, transparent 72%);
  filter: blur(8px); animation: portalPulse 3.4s infinite ease-in-out; pointer-events: none;
}
@keyframes portalPulse { 0%, 100% { opacity: .6; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
.hero-spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #FFE58E; box-shadow: 0 0 10px 2px rgba(255, 207, 71, .7); animation: floatSpark 4.2s infinite ease-in-out; pointer-events: none; }
.hero-spark.hs1 { left: 14%; top: 32%; }
.hero-spark.hs2 { left: 47%; top: 17%; animation-delay: 1.3s; }
.hero-spark.hs3 { right: 12%; top: 41%; animation-delay: 2.2s; }
@keyframes floatSpark { 0%, 100% { transform: translateY(0) scale(.8); opacity: .3; } 50% { transform: translateY(-14px) scale(1.15); opacity: 1; } }

.quest-bubble {
  position: absolute; left: 13px; top: 15px; width: 176px; padding: 9px 11px 10px;
  border-radius: 16px; border: 1px solid rgba(164, 214, 255, .55);
  background: linear-gradient(135deg, rgba(53, 124, 255, .95), rgba(25, 53, 170, .93));
  box-shadow: 0 6px 16px rgba(7, 18, 62, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  z-index: 3;
}
.quest-bubble::before {
  content: ""; position: absolute; left: -13px; right: -4px; top: 100%; height: 66px; z-index: -2;
  background: linear-gradient(180deg, rgba(27, 61, 178, .96) 0%, rgba(27, 61, 178, .72) 46%, rgba(27, 61, 178, 0) 100%);
  border-radius: 0 0 18px 18px;
}
.quest-bubble::after {
  content: ""; position: absolute; left: 20px; bottom: -7px; width: 16px; height: 16px;
  background: rgba(28, 62, 185, .94); transform: rotate(45deg); border-radius: 2px; z-index: -1;
}
.qb-crown { position: absolute; left: -7px; top: -15px; width: 27px; height: 27px; display: grid; place-items: center; transform: rotate(-12deg); }
.qb-crown .mp-icon { width: 25px; height: 25px; color: #FFD45C; filter: drop-shadow(0 2px 3px rgba(90, 45, 0, .45)); }
.qb-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 800; color: #FFE58A;
  padding: 2px 7px; border-radius: 9px; background: rgba(8, 28, 100, .38);
}
.qb-tag .mp-icon { width: 12px; height: 12px; }
.quest-bubble b { display: block; margin-top: 4px; font-size: 14.5px; color: #fff; letter-spacing: .3px; text-shadow: 0 2px 5px rgba(5, 18, 70, .4); }
.quest-bubble em { display: block; margin-top: 2px; font-size: 9.5px; font-style: normal; color: rgba(221, 240, 255, .82); }

.hero-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 7px;
  height: 53px; padding: 6px 9px; text-align: left;
  border-radius: 15px; border: 1px solid rgba(155, 204, 255, .38);
  background: linear-gradient(135deg, rgba(16, 38, 100, .82), rgba(20, 48, 132, .66));
  box-shadow: 0 6px 16px rgba(5, 15, 50, .3), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .12s ease;
}
.hero-chip:active { transform: scale(.96); }
.chip-ic {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(150deg, #79D4FF, #2E6BFF); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.chip-ic .mp-icon { width: 21px; height: 21px; color: #fff; }
.chip-ic.loot { background: linear-gradient(150deg, #FFDA7A, #FF8F2A); }
.chip-ic.siege { background: linear-gradient(150deg, #BFA2FF, #6541FF); }
.chip-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.chip-txt b { font-size: 12px; color: #fff; letter-spacing: .2px; }
.chip-txt em { font-size: 9px; font-style: normal; color: rgba(220, 236, 255, .72); white-space: nowrap; }
.chip-arrow { width: 14px; height: 14px; color: rgba(230, 242, 255, .65); margin-left: auto; flex: 0 0 14px; }
.chip-clone { right: 10px; top: 55%; width: 165px; }
.chip-loot { left: 12px; bottom: 28%; width: 163px; }
.chip-siege { right: 12px; bottom: 22.5%; width: 146px; }

.hero-bottom {
  position: absolute; z-index: 2; left: 0; right: 0;
  bottom: 0; display: flex; flex-direction: column; gap: 7px;
  padding: 70px 13px calc(10px + var(--safe-b));
  background: linear-gradient(180deg, rgba(9, 20, 58, .12) 0%, rgba(10, 22, 63, .82) 20%, rgba(9, 20, 58, .97) 100%);
}
.mode-row { display: flex; align-items: center; gap: 5px; }
.mini-mode {
  display: flex; align-items: center; gap: 3px; height: 27px; padding: 0 9px;
  border-radius: 14px; border: 1px solid rgba(156, 205, 255, .32);
  background: rgba(9, 24, 68, .54); color: #EAF5FF; font-size: 10.5px; font-weight: 700;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.mini-mode .mp-icon { width: 13px; height: 13px; color: #9DDCFF; }
.mini-mode:active { background: rgba(22, 48, 120, .8); }
.season-tip { margin-left: auto; font-size: 9.5px; color: rgba(229, 242, 255, .72); text-shadow: 0 1px 3px rgba(4, 16, 50, .7); }
.start-btn {
  position: relative; height: 67px; border-radius: 22px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #FFF6B8 0%, #FFD749 30%, #FFB01F 72%, #FF9E12 100%);
  border: 2px solid #FFE895;
  box-shadow: 0 7px 0 #B56100, 0 14px 26px rgba(8, 18, 55, .38), inset 0 2px 0 rgba(255, 255, 255, .86);
  color: #9C3C00;
  transition: transform .08s ease, box-shadow .08s ease;
}
.start-btn:active { transform: translateY(4px) scale(.995); box-shadow: 0 3px 0 #B56100, 0 7px 14px rgba(8, 18, 55, .3), inset 0 2px 0 rgba(255, 255, 255, .7); }
.start-txt { display: flex; flex-direction: column; align-items: center; gap: 1px; position: relative; z-index: 2; }
.start-txt b { font-size: 23px; line-height: 1.06; letter-spacing: 2.5px; font-weight: 900; text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.start-txt em { font-size: 9.5px; font-style: normal; font-weight: 700; color: rgba(133, 49, 0, .72); letter-spacing: .5px; }
.start-arrow {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .36); border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.start-arrow .mp-icon { width: 23px; height: 23px; color: #9C3C00; }
.start-shine {
  position: absolute; top: -40%; bottom: -40%; width: 54px; left: -80px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-22deg); animation: shine 3.8s infinite ease-in-out;
}
@keyframes shine { 0%, 55% { left: -80px; } 82%, 100% { left: 115%; } }

/* 底部导航 */
.dock {
  position: relative; z-index: 6; flex: 0 0 auto;
  display: flex; align-items: flex-start;
  height: calc(63px + var(--safe-b)); padding: 5px 6px var(--safe-b);
  background: linear-gradient(180deg, rgba(12, 26, 72, .76), rgba(7, 16, 46, .98));
  border-top: 1px solid rgba(136, 188, 255, .17);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}
.dock-item {
  position: relative; flex: 1; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: rgba(207, 227, 255, .55); font-size: 9.5px; font-weight: 600;
  transition: color .15s ease;
}
.dock-ic { width: 31px; height: 28px; display: grid; place-items: center; border-radius: 10px; transition: all .18s ease; }
.dock-ic .mp-icon { width: 23px; height: 23px; }
.dock-item.active { color: #fff; }
.dock-item.active .dock-ic { background: radial-gradient(circle at 50% 55%, rgba(255, 196, 61, .32), transparent 72%); }
.dock-item.active .dock-ic .mp-icon { color: #FFD45C; filter: drop-shadow(0 0 7px rgba(255, 196, 61, .65)); }
.dock-item.active::before {
  content: ""; position: absolute; top: -6px; width: 22px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #FFD45C, transparent); box-shadow: 0 0 8px rgba(255, 212, 92, .8);
}
.dock-badge {
  position: absolute; top: 2px; right: calc(50% - 22px); min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 7px; background: #FF493D; color: #fff; font-size: 8px; font-style: normal;
  display: grid; place-items: center; border: 1px solid #0B173C;
}

/* ============================ 通用面板 ============================ */
.overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(3, 8, 24, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: relative; width: 100%; max-width: 520px; max-height: 90vh; max-height: 90dvh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #1A2C67 0%, #101C46 55%, #0C1638 100%);
  border-radius: 26px 26px 0 0; border-top: 1px solid rgba(134, 188, 255, .38);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, .55);
  animation: sheetUp .26s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: var(--safe-b);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: rgba(190, 218, 255, .28); margin: 8px auto 2px; flex: 0 0 auto; }
.sheet-head {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 3px 14px 10px; flex: 0 0 auto;
}
.sheet-head h2 { flex: 1; margin: 0; text-align: center; font-size: 16px; font-weight: 800; letter-spacing: .5px; }
.sheet-back { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(150, 196, 255, .18); }
.sheet-back .mp-icon { width: 21px; height: 21px; }
.sheet-actions { min-width: 38px; display: flex; justify-content: flex-end; gap: 6px; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 14px calc(20px + var(--safe-b)); }
.sheet-body::-webkit-scrollbar { width: 0; }

.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 49px; border-radius: 15px;
  background: linear-gradient(180deg, #FFE079, #FFB328 58%, #FF9A12);
  border: 1px solid #FFE79A; color: #7D3000; font-size: 15px; font-weight: 900; letter-spacing: 1px;
  box-shadow: 0 5px 0 #A85A00, 0 10px 18px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #A85A00, inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn-primary[disabled] { filter: grayscale(.7); opacity: .55; box-shadow: none; }
.btn-ghost {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 46px;
  border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(150, 196, 255, .22);
  color: #E4F1FF; font-size: 14px; font-weight: 700;
}
.btn-ghost:active { background: rgba(255, 255, 255, .12); }
.btn-small {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  height: 31px; padding: 0 11px; border-radius: 10px; font-size: 11px; font-weight: 700;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(150, 196, 255, .2); color: #E9F4FF;
}
.btn-small.gold { background: linear-gradient(180deg, #FFD966, #FFA91C); color: #7A2E00; border-color: #FFE69A; }
.btn-small.green { background: linear-gradient(180deg, #68E6A2, #19B36C); color: #04351D; border-color: #A3FFD0; }
.btn-small .mp-icon { width: 14px; height: 14px; }

.panel-block { margin-top: 12px; }
.block-title { display: flex; align-items: center; justify-content: space-between; margin: 15px 1px 8px; }
.block-title h3 { margin: 0; font-size: 13px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 5px; }
.block-title h3 .mp-icon { width: 15px; height: 15px; color: #FFD45C; }
.block-title span { font-size: 10.5px; color: var(--muted); }

/* 成长 */
.growth-hero {
  position: relative; overflow: hidden; padding: 14px;
  border-radius: 18px; border: 1px solid rgba(164, 210, 255, .25);
  background: linear-gradient(120deg, rgba(58, 139, 255, .3), rgba(116, 78, 255, .22));
}
.growth-hero::after { content: ""; position: absolute; right: -30px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 80, .28), transparent 65%); }
.growth-top { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.growth-avatar { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; border: 2px solid #FFE39A; background-size: 246px auto; background-position: -89px -120px; }
.growth-name { flex: 1; }
.growth-name b { display: block; font-size: 16px; }
.growth-name span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.lv-badge { padding: 4px 10px; border-radius: 10px; background: rgba(255, 205, 67, .16); border: 1px solid rgba(255, 205, 67, .36); font-size: 11px; color: #FFDF8C; font-weight: 800; }
.growth-exp { margin-top: 12px; position: relative; z-index: 1; }
.growth-exp .exp-track { height: 8px; border-radius: 6px; background: rgba(3, 10, 32, .5); overflow: hidden; }
.growth-exp .exp-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #FFD44D, #FF9D1B); box-shadow: 0 0 10px rgba(255, 190, 50, .5); }
.growth-exp .exp-label { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10px; color: var(--muted); }
.power-row { display: flex; gap: 8px; margin-top: 11px; }
.power-card { flex: 1; padding: 9px 7px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(150, 196, 255, .16); text-align: center; }
.power-card b { display: block; font-size: 18px; color: #FFD45C; }
.power-card span { display: block; margin-top: 1px; font-size: 9.5px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stat-cell { padding: 8px 3px; border-radius: 11px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(150, 196, 255, .13); text-align: center; }
.stat-cell b { display: block; font-size: 14px; }
.stat-cell span { font-size: 9px; color: var(--muted); }
.talent-row { display: flex; align-items: center; gap: 10px; padding: 10px 11px; margin-bottom: 7px; border-radius: 13px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(150, 196, 255, .14); }
.talent-ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(150deg, rgba(93, 162, 255, .5), rgba(58, 87, 255, .32)); }
.talent-ic .mp-icon { width: 20px; height: 20px; color: #BDE4FF; }
.talent-main { flex: 1; min-width: 0; }
.talent-main b { display: block; font-size: 12px; }
.talent-main span { display: block; margin-top: 1px; font-size: 9.5px; color: var(--muted); }
.talent-lv { display: flex; gap: 2px; margin-top: 4px; }
.talent-lv i { width: 11px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.talent-lv i.on { background: #FFD45C; box-shadow: 0 0 5px rgba(255, 212, 92, .6); }
.talent-btn { flex: 0 0 auto; }

/* 背包 */
.bag-tools { display: flex; gap: 6px; margin-bottom: 9px; }
.bag-filter { flex: 1; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(150, 196, 255, .16); color: var(--muted); font-size: 11px; font-weight: 700; }
.bag-filter.on { background: linear-gradient(180deg, rgba(255, 205, 67, .28), rgba(255, 154, 31, .16)); border-color: rgba(255, 213, 92, .6); color: #FFE28A; }
.bag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.equip-card {
  position: relative; overflow: hidden; padding: 9px; border-radius: 13px; text-align: left;
  background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .035));
  border: 1px solid rgba(150, 196, 255, .17);
  min-height: 105px;
}
.equip-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--rc, #C9D4E5); box-shadow: 0 0 12px var(--rc, #C9D4E5); }
.equip-card.equipped { border-color: var(--rc, #FFD45C); background: linear-gradient(160deg, rgba(255, 210, 78, .16), rgba(255, 255, 255, .03)); }
.equip-slot { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: var(--muted); }
.equip-slot .mp-icon { width: 15px; height: 15px; color: var(--rc, #fff); }
.equip-name { margin-top: 5px; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.equip-name em { font-style: normal; font-size: 9px; color: var(--rc, #fff); }
.equip-power { margin-top: 5px; font-size: 10px; color: #FFD45C; font-weight: 800; }
.equip-mainstat { margin-top: 2px; font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.equip-lv { position: absolute; right: 8px; bottom: 8px; font-size: 9px; color: #9FE0FF; }
.bag-empty { padding: 34px 0; text-align: center; color: var(--muted); font-size: 12px; }
.bag-empty .mp-icon { display: block; width: 42px; height: 42px; margin: 0 auto 8px; opacity: .5; }
.rarity-0 { --rc: #C9D4E5; } .rarity-1 { --rc: #5BE08A; } .rarity-2 { --rc: #57B8FF; } .rarity-3 { --rc: #B67BFF; } .rarity-4 { --rc: #FFB23E; }

/* 商城 */
.cur-strip { display: flex; gap: 7px; margin-bottom: 10px; }
.cur-mini { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(150, 196, 255, .15); font-size: 12px; font-weight: 800; }
.cur-mini .coin-ico, .cur-mini .gem-ico { width: 17px; height: 17px; flex-basis: 17px; }
.cur-mini .pt-ico { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(160deg, #B78CFF, #6D3BFF); display: grid; place-items: center; font-size: 10px; color: #fff; }
.shop-tabs, .rank-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 13px; background: rgba(3, 10, 32, .36); border: 1px solid rgba(150, 196, 255, .13); }
.shop-tab, .rank-tab { flex: 1; height: 32px; border-radius: 10px; font-size: 11px; font-weight: 800; color: var(--muted); }
.shop-tab.on, .rank-tab.on { background: linear-gradient(180deg, #FFD45C, #FFA61A); color: #7A2E00; box-shadow: 0 3px 9px rgba(255, 155, 20, .3); }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.shop-card {
  position: relative; padding: 11px 9px 9px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03));
  border: 1px solid rgba(150, 196, 255, .17); display: flex; flex-direction: column; gap: 4px;
}
.shop-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(150deg, rgba(90, 160, 255, .45), rgba(74, 60, 220, .3)); border: 1px solid rgba(160, 210, 255, .24); }
.shop-ic .mp-icon { width: 22px; height: 22px; color: #D6EDFF; }
.shop-card h4 { margin: 2px 0 0; font-size: 12px; }
.shop-card p { margin: 0; font-size: 9.5px; color: var(--muted); min-height: 25px; line-height: 1.35; }
.buy-btn { margin-top: 2px; width: 100%; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 800; background: rgba(255, 205, 67, .16); border: 1px solid rgba(255, 205, 67, .38); color: #FFE08A; }
.buy-btn:active { background: rgba(255, 205, 67, .3); }
.buy-btn .coin-ico, .buy-btn .gem-ico { width: 13px; height: 13px; flex-basis: 13px; }
.buy-btn .pt-ico { font-size: 10px; }
.buy-btn.owned { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: var(--muted); }
.shop-note { margin: 10px 0 0; font-size: 9.5px; color: rgba(205, 224, 255, .45); text-align: center; }

/* 排行 */
.rank-hero { padding: 13px 14px; border-radius: 16px; background: linear-gradient(120deg, rgba(255, 190, 45, .18), rgba(255, 120, 48, .1)); border: 1px solid rgba(255, 205, 67, .28); display: flex; align-items: center; gap: 11px; }
.rank-hero .rh-ic { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(150deg, #FFE38B, #F6A318); box-shadow: 0 4px 12px rgba(255, 160, 20, .3); }
.rank-hero .rh-ic .mp-icon { width: 27px; height: 27px; color: #8A4300; }
.rank-hero b { display: block; font-size: 14px; }
.rank-hero span { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); }
.rank-hero .rh-score { margin-left: auto; text-align: right; }
.rank-hero .rh-score b { color: #FFD45C; font-size: 20px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 7px; margin: 15px 0 8px; }
.podium-item { flex: 1; max-width: 102px; text-align: center; }
.podium-avatar { width: 44px; height: 44px; margin: 0 auto 5px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 900; color: #fff; border: 2px solid rgba(255, 255, 255, .6); background: linear-gradient(150deg, #5B9EFF, #324CDA); }
.podium-item.p1 .podium-avatar { width: 54px; height: 54px; border-color: #FFE17A; box-shadow: 0 0 18px rgba(255, 205, 67, .5); background: linear-gradient(150deg, #FFD45C, #F0870F); color: #7A3A00; }
.podium-name { font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-score { font-size: 10px; color: #FFD45C; font-weight: 800; margin-top: 1px; }
.podium-base { margin-top: 5px; height: 22px; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05)); display: grid; place-items: center; font-size: 10px; font-weight: 900; color: rgba(255, 255, 255, .7); }
.podium-item.p1 .podium-base { height: 34px; background: linear-gradient(180deg, rgba(255, 205, 67, .32), rgba(255, 154, 31, .08)); color: #FFE08A; }
.rank-list { margin-top: 7px; }
.rank-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; margin-bottom: 5px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(150, 196, 255, .12); }
.rank-row.me { background: linear-gradient(90deg, rgba(255, 205, 67, .16), rgba(255, 255, 255, .03)); border-color: rgba(255, 205, 67, .38); }
.rank-num { width: 23px; flex: 0 0 23px; text-align: center; font-size: 13px; font-weight: 900; color: var(--muted); }
.rank-row:nth-child(1) .rank-num { color: #FFD45C; }
.rank-info { flex: 1; min-width: 0; }
.rank-info b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-info span { display: block; font-size: 9px; color: var(--muted); margin-top: 1px; }
.rank-val { text-align: right; }
.rank-val b { display: block; font-size: 13px; color: #FFE08A; }
.rank-val span { display: block; font-size: 8.5px; color: var(--muted); }
.rank-me { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 11px; border-radius: 13px; background: linear-gradient(90deg, rgba(255, 154, 31, .2), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 205, 67, .34); }
.rank-me .rank-info b { color: #FFE08A; }

/* 模式卡片 */
.mode-list { display: grid; gap: 9px; margin-top: 4px; }
.mode-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 11px; padding: 12px;
  border-radius: 16px; text-align: left; border: 1px solid rgba(150, 196, 255, .18);
  background: linear-gradient(120deg, rgba(58, 139, 255, .18), rgba(116, 78, 255, .1));
}
.mode-card:active { transform: scale(.99); }
.mode-card .mc-ic { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(150deg, #5FA4FF, #3350D8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.mode-card .mc-ic .mp-icon { width: 27px; height: 27px; color: #fff; }
.mode-card .mc-ic.orange { background: linear-gradient(150deg, #FFCE6A, #FF7A1C); }
.mode-card .mc-ic.violet { background: linear-gradient(150deg, #BFA2FF, #6541FF); }
.mode-card .mc-ic.green { background: linear-gradient(150deg, #7BE9B2, #17A967); }
.mode-card .mc-ic.red { background: linear-gradient(150deg, #FF9A8A, #E33B3B); }
.mc-txt { flex: 1; min-width: 0; }
.mc-txt b { display: block; font-size: 13px; }
.mc-txt p { margin: 3px 0 0; font-size: 10px; line-height: 1.4; color: var(--muted); }
.mc-tag { flex: 0 0 auto; padding: 3px 7px; border-radius: 8px; background: rgba(255, 205, 67, .14); border: 1px solid rgba(255, 205, 67, .3); color: #FFE08A; font-size: 9px; font-weight: 800; }
.mode-note { margin-top: 11px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .045); font-size: 10px; line-height: 1.6; color: var(--muted); border: 1px dashed rgba(150, 196, 255, .2); }

/* 装备详情 */
.detail-top { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)); border: 1px solid var(--rc, rgba(150, 196, 255, .2)); }
.detail-icon { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .25), rgba(0, 0, 0, .16)); border: 1px solid var(--rc, #fff); box-shadow: 0 0 18px rgba(150, 196, 255, .16); }
.detail-icon .mp-icon { width: 35px; height: 35px; color: var(--rc, #fff); }
.detail-title b { display: block; font-size: 16px; }
.detail-title span { display: block; margin-top: 3px; font-size: 10px; color: var(--rc, var(--muted)); font-weight: 700; }
.detail-title em { display: block; margin-top: 4px; font-style: normal; font-size: 10px; color: var(--muted); }
.detail-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.detail-stat div { padding: 8px 9px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(150, 196, 255, .13); font-size: 10.5px; display: flex; justify-content: space-between; }
.detail-stat div b { color: #9FE0FF; }
.detail-affix { margin-top: 7px; padding: 9px 11px; border-radius: 11px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(150, 196, 255, .12); font-size: 10.5px; line-height: 1.8; }
.detail-affix b { color: #FFD45C; font-weight: 700; margin-right: 5px; }
.detail-actions { display: flex; gap: 7px; margin-top: 13px; }
.detail-actions .btn-small { flex: 1; height: 40px; border-radius: 12px; font-size: 12px; }

/* 邮件 / 福利 / 设置 */
.mail-item { display: flex; gap: 10px; padding: 11px; border-radius: 13px; margin-bottom: 7px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(150, 196, 255, .14); }
.mail-ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(150deg, rgba(94, 168, 255, .45), rgba(58, 80, 210, .3)); }
.mail-ic .mp-icon { width: 21px; height: 21px; color: #CDEBFF; }
.mail-main { flex: 1; min-width: 0; }
.mail-main b { font-size: 12px; }
.mail-main p { margin: 3px 0 0; font-size: 9.5px; line-height: 1.5; color: var(--muted); }
.mail-main .mail-reward { margin-top: 5px; font-size: 9.5px; color: #FFD45C; }
.mail-btn { align-self: center; }
.daily-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 9px; }
.daily-cell { aspect-ratio: .82; border-radius: 9px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(150, 196, 255, .13); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 8px; color: var(--muted); }
.daily-cell b { font-size: 10px; color: #fff; }
.daily-cell.claimed { background: rgba(255, 205, 67, .14); border-color: rgba(255, 205, 67, .32); }
.daily-cell.claimed b { color: #FFD45C; }
.daily-cell.today { border-color: #FFD45C; box-shadow: 0 0 9px rgba(255, 205, 67, .25); }
.daily-big { padding: 16px; border-radius: 16px; text-align: center; background: linear-gradient(150deg, rgba(255, 205, 67, .18), rgba(255, 120, 48, .1)); border: 1px solid rgba(255, 205, 67, .3); margin-top: 10px; }
.daily-big .gift-big { width: 62px; height: 62px; margin: 0 auto 8px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(150deg, #FFE38B, #F29A17); box-shadow: 0 8px 18px rgba(255, 150, 20, .28); }
.daily-big .gift-big .mp-icon { width: 36px; height: 36px; color: #8A4300; }
.daily-big h4 { margin: 0; font-size: 15px; }
.daily-big p { margin: 5px 0 11px; font-size: 10.5px; color: var(--muted); }
.settings-row { display: flex; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid rgba(150, 196, 255, .1); }
.settings-row .sr-ic { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.settings-row .sr-ic .mp-icon { width: 18px; height: 18px; color: #B9DEFF; }
.settings-row .sr-main { flex: 1; }
.settings-row .sr-main b { display: block; font-size: 12px; }
.settings-row .sr-main span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.switch { width: 43px; height: 25px; border-radius: 13px; background: rgba(255, 255, 255, .16); position: relative; transition: background .18s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.switch.on { background: linear-gradient(90deg, #FFB328, #FF8A3D); }
.switch.on::after { transform: translateX(18px); }
.name-input { width: 100%; height: 44px; margin-top: 8px; padding: 0 12px; border-radius: 12px; background: rgba(3, 10, 32, .38); border: 1px solid rgba(150, 196, 255, .24); color: #fff; font-size: 14px; outline: none; }
.name-input:focus { border-color: #FFD45C; box-shadow: 0 0 0 3px rgba(255, 205, 67, .12); }

/* 组队匹配 */
.match-box { padding: 24px 14px; text-align: center; }
.match-ring { width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid rgba(150, 196, 255, .18); border-top-color: #6DE0FF; border-right-color: #6DA0FF; animation: spin 1s linear infinite; display: grid; place-items: center; }
.match-ring .mp-icon { width: 38px; height: 38px; color: #A8E6FF; animation: spin 1s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.match-box h3 { margin: 0; font-size: 16px; }
.match-box p { margin: 6px 0 0; font-size: 10.5px; color: var(--muted); line-height: 1.6; }
.team-result { display: flex; align-items: center; gap: 10px; padding: 11px; margin-top: 10px; border-radius: 13px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(150, 196, 255, .16); }
.team-ava { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, #6CD8FF, #3F6BFF); font-weight: 900; font-size: 15px; border: 2px solid rgba(255, 255, 255, .55); }
.team-result b { display: block; font-size: 12px; }
.team-result span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.team-result .team-tag { margin-left: auto; font-size: 9px; padding: 3px 7px; border-radius: 7px; background: rgba(89, 255, 169, .12); border: 1px solid rgba(89, 255, 169, .28); color: #8BFFC1; }

/* 通用提示 */
.toast-wrap, .toasts { position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 5px; pointer-events: none; width: max-content; max-width: 86vw; }
.toast {
  padding: 8px 14px; border-radius: 12px; background: rgba(12, 25, 64, .92);
  border: 1px solid rgba(150, 196, 255, .28); color: #EFF8FF; font-size: 11.5px; font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35); animation: toastIn .22s ease, toastOut .3s ease 2.9s forwards;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast.gold { border-color: rgba(255, 205, 67, .5); color: #FFE7A4; background: rgba(52, 38, 10, .94); }
@keyframes toastIn { from { opacity: 0; transform: translateY(9px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-7px); } }
.dialog { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(2, 6, 18, .68); backdrop-filter: blur(3px); }
.dialog-card { width: 100%; max-width: 340px; border-radius: 20px; padding: 18px; background: linear-gradient(180deg, #1C2E6D, #111E49); border: 1px solid rgba(150, 196, 255, .3); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: dialogIn .2s ease; }
@keyframes dialogIn { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dialog-card h3 { margin: 0 0 7px; font-size: 16px; text-align: center; }
.dialog-card p { margin: 0 0 14px; font-size: 11.5px; line-height: 1.6; color: var(--muted); text-align: center; }
.dialog-btns { display: flex; gap: 7px; }
.dialog-btns .btn-ghost, .dialog-btns .btn-primary { flex: 1; height: 43px; font-size: 13px; }

/* ============================ 战斗 ============================ */
.game { background: #08112D; overflow: hidden; }
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.g-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 42%, rgba(2, 6, 20, .48) 100%); }
.g-top { position: absolute; z-index: 8; top: calc(8px + var(--safe-t)); left: 11px; right: 12px; display: flex; align-items: center; gap: 9px; }
.g-back { width: 39px; height: 39px; flex: 0 0 39px; border-radius: 13px; display: grid; place-items: center; background: rgba(7, 19, 52, .62); border: 1px solid rgba(150, 196, 255, .25); backdrop-filter: blur(8px); }
.g-back .mp-icon { width: 21px; height: 21px; color: #EAF6FF; }
.g-title { flex: 1; text-align: center; }
.g-title b { display: block; font-size: 14px; letter-spacing: .5px; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.g-title span { display: block; font-size: 9px; color: rgba(200, 228, 255, .7); margin-top: 1px; }
.g-timer { display: flex; align-items: center; gap: 3px; height: 30px; padding: 0 8px; border-radius: 10px; background: rgba(7, 19, 52, .55); border: 1px solid rgba(150, 196, 255, .2); font-size: 11px; font-weight: 800; backdrop-filter: blur(6px); }
.g-timer .mp-icon { width: 13px; height: 13px; color: #8FD8FF; }
.g-playerbar { position: absolute; z-index: 8; top: calc(54px + var(--safe-t)); left: 12px; right: 12px; display: flex; align-items: center; gap: 7px; }
.g-avatar { width: 33px; height: 33px; flex: 0 0 33px; border-width: 1.5px; background-size: 152px auto; background-position: -55px -74px; }
.g-bars { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.g-hp { position: relative; height: 17px; border-radius: 9px; background: rgba(3, 9, 28, .66); border: 1px solid rgba(150, 196, 255, .22); overflow: hidden; }
.g-hp i { display: block; height: 100%; width: 100%; border-radius: 8px; background: linear-gradient(90deg, #2BE28B, #8BFFB4); box-shadow: 0 0 8px rgba(43, 226, 139, .35); transition: width .18s ease; }
.g-hp i.low { background: linear-gradient(90deg, #FF4D4D, #FF9A3D); }
.g-hp span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 8.5px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.g-clone-hp { height: 8px; border-radius: 5px; background: rgba(3, 9, 28, .55); border: 1px solid rgba(90, 215, 255, .25); overflow: hidden; position: relative; }
.g-clone-hp i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #4BC6FF, #9BE9FF); }
.g-clone-hp span { position: absolute; right: 4px; top: -1px; font-size: 6.5px; color: rgba(210, 245, 255, .8); }
.g-combo { flex: 0 0 auto; min-width: 35px; text-align: center; font-size: 14px; font-weight: 900; color: #FFD45C; text-shadow: 0 2px 5px rgba(0, 0, 0, .7); opacity: 0; transform: scale(.7); transition: all .15s ease; }
.g-combo.show { opacity: 1; transform: scale(1); }
.g-bossbar { position: absolute; z-index: 8; top: calc(119px + var(--safe-t)); left: 24px; right: 24px; padding: 5px 9px 7px; border-radius: 11px; background: rgba(25, 8, 26, .7); border: 1px solid rgba(255, 120, 80, .35); backdrop-filter: blur(7px); }
.boss-name { display: block; font-size: 10px; font-weight: 800; color: #FFC9B0; text-align: center; }
.boss-track { height: 9px; margin-top: 3px; border-radius: 5px; background: rgba(0, 0, 0, .45); overflow: hidden; position: relative; }
.boss-track i { display: block; height: 100%; width: 100%; border-radius: 5px; background: linear-gradient(90deg, #FF3D3D, #FF9A1E); transition: width .15s; }
.boss-state { position: absolute; right: 10px; top: 4px; font-size: 7.5px; color: #FFE7A0; }
.g-objective { position: absolute; z-index: 7; top: calc(93px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; max-width: 88%; padding: 4px 10px; border-radius: 10px; background: rgba(7, 19, 52, .48); border: 1px solid rgba(150, 196, 255, .16); font-size: 9px; color: #DDF1FF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.g-objective .mp-icon { width: 12px; height: 12px; color: #FFD45C; }
.g-feed { position: absolute; z-index: 7; right: 10px; top: calc(158px + var(--safe-t)); width: 190px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.feed-item { align-self: flex-end; max-width: 100%; padding: 4px 8px; border-radius: 8px; background: rgba(8, 20, 52, .7); border: 1px solid var(--rc, rgba(150, 196, 255, .22)); color: #EFF8FF; font-size: 8.5px; font-weight: 700; animation: feedIn .2s ease, feedOut .3s ease 2.2s forwards; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes feedIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes feedOut { to { opacity: 0; transform: translateX(10px); } }
.g-world-hint { position: absolute; z-index: 7; left: 50%; top: 40%; transform: translate(-50%, -50%); padding: 9px 15px; border-radius: 12px; background: rgba(7, 19, 52, .78); border: 1px solid rgba(255, 205, 67, .45); color: #FFE8A4; font-size: 11px; font-weight: 700; pointer-events: none; animation: hintPulse 1.4s infinite ease-in-out; text-align: center; line-height: 1.5; }
@keyframes hintPulse { 0%, 100% { box-shadow: 0 0 0 rgba(255, 205, 67, 0); } 50% { box-shadow: 0 0 22px rgba(255, 205, 67, .28); } }
.g-joystick { position: absolute; z-index: 9; left: 18px; bottom: calc(25px + var(--safe-b)); width: 116px; height: 116px; border-radius: 50%; touch-action: none; background: radial-gradient(circle, rgba(80, 140, 255, .14), rgba(8, 20, 52, .38)); border: 1px solid rgba(150, 196, 255, .22); box-shadow: inset 0 0 30px rgba(70, 130, 255, .1); }
.joy-ring { position: absolute; inset: 12px; border-radius: 50%; border: 1px dashed rgba(150, 196, 255, .22); }
.joy-stick { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(150, 210, 255, .5), rgba(28, 73, 190, .7)); border: 1px solid rgba(190, 230, 255, .5); box-shadow: 0 4px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35); will-change: transform; }
.joy-stick .mp-icon { width: 23px; height: 23px; color: rgba(235, 248, 255, .8); }
.g-attack { position: absolute; z-index: 9; right: 18px; bottom: calc(29px + var(--safe-b)); width: 92px; height: 92px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: radial-gradient(circle at 38% 30%, #FFC36B, #FF7A1C 60%, #E84600); border: 2px solid #FFD08C; box-shadow: 0 6px 0 #9E3200, 0 10px 22px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .45); color: #fff; touch-action: none; overflow: hidden; }
.g-attack .mp-icon { width: 31px; height: 31px; filter: drop-shadow(0 2px 2px rgba(100, 25, 0, .4)); }
.g-attack em { font-size: 8.5px; font-style: normal; font-weight: 900; letter-spacing: 2px; text-shadow: 0 1px 2px rgba(100, 25, 0, .5); }
.g-attack:active { transform: translateY(3px) scale(.97); box-shadow: 0 3px 0 #9E3200, 0 5px 12px rgba(0, 0, 0, .3); }
.g-attack.cooling::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(3, 10, 30, .62) var(--cd, 0%), transparent 0); pointer-events: none; }
.atk-ring { position: absolute; inset: 7px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); pointer-events: none; }
.g-clonebar { position: absolute; z-index: 9; left: 50%; bottom: calc(152px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 2px; height: 38px; padding: 4px; border-radius: 16px; background: rgba(7, 19, 52, .65); border: 1px solid rgba(90, 205, 255, .26); backdrop-filter: blur(8px); }
.gc-label { display: flex; align-items: center; gap: 2px; padding: 0 5px; font-size: 8px; color: #9FE4FF; font-weight: 800; }
.gc-label .mp-icon { width: 11px; height: 11px; }
.g-clonebar button { height: 30px; padding: 0 9px; border-radius: 13px; font-size: 9px; color: rgba(220, 240, 255, .68); font-weight: 700; }
.g-clonebar button.active { background: linear-gradient(180deg, rgba(89, 207, 255, .38), rgba(45, 120, 255, .25)); color: #E8FAFF; border: 1px solid rgba(120, 220, 255, .4); }
.g-goto-hint { position: absolute; z-index: 9; left: 50%; bottom: calc(192px + var(--safe-b)); transform: translateX(-50%); padding: 5px 11px; border-radius: 10px; background: rgba(9, 24, 64, .82); border: 1px solid rgba(255, 205, 67, .42); color: #FFE8A4; font-size: 9px; white-space: nowrap; pointer-events: none; }
.g-result, .g-pause, .g-event { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 18px; background: radial-gradient(ellipse at 50% 40%, rgba(20, 40, 100, .55), rgba(3, 8, 22, .88)); backdrop-filter: blur(4px); overflow-y: auto; }
.result-card { width: 100%; max-width: 400px; border-radius: 22px; padding: 18px 15px calc(15px + var(--safe-b)); background: linear-gradient(180deg, #223878, #101E4B); border: 1px solid rgba(150, 196, 255, .32); box-shadow: 0 24px 70px rgba(0, 0, 0, .6); animation: dialogIn .28s ease; }
.result-title { text-align: center; position: relative; }
.result-badge { width: 64px; height: 64px; margin: 0 auto 7px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 38% 30%, #FFF3B0, #FFB21C 60%, #EE7D00); border: 2px solid #FFE79A; box-shadow: 0 0 26px rgba(255, 188, 43, .42); }
.result-badge .mp-icon { width: 36px; height: 36px; color: #8A3B00; }
.result-title h2 { margin: 0; font-size: 21px; letter-spacing: 2px; color: #FFE28A; text-shadow: 0 2px 8px rgba(255, 150, 20, .3); }
.result-title p { margin: 4px 0 0; font-size: 10px; color: var(--muted); }
.result-stars { display: flex; justify-content: center; gap: 5px; margin-top: 7px; }
.result-stars .mp-icon { width: 21px; height: 21px; color: #FFD45C; filter: drop-shadow(0 0 5px rgba(255, 205, 67, .5)); }
.result-stars .mp-icon.dim { color: rgba(255, 255, 255, .18); filter: none; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 12px; }
.result-stat { padding: 7px 3px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(150, 196, 255, .14); text-align: center; }
.result-stat b { display: block; font-size: 15px; color: #FFE08A; }
.result-stat span { font-size: 8.5px; color: var(--muted); }
.result-rewards { display: flex; gap: 5px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.reward-pill { display: flex; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(150, 196, 255, .18); font-size: 9.5px; font-weight: 700; }
.result-loot { margin-top: 11px; }
.result-loot h4 { margin: 0 0 6px; font-size: 10px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.result-loot h4 .mp-icon { width: 13px; height: 13px; color: #FFD45C; }
.loot-row { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 9px; margin-bottom: 4px; background: rgba(255, 255, 255, .05); border-left: 2px solid var(--rc, #fff); font-size: 10px; }
.loot-row b { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loot-row em { font-style: normal; color: var(--rc, #fff); font-size: 9px; }
.result-actions { display: flex; gap: 7px; margin-top: 13px; }
.result-actions .btn-primary { flex: 1.25; height: 45px; font-size: 14px; }
.result-actions .btn-ghost { flex: 1; height: 45px; font-size: 12px; }
.pause-card { width: 100%; max-width: 320px; border-radius: 20px; padding: 20px 17px; text-align: center; background: linear-gradient(180deg, #203371, #111D46); border: 1px solid rgba(150, 196, 255, .3); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.pause-ic { width: 56px; height: 56px; margin: 0 auto 9px; border-radius: 17px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(150, 196, 255, .2); }
.pause-ic .mp-icon { width: 30px; height: 30px; color: #A8DEFF; }
.pause-card h3 { margin: 0; font-size: 18px; }
.pause-card p { margin: 6px 0 14px; font-size: 10.5px; color: var(--muted); line-height: 1.6; }
.pause-card .btn-primary { margin-bottom: 7px; }
.event-card { width: 100%; max-width: 400px; border-radius: 22px; padding: 18px 15px calc(15px + var(--safe-b)); background: linear-gradient(180deg, #2A2A6F, #15163F); border: 1px solid rgba(180, 160, 255, .38); box-shadow: 0 24px 70px rgba(0, 0, 0, .6); animation: dialogIn .25s ease; }
.event-head { text-align: center; margin-bottom: 11px; }
.event-head .ev-ic { width: 54px; height: 54px; margin: 0 auto 7px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(150deg, #C5A8FF, #6A46FF); box-shadow: 0 0 24px rgba(130, 90, 255, .35); }
.event-head .ev-ic .mp-icon { width: 31px; height: 31px; color: #fff; }
.event-head h3 { margin: 0; font-size: 18px; letter-spacing: 1px; }
.event-head p { margin: 4px 0 0; font-size: 10px; color: var(--muted); line-height: 1.5; }
.event-options { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.event-opt { display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 13px; text-align: left; background: rgba(255, 255, 255, .06); border: 1px solid rgba(170, 190, 255, .18); }
.event-opt:active { background: rgba(255, 255, 255, .1); }
.event-opt .eo-ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.event-opt .eo-ic .mp-icon { width: 20px; height: 20px; color: #D7C6FF; }
.event-opt .eo-txt { flex: 1; }
.event-opt .eo-txt b { display: block; font-size: 12px; }
.event-opt .eo-txt span { display: block; font-size: 9px; color: var(--muted); margin-top: 1px; line-height: 1.35; }
.event-opt .eo-tag { font-size: 8px; color: #FFD45C; border: 1px solid rgba(255, 205, 67, .35); padding: 2px 6px; border-radius: 6px; }
.event-skip { margin-top: 8px; text-align: center; font-size: 10px; color: var(--muted); padding: 7px; }

/* 小屏适配 */
@media (max-height: 740px) {
  .hud { padding-top: calc(6px + var(--safe-t)); }
  .avatar { width: 38px; height: 38px; flex-basis: 38px; background-size: 172px auto; background-position: -62px -84px; }
  .hud-name { font-size: 11px; }
  .cur { height: 26px; }
  .top-row { height: 82px; flex-basis: 82px; padding-bottom: 7px; }
  .season { height: 73px; }
  .quick-ic { width: 38px; height: 38px; border-radius: 13px; }
  .quick-ic .mp-icon { width: 21px; height: 21px; }
  .quick-item > span:last-child { font-size: 9px; }
  .quest-bubble { width: 184px; padding: 7px 10px 8px; }
  .quest-bubble b { font-size: 13px; }
  .hero-chip { height: 47px; }
  .chip-ic { width: 30px; height: 30px; flex-basis: 30px; }
  .chip-ic .mp-icon { width: 18px; height: 18px; }
  .chip-txt em { display: none; }
  .chip-clone { width: 145px; top: 55%; }
  .chip-loot { width: 138px; bottom: 28%; }
  .chip-siege { width: 128px; bottom: 22.5%; }
  .start-btn { height: 59px; border-radius: 19px; }
  .start-txt b { font-size: 20px; }
  .start-arrow { width: 31px; height: 31px; }
  .dock { height: calc(58px + var(--safe-b)); }
  .dock-item { height: 50px; }
}
@media (max-width: 360px) {
  .hud-tools .icon-btn:nth-child(3) { display: none; }
  .hud-name { max-width: 56px; }
  .quick-item { width: 48px; }
  .quick-ic { width: 38px; height: 38px; }
  .season-txt b { font-size: 12px; }
  .chip-clone { width: 150px; }
  .chip-loot { width: 146px; }
  .chip-siege { width: 133px; }
  .g-joystick { width: 102px; height: 102px; left: 14px; }
  .g-attack { width: 84px; height: 84px; right: 14px; }
  .g-clonebar { bottom: calc(146px + var(--safe-b)); }
}
