/* MC Avatar Creator */
.page-avatar .nav-panel a[href="/avatar"] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.creator-hero {
  padding: 2rem 0 1.25rem;
}
.creator-hero .lede { margin-bottom: 0.6rem; }
.combo-count {
  display: inline-block;
  margin: 0;
  padding: 0.28rem 0.75rem;
  background: var(--black);
  color: var(--gold);
  font-family: var(--font-tick);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 999px;
}

.creator {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
  padding-bottom: 3.5rem;
}

.stage-col {
  position: sticky;
  top: calc(var(--nav-h) + 0.75rem);
}
.stage-frame {
  background: var(--white);
  border: var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.stage-frame svg,
.stage-frame canvas,
.stage-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}
.stage-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.9rem;
}
.stage-actions .btn { width: 100%; white-space: nowrap; }
.stage-actions .btn-wide { grid-column: 1 / -1; }

.pickers { display: grid; gap: 0.75rem; min-width: 0; }
.picker {
  background: var(--white);
  border: var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 0.75rem 0.65rem;
  min-width: 0;
}
.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.picker-head h3 {
  margin: 0;
  font-family: var(--font-tick);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-dk);
}
.picker-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}
.picker-name {
  font-weight: 800;
  font-size: 0.92rem;
  min-width: 6.5rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arrow {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--black);
  background: var(--gold);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0.1rem;
  font-family: var(--font-display);
}
.arrow:hover { background: var(--gold-dk); }
.thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.thumb {
  flex: 0 0 auto;
  width: 4.1rem;
  height: 4.1rem;
  border: 3px solid var(--black);
  border-radius: 12px;
  background: var(--cyan);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.thumb svg,
.thumb img { width: 100%; height: 100%; display: block; pointer-events: none; object-fit: cover; }
.thumb.is-on {
  outline: 3px solid var(--red);
  outline-offset: 1px;
  box-shadow: 0 0 0 1px var(--red);
}
.thumb-swatch {
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 12px;
  border: 3px solid var(--black);
}
.thumb-swatch span {
  display: block;
  width: 100%;
  height: 100%;
}

.creator-note {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Homepage teaser */
.creator-tease {
  background: var(--gold);
  border-top: var(--line);
  border-bottom: var(--line);
}
.tease-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 1.25rem 2rem;
  align-items: center;
}
.tease-preview {
  border: var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--cyan);
  max-width: 18rem;
  margin-left: auto;
}
.tease-preview img, .tease-preview svg { width: 100%; height: auto; display: block; }

@media (max-width: 860px) {
  .creator {
    grid-template-columns: 1fr;
  }
  .stage-col {
    position: static;
    max-width: 22rem;
    margin-inline: auto;
    width: 100%;
  }
  .tease-inner { grid-template-columns: 1fr; }
  .tease-preview { margin: 0 auto 0 0; }
}
@media (max-width: 400px) {
  .stage-actions { grid-template-columns: 1fr; }
  .stage-actions .btn-wide { grid-column: auto; }
  .thumb, .thumb-swatch { width: 3.6rem; height: 3.6rem; }
  .picker-name { min-width: 5rem; }
}
