/* ==========================================================================
   jackane宇 · 第 2 期硬核卡店大亨样式（拍卖行 + 单卡出售 + 12盒端箱 + 神秘福袋 + 每日行情）(sprint2-tycoon.css)
   兼容暗夜/白昼双主题与安卓微信 XWeb GPU 零 backdrop-filter 规范
   ========================================================================== */

/* ---------- 1. PC 桌面端顶栏精致玩法大厅入口胶囊（手机端自动隐藏，手机由底部4格栏直达） ---------- */
.desktop-hub-btn {
  --key-lip: rgba(2, 6, 16, 0.78);
  position: relative;
  pointer-events: auto;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--chrome-surface);
  border: 1px solid rgba(245, 200, 76, 0.45);
  color: #fde68a;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2.5px 0 var(--key-lip),
    0 8px 18px -6px rgba(0, 0, 0, 0.5);
  transition: border-color 0.16s ease, color 0.16s ease;
}

/* 原创 1.6px 线性 SVG 图标通用行内排布 */
.inline-ico-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-ico-label .ptcg-ico {
  flex-shrink: 0;
}

.bidder-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  margin-right: 5px;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

html[data-studio-light="day"] .bidder-emblem {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(100, 116, 139, 0.25);
}

.stock-clarity {
  color: #7dd3fc !important;
  font-weight: 600;
}

html[data-studio-light="day"] .stock-clarity {
  color: #0369a1 !important;
}

.desktop-hub-btn:hover {
  border-color: #facc15;
  color: #fffbeb;
}

html[data-studio-light="day"] .desktop-hub-btn {
  --key-lip: rgba(100, 116, 139, 0.36);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.44);
}

/* 3D 检视台两步确认防误售高亮态 */
#showcaseSellBtn.confirm-armed {
  background: linear-gradient(135deg, #dc2626, #ea580c) !important;
  color: #ffffff !important;
  border-color: #fca5a5 !important;
}

/* ---------- 2. 每日行情快讯条（账本 & 拍卖行 & 玩法大厅通用） ---------- */
.news-inline-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-radius: 13px;
  background: rgba(245, 200, 76, 0.08);
  border: 1px solid rgba(245, 200, 76, 0.28);
}

html[data-studio-light="day"] .news-inline-strip {
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(217, 119, 6, 0.28);
}

.news-inline-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.news-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: #fde68a;
}

html[data-studio-light="day"] .news-date-chip {
  color: #92400e;
}

.news-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.news-mini-pill.up {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

.news-mini-pill.down {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
}

html[data-studio-light="day"] .news-mini-pill.up { color: #047857; }
html[data-studio-light="day"] .news-mini-pill.down { color: #be123c; }

.news-mini-btn {
  height: 29px !important;
  padding: 0 11px !important;
  font-size: 11.5px !important;
}

.news-board-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.news-board-head strong {
  display: block;
  font-size: 15px;
}

.news-board-head span {
  font-size: 12px;
  color: #94a3b8;
}

.news-event-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.news-event-card {
  padding: 13px;
  border-radius: 15px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.news-event-card.up {
  border-color: rgba(16, 185, 129, 0.42);
  background: linear-gradient(150deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.35));
}

.news-event-card.down {
  border-color: rgba(244, 63, 94, 0.42);
  background: linear-gradient(150deg, rgba(244, 63, 94, 0.12), rgba(15, 23, 42, 0.35));
}

html[data-studio-light="day"] .news-event-card {
  background: rgba(15, 23, 42, 0.03);
}

.news-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.news-event-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
}

.news-event-pct {
  font-size: 16px;
  font-weight: 900;
}

.news-event-card.up .news-event-pct { color: #34d399; }
.news-event-card.down .news-event-pct { color: #fb7185; }
html[data-studio-light="day"] .news-event-card.up .news-event-pct { color: #047857; }
html[data-studio-light="day"] .news-event-card.down .news-event-pct { color: #be123c; }

.news-event-card h4 {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.35;
}

.news-event-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
}

html[data-studio-light="day"] .news-event-card p { color: #475569; }

.news-event-pct {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* 今日行情时间线日志（最近 6 期，不可回退防套利） */
.news-log-box {
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

html[data-studio-light="day"] .news-log-box {
  background: rgba(15, 23, 42, 0.025);
}

.news-log-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #e2e8f0;
}

html[data-studio-light="day"] .news-log-title {
  color: #0f172a;
}

.news-log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.news-log-row.is-current {
  border-color: rgba(245, 200, 76, 0.45);
  background: rgba(245, 200, 76, 0.09);
}

html[data-studio-light="day"] .news-log-row {
  background: rgba(255, 255, 255, 0.72);
}

html[data-studio-light="day"] .news-log-row.is-current {
  background: rgba(245, 158, 11, 0.1);
}

.news-log-meta {
  font-size: 11.5px;
  color: #94a3b8;
}

.news-log-meta b {
  color: #fde68a;
}

html[data-studio-light="day"] .news-log-meta {
  color: #475569;
}

html[data-studio-light="day"] .news-log-meta b {
  color: #92400e;
}

.news-log-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

/* ---------- 3. 评级砖拍卖行 & 单卡自由寄售弹窗 (#auctionModal) ---------- */
.tycoon-sheet {
  width: min(880px, 95vw);
  max-height: 90svh;
  overflow: hidden;
}

.tycoon-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 18px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.tycoon-empty-card {
  padding: 26px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.tycoon-empty-card strong { font-size: 15px; }
.tycoon-empty-card p { margin: 0; font-size: 12.5px; color: #94a3b8; max-width: 440px; line-height: 1.5; }

.tycoon-filter-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.tycoon-soft-tip {
  margin: 0;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  font-size: 12px;
  line-height: 1.45;
}

html[data-studio-light="day"] .tycoon-soft-tip {
  color: #0369a1;
}

.auction-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auction-item-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
}

html[data-studio-light="day"] .auction-item-card {
  background: rgba(15, 23, 42, 0.035);
}

.auction-item-thumb {
  position: relative;
  width: 74px;
  flex-shrink: 0;
  cursor: pointer;
}

.auction-item-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 500 / 698;
  object-fit: cover;
  border-radius: 8px;
}

.auction-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auction-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.auction-item-head strong {
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-cert-no {
  font-size: 10.5px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.auction-item-meta {
  font-size: 11.5px;
  color: #94a3b8;
}

.price-trend-tag {
  font-style: normal;
  font-weight: 800;
  margin-left: 4px;
}

.price-trend-tag.up { color: #34d399; }
.price-trend-tag.down { color: #fb7185; }

.single-copy-badge {
  color: #fde047;
  font-weight: 800;
}

html[data-studio-light="day"] .single-copy-badge { color: #b45309; }

.auction-item-val {
  font-size: 12px;
  color: #cbd5e1;
}

.auction-item-val strong {
  font-size: 15px;
  color: #fde68a;
}

html[data-studio-light="day"] .auction-item-val { color: #334155; }
html[data-studio-light="day"] .auction-item-val strong { color: #b45309; }

.auction-item-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.auction-item-actions .dock-btn {
  height: 31px;
  padding: 0 10px;
  font-size: 11.5px;
  border-radius: 10px;
  flex: 1 1 auto;
  min-width: max-content;
}

/* 拍卖行 3 位藏家实时举牌剧场 */
.auction-live-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auction-live-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(245, 200, 76, 0.13), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(245, 200, 76, 0.42);
}

html[data-studio-light="day"] .auction-live-hero {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.92));
}

.auction-live-thumb {
  position: relative;
  width: 116px;
  flex-shrink: 0;
}

.auction-live-thumb img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.auction-live-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auction-live-meta h3,
.auction-live-meta p {
  margin: 0;
}

.auction-live-price {
  font-size: 30px;
  font-weight: 900;
  color: #34d399;
}

.auction-live-price small.up { color: #fde047; font-size: 14px; }
.auction-live-price small.down { color: #fb7185; font-size: 14px; }

.auction-bid-feed {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auction-bid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 12.5px;
}

.auction-bid-row.is-latest {
  border-color: #facc15;
  background: rgba(245, 200, 76, 0.13);
}

.bidder-who em {
  font-style: normal;
  font-size: 11px;
  color: #94a3b8;
  margin-left: 5px;
}

.bidder-say {
  flex: 1;
  color: #cbd5e1;
  text-align: center;
}

html[data-studio-light="day"] .bidder-say { color: #334155; }

.bidder-amt {
  font-size: 15px;
  color: #34d399;
  white-space: nowrap;
}

.auction-live-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 4. 12 盒整箱端箱 + 顶部常驻防滚动 3 轨直播间弹幕 + Canvas 走势图 (#caseOpenModal) ---------- */
.case-danmaku-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 13px;
  font-weight: 700;
}

/* 顶部独立常驻弹幕舱：固定在 .binder-head 与 #caseOpenBody 之间，手机下滑绝不被卷走 */
.case-danmaku-dock {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(120deg, #0b1224, #17183b 55%, #0c172b);
  contain: layout paint;
}

.case-danmaku-dock[hidden] {
  display: none !important;
}

html[data-studio-light="day"] .case-danmaku-dock {
  background: linear-gradient(120deg, #0f172a, #1e293b);
  border-bottom-color: rgba(14, 165, 233, 0.35);
}

.case-danmaku-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.case-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.22);
  border: 1px solid rgba(251, 113, 133, 0.55);
  color: #fecdd3;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fb7185;
  box-shadow: 0 0 8px #f43f5e;
  animation: liveDotPulse 1.4s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

.case-viewer-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #7dd3fc;
  margin-right: auto;
  white-space: nowrap;
}

.case-danmaku-ctrls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.case-mini-ctrl {
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.case-mini-ctrl.is-active {
  background: rgba(56, 189, 248, 0.24);
  border-color: #38bdf8;
  color: #e0f2fe;
}

.case-mini-ctrl:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 互动弹幕输入条 + 一键热词快捷发射 */
.case-danmaku-composer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 7px 12px 8px;
  background: rgba(2, 6, 23, 0.56);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.case-danmaku-composer[hidden] {
  display: none !important;
}

.case-composer-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.case-composer-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.42);
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  font-size: 16px; /* iOS / Android 禁止聚焦缩放 */
  outline: none;
}

.case-composer-input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.case-composer-send {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.case-composer-send.is-sent {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: #6ee7b7;
}

.case-composer-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.case-quick-chip {
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(245, 200, 76, 0.34);
  background: rgba(245, 200, 76, 0.12);
  color: #fde68a;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.case-danmaku-tracks {
  position: relative;
  height: 84px; /* 3 轨精确排布: top 5px / 31px / 57px，单轨 22px + 4px 垂直留白，绝不上下压字 */
  overflow: hidden;
  pointer-events: none;
}

.case-danmaku-dock.is-muted .case-danmaku-tracks {
  display: none;
}

.case-live-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-danmaku-msg {
  position: absolute;
  left: 100%;
  height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 20px;
  will-change: transform;
  animation: caseDanmakuFly 7.6s linear forwards;
}

.case-danmaku-msg.is-sr {
  background: rgba(88, 28, 135, 0.78);
  border-color: rgba(192, 132, 252, 0.78);
  color: #f5f3ff;
}

.case-danmaku-msg.is-gold {
  background: rgba(133, 77, 14, 0.88);
  border-color: #facc15;
  color: #fef08a;
  font-weight: 800;
}

.case-danmaku-msg.is-owner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.94), rgba(37, 99, 235, 0.9));
  border-color: #7dd3fc;
  color: #ffffff;
  font-weight: 800;
  z-index: 2;
}

.dm-self-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 15px;
  padding: 0 5px;
  border-radius: 999px;
  background: #facc15;
  color: #0f172a;
  font-size: 10px;
  font-weight: 900;
  line-height: 15px;
}

/* 匀速像素位移：由 JS 按真实渲染宽度注入 --dm-dist，数学保障同轨永不追尾重叠 */
@keyframes caseDanmakuFly {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--dm-dist, -1200px), 0, 0); }
}

.case-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.case-kpi {
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.case-kpi span { font-size: 11px; color: #94a3b8; }
.case-kpi strong { font-size: 16px; font-weight: 900; }
.case-kpi strong.up { color: #34d399; }
.case-kpi strong.down { color: #fb7185; }

.case-chart-box {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.case-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11.5px;
  color: #94a3b8;
}

.case-chart-canvas {
  display: block;
  width: 100%;
  height: 132px;
}

.case-actions-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.case-actions-bar .dock-btn {
  flex: 1 1 auto;
  min-width: max-content;
}

.case-12grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.case-box-cell {
  padding: 8px 6px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-box-cell.opened {
  cursor: pointer;
  background: rgba(15, 23, 42, 0.65);
}

html[data-studio-light="day"] .case-box-cell.opened {
  background: rgba(15, 23, 42, 0.05);
}

.case-box-cell.is-sr { border-color: rgba(192, 132, 252, 0.65); }
.case-box-cell.is-mega {
  border-color: #facc15;
  background: rgba(245, 200, 76, 0.16);
}

.case-box-cell span { font-size: 10px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-box-cell strong { font-size: 12.5px; }
.case-box-cell em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #94a3b8; }
.case-box-cell em.up { color: #34d399; }
.case-box-cell em.down { color: #fb7185; }

/* ---------- 5. 卡店三档神秘福袋 / 评级砖盲盒 (#mysteryBagModal) ---------- */
.bag-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.bag-tier-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bag-tier-card.is-sky { border-color: rgba(56, 189, 248, 0.45); }
.bag-tier-card.is-gold { border-color: rgba(245, 200, 76, 0.52); }
.bag-tier-card.is-rose {
  border-color: rgba(244, 63, 94, 0.56);
  background: linear-gradient(155deg, rgba(244, 63, 94, 0.14), rgba(15, 23, 42, 0.4));
}

html[data-studio-light="day"] .bag-tier-card {
  background: rgba(15, 23, 42, 0.035);
}

.bag-tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.bag-tier-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(245, 200, 76, 0.18);
  color: #fde047;
}

html[data-studio-light="day"] .bag-tier-badge { color: #92400e; }

.bag-tier-price {
  font-size: 18px;
  font-weight: 900;
  color: #34d399;
}

.bag-tier-card h3 { margin: 0; font-size: 15.5px; }
.bag-tier-desc { margin: 0; font-size: 12px; line-height: 1.45; color: #cbd5e1; flex: 1; }
.bag-tier-odds { margin: 0; font-size: 11px; line-height: 1.4; color: #94a3b8; }
html[data-studio-light="day"] .bag-tier-desc { color: #334155; }

.bag-open-btn {
  width: 100%;
  margin-top: 4px;
}

.bag-reveal-panel {
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(245, 200, 76, 0.52);
  background: linear-gradient(145deg, rgba(245, 200, 76, 0.14), rgba(15, 23, 42, 0.72));
  display: flex;
  flex-direction: column;
  gap: 11px;
}

html[data-studio-light="day"] .bag-reveal-panel {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.94));
}

.bag-reveal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.bag-slab-hero {
  display: flex;
  gap: 15px;
  align-items: center;
}

.bag-slab-thumb {
  position: relative;
  width: 108px;
  flex-shrink: 0;
  cursor: pointer;
}

.bag-slab-thumb img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.bag-slab-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bag-slab-info h3,
.bag-slab-info p { margin: 0; }
.bag-slab-info p { font-size: 12px; color: #94a3b8; }
.bag-slab-val { font-size: 13px; }
.bag-slab-val strong { font-size: 22px; color: #34d399; }

.bag-slab-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- 6. 移动端自适应 (<= 768px) ---------- */
@media (max-width: 768px) {
  .desktop-hub-btn {
    display: none !important;
  }

  .tycoon-sheet {
    width: 100%;
    max-height: 92svh;
  }

  .case-danmaku-bar {
    padding: 5px 10px;
    gap: 6px;
  }

  .case-danmaku-composer {
    padding: 6px 10px 7px;
  }

  .case-danmaku-tracks {
    height: 84px;
  }

  .tycoon-modal-body {
    padding: 12px 12px 18px;
  }

  .auction-card-list,
  .bag-tier-grid,
  .news-event-list {
    grid-template-columns: 1fr;
  }

  .case-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-12grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auction-live-hero,
  .bag-slab-hero {
    flex-direction: column;
    text-align: center;
  }

  .auction-bid-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .bidder-say {
    text-align: left;
  }
}
