.theme-personality-band {
  --theme-accent: #FF0A54;
  --theme-secondary: #FF2E63;
  --theme-deep: #16040b;
  --theme-soft: color-mix(in srgb, var(--theme-accent) 18%, transparent);
  --theme-glow: color-mix(in srgb, var(--theme-accent) 34%, transparent);
  --theme-card-a: color-mix(in srgb, var(--theme-accent) 72%, transparent);
  --theme-card-b: color-mix(in srgb, var(--theme-secondary) 64%, transparent);
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 10vw, 148px) clamp(20px, 6vw, 108px);
  border-top: 1px solid rgba(216, 221, 230, 0.72);
  background:
    radial-gradient(circle at 14% 22%, color-mix(in srgb, var(--theme-accent) 22%, transparent), transparent 30%),
    radial-gradient(circle at 84% 12%, var(--theme-soft), transparent 34%),
    linear-gradient(135deg, #fff8fb 0%, #ffffff 42%, #f8f4ff 100%);
}

.theme-personality-band[data-theme-color="red"] { --theme-accent: #FF0A54; --theme-secondary: #FF2E63; --theme-deep: #16040b; }
.theme-personality-band[data-theme-color="lavender"] { --theme-accent: #C9A7F4; --theme-secondary: #E1C8FF; --theme-deep: #120B1D; }
.theme-personality-band[data-theme-color="green"] { --theme-accent: #00cc66; --theme-secondary: #00ff99; --theme-deep: #001a0f; }
.theme-personality-band[data-theme-color="cloud"] { --theme-accent: #F0EEE9; --theme-secondary: #D7D0C6; --theme-deep: #0B0C0F; }
.theme-personality-band[data-theme-color="glacier"] { --theme-accent: #63CFC9; --theme-secondary: #8EE8E2; --theme-deep: #041211; }
.theme-personality-band[data-theme-color="blue"] { --theme-accent: #0066ff; --theme-secondary: #00aaff; --theme-deep: #0a0a1f; }
.theme-personality-band[data-theme-color="purple"] { --theme-accent: #8b00ff; --theme-secondary: #c300ff; --theme-deep: #11001a; }
.theme-personality-band[data-theme-color="orange"] { --theme-accent: #ff6600; --theme-secondary: #ff9900; --theme-deep: #1a0f00; }
.theme-personality-band[data-theme-color="dark"] { --theme-accent: #555555; --theme-secondary: #777777; --theme-deep: #000000; }
.theme-personality-band[data-theme-color="magenta"] { --theme-accent: #FF3DAF; --theme-secondary: #FF6FD4; --theme-deep: #1a0612; }
.theme-personality-band[data-theme-color="amg"] { --theme-accent: #FF1E1E; --theme-secondary: #FF5A5A; --theme-deep: #1a0505; }
.theme-personality-band[data-theme-color="sunset"] { --theme-accent: #FF6B57; --theme-secondary: #FF8A66; --theme-deep: #190b09; }
.theme-personality-band[data-theme-color="champ"] { --theme-accent: #E8C27A; --theme-secondary: #FFDCA3; --theme-deep: #14100a; }
.theme-personality-band[data-theme-color="emerald"] { --theme-accent: #A6FF4D; --theme-secondary: #C4FF70; --theme-deep: #0e1408; }
.theme-personality-band[data-theme-color="teal"] { --theme-accent: #14B8A6; --theme-secondary: #2DD4BF; --theme-deep: #031716; }
.theme-personality-band[data-theme-color="indigo"] { --theme-accent: #4F46E5; --theme-secondary: #818CF8; --theme-deep: #080A1F; }
.theme-personality-band[data-theme-color="silver"] { --theme-accent: #CBD5E1; --theme-secondary: #94A3B8; --theme-deep: #080A0D; }
.theme-personality-band[data-theme-color="rose"] { --theme-accent: #F4A6A6; --theme-secondary: #C08457; --theme-deep: #160C0E; }
.theme-personality-band[data-theme-color="cyan"] { --theme-accent: #22D3EE; --theme-secondary: #0891B2; --theme-deep: #031018; }
.theme-personality-band[data-theme-color="violet"] { --theme-accent: #A855F7; --theme-secondary: #D946EF; --theme-deep: #10051C; }
.theme-personality-band[data-theme-color="copper"] { --theme-accent: #B87333; --theme-secondary: #FFB36A; --theme-deep: #140B05; }
.theme-personality-band[data-theme-color="sapphire"] { --theme-accent: #2563EB; --theme-secondary: #38BDF8; --theme-deep: #050B1A; }
.theme-personality-band[data-theme-color="jade"] { --theme-accent: #5E7F77; --theme-secondary: #9AB8AA; --theme-deep: #071211; }
.theme-personality-band[data-theme-color="damson"] { --theme-accent: #7A2346; --theme-secondary: #B85E7B; --theme-deep: #12070D; }
.theme-personality-band[data-theme-color="graphite"] { --theme-accent: #D7DEE8; --theme-secondary: #8E99A8; --theme-deep: #050607; }
.theme-personality-band[data-theme-color="abyss"] { --theme-accent: #0B7285; --theme-secondary: #35C2B7; --theme-deep: #020B10; }

.theme-personality-band::before {
  content: "";
  position: absolute;
  inset: 12% -12% auto;
  height: 350px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.84), transparent);
  filter: blur(32px);
  transform: rotate(7deg);
  pointer-events: none;
}

.theme-personality-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
}

.theme-personality-copy {
  max-width: 680px;
}

.theme-personality-copy .eyebrow {
  margin: 0 0 14px;
  color: var(--brand-pro-gray);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-personality-copy h2 {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.16;
  letter-spacing: 0;
}

.theme-personality-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 20px 0 26px;
  color: #667084;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.85;
}

.theme-personality-cards {
  display: grid;
  gap: 12px;
  max-width: 640px;
}

.theme-personality-cards article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid rgba(216, 221, 230, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(17, 21, 28, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.theme-personality-cards article span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-secondary));
  box-shadow: 0 14px 28px var(--theme-glow);
}

.theme-personality-cards article strong {
  color: #11151c;
  font-size: 17px;
  line-height: 1.3;
}

.theme-personality-cards article p {
  margin: 0;
  color: #667084;
  font-size: 14px;
  line-height: 1.65;
}

.theme-personality-stage {
  position: relative;
  min-height: clamp(620px, 52vw, 820px);
  border: 1px solid rgba(216, 221, 230, 0.92);
  border-radius: clamp(34px, 4vw, 58px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 251, 0.76)),
    radial-gradient(circle at 50% 42%, var(--theme-soft), transparent 40%);
  box-shadow: 0 34px 110px rgba(38, 45, 64, 0.16);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
}

.theme-personality-orbit {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.theme-personality-orbit.orbit-one {
  width: 520px;
  height: 520px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 34%, transparent);
  box-shadow: 0 0 90px var(--theme-glow);
  transform: rotate(-18deg);
}

.theme-personality-orbit.orbit-two {
  width: 720px;
  height: 390px;
  border: 1px solid color-mix(in srgb, var(--theme-secondary) 30%, transparent);
  transform: rotate(18deg);
}

.theme-personality-prism {
  position: absolute;
  right: 8%;
  top: 8%;
  width: 150px;
  height: 150px;
  opacity: 0.62;
  pointer-events: none;
}

.theme-personality-prism span {
  position: absolute;
  inset: 0;
  border-radius: 42% 58% 48% 52%;
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-secondary));
  filter: blur(10px);
  opacity: 0.24;
  transform: rotate(calc(var(--i, 1) * 32deg));
}

.theme-personality-prism span:nth-child(2) {
  --i: 2;
  inset: 24px;
}

.theme-personality-prism span:nth-child(3) {
  --i: 3;
  inset: 48px;
}

.theme-personality-window {
  position: absolute;
  inset: clamp(28px, 3vw, 46px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 0;
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: clamp(26px, 3vw, 42px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12)),
    radial-gradient(circle at 24% 18%, var(--theme-glow), transparent 32%),
    linear-gradient(145deg, var(--theme-deep), #111827 64%, #070711);
  box-shadow:
    0 36px 90px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  overflow: hidden;
}

.theme-personality-window::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 340px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(-8deg);
  opacity: 0.68;
}

.theme-personality-window-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  color: rgba(255, 255, 255, 0.9);
}

.theme-personality-window-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.theme-personality-window-kicker b {
  font: inherit;
}

.theme-personality-window-kicker-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(242, 78, 130, 0.34), rgba(142, 103, 255, 0.2));
  box-shadow: inset 0 8px 12px rgba(255, 255, 255, 0.035);
}

.theme-personality-window-kicker-mark::before {
  content: "\f53f";
  position: absolute;
  color: rgba(255, 248, 236, 0.94);
  font-family: "Font Awesome 6 Free";
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 10px rgba(242, 78, 130, 0.24);
}

.theme-personality-window-top strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: 0;
}

.theme-personality-window-top em {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.theme-personality-preview {
  position: relative;
  z-index: 1;
  min-height: 0;
  margin-top: 20px;
}

.theme-personality-rail {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.theme-personality-rail span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.theme-personality-workbench {
  position: relative;
  height: min(330px, 33vw);
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 22%, var(--theme-glow), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.theme-personality-art-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--theme-accent) 46%, transparent), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  opacity: 0.58;
}

.theme-personality-media-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, var(--theme-card-a), var(--theme-card-b));
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.24), 0 0 42px var(--theme-glow);
  overflow: hidden;
}

.theme-personality-media-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 46%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.44), transparent 12%);
}

.theme-personality-media-card span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-personality-media-card strong,
.theme-personality-media-card i {
  position: relative;
  z-index: 1;
  display: block;
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.theme-personality-media-card i {
  width: 56%;
  height: 5px;
  opacity: 0.58;
}

.theme-personality-media-card.card-main {
  left: 38px;
  top: 42px;
  width: 235px;
  height: 210px;
  transform: rotate(-4deg);
}

.theme-personality-media-card.card-side {
  right: 46px;
  top: 64px;
  width: 196px;
  height: 146px;
  transform: rotate(6deg);
}

.theme-personality-media-card.card-live {
  right: 114px;
  bottom: 68px;
  width: 190px;
  height: 118px;
  transform: rotate(-2deg);
}

.theme-personality-control-panel {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 9px;
  display: grid;
  grid-template-columns: auto 180px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(5, 7, 18, 0.58);
  backdrop-filter: blur(16px);
}

.theme-personality-control-panel span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-personality-control-panel strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.theme-personality-progress {
  height: 12px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.theme-personality-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--theme-accent), var(--theme-secondary));
  box-shadow: 0 0 24px var(--theme-glow);
}

.theme-personality-caption {
  position: relative;
  z-index: 2;
  min-height: 42px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  .theme-personality-orbit.orbit-one {
    animation: themePersonalitySpin 18s linear infinite;
  }

  .theme-personality-orbit.orbit-two {
    animation: themePersonalitySpin 24s linear infinite reverse;
  }

  .theme-personality-media-card {
    transition: background 300ms ease, box-shadow 300ms ease, transform 300ms ease;
  }
}

@keyframes themePersonalitySpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .theme-personality-shell {
    grid-template-columns: 1fr;
  }

  .theme-personality-copy {
    max-width: 820px;
  }

  .theme-personality-stage {
    min-height: 760px;
  }
}

@media (max-width: 640px) {
  .theme-personality-band {
    padding: 82px 18px;
  }

  .theme-personality-stage {
    min-height: 670px;
  }

  .theme-personality-window {
    inset: 18px;
    padding: 18px;
  }

  .theme-personality-window-top {
    flex-direction: column;
    gap: 12px;
  }

  .theme-personality-workbench {
    height: 300px;
    border-radius: 28px;
  }

  .theme-personality-media-card.card-main {
    left: 20px;
    top: 44px;
    width: 176px;
    height: 166px;
  }

  .theme-personality-media-card.card-side {
    right: 20px;
    top: 60px;
    width: 142px;
    height: 112px;
  }

  .theme-personality-media-card.card-live {
    right: 58px;
    bottom: 76px;
    width: 144px;
    height: 96px;
  }

  .theme-personality-control-panel {
    left: 18px;
    right: 18px;
    bottom: 18px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .theme-personality-caption {
    font-size: 15px;
  }
}
