/* Signup page — the founding-spot avatar builder. Layers on styles.css. */

.signup { max-width: 1140px; margin: 0 auto; padding: clamp(28px, 5vh, 56px) clamp(18px, 4vw, 48px) 90px; }

.build-head { text-align: center; max-width: 640px; margin: 0 auto clamp(24px, 4vh, 40px); }
.build-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
#left { color: var(--cyan); }

.build-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

/* preview */
.preview-col { position: sticky; top: 84px; text-align: center; }
.preview-phone {
  background:
    radial-gradient(ellipse 80% 60% at 50% 10%, rgba(0,240,255,0.12), transparent 60%),
    linear-gradient(180deg, #12121a, #0b0b12);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 24px 12px 14px;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.preview-avatar { line-height: 0; }
.preview-avatar svg { display: block; }
.preview-hint { color: var(--muted); font-size: 0.82rem; margin-top: 12px; }

/* controls */
.controls-col { display: grid; gap: clamp(14px, 2.2vh, 22px); }
.control label {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.control label .req { color: var(--muted); font-weight: 400; font-size: 0.8rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }

.chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.chip:hover { border-color: var(--muted); }
.chip:active { transform: scale(0.96); }
.chip.sel {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 16%, var(--bg-2));
  color: #fff;
  box-shadow: 0 0 0 1px var(--cyan) inset;
}
.chip.inst { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.chip.inst span { font-size: 1.05rem; }

.chips.swatches { gap: 10px; }
.chip.swatch {
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  border: 2px solid var(--border);
}
.chip.swatch.sel {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--cyan);
}

.btn.small { padding: 9px 16px; font-size: 0.9rem; justify-self: start; }

/* form */
.signup-form { margin-top: 10px; display: grid; gap: 16px; border-top: 1px solid var(--border-subtle); padding-top: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.9rem; }
.field input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,240,255,0.15); }
.field-hint { color: var(--muted); font-size: 0.8rem; }
.form-error { color: var(--pink); font-size: 0.9rem; min-height: 1.2em; }

/* done state */
.done { max-width: 900px; margin: 0 auto; text-align: center; }
.done-head { margin-bottom: clamp(24px, 4vh, 40px); }
.done-badge {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; color: var(--warning, #FFB800);
  border: 3px solid #FFB800; font-size: 1.9rem;
  box-shadow: 0 0 28px rgba(255,184,0,0.45);
  animation: pop 0.5s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* the single stage: every founder in a grid, you the newest among them */
.stage-wrap {
  position: relative;
  margin: 0 auto clamp(14px, 3vh, 28px);
  max-width: 760px;
  border-radius: 24px;
  /* visible, not hidden: the fly-in pops your avatar up past the top edge */
  overflow: visible;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(0,240,255,0.10), transparent 62%),
    linear-gradient(180deg, #12121a, #0b0b12);
  border: 1px solid var(--border-subtle);
  padding: clamp(16px, 3vw, 28px) clamp(10px, 2vw, 20px);
}
.stage-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: flex-end;
  gap: 6px 4px;
}
.stage-grid .stage-figure { width: 78px; }
.stage-grid .stage-inst { display: none; }
.stage-grid .stage-name { font-size: 0.74rem; }

/* your cell — a highlighted seat on the stage */
.stage-figure.is-you { position: relative; }
.stage-figure.is-you .stage-avatar {
  border-radius: 10px;
  filter: drop-shadow(0 0 16px rgba(0,240,255,0.6));
}
.stage-figure.is-you .stage-name { color: var(--cyan); font-weight: 700; }
.you-marker {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: var(--bg); z-index: 2;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.62rem;
  letter-spacing: 0.1em; padding: 2px 8px; border-radius: 999px;
  box-shadow: 0 0 16px rgba(0,240,255,0.5); white-space: nowrap;
}

.you-num { color: var(--cyan); font-weight: 600; margin: 6px 0 0; font-family: "Space Grotesk", sans-serif; }
.you-perks { list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.you-perks { list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.you-perks.center { justify-items: center; max-width: 420px; margin: 0 auto clamp(24px, 4vh, 40px); }
.you-perks li { display: inline-flex; align-items: center; gap: 7px; }
.coin.inline { vertical-align: -0.2em; flex: none; }

.reset-line { margin: clamp(20px, 3vh, 32px) 0 14px; }
.reset-line a { color: var(--muted); font-size: 0.9rem; text-decoration: underline; }
.reset-line a:hover { color: var(--text); }

.closed-badge { color: var(--green, #00FF88); border-color: #00FF88; box-shadow: 0 0 28px rgba(0,255,136,0.4); }

/* responsive */
@media (max-width: 820px) {
  .build-grid { grid-template-columns: 1fr; }
  .preview-col { position: static; }
  .nav nav a { display: none; }
}

/* --- "stage only" notice ---------------------------------------------
   The look built here is a founders'-stage costume, not the app character.
   Said once above the controls and once on the way out, in a box that is
   quiet enough to read as information rather than a warning. */
.stage-only {
  margin: 16px auto 0;
  max-width: 620px;
  background: color-mix(in srgb, var(--cyan) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 26%, transparent);
  border-radius: 14px;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: left;
}
.stage-only strong { color: var(--text); }
.stage-only-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cyan) 18%, transparent);
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.stage-only.center { margin-top: 22px; }

/* gradient dye chips are taller than a flat dot so the stops are readable */
.chip.swatch.grad { border-radius: 10px; }

/* --- family strips ---------------------------------------------------
   A hundred instruments and twenty pets don't read as one wrapped row, so
   the long shelves get a strip of category chips above them. Quieter than
   the item chips, because they select a shelf rather than a thing. */
.chips.fams { margin-bottom: 10px; }
.chip.fam {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 6px 12px;
}
.chip.fam.sel {
  background: transparent;
  border-color: var(--cyan);
  color: var(--cyan);
}

/* A control that holds several rows needs to say which row is which —
   four rows of accessories all starting with "None" are otherwise a guess. */
.row-label {
  margin: 2px 0 5px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.control > .row-label:first-of-type { margin-top: 0; }

/* What happens next after claiming — one line, per store. Sits between the
   founder number and the perks because it is the only part of that block
   that asks anything of the reader. */
.done-next {
  max-width: 46ch;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
