/* Profile polish: compact, mobile-first and strictly no horizontal carousels. */
html,body.profile-page{max-width:100%;overflow-x:hidden}
body.profile-page{background:radial-gradient(circle at 50% -10%,rgba(216,178,79,.055),transparent 34rem),#08090b}
.profile-page *,.profile-page *::before,.profile-page *::after{box-sizing:border-box}
.profile-dashboard-v2,.profile-dashboard-v2 .profile-shell,.profile-dashboard-v2 .profile-tab-panels,.profile-dashboard-v2 .profile-tab-panel,.profile-dashboard-v2 .profile-section,.profile-page .site-header,.profile-page .site-header>*{min-width:0;max-width:100%}
.profile-dashboard-v2{width:min(1180px,calc(100% - 24px));margin-inline:auto;overflow-x:hidden}
.profile-dashboard-v2 .profile-shell{gap:14px}
.profile-dashboard-v2 .profile-section{position:relative;overflow:hidden;padding:16px;border-radius:20px;background:linear-gradient(145deg,rgba(255,255,255,.035),transparent 45%),linear-gradient(180deg,rgba(13,19,29,.96),rgba(7,10,16,.94));border:1px solid rgba(255,255,255,.11);box-shadow:0 14px 36px rgba(0,0,0,.28)}
.profile-dashboard-v2 .profile-section::before{content:"";position:absolute;inset:0 auto auto 0;width:100%;height:1px;background:linear-gradient(90deg,transparent,rgba(216,178,79,.2),transparent);pointer-events:none}
.profile-dashboard-v2 .section-head{gap:12px;margin-bottom:12px}.profile-dashboard-v2 .section-head h2{margin:0;font-size:clamp(1.05rem,1rem + .35vw,1.35rem);line-height:1.12}.profile-dashboard-v2 .section-meta,.profile-dashboard-v2 .muted{color:rgba(255,255,255,.64)}
.profile-tabs{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:7px;width:100%;padding:0 0 4px;overflow:visible!important}
.profile-tab{width:100%;min-width:0;min-height:40px;padding:9px 10px;border-radius:12px;white-space:normal!important;text-align:center;line-height:1.12;background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.11)}
.profile-tab.is-active{background:linear-gradient(180deg,rgba(216,178,79,.16),rgba(216,178,79,.07));border-color:rgba(216,178,79,.34);box-shadow:inset 0 1px 0 rgba(237,207,120,.1)}
.profile-tab-panel{overflow-x:hidden!important;overflow-y:auto;scrollbar-width:thin}.profile-tab-panel.is-active{align-content:start}
.profile-dashboard-v2 .timeline-body,.profile-dashboard-v2 .collection-cards-body,.profile-dashboard-v2 #timelineBody,.profile-dashboard-v2 #collectionCardsBody{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(138px,100%),1fr));gap:10px!important;width:100%;max-width:100%;padding:6px 0!important;overflow-x:hidden!important;overflow-y:auto}
.profile-dashboard-v2 .timeline-card,.profile-dashboard-v2 .collection-card{width:100%!important;min-width:0!important;max-width:none;margin:0;padding:8px;border-radius:15px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.09)}
.profile-dashboard-v2 .timeline-card img,.profile-dashboard-v2 .collection-card img{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:11px}
.profile-dashboard-v2 #merits,.profile-dashboard-v2 #peopleGrid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(104px,100%),1fr))!important;gap:10px!important;width:100%;max-width:100%;overflow-x:hidden!important;overflow-y:auto}
.profile-dashboard-v2 .badge-mini,.profile-dashboard-v2 .avatar-card{width:100%;min-width:0}.profile-dashboard-v2 img,.profile-dashboard-v2 video,.profile-dashboard-v2 canvas,.profile-dashboard-v2 svg{max-width:100%}
.profile-dashboard-grid,.profile-grid-2,.profile-grid-3,.profile-mini-grid,.profile-games-grid,.groundhopper-stat-grid,.groundhopper-achievements,.knowledge-engine-summary{min-width:0}
.profile-game-card,.profile-mini-card,.latest-knowledge-box,.latest-trivia-box,.knowledge-engine-summary-card,.knowledge-engine-subject-card,.knowledge-engine-recommendation,.knowledge-engine-signal-group{min-width:0;overflow-wrap:anywhere}
.profile-game-card{border-radius:16px;background:linear-gradient(160deg,rgba(255,255,255,.075),rgba(255,255,255,.028))}
.profile-game-heading,.profile-game-stats span,.profile-journey-head,.profile-focus-actions,.profile-action-row{min-width:0;flex-wrap:wrap}
.profile-game-title,.profile-game-stats,.profile-dashboard-v2 p,.profile-dashboard-v2 li,.profile-dashboard-v2 a,.profile-dashboard-v2 button{overflow-wrap:anywhere}
.profile-page .site-header{width:100%;overflow-x:hidden}.profile-page .site-header .profile-hero-v2,.profile-hero-v2-inner,.profile-identity-block,.profile-hero-copy,.profile-header-status,.profile-hero-actions-v2{min-width:0;max-width:100%}.profile-hero-v2-inner,.profile-identity-block,.profile-header-status,.profile-hero-actions-v2{flex-wrap:wrap}.profile-dashboard-v2 .btn,.profile-dashboard-v2 .secondary{max-width:100%}
@media(max-width:760px){.profile-dashboard-v2{width:min(100% - 12px,1180px);margin-top:4px}.profile-dashboard-v2 .profile-shell{gap:8px;padding-bottom:8px}.profile-dashboard-v2 .profile-section,.profile-tab-panel .profile-section{padding:12px;border-radius:16px}.profile-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.profile-tab{min-height:38px;padding:8px 7px;font-size:.84rem}.profile-dashboard-grid,.profile-grid-2,.profile-grid-3,.profile-games-grid,.groundhopper-stat-grid,.groundhopper-achievements{grid-template-columns:1fr!important;gap:8px!important}.profile-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-dashboard-v2 .timeline-body,.profile-dashboard-v2 .collection-cards-body,.profile-dashboard-v2 #timelineBody,.profile-dashboard-v2 #collectionCardsBody{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-dashboard-v2 #merits,.profile-dashboard-v2 #peopleGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.profile-dashboard-v2 .section-head{display:grid;grid-template-columns:1fr}.profile-dashboard-v2 .section-meta{max-width:none;margin:0;text-align:left}}
@media(max-width:390px){.profile-tabs{grid-template-columns:1fr 1fr}.profile-mini-grid{grid-template-columns:1fr}.profile-dashboard-v2 #merits,.profile-dashboard-v2 #peopleGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.profile-dashboard-v2 .timeline-body,.profile-dashboard-v2 .collection-cards-body,.profile-dashboard-v2 #timelineBody,.profile-dashboard-v2 #collectionCardsBody{grid-template-columns:1fr 1fr}}
