/* lobby.css — 单层 lobby（开场即大厅，feat/opening-single-layer）。
 * 视觉皮 = 外层开场（feat/opening-c2）：海报+SD2.5 视频底、金黑军事质感、写实风按钮族
 * （规范见 REMIX.md「写实风按钮规范」——本文件 .rl-cta/.ghost/.lb-rail-btn/.lb-card 即其源实现）。
 * 设计基准 812×375 横屏；桌面横屏 1624×750 同构放大。
 * z 序：HUD40 < lobby 55 < meta 面板 60/70 < boot-screen 100 < drawer 120 <
 *      op-grade 210 < op-flash 220 < fs-shell（rotate 10040 / ✕ 10050，见 src/platform/fullscreenShell.js）。
 *      lobby 打开期间隐藏引擎 boot 遮罩与 meta HUD。 */

#lobby-root {
  position: fixed; inset: 0; z-index: 55; overflow: hidden;
  --rl-ink: #e8e4da; --rl-dim: #b6ad99; --rl-faint: #7f7a6c;
  --rl-gold: #d9b76a; --rl-bright: #f3d489; --rl-line: rgba(217, 183, 106, .3);
  --rl-glass: rgba(10, 12, 16, .55);
  background: #07090d; color: var(--rl-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  user-select: none;
  transition: opacity .65s cubic-bezier(.4, 0, .2, 1), transform .65s cubic-bezier(.4, 0, .2, 1);
  transform-origin: 50% 45%;
}
#lobby-root.leave { opacity: 0; transform: scale(1.045); pointer-events: none; }
#lobby-root * { box-sizing: border-box; }
body.lobby-open #boot-screen, body.lobby-open #meta-hud { visibility: hidden; }
/* lobby 期间回归礼包 = 右列条件插卡（不弹窗）；抑制包内自动弹层，进场后恢复包默认行为 */
body.lobby-open #meta-comeback { display: none !important; }

/* ---- 外层视觉底：海报 kenburns + 视频淡入 + 扫光线 + 明暗结构 ---- */
#lobby-root .op-bg { position: absolute; inset: -6%; background: center/cover no-repeat #07090d; will-change: transform, opacity; }
#lobby-root .kenburns { animation: op-kb-enter .55s cubic-bezier(.2, .7, .2, 1) both, op-kb-drift 22s ease-in-out .55s infinite alternate; }
@keyframes op-kb-enter { from { transform: scale(1.08); opacity: .45; } to { transform: scale(1.0); opacity: 1; } }
@keyframes op-kb-drift { from { transform: scale(1.0) translate(0, 0); } to { transform: scale(1.06) translate(-1.2%, -0.8%); } }
#lobby-root .op-videowrap { position: absolute; inset: -2%; opacity: 0; transition: opacity 1.1s ease; }
#lobby-root .op-videowrap.on { opacity: 1; }
#lobby-root .op-videowrap video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.04); }
#lobby-root .op-liveb { position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217, 183, 106, .8), transparent);
  animation: op-scan 6s linear infinite; opacity: .35; pointer-events: none; }
@keyframes op-scan { from { transform: translateY(0); } to { transform: translateY(100vh); } }
#lobby-root .op-scrim { position: absolute; inset: 0; pointer-events: none; background:
    linear-gradient(to top, rgba(5, 7, 10, .95) 0%, rgba(5, 7, 10, .6) 24%, rgba(5, 7, 10, 0) 52%),
    linear-gradient(to bottom, rgba(5, 7, 10, .6) 0%, rgba(5, 7, 10, 0) 20%); }
#lobby-root .op-vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(0, 0, 0, .5) 100%); mix-blend-mode: multiply; }

/* ---- 中央主角展示位（结构性可替换挂点：容器只管布局，实现见 index.js mountHero）。
   当前空实现（低模展台已移除）：容器不吃指针事件，底景视频即视觉主体。 ---- */
#lb-hero { position: absolute; left: 26%; right: 33%; top: 44px; bottom: 0; pointer-events: none; }
#lobby-stage { width: 100%; height: 100%; display: block; }

/* ---- 顶栏：品牌 + 玩家/赛季/连击 chip + 云存档/设置（外层浮动质感，无实底通栏） ---- */
#lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px;
  padding: max(8px, env(safe-area-inset-top)) 14px 0; }
#lb-top .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .32em;
  font-size: 12px; color: #f0ead9; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
#lb-top .brand .dot { width: 8px; height: 8px; background: linear-gradient(135deg, #f3d489, #a97c2f);
  transform: rotate(45deg); box-shadow: 0 0 10px rgba(243, 212, 137, .5); }
#lb-player { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0;
  padding: 3px 10px 3px 4px; border: 1px solid var(--rl-line); background: var(--rl-glass); backdrop-filter: blur(4px);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
#lb-avatar { width: 26px; height: 26px; background: linear-gradient(150deg, #f3d489, #a97c2f);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #1a1206; flex: none; }
#lb-player .nm { font-size: 12px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
#lb-player .lv { font-size: 10px; color: var(--rl-gold); font-weight: 700; }
#lb-xpb { width: 84px; height: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
#lb-xpb i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rl-bright), var(--rl-gold)); }
#lb-season-pill, #lb-flame { display: flex; align-items: center; gap: 6px; padding: 4px 12px; cursor: pointer;
  font-size: 12px; letter-spacing: .04em; border: 1px solid var(--rl-line); background: var(--rl-glass);
  backdrop-filter: blur(4px); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
#lb-season-pill b { color: var(--rl-gold); }
#lb-season-pill .sub { color: var(--rl-dim); font-size: 11px; }
#lb-flame { font-weight: 800; color: var(--rl-gold); }
#lb-flame.ms { border-color: var(--rl-bright); background: rgba(217, 183, 106, .16); }
#lb-flame .grace { font-size: 10px; font-weight: 600; color: var(--rl-bright); }
#lb-top .sp { flex: 1; }
#lb-cloud { font-size: 14px; color: var(--rl-dim); text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
#lb-cloud.ok { color: #cfe3a8; }
#lb-gear { background: none; border: 0; color: var(--rl-dim); font-size: 17px; cursor: pointer; padding: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
#lb-gear:hover { color: var(--rl-bright); }

/* ---- 左轨低频入口（写实风次级按钮：暗玻璃 + 金线 + 切角） ---- */
#lb-rail { position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px; }
.lb-rail-btn { position: relative; width: 46px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--rl-glass); border: 1px solid var(--rl-line); backdrop-filter: blur(4px);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  padding: 7px 2px 5px; color: var(--rl-ink); cursor: pointer; font-size: 16px;
  transition: border-color .2s, transform .2s; }
.lb-rail-btn small { font-size: 9px; letter-spacing: .12em; color: var(--rl-dim); }
.lb-rail-btn:hover { border-color: rgba(243, 212, 137, .75); transform: translateY(-2px); }
.lb-rail-btn:active { transform: translateY(0); }
.lb-dot::after { content: ""; position: absolute; top: 4px; right: 5px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--rl-bright); box-shadow: 0 0 6px rgba(243, 212, 137, .9); }

/* ---- 右列领取动线（金线暗玻璃卡） ---- */
#lb-cards { position: absolute; right: 12px; top: 50px; width: 232px; display: flex; flex-direction: column; gap: 8px;
  max-height: calc(100% - 160px); overflow: hidden; }
.lb-card { position: relative; border: 1px solid var(--rl-line); padding: 8px 10px;
  background: var(--rl-glass); backdrop-filter: blur(4px); cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: border-color .2s; }
.lb-card:hover { border-color: rgba(243, 212, 137, .75); }
.lb-card h4 { font-size: 12px; font-weight: 800; letter-spacing: .06em; margin: 0 0 4px; display: flex; align-items: center; gap: 6px; }
.lb-card .sub { font-size: 10px; color: var(--rl-dim); }
.lb-bar { height: 5px; background: rgba(255, 255, 255, .1); margin: 5px 0 4px; overflow: hidden; }
.lb-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rl-bright), var(--rl-gold)); }
#lb-daily .slots { display: flex; gap: 5px; margin-top: 5px; }
#lb-daily .slot { flex: 1; font-size: 9px; text-align: center; padding: 4px 2px;
  border: 1px solid var(--rl-line); color: var(--rl-dim); white-space: nowrap; overflow: hidden; }
#lb-daily .slot.done { border-color: var(--rl-gold); color: var(--rl-bright); background: rgba(217, 183, 106, .12); }
#lb-events .tick { font-size: 11px; font-weight: 700; }
#lb-comeback { border-color: var(--rl-gold);
  background: linear-gradient(140deg, rgba(217, 183, 106, .18), rgba(10, 12, 16, .7)); }
#lb-comeback .cd { font-variant-numeric: tabular-nums; color: var(--rl-bright); font-weight: 800; }

/* ---- 左下标题块 + 模式卡 + 底行（外层 hud 结构原样） ---- */
#lb-hud { position: absolute; left: calc(clamp(18px, 4vw, 56px) + env(safe-area-inset-left)); right: 262px;
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 8px);
  display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
#lb-hud .title-block { opacity: 0; animation: op-rise .22s cubic-bezier(.2, .7, .2, 1) 0s forwards; }
@keyframes op-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
#lb-hud .kicker { font-size: 11px; letter-spacing: .5em; color: #e8cd88; text-transform: uppercase;
  margin-bottom: 10px; display: flex; align-items: center; gap: 12px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 14px rgba(0, 0, 0, .65); }
#lb-hud .kicker::after { content: ""; height: 1px; width: 72px; background: linear-gradient(90deg, rgba(217, 183, 106, .9), transparent); }
#lb-hud h1.title { margin: 0; font-size: clamp(34px, 6vw, 72px); line-height: 1.02; font-weight: 900;
  letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(180deg, #fdfaf2 30%, #cdbf9c 75%, #9a8557 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .75)); }
#lb-hud .sub { font-size: clamp(12px, 1.3vw, 15px); color: #d8d2c2; letter-spacing: .12em; max-width: 520px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .95), 0 0 12px rgba(0, 0, 0, .7); }
#lb-hud .mode-cards { display: flex; gap: 14px; opacity: 0; pointer-events: auto;
  animation: op-rise .35s cubic-bezier(.2, .7, .2, 1) .42s forwards; }
#lb-hud .mode-card { position: relative; width: 158px; aspect-ratio: 16 / 10; background: center/cover no-repeat #10131a;
  border: 1px solid rgba(217, 183, 106, .28); cursor: pointer;
  filter: saturate(.55) sepia(.32) contrast(1.06) brightness(.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .55); overflow: hidden; flex: none;
  transition: transform .25s ease, border-color .25s ease; }
#lb-hud .mode-card::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46, 32, 10, .22), rgba(6, 8, 12, .5)), linear-gradient(100deg, rgba(217, 183, 106, .14), transparent 45%); }
#lb-hud .mode-card:hover { transform: translateY(-4px); border-color: rgba(243, 212, 137, .75); }
#lb-hud .mode-card span { z-index: 1; position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(to top, rgba(4, 6, 9, .92), transparent); color: #efe7d2; }
#lb-hud .mode-card.lock { cursor: default; }
#lb-hud .mode-card.lock::after { content: "◆"; position: absolute; top: 8px; right: 10px; color: var(--rl-gold);
  font-size: 11px; text-shadow: 0 0 8px rgba(217, 183, 106, .8); }
#lb-hud .hud-foot { display: flex; align-items: center; gap: 14px; pointer-events: auto;
  opacity: 0; animation: op-rise .35s ease .6s forwards; }
#lb-streakcal { display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 5px 12px; cursor: pointer;
  border: 1px solid var(--rl-line); background: var(--rl-glass); backdrop-filter: blur(4px); color: var(--rl-dim);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
#lb-streakcal b { color: var(--rl-gold); }
#lb-streakcal:hover { border-color: rgba(243, 212, 137, .75); }
#lb-hud .hud-foot .ver { font-size: 10px; letter-spacing: .18em; color: var(--rl-faint); }

/* ---- 右下：写实风主 CTA（外层原样）+ ghost + 预热进度 ---- */
#lb-ctawrap { position: absolute; right: calc(clamp(18px, 4vw, 56px) + env(safe-area-inset-right));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 8px); width: 232px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  opacity: 0; animation: op-rise .35s cubic-bezier(.2, .7, .2, 1) .22s forwards; }
#lb-ctawrap .ghost { font-size: 12px; letter-spacing: .2em; color: var(--rl-dim); text-transform: uppercase;
  border-bottom: 1px solid rgba(182, 173, 153, .4); padding-bottom: 2px; cursor: pointer; }
.rl-cta { position: relative; border: 0; cursor: pointer; font: inherit; font-weight: 800; letter-spacing: .28em;
  text-transform: uppercase; font-size: 15px; width: 100%; padding: 16px 0 16px 4px; text-align: center;
  color: #1a1206; background: linear-gradient(180deg, #f6dc95, #d9b25e 55%, #b98d3a);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 6px 24px rgba(217, 178, 94, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.rl-cta:hover { filter: brightness(1.08); }
.rl-cta:active { transform: translateY(1px); }
.rl-cta .pulse { position: absolute; inset: 0; clip-path: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  background-size: 250% 100%; animation: op-sheen 2.8s ease-in-out 1.6s infinite; }
@keyframes op-sheen { 0% { background-position: 120% 0; } 55%, 100% { background-position: -130% 0; } }
#lb-prewarm { width: 100%; height: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; transition: opacity .6s; }
#lb-prewarm i { display: block; height: 100%; width: 0; background: var(--rl-gold); transition: width .3s; }
#lb-pwtxt { font-size: 10px; letter-spacing: .1em; color: var(--rl-dim); text-align: right; transition: opacity .6s; }
#lb-ctawrap.ready #lb-prewarm, #lb-ctawrap.ready #lb-pwtxt { opacity: 0; }

/* ---- 设置抽屉（金黑质感） ---- */
#lb-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 250px; z-index: 120;
  background: #0b0d12; border-left: 1px solid var(--rl-line); padding: 14px;
  transform: translateX(105%); transition: transform .25s; }
#lb-drawer.open { transform: none; }
#lb-drawer h3 { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--rl-bright); margin: 0 0 12px; }
#lb-drawer .row { margin-bottom: 14px; font-size: 12px; color: var(--rl-dim); }
#lb-drawer .row label { display: block; margin-bottom: 5px; letter-spacing: .08em; }
#lb-drawer input[type=range] { width: 100%; accent-color: var(--rl-gold); }
#lb-drawer .seg { display: flex; gap: 6px; }
#lb-drawer .seg button { flex: 1; padding: 5px 0; border: 1px solid var(--rl-line); background: none;
  color: var(--rl-dim); cursor: pointer; font-size: 12px;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
#lb-drawer .seg button.on { border-color: var(--rl-gold); color: var(--rl-ink); background: rgba(217, 183, 106, .15); }
#lb-drawer a { color: var(--rl-gold); font-size: 12px; }
#lb-drawer .x { position: absolute; top: 10px; right: 10px; background: none; border: 0; color: var(--rl-dim);
  font-size: 16px; cursor: pointer; }

/* ---- 进场遮闪 + 暗场桥（外层 c2 演出原样；挂 body 下，独立于 #lobby-root） ---- */
#op-flash { position: fixed; inset: 0; background: #eadfc4; opacity: 0; pointer-events: none; z-index: 220; }
#op-flash.go { animation: op-flash .7s ease-out; }
@keyframes op-flash { 0% { opacity: 0; } 22% { opacity: .5; } 100% { opacity: 0; } }
#op-grade { position: fixed; inset: 0; z-index: 210; pointer-events: none; opacity: 1; transition: opacity 1.8s ease .5s;
  background: radial-gradient(120% 90% at 50% 45%, rgba(64, 44, 8, .22) 38%, rgba(5, 7, 10, .6) 100%);
  color: #e8e4da; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#op-grade.lift { opacity: 0; }
#op-grade .g-dark { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px;
  background: radial-gradient(120% 90% at 50% 42%, rgba(54, 38, 11, .94) 0%, rgba(6, 7, 10, .99) 78%);
  opacity: 1; transition: opacity .5s ease; }
#op-grade.lift .g-dark { opacity: 0; }
#op-grade .g-kick { font-size: 12px; letter-spacing: .5em; color: #e3c47c; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
#op-grade .g-loc { font-size: 20px; font-weight: 800; letter-spacing: .3em; color: #f3e7c8; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
#op-grade .g-line { width: 220px; height: 2px; overflow: hidden; background: rgba(217, 183, 106, .18); }
#op-grade .g-line i { display: block; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, #e9cd8a, transparent); animation: op-grun 1.1s ease-in-out infinite; }
@keyframes op-grun { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
#op-grade .g-sub { font-size: 11px; letter-spacing: .3em; color: #a8946a; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
#op-grade .g-tip { position: absolute; left: 0; right: 0; bottom: max(26px, env(safe-area-inset-bottom)); text-align: center;
  font-size: 11px; letter-spacing: .24em; color: #8d8471; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
#op-grade .g-corner { position: absolute; width: 26px; height: 26px; border: 1px solid rgba(217, 183, 106, .4); }
#op-grade .g-corner.tl { top: 22px; left: 22px; border-right: 0; border-bottom: 0; }
#op-grade .g-corner.tr { top: 22px; right: 22px; border-left: 0; border-bottom: 0; }
#op-grade .g-corner.bl { bottom: 22px; left: 22px; border-right: 0; border-top: 0; }
#op-grade .g-corner.br { bottom: 22px; right: 22px; border-left: 0; border-top: 0; }

/* ---- 冷进电影化部署（feat/desktop-deploy-cinematic）：扇区卡持续到真实就绪 ----
 * 修桌面素色 COMPILING SHADERS：冷进时 body.op-deploying 压住引擎 #boot-screen，
 * 扇区卡自带真实进度（g-line 由 JS 镜像 boot 进度，非假进度）+ 扫描线 + 雷达扇扫。 */
body.op-deploying #boot-screen { visibility: hidden; }
#op-grade .g-stage { display: none; }
#op-grade .g-scan, #op-grade .g-radar { display: none; }
#op-grade.cold .g-stage { display: flex; gap: 14px; align-items: baseline;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #d9b76a; }
#op-grade.cold .g-spct { font-size: 11px; letter-spacing: .12em; color: #f3e7c8;
  font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: left; }
#op-grade.cold .g-line { width: min(64vw, 300px); height: 3px; background: rgba(217, 183, 106, .16);
  box-shadow: 0 0 0 1px rgba(217, 183, 106, .12); }
#op-grade.cold .g-line i { width: 0; animation: none; transition: width .28s ease;
  background: linear-gradient(90deg, #b98f3e, #e9cd8a); box-shadow: 0 0 8px rgba(233, 205, 138, .55); }
#op-grade.cold .g-scan { display: block; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, .28) 3px 4px); }
#op-grade.cold .g-scan::after { content: ''; position: absolute; left: 0; right: 0; height: 90px;
  background: linear-gradient(180deg, transparent, rgba(233, 205, 138, .07), transparent);
  animation: op-scan 2.6s linear infinite; }
@keyframes op-scan { from { top: -90px; } to { top: 100%; } }
#op-grade.cold .g-radar { display: block; position: absolute; left: 50%; top: 45%; width: 560px; height: 560px;
  transform: translate(-50%, -50%); pointer-events: none; opacity: .34;
  border: 1px solid rgba(217, 183, 106, .18); border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 32%, rgba(217, 183, 106, .1) 32.4%, transparent 33%),
    radial-gradient(circle, transparent 0 60%, rgba(217, 183, 106, .08) 60.4%, transparent 61%),
    conic-gradient(from 0deg, rgba(233, 205, 138, .22) 0deg, transparent 70deg 360deg);
  animation: op-radar 5s linear infinite; }
@keyframes op-radar { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
/* 桌面尺寸增强：同一套扇区卡语言，按大屏细指针放大（与移动端形态一致） */
@media (min-width: 900px) and (pointer: fine) {
  #op-grade .g-kick { font-size: 14px; letter-spacing: .6em; }
  #op-grade .g-loc { font-size: 30px; letter-spacing: .34em; }
  #op-grade.cold .g-line { width: 360px; }
  #op-grade.cold .g-radar { width: 720px; height: 720px; }
  #op-grade .g-corner { width: 38px; height: 38px; }
  #op-grade .g-corner.tl, #op-grade .g-corner.tr { top: 34px; }
  #op-grade .g-corner.bl, #op-grade .g-corner.br { bottom: 34px; }
  #op-grade .g-corner.tl, #op-grade .g-corner.bl { left: 34px; }
  #op-grade .g-corner.tr, #op-grade .g-corner.br { right: 34px; }
}

/* 竖屏 rotate-overlay 已摘除：统一由 trunk fullscreenShell（vendored 镜像 src/platform/）承担 */

/* ---- 812×375 基准（矮横屏）：紧凑化——模式卡/版本行收起，标题缩号，右列压窄 ---- */
@media (max-height: 480px) {
  /* 标题块左移让开左侧图标栏（rail 右缘 58px），消除 SEASON 行与分享图标重叠 */
  #lb-hud { gap: 8px; left: calc(70px + env(safe-area-inset-left)); right: 220px; }
  #lb-hud .mode-cards, #lb-hud .hud-foot .ver { display: none; }
  #lb-hud h1.title { font-size: clamp(26px, 10vh, 40px); }
  #lb-hud .sub { font-size: 11px; max-width: none; }
  #lb-hud .kicker { margin-bottom: 4px; font-size: 10px; }
  /* 右列以 bottom 界定：永不探入 CTA 区（CTA 顶约 253px），事件卡不再被挤压/裁切 */
  #lb-cards { width: 200px; top: 46px; bottom: 132px; max-height: none; gap: 4px; }
  .lb-card { padding: 6px 8px; }
  .lb-card h4 { font-size: 11px; margin: 0 0 2px; }
  .lb-card .sub { font-size: 9px; }
  .lb-bar { margin: 4px 0 3px; }
  #lb-daily .slots { margin-top: 3px; gap: 4px; }
  #lb-ctawrap { width: 200px; gap: 6px; }
  .rl-cta { padding: 12px 0 12px 4px; }
  #lb-hero { left: 24%; right: 30%; top: 40px; }
}
/* 窄横屏兜底 */
@media (max-width: 700px) and (orientation: landscape) {
  #lb-cards, #lb-ctawrap { width: 190px; }
  #lb-hero { right: 28%; }
}
