.collection-ui {
  --collection-ink: #e6eef4;
  --collection-muted: #a4bac9;
  --collection-line: #31505f;
  --collection-panel: #152530;
  --collection-control: #0f1b24;
  --collection-yellow: #facc15;
  --collection-highlight: #fef08a;
  --collection-background:
    radial-gradient(ellipse at 65% 12%, #24404c70, transparent 55%),
    #0e1720;
  background: var(--collection-background);
  color: var(--collection-ink);
  font: 500 14px/1.5 var(--font-ptcg-zh);
}

#app .screen.collection-home {
  background: var(--collection-background) !important;
  color: var(--collection-ink) !important;
}

.collection-home,
.collection-meta {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}

.collection-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 18px 16px 20px;
  background: linear-gradient(#162631, #101c25);
  border-right: 1px solid var(--collection-line);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.collection-sidebar::-webkit-scrollbar { display: none; width: 0; height: 0; }

.collection-nav { display: grid; gap: 7px; }
.collection-nav h2.sts-dex-sec-head { margin: 10px 0 0; }
.collection-nav h2:first-child { margin-top: 0; }

.collection-ui .collection-control {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  appearance: none;
  border: 1px solid var(--collection-line);
  border-radius: 6px;
  background: var(--collection-control);
  color: var(--collection-ink);
  padding: 7px 12px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.collection-ui .collection-control:hover { background: #204252; }
.collection-ui .collection-control:is(.is-current, [aria-pressed="true"]) {
  border-color: var(--collection-yellow);
  background: #facc1524;
  color: var(--collection-highlight);
}

.collection-ui :is(button, summary, input):focus-visible {
  outline: 2px solid var(--collection-yellow);
  outline-offset: 2px;
}

.collection-control > img { width: 23px; height: 23px; object-fit: contain; }
.collection-control small, .collection-run-summary {
  display: block;
  color: var(--collection-muted);
  font-size: 12px;
}
.collection-profile > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.collection-profile .sts2-profile-icon { width: 42px; height: 42px; flex-shrink: 0; }
.collection-continue { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }

.collection-home-body,
.collection-meta .meta-scroll-body {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: clamp(18px, 2.6vw, 42px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.collection-home-body::-webkit-scrollbar,
.collection-meta .meta-scroll-body::-webkit-scrollbar { display: none; width: 0; height: 0; }

.collection-home-tools {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.collection-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: 12px;
  min-height: clamp(245px, 48vh, 540px);
  padding: clamp(18px, 4.5vw, 72px);
  overflow: hidden;
  border: 1px solid #70919e;
  border-radius: 12px;
  background: var(--collection-panel);
  box-shadow: inset 0 0 0 3px #bce2ee20, 0 10px 32px #060c1380;
}

.collection-hero > #bg-stage.is-embedded {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  border-radius: inherit;
}
.collection-hero > #bg-stage.is-embedded .bg-hero-art {
  width: min(26%, 240px);
  left: -20px;
  bottom: -14px;
}
.collection-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(90deg, rgba(16, 29, 39, 0.72), rgba(16, 29, 39, 0.34) 44%, rgba(16, 29, 39, 0.06));
}
.collection-hero-title { color: #f4f8fb; text-shadow: 0 3px 16px rgba(6, 12, 19, 0.72); }
.collection-hero-title > span {
  color: #b0d9e6;
  font: 800 clamp(17px, 2.3vw, 30px)/1 var(--font-ptcg-num);
  letter-spacing: .12em;
}
.collection-home .collection-hero h1 {
  margin: .1em 0;
  font: 900 clamp(34px, 6.1vw, 100px)/1.12 var(--font-ptcg-zh);
  color: inherit;
}
.collection-hero-title p {
  margin: 0;
  color: #d1e5eb;
  font-size: clamp(14px, 2vw, 24px);
  font-weight: 800;
}
.collection-mascot {
  width: min(100%, 280px);
  height: clamp(115px, 30vh, 300px);
  object-fit: contain;
  justify-self: center;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 16px #0a121c);
}
.collection-home-body h2 { margin: 20px 0 8px; }

.collection-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  margin: 0;
}
.collection-stats > div {
  padding: 9px 13px;
  border: 1px solid var(--collection-line);
  border-radius: 7px;
  background: var(--collection-panel);
}
.collection-stats dt { color: var(--collection-muted); font-size: 12px; }
.collection-stats dd { margin: 2px 0 0; color: var(--collection-ink); font-size: 18px; font-weight: 900; }

.collection-meta {
  position: fixed;
  inset: 0;
  z-index: 950;
  overflow: hidden;
}
.collection-meta h1 {
  margin: 0 0 16px;
  color: var(--collection-ink);
  font: 900 clamp(27px, 4vw, 46px)/1.2 var(--font-ptcg-zh);
}
.collection-meta h1:focus { outline: none; }
.collection-meta .meta-scroll-body { max-height: none; }
.collection-meta .meta-grid-2 { gap: 12px; }
.collection-meta :is(.meta-ach-card, .meta-row, .meta-skin-card, .hof-type-badge, .meta-empty-tip) {
  border: 1px solid var(--collection-line);
  border-radius: 8px;
  background: var(--collection-panel);
  box-shadow: none;
}

.collection-meta .meta-ach-card {
  align-items: flex-start;
  padding: 14px;
}
.collection-meta .meta-ach-card.unlocked { border-color: #4e9079; }
.collection-meta .meta-row.is-ready,
.collection-meta .hof-type-badge.tier-a0 { border-color: #ad873d; }
.collection-meta .hof-type-badge.tier-a5 { border-color: #53a2c5; }
.collection-meta .hof-type-badge.tier-a10,
.collection-meta .meta-skin-card.equipped { border-color: var(--collection-yellow); }
.collection-meta .hof-type-badge.tier-none { opacity: 1; }
.collection-meta :is(.meta-row-title, .meta-skin-name, .hof-type-name) { color: var(--collection-ink); }
.collection-meta :is(.meta-row-title span, .meta-row-desc, .meta-skin-desc, .hof-type-sub, .meta-empty-tip) {
  color: var(--collection-muted);
}
.collection-meta .meta-row-title span,
.collection-meta :is(.meta-done-pill, .meta-lock-pill) { white-space: nowrap; }
.collection-meta .meta-lock-pill { background: #253c49; color: #d1e1e9; }
.collection-meta .meta-done-pill { background: #1a3d35; color: #98e8c5; }
.collection-meta .meta-reward-tags span {
  background: #3e3520;
  color: #f8df94;
  border-radius: 5px;
}
.collection-success { color: #98e8c5; }
.meta-ach-progress {
  display: block;
  width: 100%;
  height: 6px;
  margin: 8px 0;
  border: 0;
  background: #0e1720;
  accent-color: #55b3cb;
  border-radius: 6px;
  overflow: hidden;
}
.meta-ach-progress::-webkit-progress-bar { background: #0e1720; }
.meta-ach-progress::-webkit-progress-value { background: #55b3cb; }
.meta-ach-progress::-moz-progress-bar { background: #55b3cb; }
.collection-meta :is(.meta-shiny-banner, .meta-section-title) {
  background: linear-gradient(90deg, #275361, #1c3d49);
  border: 1px solid #487583;
  border-radius: 6px;
  color: #e6f4f8;
}
.collection-meta .meta-section-title { padding: 5px 10px; font: 800 13px var(--font-ptcg-zh); }
.collection-ui :is(.meta-act-btn, .dex-tuning-actions button) {
  border: 1px solid var(--collection-line);
  border-radius: 6px;
  color: var(--collection-ink);
  background: var(--collection-control);
  box-shadow: none;
  text-shadow: none;
}
.collection-ui :is(.meta-act-btn, .dex-tuning-actions button):hover:enabled { background: #204252; }

@media (max-width: 980px) {
  .collection-meta .meta-grid-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 690px) {
  #app .collection-home {
    display: flex;
    overflow-y: auto;
    padding: 14px;
    gap: 14px;
  }
  .collection-home-body { display: contents; }
  .collection-home-tools { order: -3; margin: 0; }
  .collection-hero { order: -2; min-height: 180px; flex-shrink: 0; }
  .collection-mascot { height: clamp(110px, 30vw, 165px); }
  .collection-home .collection-sidebar {
    flex-shrink: 0;
    overflow: visible;
    padding: 12px;
    border: 1px solid var(--collection-line);
    border-radius: 8px;
  }
  .collection-home-body h2 { margin-top: 0; }
  .collection-meta {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .collection-meta .collection-sidebar { padding: 8px 12px; gap: 7px; border-right: 0; }
  .collection-meta .collection-nav { display: flex; flex-wrap: wrap; }
  .collection-meta .collection-nav h2 { display: none; }
  .collection-meta .collection-control { min-height: 34px; padding: 4px 8px; font-size: 12px; }
  .collection-meta .sts-dex-sidebar-foot { padding: 0; }
  .collection-meta .sts-dex-back-btn { width: auto; padding: 4px 12px; }
}

@media (max-width: 410px) {
  .collection-meta .meta-ach-card { display: grid; grid-template-columns: 30px minmax(0, 1fr); }
  .collection-meta .meta-ach-card > :last-child { grid-column: 2; }
}

/* Shared interface palette. These rules style surfaces and states only. */
:root {
  --ui-bg: #0e1720;
  --ui-surface: #152530;
  --ui-control: #0f1b24;
  --ui-hover: #204252;
  --ui-line: #31505f;
  --ui-text: #e6eef4;
  --ui-muted: #a4bac9;
  --ui-heading: linear-gradient(90deg, #275361, #1c3d49);
  --ui-focus: #facc15;
  --ui-focus-text: #fef08a;
  --ui-selected: #3b3924;
  --ui-danger: #ffac98;
  --ui-return: linear-gradient(#b83b27, #8f2617);
  --ui-shadow: 0 6px 18px #040b1280;
}

#app :is(.sts2-mode-screen.screen, .sts2-char-screen.screen, .starter-screen.screen, .map-screen.screen) {
  background: radial-gradient(ellipse at 60% 28%, #243f4d90, #0e1720e8 75%) !important;
  color: var(--ui-text) !important;
}
#app :is(.sts2-mode-card, .sts2-char-info-panel, .modal-panel, .modal-panel.journal-event-card, .modal-panel.journal-profile) {
  background: var(--ui-surface) !important;
  border-color: var(--ui-line) !important;
  color: var(--ui-text) !important;
  box-shadow: var(--ui-shadow) !important;
}

#app :is(.sts2-mode-art, .sts2-char-relic-block, .sts2-char-relic-icon, .gear-potion-pill, .sts2-asc-bar, .starter-controls-row) {
  background: var(--ui-control) !important;
  border-color: var(--ui-line) !important;
  color: var(--ui-text) !important;
  box-shadow: none !important;
}

#app :is(.sts2-mode-title, .sts2-mode-desc, .sts2-char-name, .sts2-char-relic-name, .sts2-asc-title,
         .starter-topbar h1, .settings-style-head strong, .modal-panel h2, .modal-panel h3,
         .shop-counter-head h1, .shop-supplies h2, .shop-stock-item strong, .run-event-story h1,
         .run-event-choice strong, .sts2-ancient-nameplate h2, .sts2-ancient-speech, .sts2-blessing-title) {
  color: var(--ui-text) !important;
  text-shadow: none !important;
}
#app :is(.sts2-mode-sub, .sts2-stat-meta, .sts2-char-lore, .sts2-char-relic-desc, .sts2-char-extra-row span,
         .sts2-char-deck-head small, .sts2-asc-desc, .sts2-asc-unlock-hint, .starter-controls-row small,
         .shop-price s, .run-event-location, .run-event-choice span, .center-action-card small,
         .run-view-tools h2 span, .run-view-tools > span, .battle-loot-row small, .settings-style-info p,
         .journal-profile-columns small, .journal-note, .sts2-ancient-nameplate p, .sts2-blessing-body small,
         .sts2-blessing-desc) {
  color: var(--ui-muted) !important;
  border-color: var(--ui-line) !important;
}
#app .sts2-stat-hp { color: var(--ui-danger); }
#app .sts2-stat-gold { color: var(--ui-focus-text); }

#app :is(.sts2-mode-badge, .sts2-char-deck-head, .starter-topbar, .starter-evo-banner, .run-view-tools,
         .modal-title, .modal-panel .meta-section-title, .settings-section-title, .journal-profile-head,
         .shop-counter-head, .sts2-reward-ribbon, .sts2-ancient-nameplate) {
  background: var(--ui-heading) !important;
  color: var(--ui-text) !important;
  border-color: #487583 !important;
  box-shadow: none !important;
}

#app :is(.sts2-asc-arrow, .sts2-portrait-tile, .starter-ring-nav, .starter-stage-pill,
         .starter-avatar-btn, .btn-secondary, .run-deck-sort button, .pile-btn,
         .mega-combat-btn, .shop-stock-item, .shop-price, .run-event-choice, .center-action-card,
         .battle-loot-row, .battle-reward-next, .battle-reward-peek, .sts2-blessing-bar,
         .settings-style-card, .custom-mod-chip, .evo-branch-tab, .dex-foil-act-btn, .dex-foil-pill),
#card-zoom3d-overlay :is(.zoom3d-btn, .zoom3d-foil-btn, .zoom3d-tool-btn) {
  background: var(--ui-control) !important;
  color: var(--ui-text) !important;
  border-color: var(--ui-line) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

#app :is(.btn-primary, .journal-primary, .title-play-btn, .sts2-ribbon-confirm,
         .end-turn-btn, .battle-loot-continue),
#card-zoom3d-overlay .zoom3d-btn-primary {
  background: var(--ui-heading) !important;
  color: var(--ui-text) !important;
  border-color: #568894 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
#app :is(.run-back, .sts2-ribbon-back) {
  background: var(--ui-return) !important;
  color: #fff7ed !important;
  border-color: #f08a6c !important;
  box-shadow: var(--ui-shadow) !important;
}
#app :is(.run-back, .sts2-ribbon-back):hover:not(:disabled) {
  background: linear-gradient(#cb4c34, #9e3020) !important;
}
#app :is(.sts2-mode-card, .btn-primary, .btn-secondary, .sts2-asc-arrow, .sts2-portrait-tile,
         .starter-ring-nav, .starter-stage-pill, .starter-avatar-btn, .pile-btn, .mega-combat-btn,
         .end-turn-btn, .run-deck-sort button, .shop-stock-item, .shop-price, .run-event-choice,
         .run-center .center-action-card, .battle-loot-row, .battle-reward-next, .battle-reward-peek,
         .sts2-blessing-bar, .settings-style-card, .dex-foil-act-btn, .dex-foil-pill):hover:not(:disabled),
#card-zoom3d-overlay .zoom3d-btn:hover:not(:disabled) {
  background: var(--ui-hover) !important;
  color: var(--ui-text) !important;
  border-color: #568894 !important;
  box-shadow: var(--ui-shadow) !important;
}

#app :is(.sts2-portrait-tile.selected, .sts2-portrait-tile[aria-selected="true"], .starter-stage-pill.active,
         .starter-avatar-btn.selected, .run-deck-sort button[aria-pressed="true"],
         .settings-style-card.is-active, .custom-mod-chip.is-checked, .evo-branch-tab.active,
         .dex-foil-pill[aria-pressed="true"], .mega-combat-btn.status-ready),
#card-zoom3d-overlay .zoom3d-btn.is-active {
  background: var(--ui-selected) !important;
  border-color: var(--ui-focus) !important;
  color: var(--ui-focus-text) !important;
  box-shadow: none !important;
}

#app :is(.modal-panel, .run-inspection, .sts2-mode-screen, .sts2-char-screen, .starter-screen,
         .run-hud, .battle-screen, .run-event, .run-shop, .run-center, .sts2-reward-overlay, .sts2-ancient-overlay)
  :is(button, input, select, summary):not(.poke-card *):focus-visible,
#card-zoom3d-overlay button:focus-visible {
  outline-color: var(--ui-focus) !important;
}

/* Route, run toolbar, and battle chrome. */
#app :is(.atlas-screen, .run-inspection) {
  --atlas-ink: #85c8dc;
  --atlas-accent: var(--ui-focus);
  background: linear-gradient(145deg, #172c38, var(--ui-bg)) !important;
  color: var(--ui-text) !important;
}
#app :is(.atlas-map, .atlas-legend) {
  background-color: var(--ui-surface);
  color: var(--ui-text);
  border-color: var(--ui-line);
  box-shadow: var(--ui-shadow);
}
#app .atlas-legend h2 { border-color: var(--ui-line); }
#app .atlas-canvas {
  background: repeating-linear-gradient(90deg, #6cabbe14 0 1px, transparent 1px 34px),
              repeating-linear-gradient(0deg, #6cabbe14 0 1px, transparent 1px 34px),
              radial-gradient(ellipse at 52% 26%, #254a58, #142631 76%);
}
#app .atlas-canvas::before { opacity: .45; }
#app .atlas-canvas::after { border-color: #57809072; }
#app .atlas-node { background: radial-gradient(circle, #325362 51%, transparent 73%); }
#app .atlas-node.available .atlas-ring { border-color: #85c8dc; }
#app .atlas-node.visited .atlas-ring { border-color: #548797; }
#app .atlas-trail { stroke: #69909d; }
#app .atlas-trail.open { stroke: #9cdbeb; }
#app .atlas-trail.traveled { stroke: #85c8dc; }
#app .atlas-trail.open.is-confirmed { stroke: var(--ui-focus); }

#app :is(.run-hud, .run-hud-main, .run-hud .run-hud-relics) {
  background: linear-gradient(#182b36, #101c25) !important;
  border-color: var(--ui-line) !important;
  color: var(--ui-text) !important;
  box-shadow: none !important;
}
#app :is(.run-hud .pk-btn, .run-hud .pk-slot, .run-hud .pk-slot.empty, .run-hud .pk-asc-badge,
         .run-hud .battle-turn, .run-hud .battle-route-progress) {
  background: var(--ui-control) !important;
  border-color: var(--ui-line) !important;
  color: var(--ui-text) !important;
  box-shadow: none !important;
}
#app .run-hud .pk-btn:hover { background: var(--ui-hover) !important; }
#app .run-hud .pk-btn[aria-pressed="true"] {
  background: var(--ui-selected) !important;
  border-color: var(--ui-focus) !important;
  color: var(--ui-focus-text) !important;
  box-shadow: none !important;
}
#app .run-hud-hp small { color: var(--ui-muted) !important; }

#app[data-screen="battle"] .battle-screen { color: var(--ui-text) !important; }
#app[data-screen="battle"] :is(.player-plate, .enemy-plate, .enemy-trainer-plate) {
  background: #142630f2 !important;
  border-color: #567b89 !important;
  color: var(--ui-text) !important;
  box-shadow: var(--ui-shadow) !important;
}
#app[data-screen="battle"] .enemy-unit.targeted .enemy-plate {
  border-color: var(--ui-focus) !important;
  box-shadow: 0 0 9px #facc1555 !important;
}
#app[data-screen="battle"] :is(.player-plate-head, .enemy-plate-head, .enemy-trainer-name) {
  color: var(--ui-text) !important;
}
#app[data-screen="battle"] .pk-bar-track { background: var(--ui-control) !important; border-color: #5d7b87 !important; }
#app[data-screen="battle"] .hand-dock { border-color: var(--ui-line) !important; }
#app[data-screen="battle"] .energy-ring {
  background: radial-gradient(circle at 35% 25%, #347a90, #18374a 78%) !important;
  border-color: #78c7db !important;
  box-shadow: var(--ui-shadow) !important;
}
#app[data-screen="battle"] :is(.energy-num, .energy-sub) { color: #f1faff !important; }
#app[data-screen="battle"] :is(.pile-btn, .mega-combat-btn) {
  background: var(--ui-control) !important;
  border-color: var(--ui-line) !important;
  color: var(--ui-text) !important;
}
#app[data-screen="battle"] .end-turn-btn {
  background: var(--ui-heading) !important;
  border-color: #64a2b3 !important;
  color: var(--ui-text) !important;
  box-shadow: var(--ui-shadow) !important;
}
#app[data-screen="battle"] :is(.pile-btn, .end-turn-btn, .mega-combat-btn):hover:not(:disabled) {
  background: var(--ui-hover) !important;
  border-color: #78c7db !important;
}
#app[data-screen="battle"] .mega-combat-btn.status-ready {
  background: var(--ui-selected) !important;
  border-color: var(--ui-focus) !important;
  color: var(--ui-focus-text) !important;
}
#app :is(.run-card-scroll, .atlas-map, .modal-panel) { scrollbar-color: #527684 var(--ui-surface); }
#app .run-deck-evolution input { accent-color: var(--ui-focus); }
#app .run-card-preview-label { background: var(--ui-heading); color: var(--ui-text); border-color: #568894; }

/* Scenic rooms and the reward/choice overlays. */
#app .run-shop { background: linear-gradient(#152530a8, #0e1720eb) !important; color: var(--ui-text) !important; }
#app .shop-counter {
  background: var(--ui-surface);
  border-color: var(--ui-line);
  box-shadow: var(--ui-shadow);
}
#app .shop-price, #app .shop-stock-item > span { color: var(--ui-focus-text) !important; }
#app :is(.shop-price, .shop-stock-item):disabled { color: var(--ui-muted) !important; }
#app .run-center {
  background: radial-gradient(ellipse at 51% 60%, #3f778b5e, #101c25cf 62%, var(--ui-bg)) !important;
  color: var(--ui-text) !important;
}
#app .run-center .center-action-card { background: var(--ui-surface) !important; border-color: var(--ui-line) !important; }
#app .center-action-art { background: radial-gradient(ellipse at 50% 56%, #5492ad5c, #20425296 66%, var(--ui-control)); }
#app .run-event {
  background: linear-gradient(90deg, #0e172035, #0e1720d4 56%, #0e1720f2), var(--event-bg) center / cover !important;
  color: var(--ui-text) !important;
}
#app .run-event-art { background: radial-gradient(ellipse, #5eafc63b, transparent 68%); }
#app :is(.event-type-badge, .event-gamble-log, .evo-stage-label, .sts2-blessing-tag) {
  background: var(--ui-hover) !important;
  border-color: #568894 !important;
  color: var(--ui-text) !important;
}
#app .sts2-blessing-tag.is-risk { background: #482b2b !important; color: var(--ui-danger) !important; }
#app .sts2-ancient-overlay[data-act] {
  background: radial-gradient(ellipse at 50% 36%, #214352c2, #0e1720eb 80%);
  color: var(--ui-text);
}
#app .sts2-reward-overlay:not(.is-peeking) { background: linear-gradient(#0e172030, #142530ee 24%, #0e1720f6); }
#app :is(.sts2-ancient-pill, .sts2-ancient-mini-avatar, .sts2-blessing-ico, .battle-loot-list) {
  background: var(--ui-surface);
  border-color: var(--ui-line);
  color: var(--ui-text);
  box-shadow: var(--ui-shadow);
}

/* Forms, dialogs, tooltips, and the inspection controls outside card faces. */
#app .modal-backdrop { background: #080f18b8 !important; }
#app :is(.modal-panel .stage-item, .modal-panel .journal-event-choice, .modal-panel .event-choice-btn,
         .settings-style-preview, .journal-profile-stats span, .journal-profile-columns section,
         .journal-account, .modal-panel .spire-pill, .evo-confirm-diff, .dex-foil-panel) {
  background: var(--ui-control) !important;
  color: var(--ui-text) !important;
  border-color: var(--ui-line) !important;
  box-shadow: none !important;
}
#app :is(.journal-event-choice, .event-choice-btn):hover {
  background: var(--ui-hover) !important;
  border-color: #568894 !important;
}
#app .modal-panel :is(input:not([type="checkbox"], [type="radio"]), select) {
  background: var(--ui-control) !important;
  border-color: var(--ui-line) !important;
  color: var(--ui-text) !important;
}
#app .modal-panel :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--ui-focus); }
#app .modal-panel :is(.custom-mod-chip small, .journal-location, .settings-style-badge, .settings-style-check,
                     [style*="color:#64748b"], [style*="color:#475569"]) {
  color: var(--ui-muted) !important;
}
#app .modal-panel [style*="background:rgba(241,245,249"] { background: var(--ui-control) !important; }
#app .settings-style-card.is-active .settings-style-check { color: var(--ui-focus-text) !important; }
#app :is(.journal-error, .modal-panel .form-error) { color: var(--ui-danger) !important; }

.tooltip-box, .meta-toast,
#card-zoom3d-overlay :is(.zoom3d-toolbar, .zoom3d-foil-bar, .zoom3d-hint) {
  background: var(--ui-surface) !important;
  border-color: #568894 !important;
  color: var(--ui-text) !important;
  box-shadow: var(--ui-shadow) !important;
}
#card-zoom3d-overlay { background-color: #08121db8; }

#app .modal-panel {
  --uni-ink-soft: var(--ui-muted);
  --uni-ink-muted: var(--ui-muted);
}
#app .modal-panel [style*="background:rgba(248,250,252"],
#app .modal-panel .branch-choice-card [style*="background:var(--cream)"] {
  background: var(--ui-control) !important;
  border-color: var(--ui-line) !important;
}
#app .map-screen [style*="background:#fef3c7"] {
  background: var(--ui-selected) !important;
  border-color: var(--ui-focus) !important;
  color: var(--ui-focus-text) !important;
}
#app .map-screen :is([style*="color:#0f766e"], [style*="color:#15803d"]) { color: #98e8c5 !important; }
#app :is(.journal-profile li, .settings-section, .settings-style-preview) { border-color: var(--ui-line); }

#app .modal-panel .branch-choice-card {
  background: var(--ui-surface);
  color: var(--ui-text);
  border-color: var(--ui-line);
  box-shadow: none;
}
#app .modal-panel .branch-choice-card:hover {
  background: var(--ui-hover);
  border-color: var(--ui-focus);
}
#app .branch-catalyst-pill { background: var(--ui-heading); color: var(--ui-text); }
#app .sts2-blessing-desc .sts2-hl-red { color: var(--ui-danger); }
#app .sts2-blessing-desc .sts2-hl-green { color: #98e8c5; }
#app .sts2-blessing-desc .sts2-hl-gold { color: var(--ui-focus-text); }
#app[data-screen="battle"] .battle-screen::before {
  background: linear-gradient(180deg, transparent 56%, #101c255c 80%, #101c25b8 100%) !important;
}
#app[data-screen="battle"] .hand-row [data-play-uid]::before {
  background: var(--ui-control);
  border-color: #568894;
  color: var(--ui-text);
}

#app[data-screen="trainer"] .sts2-char-extra-row .gear-potion-pill,
#app[data-screen="trainer"] .sts2-char-deck-drawer :is(.roster-card, .roster-sp-box),
#app[data-screen="starter"] :is(.starter-ring-nav, .starter-stage-pill, .starter-avatar-btn) {
  background: var(--ui-control) !important;
  color: var(--ui-text) !important;
  border-color: var(--ui-line) !important;
  box-shadow: none !important;
}
#app[data-screen="trainer"] .sts2-char-deck-drawer .roster-card:hover,
#app[data-screen="starter"] :is(.starter-ring-nav, .starter-stage-pill, .starter-avatar-btn):hover {
  background: var(--ui-hover) !important;
  border-color: #568894 !important;
}
#app[data-screen="trainer"] .sts2-char-deck-drawer .roster-card.starter-slot,
#app[data-screen="starter"] :is(.starter-stage-pill.active, .starter-avatar-btn.selected) {
  background: var(--ui-selected) !important;
  border-color: var(--ui-focus) !important;
  color: var(--ui-focus-text) !important;
  box-shadow: none !important;
}
#app[data-screen="trainer"] .sts2-char-deck-drawer .roster-name,
#app[data-screen="starter"] .starter-topbar h1,
#app .settings-modal .settings-audio-row,
#app .run-center .center-action-card {
  color: var(--ui-text) !important;
  text-shadow: none !important;
}
#app[data-screen="trainer"] .sts2-char-deck-drawer .roster-eff,
#app .run-center .center-action-card small,
#app .battle-screen .pile-btn small,
#app .boss-balls-count {
  color: var(--ui-muted) !important;
}
#app .sts2-asc-unlock-hint { background: var(--ui-hover); border-color: var(--ui-line); }
#app .sts2-char-deck-section { border-color: var(--ui-line); }
#app .settings-style-card.is-active .settings-style-check { background: var(--ui-selected); }
#app .run-hud .pk-gold {
  background: #3e3520 !important;
  color: var(--ui-focus-text) !important;
  border-color: #796635 !important;
}
#app .run-hud-hp { color: var(--ui-danger); }
#app .enemy-speech-bubble {
  background: var(--ui-surface) !important;
  color: var(--ui-text) !important;
  border-color: #568894 !important;
  box-shadow: var(--ui-shadow) !important;
}
#app .enemy-speech-bubble::after { background: var(--ui-surface) !important; }
#app .modal-panel .mega-branch-card {
  background: var(--ui-control);
  color: var(--ui-text);
  border-color: var(--ui-line);
  box-shadow: none;
}
#app .modal-panel .mega-branch-card:hover { background: var(--ui-hover); border-color: var(--ui-focus); }
#app .modal-panel .mega-branch-effect { color: var(--ui-muted); }

#landscape-gate {
  background: radial-gradient(ellipse at 50% 35%, #254a58, var(--ui-bg) 65%) !important;
  color: var(--ui-text) !important;
}
#landscape-gate p { color: var(--ui-muted) !important; }
#landscape-gate .landscape-phone { border-color: var(--ui-focus) !important; }
#landscape-lock { background: var(--ui-heading) !important; color: var(--ui-text) !important; }

/* ============================================================================
   COMMERCIAL-GRADE META HUB OVERHAUL (Hall of Fame / Achievements / Cosmetics)
   ============================================================================ */

/* ---- Sidebar Profile Mini-Card & Nav ---- */
.meta-sidebar-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border: 1px solid var(--collection-line);
  border-radius: 10px;
  background: linear-gradient(145deg, #182d3a, #101e28);
}
.meta-sidebar-avatar {
  width: 48px !important;
  height: 48px !important;
  flex-shrink: 0;
  border-width: 3px !important;
}
.meta-sidebar-avatar img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain;
}
.meta-sidebar-profile { min-width: 0; }
.meta-sidebar-profile strong {
  display: block;
  font-size: 13px;
  color: var(--collection-highlight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta-sidebar-profile small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--collection-muted);
}
.collection-ui .meta-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 13px;
}
.meta-nav-label { font-size: 14px; font-weight: 800; }

/* ---- Page Header ---- */
.meta-page-header { margin-bottom: 18px; }
.collection-meta .meta-page-header h1 { margin: 0 0 4px; }
.meta-page-sub {
  margin: 0;
  color: var(--collection-muted);
  font-size: 13px;
}

/* ---- Hero KPI Grid ---- */
.meta-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.meta-kpi-card {
  padding: 13px 15px;
  border: 1px solid var(--collection-line);
  border-radius: 10px;
  background: linear-gradient(160deg, #172b38, #11202a);
}
.meta-kpi-label {
  font-size: 12px;
  color: var(--collection-muted);
  font-weight: 700;
}
.meta-kpi-val {
  margin-top: 4px;
  font: 900 24px/1.15 var(--font-ptcg-num), var(--font-ptcg-zh);
  color: var(--collection-ink);
}
.meta-kpi-val span {
  font-size: 13px;
  font-weight: 700;
  color: var(--collection-muted);
}
.meta-kpi-sub {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--collection-muted);
}
.meta-kpi-bar {
  height: 6px;
  margin-top: 8px;
  border-radius: 99px;
  background: #0b141c;
  overflow: hidden;
}
.meta-kpi-bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #34d399, #10b981);
}
.meta-kpi-bar.is-cyan > span { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.meta-kpi-bar.is-gold > span { background: linear-gradient(90deg, #facc15, #f59e0b); }

/* ---- Shared Toolbars, Search, Pills & Pagination ---- */
.meta-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 14px;
}
.meta-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.meta-pill-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.meta-pill-btn {
  appearance: none;
  border: 1px solid var(--collection-line);
  border-radius: 7px;
  background: var(--collection-control);
  color: var(--collection-ink);
  padding: 6px 11px;
  font: 700 12.5px/1.2 var(--font-ptcg-zh);
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.meta-pill-btn small { color: var(--collection-muted); margin-left: 3px; font-weight: 700; }
.meta-pill-btn:hover:not(:disabled) { background: #204252; border-color: #568894; }
.meta-pill-btn.is-active {
  background: #3b3924;
  border-color: var(--collection-yellow);
  color: var(--collection-highlight);
}
.meta-pill-btn.is-active small { color: var(--collection-highlight); }
.meta-pill-btn:disabled { opacity: .45; cursor: not-allowed; }

.meta-search-box { flex: 1 1 240px; min-width: 200px; }
.meta-search-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--collection-line);
  border-radius: 7px;
  background: var(--collection-control);
  color: var(--collection-ink);
  font: 500 13px/1.3 var(--font-ptcg-zh);
}
.meta-search-box input::placeholder { color: #7e98a8; }

.meta-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--collection-muted);
}
.meta-select-wrap select {
  padding: 6px 10px;
  border: 1px solid var(--collection-line);
  border-radius: 7px;
  background: var(--collection-control);
  color: var(--collection-ink);
  font: 700 12.5px/1.2 var(--font-ptcg-zh);
}

.meta-section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.meta-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 0 4px;
}
.meta-page-info { font-size: 12.5px; color: var(--collection-muted); }
.meta-page-info b { color: var(--collection-ink); }

/* ---- HALL OF FAME: Rich Trainer Dossier Cards ---- */
.hof-trainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 12px;
}
.hof-trainer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--collection-line);
  border-top: 3px solid var(--tr-accent, #568894);
  border-radius: 10px;
  background: linear-gradient(165deg, #172a36, #111f29);
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.hof-trainer-card:hover {
  transform: translateY(-2px);
  border-color: var(--tr-accent, #78c7db);
  background: linear-gradient(165deg, #1d3645, #142632);
}
.hof-trainer-card.is-selected {
  border-color: var(--collection-yellow);
  box-shadow: 0 0 0 1px var(--collection-yellow), 0 8px 22px #040b12a0;
}
.hof-trainer-card.tier-a10 { border-top-color: #facc15; }
.hof-trainer-card.tier-a5 { border-top-color: #38bdf8; }
.hof-trainer-card.tier-a0 { border-top-color: #34d399; }

.hof-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hof-card-avatar {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #355768;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--tr-accent, #568894) 28%, #101e27), #0c161e);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hof-card-avatar .hof-tr-sp {
  width: 54px;
  height: 54px;
  object-fit: contain;
  image-rendering: pixelated;
}
.hof-card-id { flex: 1; min-width: 0; }
.hof-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.hof-card-name-row strong {
  font-size: 16px;
  font-weight: 900;
  color: var(--collection-ink);
}
.hof-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--t-col, #64748b) 55%, #1e293b);
  background: color-mix(in srgb, var(--t-col, #64748b) 18%, #0e1720);
  color: var(--collection-ink);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.hof-type-pill img { width: 14px; height: 14px; object-fit: contain; }
.hof-card-role {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--collection-muted);
}
.hof-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.hof-asc-pill {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  background: #233845;
  color: #cbd5e1;
}
.hof-asc-pill.tier-a0 { background: #164035; color: #86efac; }
.hof-asc-pill.tier-a5 { background: #163a52; color: #7dd3fc; }
.hof-asc-pill.tier-a10 { background: #4a3b14; color: #fde047; }
.hof-unlock-tag { font-size: 11px; color: var(--collection-muted); }

.hof-card-showcase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #0d1820;
  border: 1px solid #243d4b;
}
.hof-mini-team {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hof-mini-mon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  image-rendering: pixelated;
}
.hof-mini-relic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 118px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #162834;
  border: 1px solid #2c4b5a;
  font-size: 11px;
  color: #d6e6ef;
}
.hof-mini-relic img { width: 18px; height: 18px; image-rendering: pixelated; flex-shrink: 0; }
.hof-mini-relic span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hof-pip-track {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 3px;
}
.hof-pip {
  height: 5px;
  border-radius: 3px;
  background: #0c151d;
  border: 1px solid #223845;
}
.hof-pip.is-open { background: #26485a; border-color: #42748b; }
.hof-pip.is-cleared { background: linear-gradient(90deg, #facc15, #f59e0b); border-color: #fde047; }

.hof-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--collection-muted);
  padding-top: 2px;
}

/* ---- HALL OF FAME: Expanded Trainer Dossier Panel ---- */
.hof-dossier-panel {
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid var(--tr-accent, #568894);
  border-left: 4px solid var(--tr-accent, #568894);
  border-radius: 12px;
  background: linear-gradient(155deg, #192f3d, #111e28);
  box-shadow: 0 10px 28px #040b1290;
}
.hof-dossier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2a4554;
}
.hof-dossier-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hof-dossier-portrait {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  border: 2px solid var(--tr-accent, #568894);
  background: radial-gradient(circle, color-mix(in srgb, var(--tr-accent, #568894) 30%, #101e27), #0b141c);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hof-dossier-portrait img { width: 68px; height: 68px; object-fit: contain; image-rendering: pixelated; }
.hof-dossier-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hof-dossier-title-row h2 { margin: 0; font-size: 22px; color: var(--collection-ink); }
.hof-role-sub { font-size: 12.5px; color: var(--collection-muted); }
.hof-dossier-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--collection-muted);
}
.hof-dossier-kpis b { color: var(--collection-ink); }
.hof-dossier-showcase {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hof-dossier-showcase img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 8px #040a10);
}
.hof-dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.hof-dossier-block h3, .hof-dossier-runs h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #b7d8e6;
}
.hof-asc-ladder {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 4px;
}
.hof-asc-step {
  text-align: center;
  padding: 5px 2px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #263f4d;
  background: #0d1720;
  color: #6b8594;
}
.hof-asc-step.is-unlocked { background: #193444; border-color: #467b92; color: #bae6fd; }
.hof-asc-step.is-cleared { background: #463814; border-color: #facc15; color: #fef08a; }

.hof-relic-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0e1a23;
  border: 1px solid #2a4654;
}
.hof-relic-box img { width: 32px; height: 32px; image-rendering: pixelated; flex-shrink: 0; }
.hof-relic-name { font-size: 13px; font-weight: 800; color: var(--collection-highlight); }
.hof-relic-desc { font-size: 12px; color: var(--collection-muted); margin-top: 2px; }

.hof-deck-chips, .hof-starter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hof-deck-chip, .hof-starter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 7px;
  background: #0e1a23;
  border: 1px solid #2a4654;
  font-size: 12px;
  color: var(--collection-ink);
}
.hof-deck-chip img, .hof-starter-chip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
}
.hof-deck-chip b { color: var(--collection-yellow); font-size: 11.5px; }

.hof-dossier-runs {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #2a4554;
}
.hof-dossier-run-list { display: grid; gap: 6px; }
.hof-dossier-run {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 11px;
  border-radius: 7px;
  background: #0e1a23;
  border: 1px solid #284250;
  font-size: 12.5px;
}
.hof-dossier-run.is-win { border-color: #3d7d69; }
.hof-dossier-empty { font-size: 12px; color: var(--collection-muted); }

.hof-run-row { border-left: 3px solid var(--tr-accent, #568894) !important; }
.hof-run-mode {
  display: inline-block;
  margin: 0 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #233b49;
  color: #bae6fd;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 800;
}
.hof-run-loss { color: #fca5a5; font-weight: 700; }
.hof-run-score b { color: var(--collection-highlight); }

/* ---- ACHIEVEMENTS: Hero Rank Panel, Tiers & Category Strip ---- */
.ach-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid #3f6677;
  border-radius: 12px;
  background: linear-gradient(135deg, #193241, #11212c);
}
.ach-rank-box { display: flex; align-items: center; gap: 14px; }
.ach-rank-badge {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 2px solid var(--collection-yellow);
  background: radial-gradient(circle at 35% 30%, #4b3d16, #1b170b);
  color: var(--collection-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 900 18px/1 var(--font-ptcg-num);
  box-shadow: 0 0 18px #facc1530;
}
.ach-rank-info { flex: 1; min-width: 0; }
.ach-rank-name { font-size: 20px; font-weight: 900; color: var(--collection-ink); }
.ach-rank-pts { font-size: 13px; color: var(--collection-muted); margin-top: 2px; }
.ach-rank-pts b { color: var(--collection-highlight); }
.ach-rank-next { font-size: 11.5px; color: #8fb3c4; margin-top: 5px; }

.ach-tier-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-content: center;
}
.ach-tier-stat {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border: 1px solid var(--collection-line);
  border-radius: 8px;
  background: #0e1a23;
  color: var(--collection-muted);
  font: 700 11.5px/1.2 var(--font-ptcg-zh);
  cursor: pointer;
}
.ach-tier-stat b { color: var(--collection-ink); font-size: 13px; }
.ach-tier-stat:hover { background: #1a3342; }
.ach-tier-stat.is-active { border-color: var(--collection-yellow); background: #3b3924; color: var(--collection-highlight); }
.ach-tier-dot { width: 10px; height: 10px; border-radius: 50%; }
.ach-tier-stat.tier-bronze .ach-tier-dot { background: #cd7f32; }
.ach-tier-stat.tier-silver .ach-tier-dot { background: #cbd5e1; }
.ach-tier-stat.tier-gold .ach-tier-dot { background: #facc15; }
.ach-tier-stat.tier-platinum .ach-tier-dot { background: #38bdf8; }
.ach-tier-stat.tier-legendary .ach-tier-dot { background: linear-gradient(135deg, #f472b6, #a855f7, #facc15); }

.meta-cat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.collection-meta .meta-ach-card {
  border-left: 4px solid #476675;
  gap: 12px;
}
.collection-meta .meta-ach-card.tier-bronze { border-left-color: #cd7f32; }
.collection-meta .meta-ach-card.tier-silver { border-left-color: #cbd5e1; }
.collection-meta .meta-ach-card.tier-gold { border-left-color: #facc15; }
.collection-meta .meta-ach-card.tier-platinum { border-left-color: #38bdf8; }
.collection-meta .meta-ach-card.tier-legendary { border-left-color: #c084fc; }
.collection-meta .meta-ach-card.unlocked {
  background: linear-gradient(160deg, #17302d, #13242b);
  border-color: #468a73;
}
.ach-icon-wrap {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 9px;
  background: #0d1820;
  border: 1px solid #2b4757;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ach-title-left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ach-tier-pill {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: #213745;
  color: #cbd5e1;
}
.ach-tier-pill.tier-bronze { background: #3b2818; color: #f4b179; }
.ach-tier-pill.tier-silver { background: #293644; color: #e2e8f0; }
.ach-tier-pill.tier-gold { background: #443714; color: #fde047; }
.ach-tier-pill.tier-platinum { background: #14364a; color: #7dd3fc; }
.ach-tier-pill.tier-legendary { background: #3b1c4a; color: #e879f9; }
.ach-progress-num { font-size: 12px; font-weight: 700; color: var(--collection-muted); }

/* ---- COSMETICS & SHINIES: Live Identity Preview Banner & Sub-Tabs ---- */
.cosmetic-preview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border: 1px solid #487583;
  border-radius: 12px;
  background: linear-gradient(135deg, #19313f, #11202b);
}
.cosmetic-preview-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cosmetic-live-avatar { width: 66px !important; height: 66px !important; flex-shrink: 0; }
.cosmetic-live-avatar img { width: 48px !important; height: 48px !important; object-fit: contain; }
.cosmetic-live-title { font-size: 18px; font-weight: 900; color: var(--collection-highlight); }
.cosmetic-live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--collection-muted);
}
.cosmetic-live-meta b { color: var(--collection-ink); }

.meta-subtab-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.meta-subtab-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid var(--collection-line);
  border-radius: 9px;
  background: var(--collection-control);
  color: var(--collection-ink);
  font: 800 13.5px/1.2 var(--font-ptcg-zh);
  cursor: pointer;
}
.meta-subtab-btn small { font-size: 11.5px; font-weight: 700; color: var(--collection-muted); }
.meta-subtab-btn:hover { background: #1e3d4c; }
.meta-subtab-btn.is-active {
  background: #3b3924;
  border-color: var(--collection-yellow);
  color: var(--collection-highlight);
}
.meta-subtab-btn.is-active small { color: var(--collection-highlight); }

/* ---- SHINY LIVING DEX (Scalable for 500+ Shinies) ---- */
.shiny-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 10px 14px;
  border: 1px solid #355868;
  border-radius: 8px;
  background: #12232f;
  font-size: 12.5px;
  color: var(--collection-muted);
}
.shiny-summary-strip b { color: var(--collection-highlight); }

.shiny-type-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.shiny-type-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--collection-line);
  border-radius: 99px;
  background: var(--collection-control);
  color: var(--collection-ink);
  font: 700 11.5px/1.2 var(--font-ptcg-zh);
  cursor: pointer;
}
.shiny-type-chip img { width: 14px; height: 14px; object-fit: contain; }
.shiny-type-chip b { color: var(--collection-yellow); font-size: 11px; }
.shiny-type-chip.is-zero { opacity: .42; }
.shiny-type-chip:hover { opacity: 1; background: #1e3d4c; }
.shiny-type-chip.is-active {
  opacity: 1;
  border-color: var(--collection-yellow);
  background: #3b3924;
  color: var(--collection-highlight);
}

.shiny-batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border: 1px solid #2e4e5e;
  border-radius: 8px;
  background: #10202b;
  font-size: 12px;
  color: var(--collection-muted);
}
.shiny-batch-bar b { color: var(--collection-ink); }

.shiny-dex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 11px;
}
.shiny-dex-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--collection-line);
  border-top: 3px solid var(--t-col, #facc15);
  border-radius: 10px;
  background: linear-gradient(165deg, #172b38, #101e27);
  transition: transform .12s, border-color .12s;
}
.shiny-dex-card.is-enabled { border-color: #a68b2c; }
.shiny-dex-card.is-disabled { opacity: .72; filter: saturate(.65); }
.shiny-dex-card:hover { transform: translateY(-2px); border-color: var(--collection-yellow); }

.shiny-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.shiny-dex-num {
  font: 800 11.5px/1 var(--font-ptcg-num);
  color: var(--collection-muted);
}
.shiny-type-icons { display: flex; align-items: center; gap: 3px; }
.shiny-star-ico { width: 18px; height: 18px; image-rendering: pixelated; }

.shiny-sprite-stage {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--t-col, #facc15) 22%, #0e1a23), #0b141c);
}
.shiny-card-info { text-align: center; }
.shiny-name-en { font-size: 11px; color: #84a0b0; margin-top: 1px; }
.shiny-evo-chain {
  font-size: 11px;
  color: var(--collection-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shiny-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-top: auto;
}

/* Compact 48/page grid for massive 100-500+ shiny collections */
.shiny-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px;
}
.shiny-compact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 7px;
  border: 1px solid var(--collection-line);
  border-top: 2px solid var(--t-col, #facc15);
  border-radius: 8px;
  background: #13232f;
}
.shiny-compact-card.is-enabled { border-color: #9e842a; }
.shiny-compact-card.is-disabled { opacity: .66; }
.shiny-compact-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shiny-type-mini { width: 13px; height: 13px; object-fit: contain; }
.shiny-compact-sp {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
}
.shiny-compact-name {
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--collection-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shiny-compact-acts {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.meta-mini-btn {
  appearance: none;
  padding: 3px 4px;
  border: 1px solid var(--collection-line);
  border-radius: 5px;
  background: #0d1820;
  color: var(--collection-muted);
  font: 700 10.5px/1.2 var(--font-ptcg-zh);
  cursor: pointer;
}
.meta-mini-btn.is-on { border-color: #facc15; color: #fef08a; background: #3b3924; }
.meta-mini-btn:hover:not(:disabled) { background: #1e3d4c; color: var(--collection-ink); }
.meta-mini-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---- COSMETIC CARDS (Frames, Card Skins, Holo Foils, Titles) ---- */
.meta-cosmetic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  gap: 11px;
}
.collection-meta .meta-skin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 15px 12px 13px;
}
.collection-meta .meta-skin-card.is-locked { opacity: .72; }
.collection-meta .meta-skin-card .meta-act-btn { width: 100%; margin-top: auto; }

.cosmetic-rarity-pill {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: .04em;
  background: #233846;
  color: #cbd5e1;
}
.meta-skin-card > .cosmetic-rarity-pill { position: absolute; top: 8px; right: 8px; }
.cosmetic-rarity-pill.rarity-common { background: #263947; color: #cbd5e1; }
.cosmetic-rarity-pill.rarity-rare { background: #163a52; color: #7dd3fc; }
.cosmetic-rarity-pill.rarity-epic { background: #36204f; color: #d8b4fe; }
.cosmetic-rarity-pill.rarity-legendary { background: #4a3813; color: #fde047; }
.cosmetic-rarity-pill.rarity-mythic { background: linear-gradient(90deg, #701a75, #b45309); color: #fef08a; }

.meta-holo-swatch {
  width: 78px;
  height: 54px;
  border-radius: 10px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 900 11px/1 var(--font-ptcg-num);
  letter-spacing: .12em;
  color: #ffffff;
  text-shadow: 0 1px 4px #000;
  box-shadow: inset 0 0 14px #ffffff45;
}

.meta-titles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 9px;
}
.meta-title-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--collection-line);
  border-radius: 9px;
  background: var(--collection-panel);
}
.meta-title-card.equipped { border-color: var(--collection-yellow); background: #252b22; }
.meta-title-card.is-locked { opacity: .68; }
.meta-title-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.meta-title-head strong { font-size: 14px; color: var(--collection-ink); }

/* ============================================================================
   22 AVATAR FRAME STYLES (Works across Home, HUD & Cosmetics Preview)
   ============================================================================ */
.pk-avatar-ring.frame-default, .sts2-profile-icon.frame-default, .meta-frame-preview.frame-default {
  background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45) !important;
}
.pk-avatar-ring.frame-aqua, .sts2-profile-icon.frame-aqua, .meta-frame-preview.frame-aqua {
  background: linear-gradient(135deg, #67e8f9, #0284c7, #1e3a8a) !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.72) !important;
}
.pk-avatar-ring.frame-volt, .sts2-profile-icon.frame-volt, .meta-frame-preview.frame-volt {
  background: linear-gradient(135deg, #fef08a, #eab308, #f97316) !important;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.78) !important;
}
.pk-avatar-ring.frame-frost, .sts2-profile-icon.frame-frost, .meta-frame-preview.frame-frost {
  background: linear-gradient(135deg, #e0f2fe, #38bdf8, #0369a1) !important;
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.75) !important;
}
.pk-avatar-ring.frame-verdant, .sts2-profile-icon.frame-verdant, .meta-frame-preview.frame-verdant {
  background: linear-gradient(135deg, #86efac, #10b981, #065f46) !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.72) !important;
}
.pk-avatar-ring.frame-psychic, .sts2-profile-icon.frame-psychic, .meta-frame-preview.frame-psychic {
  background: linear-gradient(135deg, #f472b6, #a855f7, #4338ca) !important;
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.8) !important;
}
.pk-avatar-ring.frame-steel, .sts2-profile-icon.frame-steel, .meta-frame-preview.frame-steel {
  background: linear-gradient(135deg, #f1f5f9, #64748b, #1e293b, #cbd5e1) !important;
  box-shadow: 0 0 16px rgba(148, 163, 184, 0.75) !important;
}
.pk-avatar-ring.frame-dragon, .sts2-profile-icon.frame-dragon, .meta-frame-preview.frame-dragon {
  background: linear-gradient(135deg, #f59e0b, #4f46e5, #1e1b4b) !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.82) !important;
}
.pk-avatar-ring.frame-sakura-ring, .sts2-profile-icon.frame-sakura-ring, .meta-frame-preview.frame-sakura-ring {
  background: linear-gradient(135deg, #ffe4e6, #f472b6, #db2777) !important;
  box-shadow: 0 0 18px rgba(244, 114, 182, 0.78) !important;
}
.pk-avatar-ring.frame-crimson-e4, .sts2-profile-icon.frame-crimson-e4, .meta-frame-preview.frame-crimson-e4 {
  background: linear-gradient(135deg, #fde047, #dc2626, #7f1d1d) !important;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.82) !important;
}
.pk-avatar-ring.frame-prism, .sts2-profile-icon.frame-prism, .meta-frame-preview.frame-prism {
  background: conic-gradient(#38bdf8, #818cf8, #f472b6, #fde047, #34d399, #38bdf8) !important;
  box-shadow: 0 0 22px rgba(129, 140, 248, 0.85) !important;
}
.pk-avatar-ring.frame-holo-crown, .sts2-profile-icon.frame-holo-crown, .meta-frame-preview.frame-holo-crown {
  background: linear-gradient(135deg, #fef08a, #2dd4bf, #a855f7, #f59e0b) !important;
  box-shadow: 0 0 22px rgba(45, 212, 191, 0.82) !important;
}
.pk-avatar-ring.frame-obsidian, .sts2-profile-icon.frame-obsidian, .meta-frame-preview.frame-obsidian {
  background: linear-gradient(135deg, #0f172a, #334155, #eab308, #0f172a) !important;
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.7) !important;
}
.pk-avatar-ring.frame-a5-royal, .sts2-profile-icon.frame-a5-royal, .meta-frame-preview.frame-a5-royal {
  background: linear-gradient(135deg, #bfdbfe, #2563eb, #1e3a8a, #93c5fd) !important;
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.88) !important;
}
.pk-avatar-ring.frame-celestial, .sts2-profile-icon.frame-celestial, .meta-frame-preview.frame-celestial {
  background: linear-gradient(135deg, #ffffff, #bae6fd, #fef08a, #a5b4fc) !important;
  box-shadow: 0 0 24px rgba(186, 230, 253, 0.9) !important;
}
.pk-avatar-ring.frame-arceus, .sts2-profile-icon.frame-arceus, .meta-frame-preview.frame-arceus {
  background: conic-gradient(#fef9c3, #f59e0b, #ffffff, #eab308, #fde047, #ffffff, #f59e0b, #fef9c3) !important;
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.95) !important;
}
.pk-avatar-ring.frame-sovereign, .sts2-profile-icon.frame-sovereign, .meta-frame-preview.frame-sovereign {
  background: conic-gradient(#dc2626, #f59e0b, #7c3aed, #facc15, #dc2626) !important;
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.95) !important;
}

/* ============================================================================
   12 CARD SKIN STYLES (Works on .poke-card & Cosmetics Swatches)
   ============================================================================ */
.poke-card.card-skin-classic, .meta-cardskin-swatch.card-skin-classic {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
  border-color: #94a3b8 !important;
}
.poke-card.card-skin-crimson, .meta-cardskin-swatch.card-skin-crimson {
  background: linear-gradient(180deg, #450a0a 0%, #7f1d1d 100%) !important;
  border-color: #f97316 !important;
  color: #fff7ed !important;
}
.poke-card.card-skin-crimson .card-header { color: #fed7aa !important; }
.poke-card.card-skin-crimson .card-desc { background: rgba(28, 10, 10, 0.68) !important; color: #ffedd5 !important; }

.poke-card.card-skin-ocean, .meta-cardskin-swatch.card-skin-ocean {
  background: linear-gradient(180deg, #0c4a6e 0%, #082f49 100%) !important;
  border-color: #38bdf8 !important;
  color: #f0f9ff !important;
}
.poke-card.card-skin-ocean .card-header { color: #bae6fd !important; }
.poke-card.card-skin-ocean .card-desc { background: rgba(8, 30, 48, 0.68) !important; color: #e0f2fe !important; }

.poke-card.card-skin-emerald, .meta-cardskin-swatch.card-skin-emerald {
  background: linear-gradient(180deg, #064e3b 0%, #022c22 100%) !important;
  border-color: #34d399 !important;
  color: #ecfdf5 !important;
}
.poke-card.card-skin-emerald .card-header { color: #a7f3d0 !important; }
.poke-card.card-skin-emerald .card-desc { background: rgba(4, 34, 26, 0.68) !important; color: #d1fae5 !important; }

.poke-card.card-skin-cyber, .meta-cardskin-swatch.card-skin-cyber {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 55%, #083344 100%) !important;
  border-color: #22d3ee !important;
  color: #ecfeff !important;
}
.poke-card.card-skin-cyber .card-header { color: #67e8f9 !important; }
.poke-card.card-skin-cyber .card-desc { background: rgba(15, 23, 42, 0.75) !important; color: #cffafe !important; }

.poke-card.card-skin-obsidian, .meta-cardskin-swatch.card-skin-obsidian {
  background: linear-gradient(180deg, #18181b 0%, #09090b 100%) !important;
  border-color: #eab308 !important;
  color: #fef9c3 !important;
}
.poke-card.card-skin-obsidian .card-header { color: #fde047 !important; }
.poke-card.card-skin-obsidian .card-desc { background: rgba(24, 24, 27, 0.8) !important; color: #f4f4f5 !important; }

.poke-card.card-skin-prism-glass, .meta-cardskin-swatch.card-skin-prism-glass {
  background: linear-gradient(135deg, #e0f2fe 0%, #f5d0fe 50%, #fef08a 100%) !important;
  border-color: #a855f7 !important;
}
.poke-card.card-skin-celestial, .meta-cardskin-swatch.card-skin-celestial {
  background: linear-gradient(150deg, #ffffff 0%, #fef9c3 48%, #e0f2fe 100%) !important;
  border-color: #f59e0b !important;
}

@media (max-width: 1080px) {
  .meta-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ach-hero-panel { grid-template-columns: minmax(0, 1fr); }
  .hof-dossier-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 690px) {
  .meta-sidebar-card { display: none; }
  .meta-subtab-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ach-tier-breakdown { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hof-asc-ladder { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ============================================================================
   HOME HERO INTERACTIVE SHOWCASE CARD & HOLO STUDIO STAGE
   ============================================================================ */
.collection-hero {
  overflow: visible;
}
.collection-mascot-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: center;
  perspective: 1100px;
  z-index: 2;
}
.collection-hero-card.poke-card {
  width: clamp(190px, 19vw, 246px) !important;
  height: auto !important;
  aspect-ratio: 0.718 / 1;
  margin: 0 !important;
  cursor: pointer;
  filter: drop-shadow(0 18px 28px rgba(4, 10, 18, 0.72));
}
.collection-mascot-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(12, 22, 31, 0.78);
  border: 1px solid rgba(125, 195, 218, 0.35);
  backdrop-filter: blur(6px);
  text-align: center;
}
.collection-mascot-caption span {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--collection-highlight);
}
.collection-mascot-caption small {
  font-size: 10.5px;
  color: var(--collection-muted);
}

/* Cosmetics Banner Live Interactive Card */
.cosmetic-preview-card-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  flex-shrink: 0;
}
.cosmetic-banner-card.poke-card {
  width: 126px !important;
  height: auto !important;
  aspect-ratio: 0.718 / 1;
  margin: 0 !important;
  cursor: pointer;
}

/* Shiny Dex Card 3-button layout */
.shiny-card-actions {
  grid-template-columns: 1fr 1fr;
}
.shiny-card-actions .shiny-holo-jump {
  grid-column: 1 / -1;
}

/* Interactive Holo Studio Panel */
.holo-studio-panel {
  display: grid;
  grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 20px 22px;
  margin-bottom: 16px;
  border: 1px solid #487583;
  border-radius: 14px;
  background:
    radial-gradient(circle at 22% 45%, rgba(56, 189, 248, 0.16), transparent 52%),
    linear-gradient(145deg, #162b38, #0f1c26);
  box-shadow: 0 12px 32px rgba(4, 10, 18, 0.55);
}
.holo-studio-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 10px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(250, 204, 21, 0.12), rgba(8, 15, 23, 0.72) 72%);
  border: 1px solid #2b4959;
  perspective: 1100px;
}
.holo-studio-card.poke-card {
  width: 228px !important;
  height: auto !important;
  aspect-ratio: 0.718 / 1;
  margin: 0 !important;
  cursor: pointer;
  filter: drop-shadow(0 16px 24px rgba(3, 8, 15, 0.72));
}
.holo-studio-hint {
  font-size: 11.5px;
  color: var(--collection-muted);
  text-align: center;
}

.holo-studio-controls {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}
.holo-studio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.holo-studio-head h2 {
  margin: 0 0 3px;
  font-size: 19px;
  font-weight: 900;
  color: var(--collection-ink);
}
.holo-studio-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--collection-muted);
}

.holo-studio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}
.holo-studio-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--collection-muted);
}
.holo-studio-label select {
  min-width: 220px;
  padding: 7px 10px;
  border: 1px solid var(--collection-line);
  border-radius: 7px;
  background: var(--collection-control);
  color: var(--collection-ink);
  font: 700 13px/1.2 var(--font-ptcg-zh);
}
.holo-studio-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.studio-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.studio-mon-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 6px;
  border: 1px solid var(--collection-line);
  border-radius: 99px;
  background: var(--collection-control);
  color: var(--collection-ink);
  font: 700 12px/1.2 var(--font-ptcg-zh);
  cursor: pointer;
}
.studio-mon-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
}
.studio-mon-chip em {
  font-style: normal;
  color: var(--collection-yellow);
  font-size: 11px;
}
.studio-mon-chip:hover { background: #1e3d4c; border-color: #568894; }
.studio-mon-chip.is-active {
  background: #3b3924;
  border-color: var(--collection-yellow);
  color: var(--collection-highlight);
}

.holo-studio-active-meta {
  padding: 10px 13px;
  border-radius: 9px;
  background: #0d1922;
  border: 1px solid #2b4858;
}
.holo-studio-active-meta strong {
  display: block;
  font-size: 13.5px;
  color: var(--collection-highlight);
  margin-bottom: 3px;
}

.holo-studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.holo-studio-actions .meta-act-btn {
  padding: 8px 13px;
  font-size: 12.5px;
}

.collection-meta .meta-skin-card.is-previewing {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8, 0 8px 20px rgba(14, 165, 233, 0.22);
}

@media (max-width: 960px) {
  .holo-studio-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 690px) {
  .collection-hero-card.poke-card { width: 168px !important; }
  .holo-studio-card.poke-card { width: 186px !important; }
  .cosmetic-banner-card.poke-card { width: 96px !important; }
}

/* ---- Real 12-Card Skin Gallery ---- */
.skin-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  margin-bottom: 12px;
  border: 1px solid #3a6070;
  border-radius: 10px;
  background: linear-gradient(145deg, #162a37, #101e28);
}
.skin-preview-left strong {
  font-size: 13.5px;
  color: var(--collection-highlight);
}
.skin-real-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 16px;
}
.skin-real-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 13px;
  border: 1px solid var(--collection-line);
  border-radius: 12px;
  background: linear-gradient(165deg, #172b38, #101d27);
}
.skin-real-item.equipped {
  border-color: var(--collection-yellow);
  box-shadow: 0 0 0 1px var(--collection-yellow), 0 10px 24px rgba(4, 10, 18, 0.55);
}
.skin-real-item.is-locked { opacity: .88; }
.skin-real-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.skin-real-head strong {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--collection-ink);
}
.skin-real-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  perspective: 1000px;
  padding: 2px 0;
}
.skin-gallery-card.poke-card {
  width: 208px !important;
  height: auto !important;
  aspect-ratio: 0.718 / 1;
  margin: 0 !important;
  cursor: pointer;
}
.skin-real-item .meta-skin-desc {
  width: 100%;
  text-align: center;
  font-size: 11.5px;
}
.skin-real-item .meta-act-btn {
  width: 100%;
  margin-top: auto;
}


