/* /create-character */

.create-character-page .cc-main {
  min-height: 60vh;
  padding: 28px 0 64px;
}

.cc-loading[hidden],
.cc-guest[hidden],
.cc-app[hidden],
#ccNoSlot[hidden] {
  display: none !important;
}

/* .btn { display: inline-flex } overrides native [hidden] */
.create-character-page .btn[hidden],
.create-character-page [hidden] {
  display: none !important;
}

.cc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 280px;
  color: var(--text-muted, #9a9590);
}

.cc-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(6, 182, 212, 0.15);
  border-top-color: var(--brand-a, #06b6d4);
  border-right-color: var(--brand-b, #f472b6);
  border-radius: 50%;
  animation: cc-spin 0.8s linear infinite;
}

@keyframes cc-spin {
  to { transform: rotate(360deg); }
}

.cc-guest {
  display: flex;
  justify-content: center;
  padding: 28px 0 72px;
}

.cc-guest__card {
  max-width: 480px;
  text-align: center;
}

.cc-guest__card--wide {
  max-width: 560px;
}

.cc-guest__page {
  max-width: 720px;
  width: 100%;
  text-align: left;
}

.cc-guest__hero {
  text-align: center;
  margin-bottom: 40px;
}

.cc-guest__hero .section-title {
  margin: 0 0 14px;
}

.cc-guest__lead {
  margin: 0 auto 22px;
  max-width: 38em;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.55;
}

.cc-guest__hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.cc-guest__block {
  margin: 0 0 36px;
}

.cc-guest__h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.cc-guest__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: cc-step;
}

.cc-guest__steps li {
  counter-increment: cc-step;
  position: relative;
  padding: 14px 16px 14px 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.5;
}

.cc-guest__steps li::before {
  content: counter(cc-step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 750;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-a, #06b6d4), var(--brand-b, #f472b6));
}

.cc-guest__tune {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cc-guest__tune-card {
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
}

.cc-guest__tune-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 750;
}

.cc-guest__tune-card p,
.cc-guest__prose,
.cc-guest__faq dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cc-guest__prose {
  margin-bottom: 12px;
}

.cc-guest__prose a {
  color: #67e8f9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-guest__faq {
  margin: 0;
  display: grid;
  gap: 14px;
}

.cc-guest__faq dt {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 0.98rem;
}

.cc-guest__bottom {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.cc-guest__features {
  list-style: none;
  margin: 22px 0 18px;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 10px;
}

.cc-guest__features li {
  position: relative;
  padding: 10px 14px 10px 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.4;
}

.cc-guest__features li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--brand-a, #06b6d4), var(--brand-b, #f472b6));
}

.cc-guest__note {
  margin: 0 0 18px;
  color: var(--text-muted, #9a9590);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .cc-guest__tune {
    grid-template-columns: 1fr;
  }

  .cc-guest__hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

.cc-noslot {
  padding-top: 40px;
  padding-bottom: 72px;
}

.cc-noslot__card {
  max-width: 440px;
  width: 100%;
  padding: 32px 24px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.12), transparent 55%),
    rgba(12, 12, 16, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.cc-noslot__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.28), rgba(244, 114, 182, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cc-noslot__card .section-title {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.2;
}

.cc-noslot__sub {
  margin: 0 auto 22px;
  max-width: 28em;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.55;
}

.cc-noslot__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.cc-noslot__stats[hidden] {
  display: none !important;
}

.cc-noslot__chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.cc-noslot__chip strong {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.2;
}

.cc-noslot__chip span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.3;
}

.cc-noslot .cc-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.1);
  line-height: 1.45;
}

.cc-noslot-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-noslot-actions .btn {
  width: 100%;
  justify-content: center;
}

.cc-noslot-actions__more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 420px) {
  .cc-noslot__stats {
    grid-template-columns: 1fr;
  }

  .cc-noslot-actions__more {
    grid-template-columns: 1fr;
  }
}

.cc-app {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cc-head {
  margin: 0 auto 28px;
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.cc-head .section-subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 34em;
}

.cc-progress {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 22px;
  text-align: center;
}

.cc-progress__track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cc-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-a, #06b6d4), var(--brand-b, #f472b6));
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.35);
  transition: width 0.28s ease;
}

.cc-progress__label {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted, #9a9590);
}

.cc-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.cc-section {
  padding: 12px 0 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-section__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f3efe8;
  text-align: center;
}

.cc-basics {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 8px 0 12px;
}

.cc-gender {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 36px;
}

.cc-gender__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c9c3bb;
  font: inherit;
  cursor: pointer;
}

.cc-gender__circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cc-gender__circle--f {
  background: radial-gradient(circle at 35% 30%, #fda4c8, #f472b6 55%, #db2777);
}

.cc-gender__circle--m {
  background: radial-gradient(circle at 35% 30%, #7dd3fc, #38bdf8 55%, #0284c7);
}

.cc-gender__btn:hover .cc-gender__circle {
  transform: scale(1.04);
}

.cc-gender__btn.is-on .cc-gender__circle {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
}

.cc-gender__btn.is-on .cc-gender__caption {
  color: #f3efe8;
  font-weight: 600;
}

.cc-gender__caption {
  font-size: 13px;
}

.cc-gender__note {
  margin: -8px 0 0;
  font-size: 12px;
  color: var(--text-muted, #9a9590);
  text-align: center;
}

.cc-age {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cc-age__value {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(90deg, var(--brand-a, #06b6d4), var(--brand-b, #f472b6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cc-age__label {
  font-size: 13px;
  color: #c9c3bb;
}

.cc-age__range {
  width: 100%;
  margin: 6px 0 0;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.35), rgba(244, 114, 182, 0.45));
  outline: none;
  cursor: pointer;
}

.cc-age__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #f472b6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  cursor: grab;
}

.cc-age__range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #f472b6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  cursor: grab;
}

.cc-age__range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.cc-grid {
  display: grid;
  gap: 12px;
}

.cc-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #c9c3bb;
}

.cc-field input,
.cc-field select,
.cc-field textarea,
.cc-section textarea,
.cc-section input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 14, 13, 0.72);
  color: #f3efe8;
  font: inherit;
}

.cc-section textarea {
  resize: vertical;
  min-height: 72px;
}

.cc-charcount {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-muted, #9a9590);
  text-align: right;
}

.cc-mode {
  display: none;
}

.cc-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0 auto 12px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: fit-content;
  max-width: 100%;
}

.cc-section .cc-switch {
  display: flex;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.cc-switch__btn {
  flex: 1;
  min-width: 0;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a8a29a;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.cc-switch__btn.is-on {
  color: #0f0e0d;
  background: linear-gradient(90deg, #67e8f9, #f9a8d4);
  box-shadow: 0 3px 12px rgba(244, 114, 182, 0.22);
}

.cc-presets {
  width: 100%;
}

.cc-presets__grid {
  display: grid;
  grid-template-columns: minmax(120px, 148px) minmax(0, 1fr);
  gap: 10px 12px;
  align-items: stretch;
  min-height: 200px;
}

/* Chat-like overlay scrollbar (same idea as webapp CustomScrollbar) */
.cc-scroll {
  position: relative;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cc-scroll--nav {
  max-height: 280px;
}

.cc-scroll--chips {
  max-height: 220px;
  flex: 1;
}

.cc-scroll--traits {
  width: 100%;
  max-height: min(42vh, 360px);
  min-height: 160px;
  padding: 2px 6px 8px 2px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.cc-scroll__viewport {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cc-scroll__viewport::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.cc-scroll__rail {
  position: absolute;
  top: 8px;
  right: 3px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.cc-scroll.is-scrollable:hover .cc-scroll__rail,
.cc-scroll.is-scrollable.is-scrolling .cc-scroll__rail,
body.cc-scroll-dragging .cc-scroll.is-scrollable .cc-scroll__rail {
  opacity: 1;
  pointer-events: auto;
}

.cc-scroll__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  cursor: grab;
  touch-action: none;
}

.cc-scroll__thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

body.cc-scroll-dragging {
  cursor: grabbing !important;
  user-select: none !important;
}

body.cc-scroll-dragging .cc-scroll__thumb {
  cursor: grabbing;
  background: rgba(255, 255, 255, 0.48);
}

.cc-preset-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 4px;
}

.cc-preset-nav__btn {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #a8a29a;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cc-preset-nav__btn:hover {
  color: #e8e2da;
  background: rgba(255, 255, 255, 0.04);
}

.cc-preset-nav__btn.is-on {
  color: #f3efe8;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.cc-preset-nav__btn.is-locked {
  opacity: 0.38;
  cursor: not-allowed;
}

.cc-preset-nav__btn.is-locked:hover {
  color: #a8a29a;
  background: transparent;
}

.cc-preset-panel__hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #a8a29a;
}

.cc-chip.is-locked,
.cc-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.cc-preset-nav__mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.18);
}

.cc-preset-nav__btn.is-filled .cc-preset-nav__mark {
  background: linear-gradient(135deg, #67e8f9, #f472b6);
}

.cc-preset-nav__text {
  min-width: 0;
  line-height: 1.25;
}

.cc-preset-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 14, 13, 0.42);
}

.cc-preset-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.cc-preset-panel__title {
  font-size: 13px;
  font-weight: 600;
  color: #f3efe8;
}

.cc-preset-panel__meta {
  font-size: 11px;
  color: #8a847c;
  white-space: nowrap;
}

.cc-chips {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 5px;
  padding-right: 2px;
}

.cc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 14, 13, 0.55);
  color: #e8e2da;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cc-chip:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.cc-chip.is-on {
  border-color: rgba(244, 114, 182, 0.65);
  background: rgba(244, 114, 182, 0.16);
  color: #fff;
}

.cc-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.cc-preview {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #d8b4a0;
  text-align: center;
}

@media (max-width: 560px) {
  .cc-presets__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .cc-scroll--nav,
  .cc-scroll--chips {
    max-height: none;
  }

  .cc-scroll--nav .cc-scroll__viewport,
  .cc-scroll--chips .cc-scroll__viewport {
    overflow: visible;
  }

  .cc-scroll--nav .cc-scroll__rail,
  .cc-scroll--chips .cc-scroll__rail {
    display: none;
  }

  .cc-preset-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding-right: 0;
  }

  .cc-preset-nav__btn {
    flex: 0 0 auto;
    width: auto;
    max-width: calc(33.333% - 4px);
    white-space: nowrap;
    padding: 6px 8px;
    font-size: 11px;
  }

  .cc-preset-nav__text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cc-chips {
    justify-content: center;
  }

  .cc-scroll--traits {
    max-height: 240px;
    min-height: 0;
    padding: 4px 2px 6px;
    border: 0;
    background: transparent;
  }
}

.cc-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted, #9a9590);
}

.cc-hint--lead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #c9c3bb;
}

.cc-field--optional em {
  font-style: normal;
  opacity: 0.65;
  font-size: 11px;
}

.cc-section .cc-error {
  text-align: center;
}

.cc-section.cc-step {
  border-top: none;
  padding-top: 0;
  min-height: 180px;
  animation: cc-step-in 0.28s ease;
}

@keyframes cc-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cc-error {
  margin: 12px 0 0;
  font-size: 13px;
  color: #fca5a5;
}

.cc-error a {
  color: #67e8f9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-error a:hover {
  color: #a5f3fc;
}

.cc-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-nav .btn {
  min-width: 120px;
}

.cc-nav #ccBackBtn {
  margin-right: auto;
}


.cc-traits-picked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(244, 114, 182, 0.28);
  background: rgba(244, 114, 182, 0.08);
}

.cc-traits-picked[hidden] {
  display: none !important;
}

.cc-traits-picked__label {
  width: 100%;
  margin: 0 0 2px;
  font-size: 11px;
  color: #d8b4a0;
  text-align: center;
}

.cc-traits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 6px;
  max-height: none;
  overflow: visible;
  padding: 6px 2px;
}

.cc-trait {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 14, 13, 0.45);
  color: #e8e2da;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.cc-trait:hover:not(:disabled):not(.is-locked) {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.cc-trait.is-on {
  border-color: rgba(244, 114, 182, 0.75);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(244, 114, 182, 0.28));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.2);
  font-weight: 600;
}

.cc-trait.is-picked {
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.25), 0 4px 14px rgba(244, 114, 182, 0.2);
}

.cc-trait.is-locked,
.cc-trait:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cc-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.cc-status {
  font-size: 12px;
  color: var(--text-muted, #9a9590);
}

.cc-upload {
  width: 100%;
  max-width: 360px;
  margin: 4px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cc-upload__hit {
  position: relative;
  width: 100%;
  min-height: 220px;
  padding: 0;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(6, 182, 212, 0.12), transparent 55%),
    radial-gradient(90% 80% at 80% 100%, rgba(244, 114, 182, 0.12), transparent 50%),
    rgba(15, 14, 13, 0.45);
  color: #e8e2da;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cc-upload__hit:hover {
  border-color: rgba(244, 114, 182, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.cc-upload.is-drag .cc-upload__hit {
  border-color: rgba(103, 232, 249, 0.7);
  border-style: solid;
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.25), 0 12px 30px rgba(6, 182, 212, 0.18);
}

.cc-upload.is-busy .cc-upload__hit {
  pointer-events: none;
  opacity: 0.85;
}

.cc-upload__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 24px 18px;
  text-align: center;
}

.cc-upload__icon {
  color: #67e8f9;
  margin-bottom: 4px;
}

.cc-upload__title {
  font-size: 15px;
  font-weight: 600;
  color: #f3efe8;
}

.cc-upload__sub {
  font-size: 12px;
  line-height: 1.4;
  color: #a8a29a;
}

.cc-upload__preview {
  position: absolute;
  inset: 0;
}

.cc-upload__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-upload__preview-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55));
}

.cc-upload__preview-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.cc-upload__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  min-height: 18px;
}

.cc-upload__clear {
  border: 0;
  background: transparent;
  color: #f9a8d4;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.cc-upload__clear:hover {
  color: #fff;
}

.cc-upload__progress {
  width: 100%;
  padding: 0 4px;
}

.cc-upload__progress-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.cc-upload__progress-bar {
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-a, #06b6d4), var(--brand-b, #f472b6));
  animation: cc-upload-slide 1.1s ease-in-out infinite;
}

@keyframes cc-upload-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.cc-create-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: cc-overlay-in 0.2s ease;
}

.cc-create-overlay[hidden] {
  display: none !important;
}

@keyframes cc-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cc-create-overlay__card {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 24px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(6, 182, 212, 0.14), transparent 55%),
    radial-gradient(90% 80% at 85% 100%, rgba(244, 114, 182, 0.14), transparent 50%),
    linear-gradient(160deg, rgba(28, 26, 24, 0.98), rgba(14, 13, 12, 0.99));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: cc-step-in 0.28s ease;
}

.cc-create-overlay__spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(6, 182, 212, 0.18);
  border-top-color: var(--brand-a, #06b6d4);
  border-right-color: var(--brand-b, #f472b6);
  animation: cc-spin 0.85s linear infinite;
}

.cc-create-overlay.is-done .cc-create-overlay__spinner,
.cc-create-overlay.is-error .cc-create-overlay__spinner {
  display: none;
}

.cc-create-progress__track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cc-create-progress__bar {
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-a, #06b6d4), var(--brand-b, #f472b6));
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.4);
  animation: cc-upload-slide 1.15s ease-in-out infinite;
}

.cc-create-overlay.is-done .cc-create-progress__bar {
  width: 100%;
  animation: none;
  transform: none;
}

.cc-create-overlay.is-error .cc-create-progress__track {
  display: none;
}

.cc-create-overlay.is-error .cc-create-progress__label {
  color: #fca5a5;
}

.cc-create-progress__label {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #f3efe8;
  text-align: center;
}

.cc-create-progress__hint {
  margin: -8px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(243, 239, 232, 0.62);
  text-align: center;
}

.cc-create-overlay.is-done .cc-create-progress__hint,
.cc-create-overlay.is-error .cc-create-progress__hint {
  display: none;
}

.cc-create-overlay__close {
  margin-top: 4px;
}

.cc-create-overlay__close[hidden] {
  display: none !important;
}
