body[data-mode="profile"] { --accent: #a9dff5; }
[data-mode="profile"] .arcade-art { background-image: url("assets/broadcast-locker.webp"); }
.cover-profile { --cover: url("assets/broadcast-locker.webp"); }
[data-stage="profile"] .arcade-hero { display: none; }
#steam-account.logged-in { border: 1px solid #3b5269; background: #111e2d; }
.utilities #steam-account .header-avatar { display: inline-grid; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.profile-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); gap: 20px; align-items: center; }
.profile-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; min-width: 0; }
.profile-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 78px; height: 78px; overflow: hidden; border: 2px solid var(--accent); border-radius: 50%; background: #172638; color: #b8c9d8; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar .icon { width: 35px; height: 35px; }
.profile-identity > div { min-width: 0; }
.profile-identity h2 { font: 900 clamp(2rem, 4vw, 3.5rem)/1 var(--display); overflow-wrap: anywhere; }
.profile-identity p { margin-top: 6px; color: #a9bac9; font-size: .75rem; overflow-wrap: anywhere; }
.profile-identity .copy-button { flex-basis: 100%; justify-self: start; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.profile-stat-grid > div { display: grid; gap: 5px; padding: 12px 8px; border: 1px solid #354d63; background: #0b1825; text-align: center; }
.profile-stat-grid strong { color: var(--accent); font: 900 1.7rem/1 var(--display); }
.profile-stat-grid span { color: #9eb0c0; font-size: .65rem; }
.profile-layout { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: 15px; margin-top: 15px; align-items: start; }
.profile-section h2 { margin-bottom: 16px; font: 900 1.65rem var(--display); }
.profile-section h3 { margin: 18px 0 10px; font-size: .9rem; }
.settings-form { display: grid; gap: 9px; }
.setting-row { display: flex; align-items: flex-start; gap: 9px; padding: 10px 0; border-top: 1px solid #30465b; color: #c0cdd8; font-size: .8rem; line-height: 1.45; cursor: pointer; }
.setting-row input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--accent); }
.settings-form .primary { margin-top: 8px; }
.settings-status { color: #9fb3c4; font-size: .75rem; }
.add-friend-form { display: flex; gap: 8px; }
.add-friend-form input, .invite-friend-form input { width: 100%; min-width: 0; min-height: 44px; padding: 0 11px; border: 1px solid #40586f; background: #091422; color: var(--text); font-family: var(--mono); }
.friend-list, .friend-requests, .profile-invites { display: grid; gap: 7px; margin-top: 14px; }
.friend-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 9px; border: 1px solid #334b61; background: #0c1926; }
.friend-row .player-avatar { width: 34px; height: 34px; }
.friend-name { flex: 1; min-width: 100px; overflow-wrap: anywhere; font-weight: 650; font-size: .85rem; }
.friend-row > span:not(.player-avatar) { color: #a7b8c7; font-size: .75rem; }
.friend-row .primary, .friend-row .secondary { min-height: 36px; padding: 0 10px; font-size: .72rem; }
.empty-friends { padding: 18px 5px; color: #9eb0c0; font-size: .8rem; line-height: 1.55; }
.profile-logout { margin-top: 15px; color: #ffb3aa; }
.invite-friend-form { display: grid; gap: 12px; }
.invite-friends-room { margin-top: 20px; margin-left: 10px; }
@media (max-width: 1050px) {
  .profile-summary { grid-template-columns: 1fr; }
}
@media (max-width: 749px) {
  .profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .profile-avatar { width: 62px; height: 62px; }
  .profile-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .add-friend-form { flex-direction: column; }
  .friend-row .secondary { width: 100%; }
  .invite-friends-room { margin-left: 0; }
}
