/* ==========================================================================
   jackane宇 · 第四步：9宫格皮质活页卡册、3D 镇馆五虎展柜、羁绊成就与晒卡战报样式 (endgame-binder.css)
   ========================================================================== */

/* ---------- 1. 顶栏左侧头衔荣誉展厅按钮 & 传奇卡垫限定镶边 ---------- */
.top-left-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.trophy-hall-btn {
  position: relative;
  pointer-events: auto;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--chrome-surface);
  border: 1px solid rgba(245, 200, 76, 0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--chrome-shadow);
  color: var(--chrome-ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.trophy-hall-btn:hover { border-color: #facc15; }
.trophy-hall-btn:active { translate: 0 1px; }

.bond-ready-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 10px 2px rgba(250, 204, 21, 0.9);
  animation: dot-pulse 1.4s infinite;
}
.bond-ready-dot[hidden] { display: none !important; }
@keyframes dot-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.32; } }

/* 限定羁绊奖励：主舞台下方透视皮质对战卡垫 (#stagePlaymat) 皇家流金 / 黑曜石鎏金传奇皮肤 */
#stagePlaymat[data-prestige-trim="twin-dragons"] {
  --mat-accent: rgba(250, 204, 21, 0.86);
  --mat-glow: rgba(245, 200, 76, 0.28);
  --mat-surface: linear-gradient(180deg, rgba(22, 31, 56, 0.88) 0%, rgba(36, 18, 22, 0.94) 100%);
  border: 2.5px solid #f5c84c;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.82), 0 0 38px rgba(245, 200, 76, 0.28), inset 0 0 68px rgba(245, 200, 76, 0.2);
}
#stagePlaymat[data-prestige-trim="twin-dragons"] .playmat-stitch {
  border: 1.5px dashed #fde047;
  opacity: 0.95;
}
#stagePlaymat[data-prestige-trim="twin-dragons"] .playmat-arena-ring {
  border-width: 2px;
  opacity: 0.85;
  box-shadow: 0 0 28px rgba(245, 200, 76, 0.3);
}
#stagePlaymat[data-prestige-trim="twin-dragons"]::before,
#stagePlaymat[data-prestige-trim="black-label"]::before {
  position: absolute;
  top: 24px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: rgba(253, 224, 71, 0.78);
  white-space: nowrap;
}
#stagePlaymat[data-prestige-trim="twin-dragons"]::before { content: "✦ UNOVA TWIN DRAGONS · ROYAL ARCHIVE ✦"; }

#stagePlaymat[data-prestige-trim="black-label"] {
  --mat-accent: #fde047;
  --mat-glow: rgba(250, 204, 21, 0.34);
  --mat-surface: radial-gradient(85% 70% at 50% 45%, #16140f 0%, #050609 78%);
  border: 2.5px solid #fde047;
  box-shadow:
    0 30px 76px rgba(0, 0, 0, 0.92),
    0 0 48px rgba(250, 204, 21, 0.38),
    inset 0 0 0 5px rgba(250, 204, 21, 0.2),
    inset 0 0 74px rgba(250, 204, 21, 0.24);
}
#stagePlaymat[data-prestige-trim="black-label"] .playmat-stitch {
  border: 1.5px solid rgba(253, 224, 71, 0.88);
  opacity: 1;
  box-shadow: inset 0 0 26px rgba(250, 204, 21, 0.22);
}
#stagePlaymat[data-prestige-trim="black-label"] .playmat-arena-ring {
  border-width: 2.2px;
  opacity: 0.95;
  box-shadow: 0 0 36px rgba(250, 204, 21, 0.42), inset 0 0 22px rgba(250, 204, 21, 0.24);
}
#stagePlaymat[data-prestige-trim="black-label"]::before { content: "★ BECKETT PRISTINE 10 · BLACK LABEL HALL OF FAME ★"; }

/* ---------- 2. 仿真 3×3 九宫格车缝线皮质活页卡册 (#binderLeatherBook) ---------- */
.binder-leather-book {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px 20px;
}
.binder-leather-book[hidden], .binder-grid[hidden] { display: none !important; }

.leather-binder-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  perspective: 1400px;
}

.leather-page-wrap {
  position: relative;
  width: min(620px, 100%);
  padding: 18px 20px 18px 34px;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(30, 41, 59, 0.92), rgba(11, 15, 26, 0.98)),
    #0d1220;
  border: 2px solid rgba(245, 200, 76, 0.26);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.65),
    inset 0 0 0 4px rgba(255, 255, 255, 0.03);
  transform-origin: left center;
}
.leather-page-wrap::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 12px;
  border: 1px dashed rgba(245, 200, 76, 0.24);
  pointer-events: none;
}
.leather-page-wrap.page-complete { border-color: rgba(250, 204, 21, 0.68); }

.page-turn-next { animation: binder-flip-next 0.36s cubic-bezier(0.22, 0.88, 0.32, 1); }
.page-turn-prev { animation: binder-flip-prev 0.36s cubic-bezier(0.22, 0.88, 0.32, 1); }
@keyframes binder-flip-next { 0% { transform: rotateY(-16deg) scale(0.98); opacity: 0.65; } 100% { transform: rotateY(0) scale(1); opacity: 1; } }
@keyframes binder-flip-prev { 0% { transform: rotateY(14deg) scale(0.98); opacity: 0.65; } 100% { transform: rotateY(0) scale(1); opacity: 1; } }

/* 左侧金属三孔活页夹环 */
.binder-rings-spine {
  position: absolute;
  left: 8px;
  top: 14%;
  bottom: 14%;
  width: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.binder-rings-spine i {
  display: block;
  width: 14px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(90deg, #64748b, #f8fafc 45%, #475569);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

.leather-9grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pocket-slot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(5, 8, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.16s, border-color 0.18s;
}
.pocket-slot.unlocked { cursor: pointer; }
.pocket-slot.unlocked:hover { transform: translateY(-3px); border-color: rgba(245, 200, 76, 0.65); }

.pocket-card-frame {
  position: relative;
  aspect-ratio: 500 / 698;
  border-radius: 7px;
  overflow: hidden;
  background: #090d18;
}
.pocket-card-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pocket-sleeve-lip {
  position: absolute;
  top: 0; left: 0; right: 0; height: 5px; z-index: 4;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
}

/* 未解锁半透明宝可梦暗影剪影 + 烫银编号空位 */
.pocket-silhouette-img {
  filter: grayscale(1) contrast(1.85) brightness(0.19);
  opacity: 0.48;
  pointer-events: none;
}
.pocket-silhouette-veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: radial-gradient(circle at 50% 45%, rgba(15, 23, 42, 0.2), rgba(6, 9, 18, 0.72));
}
.pocket-emboss-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: rgba(226, 232, 240, 0.34);
  letter-spacing: 0.06em;
}
.pocket-emboss-rarity { font-size: 10.5px; font-weight: 800; color: rgba(245, 200, 76, 0.75); }

.pocket-slot.empty-sleeve {
  aspect-ratio: 500 / 760;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  opacity: 0.35;
}
.empty-sleeve-mark { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--chrome-muted); }

.pocket-caption { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 10.5px; padding: 0 2px; }
.pocket-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pocket-serial { font-family: var(--font-mono); font-size: 9px; color: var(--chrome-muted); flex-shrink: 0; }

.binder-pager-bar { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; }
.binder-pager-info { display: flex; flex-direction: column; align-items: center; font-size: 12px; }
.pager-sub { font-size: 10.5px; color: var(--chrome-muted); }
.pager-sub.full { color: #fde047; font-weight: 800; }

/* ---------- 3. 3D 镇馆五虎荣誉展柜 & 羁绊成就殿堂 (#trophyWallModal) ---------- */
.trophy-sheet { max-width: 960px; max-height: min(88vh, 780px); }
.trophy-hall-tabs { display: flex; gap: 8px; padding: 10px 20px 0; }
.trophy-hall-body { padding: 14px 20px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }

.trophy-summary-banner, .bonds-equip-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 200, 76, 0.1), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(245, 200, 76, 0.32);
}
.trophy-total-val { display: block; font-size: 19px; font-weight: 900; color: #fde047; margin-top: 2px; }

.trophy-pedestal-stage {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 10px 4px 4px;
}

.trophy-pedestal {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 12px 8px 10px; border-radius: 14px;
  background: radial-gradient(80% 60% at 50% 15%, rgba(245, 200, 76, 0.12), rgba(8, 12, 22, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trophy-card-3d {
  width: 100%; border-radius: 8px; overflow: hidden; cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.65);
  transition: transform 0.14s ease-out;
}
.trophy-card-3d img { width: 100%; display: block; }
.trophy-card-3d.is-slab { padding: 4px; background: rgba(226, 238, 252, 0.18); border: 1.5px solid rgba(255, 255, 255, 0.52); }
.trophy-card-3d.slab-bgs-bl10 { border-color: #facc15; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8), 0 0 18px rgba(250, 204, 21, 0.35); }

.mini-slab-cap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 6px; margin-bottom: 3px; border-radius: 2px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 900;
  background: #f8fafc; color: #0f172a; border: 1.5px solid #d61f26;
}
.mini-slab-cap.slab-bgs-gold10, .mini-slab-cap.slab-bgs-gold95 { background: #eab308; border-color: #fef08a; }
.mini-slab-cap.slab-bgs-bl10 { background: #090b10; color: #fde047; border-color: #facc15; }

.pedestal-meta { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 11px; width: 100%; }
.pedestal-meta strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pedestal-val { font-family: var(--font-mono); font-size: 10.5px; color: #34d399; font-weight: 800; }
.pedestal-swap-btn {
  margin-top: 2px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--chrome-border);
  background: rgba(255, 255, 255, 0.05); color: var(--chrome-muted); font-size: 10px; cursor: pointer;
}
.pedestal-swap-btn:hover { color: #fde047; border-color: #facc15; }
.pedestal-base { width: 82%; height: 5px; border-radius: 99px; background: linear-gradient(90deg, transparent, rgba(245, 200, 76, 0.65), transparent); }
.pedestal-empty-box { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 11px; color: var(--chrome-muted); }

.trophy-slot-picker, .poster-preview-wrap {
  padding: 12px 14px; border-radius: 13px; background: rgba(8, 12, 24, 0.9); border: 1px solid rgba(245, 200, 76, 0.4);
  display: flex; flex-direction: column; gap: 10px;
}
.poster-preview-wrap[hidden] { display: none !important; }
.poster-preview-wrap canvas { width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(245, 200, 76, 0.35); }
.picker-head-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.picker-chip-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 130px; overflow-y: auto; }
.picker-card-chip {
  padding: 4px 10px; border-radius: 99px; border: 1px solid var(--chrome-border);
  background: rgba(255, 255, 255, 0.06); color: var(--chrome-ink); font-size: 11px; cursor: pointer;
}
.picker-card-chip:hover { border-color: #facc15; color: #fde047; }

.equip-group { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.bonds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bond-card {
  padding: 12px 14px; border-radius: 13px; background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--chrome-border); display: flex; flex-direction: column; gap: 8px;
}
.bond-card.ready { border-color: #facc15; background: rgba(250, 204, 21, 0.08); }
.bond-card.claimed { border-color: rgba(52, 211, 153, 0.4); }
.bond-head { display: flex; align-items: center; gap: 10px; }
.bond-icon { font-size: 22px; }
.bond-titles { display: flex; flex-direction: column; font-size: 12.5px; }
.bond-titles span { font-size: 10.5px; color: #f5c84c; }
.bond-desc { margin: 0; font-size: 11px; color: var(--chrome-muted); line-height: 1.4; }
.bond-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bond-prog { flex: 1; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; }
.bond-prog-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bond-prog-bar i { display: block; height: 100%; background: linear-gradient(90deg, #38bdf8, #facc15); }
.bond-done-tag { font-size: 11px; font-weight: 800; color: #34d399; }

@media (max-width: 780px) {
  .trophy-pedestal-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bonds-grid { grid-template-columns: 1fr; }
  .trophy-hall-btn span { display: none; }
}
