/* Profil du joueur : identité vive, actions compactes et fil personnel. */
.profile-page {
  color: #f8f7ff;
  background:
    radial-gradient(circle at 18% 5%, rgba(0, 229, 255, .10), transparent 27%),
    radial-gradient(circle at 92% 17%, rgba(255, 45, 120, .12), transparent 30%),
    linear-gradient(180deg, #0d0d1d 0%, #080812 68%);
}
.profile-page::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .26;
  background-image: radial-gradient(circle, rgba(255,255,255,.2) .6px, transparent .7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 55%);
}
.profile-halo { position: absolute; border-radius: 50%; filter: blur(34px); pointer-events: none; opacity: .18; }
.profile-halo-a { width: 130px; height: 130px; background: #00e5ff; top: -60px; left: -50px; }
.profile-halo-b { width: 150px; height: 150px; background: #ff2d78; top: 70px; right: -90px; }
.profile-wrap { position: relative; z-index: 1; padding: 36px 16px 24px; display: flex; flex-direction: column; gap: 12px; }

.profile-identity {
  min-height: 92px; padding: 12px 12px 12px 14px; display: flex; align-items: center; gap: 13px;
  border: 1px solid rgba(255,255,255,.11); border-radius: 22px;
  background: linear-gradient(125deg, rgba(34,35,68,.94), rgba(18,18,39,.94));
  box-shadow: 0 14px 34px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.05);
}
.profile-avatar-ring {
  width: 72px; height: 72px; flex: none; padding: 3px; border-radius: 50%;
  background: conic-gradient(from 30deg, #ffe600, #ff6b00, #ff2d78, #7b61ff, #00e5ff, #ffe600);
  box-shadow: 0 0 20px rgba(0,229,255,.18);
}
.profile-avatar { width: 100%; height: 100%; display: block; border: 3px solid #15152b; border-radius: 50%; background: #15152b; }
.profile-name { flex: 1; min-width: 0; }
.profile-eyebrow { color: #8d8daa; font-size: 9px; line-height: 1; font-weight: 900; letter-spacing: .16em; }
.profile-pseudo { margin-top: 5px; overflow: hidden; color: #fff; font-size: 21px; line-height: 1.08; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.profile-player-line { margin-top: 7px; color: #aaaac2; font-size: 11px; font-weight: 700; }
.profile-player-line span { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #5cff91; box-shadow: 0 0 8px #5cff91; }
.profile-gear {
  width: 43px; height: 43px; flex: none; border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  background: rgba(6,6,18,.48); color: #d7d7e8; font: 22px/1 Nunito,sans-serif; cursor: pointer;
  box-shadow: inset 0 1px rgba(255,255,255,.05); touch-action: manipulation;
}
.profile-gear:active { transform: scale(.96); }

.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.profile-action {
  --accent: #ffe600; position: relative; min-width: 0; height: 78px; padding: 10px 10px 10px 11px;
  display: flex; align-items: center; gap: 9px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  border-radius: 17px; color: #fff; text-align: left; cursor: pointer; touch-action: manipulation;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, #17172b), #121224 72%);
  box-shadow: 0 8px 18px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.07);
  font-family: Nunito,sans-serif;
}
.profile-action::after {
  content: ''; position: absolute; width: 70px; height: 70px; right: -30px; bottom: -38px;
  border-radius: 50%; background: var(--accent); opacity: .12; box-shadow: 0 0 28px var(--accent);
}
.profile-action:active { transform: translateY(1px) scale(.985); }
.profile-action-play { --accent: #ffe600; }
.profile-action-challenges { --accent: #ff4050; }
.profile-action-successes { --accent: #00d9f5; }
.profile-action-stats { --accent: #a878ff; }
.profile-action-icon {
  position: relative; z-index: 1; width: 37px; height: 37px; display: grid; place-items: center; flex: none;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, rgba(0,0,0,.3)); font-size: 20px;
}
.profile-action-text { position: relative; z-index: 1; min-width: 0; flex: 1; }
.profile-action-title { font-size: 15px; line-height: 1.05; font-weight: 900; }
.profile-action-meta { margin-top: 4px; overflow: hidden; color: #aaaac0; font-size: 9.5px; line-height: 1.15; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.profile-action-arrow { position: relative; z-index: 1; color: var(--accent); font-size: 21px; font-weight: 900; }

.profile-feed {
  padding: 11px 11px 9px; border: 1px solid rgba(255,255,255,.10); border-radius: 19px;
  background: linear-gradient(160deg, rgba(28,28,53,.96), rgba(13,13,29,.96));
  box-shadow: 0 10px 24px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.045);
}
.profile-feed-head { height: 20px; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 3px; }
.profile-feed-title { color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.profile-feed-title span { color: #ffe600; }
.profile-feed-status { color: #747491; font-size: 9px; font-weight: 800; }
.profile-feed-window { position: relative; height: 72px; overflow: hidden; border-radius: 13px; background: rgba(5,5,16,.46); }
.profile-feed-loading { height: 72px; display: grid; place-items: center; color: #767690; font-size: 11px; }
.profile-feed-track { will-change: transform; }
.profile-feed-item {
  width: 100%; height: 72px; padding: 9px 9px 9px 10px; display: flex; align-items: center; gap: 9px;
  border: 0; border-left: 3px solid var(--feed-accent,#ffe600); color: #fff; text-align: left;
  background: linear-gradient(90deg, color-mix(in srgb, var(--feed-accent) 9%, transparent), transparent 70%);
  font-family: Nunito,sans-serif; cursor: pointer; touch-action: manipulation;
}
.profile-feed-challenge { --feed-accent: #ff4050; }
.profile-feed-result { --feed-accent: #f3c14b; }
.profile-feed-success { --feed-accent: #00d9f5; }
.profile-feed-quiet { --feed-accent: #a878ff; }
.profile-feed-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: none; border-radius: 10px; background: rgba(255,255,255,.07); font-size: 17px; }
.profile-feed-copy { min-width: 0; flex: 1; }
.profile-feed-kicker { overflow: hidden; color: var(--feed-accent); font-size: 9px; line-height: 1.2; font-weight: 900; letter-spacing: .05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.profile-feed-text { margin-top: 3px; display: -webkit-box; overflow: hidden; color: #d7d7e5; font-size: 10.5px; line-height: 1.23; font-weight: 700; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.profile-feed-link { flex: none; color: #fff; font-size: 9.5px; font-weight: 900; }
.profile-feed-dots { height: 9px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.profile-feed-dot { width: 4px; height: 4px; border-radius: 4px; background: #3d3d57; transition: width .2s, background .2s; }
.profile-feed-dot.active { width: 12px; background: #ffe600; }

.profile-advanced { display: flex; flex-direction: column; gap: 7px; padding-top: 2px; }
.profile-advanced-button { padding: 11px !important; border: 1px solid #2a2a4a !important; border-radius: 12px !important; font-size: 13px !important; }
.profile-install { margin: 0 !important; }
.profile-footer { padding-top: 1px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.profile-logout { border: 0; background: transparent; color: #77778f; font: 800 11px Nunito,sans-serif; cursor: pointer; touch-action: manipulation; }
.profile-version { min-height: 15px; color: #5f5f78; font-size: 10px; text-align: center; touch-action: manipulation; }

@media (prefers-reduced-motion: reduce) {
  .profile-feed-track { transition: none !important; }
  .profile-action, .profile-gear { transition: none; }
}
