.profile-demo { align-items: center; flex-wrap: wrap; }
.profile-demo > .text-link { margin-left: auto; }
.profile-hero { padding: 26px; }
.driver-identity { display: flex; align-items: center; gap: 24px; }
.driver-avatar { display: grid; place-items: center; width: 94px; height: 94px; flex: 0 0 94px; border: 1px solid #5a4930; border-radius: 8px; background: #2c2922; color: var(--gold); font-size: 32px; font-weight: 500; letter-spacing: 2px; }
.driver-details { min-width: 0; }
.driver-details p .text-link { white-space: normal; overflow-wrap: anywhere; }
.driver-details h2 { font-size: 28px; margin: 3px 0; overflow-wrap: anywhere; }
.driver-meta { display: flex; flex-wrap: wrap; gap: 7px 20px; font-size: 12px; color: var(--muted); }
.driver-games { display: flex; gap: 7px; align-items: center; margin-top: 13px; }
.driver-games .game-pill { margin: 0; }
.profile-achieved { margin-left: auto; padding-left: 25px; border-left: 1px solid var(--line); white-space: nowrap; }
.profile-achieved > strong { display: block; font-size: 30px; font-weight: 500; line-height: 1.3; }
.profile-achieved strong > span { color: var(--muted); font-size: 17px; }
.profile-achieved small { display: block; color: var(--muted); margin: 3px 0 7px; }
.driver-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 23px; border-top: 1px solid var(--line); padding-top: 20px; }
.profile-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin: 22px 0 26px; overflow-x: auto; }
.profile-tabs a { color: var(--muted); font-size: 14px; white-space: nowrap; padding: 12px 2px 14px; border-bottom: 2px solid transparent; }
.profile-tabs a[aria-current], .profile-tabs a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.profile-tabs a:focus-visible { outline-offset: -3px; }
.profile-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-metrics strong { font-size: clamp(23px, 2.2vw, 32px); overflow-wrap: anywhere; }
.profile-favorites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.profile-favorites h3 { font-size: 18px; margin-top: 10px; overflow-wrap: anywhere; }
.profile-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.care-summary { display: flex; align-items: center; gap: 18px; margin: 24px 0; }
.care-summary > strong { color: var(--green); font-weight: 500; font-size: 40px; letter-spacing: -1px; }
.care-summary > strong > span { font-size: 20px; }
.care-summary b { font-size: 14px; font-weight: 500; }
.care-summary p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.profile-game-share { margin-top: 24px; }
.profile-game-share > div { display: flex; justify-content: space-between; font-size: 13px; }
.profile-game-share strong { font-weight: 500; }
.profile-game-share small { font-size: 12px; }
.profile-footnote { font-size: 12px; color: var(--muted); margin-top: 18px; }
.profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 22px; }
.period-options { display: flex; gap: 6px; }
.period-options a { white-space: nowrap; font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 7px 13px; border-radius: 5px; }
.period-options a[aria-current], .period-options a:hover { background: #2c2922; border-color: #5a4930; color: var(--gold); }
.activity-chart { margin-top: 24px; }
.chart-scale { display: block; color: var(--muted); font-size: 11px; margin-bottom: 12px; }
.activity-bars { display: flex; gap: 5px; height: 185px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 45px, #2d364255 45px, #2d364255 46px); }
.activity-column { height: 100%; flex: 1; min-width: 0; display: flex; align-items: end; justify-content: center; }
.activity-column > span { display: block; background: var(--gold); width: 100%; max-width: 60px; border-radius: 3px 3px 0 0; opacity: .8; }
.activity-column:hover > span { opacity: 1; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--muted); }
.chart-data { margin-top: 23px; font-size: 13px; }
.chart-data summary { cursor: pointer; color: var(--gold); width: fit-content; }
.chart-data summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.chart-data .table-wrap { max-height: 330px; margin-top: 12px; }
.game-profile > h2 { font-size: 21px; margin-top: 25px; }
.game-distance { display: block; font-size: 34px; font-weight: 500; margin-top: 20px; }
.game-profile > p { margin-top: 0; }
.game-profile dl { margin: 24px 0; }
.game-profile dl > div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; }
.game-profile dt { color: var(--muted); }
.game-profile dd { margin: 0; text-align: right; }
.game-profile dd small { font-size: 11px; color: var(--muted); }
.job-status-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.job-status-summary > div > div { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.job-status-summary strong { font-weight: 500; }
.milestone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.milestone { display: flex; flex-direction: column; }
.milestone.is-earned { border-color: #41614f; }
.milestone-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 22px; }
.milestone-symbol { display: grid; place-items: center; height: 45px; min-width: 45px; border: 1px solid var(--line); border-radius: 7px; font-size: 19px; color: var(--muted); }
.is-earned .milestone-symbol { color: var(--gold); background: #2c2922; border-color: #5a4930; }
.milestone h3 { font-size: 18px; }
.milestone p { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.milestone-progress { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.milestone-progress progress { margin: 0; }
.milestone-progress small { color: var(--muted); min-width: 32px; text-align: right; font-size: 11px; }
@media (max-width: 1200px) {
  .profile-columns { gap: 16px; }
  .care-summary { flex-wrap: wrap; gap: 6px 16px; }
  .care-summary > strong { font-size: 35px; }
  .milestone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-status-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .profile-demo > .text-link { margin-left: 0; }
  .profile-hero { padding: 20px; }
  .driver-identity { flex-wrap: wrap; gap: 16px; }
  .driver-avatar { width: 62px; height: 68px; flex-basis: 62px; font-size: 24px; }
  .driver-details { flex: 1; }
  .driver-details h2 { font-size: 24px; }
  .driver-details .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .driver-games { gap: 5px; flex-wrap: wrap; }
  .profile-achieved { width: 100%; display: flex; align-items: center; gap: 12px; border-left: 0; border-top: 1px solid var(--line); padding: 15px 0 0; }
  .profile-achieved > strong { font-size: 22px; }
  .profile-achieved small { font-size: 11px; margin: 0; }
  .profile-achieved .text-link { margin-left: auto; font-size: 11px; }
  .driver-badges { margin-top: 16px; padding-top: 16px; }
  .driver-badges .tag { font-size: 10px; }
  .profile-tabs { gap: 22px; }
  .profile-tabs a { font-size: 13px; }
  .profile-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-metrics strong { font-size: 24px; }
  .profile-favorites, .profile-columns, .milestone-grid { grid-template-columns: 1fr; }
  .profile-favorites { gap: 12px; }
  .profile-favorites .panel { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
  .profile-favorites h3 { margin: 0; font-size: 16px; text-align: right; }
  .profile-section-heading { flex-wrap: wrap; }
  .period-options { width: 100%; }
  .period-options a { flex: 1; text-align: center; }
  .activity-bars { gap: 3px; height: 150px; }
}
