/* v135 dark-only: a new menu shell. Navigation never shares the content scroller. */
.collection-panel.collection-panel {
  color-scheme:dark;
  --text:#deebf1;--muted:#97aec0;--line:#294054;--accent:#83d9c2;
  position:fixed;inset:0;width:100%;height:100dvh;max-height:100dvh;
  display:flex;flex-direction:column;padding:0;overflow:hidden;
  color:var(--text);background:#091624;border:0;isolation:isolate;
}
.collection-panel .collection-head {order:0;flex:none;align-items:center;margin:0;
  padding:calc(var(--ui-safe-top) + 14px) calc(var(--ui-safe-right) + 20px) 14px calc(var(--ui-safe-left) + 20px);
  background:#132438;border-bottom:1px solid var(--line);}
.collection-panel .menu-eyebrow {font-size:9px;font-weight:850;letter-spacing:.17em;color:#83d9c2;margin-bottom:4px;}
.collection-panel .collection-head h2 {font-size:23px;font-weight:850;letter-spacing:-.045em;line-height:1.1;margin:0 0 5px;}
.collection-panel .collection-head .muted {font-size:12px;color:#97aec0;}
.collection-panel .collection-head .round {width:44px;height:44px;min-height:44px;background:#1d3449;border:0;color:#c4dbe5;font-size:24px;box-shadow:none;}
.collection-panel .menu-body {order:1;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding:12px calc(var(--ui-safe-right) + 16px) 24px calc(var(--ui-safe-left) + 16px);scrollbar-width:thin;}
.collection-panel .storage-view {max-width:760px;margin:0 auto;}
.collection-panel .storage-tabs {order:2;flex:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  gap:0;margin:0;padding:5px var(--ui-safe-right) calc(var(--ui-safe-bottom) + 5px) var(--ui-safe-left);
  overflow:visible;background:#0b1a2b;border:0;box-shadow:0 -5px 22px #0b253b10;}
.collection-panel .storage-tabs .storage-tab {grid-column:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;min-width:0;min-height:54px;flex:none;padding:6px 1px;border:0;border-radius:0;color:#8da8bd;background:none;box-shadow:none;font-size:10px;font-weight:750;line-height:1.15;}
.collection-panel .storage-tab svg {width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.collection-panel .storage-tab span {white-space:nowrap;}
.collection-panel .storage-tab small {display:none;}
.collection-panel .storage-tab.active {background:none;color:#93e4cf;}
.collection-panel .storage-tab.active svg {filter:drop-shadow(0 0 6px #93e4cf38);}
.collection-panel .storage-tab.active::after {display:none;}
.collection-panel #friendsMenuCount {display:block;position:absolute;right:calc(50% - 25px);top:2px;min-width:15px;
  padding:2px 4px;border-radius:9px;background:#24554f;color:#bce9df;font-size:9px;line-height:1;}
.collection-panel .companion-summary {padding:11px 13px;margin:0 0 14px;border:1px solid #2b4c53;border-radius:12px;
  background:#15323c;color:#9bddce;font-size:12px;line-height:1.5;}
.collection-panel input:not([type=checkbox]),.collection-panel select {background:#132438;color:#deebf1;border:1px solid #294054;
  border-radius:12px;min-height:46px;font-size:16px;padding:10px 12px;box-shadow:none;}
.collection-panel input::placeholder {color:#7f99ae;}
.collection-panel .storage-tools,.collection-panel .field-guide-tools {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px;}
.collection-panel .storage-tools input,.collection-panel .field-guide-tools input {grid-column:1/-1;}
.collection-panel .storage-tools select,.collection-panel .field-guide-tools select {width:100%;min-width:0;font-size:12px;min-height:44px;}
.collection-panel .collection-filters {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:0;margin:0 0 12px;overflow:visible;}
.collection-panel .collection-filter {display:block;min-width:0;min-height:44px;padding:7px 2px;border:1px solid #294054;
  background:#132438;color:#97aec0;border-radius:10px;font-size:10px;white-space:normal;line-height:1.2;}
.collection-panel .collection-filter[aria-pressed=true] {background:#28566a;border-color:#28566a;color:#132438;}
.collection-panel .collection-results {font-size:11px;color:#97aec0;margin:0 0 12px;}
.collection-panel .collection-reset {color:#83d9c2;min-height:44px;}
.collection-panel .collection-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;align-items:start;}
.collection-panel .collection-grid .collection-card {display:block;position:relative;min-width:0;padding:0;overflow:hidden;
  background:#132438;border:1px solid #294054;border-radius:17px;box-shadow:0 3px 12px #102e3b06;}
.collection-panel .collection-card.companion {border:2px solid #5ab597;}
.collection-panel .collection-card .collection-thumb {width:100%;height:auto;aspect-ratio:1.18;min-height:0;border:0!important;
  border-radius:0;box-shadow:none!important;display:block;}
.collection-panel .collection-thumb img {display:block;width:100%;height:100%;object-fit:cover;}
.collection-panel .collection-thumb-playlabel {font-size:9px;padding:4px 7px;bottom:8px;right:8px;letter-spacing:.04em;}
.collection-panel .collection-copy {padding:11px 11px 4px;}
.collection-panel .collection-card .num {display:flex;justify-content:space-between;gap:4px;color:#8ba6b9;font-size:9px;line-height:1.4;}
.collection-panel .card-cp {color:#deebf1;font-weight:800;white-space:nowrap;}
.collection-panel .collection-card .pet-name {font-size:15px;line-height:1.2;letter-spacing:-.02em;font-weight:850;margin:5px 0;overflow-wrap:anywhere;}
.collection-panel .collection-card .species-name {font-size:10px;color:#97aec0;}
.collection-panel .collection-card .meta {font-size:10px;line-height:1.5;color:#97aec0;}
.collection-panel .collection-card[data-rarity=rare] .collection-copy>.meta:not(.affinity-meta) {color:#c9a5e3;}
.collection-panel .collection-card[data-rarity=uncommon] .collection-copy>.meta:not(.affinity-meta) {color:#dfc78a;}
.collection-panel .pet-badges {gap:4px;margin-top:6px;}
.collection-panel .pet-badge {font-size:8px;min-height:18px;border-radius:5px;background:#1c3044;color:#97aec0;padding:2px 5px;}
.collection-panel .pet-badge.favorite {background:#3b3327;color:#e4c584;}
.collection-panel .pet-badge.companion {background:#163d3f;color:#9cdec7;}
.collection-panel .pet-menu {border-top:1px solid #253a4d;margin-top:8px;}
.collection-panel .pet-menu summary {list-style:none;min-height:44px;display:flex;justify-content:space-between;align-items:center;
  padding:10px 12px;color:#adbfcc;font-size:11px;font-weight:750;cursor:pointer;}
.collection-panel .pet-menu summary::-webkit-details-marker {display:none;}
.collection-panel .pet-menu[open] summary {color:#83d9c2;background:#19333e;}
.collection-panel .pet-menu .pet-actions {display:grid;grid-template-columns:1fr;gap:6px;margin:0;padding:8px;border:0;}
.collection-panel .pet-action {min-height:44px;padding:9px 4px;font-size:11px;border-radius:9px;border:1px solid #294054;background:#182c40;color:#deebf1;}
.collection-panel .pet-action.active {background:#15323c;color:#9bddce;border-color:#2b4c53;}
.collection-panel .pet-action.release {color:#f0a6b0;background:#3a2637;}
.collection-panel .bag-note {padding:13px;border:0;border-radius:12px;font-size:12px;line-height:1.6;color:#adbfcc;background:#132c3b;margin-bottom:16px;}
.collection-panel .bag-grid {gap:12px;margin:0;}
.collection-panel .bag-card {background:#132438;border:1px solid #294054;border-radius:16px;padding:14px;box-shadow:none;}
.collection-panel .bag-copy strong {font-size:15px;color:#deebf1;}
.collection-panel .bag-copy small {font-size:11px;line-height:1.6;color:#97aec0;}
.collection-panel .bag-qty {color:#83d9c2;font-size:18px;}
.collection-panel .bag-actions-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;grid-column:1/-1;padding-top:8px;}
.collection-panel .bag-use,.collection-panel .bag-discard {min-height:44px;font-size:12px;border-radius:10px;padding:9px;margin:0;border:1px solid #294054;}
.collection-panel .bag-use {background:#28566a;color:#132438;}
.collection-panel .bag-discard {background:#1a2c40;color:#97aec0;}
.collection-panel .field-guide-progress {background:#15323c;border:0;padding:18px;border-radius:16px;margin-bottom:16px;}
.collection-panel .field-guide-progress h3 {font-size:17px;color:#9bddce;}
.collection-panel .field-guide-progress p,.collection-panel .field-guide-owned,.collection-panel .field-guide-counts span {color:#adbfcc;}
.collection-panel .field-guide-counts strong {color:#83d9c2;font-size:30px;}
.collection-panel .field-guide-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.collection-panel .field-guide-card {padding:12px;background:#132438;border:1px solid #294054;border-radius:16px;gap:5px;}
.collection-panel .field-guide-card.undiscovered {background:#101f30;border-style:dashed;}
.collection-panel .field-guide-portrait {margin:0 0 5px;border-radius:10px;}
.collection-panel .field-guide-number {width:auto;height:auto;display:block;margin:0;background:none;font-size:10px;color:#97aec0;}
.collection-panel .field-guide-status {position:static;max-width:none;text-align:left;font-size:9px;color:#83d9c2;}
.collection-panel .field-guide-card h4 {font-size:16px;color:#deebf1;}
.collection-panel .field-guide-rarity,.collection-panel .field-guide-detail {font-size:10px;color:#97aec0;}
.collection-panel .field-guide-show {background:#15323c;color:#9bddce;border:0;min-height:44px;}
.collection-panel .settings-card,.collection-panel .credits-card {margin:0 0 14px;background:#132438;border:1px solid #294054;border-radius:16px;padding:17px;box-shadow:none;}
.collection-panel .settings-card h3,.collection-panel .credits-card h3 {font-size:17px;color:#deebf1;letter-spacing:-.02em;}
.collection-panel .settings-action {border:0;border-top:1px solid #253a4d;border-radius:0;min-height:64px;padding:13px 0;background:none;color:#deebf1;text-align:left;}
.collection-panel .settings-action span {font-size:14px;font-weight:750;}
.collection-panel .settings-action small,.collection-panel .pvp-setting small,.collection-panel .pvp-fine,.collection-panel .credits-card p {color:#97aec0;font-size:12px;line-height:1.6;}
.collection-panel .pvp-setting {display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #253a4d;padding:14px 0;}
.collection-panel .pvp-setting>span {flex:1;min-width:0;font-size:14px;font-weight:700;}
.collection-panel input[type=checkbox] {flex:none;width:24px;height:24px;min-height:24px;accent-color:#83d9c2;}
.collection-panel .menu-account-actions {display:grid;gap:10px;padding-top:4px;}
.collection-panel .menu-account-actions .secondary,.collection-panel .credits-back-button {min-height:48px;background:#132438;color:#deebf1;border:1px solid #294054;border-radius:12px;}
.collection-panel #logoutButton {color:#f0a6b0;}
.collection-panel .credits-links a {color:#83d9c2;}
.collection-panel .social-content.pvp-dialog {width:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:none;color:#deebf1;box-shadow:none;}
.collection-panel .social-content .pvp-header {display:none;}
.collection-panel .social-tabs {gap:6px;}
.collection-panel .social-tabs button {min-height:44px;border:1px solid #294054;background:#132438;color:#adbfcc;}
.collection-panel .social-tabs button[aria-pressed=true] {background:#28566a;color:#132438;border-color:#28566a;}
.collection-panel .social-code,.collection-panel .social-friend,.collection-panel .social-offers>div {background:#132438;border:1px solid #294054;border-radius:14px;}
.collection-panel .social-code label,.collection-panel .social-add label,.collection-panel .social-friend-head small,.collection-panel .social-history {color:#97aec0;}
.collection-panel .social-code input {color:#83d9c2;background:#19333e;font-size:15px;}
.collection-panel .pvp-secondary {background:#132438;color:#deebf1;border:1px solid #294054;border-radius:10px;min-height:44px;}
.collection-panel .pvp-primary {background:#24554f;color:#bce9df;border:0;border-radius:10px;min-height:44px;}
.collection-panel .social-friend-actions {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.collection-panel .social-friend-actions button {font-size:12px!important;}
.collection-panel .pvp-empty,.collection-panel .storage-empty {color:#97aec0;background:#101f30;border:1px dashed #334b60;border-radius:14px;line-height:1.6;}
.collection-panel button:focus-visible,.collection-panel summary:focus-visible {outline:3px solid #37b68e;outline-offset:-3px;}
@media(min-width:650px) {
  .collection-panel .collection-head {padding-left:max(24px,calc((100vw - 760px)/2));padding-right:max(24px,calc((100vw - 760px)/2));}
  .collection-panel .storage-tabs {padding-left:max(16px,calc((100vw - 760px)/2));padding-right:max(16px,calc((100vw - 760px)/2));}
  .collection-panel .collection-grid,.collection-panel .field-guide-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:340px) {.collection-panel .menu-body {padding-left:10px;padding-right:10px;}.collection-panel .collection-grid {gap:8px;}.collection-panel .collection-copy {padding:9px 8px 3px;}.collection-panel .collection-card .pet-name {font-size:15px;}}
