/* ==========================================================================
   jackane宇 · 原创矢量图标样式、2px 物理微动键帽、防撞顶栏与三段稳定控制台 (ui-tactile.css)
   ========================================================================== */

/* ---------- 1. 原创精密矢量图标 (.ptcg-ico) 与双色浮雕羁绊勋章 ---------- */
.ptcg-ico {
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
  pointer-events: none;
}

.ico-series-sv11b { color: #38bdf8; }
.ico-series-sv11w { color: #fb923c; }
.ico-series-m6a, .ico-gold { color: #f5c84c; }

html[data-studio-light="day"] .ico-series-sv11b { color: #0284c7; }
html[data-studio-light="day"] .ico-series-sv11w { color: #ea580c; }
html[data-studio-light="day"] .ico-series-m6a,
html[data-studio-light="day"] .ico-gold { color: #b45309; }

.bond-medallion {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--medallion-ink, #f5c84c);
  background: radial-gradient(circle at 32% 24%, var(--medallion-glow, rgba(245, 200, 76, 0.24)), rgba(9, 13, 24, 0.94) 76%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 14px rgba(0, 0, 0, 0.45);
}

/* ---------- 2. 顶栏 1fr-auto-1fr 对称防撞弹性网格 ---------- */
.top-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.top-left-cluster { justify-self: start; min-width: 0; max-width: 100%; }
.trophy-hall-btn { min-width: 0; max-width: 215px; }
#collectorTitleLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.brand-stage-crest {
  position: relative;
  left: auto;
  top: auto;
  translate: none;
  justify-self: center;
}
.brand-stage-crest:active { translate: none; transform: translateY(1.5px) scale(0.985); }
.utility-cluster { justify-self: end; }
.ledger-mode-tag { display: inline-flex; align-items: center; gap: 4px; }

.box-trigger-title,
.inspect-rarity,
.inspect-val-pill,
.binder-tab,
.rarity-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- 3. 2px 物理微动机械键帽光学结构 + 弹簧回弹手感 ---------- */
.dock-btn,
.fresh-box-btn,
.box-scale-trigger,
.ledger-pill-btn,
.trophy-hall-btn,
.showcase-nav-paddle {
  --key-lip: rgba(2, 6, 16, 0.78);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 2.5px 0 var(--key-lip),
    0 8px 18px -6px rgba(0, 0, 0, 0.52);
  transition:
    transform 0.16s cubic-bezier(0.22, 1.45, 0.36, 1),
    box-shadow 0.14s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    filter 0.16s ease;
}

html[data-studio-light="day"] .dock-btn.secondary,
html[data-studio-light="day"] .fresh-box-btn,
html[data-studio-light="day"] .box-scale-trigger,
html[data-studio-light="day"] .ledger-pill-btn,
html[data-studio-light="day"] .trophy-hall-btn {
  --key-lip: rgba(100, 116, 139, 0.38);
}

.dock-btn.primary {
  --key-lip: #9a6b0d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 2.5px 0 var(--key-lip),
    0 10px 22px -6px rgba(245, 200, 76, 0.38);
}

.dock-btn.accent { --key-lip: #2e1065; }
.dock-btn.gold-fast { --key-lip: #78350f; }

.dock-btn[hidden],
.box-scale-trigger[hidden],
.showcase-nav-paddle[hidden],
.inspect-quick-3d[hidden] {
  display: none !important;
}

.dock-btn:hover:not(:disabled),
.fresh-box-btn:hover:not(:disabled),
.box-scale-trigger:hover:not(:disabled),
.showcase-nav-paddle:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 3.5px 0 var(--key-lip),
    0 12px 24px -6px rgba(0, 0, 0, 0.6);
}

.dock-btn:active:not(:disabled),
.dock-btn.is-pressed:not(:disabled),
.fresh-box-btn:active:not(:disabled),
.fresh-box-btn.is-pressed:not(:disabled),
.box-scale-trigger:active:not(:disabled),
.box-scale-trigger.is-pressed:not(:disabled),
.ledger-pill-btn:active,
.trophy-hall-btn:active,
.showcase-nav-paddle:active:not(:disabled),
.showcase-nav-paddle.is-pressed:not(:disabled),
.util-btn:active,
.util-btn.is-pressed {
  translate: none !important;
  transform: translateY(2px) scale(0.982) !important;
  transition-duration: 0.045s !important;
  box-shadow:
    inset 0 1.5px 3px rgba(0, 0, 0, 0.34),
    0 0.5px 0 var(--key-lip),
    0 2px 5px rgba(0, 0, 0, 0.38) !important;
}

/* ---------- 4. 桌面端暗金微刻快捷键角标（触屏/移动端自动隐藏） ---------- */
.keycap-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  padding: 0 4.5px;
  margin-left: 2px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  color: inherit;
  opacity: 0.62;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.dock-btn.primary .keycap-hint,
.dock-btn.gold-fast .keycap-hint {
  background: rgba(15, 23, 42, 0.14);
  border-color: rgba(15, 23, 42, 0.28);
  opacity: 0.72;
}

@media (hover: none), (pointer: coarse), (max-width: 920px) {
  .keycap-hint { display: none !important; }
}

/* ---------- 5. 底部控制台三段定宽防跳动 & 原盒点阵舱融合挑包天平 ---------- */
.box-meta-with-matrix {
  cursor: pointer;
  padding: 2px 6px;
  margin: -2px;
  border-radius: 10px;
  transition: background-color 0.16s ease;
}
.box-meta-with-matrix:hover { background: rgba(245, 200, 76, 0.09); }
.box-meta-with-matrix:hover .box-slot-cell.is-next,
.box-meta-with-matrix:hover .box-slot-cell.is-sealed { border-color: rgba(245, 200, 76, 0.72); }

.box-scale-trigger {
  -webkit-tap-highlight-color: transparent;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  background: rgba(56, 189, 248, 0.11);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
html[data-studio-light="day"] .box-scale-trigger {
  color: #0369a1;
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.32);
}
.box-scale-trigger:disabled { opacity: 0.38; cursor: not-allowed; }
.fresh-box-btn { height: 28px; }

@media (min-width: 1081px) {
  .console-actions { min-width: 242px; justify-content: flex-end; }
}

/* ---------- 6. 三段主次分栏 3D 检视坞 (#showcaseBar) + 左右切卡拨片 ---------- */
.showcase-bar { gap: 6px; padding: 6px 8px; flex-wrap: wrap; justify-content: center; }
.showcase-group { display: inline-flex; align-items: center; gap: 6px; }
.showcase-sep { width: 1px; height: 20px; background: rgba(255, 255, 255, 0.16); margin: 0 2px; }
.showcase-sep[hidden] { display: none !important; }
.dock-btn.compact-ico { padding: 0 11px; font-size: 12px; }

.showcase-nav-paddle {
  position: fixed;
  top: 47%;
  z-index: 48;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  background: rgba(10, 15, 28, 0.78);
  border: 1px solid rgba(245, 200, 76, 0.38);
  color: #f8fafc;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}
.showcase-nav-paddle.prev { left: max(16px, calc(50% - 305px)); }
.showcase-nav-paddle.next { right: max(16px, calc(50% - 305px)); }
.showcase-nav-paddle:disabled { opacity: 0.25; cursor: default; }

.card-inspect-pill { pointer-events: auto; max-width: min(820px, calc(100vw - 24px)); }
.inspect-trait { flex: 1 1 auto; min-width: 0; }
.inspect-quick-3d {
  pointer-events: auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 99px;
  border: 1px solid rgba(245, 200, 76, 0.52);
  background: rgba(245, 200, 76, 0.16);
  color: #fde047;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  transition: background-color 0.16s, border-color 0.16s;
}
.inspect-quick-3d:hover { background: rgba(245, 200, 76, 0.28); border-color: #facc15; }
html[data-studio-light="day"] .inspect-quick-3d { color: #92400e; background: rgba(245, 158, 11, 0.16); }

/* 叠牌阶段严禁底牌/已滑开侧边抢夺顶牌点击热区 */
.scene.flat .card.phase-stacked:not(.stack-top) { pointer-events: none; }

/* 送评微距扫描与待揭分阶段显式透出舞台引导提示 */
body.showcase-active.ritual-hint-visible .gesture-hint {
  display: inline-flex !important;
  color: #fde047;
  font-weight: 700;
}

/* 重置存档两步保险栓高亮态 */
.binder-reset.confirm-armed {
  background: rgba(220, 38, 38, 0.28) !important;
  border-color: #f87171 !important;
  color: #fecaca !important;
}

@media (min-width: 1081px) {
  .console-dock { flex-wrap: nowrap; max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none; }
  .console-dock::-webkit-scrollbar { display: none; }
}

@media (max-width: 820px) {
  .top-bar { grid-template-columns: auto 1fr auto; }
  .trophy-hall-btn { padding: 0 10px; }
  .showcase-nav-paddle.prev { left: 8px; }
  .showcase-nav-paddle.next { right: 8px; }
}
