/* ============================================================
   v742 — 「月蚀防线」商业视觉层
   电影感主菜单 + 统一的金/血/深蓝材质 + HUD/卡牌/面板换皮。
   只覆盖视觉，不改任何游戏逻辑；所有动效仅用 transform/opacity。
   ============================================================ */
:root {
  --v42-gold: #e8c07a;
  --v42-gold-hi: #ffedbe;
  --v42-gold-deep: #9b6a2c;
  --v42-blood: #b52b35;
  --v42-blood-deep: #5c0c14;
  --v42-ink: #070a12;
  --v42-panel: rgba(10, 14, 24, 0.94);
  --v42-line: rgba(232, 192, 122, 0.32);
}

/* ================= 主菜单：电影感主视觉 ================= */
#screen-menu {
  justify-content: flex-start !important;
  align-items: center !important;
  padding-left: clamp(22px, 7vw, 120px) !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle 150px at 73% 27%, rgba(255, 246, 216, 0.98) 0%, rgba(255, 224, 158, 0.88) 42%, rgba(255, 196, 110, 0.20) 62%, transparent 75%),
    radial-gradient(80% 60% at 72% 38%, rgba(255, 176, 96, 0.13), transparent 65%),
    radial-gradient(90% 55% at 50% 0%, rgba(40, 64, 118, 0.30), transparent 58%),
    linear-gradient(180deg, #0a1020 0%, #070b16 52%, #03050a 100%) !important;
}
/* 月亮外圈冷光 + 地平线雾 */
#screen-menu::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 28% at 70% 72%, rgba(78, 112, 170, 0.16), transparent 70%),
    linear-gradient(0deg, rgba(5, 8, 14, 0.92) 0%, transparent 24%),
    repeating-linear-gradient(115deg, transparent 0 160px, rgba(150, 190, 255, 0.018) 160px 161px);
  opacity: 1;
}
/* 高模狼王主视觉（右侧，面向镜头；低亮度融入夜色） */
#screen-menu::after {
  content: ''; position: fixed; z-index: 0; pointer-events: none;
  right: -1.5vw; bottom: -5vh;
  width: min(56vw, 760px); height: min(84vh, 820px);
  background: url('../assets/wolf-hd/boss-270.png') no-repeat center bottom / contain;
  opacity: 0.62;
  filter: brightness(0.58) saturate(0.9) contrast(1.08);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%), linear-gradient(0deg, transparent 0%, #000 18%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%), linear-gradient(0deg, transparent 0%, #000 18%, #000 100%);
  mask-composite: intersect;
  transform-origin: 50% 100%;
  animation: v42WolfBreath 9s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes v42WolfBreath {
  from { transform: translate3d(0, 8px, 0) scale(1); }
  to   { transform: translate3d(0, -8px, 0) scale(1.012); }
}

#screen-menu .menu-card {
  position: relative; z-index: 2;
  width: min(432px, 92vw) !important;
  margin: 0 !important;
  padding: 22px 24px 20px !important;
  border-radius: 3px !important;
  background:
    linear-gradient(155deg, rgba(14, 19, 33, 0.965), rgba(6, 9, 16, 0.985)) padding-box !important;
  border: 1px solid rgba(232, 192, 122, 0.48) !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.78), 0 0 50px rgba(160, 40, 50, 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
  clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
#screen-menu .menu-card::before,
#screen-menu .menu-card::after {
  width: 30px !important; height: 30px !important;
  border-color: rgba(232, 192, 122, 0.85) !important;
  filter: drop-shadow(0 0 6px rgba(232, 192, 122, 0.35)) !important;
}
#screen-menu .menu-card::before { top: -1px !important; left: -1px !important; }
#screen-menu .menu-card::after { bottom: -1px !important; right: -1px !important; }

/* 标题与副标题 */
#screen-menu .menu-head { text-align: center; padding-top: 2px; }
#screen-menu .menu-logo .ico-svg {
  width: 54px !important; height: 54px !important;
  color: var(--v42-gold-hi) !important;
  filter: drop-shadow(0 0 20px rgba(232, 192, 122, 0.38)) !important;
}
#screen-menu .game-title {
  margin: 4px 0 2px !important;
  font-size: 36px !important;
  letter-spacing: 11px !important;
  text-indent: 11px;
  background: linear-gradient(180deg, #fff8e6 0%, #ffe5ad 40%, #d9a252 72%, #8f5b24 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  color: transparent !important; -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  filter: none !important;
}
#screen-menu .game-sub {
  margin: 0 0 12px !important;
  color: #93a4c6 !important;
  letter-spacing: 4px !important;
  font-size: 11px !important;
}
#screen-menu #menu-guide,
#screen-menu #menu-news {
  top: 0 !important;
  width: auto !important; min-width: 36px; height: 32px !important;
  padding: 0 9px !important;
  border-color: rgba(232, 192, 122, 0.30) !important;
  border-radius: 16px !important;
  background: rgba(10, 14, 24, 0.72) !important;
  color: var(--v42-gold) !important;
  font-size: 10px !important;
  letter-spacing: 0.5px;
  gap: 4px;
}
#screen-menu #menu-guide { right: auto !important; left: 2px !important; }
#screen-menu #menu-news { right: 2px !important; left: auto !important; }
#screen-menu #menu-guide .ico-svg,
#screen-menu #menu-news .ico-svg { width: 14px !important; height: 14px !important; }

/* 菜单按钮：金/血/黑三阶材质 */
#screen-menu .menu-card > button {
  position: relative;
  height: 50px !important;
  margin: 8px 0 0 !important;
  padding: 0 16px !important;
  border-radius: 2px !important;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-size: 15px !important;
  letter-spacing: 1.2px !important;
  font-weight: 700 !important;
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease, border-color .14s ease !important;
}
#screen-menu .menu-card > button:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}
#screen-menu .menu-card > button:active { transform: translateY(1px) scale(0.995); }
#screen-menu .btn-acc-solo {
  height: 30px !important;
  margin-top: 2px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #8494b4 !important;
  font-size: 12px !important;
  letter-spacing: 0.4px !important;
}
#screen-menu .btn-acc-solo:hover { color: var(--v42-gold-hi) !important; filter: none; }
#screen-menu #btn-create {
  background: linear-gradient(135deg, rgba(232, 192, 122, 0.16), rgba(80, 55, 20, 0.22)) !important;
  border: 1px solid rgba(232, 192, 122, 0.48) !important;
  color: #ffe9c4 !important;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.12) !important;
}
#screen-menu #btn-skin {
  background: linear-gradient(135deg, rgba(76, 33, 45, 0.92), rgba(31, 14, 21, 0.96)) !important;
  border: 1px solid rgba(202, 112, 132, 0.38) !important;
  color: #ffd7de !important;
}
#screen-menu #btn-quick-match {
  height: 60px !important;
  background:
    linear-gradient(135deg, #b62c37 0%, #8c1620 52%, #530b13 100%) !important;
  border: 1px solid rgba(255, 213, 145, 0.72) !important;
  color: #fff4dc !important;
  font-size: 17px !important;
  letter-spacing: 3px !important;
  box-shadow: 0 0 30px rgba(170, 34, 46, 0.28), inset 0 1px 0 rgba(255, 235, 190, 0.22) !important;
}
#screen-menu #btn-quick-match::after {
  content: ''; position: absolute; left: 12%; right: 12%; bottom: 7px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 225, 170, 0.55), transparent);
}
#screen-menu .menu-card > button .ico-svg { opacity: 0.9; }

/* 房间号 / 排行榜 / 战绩 / 提示 */
#screen-menu .menu-divider {
  margin: 10px 0 6px !important;
  color: #65738f !important;
  font-size: 10px !important;
  letter-spacing: 1px;
}
#screen-menu .menu-divider::before,
#screen-menu .menu-divider::after {
  background: linear-gradient(90deg, transparent, rgba(232, 192, 122, 0.28), transparent) !important;
}
#screen-menu .menu-join { display: flex; gap: 8px; margin: 0 0 7px !important; }
#screen-menu .menu-join input {
  height: 38px !important;
  border-radius: 2px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(232, 192, 122, 0.22) !important;
  color: #e9eefb !important;
  letter-spacing: 3px;
}
#screen-menu .menu-join .btn-secondary {
  height: 38px !important; min-width: 72px;
  border-radius: 2px !important;
  border: 1px solid rgba(232, 192, 122, 0.32) !important;
  background: rgba(232, 192, 122, 0.08) !important;
  color: var(--v42-gold-hi) !important;
}
#screen-menu .lb-panel {
  margin-top: 7px !important;
  padding: 9px 11px !important;
  border-radius: 2px !important;
  border: 1px solid rgba(232, 192, 122, 0.18) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
#screen-menu .lb-head { color: var(--v42-gold) !important; letter-spacing: 1px; }
#screen-menu .lb-empty { color: #6f7f9d !important; }
#screen-menu .menu-tips { color: #64738e !important; font-size: 10.5px !important; line-height: 1.65 !important; }

/* 登录页：保持居中，主视觉弱化 */
#login-gate {
  justify-content: center !important;
  padding-left: 0 !important;
  background: radial-gradient(80% 60% at 50% 18%, rgba(42, 66, 118, 0.24), transparent 65%), linear-gradient(180deg, #0a1020, #050810) !important;
}
#login-gate::after { display: none !important; }
#login-gate .menu-card { width: min(400px, 92vw) !important; }
#login-gate .menu-card > button { height: 50px !important; }
/* v1337：主 CTA 原来是血红渐变（#b62c37→#6d0e17）—— 红色在游戏里是危险/失败色，
   放在"一键登录"这种主行动上会让人犹豫。改成与"开始匹配"一致的金色主按钮。 */
#login-gate #gate-guest { height: 56px !important; background: linear-gradient(180deg, #ffd54a 0%, #f5a623 52%, #d9820f 100%) !important; border: 1px solid rgba(255, 224, 150, 0.85) !important; box-shadow: 0 6px 20px rgba(240, 168, 35, 0.38) !important; color: #1b1405 !important; }
#login-gate #gate-reg { background: rgba(232, 192, 122, 0.08) !important; border: 1px solid rgba(232, 192, 122, 0.35) !important; color: var(--v42-gold-hi) !important; }

/* ================= HUD / 资源 / 队友 ================= */
#hud-top {
  background: linear-gradient(180deg, rgba(4, 7, 13, 0.94) 0%, rgba(4, 7, 13, 0.60) 68%, transparent 100%) !important;
  border-bottom: 1px solid rgba(232, 192, 122, 0.12);
  padding-top: max(6px, env(safe-area-inset-top)) !important;
}
.hud-row { padding-left: 10px !important; padding-right: 10px !important; }
.hud-pill {
  min-height: 28px;
  padding: 4px 10px !important;
  border-radius: 3px !important;
  background: linear-gradient(180deg, rgba(23, 31, 49, 0.92), rgba(8, 12, 21, 0.94)) !important;
  border: 1px solid rgba(232, 192, 122, 0.26) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  letter-spacing: 0.3px;
}
.hud-pill.gold { border-color: rgba(232, 192, 122, 0.48) !important; box-shadow: 0 0 16px rgba(232, 192, 122, 0.08), inset 0 1px 0 rgba(255, 245, 210, 0.08) !important; }
.hud-pill.power { border-color: rgba(96, 160, 255, 0.35) !important; }
.avatar-item {
  border-radius: 3px !important;
  border: 1px solid rgba(232, 192, 122, 0.16) !important;
  background: linear-gradient(180deg, rgba(20, 28, 45, 0.88), rgba(7, 11, 19, 0.92)) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  transition: transform .12s ease, border-color .12s ease, filter .12s ease;
}
.avatar-item:hover { transform: translateY(-1px); border-color: rgba(232, 192, 122, 0.42) !important; }
.avatar-item.me { border-color: rgba(232, 192, 122, 0.48) !important; box-shadow: 0 0 14px rgba(232, 192, 122, 0.10); }
.avatar-item.attacked { border-color: rgba(255, 90, 90, 0.78) !important; box-shadow: 0 0 16px rgba(255, 60, 60, 0.28) !important; }
.avatar-emoji { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.hud-code { color: #7485a5 !important; letter-spacing: 1px; }
.hud-code span { color: var(--v42-gold) !important; }

/* 底部工具坞 */
#btn-dock {
  background: linear-gradient(180deg, rgba(18, 25, 40, 0.94), rgba(6, 9, 16, 0.96)) !important;
  border: 1px solid rgba(232, 192, 122, 0.30) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  padding: 5px 7px !important;
  gap: 4px !important;
}
.dock-btn {
  border-radius: 8px !important;
  color: #d8e2f6 !important;
  font-size: 11px !important;
  letter-spacing: 0.5px;
  transition: background .12s ease, transform .12s ease, color .12s ease;
}
.dock-btn:hover { background: rgba(232, 192, 122, 0.10) !important; color: var(--v42-gold-hi) !important; }
.dock-btn:active { transform: scale(0.97); }
.dock-ico { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45)); }

/* 快捷道具抽屉 */
.quick-items-panel {
  background: linear-gradient(160deg, rgba(16, 22, 36, 0.97), rgba(6, 9, 16, 0.98)) !important;
  border: 1px solid rgba(232, 192, 122, 0.36) !important;
  border-radius: 4px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65) !important;
}
.qi-item {
  border-radius: 3px !important;
  border: 1px solid rgba(232, 192, 122, 0.18) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)) !important;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.qi-item:hover { transform: translateY(-2px); border-color: rgba(232, 192, 122, 0.48) !important; }

/* ================= 面板统一材质 ================= */
.build-menu, .upgrade-panel, .cards-panel, .help-panel, .ghost-panel,
.team-panel, .stats-panel, .quick-items-panel, .avatar-detail-popup {
  background: linear-gradient(160deg, rgba(14, 19, 32, 0.97), rgba(6, 9, 16, 0.985)) !important;
  border: 1px solid rgba(232, 192, 122, 0.30) !important;
  border-radius: 3px !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.build-menu::before, .upgrade-panel::before, .cards-panel::before {
  background: linear-gradient(90deg, transparent, rgba(232, 192, 122, 0.75), transparent) !important;
  height: 1px !important;
}
.bm-title, .up-title, .cp-title, .help-title, .gp-title, .tp-title {
  color: var(--v42-gold-hi) !important;
  letter-spacing: 2px !important;
  border-bottom-color: rgba(232, 192, 122, 0.20) !important;
}
.bm-tip { color: #8494b2 !important; }
.bm-tabs .bm-tab {
  border-radius: 2px !important;
  border: 1px solid rgba(232, 192, 122, 0.18) !important;
  background: rgba(255, 255, 255, 0.025) !important;
}
.bm-tabs .bm-tab.picked, .bm-tabs .bm-tab.active {
  background: linear-gradient(135deg, rgba(232, 192, 122, 0.22), rgba(120, 80, 30, 0.18)) !important;
  border-color: rgba(232, 192, 122, 0.65) !important;
  color: #fff2d3 !important;
}
.build-item-row {
  border-radius: 2px !important;
  border-color: rgba(232, 192, 122, 0.12) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)) !important;
}
.build-item-row:hover { border-color: rgba(232, 192, 122, 0.32) !important; }
.up-row, .upgrade-row { border-bottom-color: rgba(232, 192, 122, 0.10) !important; }
.cp-card, .aug-card {
  transition: transform .16s cubic-bezier(.2, .8, .2, 1), box-shadow .16s ease, filter .16s ease !important;
}
@media (hover: hover) {
  .aug-card:hover, .cp-card:hover { transform: translateY(-4px); filter: brightness(1.08); }
}
.aug-card:active { transform: scale(0.985); }
.augment-panel { background: radial-gradient(ellipse at 50% 30%, rgba(34, 18, 30, 0.55), rgba(4, 6, 11, 0.92) 72%) !important; }
.aug-title { color: var(--v42-gold-hi) !important; letter-spacing: 4px; text-shadow: 0 0 24px rgba(232, 192, 122, 0.22) !important; }
.forge-timer { color: var(--v42-gold) !important; }

/* 结算 / 商店 / 账号 */
.end-screen {
  background: radial-gradient(ellipse at 50% 38%, rgba(60, 22, 30, 0.42), rgba(3, 5, 10, 0.94) 70%) !important;
}
.end-screen .panel, .end-title { color: var(--v42-gold-hi) !important; }
.end-title { letter-spacing: 6px !important; text-shadow: 0 0 28px rgba(232, 192, 122, 0.25) !important; }
.skin-modal, .recharge-modal { background: rgba(3, 5, 10, 0.82) !important; }
.sm-shell, .ac-shell {
  background: linear-gradient(160deg, rgba(16, 22, 36, 0.98), rgba(6, 9, 16, 0.99)) !important;
  border: 1px solid rgba(232, 192, 122, 0.32) !important;
  border-radius: 3px !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75) !important;
}
.sm-title, .ac-title { color: var(--v42-gold-hi) !important; letter-spacing: 2px; }
.sm-card { border-radius: 3px !important; }
.ac-submit, .sm-btn { border-radius: 2px !important; }

/* ================= 移动端：保留质感，降低合成成本 ================= */
@media (max-width: 760px) {
  #screen-menu {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #screen-menu::after {
    width: 125vw; height: 62vh; right: -38vw; bottom: -7vh;
    opacity: 0.20;
    filter: brightness(0.5) saturate(0.8);
  }
  #screen-menu .menu-card {
    width: min(94vw, 420px) !important;
    max-height: 92vh;
    overflow-y: auto;
    padding: 18px 18px 16px !important;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  #screen-menu .game-title { font-size: 30px !important; letter-spacing: 8px !important; text-indent: 8px; }
  #screen-menu .menu-logo .ico-svg { width: 44px !important; height: 44px !important; }
  #screen-menu .menu-card > button { height: 48px !important; margin-top: 7px !important; font-size: 14px !important; }
  #screen-menu #btn-quick-match { height: 56px !important; font-size: 16px !important; }
  #screen-menu .btn-acc-solo { height: 28px !important; }
  .build-menu, .upgrade-panel, .cards-panel, .help-panel, .ghost-panel,
  .team-panel, .stats-panel, .quick-items-panel, .avatar-detail-popup {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #screen-menu::after { animation: none !important; }
  #screen-menu .menu-card > button, .aug-card, .cp-card, .dock-btn, .qi-item { transition: none !important; }
}


/* v808：主菜单 CTA 统一为金色（与房间开始按钮一致） */
#screen-menu #btn-quick-match {
  background: linear-gradient(135deg, #ffe08a 0%, #e9b23e 55%, #b87a18 100%) !important;
  border-color: rgba(255, 230, 160, 0.8) !important;
  color: #1b1405 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35) !important;
  box-shadow: 0 6px 22px rgba(220,160,50,0.28), inset 0 1px 0 rgba(255,255,255,0.5) !important;
}
#screen-menu .menu-account-link { position: relative; left: 50%; transform: translateX(-50%); }


/* v1070：覆盖主题里的 HUD padding（theme 在 style.css 之后加载，必须写在这里才生效） */
#hud-top {
  padding-top: calc(54px + env(safe-area-inset-top)) !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  padding-bottom: 7px !important;
}
@media (max-width: 520px) {
  #hud-top { padding-top: calc(48px + env(safe-area-inset-top)) !important; }
}


/* v1072：恢复顶部 HUD 原始高度；BOSS 血条不再顶到屏幕最上面 */
#hud-top {
  padding-top: calc(6px + env(safe-area-inset-top)) !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  padding-bottom: 7px !important;
}


/* v1073：给左上角头像卡让出位置 */
#hud-top {
  padding-left: calc(128px + env(safe-area-inset-left)) !important;
}
@media (max-width: 520px) {
  #hud-top { padding-left: calc(116px + env(safe-area-inset-left)) !important; }
}


/* v1074：手机给 116px 头像卡留位 */
@media (max-width: 520px) {
  #hud-top { padding-left: calc(128px + env(safe-area-inset-left)) !important; }
}


/* v1075：给 130px 头像卡让位 */
#hud-top { padding-left: calc(142px + env(safe-area-inset-left)) !important; }
@media (max-width: 520px) {
  #hud-top { padding-left: calc(142px + env(safe-area-inset-left)) !important; }
}


/* v1076：头像单独占左上角，顶部 HUD 整行排在头像下方，避免横向挤压变形 */
#hud-top {
  padding-top: calc(64px + env(safe-area-inset-top)) !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}
@media (max-width: 520px) {
  #hud-top { padding-top: calc(60px + env(safe-area-inset-top)) !important; padding-left: 8px !important; }
}


/* v1078：恢复顶部 HUD 原布局，头像放到金币行下面 */
#hud-top {
  padding-top: calc(6px + env(safe-area-inset-top)) !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}


/* v1112：传说皮肤头像框覆盖主题金色默认 */
.avatar-item.skin-mythic,
.avatar-item.skin-mythic.me {
  border-color: #be9540 !important;
  box-shadow: 0 0 0 1px rgba(47,182,212,.55), 0 0 14px rgba(190,149,64,.7), inset 0 0 10px rgba(47,182,212,.2) !important;
}


/* v1118：神话级大厅 / 匹配 / 对局身份特效 */
.screen-menu { position: relative; overflow: hidden; }
.screen-menu::before {
  content: ''; position: absolute; inset: -25%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 28% 22%, rgba(47,182,212,.16), transparent 30%),
    radial-gradient(circle at 76% 68%, rgba(190,149,64,.14), transparent 32%),
    conic-gradient(from 0deg at 50% 50%, transparent 0 42%, rgba(127,232,255,.08) 47%, transparent 52% 100%);
  animation: mythicAurora 14s linear infinite;
}
.screen-menu .menu-card { position: relative; z-index: 1; }
@keyframes mythicAurora { to { transform: rotate(360deg); } }

#screen-menu .menu-card::before {
  content: ''; position: absolute; inset: -1px; pointer-events: none; z-index: -1;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, rgba(255,215,107,.55), rgba(47,182,212,.25), rgba(255,215,107,.55));
  background-size: 220% 100%; animation: mythicBorderFlow 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@keyframes mythicBorderFlow { to { background-position: 220% 0; } }

#lobby-profile.mythic-lobby {
  border-color: rgba(255,215,107,.8) !important;
  box-shadow: 0 0 0 1px rgba(127,232,255,.5), 0 0 24px rgba(47,182,212,.25), inset 0 0 22px rgba(190,149,64,.12) !important;
}
#lobby-profile.mythic-lobby .lp-avatar::after {
  content: '✦'; position: absolute; right: -4px; top: -5px; color: #7fe8ff;
  font-size: 12px; text-shadow: 0 0 10px #2fb6d4; pointer-events: none;
}

/* 匹配界面 */
#match-block {
  position: relative; overflow: hidden;
  border: 1px solid rgba(190,149,64,.65) !important;
  box-shadow: 0 0 0 1px rgba(47,182,212,.25), 0 0 34px rgba(47,182,212,.18), inset 0 0 40px rgba(190,149,64,.06) !important;
  background: radial-gradient(circle at 50% 32%, rgba(47,182,212,.16), transparent 45%), rgba(8,12,22,.92) !important;
}
#match-block::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,215,107,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 28%, rgba(127,232,255,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 76%, rgba(255,215,107,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 82%, rgba(127,232,255,.6) 0 1px, transparent 2px);
  background-size: 180px 160px, 230px 210px, 260px 240px, 200px 220px;
  animation: matchStars 8s linear infinite;
  opacity: .65;
}
#match-block::after {
  content: ''; position: absolute; left: 50%; top: 42%; width: 190px; height: 190px;
  transform: translate(-50%,-50%); border-radius: 50%; pointer-events: none; z-index: 0;
  border: 1px dashed rgba(127,232,255,.2);
  box-shadow: 0 0 34px rgba(47,182,212,.12), inset 0 0 26px rgba(190,149,64,.08);
  animation: matchOrbit 7s linear infinite;
}
@keyframes matchStars { from { background-position: 0 0, 0 0, 0 0, 0 0; } to { background-position: 180px 160px, -230px 210px, 260px -240px, -200px -220px; } }
@keyframes matchOrbit { to { transform: translate(-50%,-50%) rotate(360deg); } }
#match-block .match-spin, #match-block .match-title, #match-block .match-room, #match-block .match-timer { position: relative; z-index: 1; }
#match-block .match-title { color: #ffe6a8 !important; text-shadow: 0 0 12px rgba(255,215,107,.45), 0 0 28px rgba(47,182,212,.22); letter-spacing: 2px; }
#match-block .match-ring { border-color: rgba(127,232,255,.65) !important; box-shadow: 0 0 18px rgba(47,182,212,.35); }
#match-block .match-core { box-shadow: 0 0 18px rgba(255,215,107,.7) !important; }

/* 对局内神话边框 */
body.in-game.mythic-equipped::before {
  content: ''; position: fixed; inset: 5px; z-index: 45; pointer-events: none;
  border: 1px solid rgba(255,215,107,.65); border-radius: 13px;
  box-shadow: 0 0 0 1px rgba(47,182,212,.28), 0 0 24px rgba(47,182,212,.18), inset 0 0 32px rgba(190,149,64,.08);
  animation: mythicEdge 2.4s ease-in-out infinite;
}
body.in-game.mythic-equipped::after {
  content: '✦'; position: fixed; right: 10px; top: 70px; z-index: 46; pointer-events: none;
  color: #7fe8ff; font-size: 12px; text-shadow: 0 0 12px #2fb6d4;
}
@keyframes mythicEdge { 0%,100% { opacity: .45; } 50% { opacity: .95; } }


/* v1119：大厅神话身份再提亮 */
body.mythic-equipped #screen-menu .menu-card {
  border-color: rgba(255,215,107,.58) !important;
  box-shadow: 0 0 0 1px rgba(47,182,212,.28), 0 0 34px rgba(47,182,212,.18), 0 0 70px rgba(190,149,64,.12) !important;
}
body.mythic-equipped #screen-menu .menu-logo {
  filter: drop-shadow(0 0 12px rgba(127,232,255,.8)) drop-shadow(0 0 26px rgba(190,149,64,.55));
  animation: mythicLogoFloat 2.8s ease-in-out infinite;
}
body.mythic-equipped #screen-menu .menu-card::after {
  content: ''; position: absolute; inset: 8px; pointer-events: none; z-index: -1;
  border: 1px solid rgba(47,182,212,.18); border-radius: 10px;
}
@keyframes mythicLogoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
body.mythic-equipped #match-block { box-shadow: 0 0 0 1px rgba(255,215,107,.35), 0 0 46px rgba(47,182,212,.26), inset 0 0 54px rgba(190,149,64,.1) !important; }


/* v1119：神话边框覆盖到创建房间/大厅所有 screen，不只主菜单 */
body.mythic-equipped .screen-menu .menu-card {
  border-color: rgba(255,215,107,.62) !important;
  box-shadow: 0 0 0 1px rgba(47,182,212,.35), 0 0 34px rgba(47,182,212,.2), 0 0 74px rgba(190,149,64,.14) !important;
}
body.mythic-equipped .screen-menu .menu-card::before {
  content: ''; position: absolute; inset: -1px; pointer-events: none; z-index: 5;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, rgba(255,215,107,.9), rgba(47,182,212,.45), rgba(255,215,107,.9));
  background-size: 220% 100%; animation: mythicBorderFlow 5s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
body.mythic-equipped #screen-lobby .room-equip img {
  border: 1px solid #be9540;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(47,182,212,.5), 0 0 14px rgba(190,149,64,.55);
}


/* v1122：神话身份边框做粗、做亮、加水印，避免只有头像变化 */
body.mythic-equipped .screen-menu .menu-card {
  border: 2px solid #ffd76b !important;
  box-shadow: 0 0 0 2px rgba(47,182,212,.55), 0 0 42px rgba(47,182,212,.32), 0 0 90px rgba(190,149,64,.2), inset 0 0 48px rgba(190,149,64,.06) !important;
}
body.mythic-equipped .screen-menu .menu-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit; opacity: .10;
  background: url('../assets/skin/dragonlord/v2/stand_front.png') center / contain no-repeat;
  filter: saturate(.8) brightness(1.3);
}
body.mythic-equipped .screen-menu .menu-card::before {
  content: ''; position: absolute; inset: -3px; pointer-events: none; z-index: 5;
  border-radius: inherit; padding: 3px;
  background: linear-gradient(115deg, #ffd76b, #2fb6d4, #ffe9a8, #2fb6d4, #ffd76b);
  background-size: 260% 100%; animation: mythicBorderFlow 3.2s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
body.mythic-equipped #lobby-profile.mythic-lobby {
  border: 2px solid #ffd76b !important;
  box-shadow: 0 0 0 2px rgba(47,182,212,.5), 0 0 26px rgba(190,149,64,.55) !important;
}
body.mythic-equipped #screen-lobby .room-equip {
  border: 1px solid rgba(255,215,107,.65) !important;
  box-shadow: 0 0 20px rgba(47,182,212,.16) !important;
}


/* v1123：主菜单优先级修正（#screen-menu 的 ID 规则会压过 .screen-menu 的类规则） */
body.mythic-equipped #screen-menu .menu-card {
  border: 2px solid #ffd76b !important;
  box-shadow: 0 0 0 2px rgba(47,182,212,.55), 0 0 42px rgba(47,182,212,.32), 0 0 90px rgba(190,149,64,.2), inset 0 0 48px rgba(190,149,64,.06) !important;
}
body.mythic-equipped #screen-menu .menu-card::before {
  content: ''; position: absolute; inset: -3px; pointer-events: none; z-index: 5;
  border-radius: inherit; padding: 3px;
  background: linear-gradient(115deg, #ffd76b, #2fb6d4, #ffe9a8, #2fb6d4, #ffd76b);
  background-size: 260% 100%; animation: mythicBorderFlow 3.2s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
body.mythic-equipped #screen-menu .menu-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border: 0 !important; border-radius: inherit; opacity: .10;
  background: url('../assets/skin/dragonlord/v2/stand_front.png') center / contain no-repeat;
  filter: saturate(.8) brightness(1.3);
}


/* v1125：创建房间也走 #screen-lobby 的 ID 级边框，避免再被旧规则压掉 */
body.mythic-equipped #screen-lobby .menu-card {
  border: 2px solid #ffd76b !important;
  box-shadow: 0 0 0 2px rgba(47,182,212,.55), 0 0 42px rgba(47,182,212,.3), 0 0 84px rgba(190,149,64,.18), inset 0 0 44px rgba(190,149,64,.06) !important;
}
body.mythic-equipped #screen-lobby .menu-card::before {
  content: ''; position: absolute; inset: -3px; pointer-events: none; z-index: 5;
  border-radius: inherit; padding: 3px;
  background: linear-gradient(115deg, #ffd76b, #2fb6d4, #ffe9a8, #2fb6d4, #ffd76b);
  background-size: 260% 100%; animation: mythicBorderFlow 3.2s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}


/* v1126：神话大厅流光层（扫光 + 星屑），不再只有一圈边框 */
.mythic-fx { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; border-radius: inherit; }
.mythic-fx .mythic-sweep {
  position: absolute; top: -70%; left: -45%; width: 28%; height: 240%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(127,232,255,.10) 25%, rgba(127,232,255,.42) 48%, rgba(255,215,107,.38) 55%, transparent 80%);
  filter: blur(3px); mix-blend-mode: screen;
  animation: mythicSweep 3.6s linear infinite;
}
@keyframes mythicSweep { from { left: -50%; } to { left: 125%; } }
.mythic-fx .ms {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #bff6ff; box-shadow: 0 0 9px #2fb6d4, 0 0 18px rgba(47,182,212,.6);
  opacity: 0; animation: mythicSpark 3.8s linear infinite;
}
.mythic-fx .ms1 { left: 12%; bottom: 10%; animation-delay: .1s; }
.mythic-fx .ms2 { left: 28%; bottom: 8%; animation-delay: 1.1s; background: #ffe6a8; box-shadow: 0 0 9px #be9540, 0 0 18px rgba(190,149,64,.6); }
.mythic-fx .ms3 { left: 46%; bottom: 12%; animation-delay: 2.2s; }
.mythic-fx .ms4 { left: 62%; bottom: 6%; animation-delay: .8s; background: #ffe6a8; }
.mythic-fx .ms5 { left: 78%; bottom: 11%; animation-delay: 2.8s; }
.mythic-fx .ms6 { left: 88%; bottom: 7%; animation-delay: 1.7s; }
.mythic-fx .ms7 { left: 38%; bottom: 4%; animation-delay: 3.3s; background: #ffe6a8; }
.mythic-fx .ms8 { left: 55%; bottom: 3%; animation-delay: .4s; }
@keyframes mythicSpark {
  0% { opacity: 0; transform: translateY(0) scale(.6); }
  15% { opacity: .95; }
  75% { opacity: .7; }
  100% { opacity: 0; transform: translateY(-210px) scale(1.15); }
}
body.mythic-equipped #lobby-profile .lp-avatar {
  position: relative;
  box-shadow: 0 0 0 2px rgba(255,215,107,.6), 0 0 20px rgba(47,182,212,.45) !important;
}
body.mythic-equipped #lobby-profile .lp-avatar::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 20%, rgba(127,232,255,.9) 32%, transparent 44%, rgba(255,215,107,.8) 62%, transparent 74%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: mythicAvatarRing 3s linear infinite;
}
@keyframes mythicAvatarRing { to { transform: rotate(360deg); } }


/* v1127：只保留“头像金属边框 + 边框流光”，不再整卡扫光 */
.mythic-fx { display: none !important; }
body.mythic-equipped #screen-menu .menu-card,
body.mythic-equipped #screen-lobby .menu-card {
  border: 1px solid rgba(190,149,64,.32) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.55) !important;
}
body.mythic-equipped #screen-menu .menu-card::before,
body.mythic-equipped #screen-menu .menu-card::after,
body.mythic-equipped #screen-lobby .menu-card::before,
body.mythic-equipped #screen-lobby .menu-card::after { display: none !important; }
body.mythic-equipped #lobby-profile.mythic-lobby {
  border-color: rgba(190,149,64,.28) !important;
  box-shadow: none !important;
}
body.in-game.mythic-equipped::before,
body.in-game.mythic-equipped::after { display: none !important; }

/* 金属头像框：外圈古金 + 内圈深钢，伪元素沿边框流动 */
#lobby-profile .lp-avatar {
  border: 2px solid transparent !important; border-radius: 50%;
  background: linear-gradient(#0b111d,#0b111d) padding-box,
              conic-gradient(from 210deg, #6b4e20, #ffe6a8, #be9540, #4a3a24, #7fe8ff, #be9540, #6b4e20) border-box !important;
  box-shadow: 0 0 0 1px rgba(47,182,212,.35), 0 0 18px rgba(190,149,64,.45) !important;
}
#lobby-profile .lp-avatar::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; z-index: 4;
  background: conic-gradient(from 0deg, transparent 0 35%, rgba(255,255,255,.85) 42%, rgba(127,232,255,.4) 48%, transparent 56%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: mythicAvatarRing 2.6s linear infinite;
}
#lobby-profile .lp-avatar::after { color: #ffe6a8 !important; text-shadow: 0 0 10px #be9540, 0 0 18px #2fb6d4 !important; }

#hud-hero-card.mythic-skin .hhc-frame {
  position: relative; border: 2px solid transparent !important; border-radius: 9px;
  background: linear-gradient(#101724,#101724) padding-box,
              conic-gradient(from 210deg, #6b4e20, #ffe6a8, #be9540, #3b3020, #7fe8ff, #be9540, #6b4e20) border-box !important;
  box-shadow: 0 0 0 1px rgba(47,182,212,.35), 0 0 16px rgba(190,149,64,.5) !important;
}
#hud-hero-card.mythic-skin .hhc-frame::after {
  content: ''; position: absolute; inset: -4px; border-radius: inherit; pointer-events: none; z-index: 6;
  background: conic-gradient(from 0deg, transparent 0 38%, rgba(255,255,255,.85) 45%, rgba(127,232,255,.45) 51%, transparent 59%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 2px;
  animation: mythicAvatarRing 2.8s linear infinite;
}
#hud-hero-card.mythic-skin .hhc-frame::before { content: '✦'; right: -5px; top: -7px; z-index: 7; }

.avatar-item.skin-mythic {
  border: 2px solid transparent !important;
  background: linear-gradient(#2a3040,#2a3040) padding-box,
              conic-gradient(from 200deg, #6b4e20, #ffe6a8, #be9540, #253044, #7fe8ff, #be9540, #6b4e20) border-box !important;
  box-shadow: 0 0 0 1px rgba(47,182,212,.35), 0 0 12px rgba(190,149,64,.5) !important;
}
.avatar-item.skin-mythic::before {
  content: ''; position: absolute; inset: -3px; border-radius: inherit; pointer-events: none; z-index: 4;
  background: conic-gradient(from 0deg, transparent 0 38%, rgba(255,255,255,.8) 46%, transparent 56%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
  animation: mythicAvatarRing 3s linear infinite;
}
.room-slot.skin-mythic img {
  border: 2px solid transparent !important; border-radius: 8px;
  background: linear-gradient(#101724,#101724) padding-box,
              conic-gradient(from 210deg, #6b4e20, #ffe6a8, #be9540, #2a3a50, #7fe8ff, #be9540, #6b4e20) border-box !important;
  box-shadow: 0 0 0 1px rgba(47,182,212,.35), 0 0 12px rgba(190,149,64,.45) !important;
}


/* v1128：星穹龙帝专属主界面 / 匹配界面：龙翼底纹 + 星屑 + 流光标题 */
body.mythic-equipped #screen-menu::after,
body.mythic-equipped #screen-lobby::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* v1399（用户配图："传说皮肤匹配时背景图全是歪的"）：
     这里原来是**一张龙翼 PNG 贴在整屏右上角**（430px 宽、right -90px top -60px）——
     屏幕上就是"半片翅膀糊在边角"，看起来完全歪掉；匹配卡片上还再来一张 320px 的，
     于是翅膀还从卡片后面支出来。现在整屏只用光带 + 星屑做底纹，不再用任何具象图。 */
  background:
    linear-gradient(115deg, transparent 30%, rgba(127,232,255,.10) 44%, rgba(255,215,107,.13) 50%, transparent 64%),
    radial-gradient(circle at 18% 24%, rgba(127,232,255,.75) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 66%, rgba(255,215,107,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 78%, rgba(127,232,255,.55) 0 1px, transparent 2px);
  background-size: 240% 100%, 170px 150px, 230px 210px, 190px 170px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  opacity: .72;
  animation: mythicScreenSweep 6s linear infinite, mythicStarDrift 12s linear infinite;
}
body.mythic-equipped #screen-lobby::after {
  background-size: 240% 100%, 170px 150px, 230px 210px, 190px 170px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  opacity: .62;
}
@keyframes mythicScreenSweep {
  0% { background-position: -120% 0, 0 0, 0 0, 0 0; }
  100% { background-position: 220% 0, 0 0, 0 0, 0 0; }
}
@keyframes mythicStarDrift {
  0% { background-position: -120% 0, 0 0, 0 0, 0 0; }
  100% { background-position: 220% 0, 170px 150px, -230px 210px, 190px -170px; }
}
body.mythic-equipped #screen-menu .game-title,
body.mythic-equipped #lobby-profile-name,
body.mythic-equipped #match-block .match-title,
body.mythic-equipped #match-block .match-room b,
body.mythic-equipped #match-block .match-count,
body.mythic-equipped #match-block .match-tip {
  background: linear-gradient(100deg, #ffd76b 0%, #fff4c7 22%, #7fe8ff 45%, #ffd76b 68%, #fff4c7 100%) !important;
  background-size: 240% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 8px rgba(47,182,212,.35));
  animation: mythicTextFlow 4.5s linear infinite;
}
@keyframes mythicTextFlow { to { background-position: 240% 0; } }

body.mythic-equipped #screen-menu .menu-card,
body.mythic-equipped #screen-lobby .menu-card {
  border: 2px solid #be9540 !important;
  box-shadow: 0 0 0 2px rgba(47,182,212,.32), 0 0 34px rgba(47,182,212,.2), 0 0 70px rgba(190,149,64,.12) !important;
}
body.mythic-equipped #screen-menu .menu-card::before,
body.mythic-equipped #screen-lobby .menu-card::before {
  content: ''; position: absolute; inset: -3px; pointer-events: none; z-index: 5;
  border-radius: inherit; padding: 3px;
  background: linear-gradient(115deg, #ffd76b, #2fb6d4, #ffe9a8, #2fb6d4, #ffd76b);
  background-size: 260% 100%; animation: mythicBorderFlow 3.4s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
body.mythic-equipped #screen-menu .menu-card::after,
body.mythic-equipped #screen-lobby .menu-card::after { display: none !important; }

body.mythic-equipped #match-block {
  border: 1px solid rgba(255,215,107,.7) !important;
  /* v1399：匹配卡片上原有一张 320px 的龙翼当背景 —— 翅膀从卡片里支出去，
     配上"正在匹配"的文字就是用户截图里那个"歪掉的大翅膀"。这里只留光带 + 中心光晕。 */
  background:
    linear-gradient(115deg, transparent 30%, rgba(127,232,255,.07) 46%, rgba(255,215,107,.08) 52%, transparent 66%),
    radial-gradient(circle at 50% 32%, rgba(47,182,212,.16), transparent 45%),
    rgba(8,12,22,.94) !important;
  box-shadow: 0 0 0 1px rgba(47,182,212,.28), 0 0 38px rgba(47,182,212,.2), inset 0 0 42px rgba(190,149,64,.07) !important;
}
body.mythic-equipped #match-block::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(115deg, transparent 32%, rgba(127,232,255,.10) 45%, rgba(255,215,107,.12) 51%, transparent 64%),
    radial-gradient(circle at 22% 20%, rgba(255,215,107,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 28%, rgba(127,232,255,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 76%, rgba(255,215,107,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 82%, rgba(127,232,255,.6) 0 1px, transparent 2px);
  background-size: 240% 100%, 180px 160px, 230px 210px, 260px 240px, 200px 220px;
  animation: mythicScreenSweep 5s linear infinite, mythicStarDrift 11s linear infinite;
}
body.mythic-equipped #match-block::after {
  border-color: rgba(127,232,255,.35) !important;
  box-shadow: 0 0 40px rgba(47,182,212,.2), inset 0 0 30px rgba(190,149,64,.12) !important;
}


/* v1399（用户配图）：卡片内部原来也贴了 300px 的龙翼 —— 落在"正在匹配"这几个字后面，
   翅膀尖还从卡片边缘支出去，正是截图里那个"歪掉的大翅膀"。现在只留星屑。 */
body.mythic-equipped #screen-menu .menu-card::after,
body.mythic-equipped #screen-lobby .menu-card::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: inherit; opacity: .5; overflow: hidden;
  background:
    radial-gradient(circle at 18% 30%, rgba(127,232,255,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 62%, rgba(255,215,107,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 80%, rgba(127,232,255,.55) 0 1px, transparent 2px);
  background-size: 160px 140px, 210px 190px, 180px 170px;
  background-position: 0 0, 0 0, 0 0;
  animation: mythicCardPattern 10s linear infinite;
}
@keyframes mythicCardPattern {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 160px 140px, -210px 190px, 180px -170px; }
}
body.mythic-equipped #match-block {
  background-image:
    linear-gradient(115deg, transparent 30%, rgba(127,232,255,.07) 46%, rgba(255,215,107,.08) 52%, transparent 66%),
    radial-gradient(circle at 50% 32%, rgba(47,182,212,.16), transparent 45%) !important;
  background-size: 240% 100%, 100% 100% !important;
  background-position: 0 0, center !important;
  background-repeat: no-repeat !important;
  overflow: hidden !important;   /* 任何装饰都不许再溢出卡片 */
}


/* v1131：神话“名片卡”自己的背景，不再只换整屏 */
body.mythic-equipped #lobby-profile {
  position: relative; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(19,41,75,.96), rgba(10,22,40,.97)),
    url('../assets/skin/dragonlord/v2/wing.png') right -12px center / 145px auto no-repeat !important;
  border: 2px solid #be9540 !important;
  box-shadow: 0 0 0 1px rgba(47,182,212,.35), 0 0 24px rgba(190,149,64,.28), inset 0 0 30px rgba(47,182,212,.08) !important;
}
body.mythic-equipped #lobby-profile::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(127,232,255,.14) 45%, rgba(255,215,107,.16) 52%, transparent 68%);
  animation: profileSweep 4.5s linear infinite;
}
body.mythic-equipped #lobby-profile::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background:
    radial-gradient(circle at 16% 26%, rgba(127,232,255,.85) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 64%, rgba(255,215,107,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 45% 82%, rgba(127,232,255,.6) 0 1px, transparent 2px);
  background-size: 120px 100px, 170px 140px, 140px 120px;
  animation: profileStars 8s linear infinite;
}
body.mythic-equipped #lobby-profile > * { position: relative; z-index: 1; }
@keyframes profileSweep { from { transform: translateX(-100%); } to { transform: translateX(130%); } }
@keyframes profileStars { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 120px 100px, -170px 140px, 140px -120px; } }

body.mythic-equipped #hud-hero-card.mythic-skin {
  overflow: hidden;
  background: linear-gradient(120deg, rgba(19,41,75,.92), rgba(10,22,40,.96)) !important;
  border: 1px solid rgba(190,149,64,.55) !important;
  box-shadow: 0 0 0 1px rgba(47,182,212,.25), 0 0 18px rgba(190,149,64,.3) !important;
}
body.mythic-equipped .room-slot.skin-mythic {
  background: linear-gradient(115deg, rgba(19,41,75,.85), rgba(10,22,40,.92)) !important;
  border-color: rgba(190,149,64,.65) !important;
  box-shadow: 0 0 0 1px rgba(47,182,212,.25), 0 0 12px rgba(190,149,64,.22) !important;
}
body.mythic-equipped #screen-lobby .room-equip {
  background: linear-gradient(115deg, rgba(19,41,75,.75), rgba(10,22,40,.9)) !important;
  border: 1px solid rgba(190,149,64,.55) !important;
}


/* v1132：名片金边覆盖旧的低透明度规则 */
body.mythic-equipped #lobby-profile.mythic-lobby {
  border: 2px solid #be9540 !important;
  box-shadow: 0 0 0 1px rgba(47,182,212,.42), 0 0 24px rgba(190,149,64,.4), inset 0 0 30px rgba(47,182,212,.08) !important;
}


/* v1142：传说皮肤也有头像框/流光（史诗及以下没有） */
#hud-hero-card.legendary-skin .hhc-frame {
  position: relative; border: 2px solid transparent !important; border-radius: 9px;
  background: linear-gradient(#101724,#101724) padding-box,
              conic-gradient(from 210deg, #5b4a70, #e7d6ff, #9b7bd4, #273044, #7fe8ff, #9b7bd4, #5b4a70) border-box !important;
  box-shadow: 0 0 0 1px rgba(155,123,212,.42), 0 0 16px rgba(124,108,255,.45) !important;
}
#hud-hero-card.legendary-skin .hhc-frame::after {
  content: ''; position: absolute; inset: -4px; border-radius: inherit; pointer-events: none; z-index: 6;
  background: conic-gradient(from 0deg, transparent 0 38%, rgba(255,255,255,.8) 45%, rgba(155,123,212,.55) 51%, transparent 59%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 2px;
  animation: mythicAvatarRing 3.1s linear infinite;
}
#hud-hero-card.legendary-skin .hhc-frame::before { content: '✦'; right: -5px; top: -7px; z-index: 7; color: #d8c6ff; }
.avatar-item.skin-legendary {
  border: 2px solid transparent !important;
  background: linear-gradient(#2a3040,#2a3040) padding-box,
              conic-gradient(from 200deg, #5b4a70, #e7d6ff, #9b7bd4, #253044, #7fe8ff, #9b7bd4, #5b4a70) border-box !important;
  box-shadow: 0 0 0 1px rgba(155,123,212,.4), 0 0 12px rgba(124,108,255,.45) !important;
}
.room-slot.skin-legendary img {
  border: 2px solid transparent !important; border-radius: 8px;
  background: linear-gradient(#101724,#101724) padding-box,
              conic-gradient(from 210deg, #5b4a70, #e7d6ff, #9b7bd4, #273044, #7fe8ff, #9b7bd4, #5b4a70) border-box !important;
  box-shadow: 0 0 0 1px rgba(155,123,212,.4), 0 0 12px rgba(124,108,255,.4) !important;
}


/* v1148：登录页高级金属徽记 */
.night-logo { width: 136px; height: 96px; display: inline-block; vertical-align: middle; filter: drop-shadow(0 8px 18px rgba(0,0,0,.55)) drop-shadow(0 0 16px rgba(47,182,212,.25)); animation: nlBreath 4.5s ease-in-out infinite; }
@keyframes nlBreath { 0%,100% { transform: translateY(0) scale(1); filter: drop-shadow(0 8px 18px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(47,182,212,.22)); } 50% { transform: translateY(-3px) scale(1.015); filter: drop-shadow(0 10px 22px rgba(0,0,0,.6)) drop-shadow(0 0 24px rgba(47,182,212,.35)); } }
#login-gate .game-title {
  background: linear-gradient(180deg, #fffbe6 0%, #ffe9a8 30%, #ffd76b 48%, #a87521 62%, #ffe8a8 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  color: transparent !important; -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 3px 0 rgba(30,18,5,.85)) drop-shadow(0 0 18px rgba(255,190,80,.28));
  letter-spacing: 8px !important;
}
#login-gate .game-sub { letter-spacing: 3px !important; color: #9fb6d6 !important; }
#login-gate .menu-logo { margin-bottom: 2px !important; }


/* v1151：主菜单 Logo 强制金色（避免隐藏登录页的重复 gradient id 导致发黑） */
#screen-menu .night-logo { opacity: 1 !important; }
#screen-menu .night-logo path[stroke="url(#nmGold)"] { stroke: #ffd76b !important; }
#screen-menu .night-logo path[fill="url(#nmGold)"] { fill: #ffd76b !important; }
#screen-menu .night-logo path[fill="url(#nmCyan)"] { fill: #7fe8ff !important; }
