.profile-music { position: relative; align-self: flex-end; z-index: 4; margin-top: 10px; }
.profile-music-disc {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #fff9;
  border-radius: 50%;
  background: radial-gradient(circle, #fdf5e2 16%, #ece0c8 18%, #f9f0df 35%, #d4bb91 37%, #faf2e5 65%);
  color: #65503c;
  box-shadow: 0 3px 10px #856c4833;
  cursor: pointer;
}
.profile-music-disc span { display: block; font-size: 18px; animation: profile-record-turn 3s linear infinite paused; }
.profile-music-disc.is-playing span { animation-play-state: running; }
@keyframes profile-record-turn { to { transform: rotate(360deg); } }

.profile-music-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 1;
  display: grid;
  gap: 6px;
  width: min(220px, 66vw);
  padding: 8px;
  border: 1px solid #d8c9b0;
  border-radius: 12px;
  background: #fff9ed;
  color: #55432f;
  box-shadow: 0 9px 26px #5b44263d;
}
.profile-music-menu button { min-height: 34px; padding: 5px 8px; border: 0; border-radius: 7px; background: #f3e9d8; color: inherit; cursor: pointer; }
.profile-music-tracks { display: grid; gap: 4px; max-height: 185px; overflow-y: auto; }
.profile-music-tracks button { text-align: left; overflow-wrap: anywhere; }
.profile-music-tracks button[aria-pressed="true"] { background: #e7d3b6; }
.profile-music-menu p { margin: 0; }
.profile-music-menu p:empty { display: none; }
.music-edit-list { display: grid; gap: 8px; margin-top: 12px; }
.music-edit-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.music-edit-list input { min-width: 0; padding: 7px 9px; border: 1px solid #cedacb; border-radius: 6px; background: #fff; color: #30493c; }

#moduleEffectEditor { margin-top: 18px; padding-top: 15px; border-top: 1px solid #e0e6d9; }
#moduleEffectEditor h3 { margin: 0 0 10px; }
.module-effect-fields { margin-top: 10px; }
:is([data-module-effect-style],[data-shared-effect]) { position: relative; isolation: isolate; }
:is([data-module-effect-style],[data-shared-effect])::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  --effect-color: var(--module-effect-color, #c78c46);
  pointer-events: none;
}
:is([data-module-effect-style="sweep"],[data-shared-effect="sweep"])::after {
  background: linear-gradient(112deg, transparent 34%, #fff5 46%, #fffd 50%, #fff4 55%, transparent 68%) no-repeat;
  background-size: 250% 100%;
  animation: module-silk-sweep 3.6s ease-in-out infinite;
}
:is([data-module-effect-style="glow"],[data-shared-effect="glow"])::after {
  box-shadow: inset 0 0 0 2px var(--effect-color), inset 0 0 21px 4px var(--effect-color);
  animation: module-soft-glow 2.4s ease-in-out infinite;
}
:is([data-module-effect-style="edge"],[data-shared-effect="edge"])::after {
  box-shadow: inset 0 0 0 2px var(--effect-color);
  animation: module-moving-edge 2.3s linear infinite;
}
@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  :is([data-module-effect-style="edge"],[data-shared-effect="edge"])::after {
    padding: 3px;
    box-shadow: none;
    background: linear-gradient(105deg, transparent 35%, var(--effect-color) 45%, #fff 50%, var(--effect-color) 55%, transparent 65%);
    background-size: 260% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
}
:is([data-module-effect-style="ripple"],[data-shared-effect="ripple"])::after {
  box-shadow: inset 0 0 0 2px var(--effect-color), inset 0 0 11px var(--effect-color);
  animation: module-soft-ripple 2.6s ease-out infinite;
}
:is([data-module-effect-style="sparkle"],[data-shared-effect="sparkle"])::after {
  background:
    radial-gradient(ellipse 2px 13px at 19% 29%, #fff 20%, var(--effect-color) 48%, transparent 100%),
    radial-gradient(ellipse 13px 2px at 19% 29%, #fff 20%, var(--effect-color) 48%, transparent 100%),
    radial-gradient(ellipse 2px 10px at 84% 72%, #fff 20%, var(--effect-color) 48%, transparent 100%),
    radial-gradient(ellipse 10px 2px at 84% 72%, #fff 20%, var(--effect-color) 48%, transparent 100%),
    radial-gradient(circle 12px at 19% 29%, var(--effect-color), transparent),
    radial-gradient(circle 9px at 84% 72%, var(--effect-color), transparent);
  animation: module-sparkle-shift 1.9s ease-in-out infinite;
}
@keyframes module-silk-sweep { 0%, 16% { background-position: 115% 0; } 52%, 100% { background-position: -30% 0; } }
@keyframes module-soft-glow { 0%, 100% { opacity: .15; } 50% { opacity: .85; } }
@keyframes module-moving-edge { 0% { background-position: 100% 0; opacity: .28; } 50% { opacity: 1; } 100% { background-position: 0 0; opacity: .28; } }
@keyframes module-soft-ripple {
  0% { opacity: 0; transform: scale(.76, .55); }
  20% { opacity: .9; }
  72%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes module-sparkle-shift {
  0%, 100% { opacity: .12; transform: scale(.92); }
  43% { opacity: 1; transform: scale(1); }
}

.visitor-decor-fan {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 8px;
  padding: 16px 0 2px;
}
.visitor-decor-fan > * { min-width: 0; animation: decor-fan-open .36s cubic-bezier(.2,.75,.25,1) both; }
.visitor-decor-fan > :nth-child(1) { grid-column: 2 / 4; --fan-x: 28px; }
.visitor-decor-fan > :nth-child(2) { grid-column: 4 / 6; --fan-x: -28px; }
.visitor-decor-fan > :nth-child(3) { grid-column: 1 / 4; --fan-x: 37px; animation-delay: .06s; }
.visitor-decor-fan > :nth-child(4) { grid-column: 4 / 7; --fan-x: -37px; animation-delay: .06s; }
.visitor-decor-fan > :nth-child(5) { grid-column: 1 / 4; --fan-x: 24px; animation-delay: .12s; }
.visitor-decor-fan > :nth-child(6) { grid-column: 4 / 7; --fan-x: -24px; animation-delay: .12s; }
.visitor-decor-fan .visitor-decor-file { display: grid; grid-template-columns: 1fr; align-content: start; gap: 3px; text-align: center; }
.visitor-decor-fan .visitor-decor-filename { grid-column: auto; font-size: 10px; }
.visitor-decor-fan .visitor-decor-color { display: flex; justify-content: center; align-items: center; padding: 4px 8px; }
.visitor-decor-fan .visitor-decor-color input { flex: none; width: 28px; height: 24px; }
.visitor-decor-fan :is(#visitorDecorSave, #visitorDecorReset) { width: 100% !important; max-width: 100% !important; }
@keyframes decor-fan-open { from { opacity: 0; transform: translate(var(--fan-x, 0px), 23px) scale(.88); } to { opacity: 1; transform: translate(0,0) scale(1); } }
