.profile-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:16px}
.profile-actions .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-align:center;font-size:13px}
.player-summary{margin-bottom:0;text-align:center}
.player-summary dt{color:var(--muted);font-size:11px}
.player-summary dd{margin:0;font-size:clamp(14px,2vw,21px);font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.profile-section-note{color:var(--muted);font-size:12px;padding:12px 2px 16px}
.profile-activity-controls,.profile-next-sections{padding:20px;margin-bottom:18px}
.profile-activity-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.profile-activity-controls>div{flex:1 1 240px}
.profile-activity-controls h3,.profile-next-sections h3{font-size:17px;margin-bottom:6px}
.profile-activity-controls p,.profile-next-sections p{color:var(--muted);font-size:12px}
.profile-activity-controls .button{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.profile-activity-group>summary{min-height:58px;padding:14px 20px;cursor:pointer;display:flex;align-items:center;gap:10px}
.profile-activity-group>summary::before{content:'›';font-size:22px;color:var(--accent);flex:0 0 auto}
.profile-activity-group[open]>summary::before{transform:rotate(90deg)}
.profile-activity-group>summary h3{font-size:14px;flex:1;min-width:0;overflow-wrap:anywhere}
.profile-activity-group>summary>span{color:var(--muted);font-size:11px;flex:0 0 auto}
.profile-activity-group>summary::-webkit-details-marker,.collection-card>summary::-webkit-details-marker{display:none}
.profile-scroll{container-type:inline-size}
.profile-table,.profile-history-table{table-layout:fixed;min-width:0;width:100%;white-space:normal}
.profile-measure-col{width:40%}.profile-rank-col{width:24%}.profile-value-col{width:36%}
.profile-table tbody th,.profile-history-table tbody th{position:static}
.profile-table td,.profile-table th,.profile-history-table td,.profile-history-table th{overflow-wrap:anywhere;letter-spacing:0;padding:12px 10px;vertical-align:top}
.profile-table td.number,.profile-history-table td.number{font-variant-numeric:tabular-nums}
.profile-table td.muted{padding-inline:3px;white-space:nowrap}
.profile-table .stat-link{align-items:flex-start;min-height:44px;line-height:1.5;gap:8px}
.profile-table .stat-link>span{min-width:0;overflow-wrap:anywhere}
.profile-table .stat-icon{width:21px;height:21px;margin-top:2px}
.profile-level{display:block;color:var(--muted);font-size:11px;font-weight:500;margin-top:3px}
.profile-table .score-unit,.profile-record-list .score-unit,.profile-history-table .score-unit{font-size:10px;line-height:1.5;white-space:normal;margin-top:4px}
.measure-explanation{font-size:11px;margin-top:6px;font-weight:500}
.measure-explanation summary{cursor:pointer;color:var(--accent);min-height:44px;display:list-item;padding-block:8px;line-height:1.5}
.measure-explanation p{margin:6px 0;color:var(--muted);font-size:11px;line-height:1.6}
.collection-form{display:flex;align-items:flex-end;gap:12px;padding:0 20px;flex-wrap:wrap}
.collection-form>div{flex:1 1 180px;min-width:0}
.collection-form label{display:block;font-size:12px;margin-bottom:5px;font-weight:700}
.collection-form input,.collection-form select{display:block;width:100%;min-width:0;min-height:46px;background:#110b1a;color:var(--text);padding:10px;border:1px solid #725488;border-radius:3px;font-size:16px}
.collection-form .button{min-height:46px;flex:0 0 auto;color:var(--gold)}
.collection-empty{padding:0 20px 20px;color:var(--muted)}
.collection-empty .button{display:inline-flex;align-items:center;min-height:44px;margin-top:12px;color:var(--gold)}
.collection-card summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px}
.collection-card summary::before{content:'›';font-size:20px;flex:0 0 auto;transform:rotate(0deg)}
.collection-card[open] summary::before{transform:rotate(90deg)}
.collection-card summary>span:first-of-type{flex:1;min-width:0;overflow-wrap:anywhere}
.collection-count{text-align:right;flex:0 0 auto;font-variant-numeric:tabular-nums;color:var(--text)}
.collection-count small{display:block;font-size:10px;color:var(--muted)}
.collection-card progress{display:block;width:calc(100% - 40px);height:8px;margin:0 20px 10px;accent-color:var(--gold)}
.missing-rewards{margin:0;padding:0 20px 18px 38px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.missing-rewards li{padding-block:3px}
.pet-disclosure summary{min-height:48px}
.profile-record-list{margin:0;padding:0;list-style:none}
.profile-record-list>li{padding:16px 20px;border-top:1px solid var(--line);overflow-wrap:anywhere}
.profile-record-list strong{font-size:14px}
.profile-record-list dl{display:flex;gap:12px 20px;flex-wrap:wrap;margin:12px 0 0}
.profile-record-list dl>div{flex:1 1 90px;min-width:0}
.profile-record-list dt{font-size:11px;color:var(--muted)}
.profile-record-list dd{margin:3px 0 0;font-size:13px;font-variant-numeric:tabular-nums}
.history-form .button{min-height:44px;color:var(--gold)}
.history-form select{font-size:16px;min-height:46px}
.room-records dt{overflow-wrap:anywhere}
@container (max-width:420px){
 .profile-table th,.profile-table td,.profile-history-table th,.profile-history-table td{font-size:11px;padding:12px 8px}
 .profile-table thead th,.profile-history-table thead th{font-size:10px;letter-spacing:0}
 .profile-table .stat-link{gap:6px}
 .profile-table .stat-icon{width:18px;height:18px}
 .profile-table .score-unit{font-size:9px}
 .profile-level{font-size:10px}
 .profile-table .measure-explanation summary{font-size:10px}
}
@media(max-width:420px){
 .profile-actions{gap:8px}
 .profile-actions .button{padding-inline:10px;font-size:12px}
 .player-summary{grid-template-columns:1fr 1fr 1.45fr}
 .player-summary dt{font-size:10px}
 .player-summary dd{font-size:14px}
 .profile-activity-controls,.profile-next-sections{padding:16px}
 .profile-activity-group>summary{padding-inline:16px;gap:8px}
 .history-form,.collection-form{padding-inline:16px}
 .history-form select{flex-basis:100%;max-width:100%}
 .collection-form>div{flex-basis:100%}
 .collection-form .button{width:100%}
 .collection-card summary{padding-inline:16px;gap:8px;font-size:12px}
 .profile-record-list>li{padding-inline:16px}
}
