/* The trainer's field guide lives separately from the battle screen. */
.site-header.trainer-site-header{height:78px;gap:18px;border-bottom:1px solid #e0e7d6}
.trainer-site-header .brand{font-size:26px;gap:10px;min-width:0;flex-shrink:0}
.trainer-site-header .brand-mark{height:42px;width:42px;border-radius:14px}
.trainer-site-header .brand-mark svg{width:33px;height:33px}
.trainer-site-header .brand small{font-size:7px;letter-spacing:1.7px;margin-top:5px}
.trainer-site-header .header-actions{gap:9px;min-width:0;flex-shrink:0}
.trainer-site-header .trainer-button{min-height:39px;padding:5px 12px 5px 5px;max-width:none;gap:8px;font-size:12px;white-space:nowrap}
.trainer-site-header .trainer-button #trainer-name{max-width:none;overflow:visible;text-overflow:clip;white-space:nowrap;flex-shrink:0}
.trainer-site-header .trainer-avatar{display:grid;height:28px;min-width:28px;font-size:12px}
.trainer-site-header .icon-button{height:37px;width:37px;flex-shrink:0}
.trainer-site-header .trainer-button[aria-pressed='true'],.trainer-site-header .trainer-button[aria-current='page']{background:#eaf1dc;border-color:#baca9e;color:#4a6b3c}
.trainer-site-header+.compact-game-header{padding-top:11px;min-height:70px}

.trainer-page{padding:26px 0 34px}
#trainer-page-title:focus,#legendary-vault:focus{outline:none}
.trainer-page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}
.trainer-page-heading>div{min-width:0}
.trainer-page-heading .eyebrow{color:#8b9a71;letter-spacing:1.5px;margin-bottom:6px}
.trainer-page-heading h1{font-size:32px;font-weight:900;letter-spacing:-.9px;line-height:1.2}
.trainer-page-heading p:not(.eyebrow),.trainer-page-subtitle{font-size:12px;line-height:1.65;color:#7d8b70;margin-top:7px;max-width:610px}
.trainer-back{display:flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-height:42px;margin-top:5px;padding:9px 14px;border:1px solid #dce5cf;border-bottom-width:2px;border-radius:11px;background:#edf3e2;color:#647e4b;font-size:11px;font-weight:900;line-height:1.4;text-align:center}
.trainer-back:hover{background:#e3edcf}
.trainer-back .icon{width:15px;height:15px}

.trainer-passport{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:19px;padding:23px 25px;border:1px solid #d9e3c8;border-radius:21px;background:linear-gradient(115deg,#fffdf3 0%,#f4f6e9 52%,#edf3df 100%);box-shadow:0 5px 20px #3c51210a;position:relative}
.passport-avatar{height:67px;width:67px;border:4px solid #fffdf5;border-radius:19px;outline:1px solid #d6e0c2;display:grid;place-items:center;flex-shrink:0;background:linear-gradient(145deg,#e1edc6,#cbdba5);color:#658447;box-shadow:0 4px 10px #496b2412;font-size:30px;font-weight:900;line-height:1}
.passport-avatar .icon{height:32px;width:32px}
.trainer-passport h2,.passport-name{font-size:25px;font-weight:900;letter-spacing:-.6px;line-height:1.25;overflow-wrap:anywhere}
.passport-title{display:block;color:var(--honor-ink,#6d8653);font-size:12px;font-weight:900;line-height:1.5;margin-top:5px}
.trainer-passport p{font-size:11px;line-height:1.6;color:#859273;margin-top:5px}
.trainer-passport .eyebrow{font-size:8px;letter-spacing:1.1px;line-height:1.5;color:#92a176;margin:0 0 4px}
.trainer-passport .passport-title{font-size:12px;font-weight:900;color:var(--honor-ink,#6d8653);line-height:1.5;margin-top:5px}
.trainer-passport .text-button{display:inline-flex;justify-content:flex-start;min-height:29px;margin-top:4px;font-size:10px;color:#6f8655}
.collection-totals{display:flex;align-items:center;justify-content:center;gap:22px;padding-left:25px;border-left:1px solid #dce6cb}
.collection-totals>div{min-width:51px;text-align:center}
.collection-totals strong{display:block;font-size:26px;font-weight:900;letter-spacing:-.6px;line-height:1.25;color:#57733e;font-variant-numeric:tabular-nums}
.collection-totals strong small{font-size:11px;font-weight:700;letter-spacing:0;color:#94a17e;white-space:nowrap}
.collection-totals span{display:block;margin-top:4px;font-size:9px;font-weight:800;line-height:1.45;color:#83916e}
.trainer-quick-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0 20px}
.trainer-quick-links button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:8px 12px;border:1px solid #dce6ce;border-radius:9px;background:#eef4e2;color:#738b55;font-size:10px;font-weight:800;line-height:1.4}
.trainer-quick-links button:hover{background:#e4edcf;border-color:#ccdcb8}
.trainer-quick-links .icon{width:14px;height:14px}
.trainer-passport .trainer-quick-links{grid-column:1 / -1;margin:0;padding-top:13px;border-top:1px solid #dce6cb}

.trainer-page .section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:16px}
.trainer-page .section-heading>div{min-width:0}
.trainer-page .section-heading h2{font-size:19px;font-weight:900;letter-spacing:-.4px;line-height:1.3}
.trainer-page .section-heading h3{font-size:15px;font-weight:900;letter-spacing:-.2px;line-height:1.4;color:#5b7549}
.trainer-page .section-heading p{font-size:11px;line-height:1.65;color:#859174;margin-top:4px;max-width:660px}
.trainer-page .section-heading>span,.trainer-page .section-heading>.section-count,.trainer-page .section-heading>.collection-count{flex-shrink:0;padding:6px 10px;border:1px solid #e0e7d3;border-radius:20px;background:#eef3e4;color:#7a8c62;font-size:10px;font-weight:900;line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap}
.legendary-vault{padding:22px;margin:23px 0 26px;border:1px solid #e8ddbd;border-radius:21px;background:linear-gradient(130deg,#fbf9ed,#f8f5e7);box-shadow:0 4px 20px #725d2705}
.legendary-vault .section-heading h2{color:#7f7044}
.legendary-vault .section-heading p{color:#9a8d6c}
.legendary-vault .section-heading>span,.legendary-vault .section-heading>.section-count,.legendary-vault .section-heading>.collection-count{background:#f4edd2;border-color:#e5d9b2;color:#9c8551}
.legendary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.legendary-card{position:relative;isolation:isolate;min-width:0;text-align:center;padding:16px 13px 13px;border:1px solid #e5ddc7;border-radius:15px;background:#fffdf6;box-shadow:0 3px 8px #826e2c04;overflow:hidden}
.legendary-card:before{content:'✦';position:absolute;right:12px;top:10px;font-size:16px;color:#d9c89c;pointer-events:none}
.legendary-card[data-earned='true']{border-color:#dbc27c;background:radial-gradient(ellipse at 50% 17%,#fff3bf,#fffdf3 65%);box-shadow:inset 0 0 0 2px #fff9e6,0 4px 12px #9475230a}
.legendary-card[data-earned='true']:before{color:#c5a148;text-shadow:0 0 8px #e6cf7b66}
.legendary-card[data-earned='false']{background:#f9f8ef;border-style:dashed}
.legendary-label{display:block;padding:0 13px;font-size:7px;font-weight:900;letter-spacing:.9px;line-height:1.5;color:#aa9563;margin-bottom:6px}
.legendary-card[data-earned='true'] .legendary-label{color:#b28c33}
.legendary-art{display:grid;place-items:center;min-height:91px;margin:2px 0 0}
.legendary-card img{display:block;width:91px;height:91px;margin:0 auto 7px;object-fit:contain;filter:drop-shadow(0 5px 3px #77602b18)}
.legendary-card[data-earned='false'] img{filter:brightness(0);opacity:.14}
.legendary-card h3,.legendary-card>strong{display:block;font-size:16px;font-weight:900;line-height:1.3;letter-spacing:-.25px;color:#7b6c44;margin-top:2px;overflow-wrap:anywhere}
.legendary-card p{font-size:10px;color:#958b70;line-height:1.55;margin:4px 0 0}
.legendary-card>small,.legendary-path{display:block;font-size:9px;font-weight:800;line-height:1.5;color:#a29266;margin-top:4px}
.legendary-card .slot-hint{min-height:29px;margin-top:5px;color:#a1967b}
.legendary-mode-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:11px;padding-top:10px;border-top:1px solid #ece4cd}
.legendary-mode-list>span{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:25px;padding:4px 3px;border:1px solid #e9e3d2;border-radius:7px;background:#f4f2e7;color:#a29a83;font-size:8px;font-weight:800;line-height:1.35;white-space:nowrap}
.legendary-mode-list>span[data-complete='true']{border-color:#cfdeb6;background:#edf3dd;color:#76924f}
.legendary-mode-list>span[data-complete='true']:last-child{border-color:#d5c8e6;background:#f0ebf8;color:#8e77aa}
.legendary-mode-list .icon{height:10px;width:10px;flex-shrink:0}
.legendary-mode-list b{font-size:10px;line-height:1;font-weight:900}
.legendary-card .legendary-progress{margin:8px 0 0;color:#a29168;font-size:9px;font-weight:800;line-height:1.5}
.legendary-card[data-earned='true'] .legendary-progress{color:#8f9c57}
.legendary-challenge{display:flex;align-items:center;justify-content:center;gap:6px;min-height:37px;width:100%;padding:8px 9px;margin-top:11px;border:1px solid #e4d6ae;border-bottom-width:2px;border-radius:9px;background:#f6edcf;color:#967e43;font-size:10px;font-weight:900;line-height:1.45}
.legendary-challenge:hover{background:#f0e4ba;border-color:#d8c58f}

.collection-controls{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:25px 0 23px}
.collection-controls>label,.collection-controls .field-label{display:block;min-width:0;font-size:10px;font-weight:900;color:#7a896b;line-height:1.5}
.collection-controls label>span{display:block;margin-bottom:6px}
.collection-controls select{display:block;min-width:230px;max-width:100%;margin-top:6px;padding:11px 13px;border:1px solid #dce5cf;border-radius:11px;background:#fffdf8;color:#4d6741;font-size:13px;font-weight:800;line-height:1.5}
.collection-tabs{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #e0e7d5;border-radius:12px;background:#eaf0df;max-width:100%}
.collection-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:80px;min-height:35px;padding:8px 13px;border:1px solid transparent;border-radius:8px;background:transparent;color:#81936c;font-size:10px;font-weight:900;line-height:1.35;white-space:nowrap}
.collection-tabs button:hover{color:#4d6f3c;background:#f3f7ed}
.collection-tabs button[aria-pressed='true'],.collection-tabs button.selected{color:#557a3f;background:#fffef8;border-color:#d7e2c6;box-shadow:0 2px 5px #425e1e08}
.collection-tabs button span{font-size:9px;font-variant-numeric:tabular-nums;color:#94a282}
.collection-path{min-width:0;margin:24px 0 30px;scroll-margin-top:18px}
.collection-path+.collection-path{border-top:1px solid #dfe6d4;margin-top:32px;padding-top:24px}
.trainer-page .path-collection-heading{align-items:center;padding:3px 0 3px 13px;margin-bottom:19px;border-left:3px solid var(--collection-color,#88a166)}
.trainer-page .path-collection-heading .eyebrow{font-size:8px;font-weight:900;letter-spacing:1px;line-height:1.45;color:var(--collection-color,#88a166);margin:0 0 4px}
.trainer-page .path-collection-heading h2{color:var(--collection-color,#68864e)}
.path-collection-heading .text-button{flex-shrink:0;justify-content:center;max-width:42%;min-height:36px;padding:5px 2px;font-size:10px;line-height:1.5;text-align:right;color:var(--collection-color,#78945d)}
.path-collection-heading .text-button:hover{text-decoration:underline;text-underline-offset:3px}
.collection-section{margin:24px 0 30px}
.collection-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.collection-grid.partner-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.pokemon-slot{position:relative;min-width:0;text-align:center;padding:14px 9px 12px;border:1px solid #dfe7d4;border-radius:14px;background:#fffef9;box-shadow:0 3px 10px #324c2004}
.pokemon-slot[data-owned='true']{border-color:#d4e1bf;background:linear-gradient(180deg,#fffef8 64%,#f4f8e9);box-shadow:0 4px 12px #415e1f07}
.pokemon-slot[data-owned='false']{border-style:dashed;border-color:#dce2d1;background:#f1f4eb;box-shadow:none}
.slot-number{position:absolute;left:10px;top:9px;display:block;color:#a3ad95;font-size:8px;font-weight:800;letter-spacing:.7px;line-height:1.4;font-variant-numeric:tabular-nums}
.collection-art{width:100px;height:100px;max-width:100%;display:grid;place-items:center;margin:8px auto 7px;position:relative}
.collection-art img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 3px #35502317)}
.pokemon-slot[data-owned='false'] .collection-art img{filter:brightness(0);opacity:.13}
.pokemon-slot>strong,.pokemon-slot h3{display:block;font-size:13px;font-weight:900;letter-spacing:-.2px;line-height:1.35;color:#4b6540;overflow-wrap:anywhere}
.pokemon-slot>small{display:block;color:#9aa68a;font-size:8px;font-weight:800;line-height:1.5;margin-top:3px;letter-spacing:.6px;text-transform:uppercase}
.pokemon-slot[data-owned='false']>strong,.pokemon-slot[data-owned='false'] h3{color:#88937c}
.slot-status{display:inline-flex;align-items:center;justify-content:center;gap:4px;max-width:100%;min-height:21px;margin-top:8px;padding:4px 7px;border-radius:6px;background:#e8f0d8;color:#7a9452;font-size:8px;font-weight:900;line-height:1.35}
.slot-status .icon{width:10px;height:10px}
.pokemon-slot[data-owned='false'] .slot-status,.slot-status.empty{background:#e8eddf;color:#9ba88a}
.slot-status.evolved,.slot-status[data-kind='evolved']{background:#e9edf8;color:#8090b1}
.slot-status.chosen,.slot-status[data-kind='chosen']{background:#fbefd9;color:#b29966}
.slot-hint{display:block;min-height:27px;margin-top:6px;color:#99a38c;font-size:9px;line-height:1.5;overflow-wrap:anywhere}
.pokemon-slot[data-owned='true'] .slot-hint{color:#879a72}
.collection-grid.partner-grid .collection-art{width:112px;height:112px;margin-top:8px;margin-bottom:9px}
.collection-grid.partner-grid .pokemon-slot>strong,.collection-grid.partner-grid .pokemon-slot h3{font-size:14px}
.collection-placeholder,.pokeball-placeholder{position:relative;display:block;width:51px;height:51px;border:2px solid #d0d9c4;border-radius:50%;background:linear-gradient(#e3e9d9 48%,#d0d9c4 48%,#d0d9c4 53%,#f4f7ec 53%);opacity:.7}
.collection-placeholder:after,.pokeball-placeholder:after{content:'';position:absolute;left:50%;top:50%;width:12px;height:12px;transform:translate(-50%,-50%);border:2px solid #cbd5be;border-radius:50%;background:#f4f7eb}
.collection-art .empty-slot-icon,.collection-art .empty-slot-mark{position:absolute;right:2px;bottom:3px;display:grid;place-items:center;width:21px;height:21px;border:2px solid #f4f6ed;border-radius:50%;background:#dfe7d3;color:#91a578;font-size:10px;font-weight:900}
.collection-art .empty-slot-icon .icon{width:11px;height:11px}
.collection-empty-state{padding:18px 20px;border:1px dashed #d5dfc7;border-radius:13px;background:#f0f4e7;text-align:center;color:#8b9b78;font-size:11px;line-height:1.7;grid-column:1 / -1}
.collection-empty-state strong{display:block;font-size:14px;font-weight:900;color:#6e8a51;margin-bottom:4px}
.collection-note{font-size:11px;line-height:1.7;color:#8b9a77;margin:15px 0 0}
.legendary-unlock{display:flex;align-items:center;gap:16px;padding:14px 15px;margin:17px 0;border:1px solid #e2ca84;border-radius:15px;background:linear-gradient(115deg,#fff4c8,#fff9e7);box-shadow:inset 0 0 0 2px #fffbed;text-align:left}
.legendary-unlock>img{display:block;width:94px;height:94px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 5px 3px #a3862521)}
.legendary-unlock>div{min-width:0}
.legendary-unlock .dialog-eyebrow{display:block;color:#b3923d;font-size:8px;letter-spacing:1px;line-height:1.5;margin-bottom:4px}
.legendary-unlock h3{font-size:18px;font-weight:900;letter-spacing:-.3px;line-height:1.3;color:#8d7436;overflow-wrap:anywhere}
.legendary-unlock p{font-size:11px;line-height:1.65;color:#9a895a;margin-top:5px}
.result-inner>.catch-note{display:inline-block;max-width:100%;padding:7px 11px;margin:10px 0 2px;border:1px solid #d9e5bf;border-radius:9px;background:#eef5df;color:#7a9454;font-size:11px;font-weight:800;line-height:1.5}

@media(max-width:1000px){
  .trainer-passport{gap:15px;padding:21px}
  .collection-totals{gap:17px;padding-left:19px}
  .collection-totals strong{font-size:24px}
  .collection-grid{gap:10px}
  .collection-art{width:91px;height:91px}
  .pokemon-slot{padding:13px 7px 11px}
  .pokemon-slot>strong,.pokemon-slot h3{font-size:12px}
}
@media(max-width:800px){
  .site-header.trainer-site-header{height:73px;gap:12px}
  .trainer-site-header .brand{font-size:24px;gap:8px}
  .trainer-site-header .brand-mark{height:39px;width:39px;border-radius:13px}
  .trainer-site-header .brand-mark svg{width:31px;height:31px}
  .trainer-site-header .brand small{font-size:7px;letter-spacing:1.4px}
  .trainer-page{padding-top:23px}
  .trainer-page-heading{gap:15px;margin-bottom:18px}
  .trainer-page-heading h1{font-size:29px}
  .trainer-page-heading p:not(.eyebrow),.trainer-page-subtitle{font-size:11px}
  .trainer-passport{grid-template-columns:auto minmax(0,1fr);gap:14px 17px;padding:20px}
  .passport-avatar{width:62px;height:62px;font-size:28px;border-radius:17px}
  .trainer-passport h2,.passport-name{font-size:24px}
  .collection-totals{grid-column:1 / -1;justify-content:space-around;gap:14px;padding:14px 0 0;border-left:0;border-top:1px solid #dce6cb}
  .collection-totals>div{flex:1}
  .collection-totals strong{font-size:25px}
  .legendary-vault{padding:18px;margin-top:21px}
  .legendary-grid{gap:10px}
  .legendary-card{padding:14px 10px 11px}
  .legendary-card img{width:83px;height:83px}
  .legendary-art{min-height:83px}
  .legendary-card h3,.legendary-card>strong{font-size:14px}
  .legendary-mode-list{gap:3px}
  .legendary-mode-list>span{font-size:7px;gap:2px}
  .collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .collection-art{width:105px;height:105px}
  .pokemon-slot{padding:14px 9px 12px}
  .pokemon-slot>strong,.pokemon-slot h3{font-size:13px}
}
@media(max-width:650px){
  .trainer-page-heading h1{font-size:27px}
  .trainer-back{font-size:10px;max-width:39%;padding:9px 12px}
  .trainer-page .section-heading h2{font-size:18px}
  .trainer-page .section-heading p{font-size:10px}
  .legendary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .legendary-card{padding:15px 11px 12px}
  .legendary-card img{width:91px;height:91px}
  .legendary-art{min-height:91px}
  .legendary-mode-list{gap:5px}
  .legendary-mode-list>span{font-size:8px;min-height:26px}
  .collection-controls{flex-direction:column;align-items:stretch;gap:12px;margin:22px 0 21px}
  .collection-controls>label{width:100%}
  .collection-controls select{width:100%;min-width:0;font-size:16px;padding:10px 12px}
  .collection-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .collection-tabs button{min-width:0;min-height:39px;padding:8px 10px;font-size:11px}
  .collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .collection-art{height:105px;width:105px}
  .slot-hint{font-size:9px}
}
@media(max-width:480px){
  .site-header.trainer-site-header{height:68px;gap:8px}
  .trainer-site-header .brand{font-size:21px;gap:7px;letter-spacing:-.8px}
  .trainer-site-header .brand-mark{height:34px;width:34px;border-radius:11px}
  .trainer-site-header .brand-mark svg{width:28px;height:28px}
  .trainer-site-header .brand small{font-size:6px;letter-spacing:1.1px;margin-top:4px}
  .trainer-site-header .header-actions{gap:6px}
  .trainer-site-header .trainer-button{min-height:35px;font-size:10px;gap:5px;padding:4px 8px 4px 4px}
  .trainer-site-header .trainer-avatar{width:25px;height:25px;min-width:25px;font-size:11px}
  .trainer-site-header .icon-button{height:32px;width:32px}
  .trainer-site-header .icon-button .icon{height:17px;width:17px}
  .trainer-site-header+.compact-game-header{min-height:0;padding-top:10px}
  .trainer-page{padding:20px 0 24px}
  .trainer-page-heading{gap:12px;margin-bottom:16px}
  .trainer-page-heading h1{font-size:25px;letter-spacing:-.6px}
  .trainer-page-heading .eyebrow{font-size:7px;letter-spacing:1.1px;margin-bottom:6px}
  .trainer-page-heading p:not(.eyebrow),.trainer-page-subtitle{font-size:10px;line-height:1.65;margin-top:6px}
  .trainer-back{font-size:9px;min-height:40px;padding:8px 10px;gap:5px;border-radius:10px;margin-top:3px;max-width:40%}
  .trainer-back .icon{height:13px;width:13px}
  .trainer-passport{gap:12px 14px;padding:17px;border-radius:17px}
  .passport-avatar{height:55px;width:55px;font-size:25px;border-radius:15px;border-width:3px}
  .trainer-passport h2,.passport-name{font-size:22px;letter-spacing:-.4px}
  .passport-title{font-size:10px;margin-top:4px}
  .trainer-passport p{font-size:10px}
  .trainer-passport .eyebrow{font-size:7px;letter-spacing:.9px;margin-bottom:4px}
  .trainer-passport .passport-title{font-size:10px;margin-top:4px}
  .trainer-passport .text-button{font-size:9px;min-height:28px}
  .collection-totals{padding-top:13px;gap:10px}
  .collection-totals strong{font-size:24px}
  .collection-totals strong small{font-size:9px}
  .collection-totals span{font-size:8px;margin-top:3px}
  .trainer-quick-links{gap:7px;margin:10px 0 17px}
  .trainer-quick-links button{min-height:36px;font-size:9px;padding:7px 10px;gap:5px}
  .trainer-passport .trainer-quick-links{margin:0;padding-top:11px}
  .trainer-page .section-heading{gap:10px;margin-bottom:13px}
  .trainer-page .section-heading h2{font-size:17px;letter-spacing:-.3px}
  .trainer-page .section-heading h3{font-size:14px}
  .trainer-page .section-heading p{font-size:9px;line-height:1.65}
  .trainer-page .section-heading>span,.trainer-page .section-heading>.section-count,.trainer-page .section-heading>.collection-count{font-size:9px;padding:5px 8px}
  .legendary-vault{margin:19px 0 22px;padding:15px 12px;border-radius:17px}
  .legendary-grid{gap:9px}
  .legendary-card{padding:12px 8px 10px;border-radius:12px}
  .legendary-card:before{font-size:13px;right:9px;top:8px}
  .legendary-card img{width:79px;height:79px;margin-bottom:6px}
  .legendary-art{min-height:79px}
  .legendary-label{font-size:6px;letter-spacing:.65px;padding:0 8px;margin-bottom:4px}
  .legendary-card h3,.legendary-card>strong{font-size:13px;letter-spacing:-.15px}
  .legendary-card p{font-size:9px;line-height:1.5;margin-top:4px}
  .legendary-card>small,.legendary-path{font-size:8px;line-height:1.5}
  .legendary-mode-list{gap:3px;margin-top:9px;padding-top:8px}
  .legendary-mode-list>span{font-size:7px;min-height:24px;gap:2px;padding:4px 2px;border-radius:6px}
  .legendary-mode-list .icon{height:9px;width:9px}
  .legendary-mode-list b{font-size:9px}
  .legendary-card .legendary-progress{font-size:8px;margin-top:7px}
  .legendary-challenge{min-height:37px;padding:7px 6px;margin-top:9px;font-size:9px;border-radius:8px;gap:4px}
  .collection-controls{gap:10px;margin:20px 0}
  .collection-controls>label,.collection-controls .field-label{font-size:9px}
  .collection-controls select{margin-top:5px;border-radius:10px;padding:10px 11px}
  .collection-tabs{gap:4px;padding:4px;border-radius:11px}
  .collection-tabs button{font-size:10px;min-height:39px;padding:7px 6px;border-radius:7px}
  .collection-tabs button span{font-size:8px}
  .collection-path{margin:20px 0 25px}
  .collection-path+.collection-path{padding-top:21px;margin-top:26px}
  .trainer-page .path-collection-heading{padding-left:10px;margin-bottom:16px;gap:10px}
  .trainer-page .path-collection-heading .eyebrow{font-size:7px;letter-spacing:.8px;margin-bottom:4px}
  .path-collection-heading .text-button{font-size:9px;max-width:36%}
  .collection-section{margin:21px 0 25px}
  .collection-grid{gap:8px}
  .pokemon-slot{padding:12px 6px 10px;border-radius:11px}
  .slot-number{font-size:7px;left:8px;top:8px;letter-spacing:.5px}
  .collection-art{height:86px;width:86px;margin:7px auto 6px}
  .pokemon-slot>strong,.pokemon-slot h3{font-size:11px;letter-spacing:-.1px;line-height:1.35}
  .pokemon-slot>small{font-size:7px;letter-spacing:.45px;margin-top:3px}
  .slot-status{font-size:7px;min-height:20px;padding:4px 5px;margin-top:7px;border-radius:5px}
  .slot-hint{font-size:8px;line-height:1.5;min-height:25px;margin-top:5px}
  .collection-grid.partner-grid .collection-art{width:88px;height:88px;margin-top:7px;margin-bottom:7px}
  .collection-grid.partner-grid .pokemon-slot>strong,.collection-grid.partner-grid .pokemon-slot h3{font-size:11px}
  .collection-art .empty-slot-icon,.collection-art .empty-slot-mark{height:18px;width:18px;right:0;bottom:2px;font-size:9px}
  .collection-art .empty-slot-icon .icon{width:9px;height:9px}
  .collection-placeholder,.pokeball-placeholder{width:44px;height:44px}
  .collection-placeholder:after,.pokeball-placeholder:after{width:11px;height:11px}
  .collection-empty-state{padding:16px 14px;font-size:10px;line-height:1.7}
  .collection-empty-state strong{font-size:13px}
  .collection-note{font-size:10px}
  .legendary-unlock{gap:10px;padding:12px 10px;margin:15px 0;border-radius:12px}
  .legendary-unlock>img{height:74px;width:74px}
  .legendary-unlock .dialog-eyebrow{font-size:7px;letter-spacing:.7px;margin-bottom:4px}
  .legendary-unlock h3{font-size:16px;letter-spacing:-.2px}
  .legendary-unlock p{font-size:10px;line-height:1.6;margin-top:4px}
  .result-inner>.catch-note{font-size:10px;padding:6px 9px;border-radius:8px;margin-top:9px}
}
@media(max-width:380px){
  .trainer-site-header .brand{font-size:19px;gap:6px;letter-spacing:-.7px}
  .trainer-site-header .brand-mark{height:32px;width:32px}
  .trainer-site-header .brand-mark svg{width:26px;height:26px}
  .trainer-site-header .brand small{font-size:5.5px;letter-spacing:1px}
  .trainer-site-header .header-actions{gap:5px}
  .trainer-site-header .trainer-button{font-size:9px;gap:4px;padding:4px 7px 4px 4px}
  .trainer-site-header .trainer-avatar{height:23px;width:23px;min-width:23px;font-size:10px}
  .trainer-site-header .icon-button{height:31px;width:31px}
  .trainer-page-heading h1{font-size:24px}
  .trainer-page-heading p:not(.eyebrow),.trainer-page-subtitle{font-size:9px}
  .trainer-passport{padding:15px;gap:12px}
  .trainer-passport h2,.passport-name{font-size:21px}
  .legendary-vault{padding:14px 10px}
  .legendary-card{padding:11px 7px 9px}
  .legendary-card img{width:74px;height:74px}
  .legendary-art{min-height:74px}
  .legendary-card p{font-size:8px}
  .legendary-mode-list{gap:2px}
  .legendary-mode-list>span{font-size:6.5px}
  .collection-grid{gap:7px}
  .collection-art{height:79px;width:79px}
  .collection-grid.partner-grid .collection-art{height:81px;width:81px}
  .pokemon-slot>strong,.pokemon-slot h3,.collection-grid.partner-grid .pokemon-slot>strong,.collection-grid.partner-grid .pokemon-slot h3{font-size:10px}
}
@media(max-width:340px){
  .trainer-site-header .trainer-avatar{display:none}
  .trainer-site-header .trainer-button{padding:7px 8px;min-height:32px}
  .trainer-page-heading{flex-wrap:wrap;gap:9px}
  .trainer-back{max-width:none;margin-top:0}
  .legendary-grid{grid-template-columns:minmax(0,1fr)}
  .legendary-card img{height:89px;width:89px}
  .legendary-art{min-height:89px}
  .legendary-card h3,.legendary-card>strong{font-size:15px}
  .legendary-card p{font-size:10px}
  .legendary-mode-list>span{font-size:9px}
  .collection-grid,.collection-grid.partner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .collection-art,.collection-grid.partner-grid .collection-art{height:95px;width:95px}
  .pokemon-slot>strong,.pokemon-slot h3,.collection-grid.partner-grid .pokemon-slot>strong,.collection-grid.partner-grid .pokemon-slot h3{font-size:12px}
  .slot-hint{font-size:9px}
  .legendary-unlock{gap:8px;padding:11px 9px}
  .legendary-unlock>img{height:62px;width:62px}
  .legendary-unlock h3{font-size:15px}
  .legendary-unlock p{font-size:9px}
}
