:root {
  --bg: #f6f5f1; --panel: #ffffff; --soft: #efede7; --line: #e2dfd6; --text: #1f1e1c; --mute: #77736a;
  --accent: #d9772b; --accent-soft: #fbeadb; --ok: #2f8f5b; --ok-soft: #e1f2e8; --warn: #c27a00; --warn-soft: #fdf0d5;
  --bad: #c8453a; --bad-soft: #fbe3e0; --user: #2f2d29; --user-text: #fff; --code: #f3f1ec;
  --ds: #2563eb; --ds-soft: #e8f0ff;
  --radius: 14px; --safe-b: env(safe-area-inset-bottom); --safe-t: env(safe-area-inset-top);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1b1d; --panel: #242427; --soft: #2d2d31; --line: #38383d; --text: #ecebe7; --mute: #9b988f;
    --accent: #ec8a3c; --accent-soft: #3a2a1d; --ok: #5cc28a; --ok-soft: #1f3328; --warn: #e2a33a; --warn-soft: #3a3020;
    --bad: #ef6b5f; --bad-soft: #3d2422; --user: #3b3a36; --user-text: #f3f2ee; --code: #1d1d20; color-scheme: dark;
    --ds: #7aa7ff; --ds-soft: #1e2a44;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body, #app { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font-size: 15px; line-height: 1.55; overscroll-behavior: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent); }
a.btn { text-decoration: none; color: inherit; }
.boot { display: grid; place-items: center; height: 100%; color: var(--mute); }
.hidden { display: none !important; }

/* ---------- 按钮/表单 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 10px; background: var(--soft); font-weight: 500; white-space: nowrap; }
.btn:active { opacity: .7; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ok { background: var(--ok); color: #fff; }
.btn.bad { background: var(--bad-soft); color: var(--bad); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .45; }
.input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); outline: none; }
.input:focus { border-color: var(--accent); }
label.field { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--mute); }
.err { color: var(--bad); font-size: 13px; min-height: 20px; margin-top: 8px; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: var(--line); transition: .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------- 登录 ---------- */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: 100%; max-width: 380px; background: var(--panel); border-radius: 20px; padding: 28px 22px; box-shadow: 0 6px 30px rgba(0,0,0,.06); }
.auth h1 { margin: 0 0 4px; font-size: 22px; }
.auth p { margin: 0 0 8px; color: var(--mute); font-size: 14px; }
.auth .btn { width: 100%; margin-top: 16px; min-height: 46px; }

/* ---------- 整体布局 ---------- */
.shell { display: flex; height: 100%; }
.side { width: 100%; display: flex; flex-direction: column; height: 100%; background: var(--bg); }
.main { display: none; flex: 1; flex-direction: column; height: 100%; min-width: 0; background: var(--bg); }
.shell.in-main .side { display: none; }
.shell.in-main .main { display: flex; }
@media (min-width: 900px) {
  .side { width: 340px; flex: none; border-right: 1px solid var(--line); display: flex !important; }
  .main { display: flex !important; }
  .tabbar { display: none !important; }
  .side-tabs { display: flex !important; }
  .back { display: none !important; }
}
.topbar { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 16px 10px; border-bottom: 1px solid var(--line); background: var(--bg); min-height: 56px; flex: none; }
.topbar h2 { margin: 0; font-size: 17px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .sub { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .titles { flex: 1; min-width: 0; }
.back { font-size: 22px; width: 32px; height: 32px; display: grid; place-items: center; margin-left: -6px; }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tabbar { display: flex; border-top: 1px solid var(--line); background: var(--panel); padding-bottom: var(--safe-b); flex: none; }
.tabbar button { flex: 1; padding: 8px 0 6px; font-size: 12px; color: var(--mute); display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.tabbar button b { font-size: 19px; font-weight: 400; line-height: 1.2; }
.tabbar button.on { color: var(--accent); }
.badge { position: absolute; top: 4px; left: calc(50% + 8px); background: var(--bad); color: #fff; border-radius: 9px; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; }
.side-tabs { display: none; gap: 4px; padding: 10px 12px 0; }
.side-tabs button { flex: 1; padding: 8px; border-radius: 8px; font-size: 14px; color: var(--mute); position: relative; }
.side-tabs button.on { background: var(--panel); color: var(--text); font-weight: 600; }
.side-tabs .badge { top: -2px; left: auto; right: 4px; }
.empty { padding: 48px 24px; text-align: center; color: var(--mute); }

/* ---------- 会话列表 ---------- */
.search { margin: 10px 12px; }
.slist { padding: 0 8px 16px; }
.srow { display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 12px; margin-bottom: 2px; }
.srow:active, .srow.on { background: var(--panel); }
.srow .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .m { display: flex; gap: 8px; font-size: 12px; color: var(--mute); margin-top: 2px; align-items: center; }
.srow .m .cwd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow.waiting { background: var(--warn-soft); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; flex: none; }
.tag.running { background: var(--accent-soft); color: var(--accent); }
.tag.waiting { background: var(--warn); color: #fff; }
.tag.idle { background: var(--ok-soft); color: var(--ok); }
.tag.pub { background: var(--ok-soft); color: var(--ok); }
.tag.priv { background: var(--soft); color: var(--mute); }
.tag.build { background: var(--warn-soft); color: var(--warn); }
.tag.ds { background: var(--ds-soft); color: var(--ds); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag.running .dot { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.group-h { font-size: 12px; color: var(--mute); padding: 12px 12px 4px; }

/* ---------- 聊天 ---------- */
.chat { flex: 1; overflow-y: auto; padding: 14px 14px 8px; -webkit-overflow-scrolling: touch; }
.chat-inner { max-width: 820px; margin: 0 auto; }
.msg { margin: 10px 0; }
.msg.user { display: flex; justify-content: flex-end; }
.msg.user .bubble { background: var(--user); color: var(--user-text); border-radius: 16px 16px 4px 16px; padding: 9px 13px; max-width: 86%; white-space: pre-wrap; word-break: break-word; }
.msg.text { word-break: break-word; }
.msg.text p { margin: 0 0 .6em; }
.msg.text > :last-child { margin-bottom: 0; }
.msg.text pre, .detail pre { background: var(--code); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow-x: auto; font-size: 12.5px; line-height: 1.45; margin: .5em 0; }
.msg.text code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--code); padding: 1px 5px; border-radius: 5px; }
.msg.text pre code { background: none; padding: 0; }
.msg.text h1, .msg.text h2, .msg.text h3, .msg.text h4 { font-size: 16px; margin: 1em 0 .4em; }
.msg.text ul, .msg.text ol { padding-left: 1.4em; margin: .3em 0 .6em; }
.msg.text table { border-collapse: collapse; display: block; overflow-x: auto; margin: .5em 0; font-size: 13.5px; }
.msg.text th, .msg.text td { border: 1px solid var(--line); padding: 5px 9px; text-align: left; vertical-align: top; }
.msg.text th { background: var(--soft); }
.msg.text blockquote { margin: .5em 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--mute); }
.msg.text hr { border: 0; border-top: 1px solid var(--line); }
.msg.note { text-align: center; font-size: 12px; color: var(--mute); }
.msg.note.err { color: var(--bad); }
.msg.done { font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.msg.done::before, .msg.done::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }
.msg.done.bad { color: var(--bad); }
.tool { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 13px; margin: 6px 0; overflow: hidden; }
.tool > summary { list-style: none; display: flex; gap: 8px; align-items: center; padding: 7px 10px; cursor: pointer; }
.tool > summary::-webkit-details-marker { display: none; }
.tool .nm { font-weight: 600; flex: none; }
.tool .sm { color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.tool .st { flex: none; font-size: 12px; }
.tool .st.ok { color: var(--ok); } .tool .st.bad { color: var(--bad); } .tool .st.wait { color: var(--mute); }
.detail { padding: 0 10px 10px; }
.detail pre { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; }
.detail .lbl { font-size: 11px; color: var(--mute); margin-top: 6px; }
.streaming { opacity: .9; }
.streaming::after { content: "▍"; animation: pulse 1s infinite; color: var(--accent); }
.more-hint { text-align: center; font-size: 12px; color: var(--mute); padding: 4px 0 10px; }

/* 待确认卡片 */
.asks { padding: 0 12px; max-height: 55vh; overflow-y: auto; flex: none; }
.asks:empty { display: none; }
.ask { max-width: 820px; margin: 8px auto; background: var(--warn-soft); border: 1px solid var(--warn); border-radius: var(--radius); padding: 12px; }
.ask h4 { margin: 0 0 4px; font-size: 15px; }
.ask .why { font-size: 12px; color: var(--mute); margin-bottom: 6px; }
.ask pre { background: var(--panel); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 6px 0; }
.ask .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ask .acts .btn { flex: 1; }
.q { margin: 10px 0; }
.q .qh { font-weight: 600; margin-bottom: 6px; }
.q .chip-h { font-size: 11px; color: var(--warn); font-weight: 600; }
.opt { display: block; width: 100%; text-align: left; padding: 9px 11px; border-radius: 10px; background: var(--panel); border: 1.5px solid transparent; margin-bottom: 6px; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.opt .ol { font-weight: 600; overflow-wrap: anywhere; }
.opt .od { font-size: 12.5px; color: var(--mute); overflow-wrap: anywhere; }
.plan { background: var(--panel); border-radius: 10px; padding: 10px 12px; max-height: 40vh; overflow: auto; font-size: 14px; }

/* 输入框 */
.composer { flex: none; border-top: 1px solid var(--line); background: var(--panel); padding: 8px 10px calc(8px + var(--safe-b)); }
.composer .row { display: flex; gap: 8px; align-items: flex-end; max-width: 820px; margin: 0 auto; }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 18px; padding: 9px 14px; min-height: 40px; max-height: 40vh; background: var(--bg); outline: none; line-height: 1.4; }
.composer textarea:focus { border-color: var(--accent); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 18px; background: var(--soft); }
.icon-btn.send { background: var(--accent); color: #fff; }
.icon-btn.stop { background: var(--bad); color: #fff; }
.thumbs { display: flex; gap: 6px; max-width: 820px; margin: 0 auto 6px; flex-wrap: wrap; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 18px; }
.modebar { display: flex; gap: 8px; align-items: center; max-width: 820px; margin: 0 auto 6px; font-size: 12px; color: var(--mute); }
.modebar select { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 3px 6px; font-size: 12px; }
.modebar .sp { flex: 1; }

/* ---------- 弹层 ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } }
.sheet { background: var(--panel); width: 100%; max-width: 560px; max-height: 88vh; border-radius: 20px 20px 0 0; padding: 18px 16px calc(16px + var(--safe-b)); overflow-y: auto; }
@media (min-width: 700px) { .sheet { border-radius: 20px; } }
.sheet h3 { margin: 0 0 6px; font-size: 18px; }
.sheet p { color: var(--mute); margin: 0 0 10px; font-size: 14px; }
.sheet .acts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sheet .acts .btn { min-height: 46px; }
.dirlist { border: 1px solid var(--line); border-radius: 10px; max-height: 240px; overflow-y: auto; margin-top: 6px; }
.dirlist button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.dirlist button:last-child { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 10px; border-radius: 16px; background: var(--soft); font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.on { background: var(--accent); color: #fff; }
.toast { position: fixed; left: 50%; bottom: calc(80px + var(--safe-b)); transform: translateX(-50%); background: var(--user); color: var(--user-text); padding: 9px 16px; border-radius: 20px; font-size: 14px; z-index: 99; max-width: calc(100% - 32px); }

/* ---------- 游戏 / 设置 ---------- */
.page { max-width: 820px; margin: 0 auto; padding: 12px 12px 32px; }
.card { background: var(--panel); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.card h4 { margin: 0; font-size: 16px; }
.card .meta { font-size: 12px; color: var(--mute); margin-top: 2px; word-break: break-all; }
.card .row { display: flex; align-items: center; gap: 10px; }
.card .row .grow { flex: 1; min-width: 0; }
.card .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sec-h { font-size: 13px; color: var(--mute); margin: 18px 4px 8px; font-weight: 600; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.status-line .dot { width: 9px; height: 9px; }
.st-online { color: var(--ok); } .st-connecting { color: var(--warn); } .st-error { color: var(--bad); } .st-off { color: var(--mute); }
.hint { font-size: 12.5px; color: var(--mute); margin-top: 6px; }
.hint.warn { color: var(--warn); }
.urlbox { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--soft); padding: 8px 10px; border-radius: 8px; word-break: break-all; margin-top: 8px; }
.qr { display: grid; place-items: center; padding: 10px; background: #fff; border-radius: 12px; margin-top: 10px; }
.qr img { width: 200px; height: 200px; image-rendering: pixelated; }
.log { font-size: 12px; }
.log div { padding: 5px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.log .bad { color: var(--bad); }
.filters { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.filters .input { flex: 1; }

/* ---------- 电脑上的图片 ---------- */
.imgbar { margin: 4px 0 10px; }
.imgbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 17px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 500; }
.imgstrip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.imgthumb { flex: none; width: 112px; scroll-snap-align: start; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; padding: 0; text-align: left; }
.imgthumb img { display: block; width: 112px; height: 112px; object-fit: cover; background: var(--code); }
.imgthumb span { display: block; padding: 4px 6px; font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imgthumb.broken img { visibility: hidden; }
.imgthumb.broken span::before { content: "打不开 · "; color: var(--bad); }
.viewer { position: fixed; inset: 0; z-index: 80; background: #0d0d0e; color: #f2f1ed; display: flex; flex-direction: column; touch-action: none; user-select: none; -webkit-user-select: none; }
.vtop, .vbot { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.vtop { padding-top: calc(8px + var(--safe-t)); }
.vbot { justify-content: center; padding-bottom: calc(10px + var(--safe-b)); }
.vcount { font-size: 13px; color: #b9b6ae; flex: none; }
.vname { flex: 1; min-width: 0; font-size: 12px; color: #b9b6ae; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbtn { min-width: 44px; min-height: 44px; border-radius: 22px; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; padding: 0 12px; }
.vbtn.wide { font-size: 14px; padding: 0 18px; }
.vstage { flex: 1; min-height: 0; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.vimg { max-width: 100%; max-height: 100%; transform-origin: center center; transition: opacity .15s; will-change: transform; -webkit-user-drag: none; }
.vload { position: absolute; color: #b9b6ae; font-size: 14px; padding: 0 24px; text-align: center; }

/* ---------- 额度条 ---------- */
#quota { padding: 8px 12px 0; }
#quota:empty { display: none; }
.qrow { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 10px; border-radius: 10px; background: var(--panel); font-size: 12.5px; overflow: hidden; }
.qbar { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.qbar i { font-style: normal; color: var(--mute); }
.qbar b { display: block; width: 22px; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.qbar em { display: block; height: 100%; background: var(--ok); }
.qbar u { text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.qbar.warn em { background: var(--warn); } .qbar.warn u { color: var(--warn); }
.qbar.bad em { background: var(--bad); } .qbar.bad u { color: var(--bad); }
.qchip { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 1px 6px; border-radius: 6px; background: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qchip.ok { background: var(--ok-soft); color: var(--ok); }
.qchip.warn { background: var(--warn-soft); color: var(--warn); }
.qchip.bad { background: var(--bad-soft); color: var(--bad); }
.qchip.mute { color: var(--mute); }
.qcard { margin: 8px 0 0; font-size: 13.5px; }
.qhead { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-top: 10px; }
.qhead:first-child { margin-top: 0; }
.qline { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.qline > span:first-child { color: var(--mute); width: 64px; flex: none; }
.qline b { font-weight: 600; }
.qline b.warn { color: var(--warn); } .qline b.bad { color: var(--bad); } .qline b.ok { color: var(--ok); }
.qline .hint { margin-left: auto; }

/* 新增 CLI 的状态和额度；旧 Claude 样式保持。 */
.tag.agent-codex { background: var(--ok-soft); color: var(--ok); }
.tag.agent-agy { background: var(--accent-soft); color: var(--accent); }
.qrow.agent-quotas { flex-wrap: wrap; }
.agent-topbar #cstatus { display: flex; flex-wrap: wrap; gap: 3px; max-width: 220px; }
.agent-topbar #cstatus .tag.priv { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 599px) {
  .agent-topbar { flex-wrap: wrap; gap: 6px; }
  .agent-topbar #cstatus { order: 5; flex-basis: 100%; max-width: none; padding-left: 32px; }
}

/* 游戏先加载，再进入：进度显示真实下载及缓存复用状态。 */
.game-load { margin: 12px 0; padding: 12px; border-radius: 12px; background: var(--soft); }
.game-load-head,.game-load-foot { display:flex;align-items:center;justify-content:space-between;gap:10px; }
.game-load-head { font-size:13px; }.game-load-head b { font-variant-numeric:tabular-nums;flex:none;color:var(--ok); }
.game-load progress { display:block;width:100%;height:10px;border:0;border-radius:9px;overflow:hidden;margin:10px 0;accent-color:var(--ok); }
.game-load progress::-webkit-progress-bar { background:var(--line);border-radius:9px; }.game-load progress::-webkit-progress-value { background:var(--ok);border-radius:9px; }
.game-load-foot { font-size:12px;color:var(--mute); }.game-load-foot .btn { min-height:30px;padding:0 8px; }
.game-load.load-error [data-load-message] { color:var(--bad); }
.game-stage { position:fixed;left:0;top:0;width:100vw;height:100dvh;display:flex;flex-direction:column;background:var(--bg);z-index:-1;opacity:0;pointer-events:none; }
.game-stage.in-game { z-index:1000;opacity:1;pointer-events:auto; }
.game-stage-bar { display:flex;align-items:center;gap:10px;flex:none;padding:calc(5px + env(safe-area-inset-top)) 8px 5px;border-bottom:1px solid var(--line); }
.game-stage-bar span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px; }
.game-stage iframe { width:100%;flex:1;min-height:0;border:0;background:#000; }
