/* ============================================================
   QIXI iOS 设计语言 · 拔河（2026-10-09 精致化 round2）
   基底仍是 iOS（白卡 / 分段控件 / 44px 触达 / 浅色默认+深色切换），
   在之上叠加"高级感"层：柔光氛围、立体 CTA、精致输入框、排版层级。
   主题机制不变：html data-theme + localStorage('qixi_tug_theme')
   ============================================================ */
:root, html[data-theme="light"] {
  color-scheme: light;
  --bg:#eef1f6;
  --card:#ffffff;
  --card-2:#ffffff;
  --fill:rgba(120,120,128,.14);
  --fill-strong:rgba(120,120,128,.22);
  --ink:#1c1c1e;
  --muted:rgba(60,60,67,.6);
  --sep:rgba(60,60,67,.24);
  --accent:#007aff;
  --accent-deep:#0063dc;
  --accent-2:#5856d6;          /* 渐变副色：蓝→紫，制造品牌感 */
  --accent-ink:#ffffff;
  --accent-soft:rgba(0,122,255,.12);
  --blue:#007aff;
  --left:#34c759;
  --right:#ff3b30;
  --danger:#ff3b30;
  --ok:#34c759;
  --shadow-card:0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.07);
  --shadow-pop:0 24px 64px rgba(10,20,50,.22);
  --shadow-cta:0 10px 24px rgba(0,110,220,.34), inset 0 1px 0 rgba(255,255,255,.26);
  --ring:rgba(0,122,255,.24);
  --rope:#c7c7cc;
  --card-edge:rgba(255,255,255,.65);
  --grad-accent:linear-gradient(120deg,#0a84ff 0%,#007aff 45%,#00b3d6 100%);
  --grad-page:
    radial-gradient(1200px 700px at 4% -14%, rgba(0,110,255,.55), transparent 68%),
    radial-gradient(1000px 640px at 116% 16%, rgba(96,86,220,.50), transparent 70%),
    radial-gradient(780px 620px at 50% 126%, rgba(0,170,255,.40), transparent 68%),
    linear-gradient(180deg,#eef3fc 0%,#e2eafa 46%,#dfe7f8 100%);
  /* 旧变量兼容映射 */
  --text:var(--ink); --line:var(--sep); --glass:var(--card); --glass-strong:var(--card);
  --panel:var(--card); --grad-ink:#ffffff; --tint-1:var(--fill); --tint-2:var(--fill);
  --tint-3:var(--fill-strong); --tint-line:var(--sep); --glow:rgba(255,149,0,.25); --glow-2:rgba(255,149,0,.18);
  --radius:16px; --ease:cubic-bezier(.32,.72,0,1);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg:#000000;
  --card:#1c1c1e;
  --card-2:#2c2c2e;
  --fill:rgba(120,120,128,.24);
  --fill-strong:rgba(120,120,128,.36);
  --ink:#ffffff;
  --muted:rgba(235,235,245,.6);
  --sep:rgba(84,84,88,.65);
  --accent:#0a84ff;
  --accent-deep:#409cff;
  --accent-2:#5e5ce6;
  --accent-ink:#ffffff;
  --accent-soft:rgba(10,132,255,.2);
  --blue:#0a84ff;
  --left:#30d158;
  --right:#ff453a;
  --danger:#ff453a;
  --ok:#30d158;
  --shadow-card:0 1px 2px rgba(0,0,0,.45), 0 10px 28px rgba(0,0,0,.5);
  --shadow-pop:0 28px 72px rgba(0,0,0,.66);
  --shadow-cta:0 10px 26px rgba(10,132,255,.44), inset 0 1px 0 rgba(255,255,255,.24);
  --ring:rgba(10,132,255,.34);
  --rope:#48484a;
  --card-edge:rgba(255,255,255,.08);
  --grad-accent:linear-gradient(120deg,#0a84ff 0%,#0a7aff 45%,#00a8cc 100%);
  --grad-page:
    radial-gradient(1100px 640px at 4% -14%, rgba(10,132,255,.26), transparent 62%),
    radial-gradient(900px 580px at 114% 20%, rgba(94,92,230,.24), transparent 64%),
    radial-gradient(760px 600px at 50% 124%, rgba(0,170,255,.16), transparent 62%),
    linear-gradient(180deg,#04060b,#000000);
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
.hidden { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; min-height:100vh; min-height:100dvh; background:var(--grad-page); background-attachment:fixed; color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","HarmonyOS Sans SC","Microsoft YaHei UI","Microsoft YaHei",sans-serif; font-size:16px; line-height:1.45; -webkit-tap-highlight-color:transparent; overflow-x:hidden; }
button { font:inherit; cursor:pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
::selection { background:rgba(0,122,255,.22); }
/* 极光画布退役（DOM 留着，JS 不碰） */
.aurora { display:none; }
@keyframes rise { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes pop { from { opacity:0; transform:scale(.96); } to { opacity:1; transform:none; } }

/* ===== 应用骨架 ===== */
.app-shell { max-width:860px; margin:0 auto; padding:calc(12px + env(safe-area-inset-top)) 14px calc(120px + env(safe-area-inset-bottom)); display:grid; gap:16px; }
.hero { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:8px; animation:rise .4s var(--ease) both; }
.hero h1 { margin:0; font-size:32px; font-weight:800; letter-spacing:-.025em; background:linear-gradient(100deg,var(--ink) 30%,var(--accent-deep) 85%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
html[data-theme="dark"] .hero h1 { background:linear-gradient(100deg,#fff 30%,var(--accent-deep) 90%); -webkit-background-clip:text; background-clip:text; }
.hero-actions { display:flex; align-items:center; gap:8px; }
.online-badge { display:inline-flex; align-items:center; gap:6px; min-height:32px; background:rgba(52,199,89,.14); color:var(--ok); border-radius:999px; padding:6px 11px; font-size:13px; font-weight:700; white-space:nowrap; }
html[data-theme="dark"] .online-badge { background:rgba(48,209,88,.16); }
.online-dot { width:8px; height:8px; border-radius:999px; background:var(--ok); }
.theme-toggle { border:0; background:var(--fill); color:var(--ink); min-width:44px; width:44px; height:44px; padding:0; border-radius:999px; font-size:17px; display:grid; place-items:center; transition:background .18s ease, transform .18s ease; }
@media (hover:hover) and (pointer:fine) { .theme-toggle:hover { background:var(--fill-strong); } }
.theme-toggle:active { transform:scale(.94); }

/* ===== 身份卡 ===== */
.player-glass { background:var(--card); border-radius:18px; border:1px solid var(--card-edge); box-shadow:var(--shadow-card); padding:15px 16px; display:grid; gap:13px; animation:rise .4s var(--ease) .04s both; }
.identity-row { display:flex; align-items:center; gap:12px; }
.identity-row .muted { display:block; color:var(--muted); font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.identity-row strong { font-size:17px; font-weight:700; }
.avatar-node { border-radius:50%; background:var(--fill-strong); color:var(--muted); display:inline-grid; place-items:center; font-weight:700; overflow:hidden; flex:0 0 auto; }
.avatar-large { width:54px; height:54px; font-size:20px; box-shadow:inset 0 0 0 2px var(--card), 0 0 0 2px var(--accent-soft); }
.avatar-node img { width:100%; height:100%; object-fit:cover; }
.mini-stats { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; }
.mini-stats span { background:var(--fill); border-radius:12px; padding:9px 6px; display:grid; gap:2px; justify-items:center; text-align:center; min-width:0; }
.mini-stats b { font-size:15px; font-weight:700; font-variant-numeric:tabular-nums; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mini-stats small { color:var(--muted); font-size:11px; font-weight:600; }

/* ===== 视图与分段控件 ===== */
.view { display:none; }
.view.active { display:grid; gap:12px; animation:rise .35s var(--ease) both; }
.segmented { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:0; background:var(--fill); border-radius:11px; padding:2px; width:max-content; max-width:100%; }
.segmented button { border:0; background:transparent; color:var(--ink); border-radius:9px; padding:8px 18px; min-height:36px; font-weight:600; font-size:14px; white-space:nowrap; transition:background .2s ease, box-shadow .2s ease; }
.segmented button.active { background:var(--card); color:var(--ink); font-weight:700; box-shadow:0 2px 8px rgba(16,24,40,.18), 0 0 0 .5px rgba(0,0,0,.05); }
html[data-theme="dark"] .segmented button.active { background:var(--card-2); color:var(--ink); box-shadow:0 2px 8px rgba(0,0,0,.6); }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.section-head h2 { margin:0; font-size:20px; font-weight:700; letter-spacing:-.01em; }
.text-button { border:0; background:transparent; color:var(--blue); font-weight:600; font-size:15px; min-height:44px; padding:0 8px; }
.pill { display:inline-flex; align-items:center; min-height:28px; background:var(--fill); color:var(--muted); border-radius:999px; padding:4px 11px; font-size:12px; font-weight:600; white-space:nowrap; }
.hint { color:var(--muted); font-size:13px; line-height:1.55; }

/* ===== 房间卡 ===== */
.room-list { display:grid; gap:12px; }
.room-card { background:var(--card); border-radius:18px; border:1px solid var(--card-edge); box-shadow:var(--shadow-card); padding:15px 16px; display:grid; gap:12px; transition:transform .18s var(--ease), box-shadow .18s ease; }
@media (hover:hover) and (pointer:fine) { .room-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(16,24,40,.10); } }
.room-card.is-live { box-shadow:var(--shadow-card), inset 0 0 0 1.5px var(--accent); }
.room-title { display:flex; align-items:center; justify-content:space-between; gap:10px; font-weight:700; font-size:16px; }
.room-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.teams { display:grid; gap:8px; }
.team { display:grid; gap:6px; }
.team-name-row, .versus { color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.versus { text-align:center; }
.slots, .slot-row { display:flex; flex-wrap:wrap; gap:6px; }
.slot { min-width:64px; height:40px; border-radius:10px; background:var(--fill); display:grid; place-items:center; padding:0 10px; }
.slot.filled { background:var(--accent-soft); color:var(--accent-deep); font-weight:600; }
html[data-theme="dark"] .slot.filled { color:var(--accent-deep); }
.slot.empty { color:var(--muted); font-size:13px; }
.slot-player { display:flex; align-items:center; gap:6px; min-width:0; font-size:13px; font-weight:600; max-width:100%; overflow:hidden; }
.ready-tag { color:var(--ok); font-weight:700; font-size:12px; }
.spectator-strip { color:var(--muted); font-size:12px; }
.joined-actions { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:10px; }

/* ===== 任务 / 商店 / 排行 ===== */
.task-stack { display:grid; gap:14px; }
.task-panel { background:var(--card); border-radius:18px; border:1px solid var(--card-edge); box-shadow:var(--shadow-card); padding:15px 16px; display:grid; gap:11px; }
.task-panel h3 { margin:0; font-size:17px; font-weight:700; }
.task-list { display:grid; gap:0; }
.task-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:52px; padding:11px 0; border-top:1px solid var(--sep); }
.task-row:first-child { border-top:0; padding-top:2px; }
.task-row strong { font-size:15px; font-weight:600; display:block; }
.task-row p { margin:3px 0 0; }
.task-status { border:0; background:var(--fill); color:var(--muted); border-radius:999px; min-height:34px; padding:7px 13px; font-size:13px; font-weight:600; flex:0 0 auto; transition:transform .18s ease, background .18s ease; }
.task-status.ready { background:var(--grad-accent); color:#fff; box-shadow:0 3px 10px rgba(0,110,255,.26); }
html[data-theme="dark"] .task-status.ready { color:#fff; }
.task-status.ready:active { transform:scale(.96); }
.task-status.claimed { background:transparent; color:var(--ok); font-weight:700; }
.shop-list { display:grid; gap:0; }
.shop-item { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:50px; padding:12px 0; border:0; border-top:1px solid var(--sep); background:transparent; color:var(--blue); text-align:left; font-size:15px; font-weight:600; }
.shop-item:first-child { border-top:0; }
.shop-item strong { color:var(--muted); font-weight:600; font-size:14px; }
@media (hover:hover) and (pointer:fine) { .shop-item:hover { color:var(--accent-deep); } .shop-item:hover strong { color:var(--ink); } }
.leaderboard { display:grid; gap:0; background:var(--card); border-radius:18px; border:1px solid var(--card-edge); box-shadow:var(--shadow-card); overflow:hidden; }
.leader-row { display:flex; align-items:center; gap:12px; min-height:56px; padding:10px 15px; border-top:1px solid var(--sep); }
.leader-row:first-child { border-top:0; }
.leader-meta { display:flex; align-items:center; gap:14px; margin-left:auto; color:var(--muted); font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
.leader-row .avatar-node { width:38px; height:38px; font-size:15px; }

/* ===== 我的 ===== */
.action-stack { display:grid; gap:10px; }
.avatar-upload { position:relative; display:grid; place-items:center; min-height:48px; border-radius:12px; background:var(--fill); color:var(--blue); font-weight:600; overflow:hidden; }
.avatar-upload input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.admin-panel { background:var(--card); border-radius:18px; border:1px solid var(--card-edge); box-shadow:var(--shadow-card); padding:15px 16px; display:grid; gap:11px; }
.admin-panel.hidden { display:none; }
.admin-panel p { margin:0; }

/* ===== 底部标签栏 ===== */
.bottom-tabs { position:fixed; left:0; right:0; bottom:0; z-index:30; padding:6px 10px calc(8px + env(safe-area-inset-bottom)); background:var(--nav-bg, rgba(249,249,249,.82)); -webkit-backdrop-filter:saturate(180%) blur(20px); backdrop-filter:saturate(180%) blur(20px); border-top:.5px solid var(--sep); display:grid; grid-template-columns:repeat(4, 1fr); max-width:860px; margin:0 auto; }
html[data-theme="dark"] .bottom-tabs { --nav-bg:rgba(22,22,24,.82); background:rgba(22,22,24,.82); }
.bottom-tabs button { border:0; background:transparent; color:var(--muted); min-height:44px; font-size:12px; font-weight:600; border-radius:12px; transition:color .18s ease; }
.bottom-tabs button.active { color:var(--accent); }

/* ===== 按钮 ===== */
.primary, .glass-button { border:0; border-radius:12px; min-height:48px; padding:0 16px; font-weight:600; font-size:16px; transition:background .18s ease, transform .18s ease, opacity .18s ease, box-shadow .18s ease, filter .18s ease; }
.primary { background:var(--grad-accent); color:#fff; box-shadow:var(--shadow-cta); text-shadow:0 1px 1px rgba(0,40,90,.18); }
html[data-theme="dark"] .primary { color:#fff; }
@media (hover:hover) and (pointer:fine) { .primary:not(:disabled):hover { filter:brightness(1.06); transform:translateY(-1px); } }
.primary:active { transform:scale(.98); }
.primary:disabled { opacity:.45; box-shadow:none; cursor:not-allowed; }
.primary.danger-primary, .glass-button.danger { background:rgba(255,59,48,.12); color:var(--danger); box-shadow:none; text-shadow:none; }
.glass-button { background:var(--fill); color:var(--blue); }
@media (hover:hover) and (pointer:fine) { .glass-button:not(:disabled):hover { background:var(--fill-strong); } }
.glass-button:active { transform:scale(.98); }
.glass-button:disabled { opacity:.4; cursor:not-allowed; }
.primary.room-closed { background:var(--fill); color:var(--muted); box-shadow:none; text-shadow:none; }

/* ===== 比赛弹层 ===== */
.match-overlay { position:fixed; inset:0; z-index:50; display:grid; place-items:center; padding:16px; background:rgba(0,0,0,.4); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
html[data-theme="dark"] .match-overlay { background:rgba(0,0,0,.6); }
.match-overlay.hidden { display:none; }
.match-card { width:min(560px, 100%); max-height:min(92dvh, 780px); overflow:auto; background:var(--card); border-radius:22px; border:1px solid var(--card-edge); box-shadow:var(--shadow-pop); padding:16px; display:grid; gap:12px; animation:pop .3s var(--ease) both; position:relative; }
.match-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.match-top span { color:var(--muted); font-weight:700; font-size:13px; }
.match-top strong { font-size:18px; font-weight:700; }
/* 触摸流 */
.touch-feed { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.touch-feed-panel { background:var(--fill); border-radius:12px; padding:9px 10px; display:grid; gap:6px; min-height:64px; align-content:start; }
.touch-feed-panel strong { font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.touch-feed-panel.left strong { color:var(--left); }
.touch-feed-panel.right strong { color:var(--right); }
.touch-feed-list { display:grid; gap:5px; }
.touch-feed-player { display:flex; align-items:center; gap:7px; font-size:12px; min-width:0; opacity:1; transition:opacity .5s ease; }
.touch-feed-player.fading { opacity:.35; }
.touch-feed-player b { font-weight:600; display:block; max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.touch-feed-player small { color:var(--muted); }
.touch-feed-avatar { width:24px; height:24px; border-radius:50%; background:var(--fill-strong); display:inline-grid; place-items:center; font-size:11px; font-weight:700; overflow:hidden; flex:0 0 auto; }
.touch-feed-avatar img { width:100%; height:100%; object-fit:cover; }
/* 阵容 */
.match-lineups { display:grid; gap:8px; }
.match-team { background:var(--fill); border-radius:12px; padding:10px 12px; display:grid; gap:5px; }
.match-team.right { text-align:right; }
.match-player { display:flex; align-items:center; gap:7px; font-size:13px; font-weight:600; min-width:0; }
.match-team.right .match-player { justify-content:flex-end; }
.mvp-card { background:var(--accent-soft); border-radius:12px; padding:11px 13px; display:grid; gap:4px; }
.mvp-copy { font-size:13px; color:var(--accent-deep); font-weight:600; }
html[data-theme="dark"] .mvp-copy { color:var(--accent-deep); }
.result-copy { font-size:14px; }
.result-player { font-size:13px; color:var(--muted); }
/* 绳台 */
.rope-stage { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:8px 2px; }
.team-name { font-weight:700; font-size:14px; }
.team-name.left { color:var(--left); }
.team-name.right { color:var(--right); }
.rope-track { position:relative; height:10px; border-radius:999px; background:var(--fill); }
.rope { position:absolute; left:0; right:0; top:50%; height:4px; margin-top:-2px; border-radius:999px; background:var(--rope); }
.knot { position:absolute; top:50%; left:calc(50% - 13px); width:26px; height:26px; margin-top:-13px; border-radius:50%; background:var(--accent); border:3px solid var(--card); box-shadow:0 1px 6px rgba(0,0,0,.25); }
/* 队色维持红绿对抗，但只用于小面积（队名/ power / 绳端） */
.power-row { display:flex; justify-content:space-between; font-variant-numeric:tabular-nums; font-weight:700; font-size:14px; }
.power-row span:first-child { color:var(--left); }
.power-row span:last-child { color:var(--right); }
/* 拉！大按钮 */
.pull-button { border:0; border-radius:999px; min-height:76px; background:var(--grad-accent); color:#fff; font-size:26px; font-weight:800; letter-spacing:.12em; box-shadow:0 8px 22px rgba(0,110,255,.36), inset 0 1px 0 rgba(255,255,255,.24); text-shadow:0 1px 2px rgba(0,40,90,.2); transition:transform .1s ease, filter .18s ease; user-select:none; -webkit-user-select:none; touch-action:manipulation; }
.pull-button:active { transform:scale(.96); filter:brightness(.96); }
.pull-button:disabled { opacity:.45; box-shadow:none; }
/* 触摸涟漪 */
.touch-feedback-layer { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.touch-ripple { position:absolute; width:16px; height:16px; margin:-8px 0 0 -8px; border-radius:50%; pointer-events:none; animation:ripple .72s ease-out both; }
.touch-ripple.left { background:rgba(52,199,89,.4); }
.touch-ripple.right { background:rgba(255,59,48,.4); }
@keyframes ripple { from { transform:scale(.4); opacity:1; } to { transform:scale(2.6); opacity:0; } }

/* ===== 弹窗 ===== */
dialog { border:1px solid var(--card-edge); border-radius:20px; padding:0; background:var(--card); color:var(--ink); box-shadow:var(--shadow-pop); width:min(400px, 92vw); }
dialog:focus-visible { outline:none; }
dialog::backdrop { background:rgba(10,20,40,.36); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
html[data-theme="dark"] dialog::backdrop { background:rgba(0,0,0,.58); }
.dialog-card { display:grid; }
.dialog-head { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:15px 18px; border-bottom:1px solid var(--sep); }
.dialog-head strong { font-size:17px; font-weight:700; }
.result-card .dialog-head strong { font-size:19px; }
.dialog-body { padding:18px; display:grid; gap:12px; max-height:min(78vh, 78dvh); overflow:auto; }
.close { border:0; background:var(--fill); color:var(--muted); width:36px; height:36px; min-width:36px; border-radius:999px; font-size:17px; display:grid; place-items:center; line-height:1; }
@media (hover:hover) and (pointer:fine) { .close:hover { background:var(--fill-strong); color:var(--ink); } }
/* 登录门 */
.auth-intro { display:flex; align-items:center; gap:12px; }
.auth-badge { flex:0 0 auto; width:56px; height:56px; border-radius:18px; background:var(--grad-accent); color:#fff; display:grid; place-items:center; font-size:28px; font-weight:800; box-shadow:0 10px 24px rgba(0,100,230,.32), inset 0 1px 0 rgba(255,255,255,.28); }
.auth-intro small { display:block; color:var(--muted); font-size:11px; font-weight:600; letter-spacing:.22em; }
.auth-intro strong { font-size:22px; font-weight:800; letter-spacing:-.01em; }
.auth-switch { display:grid; grid-template-columns:1fr 1fr 1fr; gap:0; background:var(--fill); border-radius:11px; padding:2px; }
.auth-switch button { border:0; background:transparent; color:var(--ink); border-radius:9px; min-height:36px; font-weight:600; font-size:14px; transition:background .2s ease, box-shadow .2s ease; }
.auth-switch button.active { background:var(--card); color:var(--ink); font-weight:700; box-shadow:0 2px 8px rgba(16,24,40,.18), 0 0 0 .5px rgba(0,0,0,.05); }
html[data-theme="dark"] .auth-switch button.active { background:var(--card-2); color:var(--ink); box-shadow:0 2px 8px rgba(0,0,0,.6); }
.auth-pane { display:none; }
.auth-pane.active { display:grid; gap:12px; }
.auth-pane label { display:grid; gap:6px; color:var(--muted); font-size:12.5px; font-weight:600; }
.auth-pane input { width:100%; min-height:46px; border:1px solid var(--sep); border-radius:11px; background:var(--card); color:var(--ink); padding:11px 13px; font-size:16px; outline:none; transition:border-color .18s ease, box-shadow .18s ease; }
html[data-theme="dark"] .auth-pane input { background:var(--card-2); }
.auth-pane input:focus { border-color:var(--accent); box-shadow:0 0 0 3.5px var(--ring); }
.registration-cue { display:flex; align-items:center; justify-content:center; gap:6px; border:0; border-radius:11px; background:var(--accent-soft); color:var(--muted); font-size:14px; min-height:42px; transition:background .18s ease; }
@media (hover:hover) and (pointer:fine) { .registration-cue:hover { background:var(--fill); } }
.registration-cue small { font-weight:500; }
.registration-cue span:last-child { color:var(--blue); font-weight:600; }
.registration-cue-arrow { color:var(--blue); animation:nudge 1.1s ease-in-out infinite; font-size:16px; }
@keyframes nudge { 50% { transform:translateX(4px); } }
.code-box { background:var(--fill); border-radius:12px; padding:13px; display:grid; gap:8px; justify-items:center; text-align:center; }
.code-box span { color:var(--muted); font-size:13px; }
.code-box strong { font-size:24px; letter-spacing:1px; color:var(--accent); font-weight:800; font-variant-numeric:tabular-nums; user-select:all; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
html[data-theme="dark"] .code-box strong { color:var(--accent-deep); }
.reward-code-box { margin-bottom:2px; }
/* 密保 */
.security-section { display:grid; gap:10px; padding-top:12px; border-top:1px solid var(--sep); }
.security-section strong { font-size:16px; font-weight:700; }
.security-section p { margin:4px 0 0; }
.security-section label { display:grid; gap:6px; color:var(--muted); font-size:12.5px; font-weight:600; }
.security-section input { min-height:46px; border:1px solid var(--sep); border-radius:11px; background:var(--card); color:var(--ink); padding:11px 13px; font-size:16px; outline:none; transition:border-color .18s ease, box-shadow .18s ease; }
html[data-theme="dark"] .security-section input { background:var(--card-2); }
.security-section input:focus { border-color:var(--accent); box-shadow:0 0 0 3.5px var(--ring); }
.auth-note { background:var(--fill); color:var(--ink); border-radius:12px; padding:10px 12px; font-size:13.5px; line-height:1.5; }
/* 结果 */
.result-card .dialog-body { justify-items:stretch; }

/* ===== Toast ===== */
.toast { position:fixed; left:14px; right:14px; bottom:calc(108px + env(safe-area-inset-bottom)); z-index:80; max-width:520px; margin:0 auto; background:var(--card-2); color:var(--ink); border-radius:14px; padding:12px 14px; box-shadow:var(--shadow-pop); font-size:14px; text-align:center; }
html[data-theme="dark"] .toast { background:#3a3a3c; }

/* ===== 窄屏 ===== */
@media (max-width:520px) {
  .app-shell { padding-left:12px; padding-right:12px; }
  .hero { flex-direction:column; align-items:stretch; gap:10px; }
  .hero h1 { font-size:26px; line-height:1.2; white-space:normal; }
  .hero-actions { justify-content:flex-start; }
  .mini-stats { grid-template-columns:repeat(4, minmax(0,1fr)); gap:6px; }
  .mini-stats b { font-size:13px; }
  .segmented { width:100%; }
  .segmented button { padding:8px 8px; }
  .room-actions { grid-template-columns:1fr; }
  .touch-feed-player b { max-width:76px; }
  .pull-button { min-height:68px; font-size:22px; }
  .match-card { padding:13px; }
}
/* 触屏触达 */
@media (pointer:coarse) {
  .theme-toggle { min-width:44px; width:44px; height:44px; }
}
/* 动效兜底 */
@media (prefers-reduced-motion: reduce) {
  * { animation:none !important; transition:none !important; }
}
