/* public/styles.css - 猛聊 mobile-first PWA */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #1e293b;
  overscroll-behavior: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* App container: on desktop shows phone-frame, on mobile fills screen */
#app {
  width: 100vw;
  height: 100dvh;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  body { padding: 16px; }
  #app {
    width: 390px;
    height: 844px;
    border-radius: 38px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 0 8px #000, 0 0 0 10px #1a1a1a;
  }
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: #f8fafc;
  animation: fadeIn .25s ease;
}
.screen.active { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 4px; font-size: 13px; font-weight: 700; color: #1e293b;
}
.status-bar.on-dark { color: #fff; }

.scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scrollable::-webkit-scrollbar { display: none; }

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff; font-weight: 600; border: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px 0 rgba(124,58,237,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px 0 rgba(124,58,237,.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.input-field {
  background: #f1f5f9; border: 2px solid transparent;
  transition: all .2s ease; outline: none;
  font-size: 15px; color: #1e293b;
}
.input-field:focus { background: #fff; border-color: #8b5cf6; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; overflow: hidden;
  border-radius: 18px; flex-shrink: 0;
}

.chat-bubble-sent {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff; border-radius: 18px 18px 4px 18px;
}
.chat-bubble-received {
  background: #fff; color: #1e293b;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.badge {
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}

.bottom-nav {
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.nav-item {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 14px; font-size: 11px; font-weight: 500; color: #94a3b8;
  transition: color .2s ease;
}
.nav-item.active { color: #7c3aed; }
.nav-item.active i { transform: scale(1.1); }

.typing-indicator span {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #94a3b8; margin: 0 2px; animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.modal-overlay {
  position: absolute; inset: 0; z-index: 200;
  background: rgba(0,0,0,.5);
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: #fff; border-radius: 24px; padding: 24px;
  width: 86%; max-width: 320px; animation: modalSlide .25s ease;
  max-height: 80vh; overflow-y: auto;
}
@keyframes modalSlide {
  from { transform: scale(.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.toast {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.78); color: #fff; padding: 10px 18px;
  border-radius: 12px; font-size: 14px; z-index: 300;
  animation: toastIn .2s ease; pointer-events: none;
}
@keyframes toastIn { from { opacity: 0; } to { opacity: 1; } }

.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #94a3b8; padding: 60px 20px; text-align: center;
}
.empty-state i { font-size: 48px; margin-bottom: 12px; opacity: .5; }

/* hide scrollbars globally for app feel */
::-webkit-scrollbar { width: 0; height: 0; }

/* ================= 猛聊 v3 新增样式 ================= */
:root { --cw-fs: 15px; }

/* 全屏浮层（通话/录音/看图） */
.fs-overlay {
  position: absolute; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12, 10, 24, 0.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .2s ease;
}
#callOverlay { background: linear-gradient(165deg, #1e1b4b 0%, #4c1d95 45%, #831843 100%); }
#recorderOverlay { background: linear-gradient(165deg, #111827 0%, #1f2937 60%, #111827 100%); }
#lightbox { z-index: 600; background: rgba(0,0,0,.92); cursor: zoom-out; }

/* 聊天输入区 */
#chatComposer {
  background: #fff; border-top: 1px solid rgba(0,0,0,.06);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 6px;
}
#chatPanels { order: -1; } /* 面板显示在输入栏上方 */

/* + 面板 & 表情面板 */
.chat-panel-tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.chat-panel-tabs button {
  padding: 6px 14px; border-radius: 16px; border: none; background: #f1f5f9; color: #475569;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.chat-panel-tabs button.on { background: #ede9fe; color: #6d28d9; }
.panel-tile-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 2px; }
.panel-tile {
  width: 64px; padding: 8px 0 6px; border-radius: 12px; border: none; background: #f8fafc;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #334155;
}
.panel-tile i { font-size: 22px; color: #7c3aed; }
.panel-tile span { font-size: 11px; }
.panel-tile:active { transform: scale(.94); }

.emoji-grid { display: flex; flex-wrap: wrap; padding: 2px; }
.emoji-grid button {
  width: 11%; height: 38px; font-size: 24px; border: none; background: none; cursor: pointer;
  border-radius: 8px; line-height: 1; padding: 0;
}
.emoji-grid button:active { background: #f1f5f9; }
.big-emoji-grid { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; }
.big-emoji-grid button { font-size: 38px; width: 60px; height: 60px; border: none; background: #f8fafc; border-radius: 12px; cursor: pointer; }
.sticker-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 2px; align-items: center; }
.sticker-grid img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #f8fafc; cursor: pointer; }
.sticker-add {
  width: 64px; height: 64px; border-radius: 10px; border: 1px dashed #cbd5e1; background: #fff;
  color: #94a3b8; font-size: 22px; cursor: pointer;
}

/* 消息气泡字体跟随设置 */
.chat-bubble {
  padding: 8px 12px; word-break: break-word; line-height: 1.45;
  font-size: var(--cw-fs, 15px);
}
.chat-bubble-sent { background: var(--cw-sent-bg, linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%)); color: var(--cw-sent-text, #fff); border-radius: 18px 18px 4px 18px; }
.chat-bubble-received { background: var(--cw-recv-bg, #fff); color: var(--cw-recv-text, #1e293b); border-radius: 18px 18px 18px 4px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }

/* 聊天背景（颜色 / 自定义图片，由设置页写入 CSS 变量） */
#messagesList {
  background-color: var(--cw-chat-bg, transparent);
  background-image: var(--cw-chat-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 媒体消息 */
.msg-image { max-width: 220px; max-height: 240px; border-radius: 12px; display: block; cursor: zoom-in; background: #eef2ff; }
.msg-video { max-width: 240px; max-height: 260px; border-radius: 12px; display: block; background: #000; }
.msg-sticker { width: 110px; height: 110px; object-fit: contain; display: block; }
.msg-emoji { font-size: 60px; line-height: 1; }

/* 语音消息气泡 */
.voice-msg {
  display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none;
  min-width: 150px; max-width: 220px;
}
.voice-msg .v-play {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.25);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.voice-msg .v-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.voice-msg .v-dur { font-size: 12px; opacity: .9; }
.voice-msg .v-bar { width: 100%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.voice-msg .v-bar i { display: block; height: 100%; width: 0%; background: #fff; transition: width .1s linear; }
.bubble-received-skin .voice-msg .v-play { background: #ede9fe; color: #6d28d9; }
.bubble-received-skin .voice-msg .v-bar { background: #e2e8f0; }
.bubble-received-skin .voice-msg .v-bar i { background: #8b5cf6; }

/* 通话界面 */
#callAvatarBox .avatar { width: 96px; height: 96px; font-size: 36px; border-radius: 30px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
#callAvatarBox img.avatar { object-fit: cover; }
.call-pulse { animation: callPulse 1.4s ease infinite; }
@keyframes callPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); }
  50% { box-shadow: 0 0 0 18px rgba(255,255,255,0); }
}

/* 图片/文件通用 */
.avatar-img { object-fit: cover; }
.chat-bubble.media-bubble {
  background: transparent; box-shadow: none; padding: 4px;
}

/* ================= 猛聊 v3：底部导航调大 + 朋友圈 ================= */
.bottom-nav { padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); }
.nav-item { font-size: 14px; padding: 6px 18px; gap: 4px; }
.nav-item i { font-size: 24px; }
.nav-item.active i { transform: scale(1.08); }

/* 朋友圈卡片 */
.mom-card {
  background: #fff; border-radius: 16px; padding: 14px 14px 8px;
  margin: 0 12px 12px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.mom-head { display: flex; gap: 10px; align-items: center; }
.mom-head .mom-name { font-weight: 700; color: #1e293b; font-size: 15px; }
.mom-head .mom-time { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.mom-text { font-size: 15px; line-height: 1.55; color: #1e293b; margin: 8px 0; white-space: pre-wrap; word-break: break-word; }
.mom-imgs { display: flex; flex-wrap: wrap; gap: 5px; }
.mom-imgs img { width: 30%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; cursor: zoom-in; background: #f1f5f9; }
.mom-imgs.mom-1 img { width: 58%; }
.mom-toolbar { display: flex; align-items: center; gap: 18px; padding: 8px 2px 4px; }
.mom-toolbar button {
  border: none; background: none; cursor: pointer; color: #64748b;
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px;
}
.mom-toolbar button.liked { color: #e11d48; }
.mom-toolbar button.liked i { color: #e11d48; }
.mom-comments { background: #f7f7f9; border-radius: 10px; padding: 8px 10px; margin: 2px 0 8px; }
.mom-comment { font-size: 14px; line-height: 1.5; padding: 2px 0; word-break: break-word; }
.mom-comment b { color: #7c3aed; font-weight: 600; }
.mom-comment .del-c { color: #94a3b8; font-size: 11px; margin-left: 6px; cursor: pointer; }
.mom-comment-input {
  display: flex; gap: 8px; padding: 6px 0 10px; align-items: center;
}
.mom-comment-input input {
  flex: 1; min-width: 0; background: #f1f5f9; border: none; border-radius: 16px;
  padding: 8px 12px; font-size: 14px; outline: none;
}
.mom-empty { text-align: center; color: #94a3b8; padding: 60px 20px; font-size: 14px; }
.mom-edit-preview { position: relative; width: 96px; height: 96px; }
.mom-edit-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.mom-edit-preview i {
  position: absolute; top: -7px; right: -7px; color: #ef4444; background: #fff;
  border-radius: 50%; font-size: 16px; cursor: pointer;
}

/* ================= 输入栏按钮：与输入框等比 ================= */
.composer-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none; background: #f1f5f9;
  color: #475569; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .15s ease;
}
.composer-btn i { font-size: 19px; line-height: 1; }
.composer-btn:active { transform: scale(.94); }
.composer-btn.composer-send {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: #fff;
  box-shadow: 0 3px 10px rgba(124,58,237,.35);
}
.composer-btn.composer-send i { font-size: 17px; }

/* ================= 夜间模式 ================= */
body[data-theme="dark"] { background: linear-gradient(135deg, #12141c 0%, #1a1430 100%); }
body[data-theme="dark"] #app { background: #0f1115; }
body[data-theme="dark"] .screen { background: #0f1115; }

/* 卡片 / 容器（覆盖现有内联白底与浅灰底） */
body[data-theme="dark"] [style*="background:#fff"],
body[data-theme="dark"] [style*="background: #fff"] { background: #171a21 !important; }
body[data-theme="dark"] [style*="background:#f8fafc"],
body[data-theme="dark"] [style*="background:#f1f5f9"],
body[data-theme="dark"] [style*="background:#f7f7f9"] { background: #1f232c !important; }

/* 文字色 */
body[data-theme="dark"] [style*="color:#1e293b"] { color: #e5e7eb !important; }
body[data-theme="dark"] [style*="color:#475569"] { color: #cbd5e1 !important; }
body[data-theme="dark"] [style*="color:#64748b"] { color: #94a3b8 !important; }
body[data-theme="dark"] [style*="color:#94a3b8"] { color: #8792a4 !important; }
body[data-theme="dark"] [style*="border-bottom:1px solid #f1f5f9"] { border-bottom-color: rgba(255,255,255,.08) !important; }
body[data-theme="dark"] [style*="border-top:1px solid rgba(0,0,0,.05)"],
body[data-theme="dark"] [style*="border-top:1px solid rgba(0,0,0,.06)"] { border-top-color: rgba(255,255,255,.07) !important; }

/* 顶栏 / 底栏 / 输入区 */
body[data-theme="dark"] .glass {
  background: rgba(15,17,21,.92); border-bottom-color: rgba(255,255,255,.07);
}
body[data-theme="dark"] .glass h1, body[data-theme="dark"] .glass h2 { color: #f1f5f9 !important; }
body[data-theme="dark"] .bottom-nav {
  background: rgba(17,19,24,.95); border-top-color: rgba(255,255,255,.07);
}
body[data-theme="dark"] .nav-item { color: #8b95a5; }
body[data-theme="dark"] .nav-item.active { color: #a78bfa; }
body[data-theme="dark"] #chatComposer { background: #111318; border-top-color: rgba(255,255,255,.07); }
body[data-theme="dark"] #chatPanels { background: #111318 !important; border-top-color: rgba(255,255,255,.07) !important; }
body[data-theme="dark"] #messagesList { background-color: var(--cw-chat-bg, #0f1115); }
body[data-theme="dark"] .input-field { background: #1f232c !important; color: #e5e7eb; }
body[data-theme="dark"] .input-field::placeholder { color: #6b7688; }
body[data-theme="dark"] .composer-btn { background: #1f232c; color: #cbd5e1; }

/* 气泡 */
body[data-theme="dark"] .chat-bubble-received { background: var(--cw-recv-bg, #232833); color: var(--cw-recv-text, #e5e7eb); box-shadow: none; }
body[data-theme="dark"] .bubble-received-skin .voice-msg .v-play { background: #2f3542; color: #c4b5fd; }
body[data-theme="dark"] .bubble-received-skin .voice-msg .v-bar { background: #3a4150; }

/* 表情 / 加号面板 */
body[data-theme="dark"] .panel-tile { background: #1f232c; color: #cbd5e1; }
body[data-theme="dark"] .panel-tile i { color: #a78bfa; }
body[data-theme="dark"] .big-emoji-grid button { background: #1f232c; }
body[data-theme="dark"] .sticker-add { background: #171a21; border-color: #3a4150; }
body[data-theme="dark"] .chat-panel-tabs button { background: #1f232c; color: #cbd5e1; }
body[data-theme="dark"] .chat-panel-tabs button.on { background: #2a2350; color: #c4b5fd; }

/* 弹窗 / 提示 / 空状态 */
body[data-theme="dark"] .modal-content { background: #171a21; color: #e5e7eb; }
body[data-theme="dark"] .modal-content h3 { color: #f1f5f9 !important; }
body[data-theme="dark"] .empty-state { color: #7b8698; }
body[data-theme="dark"] .toast { background: rgba(255,255,255,.14); color: #f8fafc; }

/* 朋友圈 */
body[data-theme="dark"] .mom-card { background: #171a21; box-shadow: none; }
body[data-theme="dark"] .mom-head .mom-name { color: #e5e7eb; }
body[data-theme="dark"] .mom-text { color: #dfe3ea; }
body[data-theme="dark"] .mom-comments { background: #1f232c; }
body[data-theme="dark"] .mom-comment { color: #cbd5e1; }
body[data-theme="dark"] .mom-comment b { color: #c4b5fd; }
body[data-theme="dark"] .mom-comment-input input { background: #1f232c !important; color: #e5e7eb; }
body[data-theme="dark"] #momentText { background: transparent; color: #e5e7eb; }
body[data-theme="dark"] .mom-empty { color: #7b8698; }

/* ================= 游戏中心（v2：全屏自适应 / 大按键 / 动画） ================= */
#gamesOverlay {
  position: absolute; inset: 0; z-index: 450; display: none;
  flex-direction: column; background: #0b0e14; color: #e5e7eb;
}
.game-header {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px;
  background: linear-gradient(180deg, rgba(30,33,43,.98), rgba(17,19,24,.95));
  border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0;
}
.game-icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: none; cursor: pointer;
  background: rgba(255,255,255,.08); color: #cbd5e1; font-size: 16px; flex-shrink: 0;
}
.game-icon-btn:active { transform: scale(.94); }
.game-body {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.game-hub { display: flex; flex-direction: column; gap: 12px; }
.game-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 16px; cursor: pointer;
  background: linear-gradient(135deg, rgba(60,66,86,.55), rgba(28,31,41,.9));
  border: 1px solid rgba(255,255,255,.07); border-radius: 18px; transition: transform .15s ease;
}
.game-card:active { transform: scale(.98); }
.game-card-icon {
  width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 23px; color: #fff; flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.game-card-main { flex: 1; min-width: 0; }
.game-card-title { font-size: 17px; font-weight: 700; color: #f8fafc; }
.game-card-desc { font-size: 12px; color: #9aa4b2; margin-top: 4px; }
.game-card-play { color: #a78bfa; font-size: 18px; }
.game-tip {
  margin-top: 6px; font-size: 12px; color: #6b7688; line-height: 1.9;
  background: rgba(255,255,255,.03); border-radius: 12px; padding: 10px 12px;
}
.game-tip i { color: #a78bfa; margin-right: 6px; }

/* 游戏主体：占满剩余高度，不留空白 */
.game-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.game-hud {
  display: flex; gap: 8px; align-items: stretch; flex-shrink: 0;
  background: linear-gradient(180deg, rgba(38,42,55,.85), rgba(24,27,36,.85));
  border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 8px 10px;
}
.hud-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: 1; min-width: 0; }
.hud-item span { font-size: 11px; color: #93a0b3; }
.hud-item b { font-size: 17px; color: #f8fafc; font-variant-numeric: tabular-nums; }
.hud-next { flex: 1.2; }
.hud-next canvas { width: 76px; height: 52px; border-radius: 8px; background: rgba(0,0,0,.28); }
.game-canvas-wrap {
  flex: 1; min-height: 0; position: relative; display: flex; align-items: center;
  justify-content: center; border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.35);
}
.game-canvas-wrap canvas { display: block; border-radius: 14px; }
.game-controls { flex-shrink: 0; }
.ctrl-row { display: flex; gap: 8px; margin-top: 8px; }
.game-btn {
  flex: 1; border: none; border-radius: 14px; cursor: pointer; color: #e5e7eb;
  background: linear-gradient(180deg, #2b3140, #1e232e);
  box-shadow: 0 3px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 20px; transition: transform .08s ease;
}
.game-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.game-btn span { font-size: 12px; font-weight: 600; }
.game-btn span b { color: #facc15; }
.game-btn.ctrl-lg { height: 58px; }
.game-btn.ctrl-primary { background: linear-gradient(180deg, #8b5cf6, #6d28d9); color: #fff; }
.game-hint { flex-shrink: 0; font-size: 11px; color: #7a8698; text-align: center; line-height: 1.5; padding: 2px 0 0; }

/* 覆盖层提示 / 弹窗 */
.game-msg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8,10,15,.82); backdrop-filter: blur(3px); color: #f1f5f9; text-align: center; padding: 12px;
}
.game-msg-inner {
  background: linear-gradient(180deg, #232938, #171b26); border-radius: 18px; padding: 22px 20px;
  min-width: 230px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 16px 50px rgba(0,0,0,.6);
}
.game-msg-flash { background: linear-gradient(135deg, #8b5cf6, #6d28d9); font-weight: 700; min-width: 0; padding: 14px 20px; }
.game-primary-btn {
  width: 100%; padding: 13px; border: none; border-radius: 13px; cursor: pointer;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: #fff; font-weight: 700;
  margin-top: 8px; font-size: 15px;
}
.game-ghost-btn {
  width: 100%; padding: 12px; border: none; border-radius: 13px; cursor: pointer;
  background: rgba(255,255,255,.09); color: #cbd5e1; font-weight: 600; margin-top: 8px; font-size: 14px;
}
.combo-pop {
  position: absolute; left: 50%; top: 14%; transform: translateX(-50%) scale(.7);
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
  font-weight: 800; font-size: 22px; color: #facc15; text-shadow: 0 3px 10px rgba(0,0,0,.8);
  pointer-events: none; white-space: nowrap;
}
.combo-pop.show { opacity: 1; transform: translateX(-50%) scale(1.12); }
.level-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.level-btn {
  padding: 10px 4px; border: none; border-radius: 11px; cursor: pointer;
  background: linear-gradient(180deg, #2b3140, #1e232e); color: #e5e7eb;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.level-btn b { font-size: 15px; }
.level-btn span { font-size: 10px; color: #facc15; }
.level-btn.locked { opacity: .45; cursor: not-allowed; }
.level-btn.locked span { color: #94a3b8; }
