/* ==========================================================
   互动转盘小游戏 · 样式
   风格：macOS Sonoma 毛玻璃 + 高饱和转盘配色
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --accent: #ff5e7e;
  --accent2: #ffb35e;
  --glow: rgba(255, 94, 126, 0.35);
  --text: #22243a;
  --muted: #8a8fa3;
  --card: rgba(255, 255, 255, 0.6);
  --stroke: rgba(255, 255, 255, 0.7);
  --radius: 20px;
  --shadow: 0 20px 45px rgba(35, 42, 80, 0.12), 0 4px 12px rgba(35, 42, 80, 0.07);
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(165deg, #eef1f8 0%, #f7f2f0 55%, #f3eef8 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- 背景漂浮色块 ---------- */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  animation: float 14s ease-in-out infinite alternate;
  transition: background 0.6s ease;
}
.blob-1 { width: 44vmax; height: 44vmax; top: -12vmax; left: -10vmax; }
.blob-2 { width: 36vmax; height: 36vmax; bottom: -8vmax; right: -6vmax; animation-delay: -5s; }
.blob-3 { width: 26vmax; height: 26vmax; top: 30%; right: 16%; animation-delay: -9s; }
@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4vmax, 3vmax) scale(1.08); }
}

/* ---------- 布局骨架 ---------- */
.app { max-width: 540px; margin: 0 auto; padding: 18px 16px 30px; position: relative; z-index: 1; }

.glass {
  background: var(--card);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; padding: 14px 18px;
}
.brand h1 { font-size: 20px; font-weight: 900; letter-spacing: 1px; }
.brand .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.toolbar { display: flex; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  cursor: pointer; color: var(--text);
  transition: transform 0.15s ease, background 0.15s ease;
}
.icon-btn:hover { background: #fff; transform: translateY(-1px); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.off { color: #b6bac8; }

/* ---------- 同步状态徽标（P4） ---------- */
.sync-pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; vertical-align: 1px;
  background: rgba(0, 0, 0, 0.06); color: var(--muted);
  transition: background 0.3s ease, color 0.3s ease;
}
.sync-pill.on { background: rgba(52, 199, 89, 0.16); color: #1f9d4d; }
.sync-pill.off { background: rgba(255, 159, 10, 0.18); color: #c77800; }

/* ---------- 转盘卡片 ---------- */
.wheel-card {
  margin-top: 16px; padding: 26px 20px 20px;
  display: flex; flex-direction: column; align-items: center;
}

/* 转盘切换分段控件（macOS 风格） */
.seg {
  display: flex; gap: 4px; width: 100%; max-width: 420px;
  padding: 4px; margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 14px;
}
.seg-btn {
  flex: 1; padding: 9px 0;
  border: none; border-radius: 10px;
  background: transparent; color: var(--muted);
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.seg-btn.active {
  background: #fff; color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.seg-btn:not(.active):hover { color: var(--text); }

.wheel-wrap { position: relative; width: min(100%, 420px); aspect-ratio: 1 / 1; user-select: none; -webkit-user-select: none; }
#wheel { display: block; width: 100%; height: 100%; }

/* 顶部指针（双层三角） */
.pointer {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  z-index: 6; width: 0; height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 30px solid var(--accent);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.28));
  transform-origin: 50% 4px;
  transition: border-top-color 0.4s ease;
}
.pointer::before {
  content: ''; position: absolute; left: -16px; top: -4px;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 36px solid #fff;
  z-index: -1;
}
.pointer.tick { animation: ptick 0.1s ease; }
@keyframes ptick {
  40%  { transform: translateX(-50%) rotate(-12deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

/* 中央 GO 按钮 */
#goBtn {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5; width: 27%; aspect-ratio: 1 / 1;
  border-radius: 50%; border: 4px solid #fff;
  background: linear-gradient(150deg, var(--accent), var(--accent2));
  color: #fff; font-family: inherit;
  font-size: clamp(18px, 5vw, 28px); font-weight: 900; letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 10px 24px var(--glow), inset 0 2px 8px rgba(255, 255, 255, 0.45);
  transition: transform 0.12s ease;
}
#goBtn:active { transform: translate(-50%, -50%) scale(0.92); }
#goBtn.idle { animation: goPulse 2s ease-in-out infinite; }
@keyframes goPulse {
  0%, 100% { box-shadow: 0 10px 24px var(--glow), inset 0 2px 8px rgba(255, 255, 255, 0.45); }
  50%      { box-shadow: 0 12px 34px var(--glow), 0 0 0 10px rgba(255, 255, 255, 0.14), inset 0 2px 8px rgba(255, 255, 255, 0.45); }
}

/* 底部大按钮 */
.cta {
  width: 100%; max-width: 420px; margin-top: 20px;
  padding: 15px 0; border: none; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-family: inherit;
  font-size: 16px; font-weight: 800; letter-spacing: 3px;
  cursor: pointer;
  box-shadow: 0 12px 26px var(--glow);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta:active { transform: scale(0.98); }
.cta.stop {
  background: linear-gradient(135deg, #5b6273, #343b4c);
  box-shadow: 0 12px 26px rgba(60, 66, 88, 0.35);
}
.cta.inline { width: auto; flex: 1.2; margin-top: 0; padding: 14px 0; letter-spacing: 1px; }
.cta.ghost {
  background: rgba(0, 0, 0, 0.07); color: var(--text);
  box-shadow: none;
}
.cta.ghost:hover { background: rgba(0, 0, 0, 0.1); }

.hint { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- 历史记录卡片 ---------- */
.history-card { margin-top: 16px; padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-head h2 { font-size: 15px; font-weight: 700; }
.text-btn {
  border: none; background: none; color: var(--muted);
  font-size: 13px; cursor: pointer; padding: 4px 10px; border-radius: 8px;
}
.text-btn:hover { color: var(--accent); background: rgba(0, 0, 0, 0.04); }

.history-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 132px; overflow: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 13px;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip em { font-style: normal; color: var(--muted); font-size: 11px; }

.history-full .h-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 6px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-size: 14px;
}
.history-full .h-row:last-child { border-bottom: none; }
.h-row b { color: var(--muted); font-size: 12px; width: 22px; flex: none; }
.h-row i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.h-row em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12px; }

.empty { color: var(--muted); font-size: 13px; text-align: center; padding: 18px 0; }

.foot { text-align: center; font-size: 11px; color: #a6abbf; margin: 22px 0 8px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(24, 26, 40, 0.4);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.modal-mask.open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  width: min(94vw, 430px); max-height: 82vh; overflow: auto;
  border-radius: 22px; padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 70px rgba(20, 25, 50, 0.3);
  transform: translateY(14px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-mask.open .modal { transform: none; }

.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.title-sub { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border: none; border-radius: 10px;
  background: rgba(0, 0, 0, 0.05); color: #666;
  display: grid; place-items: center; cursor: pointer;
}
.modal-close:hover { background: rgba(0, 0, 0, 0.09); }
.modal-close svg { width: 14px; height: 14px; }

/* 规则列表 */
.rules { list-style: none; counter-reset: r; margin-top: 4px; }
.rules li {
  counter-increment: r; position: relative;
  padding: 8px 0 8px 34px; font-size: 14px; line-height: 1.65; color: #3a3d52;
}
.rules li::before {
  content: counter(r);
  position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}

/* 全部项目网格 */
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.item-cell {
  display: flex; align-items: center; gap: 8px;
  padding: 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 13px;
}
.item-cell i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.item-cell b { font-size: 11px; color: var(--muted); font-weight: 600; flex: none; }

/* 主题选择 */
.theme-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.theme-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 14px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer; font-size: 14px; font-weight: 600;
  color: var(--text); font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.theme-item:hover { transform: translateY(-1px); }
.theme-item.active { border-color: var(--accent); background: #fff; }
.theme-wheel {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

/* 结果弹窗 */
.result-modal { text-align: center; padding: 30px 24px 24px; }
.result-label { color: var(--muted); letter-spacing: 4px; font-size: 13px; }
.winner-text {
  font-size: clamp(36px, 10vw, 52px); font-weight: 900;
  margin: 12px 0 8px; line-height: 1.25; word-break: break-all;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.result-sub { color: var(--muted); font-size: 14px; }
.result-actions { display: flex; gap: 12px; margin-top: 22px; }
.result-actions .cta.inline { width: 100%; }

/* ---------- 登录 / 注册（P4） ---------- */
.auth-seg { margin-bottom: 16px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.08); background: rgba(255, 255, 255, 0.8);
  font-family: inherit; font-size: 15px; color: var(--text); outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.auth-err { min-height: 18px; font-size: 12.5px; color: #e0304e; margin: -4px 0 10px; }
#authSubmit { margin-top: 2px; }
#authSubmit:disabled { opacity: 0.6; cursor: default; }
#authForm .hint { margin-top: 12px; }

/* ---------- 账号 / 导入（P4） ---------- */
.acct-user { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.acct-avatar {
  width: 42px; height: 42px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 18px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px var(--glow);
}
.acct-user b { font-size: 16px; }
.acct-status { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.acct-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 14px; margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(0, 0, 0, 0.05);
}
.acct-row-text b { display: block; font-size: 13.5px; }
.acct-row-text span { font-size: 12px; color: var(--muted); }
.mini-btn {
  flex: none; padding: 8px 16px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; box-shadow: 0 6px 14px var(--glow);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.mini-btn.ghost {
  background: rgba(255,255,255,.65); color: var(--text);
  border: 1px solid rgba(138,143,163,.2);
  box-shadow: 0 4px 10px rgba(35,42,80,.04);
}
.mini-btn.warn { background: linear-gradient(135deg, #ff9f43, #ff5e7e); }
.mini-btn:active { transform: scale(0.96); }
.mini-btn:disabled { opacity: 0.6; cursor: default; }
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
  background: rgba(138,143,163,.12); color: #50566e;
}
.card-head {
  display: flex; align-items: center; gap: 10px;
  justify-content: space-between; margin-bottom: 12px;
}
.card-head h2 { font-size: 16px; font-weight: 900; }
.title-sub { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.import-msg { font-size: 14px; margin-bottom: 6px; }
.import-msg b { color: var(--accent); }
.import-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.acct-status { font-size: 12.5px; color: var(--muted); }
.auth-seg { margin-bottom: 14px; }
.check-row {
  display: flex; align-items: center; gap: 8px;
  margin: -4px 2px 10px; font-size: 12.5px; color: var(--muted);
  cursor: pointer; user-select: none;
}
.check-row input { accent-color: var(--accent); width: 15px; height: 15px; }
.peek-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; padding: 6px 8px;
  font-size: 14px; cursor: pointer; color: var(--muted);
  border-radius: 8px;
}
.peek-btn:hover { background: rgba(0,0,0,.04); color: var(--text); }
.guest-tip {
  padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,94,126,.08), rgba(183,157,255,.10));
  border: 1px solid rgba(255,255,255,.75);
  font-size: 13px; margin-bottom: 10px;
}
.guest-tip b { font-weight: 800; margin-right: 2px; }
.guest-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px;
}
.guest-actions .cta { width: 100%; }
@media (max-width: 480px) {
  .guest-actions { grid-template-columns: 1fr; }
}
.code-inputs-hp input { height: 56px; font-size: 26px; }
.acct-status { font-size: 12.5px; color: var(--muted); }

/* ---------- 特效与提示 ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

.toast {
  position: fixed; left: 50%; bottom: 34px;
  transform: translate(-50%, 20px);
  background: rgba(30, 32, 48, 0.88);
  backdrop-filter: blur(8px);
  color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 13px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 80; max-width: 86vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 420px) {
  .app { padding: 14px 12px 24px; }
  .wheel-card { padding: 18px 12px 16px; }
  .topbar { padding: 12px 14px; }
  .icon-btn { width: 34px; height: 34px; }
  .modal { padding: 20px 16px; }
}
@media (min-width: 700px) {
  .app { max-width: 600px; }
}

/* ============================================================
   v2.1 BUGFIX/FUNC 扩展样式（FUNC-3/4/5 + 会员中心同构）
   ============================================================ */

/* ---------- FUNC-4：顶部统一快速导航 ---------- */
.top-quick-nav {
  margin-top: 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.qnav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.78);
  color: inherit;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.qnav-item:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 8px 22px rgba(35,42,80,.08); }
.qnav-ic { font-size: 24px; line-height: 1; }
.qnav-tx { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.qnav-tx b { font-size: 13px; font-weight: 800; letter-spacing: .2px; }
.qnav-tx small { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qnav-admin { background: linear-gradient(135deg, rgba(255,226,156,.55), rgba(255,159,170,.3) 60%, rgba(183,157,255,.35)); border-color: rgba(255,255,255,.9); }
.qnav-login { background: linear-gradient(135deg, rgba(255,94,126,.12), rgba(255,179,94,.12)); }

/* ---------- FUNC-4：账号弹层 会员同构 ---------- */
.modal-wide { max-width: 560px; }
.acct-guest {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 18px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,94,126,.10), rgba(183,157,255,.14));
  border: 1px solid rgba(255,255,255,.8);
  margin-bottom: 12px;
}
.acct-guest-left { display: flex; align-items: center; gap: 16px; }
.acct-guest h3 { font-size: 16px; font-weight: 900; margin-bottom: 6px; }
.acct-avatar-lg {
  width: 72px; height: 72px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(138,143,163,.2), rgba(138,143,163,.35));
  color: #fff; display: grid; place-items: center;
  font-size: 30px; font-weight: 900;
  flex-shrink: 0;
}
/* 复用 member.css 类名：app 里账号弹层与会员中心完全同构 */
.acct-profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.acct-info { flex: 1; min-width: 240px; }
.acct-info h3 { font-size: 20px; font-weight: 900; }
.acct-profile .avatar-big {
  width: 78px; height: 78px; border-radius: 24px;
  background: linear-gradient(135deg, #ffe29c, #ff9faa 55%, #b79dff);
  display: grid; place-items: center;
  color: #fff; font-size: 30px; font-weight: 900;
  box-shadow: 0 10px 22px rgba(255, 159, 170, .25);
  flex-shrink: 0;
}
.acct-info .uname-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-info .lv-badge {
  padding: 4px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .3px;
}
.acct-info .lv-badge.lvl-1 { background: linear-gradient(135deg, #e5e7ee, #cfd3de); color: #424658; }
.acct-info .lv-badge.lvl-2 { background: linear-gradient(135deg, #e5eefb, #cfdbf0); color: #1f4477; }
.acct-info .lv-badge.lvl-3 { background: linear-gradient(135deg, #fff4c9, #ffd770); color: #6a4300; }
.acct-info .lv-badge.lvl-4 { background: linear-gradient(135deg, #ffe2f3, #e5c8ff); color: #7239b6; }
.acct-info .lv-badge.lvl-5 { background: linear-gradient(135deg, #ffe29c, #ff9faa 50%, #b79dff); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.acct-info .badge-soft.hist { background: rgba(183,157,255,.15); color: #6340b5; border: 1px solid rgba(183,157,255,.3); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.acct-info .points-row {
  display: flex; align-items: baseline; gap: 16px; margin: 10px 0 8px; flex-wrap: wrap;
}
.acct-info .pts-big { font-size: 28px; font-weight: 900; color: var(--accent); line-height: 1; }
.acct-info .pts-big small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.acct-info .next-thr { font-size: 12.5px; color: var(--muted); }
.acct-info .progress-bar {
  height: 10px; width: 100%; background: rgba(138,143,163,.12); border-radius: 999px; overflow: hidden;
}
.acct-info .progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}
.privs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin-top: 18px;
}
.priv-card {
  padding: 12px 14px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.priv-card .icon {
  width: 36px; height: 36px; border-radius: 12px;
  background: rgba(138,143,163,.12);
  display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.priv-card .body b { font-size: 13px; font-weight: 800; display: block; }
.priv-card .body span { font-size: 11.5px; color: var(--muted); display: block; margin-top: 3px; }
.priv-card.unlocked .icon { background: #cff4da; color: #1f7a42; }
.priv-card.locked { opacity: .8; filter: saturate(.7); }
.priv-card.locked .icon { color: var(--muted); }

/* ---------- FUNC-3：创建/加入房间玻璃卡 ---------- */
.card-head-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.room-quick-card { margin-top: 16px; padding: 20px; }
.room-quick-card h2 { font-size: 17px; font-weight: 900; }
.rq-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 14px;
}
.rq-panel {
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 18px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.rq-panel h3 { font-size: 15px; font-weight: 900; letter-spacing: .2px; }
.rq-panel .room-seg { margin-bottom: 2px; }

/* 4 位码输入（复制自 room.css，保持 home 不依赖 room.css） */
.code-inputs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin: 6px 0 2px;
}
.code-inputs input {
  width: 100%; aspect-ratio: 1/1; text-align: center;
  font-size: 28px; font-weight: 900; letter-spacing: 0;
  border-radius: 16px;
  border: 2px solid rgba(138,143,163,.18);
  background: rgba(255,255,255,.55);
  color: var(--text); outline: none;
  transition: border-color .15s ease, transform .1s ease;
}
.code-inputs input:focus {
  border-color: var(--accent); background: #fff; transform: translateY(-1px);
}

/* ---------- FUNC-5：独立登录页 /login ---------- */
.login-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 18px 40px;
  position: relative; z-index: 1;
}
.login-hero {
  text-align: center;
  padding: 24px 10px 28px;
}
.login-hero .brand-big {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 28px; font-weight: 900; letter-spacing: 1px;
}
.login-hero .brand-big .logo {
  width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(135deg, #ffe29c, #ff9faa 55%, #b79dff);
  display: grid; place-items: center; font-size: 24px;
  color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.login-hero .sub { color: var(--muted); font-size: 14px; margin-top: 10px; }
.login-hero .quick-actions { margin-top: 14px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.login-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start;
}
.login-card { padding: 26px 24px; }
.login-card h2 { font-size: 18px; font-weight: 900; margin-bottom: 16px; }
.login-card .seg { margin-bottom: 14px; }
.login-perks { padding: 22px; }
.login-perks h2 { font-size: 17px; font-weight: 900; margin-bottom: 14px; }
.perks-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.perks-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 14px;
}
.perks-list .ic {
  width: 30px; height: 30px; border-radius: 10px;
  background: rgba(138,143,163,.14);
  display: grid; place-items: center; flex-shrink: 0; font-size: 16px;
}
.perks-list li b { font-size: 13px; font-weight: 800; display: block; }
.perks-list li span { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; }

.link { color: var(--accent); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- 响应式：≤720px 单列 ---------- */
@media (max-width: 720px) {
  .top-quick-nav { grid-template-columns: 1fr; }
  .rq-grid { grid-template-columns: 1fr; }
  .login-grid { grid-template-columns: 1fr; }
  .login-shell { padding: 22px 14px 34px; }
  .login-hero .brand-big { font-size: 22px; }
}

/* ---------- 小屏：顶部快捷导航 icon-text 换行优化 ---------- */
@media (max-width: 420px) {
  .qnav-tx small { white-space: normal; }
}

