.perfil {
  background: radial-gradient(ellipse at 85% 0%, #353237, transparent 55%), #1a1d21;
}
.profile-layout {
  width: min(100% - 2rem, 53rem);
  margin-inline: auto;
  padding-top: clamp(2.75rem, 8vw, 6rem);
}
.profile-heading { margin-bottom: 2rem; }
.profile-heading h1 { margin-bottom: .8rem; }
.profile-heading p, .profile-panel p { color: var(--muted); line-height: 1.65; }
.profile-panel {
  padding: clamp(1rem, 4.5vw, 2.25rem);
  background: #22252a;
  border: 1px solid var(--line);
  border-radius: .75rem;
}
.profile-panel h2 { margin-bottom: .8rem; }
.profile-note { margin-top: 1rem; font-size: .9375rem; }
.profile-primary, .profile-secondary {
  padding: .65rem 1rem;
  min-height: 2.8rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.profile-primary { background: var(--gold); color: #24201a; }
.profile-primary:hover { background: #f3dcb9; }
.profile-secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.profile-secondary:hover { border-color: var(--gold); }
.profile-panel button:disabled { opacity: .5; cursor: default; }
#start { margin-top: 1.3rem; }
.profile-progress { display: grid; gap: .45rem; color: var(--gold); font-weight: 700; }
.profile-progress progress { width: 100%; height: .6rem; accent-color: var(--gold); }
.profile-panel fieldset { min-width: 0; padding: 0; border: 0; margin: 1.5rem 0 0; }
.profile-panel legend { padding: 0; font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.65rem); line-height: 1.35; }
.profile-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .5rem;
  margin-top: 1rem;
}
.profile-options label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 4.25rem;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  text-align: center;
  cursor: pointer;
}
.profile-options input { margin: 0; accent-color: var(--gold); }
.profile-options label:has(:checked) { border-color: var(--gold); background: #35302b; }
.profile-options label:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem; margin-top: 1.4rem; }
.profile-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-block: 1.25rem; }
.profile-score { padding: 1rem; border: 1px solid var(--line); border-radius: .4rem; }
.profile-score h3 { margin: 0; }
.profile-score meter { display: block; width: 100%; margin-block: .45rem; height: .9rem; }
.profile-score meter::-webkit-meter-optimum-value { background: var(--gold); }
.profile-score meter::-moz-meter-bar { background: var(--gold); }
.profile-score span { color: var(--gold); font-weight: 700; }
.profile-score p { margin-top: .45rem; font-size: .9375rem; }
.profile-footer { margin-top: 2rem; }
@media (max-width: 800px) {
  .profile-options { grid-template-columns: 1fr; }
  .profile-options label { min-height: 2.7rem; flex-direction: row; justify-content: start; text-align: start; padding-inline: .75rem; }
  .profile-scores { grid-template-columns: 1fr; }
}
