.jw-profile-open {
  overflow: hidden;
}

.jw-profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 28px);
  background:
    radial-gradient(circle at 18% 8%, rgba(230, 209, 91, 0.09), transparent 34%),
    rgba(3, 3, 6, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 1;
  transition: opacity 180ms ease;
}

.jw-profile-overlay.hidden {
  pointer-events: none;
  opacity: 0;
}

.jw-profile-overlay [hidden] {
  display: none !important;
}

.jw-profile-shell {
  --profile-gold: var(--vault-gold, #e6d15b);
  --profile-gold-rgb: var(--vault-gold-rgb, 230, 209, 91);
  position: relative;
  width: min(1120px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: clamp(18px, 2vw, 30px);
  color: #f4f1eb;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 28%),
    #0d0c11;
  box-shadow:
    0 44px 130px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  scrollbar-color: rgba(var(--profile-gold-rgb), 0.48) transparent;
}

.jw-profile-close {
  position: sticky;
  float: right;
  top: 14px;
  right: 14px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 14px 14px -58px 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  color: #f5f2ec;
  background: rgba(9, 8, 12, 0.78);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font: 300 30px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.jw-profile-close:hover,
.jw-profile-close:focus-visible {
  border-color: rgba(var(--profile-gold-rgb), 0.55);
  color: var(--profile-gold);
  outline: none;
  transform: translateY(-1px);
}

.jw-profile-loading {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 60px 24px;
  color: #aaa5af;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.jw-profile-view {
  min-height: 560px;
}

.jw-profile-hero {
  position: relative;
  border-radius: inherit;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.jw-profile-banner {
  position: relative;
  min-height: clamp(118px, 11vw, 142px);
  overflow: hidden;
  border-radius: inherit;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  background-color: #121116;
  background-image:
    radial-gradient(circle at 12% 12%, rgba(230, 209, 91, 0.17), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(119, 78, 196, 0.13), transparent 31%),
    linear-gradient(118deg, #1d1916, #121116 50%, #0a090d);
  background-position: center;
  background-size: cover;
  transition: min-height 180ms ease;
}

.jw-profile-hero.has-banner .jw-profile-banner {
  min-height: clamp(190px, 20vw, 244px);
}

.jw-profile-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background:
    linear-gradient(104deg, transparent 0 56%, rgba(255, 255, 255, 0.025) 56% 57%, transparent 57%),
    linear-gradient(104deg, transparent 0 70%, rgba(var(--profile-gold-rgb), 0.035) 70% 71%, transparent 71%),
    url("/brand-999-solid-512.png?v=2100.2");
  background-position: center, center, calc(100% - 28px) center;
  background-repeat: no-repeat;
  background-size: auto, auto, clamp(210px, 25vw, 320px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.jw-profile-banner.has-image::before {
  opacity: 0;
}

.jw-profile-banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(7, 6, 9, 0.02), rgba(7, 6, 9, 0.16) 58%, rgba(7, 6, 9, 0.7)),
    linear-gradient(to right, rgba(7, 6, 9, 0.12), transparent 58%);
  pointer-events: none;
}

.jw-profile-banner.has-image .jw-profile-banner-shade {
  background:
    linear-gradient(to bottom, rgba(7, 6, 9, 0.02), rgba(7, 6, 9, 0.16) 55%, rgba(7, 6, 9, 0.78)),
    linear-gradient(to right, rgba(7, 6, 9, 0.16), transparent 62%);
}

.jw-profile-identity-bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) max-content;
  gap: 18px;
  align-items: center;
  min-height: 108px;
  margin-top: -44px;
  padding: 8px clamp(22px, 4vw, 44px) 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(to bottom, transparent, rgba(13, 12, 17, 0.94) 38%, #0d0c11 76%);
}

.jw-profile-avatar-wrap {
  --profile-aura-color: #e6d15b;
  position: relative;
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  border-radius: 29px;
  isolation: isolate;
}

.jw-profile-avatar-wrap::before,
.jw-profile-avatar-wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}

.jw-profile-avatar-wrap[data-aura="color"]::before,
.jw-profile-avatar-wrap[data-aura="particles"]::before {
  inset: -4px;
  opacity: 1;
  background: var(--profile-aura-color);
  box-shadow:
    0 0 14px color-mix(in srgb, var(--profile-aura-color) 58%, transparent),
    0 0 34px color-mix(in srgb, var(--profile-aura-color) 24%, transparent);
}

.jw-profile-avatar-wrap[data-aura="particles"]::before {
  background:
    conic-gradient(
      from 0deg,
      #e6d15b,
      #fff2a5,
      #8e7923,
      #e6d15b,
      #fff2a5,
      #e6d15b
    );
  animation: jw-profile-aura-spin 7s linear infinite;
}

.jw-profile-avatar-wrap[data-aura="particles"]::after {
  inset: -12px;
  opacity: 0.62;
  background:
    radial-gradient(circle at 18% 28%, #fff2a5 0 2px, transparent 3px),
    radial-gradient(circle at 83% 18%, #e6d15b 0 2px, transparent 3px),
    radial-gradient(circle at 87% 76%, #fff2a5 0 1.5px, transparent 3px),
    radial-gradient(circle at 24% 88%, #e6d15b 0 1.5px, transparent 3px);
  animation: jw-profile-particles-pulse 2.4s ease-in-out infinite;
}

@keyframes jw-profile-aura-spin {
  to { transform: rotate(360deg); }
}

@keyframes jw-profile-particles-pulse {
  50% { opacity: 0.34; transform: scale(1.06); }
}

.jw-profile-avatar-media {
  position: relative;
  width: 98px;
  height: 98px;
  overflow: hidden;
  border: 4px solid #0d0c11;
  border-radius: 25px;
  background:
    linear-gradient(145deg, rgba(var(--profile-gold-rgb), 0.2), rgba(255, 255, 255, 0.03)),
    #17151c;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.jw-profile-avatar-media img,
.jw-profile-avatar-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.jw-profile-avatar-media img {
  object-fit: cover;
  object-position: center;
}

.jw-profile-avatar-fallback {
  color: var(--profile-gold);
  font: 800 32px/1 system-ui, sans-serif;
}

.jw-profile-identity-copy {
  min-width: 0;
  align-self: center;
}

.jw-profile-name-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.jw-profile-name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: #f6f3ed;
  font: 800 clamp(24px, 2.6vw, 32px) / 1.08 system-ui, sans-serif;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jw-profile-achievement-badges {
  display: flex;
  min-width: 0;
  max-height: 48px;
  flex-wrap: wrap;
  gap: 5px;
  overflow: hidden;
  margin-top: 7px;
}

.jw-profile-achievement-badge {
  display: inline-flex;
  min-width: 0;
  max-width: 170px;
  align-items: center;
  gap: 5px;
  padding: 3px 7px 3px 5px;
  border: 1px solid rgba(var(--profile-gold-rgb), 0.16);
  border-radius: 999px;
  color: #bdb7c1;
  background: rgba(var(--profile-gold-rgb), 0.045);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.jw-profile-achievement-badge-icon {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
}

.jw-profile-achievement-badge-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jw-profile-online {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(96, 220, 150, 0.26);
  border-radius: 999px;
  color: #80e0aa;
  background: rgba(79, 188, 125, 0.1);
  font-size: 11px;
  font-weight: 700;
}

.jw-profile-online::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #7be4a8;
  box-shadow: 0 0 10px rgba(123, 228, 168, 0.8);
}

.jw-profile-username {
  margin-top: 6px;
  color: #a8a3ad;
  font-size: 15px;
}

.jw-profile-member-since {
  margin-top: 5px;
  color: #6f6a74;
  font-size: 12px;
}

.jw-profile-owner-actions {
  display: flex;
  align-self: center;
  justify-self: end;
  gap: 8px;
}

.jw-profile-edit-button,
.jw-profile-logout-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(var(--profile-gold-rgb), 0.35);
  border-radius: 13px;
  color: #f1df77;
  background: rgba(var(--profile-gold-rgb), 0.08);
  font: 700 13px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.jw-profile-edit-button:hover,
.jw-profile-edit-button:focus-visible,
.jw-profile-logout-button:hover,
.jw-profile-logout-button:focus-visible {
  border-color: rgba(var(--profile-gold-rgb), 0.65);
  outline: none;
  background: rgba(var(--profile-gold-rgb), 0.14);
  transform: translateY(-1px);
}

.jw-profile-logout-button {
  border-color: rgba(255, 255, 255, 0.1);
  color: #9f99a3;
  background: rgba(255, 255, 255, 0.025);
}

.jw-profile-content {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.85fr);
  grid-template-areas:
    "about stats"
    "pinned quiz";
  gap: 18px;
  align-items: stretch;
  padding: clamp(20px, 3vw, 30px) clamp(18px, 4vw, 44px) 38px;
}

.jw-profile-main-column,
.jw-profile-side-column {
  display: contents;
}

.jw-profile-about {
  grid-area: about;
}

.jw-profile-pinned {
  grid-area: pinned;
}

.jw-profile-stats-card {
  grid-area: stats;
}

.jw-profile-quiz-card {
  grid-area: quiz;
}

.jw-profile-card {
  box-sizing: border-box;
  height: 100%;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.027), transparent 55%),
    #121117;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.jw-profile-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.jw-profile-card-heading h3,
.jw-profile-editor-section h3 {
  margin: 0;
  color: #f4f1eb;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.jw-profile-card-kicker,
.jw-profile-editor-kicker {
  color: var(--profile-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.jw-profile-bio {
  min-height: 54px;
  margin: 0;
  color: #c2bdc5;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.jw-profile-bio.is-empty {
  color: #706b74;
  font-style: italic;
}

.jw-profile-pinned-list,
.jw-profile-selected-songs,
.jw-profile-song-results {
  display: grid;
  gap: 9px;
}

.jw-profile-song {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 150ms ease, background 150ms ease;
}

.jw-profile-song:hover {
  border-color: rgba(var(--profile-gold-rgb), 0.22);
  background: rgba(var(--profile-gold-rgb), 0.035);
}

.jw-profile-song-cover {
  display: grid;
  width: 48px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(var(--profile-gold-rgb), 0.2), transparent),
    #211e27;
}

.jw-profile-song-cover::after {
  content: "999";
  color: rgba(230, 209, 91, 0.55);
  font-size: 10px;
  font-weight: 900;
}

.jw-profile-song-cover img {
  z-index: 1;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jw-profile-song-cover:has(img)::after {
  display: none;
}

.jw-profile-song-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.jw-profile-song-copy strong,
.jw-profile-song-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jw-profile-song-copy strong {
  color: #f2efe8;
  font-size: 14px;
}

.jw-profile-song-copy span {
  color: #7f7a84;
  font-size: 12px;
}

.jw-profile-song-action {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(var(--profile-gold-rgb), 0.2);
  border-radius: 11px;
  color: var(--profile-gold);
  background: rgba(var(--profile-gold-rgb), 0.07);
  font-size: 15px;
  cursor: pointer;
}

.jw-profile-song-action:hover,
.jw-profile-song-action:focus-visible {
  border-color: rgba(var(--profile-gold-rgb), 0.55);
  outline: none;
  background: rgba(var(--profile-gold-rgb), 0.14);
}

.jw-profile-song-action:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.jw-profile-empty,
.jw-profile-song-search-status {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  color: #77727c;
  font-size: 13px;
  text-align: center;
}

.jw-profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.jw-profile-stat {
  display: grid;
  gap: 5px;
  padding: 13px 8px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.jw-profile-stat strong {
  color: #f3e17c;
  font-size: 19px;
}

.jw-profile-stat span {
  color: #77727c;
  font-size: 10px;
  line-height: 1.25;
}

.jw-profile-quiz-card {
  position: relative;
  overflow: hidden;
  min-height: 155px;
  background:
    radial-gradient(circle at 85% 15%, rgba(var(--profile-gold-rgb), 0.2), transparent 38%),
    linear-gradient(145deg, #19171d, #111015);
}

.jw-profile-quiz-card::after {
  content: "999";
  position: absolute;
  right: -8px;
  bottom: -22px;
  color: rgba(var(--profile-gold-rgb), 0.07);
  font: 900 84px/1 Arial Black, sans-serif;
  letter-spacing: -0.12em;
}

.jw-profile-quiz-label {
  display: block;
  color: var(--profile-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.jw-profile-quiz-rating {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 14px;
  color: #f7f3ec;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.jw-profile-quiz-record {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  color: #8d8791;
  font-size: 12px;
}

/* Editor */
.jw-profile-editor {
  min-height: 640px;
  padding: clamp(28px, 4vw, 48px);
}

.jw-profile-editor-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 52px 28px 0;
}

.jw-profile-editor-heading h2 {
  margin: 7px 0 0;
  color: #f6f3ed;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.jw-profile-editor-back {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #bbb6be;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 700;
  cursor: pointer;
}

.jw-profile-editor-back:hover,
.jw-profile-editor-back:focus-visible {
  border-color: rgba(var(--profile-gold-rgb), 0.4);
  color: #f0dd73;
  outline: none;
}

.jw-profile-editor-form {
  display: grid;
  gap: 18px;
}

.jw-profile-editor-section {
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background: #121117;
}

.jw-profile-editor-section > h3 {
  margin-bottom: 8px;
}

.jw-profile-editor-help {
  margin: 0;
  color: #79747d;
  font-size: 12px;
}

.jw-profile-media-grid,
.jw-profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.jw-profile-file-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.022);
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.jw-profile-file-field.is-dragover {
  border-color: rgba(var(--profile-gold-rgb), 0.72);
  background: rgba(var(--profile-gold-rgb), 0.085);
  box-shadow:
    inset 0 0 0 1px rgba(var(--profile-gold-rgb), 0.18),
    0 0 30px rgba(var(--profile-gold-rgb), 0.08);
}

.jw-profile-file-field strong {
  color: #eeeae4;
  font-size: 14px;
}

.jw-profile-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.jw-profile-file-choose,
.jw-profile-file-remove {
  border: 0;
  color: var(--profile-gold);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.jw-profile-file-choose:hover,
.jw-profile-file-choose:focus-visible,
.jw-profile-file-remove:hover,
.jw-profile-file-remove:focus-visible {
  color: #fff0a1;
  outline: none;
  text-decoration: underline;
}

.jw-profile-file-remove:disabled {
  cursor: default;
  opacity: 0.35;
  text-decoration: none;
}

.jw-profile-file-name {
  overflow: hidden;
  color: #716c76;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jw-profile-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: #aaa5ad;
  font-size: 12px;
  font-weight: 700;
}

.jw-profile-field-wide {
  grid-column: 1 / -1;
}

.jw-profile-field input,
.jw-profile-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  outline: none;
  color: #f1ede7;
  background: rgba(255, 255, 255, 0.03);
  font: 400 14px/1.5 system-ui, sans-serif;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.jw-profile-field input {
  min-height: 48px;
  padding: 0 14px;
}

.jw-profile-field textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px 14px;
}

.jw-profile-field input:focus,
.jw-profile-field textarea:focus {
  border-color: rgba(var(--profile-gold-rgb), 0.5);
  box-shadow: 0 0 0 4px rgba(var(--profile-gold-rgb), 0.065);
}

.jw-profile-field-label-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.jw-profile-bio-counter {
  color: #6f6a73;
  font-weight: 500;
}

.jw-profile-aura-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.jw-profile-aura-option {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  color: #aaa5ae;
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  cursor: pointer;
}

.jw-profile-aura-option:has(input:checked) {
  border-color: rgba(var(--profile-gold-rgb), 0.5);
  color: #f3efe8;
  background: rgba(var(--profile-gold-rgb), 0.07);
}

.jw-profile-aura-option input {
  position: absolute;
  opacity: 0;
}

.jw-profile-aura-sample {
  --aura-option-color: #55515a;
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid #17151b;
  border-radius: 50%;
  background: #29262f;
  box-shadow:
    0 0 0 3px var(--aura-option-color),
    0 0 14px color-mix(in srgb, var(--aura-option-color) 52%, transparent);
}

.jw-profile-aura-sample[data-particles="true"] {
  background: radial-gradient(circle at 35% 30%, #fff6bd 0 2px, #e6d15b 3px 6px, #3a3112 7px);
}

.jw-profile-song-search {
  margin-top: 16px;
}

.jw-profile-song-results {
  max-height: 284px;
  overflow: auto;
  margin-top: 12px;
  padding-right: 4px;
}

.jw-profile-selected-song {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.jw-profile-selected-index {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  color: #f1df75;
  background: rgba(var(--profile-gold-rgb), 0.1);
  font-size: 11px;
  font-weight: 900;
}

.jw-profile-selected-song .jw-profile-song {
  width: 100%;
  box-sizing: border-box;
}

.jw-profile-editor-footer {
  position: sticky;
  bottom: -1px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 15px 0 2px;
  background: linear-gradient(to top, #0d0c11 72%, transparent);
}

.jw-profile-form-error {
  flex: 1;
  color: #ff8f9b;
  font-size: 12px;
  line-height: 1.35;
}

.jw-profile-save {
  min-width: 190px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  color: #12100a;
  background: linear-gradient(135deg, #f1df76, #d4bd46);
  box-shadow: 0 12px 30px rgba(var(--profile-gold-rgb), 0.15);
  font: 800 14px/1 system-ui, sans-serif;
  cursor: pointer;
}

.jw-profile-save:hover,
.jw-profile-save:focus-visible {
  outline: 2px solid rgba(255, 242, 166, 0.7);
  outline-offset: 2px;
}

.jw-profile-save:disabled {
  cursor: wait;
  opacity: 0.58;
}

@media (max-width: 820px) {
  .jw-profile-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "about about"
      "pinned pinned"
      "stats quiz";
  }

  .jw-profile-aura-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .jw-profile-overlay {
    padding: 0;
    place-items: stretch;
  }

  .jw-profile-shell {
    width: 100%;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .jw-profile-close {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .jw-profile-banner {
    min-height: 112px;
    border-radius: 0;
  }

  .jw-profile-hero.has-banner .jw-profile-banner {
    min-height: 168px;
  }

  .jw-profile-hero {
    border-radius: 0;
  }

  .jw-profile-identity-bar {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 96px;
    margin-top: -34px;
    padding: 7px 16px 16px;
  }

  .jw-profile-avatar-wrap {
    width: 80px;
    height: 80px;
    border-radius: 23px;
  }

  .jw-profile-avatar-media {
    width: 74px;
    height: 74px;
    border-width: 3px;
    border-radius: 20px;
  }

  .jw-profile-avatar-wrap[data-aura="color"]::before,
  .jw-profile-avatar-wrap[data-aura="particles"]::before {
    inset: -5px;
  }

  .jw-profile-name {
    font-size: 22px;
  }

  .jw-profile-achievement-badges {
    max-height: 26px;
    flex-wrap: nowrap;
    overflow: hidden;
    margin-top: 5px;
  }

  .jw-profile-achievement-badge {
    flex: 0 0 auto;
    max-width: 38px;
    padding: 4px 7px;
  }

  .jw-profile-achievement-badge-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }

  .jw-profile-online {
    padding: 4px 7px;
    font-size: 10px;
  }

  .jw-profile-owner-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    margin-top: 2px;
  }

  .jw-profile-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "about"
      "stats"
      "pinned"
      "quiz";
    gap: 14px;
    padding: 16px 14px 32px;
  }

  .jw-profile-card {
    padding: 18px;
    border-radius: 17px;
  }

  .jw-profile-editor {
    padding: 24px 14px 34px;
  }

  .jw-profile-editor-heading {
    display: block;
    margin: 10px 50px 22px 2px;
  }

  .jw-profile-editor-back {
    margin-top: 16px;
  }

  .jw-profile-media-grid,
  .jw-profile-info-grid {
    grid-template-columns: 1fr;
  }

  .jw-profile-aura-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jw-profile-editor-footer {
    display: grid;
    gap: 10px;
  }

  .jw-profile-save {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jw-profile-overlay,
  .jw-profile-close,
  .jw-profile-edit-button,
  .jw-profile-song {
    transition: none;
  }

  .jw-profile-avatar-wrap::before,
  .jw-profile-avatar-wrap::after {
    animation: none !important;
  }
}
