/* Leo's Game Hub — 取值与 design/frontend-prototype/game-hub.dc.html 一致 */
:root {
  --bg: #0e0d0b; --bg-play: #0a0908; --panel: #15140f; --panel2: #121110; --chip: #23221c;
  --fg: #ece5d3; --body2: #cfc8b6; --muted2: #a39c8a; --muted: #8a8474; --ph: #6f695c;
  --line: #2e2c25; --line2: #45423a; --row: #1f1e19;
  --acc: #e5482c; --acc-hi: #f25a3d; --link: #ff7a5c; --ok: #91dfb0;
  --sans: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  --serif: 'Noto Serif SC', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
* { box-sizing: border-box; }
input, button { font-family: inherit; }
button { padding: 0; }
a { color: var(--fg); }
a:hover { color: var(--link); }
::selection { background: var(--acc); color: var(--bg); }
input::placeholder { color: var(--ph); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@keyframes ghBlink { 50% { opacity: 0; } }

/* 通用 */
.app { min-height: 100vh; background: var(--bg); color: var(--fg); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-weight: 900; }
.blink { animation: ghBlink 1.1s steps(1, end) infinite; display: inline-block; margin-left: 2px; }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; font-size: 13px; letter-spacing: .2em; color: var(--muted2); }
.noscript { padding: 32px; }
.flex1 { flex: 1; } .minw0 { min-width: 0; }
.row { display: flex; } .col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; } .center { align-items: center; } .base { align-items: baseline; } .endish { align-items: flex-end; }
.end { justify-content: flex-end; } .between { display: flex; justify-content: space-between; }
.self-start { align-self: flex-start; }
.gap2 { gap: 2px; } .gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; }
.gap14 { gap: 14px; } .gap16 { gap: 16px; } .gap20 { gap: 20px; } .gap24 { gap: 24px; } .gap412 { gap: 4px 12px; }
.mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .pl4 { padding-left: 4px; }
.fs11 { font-size: 11px; } .fs12 { font-size: 12px; } .fs13 { font-size: 13px; } .fs14 { font-size: 14px; } .fs15 { font-size: 15px; }
.fs16 { font-size: 16px; } .fs18 { font-size: 18px; } .fs20 { font-size: 20px; } .fs30 { font-size: 30px; }
.b { font-weight: 700; } .lh16 { line-height: 1.6; } .lh17 { line-height: 1.7; }
.ls06 { letter-spacing: .06em; } .ls1 { letter-spacing: .1em; }
.muted { color: var(--muted); } .muted2 { color: var(--muted2); } .body2 { color: var(--body2); } .okc { color: var(--ok); }
.nowrap { white-space: nowrap; } .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel { position: relative; } .mw560 { max-width: 560px; } .narrow { max-width: 420px; line-height: 1.7; }
.h40 { height: 40px; } .h42 { height: 42px; } .h44 { height: 44px; }

.sq { width: 12px; height: 12px; background: var(--acc); flex: none; }
.dot { width: 6px; height: 6px; flex: none; display: block; }
.dot.ok { background: var(--ok); } .dot.off { background: var(--ph); } .dot.acc { background: var(--acc); }
.tri { width: 0; height: 0; border-left: 8px solid var(--acc); border-top: 5px solid transparent; border-bottom: 5px solid transparent; flex: none; display: inline-block; }
.tri.dark { border-left: 9px solid var(--bg); border-top-width: 6px; border-bottom-width: 6px; }
.tri.dark.big { border-left-width: 10px; }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--line2); border-bottom-width: 2px; font-family: var(--mono); font-size: 11px; color: var(--muted2); flex: none; }
.kbd.dark { border-color: var(--bg); color: inherit; }
.kbd.sm { height: auto; min-width: 0; padding: 0 5px; font-size: 10px; }
.avatar { width: 28px; height: 28px; background: var(--chip); display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.avatar.xl { width: 88px; height: 88px; border: 1px solid var(--line2); font-size: 44px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; color: var(--acc); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; cursor: pointer; text-decoration: none; color: var(--fg); background: transparent; padding: 0 18px; white-space: nowrap; }
.btn:hover { color: inherit; }
.btn-line { height: 36px; padding: 0 16px; border: 1px solid var(--fg); font-size: 13px; font-weight: 500; }
.btn-line:hover { background: var(--fg); color: var(--bg); }
.empty .btn-line { height: 40px; padding: 0 18px; }
.btn-ghost { border: 1px solid var(--line2); color: var(--fg); font-size: 14px; }
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }
.btn-play { background: var(--acc); color: var(--bg); font-weight: 700; }
.btn-play:hover { background: var(--acc-hi); color: var(--bg); }
.btn-light { height: 44px; padding: 0 20px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 700; }
.btn-light:hover { background: #fff; color: var(--bg); }
.btn-danger { padding: 0 20px; border: 1px solid var(--acc); color: var(--link); font-weight: 500; }
.btn-danger:hover { background: var(--acc); color: var(--bg); }
.btn-off { background: var(--line); color: var(--muted); }
.btn.big { height: 52px; font-size: 16px; }
.btn-play.big { justify-content: space-between; }
.btn-ghost.big { font-size: 14px; }
.btn.huge { height: 56px; padding: 0 24px; font-size: 17px; gap: 14px; }
.btn-ghost.huge { padding: 0 22px; font-size: 15px; }
.ulink { color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-del { background: none; border: 0; font-size: 13px; color: var(--muted2); cursor: pointer; }
.link-del:hover { color: var(--link); }
.link-del.right { text-align: right; }
.link-play { background: none; border: 0; font-size: 13px; font-weight: 500; color: var(--link); cursor: pointer; }
.link-play:hover { color: var(--fg); }

/* 顶栏 */
.hdr { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 40px; padding: 0 32px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; color: var(--fg); }
.brand span { font-weight: 700; font-size: 13px; letter-spacing: .22em; white-space: nowrap; }
.brand:hover { color: var(--fg); }
.nav { display: flex; gap: 28px; height: 100%; }
.nav-i { display: flex; align-items: center; height: 100%; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--muted); border-top: 2px solid transparent; border-bottom: 2px solid transparent; }
.nav-i.on { color: var(--fg); border-bottom-color: var(--acc); }
.nav-i:hover { color: var(--fg); }
.hdr-guest { display: flex; align-items: center; gap: 16px; }
.hdr-guest > .mono { font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.hdr-user { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); text-decoration: none; color: var(--fg); font-size: 13px; font-weight: 500; }
.hdr-user:hover { border-color: var(--line2); color: var(--fg); }

/* 页面容器 */
.page { margin: 0 auto; padding: 48px 32px 120px; }
.home { max-width: 1480px; }
.detail { max-width: 1320px; padding-top: 32px; }
.profile { max-width: 1200px; display: flex; flex-direction: column; gap: 40px; }

/* 游戏库 */
.home-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 28px; }
.home-intro { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.h-hero { margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.05; letter-spacing: .01em; }
.lede { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted2); max-width: 560px; text-wrap: pretty; }
.search { display: flex; align-items: center; gap: 10px; width: 340px; max-width: 100%; height: 48px; padding: 0 12px 0 16px; border: 1px solid var(--line2); background: var(--panel); cursor: text; }
.search:hover, .search:focus-within { border-color: var(--ph); }
.search > .mono { font-size: 12px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; color: var(--fg); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { height: 34px; padding: 0 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 500; border: 1px solid var(--line2); background: transparent; color: var(--fg); }
.chip:hover { border-color: var(--fg); }
.chip-n { font-size: 11px; color: var(--muted); }
.chip.on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip.on .chip-n { color: var(--bg); }
.home-body { display: flex; gap: 40px; align-items: flex-start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px 24px; }
.card { position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--fg); }
.card:hover { color: var(--fg); }
.card:focus-visible { outline: none; }
.card .cover { outline: 2px solid transparent; outline-offset: 4px; transition: outline-color .12s; }
.card.on .cover, .card:focus-visible .cover { outline-color: var(--acc); }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1c1b16; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover img.broken { display: none; }
.glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; line-height: 1; }
.cover-slug { position: absolute; left: 12px; bottom: 10px; font-size: 10px; letter-spacing: .14em; }
.badge { position: absolute; top: 10px; right: 10px; background: var(--bg); color: var(--ok); font-size: 11px; padding: 4px 8px; border: 1px solid var(--line); }
.card-meta { display: flex; flex-direction: column; gap: 6px; }
.card-line { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.card-line.wide { letter-spacing: .08em; }
.card-title-row { display: flex; align-items: center; gap: 10px; }
.card-title { font-size: 17px; font-weight: 700; color: var(--fg); }
.empty { border: 1px dashed var(--line2); padding: 64px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.empty.tall { padding: 72px 32px; }
.empty-t { font-size: 28px; }
.empty-s { font-size: 14px; color: var(--muted2); }
.empty > .mono { font-size: 13px; letter-spacing: .2em; }
.preview { width: 400px; flex: none; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); background: var(--panel); padding: 20px; }
.preview-title { font-size: 32px; line-height: 1.2; text-wrap: balance; }
.preview-desc { margin: 0; font-size: 14px; line-height: 1.8; color: var(--body2); text-wrap: pretty; }
.preview-saves { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.meter { display: flex; gap: 3px; }
.meter i { border: 1px solid var(--line2); background: transparent; display: block; }
.meter i.on { border-color: var(--ok); background: var(--ok); }
.meter.bar { flex: 1; } .meter.bar i { flex: 1; height: 8px; }
.meter.sq14 { gap: 4px; } .meter.sq14 i { width: 14px; height: 14px; }
.meter.sq10 i { width: 10px; height: 10px; }
.statusbar { position: fixed; left: 0; right: 0; bottom: 0; height: 40px; z-index: 15; display: flex; align-items: center; gap: 22px; padding: 0 32px; background: var(--bg); border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.sb-i { display: flex; align-items: center; gap: 6px; }
.statusbar .kbd { height: auto; min-width: 0; padding: 1px 5px; }

/* 详情 */
.back { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; color: var(--muted2); margin-bottom: 32px; text-decoration: none; }
.back:hover { color: var(--fg); }
.back .kbd { height: auto; min-width: 0; padding: 1px 5px; }
.d-top { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.d-cover { flex: 1 1 560px; min-width: 0; border: 1px solid var(--line); }
.d-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.h-detail { margin: 0; font-size: clamp(40px, 4.4vw, 60px); line-height: 1.1; text-wrap: balance; }
.d-desc { margin: 0; font-size: 16px; line-height: 1.85; color: var(--body2); text-wrap: pretty; white-space: pre-line; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact > div:first-child { font-size: 12px; color: var(--muted); }
.fact > div:last-child { font-size: 14px; }
.d-saves { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.h2 { margin: 0; font-size: 30px; }
.save-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.save-card { background: var(--panel); border: 1px solid var(--line); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.save-card:hover { border-color: var(--line2); }
.save-card .between { gap: 12px; }
.save-foot { border-top: 1px solid var(--line); padding-top: 12px; }
.dashed { border: 1px dashed var(--line2); padding: 36px 28px; font-size: 14px; color: var(--muted2); }
.cta-box { border: 1px solid var(--line); background: var(--panel); padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }

/* 游玩 */
.play { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--bg-play); }
.play-bar { height: 56px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.btn-bar { height: 36px; padding: 0 12px; display: flex; align-items: center; gap: 10px; background: transparent; border: 1px solid var(--line); color: var(--fg); font-size: 13px; cursor: pointer; flex: none; }
.btn-bar:hover { border-color: var(--ph); }
.btn-bar.active { background: var(--chip); gap: 8px; }
.btn-bar.accent { padding: 0 14px; border-color: var(--acc); color: var(--link); font-weight: 500; }
.btn-bar.accent:hover { background: var(--acc); color: var(--bg); }
.btn-bar.dim { height: 34px; color: var(--muted2); font-size: 12px; }
.btn-bar.dim:hover { color: var(--fg); border-color: var(--ph); }
.btn-bar .kbd, .btn-exitfs .kbd { color: var(--muted2); }
/* 标题区吃掉按钮之外的全部宽度，同时是容器：宽度不够时先藏版本号（本节末尾的 @container play-title） */
.play-title { flex: 1; min-width: 0; container: play-title / inline-size; display: flex; align-items: baseline; gap: 12px; }
.play-user { flex: none; }
.play-user-name { max-width: 10em; }
.strip { flex: none; display: flex; align-items: center; gap: 12px; padding: 6px 18px; font-size: 13px; line-height: 1.5; }
.strip > span { min-width: 0; text-wrap: balance; }
.strip > .ulink, .btn-reload { flex: none; white-space: nowrap; }
.strip.guest { min-height: 36px; background: #1f1410; border-bottom: 1px solid #3a2219; }
.strip.reload { min-height: 44px; gap: 14px; background: #122019; border-bottom: 1px solid #1f3a2b; }
.btn-reload { height: 28px; padding: 0 12px; background: transparent; border: 1px solid var(--ok); color: var(--ok); font-size: 12px; cursor: pointer; }
.btn-reload:hover { background: var(--ok); color: var(--bg); }
.play-body { flex: 1; min-height: 0; display: flex; }
/* 舞台本身不留 padding（容器查询量的是舞台内容区，铺满时要用到全部面积），16:9 时的四周留白由 --gap 算进宽度 */
.stage { flex: 1; min-width: 0; container: stage / size; display: flex; align-items: center; justify-content: center; position: relative; --gap: 20px; background: transparent; }
.stage.fs { position: fixed; inset: 0; z-index: 100; --gap: 0px; background: #000; }
.screen { position: relative; width: min(100cqw - 2 * var(--gap), (100cqh - 2 * var(--gap)) * 16 / 9); aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
/* 白底只给没画背景的游戏兜底。框的宽高或位置是小数像素时，浏览器把 iframe 内容对齐到整像素，
   白底却按小数边界画，会在边缘露出一条白线；白底四周内缩 1px，露出来的就只是 .screen 的黑底 */
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: linear-gradient(#fff, #fff) center / calc(100% - 2px) calc(100% - 2px) no-repeat; }
.loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; letter-spacing: .2em; color: var(--muted2); background: #000; }
.btn-exitfs { position: absolute; top: 16px; right: 16px; height: 34px; padding: 0 12px; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--muted2); font-size: 12px; cursor: pointer; }
.btn-exitfs:hover { color: var(--fg); }
.drawer { width: 340px; flex: none; border-left: 1px solid var(--line); background: var(--panel2); display: flex; flex-direction: column; min-height: 0; }
.drawer-head { padding: 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.btn-sm { height: 30px; padding: 0 10px; background: transparent; border: 1px solid var(--line2); color: var(--fg); font-size: 12px; cursor: pointer; }
.btn-sm:hover { border-color: var(--fg); }
.drawer-list { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.drawer-item { border: 1px solid var(--line); background: var(--panel); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.drawer-foot { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--muted); }
/* 桌面横屏保持上面的 16:9；舞台是竖的（手机竖屏、窄窗口、开抽屉后变窄）或者是触屏设备（含手机横屏）时，
   游戏铺满顶栏和提示条以下的全部区域。宽高都给定后 aspect-ratio 自然失效。 */
@container stage (orientation: portrait) { .screen { width: 100%; height: 100%; box-shadow: none; } }
@media (pointer: coarse) { .screen { width: 100%; height: 100%; box-shadow: none; } }
/* 铺满时"退出全屏"浮在游戏上会挡住游戏自己右上角的按钮，改到顶部留出的窄栏里。
   全屏舞台就是整个视口，这里直接按视口判断，并让屏幕一起铺满，免得近似正方形时两套判断打架。 */
@media (orientation: portrait), (pointer: coarse) {
  .stage.fs { padding-top: 40px; }
  .stage.fs .screen { width: 100%; height: 100%; box-shadow: none; }
  .btn-exitfs { top: 6px; right: 8px; height: 28px; }
}
@media (pointer: coarse) { .play-bar .kbd, .btn-exitfs .kbd { display: none; } }
@container play-title (width < 260px) { .play-ver { display: none; } }

/* 个人中心 */
.p-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 28px; }
.p-name { font-size: 44px; line-height: 1.1; }
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); }
.tab { height: 48px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px; font-weight: 500; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); text-decoration: none; }
.tab:hover { color: var(--fg); }
.tab.on { color: var(--fg); border-bottom-color: var(--acc); }
.group { border: 1px solid var(--line); background: var(--panel2); }
.group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 16px; border-bottom: 1px solid var(--line); }
.group-cover { width: 112px; flex: none; }
.group-t { flex: 1; min-width: 160px; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 80px 90px 56px; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--row); }
.trow:last-child { border-bottom: 0; }
.trow:not(.thead):hover { background: #16150f; }
.trow.thead { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.set-row { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.set-row.last { border-bottom: 0; }
.set-l { flex: 0 1 260px; display: flex; flex-direction: column; gap: 6px; }
.set-r { flex: 1 1 360px; max-width: 460px; }
.inp { height: 44px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line2); color: var(--fg); font-size: 15px; outline: none; }
.inp:focus { border-color: var(--fg); }
.inp.big { height: 48px; }
.inp.bad { border-color: var(--acc); }
.err { font-size: 12px; color: var(--link); }

/* 登录 / 注册 */
.auth { position: fixed; inset: 0; z-index: 200; display: flex; background: var(--bg); }
.auth-art { flex: 1; min-width: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 56px; border-right: 1px solid var(--line); }
.auth-p1 { position: absolute; right: -30px; bottom: -110px; font-weight: 700; font-size: 520px; line-height: 1; color: #171611; pointer-events: none; user-select: none; }
.h-auth { margin: 0; font-size: clamp(44px, 5vw, 72px); line-height: 1.08; }
.auth-lede { margin: 0; font-size: 16px; line-height: 1.8; color: var(--muted2); text-wrap: pretty; }
.auth-panel { width: 520px; max-width: 100%; flex: none; margin-left: auto; background: var(--panel); display: flex; flex-direction: column; padding: 28px 48px; overflow: auto; }
.auth-form { flex: 1; width: 100%; max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 32px 0; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); }
.auth-tabs .tab { flex: 1; justify-content: center; font-weight: 700; }
.lbl { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted2); }
.form-err { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #1f1410; border: 1px solid #3a2219; font-size: 13px; }
.submit { height: 54px; font-size: 16px; }

/* 弹窗与提示 */
.scrim { position: fixed; inset: 0; z-index: 300; background: rgba(8, 7, 6, .8); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { width: 460px; max-width: 100%; background: var(--panel); border: 1px solid var(--line2); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.modal-t { font-size: 24px; line-height: 1.3; }
.modal-b { font-size: 14px; line-height: 1.75; color: var(--body2); }
.toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 400; display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); white-space: nowrap; }

/* 窄屏（设计以桌面为主，这里只保证可用） */
@media (max-width: 720px) {
  .hdr { gap: 20px; padding: 0 16px; }
  .brand span { display: none; }
  .hdr-guest > .mono { display: none; }
  .page { padding-left: 16px; padding-right: 16px; }
  .statusbar { padding: 0 16px; }
  .statusbar .sb-i:not(:last-child) { display: none; }
  .play-bar { gap: 8px; padding: 0 8px; }
  .play-bar .kbd, .btn-exitfs .kbd { display: none; }
  .play-user-name { max-width: 8em; }
  .strip { padding: 6px 12px; }
  .stage { --gap: 8px; }
  .drawer { position: absolute; right: 0; top: 0; bottom: 0; z-index: 5; width: min(340px, 90vw); }
  .play-body { position: relative; }
  .auth-panel { padding: 20px; }
  .trow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 56px; }
  .trow > :nth-child(3), .trow > :nth-child(4) { display: none; }
}
/* 手机竖屏：按钮收紧、只留头像，把宽度尽量让给标题 */
@media (max-width: 480px) {
  .play-bar { gap: 6px; padding: 0 6px; }
  .play-bar .btn-bar { padding: 0 8px; }
  .play-bar .btn-bar.accent { padding: 0 10px; }
  .play-user-name { display: none; }
}
