/* =====================================================================
   screens-home.css —— 主页「FC 风 v2 大厅」（设计稿 design_handoff_main_menu）。
   电竞 / EA Sports FC Mobile 风：棱角几何（clip-path 斜切）、电光绿能量
   (--hm-energy #15e371)、Saira Condensed 粗斜体、程序化段位徽章 SVG。
   双设计稿：竖版 1080x1920（默认）/ 横版 1920x1080（body.landscape，
   由 https://d1u4k7xc6u3yed.cloudfront.net/agent-soccer/js/app.js fitStage() 切换）。横版按原型桌面布局 1:1 复刻（app 宽
   1180 居中），竖版按原型 portrait 布局以 ~2.5x 放大适配 1080 宽舞台。
   ===================================================================== */

/* ---------------- 设计令牌（独立前缀 hm-，不污染 theme.css 全局变量） ---------------- */
#screen-home {
  --hm-ink: #04070d;
  --hm-txt: #eaf1fb;
  --hm-txt-dim: #90a0bc;
  --hm-txt-faint: #5d6c8a;
  --hm-panel: rgba(12, 18, 32, 0.72);
  --hm-panel2: rgba(16, 24, 42, 0.9);
  --hm-stroke: rgba(120, 150, 200, 0.16);
  --hm-energy: #15e371;
  --hm-energy2: #7dffb0;
  --hm-cyan: #2bc7f0;
  --hm-gold: #f5c451;
  --hm-rose: #fb4d6a;
  --hm-silver1: #f3f7fc;
  --hm-silver2: #bccadf;
  --hm-silver3: #7e8fab;
  --hm-d: 'Saira Condensed', 'Noto Sans SC', system-ui, sans-serif; /* 显示/数字 */
  --hm-f: 'Saira', 'Noto Sans SC', system-ui, sans-serif;           /* 标签/正文 */

  font-family: var(--hm-f);
  color: var(--hm-txt);
  background: var(--hm-ink);
  overflow: hidden;
}
#screen-home b, #screen-home i { font-style: normal; }
#screen-home button { font-family: inherit; cursor: pointer; color: inherit; }

/* =====================================================================
   背景多层场景（从底到顶：渐变底/斜纹/能量楔形/粒子/扫描线/暗角）
   ===================================================================== */
.hm-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hm-bg-base {
  position: absolute; inset: 0;
  background:
    radial-gradient(820px 620px at 14% 2%, rgba(21, 227, 113, 0.16), transparent 55%),
    radial-gradient(820px 640px at 90% 6%, rgba(43, 199, 240, 0.16), transparent 52%),
    var(--hm-bgimg, none) center/cover no-repeat,
    linear-gradient(180deg, #04070d 0%, #070d18 55%, #04070f 100%);
}
/* gpt-image-2 生成的球场氛围底图（竖/横各一张），叠在霓虹光晕下、暗角层之上 */
#screen-home { --hm-bgimg: url("https://d1u4k7xc6u3yed.cloudfront.net/agent-soccer/assets/ui/bg_home.webp"); }
body.landscape #screen-home { --hm-bgimg: url("https://d1u4k7xc6u3yed.cloudfront.net/agent-soccer/assets/ui/bg_home_land.webp"); }
.hm-bg-hatch {
  position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px);
}
.hm-bg-wedge {
  position: absolute; top: -20%; left: -12%; width: 62%; height: 140%;
  background: linear-gradient(150deg, rgba(21, 227, 113, 0.14), transparent 58%);
  clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%);
  filter: blur(10px);
}
#home-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-bg-scan {
  position: absolute; inset: 0; opacity: .25;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
}
.hm-bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(125% 105% at 50% 36%, transparent 50%, rgba(2, 4, 9, 0.78) 100%);
}

/* =====================================================================
   右上角控件：语言切换（斜切角）+ 声音（圆形）——id/class/行为不变，
   仅改观感（theme.css 的定位 top/right 保留）
   ===================================================================== */
#screen-home .lang-toggle {
  background: var(--hm-panel);
  border: 1px solid var(--hm-stroke);
  backdrop-filter: blur(10px);
  border-radius: 0;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  font-family: var(--hm-f);
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--hm-txt);
  transition: .16s;
}
#screen-home .lang-toggle:hover {
  color: var(--hm-energy);
  border-color: var(--hm-stroke);
  box-shadow: 0 0 18px rgba(21, 227, 113, 0.3);
  transform: none;
}
/* 静音钮挪到左上角：右上角已被语言切换占用，二者并排会拥挤/相互遮挡，
   左上角竖横两版都为空白区（英雄标题在其下方），互不干扰 */
#screen-home .audio-mute {
  left: 28px;
  right: auto;
  background: var(--hm-panel);
  border: 1px solid var(--hm-stroke);
  backdrop-filter: blur(10px);
}
#screen-home .audio-mute:hover {
  border-color: var(--hm-stroke);
  box-shadow: 0 0 18px rgba(21, 227, 113, 0.3);
}

/* =====================================================================
   布局（竖版默认：英雄横幅在上、HUD + 菜单在下，超高时内部滚动）
   ===================================================================== */
.hm-app {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  gap: 30px;
  padding: 136px 44px 36px; /* 顶部给右上角控件留位 */
  overflow-y: auto;
}

/* =====================================================================
   英雄区
   ===================================================================== */
.hm-hero {
  position: relative;
  flex: 0 0 auto;
  /* 980 = 上下留白(205+200) + 内容(舞台340+间距+段位名/进度≈494) + 余量；
     880 时内容溢出会上压标题、下叠段位阶梯（竖版错乱 bug）。
     段位区下方新增了「匹配/练习」CTA（约 +170），故抬到 1160 防止挤压标题/阶梯。 */
  min-height: 1160px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(16, 24, 42, 0.86), rgba(8, 13, 24, 0.7));
  border: 1px solid var(--hm-stroke);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), calc(100% - 64px) 100%, 0 100%);
}
.hm-hero-energy {
  position: absolute; right: -8%; top: -10%; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(21, 227, 113, 0.22), transparent 70%);
  filter: blur(6px);
}
.hm-hero-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(43, 199, 240, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 199, 240, 0.10) 1px, transparent 1px);
  background-size: 90px 90px;
  -webkit-mask: linear-gradient(160deg, #000, transparent 70%);
  mask: linear-gradient(160deg, #000, transparent 70%);
}
/* 幽灵跑马灯 */
.hm-ghost {
  position: absolute; left: -10%; top: 38%; width: 140%;
  white-space: nowrap; overflow: hidden;
  transform: rotate(-7deg); pointer-events: none;
}
.hm-ghost-track {
  display: inline-block;
  font-family: var(--hm-d); font-style: italic; font-weight: 800;
  font-size: 250px; line-height: .9; letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.035);
  animation: hm-march 22s linear infinite;
}
@keyframes hm-march { to { transform: translateX(-50%); } }
/* 标题：Wordmark + SEASON 标签 */
.hm-hero-title { position: absolute; top: 54px; left: 56px; right: 56px; z-index: 4; pointer-events: none; }
.hm-wordmark {
  font-family: var(--hm-d); font-style: italic; font-weight: 800;
  line-height: .88; font-size: 120px; letter-spacing: 1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .55);
}
.hm-wordmark .a { color: #fff; }
.hm-wordmark .s { color: var(--hm-energy); text-shadow: 0 0 26px rgba(21, 227, 113, 0.55); }
.hm-tagrule { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.hm-tagrule .bar {
  height: 8px; width: 110px;
  background: var(--hm-energy);
  box-shadow: 0 0 14px rgba(21, 227, 113, 0.7);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.hm-tagrule .txt {
  font-family: var(--hm-d); font-style: italic; font-weight: 700;
  letter-spacing: 6px; font-size: 28px; color: var(--hm-cyan); white-space: nowrap;
}

/* ---- 大段位徽章舞台 + 段位名 + 升段进度 ---- */
.hm-hero-body {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  padding: 205px 40px 200px; /* 上=Wordmark 标题区、下=段位阶梯区的避让高度 */
}
.hm-tier-stage { position: relative; width: 340px; aspect-ratio: 1; display: grid; place-items: center; }
.hm-halo { position: absolute; border-radius: 50%; pointer-events: none; }
.hm-halo.h1 {
  inset: -3%;
  background: conic-gradient(from 0deg,
    transparent 0 6%, var(--tc, #bccadf) 11%, transparent 17% 31%,
    var(--tc, #bccadf) 36%, transparent 42% 56%, var(--tc, #bccadf) 61%,
    transparent 67% 81%, var(--tc, #bccadf) 86%, transparent 92%);
  -webkit-mask: radial-gradient(closest-side, transparent 59%, #000 62% 90%, transparent 95%);
  mask: radial-gradient(closest-side, transparent 59%, #000 62% 90%, transparent 95%);
  opacity: .55;
  filter: drop-shadow(0 0 8px var(--tc, #bccadf));
  animation: hm-spin 17s linear infinite;
}
.hm-halo.h2 {
  inset: 5%;
  background: radial-gradient(closest-side, var(--tc, #bccadf), transparent 72%);
  opacity: .3;
  animation: hm-pulseG 3s ease-in-out infinite;
}
.hm-emblem-big {
  position: relative; z-index: 2; width: 100%; height: 100%;
  display: grid; place-items: center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6)) drop-shadow(0 0 16px var(--tc, #bccadf));
  animation: hm-floatY 4.4s ease-in-out infinite;
}
.hm-emblem-big svg { width: 90%; height: 90%; }
/* 段位徽章改用 gpt-image-2 生成的 PNG（emblem() 返回 <img class="emb">） */
.hm-emblem-big .emb { width: 96%; height: 96%; object-fit: contain; }
/* 闪光星芒：用 gpt-image-2 生成的 fx_sparkle 贴图替代原圆点 */
.hm-spark {
  position: absolute; width: 30px; height: 30px;
  background: url("https://d1u4k7xc6u3yed.cloudfront.net/agent-soccer/assets/ui/fx_sparkle.webp") center/contain no-repeat;
  opacity: 0;
}
.hm-spark.s1 { top: 5%; left: 23%; animation: hm-twk 2.4s ease-in-out infinite; }
.hm-spark.s2 { top: 16%; right: 13%; animation: hm-twk 2.4s ease-in-out .8s infinite; }
.hm-spark.s3 { bottom: 20%; left: 11%; animation: hm-twk 2.4s ease-in-out 1.4s infinite; }
.hm-spark.s4 { bottom: 9%; right: 21%; width: 8px; height: 8px; animation: hm-twk 2.4s ease-in-out 2s infinite; }
@keyframes hm-spin { to { transform: rotate(360deg); } }
@keyframes hm-pulseG { 0%, 100% { opacity: .26; transform: scale(.95); } 50% { opacity: .48; transform: scale(1.06); } }
@keyframes hm-floatY { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
@keyframes hm-twk { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }

/* ---- gpt-image-2 段位特效：徽章背后旋转光芒 + 周期性序列帧爆闪 ---- */
/* 旋转光芒（fx_rays），置于徽章之后（z-index:0；徽章 z-index:2） */
.hm-tier-stage::before {
  content: ""; position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background: url("https://d1u4k7xc6u3yed.cloudfront.net/agent-soccer/assets/ui/fx_rays.webp") center/contain no-repeat;
  opacity: .32; animation: hm-spin 26s linear infinite;
  -webkit-mask: radial-gradient(closest-side, #000 56%, transparent 80%);
  mask: radial-gradient(closest-side, #000 56%, transparent 80%);
}
/* （中间的序列帧爆闪 .hm-emblem-big::after 已按反馈移除） */

.hm-tier-meta { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 620px; max-width: 86%; }
/* 段位区下方的主行动入口（匹配 / 练习）——从右侧菜单移来，填左侧空白、给右栏菜单腾位 */
.hm-hero-cta { display: flex; flex-direction: column; gap: 16px; width: 620px; max-width: 86%; margin-top: 10px; }
.hm-tier-name { display: flex; align-items: baseline; gap: 20px; }
.hm-tier-name b {
  font-family: var(--hm-d); font-style: italic; font-weight: 800;
  font-size: 68px; line-height: 1;
  color: var(--tc, #bccadf);
  text-shadow: 0 0 22px var(--tc, #bccadf);
}
.hm-tier-name i {
  font-family: var(--hm-d); font-style: italic; font-weight: 700;
  letter-spacing: 6px; font-size: 30px; color: var(--hm-txt-dim);
}
.hm-tier-prog { width: 100%; }
.hm-tier-prog .tp-top {
  display: flex; justify-content: space-between;
  font-size: 25px; color: var(--hm-txt-dim);
  margin-bottom: 10px; letter-spacing: 1px;
}
.hm-tier-prog .tp-bar {
  height: 15px; background: rgba(255, 255, 255, 0.08); overflow: hidden;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.hm-tier-prog .tp-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--tc, #bccadf), #fff);
  box-shadow: 0 0 10px var(--tc, #bccadf);
  transition: width 1.1s cubic-bezier(.2, .8, .2, 1);
}

/* ---- 段位阶梯（横排 7 个迷你徽章；当前高亮上浮 / 已达较亮 / 未达变暗） ---- */
.hm-tier-rail {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; justify-content: center; align-items: flex-end;
  gap: 22px;
  padding: 18px 26px 22px;
  background: linear-gradient(0deg, rgba(5, 9, 16, 0.96), rgba(5, 9, 16, 0.45) 72%, transparent);
}
.hm-tier-rail .rail-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: .42; transition: .2s;
}
.hm-tier-rail .rail-item.reached { opacity: .82; }
.hm-tier-rail .rail-item.cur { opacity: 1; transform: translateY(-10px); }
.hm-tier-rail .rmini { width: 82px; display: block; }
.hm-tier-rail .rmini svg { width: 100%; height: auto; display: block; }
.hm-tier-rail .rail-item.cur .rmini { filter: drop-shadow(0 0 9px var(--ic, #bccadf)); }
.hm-tier-rail .rzh { font-weight: 700; font-size: 22px; color: var(--hm-txt-faint); white-space: nowrap; }
.hm-tier-rail .rail-item.cur .rzh { color: #fff; }
.hm-tier-rail .rmin { font-family: var(--hm-f); font-weight: 600; font-size: 17px; color: var(--hm-txt-faint); }

/* =====================================================================
   侧栏：资料 HUD + 菜单
   ===================================================================== */
.hm-side { display: flex; flex-direction: column; gap: 28px; min-width: 0; flex: 0 0 auto; }

/* ---- 资料 HUD（斜切角玻璃卡，左侧绿→青竖条） ---- */
.hm-hud {
  position: relative; overflow: hidden;
  padding: 38px 44px;
  background: var(--hm-panel);
  border: 1px solid var(--hm-stroke);
  backdrop-filter: blur(14px);
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 36px 100%, 0 calc(100% - 36px));
}
.hm-hud::before {
  content: '';
  position: absolute; left: 0; top: 0; width: 10px; height: 100%;
  background: linear-gradient(180deg, var(--hm-energy), var(--hm-cyan));
  box-shadow: 0 0 16px rgba(21, 227, 113, 0.5);
}
.hm-hud-top { display: flex; align-items: center; gap: 30px; }
/* 六边形头像槽 + 右下角小圆国旗 */
.hm-av-wrap {
  position: relative; width: 158px; height: 175px; flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(190, 205, 230, 0.4));
}
.hm-av {
  width: 100%; height: 100%; object-fit: cover;
  background: #0c1322;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.hm-flag-badge {
  position: absolute; right: -8px; bottom: 0;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: #0b1120;
  border: 4px solid #0b1120;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.hm-flag-badge .t-flag { font-size: 38px; }
.hm-hud-id { flex: 1 1 auto; min-width: 0; }
.hm-hud-id .pid {
  font-family: var(--hm-d); font-style: italic; font-weight: 800;
  font-size: 62px; letter-spacing: 2px; line-height: 1; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hm-hud-id .country {
  display: flex; align-items: center; gap: 14px; margin-top: 14px;
  color: var(--hm-txt-dim); font-size: 28px;
}
.hm-hud-id .country .t-flag { font-size: 34px; }

.hm-hud-stats { margin-top: 32px; }
.hm-hud-stats .score-row { display: flex; align-items: baseline; gap: 24px; }
.hm-hud-stats .score {
  font-family: var(--hm-d); font-style: italic; font-weight: 800;
  font-size: 88px; line-height: .85; letter-spacing: 2px;
  background: linear-gradient(180deg, #ffe492, #f5b324);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 12px rgba(245, 179, 36, 0.3));
  padding-right: 4px;
}
.hm-hud-stats .score-label { font-size: 24px; color: var(--hm-txt-faint); letter-spacing: 4px; }
.hm-winrate { margin-top: 30px; }
.hm-winrate .wr-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 26px; }
.hm-winrate .wr-top span:first-child { color: var(--hm-txt-dim); letter-spacing: 2px; }
.hm-winrate .wr-val { font-family: var(--hm-d); font-style: italic; font-weight: 800; color: var(--hm-energy); font-size: 34px; }
.hm-winrate .wr-bar {
  height: 17px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-top: 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.hm-winrate .wr-bar > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--hm-energy), var(--hm-cyan));
  box-shadow: 0 0 12px rgba(21, 227, 113, 0.6);
  transition: width 1.1s cubic-bezier(.2, .8, .2, 1);
}
.hm-winrate .record { font-size: 25px; color: var(--hm-txt-faint); margin-top: 20px; letter-spacing: 1px; }
/* background-clip:text 不可用时金字回退实色 */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hm-hud-stats .score { color: #f5b324; }
}

/* ---- 主菜单（棱角按钮：左斜切霓虹色条 + 图标 + 标签 + 箭头） ---- */
.hm-menu { display: flex; flex-direction: column; gap: 22px; flex: 1 1 auto; }
.hm-mbtn {
  position: relative;
  display: flex; align-items: center; gap: 28px;
  width: 100%; text-align: left; overflow: hidden;
  padding: 32px 36px 32px 46px;
  background: var(--hm-panel2);
  border: 1px solid var(--hm-stroke);
  color: var(--hm-txt);
  font-family: var(--hm-f);
  font-weight: 900; font-size: 36px; letter-spacing: 2px;
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
  transition: transform .14s, background .14s, box-shadow .14s;
}
.hm-mbtn .wedge {
  position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
  background: var(--mc, var(--hm-cyan));
  box-shadow: 0 0 12px var(--mc, var(--hm-cyan));
  transform: skewX(-12deg) translateX(-4px);
}
.hm-mbtn .ico { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; font-size: 40px; }
/* gpt-image-2 生成的菜单图标（已抠成透明 PNG，自带霓虹辉光） */
.hm-mbtn .ico-img { width: 100%; height: 100%; object-fit: contain; }
.hm-mbtn .lbl { flex: 1 1 auto; }
.hm-mbtn .arr {
  font-family: var(--hm-d); font-style: italic; font-weight: 800; font-size: 36px;
  color: var(--mc, var(--hm-cyan));
  opacity: .5; transition: .14s;
}
.hm-mbtn:hover {
  transform: translateX(5px);
  background: color-mix(in srgb, var(--mc, var(--hm-cyan)) 14%, var(--hm-panel2));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4), 0 0 24px color-mix(in srgb, var(--mc, var(--hm-cyan)) 28%, transparent);
}
.hm-mbtn:hover .arr { opacity: 1; transform: translateX(3px); }
.hm-mbtn:active { transform: translateX(3px) scale(.99); }
/* 匹配比赛：主按钮（绿色实底 + 流光） */
.hm-mbtn.primary {
  --mc: var(--hm-energy);
  color: #04130a;
  font-family: var(--hm-d); font-style: italic;
  font-weight: 800; font-size: 50px; letter-spacing: 2px;
  padding: 40px 44px;
  border: none;
  background: linear-gradient(120deg, #1cf07e, #0fb85f);
  box-shadow: 0 12px 30px rgba(21, 227, 113, 0.4);
}
.hm-mbtn.primary .wedge { display: none; }
.hm-mbtn.primary .ico { font-size: 46px; }
.hm-mbtn.primary .arr { color: #04130a; opacity: .7; }
.hm-mbtn.primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  transform: translateX(-130%);
  animation: hm-sheen 3.2s ease-in-out infinite;
}
@keyframes hm-sheen { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }
.hm-mbtn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(21, 227, 113, 0.55); }
/* 登出：红（图标 = CSS 红牌） */
.hm-mbtn.danger { --mc: var(--hm-rose); color: #ffd2da; }
.hm-mbtn.danger:hover { background: color-mix(in srgb, var(--hm-rose) 18%, var(--hm-panel2)); }
.hm-mbtn .redcard {
  width: 28px; height: 40px;
  background: linear-gradient(180deg, #ff5d72, #e23b54);
  transform: rotate(8deg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

/* 状态行（业务状态文字：加载/演示模式/失败提示） */
#screen-home .hm-status { text-align: center; flex: 0 0 auto; }

/* =====================================================================
   编辑资料入口（HUD 六边形头像槽：hover 编辑暗示 + ✏️ 小编辑钮）
   ===================================================================== */
.hm-av-wrap { cursor: pointer; }
/* hover 头像出现的编辑暗示（与头像同形六边形半透明罩） */
.hm-av-hint {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: rgba(3, 7, 13, 0.55);
  font-size: 52px;
  opacity: 0; transition: opacity .16s;
  pointer-events: none;
}
.hm-av-wrap:hover .hm-av-hint, .hm-av-wrap:focus-within .hm-av-hint { opacity: 1; }
/* ✏️ 小编辑钮（头像槽右上角，和右下角国旗徽章呼应） */
.hm-av-edit {
  position: absolute; right: -8px; top: -6px; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px; line-height: 1; padding: 0;
  background: var(--hm-panel2);
  border: 1px solid var(--hm-stroke);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  transition: .16s;
}
.hm-av-edit:hover {
  border-color: rgba(21, 227, 113, 0.65);
  box-shadow: 0 0 14px rgba(21, 227, 113, 0.45);
}

/* =====================================================================
   编辑资料浮层（全屏遮罩 + 居中斜切角玻璃卡；https://d1u4k7xc6u3yed.cloudfront.net/agent-soccer/js/screens/home.js 接管）
   ===================================================================== */
.hm-ep-overlay {
  position: absolute; inset: 0; z-index: 40;
  display: grid; place-items: center;
  background: rgba(2, 5, 10, 0.66);
  backdrop-filter: blur(7px);
}
.hm-ep-card {
  position: relative;
  width: 860px; max-width: calc(100% - 72px);
  display: flex; flex-direction: column; gap: 38px;
  padding: 56px 60px 52px;
  background: var(--hm-panel2);
  border: 1px solid var(--hm-stroke);
  backdrop-filter: blur(16px);
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 44px 100%, 0 calc(100% - 44px));
}
/* 左侧绿→青能量竖条（与资料 HUD 同语言） */
.hm-ep-card::before {
  content: '';
  position: absolute; left: 0; top: 0; width: 10px; height: 100%;
  background: linear-gradient(180deg, var(--hm-energy), var(--hm-cyan));
  box-shadow: 0 0 16px rgba(21, 227, 113, 0.5);
}
.hm-ep-head { display: flex; align-items: center; justify-content: space-between; }
.hm-ep-title {
  font-family: var(--hm-d); font-style: italic; font-weight: 800;
  font-size: 58px; letter-spacing: 2px; color: #fff;
}
.hm-ep-x {
  width: 64px; height: 64px; padding: 0;
  display: grid; place-items: center;
  font-size: 32px; color: var(--hm-txt-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hm-stroke);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: .16s;
}
.hm-ep-x:hover { color: #fff; border-color: rgba(251, 77, 106, 0.6); box-shadow: 0 0 14px rgba(251, 77, 106, 0.35); }

/* ---- 头像区：六边形大预览 + 选择图片 / 恢复默认 ---- */
.hm-ep-avrow { display: flex; align-items: center; gap: 52px; }
.hm-ep-avbox {
  flex: 0 0 auto; width: 252px; height: 280px;
  filter: drop-shadow(0 0 12px rgba(21, 227, 113, 0.35));
}
.hm-ep-av {
  width: 100%; height: 100%; object-fit: cover;
  background: #0c1322;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.hm-ep-avbtns { display: flex; flex-direction: column; gap: 24px; flex: 1 1 auto; min-width: 0; }
/* 浮层通用棱角按钮（primary 电光绿实底 / ghost 半透明描边） */
.hm-ep-btn {
  padding: 24px 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hm-stroke);
  color: var(--hm-txt);
  font-weight: 800; font-size: 30px; letter-spacing: 2px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  transition: .16s;
}
.hm-ep-btn:hover { border-color: rgba(21, 227, 113, 0.55); box-shadow: 0 0 16px rgba(21, 227, 113, 0.3); }
.hm-ep-btn.ghost { color: var(--hm-txt-dim); }
.hm-ep-btn.ghost:hover { color: var(--hm-txt); }
.hm-ep-btn.primary {
  color: #04130a;
  background: linear-gradient(120deg, #1cf07e, #0fb85f);
  border: none;
  box-shadow: 0 8px 22px rgba(21, 227, 113, 0.35);
  font-family: var(--hm-d); font-style: italic;
}
.hm-ep-btn.primary:hover { box-shadow: 0 10px 28px rgba(21, 227, 113, 0.55); }
.hm-ep-btn.primary:disabled { opacity: .55; cursor: default; box-shadow: none; }

/* ---- 昵称输入（t-input 之上盖 hm 配色） ---- */
.hm-ep-field { display: flex; flex-direction: column; gap: 16px; }
.hm-ep-label { font-size: 26px; letter-spacing: 3px; color: var(--hm-txt-dim); }
#screen-home .hm-ep-input {
  background: rgba(6, 11, 20, 0.85);
  border: 1px solid var(--hm-stroke);
  border-radius: 0;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  padding: 22px 28px;
  font-size: 34px; font-weight: 700; letter-spacing: 1px;
  color: var(--hm-txt);
}
#screen-home .hm-ep-input:focus {
  border-color: rgba(21, 227, 113, 0.6);
  box-shadow: 0 0 0 3px rgba(21, 227, 113, 0.14);
}

/* ---- 提示行：队伍名/球员名改名入口 ---- */
.hm-ep-teamhint {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 26px;
  background: rgba(43, 199, 240, 0.07);
  border: 1px solid rgba(43, 199, 240, 0.22);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  font-size: 25px; color: var(--hm-txt-dim);
}
.hm-ep-link {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: none; border: none;
  font-family: var(--hm-d); font-style: italic; font-weight: 800;
  font-size: 27px; letter-spacing: 1px;
  color: var(--hm-cyan);
  transition: .16s;
}
.hm-ep-link:hover { color: #7ddcf7; text-shadow: 0 0 12px rgba(43, 199, 240, 0.6); }

/* ---- 状态行 + 保存/取消 ---- */
.hm-ep-status { min-height: 34px; margin: -10px 0; font-size: 26px; color: var(--hm-txt-dim); }
.hm-ep-status.err { color: var(--hm-rose); }
.hm-ep-actions { display: flex; justify-content: flex-end; gap: 26px; }
.hm-ep-actions .hm-ep-btn { min-width: 220px; text-align: center; }

/* ---- 友谊赛弹层（https://d1u4k7xc6u3yed.cloudfront.net/agent-soccer/js/screens/home.js 动态构建，骨架复用 hm-ep-*；
       本区只补差异：说明文案行青色卡 + 横版缩放） ---- */
.hm-fr-desc {
  margin: -6px 0 0;
  padding: 20px 26px;
  font-size: 27px; line-height: 1.6;
  color: var(--hm-txt-dim);
  background: rgba(43, 199, 240, 0.07);
  border: 1px solid rgba(43, 199, 240, 0.22);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
body.landscape #screen-home .hm-fr-desc {
  margin: -3px 0 0;
  padding: 11px 15px;
  font-size: 14.5px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

/* ---- 动效全关（prefers-reduced-motion；粒子 canvas 由 JS 同步关闭） ---- */
@media (prefers-reduced-motion: reduce) {
  .hm-ghost-track, .hm-mbtn.primary::after, .hm-halo, .hm-emblem-big, .hm-spark,
  .hm-tier-stage::before { animation: none !important; }
  .hm-mbtn.primary::after, .hm-spark { display: none; }
  .hm-tier-prog .tp-fill, .hm-winrate .wr-bar > i { transition: none; }
}

/* =====================================================================
   ★ 横版（body.landscape，1920x1080）：左英雄区 | 右侧栏 两栏，
   按原型桌面端布局 1:1（app 宽 1180 居中，原型 px 值原样）。
   ===================================================================== */
body.landscape #screen-home .hm-app {
  inset: auto;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 1180px; max-width: calc(100% - 36px);
  max-height: calc(100% - 96px);
  padding: 0;
  overflow: visible;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 26px;
  align-items: stretch;
}
body.landscape #screen-home .hm-hero {
  min-height: 660px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 38px), calc(100% - 38px) 100%, 0 100%);
}
body.landscape #screen-home .hm-hero-grid { background-size: 40px 40px; }
body.landscape #screen-home .hm-ghost-track { font-size: 150px; letter-spacing: 2px; }
body.landscape #screen-home .hm-hero-title { top: 26px; left: 30px; right: 30px; }
body.landscape #screen-home .hm-wordmark { font-size: 72px; letter-spacing: .5px; }
body.landscape #screen-home .hm-tagrule { gap: 10px; margin-top: 10px; }
body.landscape #screen-home .hm-tagrule .bar { height: 4px; width: 54px; clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
body.landscape #screen-home .hm-tagrule .txt { letter-spacing: 3px; font-size: 13px; }
body.landscape #screen-home .hm-hero-body { gap: 26px; padding: 96px 18px 92px; }
body.landscape #screen-home .hm-tier-stage { width: 238px; }
body.landscape #screen-home .hm-spark { width: 6px; height: 6px; }
body.landscape #screen-home .hm-spark.s4 { width: 4px; height: 4px; }
body.landscape #screen-home .hm-tier-meta { gap: 9px; width: 300px; max-width: 82%; }
body.landscape #screen-home .hm-hero-cta { width: 340px; max-width: 84%; gap: 12px; margin-top: 6px; }
/* 横屏左侧腾出 CTA 空间：奖杯略缩、上下避让收紧，避免内容超出英雄区被裁 */
body.landscape #screen-home .hm-hero-body { padding: 70px 18px 84px; gap: 22px; }
body.landscape #screen-home .hm-tier-stage { width: 224px; }
body.landscape #screen-home .hm-tier-name { gap: 10px; }
body.landscape #screen-home .hm-tier-name b { font-size: 44px; }
body.landscape #screen-home .hm-tier-name i { letter-spacing: 3px; font-size: 14px; }
body.landscape #screen-home .hm-tier-prog .tp-top { font-size: 11px; margin-bottom: 5px; letter-spacing: .5px; }
body.landscape #screen-home .hm-tier-prog .tp-bar { height: 7px; clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
body.landscape #screen-home .hm-tier-rail { gap: 12px; padding: 8px 12px 10px; }
body.landscape #screen-home .hm-tier-rail .rail-item { gap: 2px; }
body.landscape #screen-home .hm-tier-rail .rail-item.cur { transform: translateY(-5px); }
body.landscape #screen-home .hm-tier-rail .rmini { width: 38px; }
body.landscape #screen-home .hm-tier-rail .rzh { font-size: 10px; }
body.landscape #screen-home .hm-tier-rail .rmin { font-size: 8px; }

body.landscape #screen-home .hm-side { gap: 18px; }
body.landscape #screen-home .hm-hud {
  padding: 18px 20px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
body.landscape #screen-home .hm-hud::before { width: 5px; }
body.landscape #screen-home .hm-hud-top { gap: 14px; }
body.landscape #screen-home .hm-av-wrap { width: 74px; height: 82px; }
body.landscape #screen-home .hm-flag-badge { width: 26px; height: 26px; border-width: 2px; right: -4px; }
body.landscape #screen-home .hm-flag-badge .t-flag { font-size: 17px; }
body.landscape #screen-home .hm-hud-id .pid { font-size: 30px; letter-spacing: 1px; }
body.landscape #screen-home .hm-hud-id .country { gap: 7px; margin-top: 6px; font-size: 13px; }
body.landscape #screen-home .hm-hud-id .country .t-flag { font-size: 16px; }
body.landscape #screen-home .hm-hud-stats { margin-top: 16px; }
body.landscape #screen-home .hm-hud-stats .score-row { gap: 12px; }
body.landscape #screen-home .hm-hud-stats .score { font-size: 42px; letter-spacing: 1px; padding-right: 2px; }
body.landscape #screen-home .hm-hud-stats .score-label { font-size: 11px; letter-spacing: 2px; }
body.landscape #screen-home .hm-winrate { margin-top: 15px; }
body.landscape #screen-home .hm-winrate .wr-top { font-size: 12px; }
body.landscape #screen-home .hm-winrate .wr-val { font-size: 16px; }
body.landscape #screen-home .hm-winrate .wr-bar { height: 8px; margin-top: 6px; clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
body.landscape #screen-home .hm-winrate .record { font-size: 11.5px; margin-top: 10px; letter-spacing: .5px; }

body.landscape #screen-home .hm-menu { gap: 11px; }
body.landscape #screen-home .hm-mbtn {
  gap: 14px;
  padding: 16px 18px 16px 22px;
  font-size: 17px; letter-spacing: 1px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
body.landscape #screen-home .hm-mbtn .wedge { width: 6px; transform: skewX(-12deg) translateX(-2px); }
body.landscape #screen-home .hm-mbtn .ico { width: 26px; height: 26px; font-size: 19px; }
body.landscape #screen-home .hm-mbtn .arr { font-size: 17px; }
body.landscape #screen-home .hm-mbtn.primary { font-size: 22px; letter-spacing: 1px; padding: 20px 22px; }
body.landscape #screen-home .hm-mbtn.primary .ico { font-size: 22px; }
body.landscape #screen-home .hm-mbtn .redcard { width: 14px; height: 20px; }
body.landscape #screen-home .hm-status { font-size: 14px; min-height: 20px; }

/* ---- 横版：编辑资料入口（HUD 头像 74x82）+ 浮层（卡宽 720 居中，原型 px 缩放） ---- */
body.landscape #screen-home .hm-av-hint { font-size: 26px; }
body.landscape #screen-home .hm-av-edit {
  width: 26px; height: 26px; font-size: 13px;
  right: -4px; top: -3px;
  border-width: 1px;
}
body.landscape #screen-home .hm-ep-card {
  width: 720px; max-width: calc(100% - 56px);
  gap: 22px;
  padding: 30px 34px 28px;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
body.landscape #screen-home .hm-ep-card::before { width: 5px; }
body.landscape #screen-home .hm-ep-title { font-size: 34px; letter-spacing: 1px; }
body.landscape #screen-home .hm-ep-x { width: 36px; height: 36px; font-size: 18px; }
body.landscape #screen-home .hm-ep-avrow { gap: 28px; }
body.landscape #screen-home .hm-ep-avbox { width: 150px; height: 166px; }
body.landscape #screen-home .hm-ep-avbtns { gap: 14px; }
body.landscape #screen-home .hm-ep-btn {
  padding: 13px 20px;
  font-size: 16px; letter-spacing: 1px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
body.landscape #screen-home .hm-ep-field { gap: 9px; }
body.landscape #screen-home .hm-ep-label { font-size: 14px; letter-spacing: 2px; }
body.landscape #screen-home .hm-ep-input {
  padding: 12px 16px;
  font-size: 19px;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
body.landscape #screen-home .hm-ep-teamhint { gap: 12px; padding: 11px 15px; font-size: 13.5px; }
body.landscape #screen-home .hm-ep-link { padding: 4px 8px; font-size: 15px; }
body.landscape #screen-home .hm-ep-status { min-height: 19px; margin: -6px 0; font-size: 14px; }
body.landscape #screen-home .hm-ep-actions { gap: 14px; }
body.landscape #screen-home .hm-ep-actions .hm-ep-btn { min-width: 120px; }
