/* ============================================================
   Voyager · kardsAI — 全局样式(白色主调 / 蓝色按钮 / 神经网背景)
   ============================================================ */
:root {
  --blue: #1d4ed8;
  --blue-2: #3b82f6;
  --blue-soft: #eff6ff;
  --blue-line: #dbe7ff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e6ecf7;
  --bg: #ffffff;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(30, 64, 175, 0.08);
  --shadow-lg: 0 20px 60px rgba(30, 64, 175, 0.16);
  --elite: #d9a013;   /* 金 */
  --special: #8fa3b8; /* 银 */
  --limited: #c07a3f; /* 铜 */
  --standard: #7c8ba0;/* 铁 */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* ---- 神经网背景 ---- */
#netbg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ---- 通用 ---- */
.hidden { display: none !important; }
.flex1 { flex: 1; }
.row { display: flex; align-items: center; }
.gap8 { gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px; padding: 8px 16px;
  font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45); filter: brightness(1.04); }
.btn.ghost { background: #fff; color: var(--blue); border-color: var(--blue-line); }
.btn.ghost:hover { background: var(--blue-soft); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn.wide { width: 100%; padding: 11px 16px; font-size: 15px; }
.sponsor-top { padding: 7px 14px; }

.field {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--blue-line); border-radius: 10px;
  font-size: 14px; color: var(--ink); background: #fff; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.field:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.field-label { display: block; font-size: 12.5px; color: var(--ink-2); margin: 12px 0 6px; font-weight: 600; }

/* ---- 顶栏 ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-mark { filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.3)); }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: 0.5px; }
.brand-sub {
  font-size: 11px; font-weight: 800; color: var(--blue);
  background: var(--blue-soft); border: 1px solid var(--blue-line);
  padding: 2px 8px; border-radius: 999px; letter-spacing: 0.8px;
}
.tabs { display: flex; gap: 4px; background: #f3f6fc; padding: 4px; border-radius: 12px; }
.tab {
  border: none; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px;
  padding: 7px 16px; border-radius: 9px; transition: all 0.15s ease;
}
.tab:hover { color: var(--blue); }
.tab.active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(30, 64, 175, 0.12); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mode-switch {
  display: flex; gap: 2px; background: #eef2fb; border: 1px solid var(--blue-line);
  padding: 3px; border-radius: 999px;
}
.mode-btn {
  border: none; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; transition: all 0.15s ease;
}
.mode-btn:hover { color: var(--blue); }
.mode-btn.active { background: var(--blue); color: #fff; box-shadow: 0 3px 10px rgba(37, 99, 235, 0.4); }
.userbox { display: flex; align-items: center; gap: 8px; }
.user-email { font-size: 13px; color: var(--ink-2); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #f1f5fd; border: 1px solid var(--blue-line); padding: 6px 12px; border-radius: 999px; }
.pulse { animation: pulseGlow 2.2s infinite; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

/* ---- 视图 ---- */
.views { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 18px 20px 90px; }
.view { display: none; }
.view.active { display: block; }

/* ---- AI 对话页 ---- */
.chat-wrap {
  max-width: 920px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; height: calc(100vh - 200px); min-height: 520px;
}
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfdff, #fff);
}
.ai-avatar {
  width: 44px; height: 44px; flex: none; border-radius: 13px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  padding: 8px; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.chat-ai-name { font-weight: 800; font-size: 16.5px; letter-spacing: 0.3px; }
.chat-ai-name em {
  font-style: normal; font-size: 11px; color: var(--blue); background: var(--blue-soft);
  border: 1px solid var(--blue-line); padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px;
}
.chat-ai-sub { font-size: 12px; color: var(--ink-3); }
.chat-stat { margin-left: auto; font-size: 12.5px; color: var(--ink-2); background: #f6f9ff; border: 1px solid var(--blue-line); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.chat-stat b { color: var(--blue); font-size: 14px; }
.stat-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-right: 6px; }
.stat-dot.low { background: #f59e0b; }

.chat-body { flex: 1; overflow-y: auto; padding: 18px 18px 8px; scroll-behavior: smooth; }
.banner-banned {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 12px;
  padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px;
}
.chat-log { display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 10px; max-width: 88%; animation: msgIn 0.25s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.assistant { align-self: flex-start; }
.msg .avatar {
  width: 34px; height: 34px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff;
}
.msg.user .avatar { background: linear-gradient(135deg, #60a5fa, #3b82f6); font-size: 13px; }
.msg.assistant .avatar {
  background: linear-gradient(135deg, #2563eb, #1e40af); font-size: 15px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.msg .bubble {
  background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px;
  padding: 10px 14px; font-size: 14.5px; word-break: break-word; white-space: pre-wrap;
}
.msg.user .bubble {
  background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border: none;
  border-radius: 14px 4px 14px 14px; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}
.msg .who { font-size: 11px; color: var(--ink-3); margin-bottom: 3px; padding-left: 2px; }
.msg.user .who { text-align: right; padding-right: 2px; }
.bubble .curs { display: inline-block; width: 7px; height: 15px; background: var(--blue); vertical-align: -2px; margin-left: 2px; animation: blink 0.9s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bubble.card-snippet { border: 1px dashed var(--blue-line); background: var(--blue-soft); }
.msg-system { align-self: center; font-size: 12.5px; color: var(--ink-3); background: #f6f8fd; border: 1px solid var(--line); padding: 5px 14px; border-radius: 999px; }
.msg-refusal { align-self: center; max-width: 84%; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13.5px; padding: 8px 16px; border-radius: 12px; text-align: center; }

.typing { display: flex; gap: 5px; padding: 6px 2px; align-items: center; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: #93b4f5; animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-6px); opacity: 1; } }

.composer { border-top: 1px solid var(--line); padding: 10px 16px 12px; background: #fff; }
.guess-panel { margin-bottom: 8px; }
.guess-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #f6f9ff; border: 1px solid var(--blue-line); border-radius: 12px; padding: 8px 12px; }
.guess-hint { font-size: 13px; color: var(--ink-2); flex: 1; min-width: 180px; }
.try-dots { display: flex; gap: 5px; }
.try-dots i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--blue-2); background: #fff; }
.try-dots i.used { background: var(--blue-2); }
.try-dots i.used.win { background: #22c55e; border-color: #22c55e; }
.composer-row { display: flex; align-items: flex-end; gap: 10px; background: #fff; border: 1.5px solid var(--blue-line); border-radius: 16px; padding: 8px 10px; transition: border-color 0.15s, box-shadow 0.15s; }
.composer-row:focus-within { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13); }
#chatInput {
  flex: 1; border: none; outline: none; resize: none; font-size: 14.5px; line-height: 1.5;
  max-height: 130px; min-height: 26px; padding: 4px 2px; color: var(--ink); background: transparent;
}
#chatInput:disabled { color: var(--ink-3); }
.upload-btn {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none;
  border-radius: 12px; color: var(--ink-3); cursor: pointer; transition: all 0.15s ease;
}
.upload-btn:hover { color: var(--blue); background: var(--blue-soft); }
.upload-btn.busy { opacity: 0.5; pointer-events: none; }
.send-btn { height: 40px; border-radius: 12px; padding: 0 16px; flex: none; }
.composer-note { text-align: center; font-size: 11.5px; color: var(--ink-3); margin-top: 7px; }

/* ---- 浏览页 ---- */
.browse-head { margin-bottom: 14px; }
.browse-head h1 { font-size: 21px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.count-total { font-size: 12.5px; color: var(--ink-3); font-weight: 500; background: #f1f5fd; border-radius: 999px; padding: 2px 12px; border: 1px solid var(--blue-line); }
.browse-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.searchbox { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--blue-line); border-radius: 12px; padding: 9px 14px; color: var(--ink-3); }
.searchbox:focus-within { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12); }
.searchbox input { border: none; outline: none; flex: 1; font-size: 14px; background: transparent; }
.filter-count { background: var(--blue); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 7px; }
.result-note { font-size: 12.5px; color: var(--ink-3); margin-left: auto; }

/* 筛选抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.35); z-index: 80; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 320px; max-width: 90vw; background: #fff; z-index: 81;
  transform: translateX(102%); transition: transform 0.24s ease; box-shadow: -12px 0 40px rgba(15, 23, 42, 0.15);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; font-weight: 800; font-size: 17px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 8px 20px 20px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.filter-group { margin: 14px 0; }
.filter-group label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: block; margin-bottom: 6px; }
.filter-group select { width: 100%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--blue-line); background: #fff; color: var(--ink-2); border-radius: 999px;
  padding: 5px 12px; font-size: 12.5px; transition: all 0.12s ease;
}
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.rarity-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px;
  padding: 4px 2px;
}
.card-tile {
  position: relative; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); background: #fff; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  animation: msgIn 0.3s ease;
}
.card-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-line); }
.card-tile .art { width: 100%; aspect-ratio: 5/7; object-fit: cover; display: block; background: #eef2f9; }
.card-tile .cost {
  position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--blue); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.card-tile .meta { padding: 7px 9px 9px; }
.card-tile .tname { font-size: 12.8px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-tile .tsub { font-size: 11px; color: var(--ink-3); margin-top: 2px; display: flex; justify-content: space-between; gap: 4px; }
.card-tile .tstat { font-size: 11.5px; color: var(--ink-2); font-weight: 700; }
.rar-elite { border-color: var(--elite); }
.rar-special { border-color: var(--special); }
.rar-limited { border-color: var(--limited); }
.rar-standard { border-color: #c6cdd8; }
.tile-frame { position: absolute; inset: 0; border-radius: 10px; border: 2px solid transparent; pointer-events: none; }
.grid-end { text-align: center; color: var(--ink-3); font-size: 13px; padding: 22px 0; }
.empty { text-align: center; color: var(--ink-3); padding: 60px 0; font-size: 14px; }

/* ---- 解析页 ---- */
.deck-head h1 { font-size: 21px; margin: 6px 0 4px; }
.deck-head .sub { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; margin: 6px 0 14px; }
.deck-input-row { display: flex; gap: 10px; max-width: 860px; }
#deckCode { flex: 1; }
.deck-err { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 8px 14px; margin-top: 12px; font-size: 13.5px; max-width: 860px; }
.deck-loading { display: flex; align-items: center; gap: 10px; color: var(--ink-2); margin-top: 14px; font-size: 14px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--blue-line); border-top-color: var(--blue); animation: rot 0.8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.deck-result { margin-top: 18px; }
.deck-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.deck-info { flex: 1; font-size: 13.5px; color: var(--ink-2); }
.deck-info b { color: var(--ink); }
.deck-btns { display: flex; gap: 10px; }
.deck-preview { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; display: inline-block; max-width: 100%; overflow-x: auto; }
.deck-preview img { display: block; max-height: 78vh; max-width: 100%; border-radius: 8px; }
.deck-tip { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); background: #f6f9ff; border: 1px dashed var(--blue-line); border-radius: 10px; padding: 10px 14px; max-width: 900px; }

/* ---- 弹窗 ---- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, 0.4);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity 0.18s ease; pointer-events: none;
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  width: 460px; max-width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 26px 26px 24px; position: relative; transform: translateY(10px) scale(0.98); transition: transform 0.18s ease;
}
.modal-mask.open .modal { transform: none; }
.modal.small { width: 400px; }
.modal.center { text-align: center; }
.modal-x {
  position: absolute; top: 12px; right: 12px; border: none; background: #f1f5fd; color: var(--ink-2);
  width: 30px; height: 30px; border-radius: 9px; font-size: 13px; transition: all 0.12s;
}
.modal-x:hover { background: var(--blue); color: #fff; }
.modal-title { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.modal-sub { color: var(--ink-2); font-size: 13.5px; margin: 10px 0; line-height: 1.7; }
.modal-btns { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.tabs-mini { display: flex; background: #f3f6fc; border-radius: 11px; padding: 4px; margin: 14px 0 6px; gap: 4px; }
.mini-tab { flex: 1; border: none; background: transparent; padding: 8px 6px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); transition: all 0.13s; }
.mini-tab.active { background: #fff; color: var(--blue); box-shadow: 0 2px 6px rgba(30, 64, 175, 0.12); }
.auth-pane { padding: 6px 0; }
.auth-msg { font-size: 12.5px; min-height: 20px; margin: 6px 0; color: #b91c1c; }
.auth-msg.ok { color: #15803d; }
.auth-extra { font-size: 11.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.7; background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.quota-icon { font-size: 44px; margin: 4px 0 6px; }
.quota-title { font-size: 19px; margin: 6px 0 4px; }
.quota-icon.warn { font-size: 36px; }
.quota-icon.ban { font-size: 36px; }

/* ---- 赞助弹窗 ---- */
.sponsor-body { display: flex; gap: 22px; align-items: flex-start; }
.sponsor-txt h2 { margin: 0 0 8px; font-size: 18px; }
.sponsor-txt p { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; margin: 8px 0; text-align: justify; }
.sponsor-ps { font-size: 12px !important; color: var(--ink-3); text-align: center !important; }
.sponsor-qr-box { flex: none; text-align: center; }
.sponsor-qr { width: 190px; height: 190px; border-radius: 12px; border: 1px solid var(--line); }
.sponsor-thanks { font-size: 12px; color: var(--ink-3); margin-top: 8px; }

/* ---- 卡牌详情弹窗 ---- */
.modal.card-detail { width: 640px; }
.card-detail-body { display: flex; gap: 18px; }
.cd-art { flex: none; width: 220px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.cd-art img { width: 100%; display: block; }
.cd-info { flex: 1; min-width: 0; }
.cd-name { font-size: 19px; font-weight: 800; line-height: 1.35; }
.cd-name-en { font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.4px; margin: 2px 0 8px; }
.cd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cd-tag { font-size: 11.5px; font-weight: 700; border-radius: 7px; padding: 3px 9px; background: #f1f5fd; color: var(--blue); border: 1px solid var(--blue-line); }
.cd-tag.cost { background: var(--blue); color: #fff; border-color: var(--blue); }
.cd-desc { font-size: 13.8px; color: var(--ink-2); background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; line-height: 1.8; }
.cd-act { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- toast ---- */
.toast-wrap { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(15, 23, 42, 0.92); color: #fff; font-size: 13.5px; padding: 9px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); animation: msgIn 0.2s ease; max-width: 80vw; }
.toast.err { background: #b91c1c; }

.foot { position: relative; z-index: 1; text-align: center; font-size: 12px; color: var(--ink-3); padding: 10px 20px 26px; }

/* ---- 响应式 ---- */
@media (max-width: 860px) {
  .topbar-inner { gap: 8px; padding: 8px 12px; }
  .brand-name { font-size: 18px; }
  .brand-sub { display: none; }
  .tabs { order: 3; width: 100%; }
  .tab { flex: 1; }
  .mode-btn { padding: 5px 10px; font-size: 12px; }
  .views { padding: 12px 12px 80px; }
  .chat-wrap { height: calc(100vh - 176px); }
  .msg { max-width: 96%; }
  .chat-stat { display: none; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
  .card-detail-body { flex-direction: column; align-items: center; }
  .cd-art { width: 200px; }
  .sponsor-body { flex-direction: column-reverse; align-items: center; }
}
