/* The collection uses the shared feature shell, HUD, scene and game dock. */
.student-game-console .student-pet-collection-content { min-width: 0; }
.pet-collection-page { color: #17325f; min-width: 0; width: 100%; line-height: 1.5; }
.pet-collection-page * { box-sizing: border-box; }
.pet-collection-page p { margin: 0; }
.pet-collection-page-header { margin-bottom: 12px; }
.pet-collection-kicker { display: inline-block; padding: 3px 9px; border: 2px solid #315a8933; border-radius: 99px; color: #315a89; background: #e1f6ff; font-size: 10px; font-weight: 1000; }
.student-game-console .pet-collection-page h3 { margin: 8px 0 4px !important; font-size: clamp(20px, 2vw, 26px) !important; line-height: 1.2; color: #17325f !important; }
.pet-collection-description { color: #496b95; font-size: 12px; line-height: 1.6; }
.pet-collection-overview { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; margin-bottom: 14px; }
.pet-collection-progress-card, .pet-fragment-wallet { min-width: 0; padding: 12px; border: 2px solid #315a8940; border-radius: 14px; background: linear-gradient(180deg,#fff,#edf8ff); box-shadow: 0 3px 0 #315a891f; }
.pet-collection-progress-heading, .pet-fragment-wallet-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; font-size: 11px; font-weight: 1000; }
.pet-collection-percent { border: 1px solid #315a8933; border-radius: 7px; padding: 2px 6px; background: #dff4ff; color: #315a89; }
.pet-collection-total, .pet-fragment-balance { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 5px 0 7px; font-variant-numeric: tabular-nums; }
.pet-collection-total strong, .pet-fragment-balance strong { color: #17325f; font-size: 30px; line-height: 1.15; }
.pet-collection-total > span { color: #496b95; font-size: 14px; }
.pet-collection-progress { height: 9px; border: 1px solid #315a8933; border-radius: 99px; overflow: hidden; background: #d9e8f4; }
.pet-collection-progress > span { display: block; height: 100%; background: linear-gradient(90deg,#49bbff,#2196f3); border-radius: inherit; transition: width .2s; }
.pet-collection-page .pet-collection-progress-label { margin-top: 7px; color: #496b95; font-size: 10px; line-height: 1.5; }
.pet-fragment-wallet { background: linear-gradient(180deg,#fff9df,#ffeaa4); border-color: #e1b841; }
.pet-fragment-target { font-size: 9px; color: #8a5a00; }
.pet-fragment-icon { color: #bd8508; font-size: 18px; }
.pet-fragment-balance > span:last-child { font-size: 11px; }
.pet-fragment-ready { color: #8a5a00; font-size: 11px; font-weight: 1000; }
.pet-collection-page .pet-fragment-rule { margin-top: 4px; color: #8a6a20; font-size: 9px; line-height: 1.5; }
.pet-collection-toolbar { display: grid; gap: 10px; padding: 12px 0; border-top: 2px solid #315a891f; border-bottom: 2px solid #315a891f; }
.pet-collection-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.student-game-console .pet-collection-page .pet-collection-filters button,
.student-game-console .pet-collection-page .pet-collection-pagination button { min-width: 0; min-height: 38px; font-size: 11px !important; line-height: 1.3 !important; padding: 7px 6px !important; border-radius: 10px !important; overflow-wrap: anywhere; }
.pet-collection-search { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 10px; border: 2px solid #315a8959; border-radius: 11px; background: #fff; }
.pet-collection-search > span { color: #315a89; font-size: 22px; }
.student-game-console .pet-collection-page .pet-collection-search input { min-width: 0 !important; width: 100% !important; min-height: 38px; margin: 0 !important; padding: 8px 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #17325f !important; font: inherit !important; font-size: 11px !important; box-shadow: none !important; }
.pet-collection-search:focus-within { outline: 3px solid #ffd54f; outline-offset: 2px; }
.student-game-console .pet-collection-page .pet-collection-search input:focus { outline: none !important; }
.pet-collection-results { min-width: 0; scroll-margin-top: 12px; }
.pet-collection-results-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; margin: 12px 0 10px; color: #496b95; font-size: 10px; }
.pet-collection-results-meta p { font-weight: 1000; color: #17325f; }
.pet-collection-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(128px,1fr)); gap: 10px; width: 100%; }
.pet-collection-card { display: flex; flex-direction: column; min-width: 0; padding: 9px; border: 2px solid #315a89; border-radius: 14px; background: linear-gradient(180deg,#fffdf2,#fff3c9); box-shadow: 0 3px 0 #315a8929; overflow: hidden; }
.pet-collection-card.is-locked { border-color: #9baec5; background: linear-gradient(180deg,#f7faff,#e8eef6); }
.pet-collection-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px; }
.pet-collection-number { color: #496b95; font-size: 9px; font-variant-numeric: tabular-nums; }
.pet-collection-status { padding: 2px 5px; border: 1px solid #e1b841; border-radius: 6px; background: #ffe68d; color: #73510a; font-size: 9px; font-weight: 1000; overflow-wrap: anywhere; }
.pet-collection-page .is-locked .pet-collection-status { border-color: #c2cfdf; background: #dfe7f0; color: #60738f; }
.student-game-console .pet-collection-page .pet-collection-inspect { display: flex !important; flex-direction: column; align-items: center; gap: 0; min-width: 0 !important; width: 100%; margin: 0 0 8px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: #17325f !important; text-shadow: none !important; }
.pet-collection-inspect { --classhub-button-lift: 0px; }
.pet-collection-art { display: grid; place-items: center; width: 100%; height: 106px; margin: 3px 0 4px; }
.pet-collection-page .pet-collection-art img { width: 100px !important; height: 100px !important; max-width: 100% !important; object-fit: contain; margin: 0 !important; filter: drop-shadow(0 5px 3px #17325f1f); }
.pet-collection-page .is-locked .pet-collection-art img { filter: grayscale(1) !important; opacity: .4; }
.pet-collection-inspect strong { font-size: 13px !important; font-weight: 1000; color: #17325f !important; line-height: 1.4; overflow-wrap: anywhere; }
.pet-collection-inspect small { display: block; min-height: 18px; margin-top: 3px; color: #496b95; font-size: 9px !important; line-height: 1.4; }
.student-game-console .pet-collection-page .pet-fragment-redeem { min-width: 0; width: 100%; min-height: 34px; margin-top: auto !important; padding: 6px 3px !important; font-size: 10px !important; line-height: 1.4 !important; border-radius: 9px !important; }
.pet-collection-hint { display: grid; place-items: center; min-height: 34px; margin-top: auto; color: #496b95; font-size: 10px; text-align: center; }
.pet-collection-empty { padding: 40px 8px; text-align: center; color: #496b95; }
.pet-collection-pagination { position: sticky; bottom: -1px; z-index: 8; display: flex; flex-direction: column; gap: 8px; padding: 12px 0 4px; margin-top: 14px; border-top: 2px solid #315a8933; background: #f7fbff; box-shadow: 0 -5px 10px #17325f0a; color: #496b95; font-size: 10px; }
.pet-collection-pagination > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pet-collection-range { text-align: center; }
/* Keep the catalog in the panel so a long page cannot stretch the pet scene. */
.student-game-console .console-page-content.student-game-screen-collection {
  display: grid !important;
  grid-template-rows: auto minmax(0,1fr) auto !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
}
.student-game-console .student-game-screen-collection .student-game-stage {
  grid-template-rows: minmax(0,1fr) !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.student-game-console .student-game-screen-collection .student-game-scene-layer,
.student-game-console .student-game-screen-collection .student-game-panel {
  height: 100% !important;
  min-height: 0 !important;
}
.student-game-console .student-game-screen-collection .student-game-panel {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
.student-game-console .student-game-screen-collection .student-game-panel > .console-page-content {
  height: auto !important;
  min-height: 100% !important;
  overflow: visible !important;
}
@media (min-width: 861px) {
  .student-game-console .student-game-screen-collection .student-game-bottom-dock {
    display: grid;
    grid-template-columns: repeat(9,minmax(0,1fr));
  }
}
@media (max-width: 860px) {
  .student-game-console .student-game-screen-collection .student-game-feature-hud {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 6px;
    padding: 6px;
  }
  .student-game-console .student-game-screen-collection .student-lobby-identity { grid-column: 1 / -1; }
  .student-game-console .student-game-screen-collection .student-game-stage { grid-template-columns: minmax(0,1fr) !important; }
  .student-game-console .student-game-screen-collection .student-game-scene-layer { display: none; }
}
@media (max-width: 620px) {
  .pet-collection-overview { gap: 8px; }
  .pet-collection-progress-card, .pet-fragment-wallet { padding: 9px; border-radius: 12px; }
  .pet-collection-total strong, .pet-fragment-balance strong { font-size: 26px; }
  .pet-collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { .pet-collection-progress > span { transition: none; } }
