/* Fixed one-screen Profile. The complete 100:130 composition fits between
   the header and footer; modules never scroll independently or under the title. */
body #screen-profile{align-items:center;justify-content:flex-start;height:100dvh;overflow:clip;}
body #screen-profile>.profile-header{
 position:absolute;inset:0 auto auto 50%;transform:translateX(-50%);
 width:min(440px,100%);height:76px;z-index:9;
 background:transparent!important;border:0;box-shadow:none;backdrop-filter:none;
}
body #screen-profile>.profile-header .profile-home,
body #screen-profile>.profile-header .profile-settings{top:16px;}
body #screen-profile>.profile-header .profile-logo{
 left:50%;top:8px;width:min(220px,calc(100% - 108px));height:auto;
 transform:translateX(-50%);object-fit:contain;
}
#screen-profile .profile-page-scroll{
 position:absolute;inset:76px 0 calc(84px + env(safe-area-inset-bottom));
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 min-height:0;padding:0;box-sizing:border-box;overflow:clip;
 overscroll-behavior:none;touch-action:manipulation;container-type:size;
}
body #screen-profile .profile-stage{
 flex:none;align-self:center;margin:0;
 width:min(100cqw,calc(100cqh / 1.30),440px);max-width:100%;
 height:auto;min-height:0;aspect-ratio:100 / 130;overflow:clip;
}
/* Remove the old header/navigation allocation from the content plane. */
#screen-profile :is(.profile-user-panel,.profile-buddy-panel,.profile-stickers-panel){transform:translateY(-21cqw);}
#screen-profile .profile-background{display:none;}
#screen-profile .profile-stat{
 inset:auto;top:61.12cqw;width:23.34cqw;height:max(44px,12.70cqw);
}
#screen-profile .profile-stat-words{left:5.22cqw;}
#screen-profile .profile-stat-stars{left:30.55cqw;}
#screen-profile .profile-stat::before{inset:0;width:100%;height:100%;}
#screen-profile .profile-stat-words>img{left:-1.185296cqw;top:-3.738119cqw;}
#screen-profile .profile-stat-stars>img{left:-1.204411cqw;top:-3.693008cqw;}
#screen-profile .profile-stat>div{
 inset:0 2px 0 38%;display:flex;flex-direction:column;align-items:center;
 justify-content:center;gap:1px;white-space:normal;
}
#screen-profile .profile-stat strong,
html:not(.stickyword-native-ipad) #screen-profile .profile-stat span{
 position:static;display:block;width:100%;height:auto;line-height:1.1;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#screen-profile .profile-stat strong{font-size:clamp(14px,4.25cqw,19px);}
html:not(.stickyword-native-ipad) #screen-profile .profile-stat span{font-size:clamp(11px,2.9cqw,13px);}
#screen-profile #profile-notice{position:fixed;bottom:96px;font-size:13px;max-width:86vw;}
body #screen-profile>.navigation-bar{bottom:max(12px,env(safe-area-inset-bottom));}

/* Module titles are live Fredoka text, using the common title palette. */
#screen-profile :is(.profile-buddy-heading,#profile-stickers-title){
 font-family:Fredoka,sans-serif;font-weight:600;line-height:1.25;
 height:auto;overflow:visible;letter-spacing:0;
}
#screen-profile #profile-stickers-title{width:43cqw;font-size:4.3cqw;}
#screen-profile .profile-buddy-heading{font-size:4.7cqw;}
#screen-profile :is(.profile-buddy-heading,#profile-stickers-title) .ui-subtitle-letter{
 color:var(--ui-subtitle-letter-ink);-webkit-text-fill-color:var(--ui-subtitle-letter-ink);
 font:inherit;text-shadow:none;
}
#screen-profile .profile-details h1{color:#e76083;font-family:Fredoka,sans-serif;font-weight:600;line-height:1.15;height:auto;}
#screen-profile #profile-gender{color:#c75c8b;}
#screen-profile .profile-details p:nth-of-type(2){color:#329fa8;}
#screen-profile .profile-stat-words span{color:#008b80;}
#screen-profile .profile-stat-stars span{color:#6428d6;}
/* Keep action hit areas usable when the whole composition fits a short view. */
#screen-profile :is(.profile-see-all,.profile-visit-buddy)::before{
 content:"";position:absolute;inset:auto 0 auto;top:50%;
 height:max(100%,44px);transform:translateY(-50%);min-height:44px;
}


/* v1.34: See all keeps its existing button/expanded hit area, with live text
   instead of the old image's blue plate. The original PNG remains untouched. */
#screen-profile .profile-see-all>img{visibility:hidden;}
#screen-profile .profile-see-all::after{
 content:"See all ›";position:absolute;inset:0;min-height:0;
 display:flex;align-items:center;justify-content:center;white-space:nowrap;
 font:800 3.5cqw/1 Nunito,sans-serif;color:#2783ba;
}
/* The app brand is colorful; Settings itself stays single-ink. */
#player-settings-dialog.is-settings-overview #player-settings-title{color:#35495f!important;-webkit-text-fill-color:#35495f!important;}
#player-settings-dialog .player-settings-kicker .ui-subtitle-letter{color:var(--ui-subtitle-letter-ink)!important;-webkit-text-fill-color:var(--ui-subtitle-letter-ink)!important;font:inherit;}
#player-settings-dialog .settings-player-actions{display:grid;gap:9px;}
