/* Account hub, public profiles, personalization and leaderboard cosmetics. */
.remember-login{display:flex;align-items:center;gap:10px;margin:12px 0 2px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#ffffff04;color:var(--muted);font-size:12px;cursor:pointer}
.remember-login.hidden{display:none!important}.remember-login input{width:15px;height:15px;accent-color:#a78bfa}.remember-login strong{color:var(--ink);font-weight:750}

.leaderboard-heading{margin-bottom:22px;--leaderboard-accent:#c6b5ff}.leaderboard-heading h1{margin:0;font-size:clamp(34px,5vw,58px);letter-spacing:-2px;color:var(--leaderboard-accent)}.leaderboard-heading .eyebrow,.leaderboard-heading>p{display:none!important}
/* Keep each board's original color, fading only its text to a paler shade. */
.leaderboard-heading h1,.leaderboard-tab>span,.leaderboard-game-tab>span{background-image:linear-gradient(110deg,var(--leaderboard-accent) 0%,color-mix(in srgb,var(--leaderboard-accent) 52%,#fff) 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.leaderboard-tab>span,.leaderboard-game-tab>span{display:inline-block}
.leaderboard-heading[data-board-mode="all-time"],.leaderboard-tab[data-board="all-time"]{--leaderboard-accent:#c6b5ff}
.leaderboard-heading[data-board-mode="daily"],.leaderboard-tab[data-board="daily"]{--leaderboard-accent:#7ae0b4}
.leaderboard-heading[data-board-mode="weekly"],.leaderboard-tab[data-board="weekly"]{--leaderboard-accent:#82c7ff}
.leaderboard-heading[data-board-mode="achievements"],.leaderboard-tab[data-board="achievements"]{--leaderboard-accent:#f3b9df}
.leaderboard-heading[data-board-mode="levels"],.leaderboard-tab[data-board="levels"]{--leaderboard-accent:#fb8999}
.leaderboard-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.leaderboard-tab{border:1px solid var(--line);background:#ffffff03;border-radius:11px;padding:10px 16px;font:inherit;font-size:12px;font-weight:780;cursor:pointer;transition:.18s ease}.leaderboard-tab:hover{border-color:#ffffff28;transform:translateY(-1px)}
.leaderboard-tab{color:var(--leaderboard-accent,var(--ink))}
.leaderboard-tab[data-board="all-time"].active{background:#9d7cf51a;border-color:#a78bfa66;box-shadow:0 0 22px #a78bfa12}.leaderboard-tab[data-board="daily"].active{background:#7ae0b414;border-color:#7ae0b455;box-shadow:0 0 22px #7ae0b412}.leaderboard-tab[data-board="weekly"].active{background:#82c7ff14;border-color:#82c7ff55;box-shadow:0 0 22px #82c7ff12}.leaderboard-tab[data-board="achievements"].active{background:#f3b9df12;border-color:#f3b9df50;box-shadow:0 0 22px #f3b9df10}.leaderboard-tab[data-board="levels"].active{background:#fb899914;border-color:#fb89995c;box-shadow:0 0 22px #fb899914}
#leaderboard-view .leaderboard-period-note{display:none!important}
@media(min-width:781px){#leaderboard-content .leaderboard-table th:first-child,#leaderboard-content .leaderboard-table td:first-child{width:138px!important}}
@media(min-width:781px){#leaderboard-content .leaderboard-streak-table{table-layout:fixed}#leaderboard-content .leaderboard-streak-table th:nth-child(3){width:170px}#leaderboard-content .leaderboard-streak-table th:nth-child(4){width:110px}}
.leaderboard-coming-soon{min-height:280px;display:grid;place-items:center;text-align:center;border:1px solid var(--line);border-radius:18px;background:#ffffff02}.leaderboard-coming-soon span{display:block;font-size:42px;margin-bottom:9px;color:#a78bfa}.leaderboard-coming-soon h2{margin:0;font-size:25px}.leaderboard-coming-soon p{margin:7px 0 0;color:var(--muted)}
.daily-reset-timer{width:max-content;min-width:190px;margin:18px auto 0;padding:12px 18px;border:1px solid #7ae0b437;border-radius:14px;background:#7ae0b408;text-align:center;box-shadow:0 10px 28px #0000001f}.daily-reset-timer.hidden{display:none!important}.daily-reset-timer span{display:block;font-size:8px;letter-spacing:1.7px;font-weight:850;color:#7ae0b4;margin-bottom:5px}.daily-reset-timer strong{display:block;font-size:23px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:.8px;color:var(--ink)}

.leaderboard-trainer-cell{display:inline-flex;align-items:center;gap:7px;min-height:38px}
.leaderboard-mini-companion{--mini-rarity:#aeb5c2;position:relative;width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px;padding:0;border:1px solid color-mix(in srgb,var(--mini-rarity) 34%,#ffffff10);border-radius:11px;background:radial-gradient(circle at 48% 38%,#ffffff08,#171522 72%);color:var(--mini-rarity);cursor:pointer;overflow:visible;transition:.16s ease}
.leaderboard-mini-companion:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--mini-rarity) 68%,#ffffff20);box-shadow:0 7px 18px #0004,0 0 12px color-mix(in srgb,var(--mini-rarity) 18%,transparent)}
.leaderboard-mini-rarity-common{--mini-rarity:#aeb5c2}.leaderboard-mini-rarity-uncommon{--mini-rarity:#66d39a}.leaderboard-mini-rarity-rare{--mini-rarity:#65a8ff}.leaderboard-mini-rarity-legendary{--mini-rarity:#f2cb64}
.leaderboard-mini-sprite-wrap{position:relative;width:38px;height:38px;display:block;overflow:hidden;border-radius:10px}
.leaderboard-mini-sprite-wrap img{filter:drop-shadow(0 3px 5px #0005)}
.leaderboard-mini-shiny{position:absolute;z-index:4;right:3px;top:2px;color:#ffe47a!important;-webkit-text-fill-color:#ffe47a!important;background:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;font-size:11px;line-height:1;text-shadow:0 0 7px #ffd84ebd,0 1px 2px #000b;pointer-events:none}
.profile-hero .public-profile-mini-companion{display:inline-grid;vertical-align:middle;margin-left:9px;width:52px;height:52px;flex:0 0 52px;border-radius:14px;transform:translateY(1px)}.profile-hero .public-profile-mini-companion .leaderboard-mini-sprite-wrap{width:52px;height:52px;border-radius:13px}.profile-hero .public-profile-mini-companion .leaderboard-mini-shiny{right:5px;top:4px;font-size:13px;color:#ffe47a!important;-webkit-text-fill-color:#ffe47a!important}.profile-hero .public-profile-mini-companion:hover{transform:translateY(-1px)}
.leaderboard-mini-egg{position:relative;width:21px;height:27px;border-radius:52% 52% 45% 45% / 62% 62% 38% 38%;background:linear-gradient(145deg,#f6f5f8,#d2d4dc 70%,#9aa0ac);box-shadow:inset -3px -4px 6px #27304420,inset 3px 3px 5px #fff8,0 3px 6px #0005}
.leaderboard-mini-egg i{position:absolute;width:5px;height:6px;left:4px;top:10px;border-radius:50%;background:var(--mini-rarity);box-shadow:9px -4px 0 -1px var(--mini-rarity),7px 7px 0 -2px var(--mini-rarity)}
.trainer-profile-link{display:inline-flex;align-items:center;gap:10px;border:0;background:none;color:inherit;padding:3px 5px;border-radius:10px;font:inherit;cursor:pointer;text-align:left;transition:.16s ease}.trainer-profile-link:hover{background:#ffffff07;transform:translateX(2px)}.trainer-name{color:var(--trainer-name,var(--ink));font-weight:750}.trainer-avatar{width:31px;height:31px;border-radius:9px;display:inline-grid;place-items:center;flex:0 0 auto;background:linear-gradient(145deg,#30274a,#201d30);border:1px solid #ffffff12;overflow:hidden;color:var(--purple);font-weight:900}.trainer-avatar img{width:100%;height:100%;object-fit:contain;image-rendering:auto}.trainer-avatar-initial{font-size:13px}.trainer-avatar.header{width:25px;height:25px;border-radius:8px}.trainer-avatar.large{width:56px;height:56px;border-radius:14px}.trainer-avatar.hero{width:112px;height:112px;border-radius:24px;background:radial-gradient(circle at 50% 35%,#ffffff10,#2a233d 70%);box-shadow:0 18px 50px #0004}.trainer-avatar.hero img{padding:6px}.personalized-profile-chip{color:var(--trainer-name,var(--ink))!important}.personalized-profile-chip .muted{color:var(--dim)!important}
#account-area .profile-chip.personalized-profile-chip{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;min-height:46px}
#account-area .profile-chip-name{display:inline-flex!important;align-items:center!important;gap:5px!important;min-width:0;line-height:1!important;white-space:nowrap}
#account-area .trainer-name-text{display:inline-block!important;line-height:1!important;white-space:nowrap!important;flex:0 0 auto}
#account-area .trainer-country{display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;line-height:1!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background{background-size:cover!important;background-position:center!important;border-color:#ffffff24!important;box-shadow:0 8px 24px #0003}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="ash_butterfree"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/ash_butterfree')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="squirtle_squad"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/squirtle_squad')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="entei"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/entei')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="marshtomp"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/marshtomp')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="distortion_world"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/distortion_world')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="cilan_duckletts"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/cilan_duckletts')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="unova"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/unova')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="haxorus_garchomp"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/haxorus_garchomp')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="xerneas"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/xerneas')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="yveltal"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/yveltal')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="ash_alola"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/ash_alola')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="lillie"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/lillie')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="chloe_goh"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/chloe_goh')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="eldegoss"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/eldegoss')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="eternatus"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/eternatus')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="lance_red_gyarados"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/lance_red_gyarados')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="shiny_rayquaza"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/shiny_rayquaza')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="may_manaphy"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/may_manaphy')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="spear_pillar"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/spear_pillar')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="ns_castle"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/ns_castle')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="risa_eevee"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/risa_eevee')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="bea_team"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/bea_team')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="lucario_pawmot"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/lucario_pawmot')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="giovanni_mewtwo"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/giovanni_mewtwo')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="jessie_james"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/jessie_james')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="jigglypuff"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/jigglypuff')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="mew"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/mew')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="pikachu"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/pikachu')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="prof_oaks_lab"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/prof_oaks_lab')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="groudon"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/groudon')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="kyogre"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/kyogre')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="piplup"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/piplup')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="kyurem"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/kyurem')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="leons_charizard"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/leons_charizard')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="charizard"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/charizard')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="flareon_jolteon"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/flareon_jolteon')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="raikou"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/raikou')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="suicune"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/suicune')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="minun_plusle"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/minun_plusle')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="regis"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/regis')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="dialga_palkia"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/dialga_palkia')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="ash_greninja"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/ash_greninja')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="sylveon_eevee"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/sylveon_eevee')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="solgaleo"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/solgaleo')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="champion_ash"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/champion_ash')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="galarian_meowth_perrserker"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/galarian_meowth_perrserker')!important}


.profile-hub-view{width:min(980px,calc(100% - 40px));margin:0 auto;padding:58px 0 90px;min-height:560px}.profile-hub-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}.profile-hub-heading h1{font-size:clamp(40px,6vw,64px);letter-spacing:-2.5px;margin:0}.contact-standalone-view{width:min(1180px,calc(100% - 40px));max-width:none;margin:0 auto;padding:28px 0 70px}.contact-standalone-view .contact-heading{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;margin:0 0 22px;padding:0 0 26px;min-height:93px;box-sizing:border-box;border-bottom:1px solid #ffffff0d;text-align:center}.contact-standalone-view .contact-heading>div:first-child{grid-column:2;display:flex;align-items:center;justify-content:center;min-height:66px}.contact-standalone-view .contact-heading h1{margin:0;font-size:48px;line-height:1.2;letter-spacing:-1.8px;background:linear-gradient(105deg,#c6b5ff,#f1b0d8);-webkit-background-clip:text;background-clip:text;color:transparent;text-align:center;padding-block:.06em}.contact-card{box-sizing:border-box;width:100%;min-width:0;padding:28px;border:1px solid #b99bf025;border-radius:20px;background:linear-gradient(150deg,#a78bfa0b,#f3b9df06 60%,#ffffff025);box-shadow:0 20px 55px #00000018}.contact-intro{max-width:760px;margin:0 0 24px;color:#d6cce7;font-size:17px;line-height:1.65}.contact-card form{display:grid;gap:11px}.contact-card label{font-size:12px;letter-spacing:1.2px;font-weight:850;color:#c8b8e6}.contact-card textarea{width:100%;resize:vertical;min-height:180px;padding:16px 17px;border:1px solid #a78bfa2f;border-radius:14px;background:#0f0f1d;color:var(--ink);font:inherit;font-size:14px;line-height:1.55;outline:none}.contact-card textarea:focus{border-color:#a78bfa77;box-shadow:0 0 0 3px #a78bfa10}.contact-form-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px}.contact-form-bottom>span{color:#7ae0b4;font-size:12px}.contact-form-bottom .button{min-width:130px}.stats-account-note{padding:22px;border:1px solid #f3b9df26;border-radius:16px;color:#cfc3db;background:linear-gradient(135deg,#f3b9df08,#a78bfa06)}.stats-account-note strong{color:#f0d4e7}

.account-hub-view{width:min(1120px,calc(100% - 40px));margin:0 auto;padding:46px 0 80px;min-height:620px}.account-hub-shell{display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px;align-items:start}.account-sidebar{position:sticky;top:24px;padding:15px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(160deg,#ffffff07,#ffffff025);box-shadow:0 18px 45px #0002}.account-sidebar-user{display:flex;align-items:center;gap:12px;padding:8px 7px 17px;margin-bottom:8px;border-bottom:1px solid var(--line)}.account-sidebar-user strong{display:block;color:var(--trainer-name,var(--ink));font-size:15px;line-height:1.2}.account-sidebar-user small{display:block;color:var(--dim);font-size:9px;letter-spacing:.8px;margin-top:4px}.account-sidebar nav{display:grid;gap:5px}.account-side-button{width:100%;border:0;background:transparent;color:var(--muted);border-radius:11px;padding:12px 13px;text-align:left;font:inherit;font-size:13px;font-weight:720;transition:.15s ease}.account-side-button:hover{background:#ffffff08;color:var(--ink)}.account-side-button.active{background:#a78bfa16;color:#d9ccff;box-shadow:inset 0 0 0 1px #a78bfa24}.account-side-button.danger{color:#f0a6b4}.account-side-button.danger.active{background:#fb899912;color:#ffc0ca;box-shadow:inset 0 0 0 1px #fb899928}.account-panel-stack{min-width:0}.account-panel{min-height:540px;padding:30px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(160deg,#ffffff065,#ffffff018);box-shadow:0 22px 60px #0002}.account-panel-heading{margin-bottom:25px}.account-panel-heading>span,.profile-kicker{display:block;font-size:9px;letter-spacing:1.6px;font-weight:850;color:#9b8db9;margin-bottom:7px}.account-panel-heading h1{font-size:clamp(34px,5vw,54px);letter-spacing:-2px;margin:0}.profile-hero{display:flex;align-items:center;gap:24px;padding:22px;border:1px solid #a78bfa25;border-radius:20px;background:radial-gradient(circle at 10% 20%,#a78bfa11,transparent 48%),#ffffff025;margin-bottom:20px}.profile-hero.has-profile-background{position:relative;isolation:isolate;overflow:hidden;background:#10101d;box-shadow:0 22px 60px #0004}
.profile-hero-background{position:absolute!important;inset:0;z-index:0!important;display:block;pointer-events:none;overflow:hidden}
.profile-hero-background img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.profile-hero-background:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,10,19,.86) 0%,rgba(10,10,19,.68) 48%,rgba(10,10,19,.38) 100%)}
.profile-hero.has-profile-background>:not(.profile-hero-background){position:relative;z-index:1}
.profile-hero.has-profile-background .profile-kicker,.profile-hero.has-profile-background p{text-shadow:0 2px 10px #000}
.profile-hero h1{font-size:clamp(36px,5vw,58px);line-height:1.2;letter-spacing:-2.2px;margin:0;color:var(--trainer-name,var(--ink))}.profile-hero p{margin:9px 0 0;color:var(--muted);font-size:12px}.profile-section-card{padding:22px;border:1px solid var(--line);border-radius:17px;background:#ffffff025}.profile-section-card h2{margin:0 0 7px;font-size:19px}.profile-section-card p{color:var(--muted);margin:0 0 16px;max-width:680px}.profile-records{display:grid;gap:13px;margin:18px 0}.profile-records-heading{font-size:11px;letter-spacing:1.55px;font-weight:900;color:#9b8db9}.profile-record-group{--record-accent:#a78bfa;display:grid;gap:7px}.profile-record-group-trivia{--record-accent:#f3a9d4}.profile-record-group-daily{--record-accent:#72cdb6}.profile-record-group-minis{--record-accent:#d7b783}.profile-record-group-label{font-size:8px;letter-spacing:1.35px;font-weight:850;color:var(--record-accent);opacity:.88}.profile-record-grid{display:grid;gap:9px}.profile-record-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-record-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.profile-record-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}.profile-record-card{min-height:88px;padding:13px 14px;border:1px solid var(--line);border-top-color:color-mix(in srgb,var(--record-accent) 48%,var(--line));border-radius:13px;background:linear-gradient(160deg,#ffffff07,#ffffff022);display:flex;flex-direction:column;justify-content:space-between;gap:12px}.profile-record-card small{font-size:9px;line-height:1.25;letter-spacing:1.15px;color:var(--dim);font-weight:850}.profile-record-card strong{font-size:30px;line-height:1;color:var(--ink);letter-spacing:-1.2px}.profile-record-card-streak strong{color:#f2a65e}.profile-record-card-correct strong{color:var(--green)}.profile-record-card-rank strong{color:#fff}.profile-record-card-rank-top strong{color:var(--yellow)}.profile-record-ratio{display:flex;align-items:baseline;gap:2px}.profile-record-ratio>span{color:#d9ccff}.profile-record-ratio>em{font-style:normal;color:#7f788d;font-size:.62em;font-weight:760;letter-spacing:-.7px}.profile-achievements-soon{min-height:330px;border:1px solid var(--line);border-radius:20px;background:#ffffff025;display:grid;place-items:center;text-align:center;padding:30px}.profile-achievements-soon span{font-size:48px;color:#a78bfa}.profile-achievements-soon h2{font-size:30px;margin:8px 0 4px}.profile-achievements-soon p{color:var(--muted);margin:0}

.personalization-section{padding:20px;border:1px solid var(--line);border-radius:18px;background:#ffffff025;margin-bottom:14px}.background-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.background-option{position:relative;overflow:hidden;border:1px solid var(--line);background:#141422;color:var(--muted);border-radius:12px;padding:0;font:inherit;text-align:left;transition:.16s ease}
.background-option:hover{transform:translateY(-2px);border-color:#ffffff28}
.background-option.selected{border-color:#a78bfa88;background:#a78bfa12;color:#ded4ff;box-shadow:0 0 0 2px #a78bfa10}
.background-option-image,.background-option-default{display:grid;width:100%;aspect-ratio:16/9;place-items:center;object-fit:cover;background:radial-gradient(circle at 50% 35%,#312743,#171522);color:#8d829d;font-size:10px;font-weight:900;letter-spacing:1.5px}
.background-option-copy{display:flex;align-items:center;min-height:34px;padding:7px 8px}
.background-option-copy>.cosmetic-option-label{font-size:10px;font-weight:760;line-height:1.2}
.background-option.cosmetic-locked{cursor:pointer!important;opacity:.5;filter:saturate(.55)}
.background-option.cosmetic-locked:hover{transform:none!important;border-color:var(--line)!important}
.background-option.cosmetic-locked.selected{box-shadow:none}
.personalization-section h2{font-size:17px;margin:0 0 15px}.avatar-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.avatar-option{border:1px solid var(--line);background:#141422;border-radius:14px;padding:10px 8px;color:var(--muted);font:inherit;font-size:11px;font-weight:720;display:grid;gap:7px;place-items:center;transition:.15s ease}.avatar-option:hover{transform:translateY(-2px);border-color:#ffffff28}.avatar-option.selected{border-color:#a78bfa88;background:#a78bfa12;color:#ded4ff;box-shadow:0 0 0 2px #a78bfa10}.avatar-option img,.avatar-option-default{width:72px;height:72px;object-fit:contain;display:grid;place-items:center;border-radius:13px;background:radial-gradient(circle,#ffffff0d,#272136);font-size:26px;font-weight:900;color:#c7b2ff}.color-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.color-option{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:#141422;color:var(--muted);border-radius:11px;padding:10px 11px;font:inherit;font-size:11px;font-weight:720}.color-option i{width:18px;height:18px;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 3px #ffffff08}.color-option.selected{border-color:#a78bfa70;background:#a78bfa0f;color:var(--ink)}.personalization-save{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px}.personalization-save span{color:#7ae0b4;font-size:12px}.cosmetics-note{margin:13px 0 0;color:#9c91ae;font-size:11px}.signout-card{padding:24px;border:1px solid #fb89992c;border-radius:18px;background:#fb899907}.signout-card h2{margin:0 0 8px}.signout-card p{color:var(--muted);margin:0 0 18px}

.account-admin-panel{padding:26px}.account-admin-nav{margin:0 0 20px;display:flex;gap:8px;flex-wrap:wrap}.account-admin-nav button{border:1px solid var(--line);background:#ffffff03;color:var(--muted);border-radius:9px;padding:9px 12px;font:inherit;font-size:11px;font-weight:740}.account-admin-nav button.active{color:var(--ink);border-color:#a78bfa55;background:#a78bfa10}.account-admin-panel .admin-panel{margin-top:14px}.account-admin-panel .admin-summary{margin-top:0}

.public-profile-view{width:min(950px,calc(100% - 40px));margin:0 auto;padding:46px 0 90px;min-height:610px}.public-profile-back{margin-bottom:24px}.public-profile-card{padding:30px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(160deg,rgba(255,255,255,.025),rgba(255,255,255,.006));box-shadow:0 22px 60px #0002}.public-profile-view .profile-hero{margin-bottom:18px}.public-profile-view .profile-records{margin-bottom:18px}.public-achievements{display:flex;align-items:center;gap:16px;padding:22px;border:1px solid var(--line);border-radius:18px;background:#ffffff025}.public-achievements>span{font-size:36px;color:#a78bfa}.public-achievements h2{margin:0 0 3px;font-size:19px}.public-achievements p{margin:0;color:var(--muted)}

@media(min-width:801px){#account-view .profile-hero,#public-profile-view .profile-hero{min-height:212px;box-sizing:border-box}}

@media(max-width:1100px) and (min-width:801px){.background-options{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){#account-view .profile-hero{min-height:155px;padding-top:26px;padding-bottom:26px;box-sizing:border-box}.profile-hero-background:after{background:linear-gradient(90deg,rgba(10,10,19,.84),rgba(10,10,19,.62))}.background-options{grid-template-columns:repeat(2,minmax(0,1fr))}.account-hub-view{width:min(100% - 28px,1120px);padding-top:28px}.account-hub-shell{grid-template-columns:1fr}.account-sidebar{position:static}.account-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.account-panel{padding:22px;min-height:0}.avatar-options{grid-template-columns:repeat(2,minmax(0,1fr))}.color-options{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-record-grid-4,.profile-record-grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-record-card{min-height:82px}.profile-hero{align-items:flex-start}.trainer-avatar.hero{width:88px;height:88px}.leaderboard-tabs{display:grid;grid-template-columns:repeat(3,1fr)}.leaderboard-tab{padding:9px 6px;font-size:10px}.profile-hub-view,.public-profile-view{width:min(100% - 28px,980px);padding-top:34px}.contact-card{padding:20px}.contact-form-bottom,.personalization-save{align-items:stretch;flex-direction:column}.contact-form-bottom .button,.personalization-save .button{width:100%}}
@media(max-width:520px){.background-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.account-sidebar nav{grid-template-columns:1fr}.profile-hero{flex-direction:column}.avatar-options{grid-template-columns:1fr 1fr}.color-options{grid-template-columns:1fr 1fr}.trainer-profile-link{gap:7px}.trainer-avatar{width:27px;height:27px}.leaderboard-trainer-cell{gap:5px}.leaderboard-mini-companion{width:32px;height:32px;flex-basis:32px;border-radius:9px}.leaderboard-mini-sprite-wrap{width:32px;height:32px}.leaderboard-mini-sprite-wrap img{filter:drop-shadow(0 2px 4px #0005)}}


/* Owner Profile is the public profile presentation with direct edit affordances. */
.owner-profile-editable{position:relative}
.owner-profile-edit-appearance{position:absolute;z-index:3;right:14px;top:14px;padding:7px 10px;border:1px solid #ffffff1c;border-radius:9px;background:rgba(15,15,27,.72);color:#d9ccff;font:inherit;font-size:9px;font-weight:850;cursor:pointer;backdrop-filter:blur(8px)}
.owner-profile-edit-appearance:hover{border-color:#a78bfa55;background:rgba(28,23,45,.88)}
.owner-profile-edit-title{padding:5px 8px;border:1px solid #ffffff1c;border-radius:8px;background:rgba(15,15,27,.72);color:#cfc4e8;font:inherit;font-size:8px;font-weight:850;line-height:1;white-space:nowrap;cursor:pointer;backdrop-filter:blur(8px)}
.owner-profile-edit-title:hover{border-color:#a78bfa55;background:rgba(28,23,45,.88);color:#eee8ff}
.owner-profile-panel>.profile-records{margin-bottom:20px}
@media(max-width:800px){.owner-profile-edit-appearance{right:10px;top:10px;padding:6px 8px;font-size:8px}.public-profile-card{padding:18px;border-radius:18px}.owner-profile-edit-title{padding:5px 7px;font-size:8px}}


/* Trainer Titles reuse the Ribbon interaction pattern: focus/hover reveals two-line detail. */
.trainer-title-slot{min-height:19px;margin-bottom:7px!important;overflow:visible;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.trainer-title-badge{position:relative;display:inline-flex;align-items:center;min-height:19px;padding:0;border:0;background:transparent;color:#bca9e6;font:inherit;font-size:11px;font-weight:900;letter-spacing:1.35px;line-height:1.2;text-align:left}
button.trainer-title-badge{cursor:pointer}
.trainer-title-badge.is-empty{min-width:138px}
.trainer-title-label{display:inline-block}
.trainer-title-tooltip{position:absolute;z-index:40;left:0;top:calc(100% + 8px);width:min(260px,70vw);padding:9px 10px;border:1px solid #ffffff18;border-radius:9px;background:rgba(16,14,24,.97);box-shadow:0 12px 32px #0008;opacity:0;visibility:hidden;transform:translateY(-3px);transition:.14s ease;pointer-events:none;text-shadow:none!important}
.trainer-title-tooltip strong,.trainer-title-tooltip span{display:block}
.trainer-title-tooltip strong{color:#bca9e6;font-size:10px;line-height:1.25;font-weight:900;letter-spacing:.35px}
.trainer-title-tooltip span{margin-top:3px;color:#aaa1b4;font-size:8px;line-height:1.4;font-weight:650;letter-spacing:0}
.trainer-title-badge:hover .trainer-title-tooltip,.trainer-title-badge:focus .trainer-title-tooltip,.trainer-title-badge:focus-visible .trainer-title-tooltip{opacity:1;visibility:visible;transform:translateY(0)}
.trainer-title-dialog{width:min(680px,calc(100% - 30px));border-color:#a78bfa35;background:linear-gradient(145deg,#221d33,#171420 72%);box-shadow:0 30px 100px #000b,0 0 40px #a78bfa0d}
.trainer-title-dialog h2{margin-top:0}
.trainer-title-dialog-copy{margin:0 0 18px;color:#aaa2b8;font-size:11px}
#trainer-title-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:min(58vh,560px);overflow:auto;padding:2px 5px 2px 2px;scrollbar-width:thin;scrollbar-color:#6c5a8b transparent}
#trainer-title-list::-webkit-scrollbar{width:7px}
#trainer-title-list::-webkit-scrollbar-track{background:transparent}
#trainer-title-list::-webkit-scrollbar-thumb{border-radius:999px;background:#6c5a8b}
.trainer-title-choice{-webkit-appearance:none;appearance:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;padding:12px 13px;border:1px solid #ffffff12;border-radius:12px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.trainer-title-choice:not(.is-locked):not(.selected){border-color:#a78bfa26;background:linear-gradient(145deg,rgba(167,139,250,.075),rgba(243,185,223,.025))}
.trainer-title-choice:hover:not(:disabled){transform:translateY(-1px);border-color:#a78bfa68;background:linear-gradient(145deg,rgba(167,139,250,.14),rgba(243,185,223,.055))}
.trainer-title-choice.selected{border-color:#a78bfa92;background:linear-gradient(145deg,rgba(167,139,250,.18),rgba(110,83,170,.12));box-shadow:inset 0 0 0 1px #a78bfa12}
.trainer-title-choice.is-locked{opacity:.52;cursor:not-allowed;background:rgba(5,5,12,.16);border-color:#ffffff0d}
.trainer-title-choice>span{display:grid;gap:4px;min-width:0}
.trainer-title-choice strong{font-size:11px;color:#d9ccff}
.trainer-title-choice small{font-size:8px;line-height:1.4;color:#9f96ad}
.trainer-title-choice>i{font-style:normal;font-size:8px;font-weight:850;color:#b8a4e3;white-space:nowrap}
.trainer-title-choice.is-locked>i{color:#776f82}
.trainer-title-status{min-height:18px;margin-top:10px}
.trainer-title-status.is-saved{color:var(--green)}

@media(max-width:800px){
  .trainer-title-slot{min-height:18px}
  .trainer-title-tooltip{left:0;top:calc(100% + 7px);width:min(240px,74vw)}
}
@media(max-width:620px){
  .profile-record-grid-3,.profile-record-grid-4,.profile-record-grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-record-grid-3 .profile-record-card:last-child:nth-child(odd){grid-column:1/-1;width:calc((100% - 9px)/2);justify-self:center}
  .profile-record-card{min-height:78px;padding:11px 12px}
  .profile-record-card strong{font-size:27px}
  #trainer-title-list{grid-template-columns:1fr}
}


/* Trainer Level is a Profile-only identity marker; compact surfaces intentionally omit it. */
.profile-avatar-level-wrap{position:relative;display:inline-grid;place-items:center;flex:0 0 auto;overflow:visible}
.trainer-level-badge{position:absolute;z-index:6;left:50%;bottom:-8px;transform:translateX(-50%);min-width:31px;height:20px;padding:0 8px;display:grid;place-items:center;border:1px solid currentColor;border-radius:999px;background:#171520;box-shadow:0 5px 12px #0008;font-size:10px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums}
.trainer-level-gray,.level-color-gray{color:#9b98a3!important}
.trainer-level-white,.level-color-white{color:#f4f1ff!important}
.trainer-level-green,.level-color-green{color:#7ae0b4!important}
.trainer-level-blue,.level-color-blue{color:#82c7ff!important}
.trainer-level-yellow,.level-color-yellow{color:#f3d17e!important}
.trainer-level-orange,.level-color-orange{color:#ff9b55!important}
.trainer-level-red,.level-color-red{color:#fb8999!important}
.level-board-number{font-size:18px;font-weight:900;color:#fb8999}
.level-leaderboard-table th:nth-child(2),.level-leaderboard-table td:nth-child(2){text-align:left}
.level-leaderboard-table th:last-child,.level-leaderboard-table td:last-child{text-align:right}
@media(max-width:800px){.trainer-level-badge{bottom:-7px;min-width:28px;height:18px;padding:0 7px;font-size:9px}}

@media(max-width:1100px){.profile-record-grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-record-grid-5 .profile-record-card:last-child{grid-column:1/-1;width:calc((100% - 9px)/2);justify-self:center;box-sizing:border-box}}



/* Contact uses the same centered title/divider/content geometry as other pages. */
@media(min-width:901px) and (max-width:1199px){.contact-standalone-view .contact-heading h1{font-size:clamp(28px,3.8vw,46px)}}
@media(max-width:900px){
  .contact-standalone-view{width:100%;max-width:620px;padding:28px 0 42px}
  .contact-standalone-view .contact-heading{grid-template-columns:minmax(0,1fr);grid-template-rows:clamp(40.92px,11.88vw,55.44px) calc(1.55 * clamp(9px,1.4vw,11px) + 30px);gap:16px;margin:0 0 16px;padding:0 0 22px;min-height:0}.contact-standalone-view .contact-heading>div:first-child{grid-column:1;grid-row:1;min-height:0;height:100%}
  .contact-standalone-view .contact-heading h1{font-size:clamp(31px,9vw,42px);line-height:1.2;letter-spacing:-1.5px}
}
@media(max-width:780px){
  .contact-standalone-view .contact-heading h1{font-size:clamp(31px,9vw,42px);line-height:1.2;letter-spacing:-1.5px}
}

/* Canonical three-section leaderboard switch. */
.leaderboard-game-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 24px;padding:5px;width:max-content;max-width:100%;border:1px solid var(--line);border-radius:15px;background:#ffffff03}
.leaderboard-game-tab{--leaderboard-accent:var(--muted);border:0;background:transparent;color:var(--muted);border-radius:11px;padding:10px 16px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;transition:.18s ease;white-space:nowrap}
.leaderboard-game-tab:hover{--leaderboard-accent:var(--ink);color:var(--ink);background:#ffffff06}
.leaderboard-game-tab.active{--leaderboard-accent:#f5f1ff;color:#f5f1ff;background:linear-gradient(110deg,#a78bfa24,#f3a9d414);box-shadow:inset 0 0 0 1px #cdbfff32,0 7px 20px #0002}
@media(min-width:781px){
  .leaderboard-view{padding-top:24px}
  .leaderboard-game-tabs{margin:0 auto 14px}
}
@media(max-width:780px){
  .leaderboard-game-tabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-bottom:18px}
  .leaderboard-game-tab{padding:10px 7px;font-size:10px}
}

/* The existing leaderboard controller owns this Dailies-sized shell. */
.leaderboard-join-prompt{display:block;width:100%;text-align:center;font-weight:650;color:#c9c0d9}
#leaderboard-view #your-rank[aria-busy="true"]{min-height:56px}
@media(min-width:901px){
  #leaderboard-view.leaderboard-view{width:min(1180px,calc(100% - 40px));max-width:none;margin:0 auto;padding:28px 0 70px;display:grid;grid-template-columns:190px minmax(0,1fr);grid-template-areas:"heading heading" "sidebar content";gap:0 22px;align-items:start}
  #leaderboard-view .leaderboard-heading{grid-area:heading;display:grid;grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr);align-items:center;gap:12px;margin:0 0 22px;padding:0 0 26px;border-bottom:1px solid #ffffff0d;text-align:center}
  #leaderboard-view .leaderboard-heading h1{grid-column:2;grid-row:1;justify-self:center;min-width:0;margin:0;font-size:48px;line-height:1.2;letter-spacing:-1.8px;text-align:center;white-space:nowrap}
  #leaderboard-view .leaderboard-heading[data-board-mode="achievements"] h1{transform:translateX(-20px)}
  #leaderboard-view .leaderboard-heading .leaderboard-game-tabs{grid-column:3;grid-row:1;justify-self:end;align-items:stretch;flex-wrap:nowrap;box-sizing:border-box;min-height:66px;width:252px;max-width:100%;margin:0;gap:5px;padding:7px}
  #leaderboard-view .leaderboard-heading .leaderboard-game-tab{padding:0 6px;font-size:11.5px}
  #leaderboard-view .leaderboard-side{grid-area:sidebar;position:sticky;top:12px;min-width:0;margin:0}
  #leaderboard-view .leaderboard-side .leaderboard-tabs{display:flex;flex-direction:column;gap:7px;margin:0;padding:8px;border:1px solid #ffffff0d;border-radius:15px;background:#ffffff018}
  #leaderboard-view .leaderboard-side .leaderboard-tab{width:100%;min-width:0;padding:12px 13px;border:1px solid transparent;border-radius:10px;text-align:left;font-size:14px;font-weight:850;letter-spacing:.3px}
  #leaderboard-view .leaderboard-side .leaderboard-tab.active{border-color:color-mix(in srgb,var(--leaderboard-accent) 40%,transparent)}
  #leaderboard-view .leaderboard-main{grid-area:content;min-width:0}
  #leaderboard-view .leaderboard-main>.your-rank{margin-top:18px}
  #leaderboard-view .leaderboard-main .leaderboard-table{width:100%}
}
@media(min-width:901px) and (max-width:1199px){
  #leaderboard-view .leaderboard-heading h1{font-size:clamp(28px,3.8vw,46px)}
  #leaderboard-view .leaderboard-heading[data-board-mode="achievements"] h1{transform:translateX(clamp(-65px,calc(21.5vw - 258px),-20px))}
  #leaderboard-view .leaderboard-heading .leaderboard-game-tabs{gap:4px;padding:5px}
  #leaderboard-view .leaderboard-heading .leaderboard-game-tab{padding:0 4px;font-size:clamp(8.5px,.9vw,11px)}
}
@media(max-width:900px){
  #leaderboard-view .leaderboard-main{min-width:0}
  #leaderboard-view .leaderboard-side{margin-bottom:22px}
  #leaderboard-view .leaderboard-side .leaderboard-tabs{margin-top:0}
}
@media(max-width:780px){
  #leaderboard-view .leaderboard-side{margin-bottom:17px}
  #leaderboard-view .leaderboard-side .leaderboard-tabs{margin-top:0!important}
}

/* Keep the desktop's title-first leaderboard hierarchy on phones and tablets,
   while retaining the existing compact ranking cards and reward footer. */
@media(max-width:900px){
  #leaderboard-view .leaderboard-heading{display:flex;flex-direction:column;align-items:center;gap:16px;margin:0 0 16px!important;padding:0 0 22px;border-bottom:1px solid #ffffff0d;text-align:center}
  #leaderboard-view .leaderboard-heading h1{order:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:none;min-width:0;width:100%;height:clamp(40.92px,11.88vw,55.44px);margin:0;font-size:clamp(31px,9vw,42px);line-height:1.2;text-align:center;white-space:nowrap}
  #leaderboard-view .leaderboard-heading h1>span{display:block;flex:none;white-space:nowrap}
  #leaderboard-view .leaderboard-heading[data-board-mode="achievements"] h1>span{font-size:.70em}
  #leaderboard-view .leaderboard-heading .leaderboard-game-tabs{order:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));box-sizing:border-box;width:min(100%,540px);max-width:100%;min-width:0;margin:0;gap:5px;padding:5px}
  #leaderboard-view .leaderboard-heading .leaderboard-game-tab{min-width:0;padding:9px 4px;font-size:clamp(9px,1.4vw,11px)}
  #leaderboard-view .leaderboard-side{margin:0 0 18px!important;padding:0!important}
  #leaderboard-view .leaderboard-side .leaderboard-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:100%;box-sizing:border-box;margin:0!important}
  #leaderboard-view .leaderboard-side .leaderboard-tab{box-sizing:border-box;width:100%;min-width:0;min-height:44px!important;margin:0!important;padding:10px 6px!important;text-align:center;font-size:12px!important;font-weight:800}
  #leaderboard-view .leaderboard-side .leaderboard-tabs[data-leaderboard-section="progression"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #leaderboard-view .leaderboard-main>.your-rank{margin-top:16px}
}


@media(max-width:780px){
  /* Match every board's line-to-tabs spacing and keep the longer title on one row. */
  #leaderboard-view .leaderboard-heading h1{display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 auto;width:100%;height:clamp(40.92px,11.88vw,55.44px);min-height:0;font-size:clamp(31px,9vw,42px)!important;line-height:1.2!important;letter-spacing:-1.5px!important;white-space:nowrap!important}
  #leaderboard-view .leaderboard-heading[data-board-mode="achievements"] h1{transform:none!important}
  #leaderboard-view .leaderboard-side .leaderboard-tabs{margin:0!important}

}

#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="halloween2026_tower"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/halloween2026_tower')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="halloween2026_grove"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/halloween2026_grove')!important}
#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="halloween2026_picture"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/halloween2026_picture?v=2')!important}
@media(prefers-reduced-motion:reduce){#account-area .profile-chip.personalized-profile-chip.has-profile-background[data-profile-background="halloween2026_picture"]{background-image:linear-gradient(90deg,rgba(10,10,19,.78),rgba(10,10,19,.62)),url('/profile-background-v4/halloween2026_picture_still?v=2')!important}}
.profile-volume-controls{display:grid;gap:16px;max-width:560px;margin:20px 0 8px}.profile-volume-row{display:grid;grid-template-columns:minmax(0,1fr) 50px;gap:8px 16px;align-items:center}.profile-volume-row label{font-size:13px;font-weight:750;color:#e8e1f3}.profile-volume-row output{text-align:right;color:#c5b3ed;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}.profile-volume-row input[type=range]{grid-column:1/-1;width:100%;min-width:0;height:28px;margin:0;padding:0;appearance:none;-webkit-appearance:none;border-radius:999px;background:linear-gradient(to right,#b49af2 0%,#b49af2 var(--phl-volume-fill,0%),#292438 var(--phl-volume-fill,0%),#292438 100%) center/calc(100% - 16px) 8px no-repeat;cursor:pointer}
.profile-volume-row input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:999px;background:transparent}
.profile-volume-row input[type=range]::-moz-range-track{height:8px;border-radius:999px;background:transparent}
.profile-volume-row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;margin-top:-4px;border:2px solid #e2d5ff;border-radius:50%;background:#866dba;box-shadow:0 0 0 1px #221d32}
.profile-volume-row input[type=range]::-moz-range-thumb{width:12px;height:12px;border:2px solid #e2d5ff;border-radius:50%;background:#866dba;box-shadow:0 0 0 1px #221d32}
@media(forced-colors:active){.profile-volume-row input[type=range]{appearance:auto;-webkit-appearance:auto;background:none}.profile-volume-row input[type=range]::-webkit-slider-runnable-track,.profile-volume-row input[type=range]::-moz-range-track{background:CanvasText}}.profile-volume-row input[type=range]:focus-visible{outline:2px solid #c5b3ed;outline-offset:4px;border-radius:5px}.profile-volume-row.is-master{padding-bottom:16px;border-bottom:1px solid #ffffff12}.profile-sound-settings .profile-settings-actions{min-height:30px}
.profile-sound-settings [hidden]{display:none!important}

.profile-volume-details summary{cursor:pointer;font-size:13px;font-weight:750;color:#c5b3ed;padding:4px 0}.profile-volume-details summary:focus-visible{outline:2px solid #c5b3ed;outline-offset:4px;border-radius:4px}.profile-volume-details[open] summary{margin-bottom:16px}.profile-volume-categories{display:grid;gap:16px}
/* Shared profile navigation must be styled before habitat assets are opened. */
.public-profile-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px;min-width:0}
.public-profile-toolbar .public-profile-back{margin:0!important;flex-shrink:0}
.profile-habitats-link{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0;max-width:55%;color:#c7b5ee;text-decoration:none}
.public-profile-toolbar .back-link,.public-profile-toolbar .profile-habitats-link{font-size:12px;line-height:1.4}
.profile-habitats-link>span:not([aria-hidden]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-habitats-link>span[aria-hidden]{flex-shrink:0}.profile-habitats-link:hover{color:#eadfff}
@media(max-width:600px){.public-profile-toolbar{gap:8px}}

/* Habitat preview links remain administrator-only until release. */
.profile-habitats-link{display:inline-flex!important}
html[data-habitat-admin-preview] .profile-habitats-link{display:inline-flex!important}
