/* The monkey rank trail shares the playground's warm, leafy palette. */
.header-actions{flex-wrap:wrap;justify-content:flex-end}.player-rank-summary{display:block;min-height:0;border:0;padding:24px 0 0}
.rank-panel{display:flex;align-items:center;gap:23px;border:1px solid #e1dfc7;border-radius:26px;background:#f4f3e3;padding:24px;margin-bottom:22px;position:relative;overflow:hidden;color:#455d3e;box-shadow:0 5px 0 #e7e4d0}
.rank-portrait{position:relative;flex:0 0 136px;border-radius:50%;background:radial-gradient(circle,#fffbe9 40%,#dfe8c9 41%,#dfe8c9 67%,transparent 68%)}
.rank-avatar{display:block;object-fit:contain;width:84px;height:84px;flex-shrink:0}.rank-portrait .rank-avatar{width:136px;height:136px}.level-sticker{position:absolute;bottom:-4px;left:50%;transform:translateX(-50%);background:var(--rank-accent,#578851);color:#fffdf0;border:3px solid #fffbe9;box-shadow:0 3px 0 #55624422;padding:6px 13px;border-radius:22px;white-space:nowrap;font-size:14px;letter-spacing:1.4px;font-weight:900}
.rank-panel-copy{flex:1;min-width:0}.rank-panel-copy .eyebrow{font-size:16px;letter-spacing:1.5px}.rank-panel h2{font-size:30px;line-height:1.2;letter-spacing:-.8px;margin:9px 0 12px;overflow-wrap:anywhere}.rank-panel h2 span{display:block;font-size:19px;letter-spacing:-.3px;color:var(--rank-accent,#578851);margin-top:3px}
.rank-counts{display:flex;flex-wrap:wrap;gap:7px 15px;font-size:16px;color:#777d5f}.rank-counts b{font-size:16px;color:#476b44}.next-rank{font-size:16px;font-weight:900;color:#717955;line-height:1.7;margin:13px 0 3px}.rank-target{font-size:16px;color:#828569;line-height:1.5}.rank-panel-actions{display:grid;gap:5px;flex:0 0 145px}.rank-panel-actions .button{font-size:16px;white-space:nowrap;padding:12px 15px}.rank-panel-actions .text-button{font-size:16px;padding:10px 0}
.game-rank{display:flex;gap:10px;align-items:center;margin:0 0 8px}.game-rank .rank-avatar{width:55px;height:55px;background:var(--card-soft);border-radius:50%;padding:2px}.game-rank>span{min-width:0}.game-rank-title{display:block;font-size:16px;font-weight:900;color:var(--card-ink);line-height:1.5}.game-rank-points{display:block;font-size:16px;color:#8b836b;line-height:1.5;margin-top:3px}.game-rank-next{display:block;font-size:16px;line-height:1.6;color:#827e62;min-height:35px;margin-bottom:13px}
.monkey-figure>img.monkey-rank-outfit{position:absolute;inset:0;width:100%;height:100%;z-index:2;object-fit:contain;pointer-events:none}.has-shop-hat>.monkey-rank-outfit{clip-path:polygon(0 27%,100% 27%,100% 100%,0 100%)}
.rank-scope-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.rank-scope-tabs .shop-tab{font-size:16px;padding:11px 14px}.rank-how{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:27px 0 35px;font-size:16px;line-height:1.8;color:#7c7e63}.rank-how>span{padding:17px;border-radius:17px;background:#faf3dc}.rank-how b{color:#65734e}.rank-trail-heading h2{font-size:30px;letter-spacing:-.8px;color:#485e3e;margin:10px 0}.rank-trail-heading p{font-size:18px;line-height:1.7;color:#8b8166;margin:0 0 25px}
.rank-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:35px}.rank-card{position:relative;border:1px solid #e5e0c9;border-radius:23px;background:#fffcf2;text-align:center;padding:19px 16px 17px;box-shadow:0 4px 0 #e7e2cd;display:flex;flex-direction:column;align-items:center;min-width:0}.rank-card.is-current{border:2px solid #679464;background:#f2f5e4;box-shadow:0 4px 0 #b8cc99}.rank-card.is-earned{background:#f7f6e8}.rank-card-level{font-size:16px;font-weight:900;letter-spacing:1.8px;color:#8b836b;align-self:flex-start}.rank-card-status{align-self:flex-end;position:absolute;right:12px;top:16px;font-size:18px;letter-spacing:.5px;color:#989077;border-radius:15px;background:#f1ead4;padding:5px 7px;font-weight:900}.rank-card.is-current .rank-card-status{color:#fff9e9;background:#66905f}.rank-card.is-earned .rank-card-status{color:#5a7d49;background:#e1ebce}.rank-card .rank-avatar{width:146px;height:146px;max-width:100%;margin:8px auto 6px}.rank-card h3{font-size:16px;line-height:1.3;letter-spacing:-.4px;color:#596d43;margin:5px 0 9px}.rank-look{font-size:16px;color:#98866b;line-height:1.6;margin:0 0 15px;flex:1}.rank-card-requirements{display:flex;flex-wrap:wrap;justify-content:center;gap:5px 10px;font-size:16px;font-weight:900;color:#958052;border-top:1px solid #ede6d0;padding-top:12px;width:100%}.rank-game-overview{padding:24px;margin:0 0 20px}.rank-game-overview .rank-avatar{width:68px;height:68px}.rank-game-overview .progress-game-info{flex:1;min-width:0}.rank-game-overview .game-totals{align-items:center;font-size:16px;flex-wrap:wrap}.rank-game-overview .small-button{font-size:16px;padding:9px 13px;white-space:nowrap}
.profile-preview{display:flex;gap:19px;align-items:center;border-radius:20px;background:#f2f2df;padding:15px}.profile-preview .rank-avatar{width:106px;height:106px}.profile-preview-name{display:block;font-size:23px;line-height:1.4;overflow-wrap:anywhere;color:#5a7146}.profile-preview-rank{display:block;font-size:16px;color:#9d8559;margin-top:4px}.player-profile-form .form-label{margin:6px 0 -6px}.profile-form-message:empty{display:none}.profile-form-message{font-size:18px;color:#ad6c43;line-height:1.6;margin:0}.gender-choices{border:0;margin:0;padding:0;min-width:0}.gender-choices legend{font-size:16px;font-weight:900;margin:4px 0 13px;color:#566645}.gender-choices legend small{font-size:16px;font-weight:400;color:#8d886e}.gender-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.gender-choice{position:relative;display:flex;flex-direction:column;align-items:center;padding:8px 4px 9px;border:2px solid #e1e0c9;border-radius:15px;background:#fffdf2;font-size:16px;font-weight:900;color:#898067;text-align:center;cursor:pointer;line-height:1.3;min-height:98px}.gender-choice input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;margin:0}.gender-choice .rank-avatar{width:57px;height:57px;margin-bottom:6px}.gender-choice:has(input:checked){background:#e8efd6;border-color:#709668;color:#5a7b48}.gender-choice:has(input:focus-visible){outline:3px solid #c49745;outline-offset:3px}.player-row .rank-avatar{width:57px;height:57px}.player-row>span:nth-of-type(1){flex:1;min-width:0}.player-row strong{overflow-wrap:anywhere}.player-current{font-size:16px;color:#7e8c60;white-space:nowrap}.player-row small{font-size:16px;line-height:1.5}
.promotions{display:grid;gap:13px;margin:24px 0}.promotion-card{display:flex;align-items:center;text-align:left;gap:17px;background:#fbf0cb;border:2px solid #e4cb7c;border-radius:23px;padding:17px 21px;position:relative;overflow:hidden}.promotion-card .rank-avatar{width:96px;height:96px}.promotion-card h2{font-size:22px;line-height:1.25;letter-spacing:-.5px;color:#8b763b;margin:9px 0}.promotion-card p{font-size:18px!important;margin:0!important;color:#9e8a57!important}.promotion-card .eyebrow{font-size:16px;letter-spacing:1.3px}.promotion-sparkles{font-size:22px;letter-spacing:7px;color:#d8ac43;position:absolute;right:8px;top:7px;transform:rotate(10deg);animation:rankTwinkle 1.6s ease-in-out 3;pointer-events:none}.result-rank-note{font-size:18px!important;line-height:1.9!important;color:#8b8166!important}
@keyframes rankTwinkle{0%,100%{opacity:.4;transform:scale(.8) rotate(10deg)}50%{opacity:1;transform:scale(1.1) rotate(-8deg)}}
@media(max-width:1080px){.rank-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.rank-panel{gap:18px;padding:21px}.rank-portrait{flex-basis:124px}.rank-portrait .rank-avatar{width:124px;height:124px}.rank-panel h2{font-size:27px}.rank-panel h2 span{font-size:17px}.rank-counts{gap:6px 11px}.header-actions{max-width:65%}.nav-link{font-size:16px}}
@media(max-width:760px){.header-actions{max-width:none;justify-content:flex-start;gap:5px}.rank-panel{flex-wrap:wrap;gap:17px;padding:19px}.rank-portrait{flex-basis:113px}.rank-portrait .rank-avatar{width:113px;height:113px}.rank-panel-actions{flex-basis:100%;display:flex;align-items:center;gap:19px;padding-left:130px}.rank-panel h2{font-size:25px}.rank-panel h2 span{font-size:16px}.rank-panel-copy .eyebrow{font-size:16px}.rank-counts{font-size:16px}.rank-counts b{font-size:16px}.next-rank{font-size:16px}.rank-target{font-size:16px}.rank-how{gap:9px;font-size:16px;margin:23px 0 30px}.rank-how>span{padding:12px}.rank-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rank-card{padding:15px 11px}.rank-card .rank-avatar{height:118px;width:118px;margin-top:13px}.rank-card h3{font-size:16px}.rank-look{font-size:16px}.rank-card-status{font-size:18px;top:13px;right:9px;padding:4px}.rank-card-level{font-size:16px}.rank-card-requirements{font-size:16px}.game-rank{gap:7px}.game-rank .rank-avatar{width:47px;height:47px}.game-rank-title{font-size:16px}.game-rank-points{font-size:16px}.game-rank-next{font-size:16px}}
@media(max-width:540px){.player-rank-summary{padding-top:17px}.rank-panel{padding:17px 13px;gap:12px;border-radius:22px}.rank-portrait{flex-basis:87px}.rank-portrait .rank-avatar{width:87px;height:87px}.level-sticker{font-size:14px;padding:5px 9px;border-width:2px}.rank-panel h2{font-size:22px;margin:8px 0}.rank-panel h2 span{font-size:16px}.rank-panel-copy .eyebrow{font-size:16px;line-height:1.5;letter-spacing:1px}.rank-counts{font-size:16px;gap:5px 9px}.rank-counts b{font-size:16px}.next-rank{font-size:16px;margin:9px 0 3px}.rank-target{font-size:16px}.rank-panel-actions{padding-left:99px;gap:9px;flex-wrap:wrap}.rank-panel-actions .button{font-size:16px;min-height:41px;padding:10px 13px}.rank-panel-actions .text-button{font-size:16px}.game-rank{gap:5px}.game-rank .rank-avatar{width:37px;height:37px}.game-rank-title{font-size:16px;line-height:1.4}.game-rank-points{font-size:16px;line-height:1.5}.game-rank-next{font-size:16px;min-height:38px;margin-bottom:9px}.rank-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 10px}.rank-card{border-radius:18px;padding:16px 10px 13px}.rank-card .rank-avatar{width:127px;height:127px;margin-top:11px}.rank-card h3{font-size:16px}.rank-card-level{font-size:16px}.rank-card-status{top:14px;right:9px;font-size:18px}.rank-look{font-size:16px}.rank-trail-heading h2{font-size:25px}.rank-trail-heading p{font-size:18px}.rank-scope-tabs{gap:6px}.rank-scope-tabs .shop-tab{font-size:16px;padding:9px 11px}.rank-how{grid-template-columns:1fr;gap:7px;margin:19px 0 27px;font-size:16px}.rank-how>span{padding:10px 13px}.rank-game-overview{padding:17px 11px}.rank-game-overview h2{font-size:20px}.rank-game-overview .progress-row{flex-wrap:wrap}.rank-game-overview .rank-avatar{width:47px;height:47px}.rank-game-overview .game-totals{flex-basis:100%;flex-direction:row;justify-content:space-between;margin-left:55px}.rank-game-overview .game-totals span{font-size:16px}.profile-preview{gap:12px;padding:13px}.profile-preview .rank-avatar{width:85px;height:85px}.profile-preview-name{font-size:21px}.gender-options{gap:5px}.gender-choice{font-size:16px;padding:7px 3px;min-height:87px}.gender-choice .rank-avatar{width:49px;height:49px}.promotion-card{gap:10px;padding:15px 11px}.promotion-card .rank-avatar{width:71px;height:71px}.promotion-card h2{font-size:18px}.promotion-card .eyebrow{font-size:16px;line-height:1.6}.promotion-card p{font-size:18px!important}.promotion-sparkles{font-size:16px;letter-spacing:4px}.result-rank-note{font-size:18px!important}.player-current{font-size:16px}.player-row{gap:8px;padding:11px 9px}}
@media(prefers-reduced-motion:reduce){.promotion-sparkles{animation:none}}.reduce-motion .promotion-sparkles{animation:none}
