/* /start — welcome flow: the avatar on the left, one step at a time on the right */
.welcome { max-width: 980px; margin: 0 auto; padding: 48px 24px 72px; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: center; min-height: calc(100vh - 64px); box-sizing: border-box; }

.stage { display: flex; flex-direction: column; gap: 12px; }
.stage canvas { width: 340px; height: 340px; border-radius: 18px; image-rendering: pixelated; box-shadow: 0 1px 0 var(--border), 0 14px 36px rgba(0,0,0,.1); }
.pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pieces li { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 13px; padding: 5px 10px; border-radius: 8px; background: var(--subtle); }
.pieces .slot { color: var(--muted); font-size: 12px; }
.pieces b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pieces .px { font-size: 16.5px; }

.steps { display: flex; flex-direction: column; gap: 20px; }
.dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.dots li { width: 22px; height: 6px; border-radius: 3px; background: var(--border); transition: background .2s, width .2s; }
.dots li.on { width: 36px; background: var(--fg); }

.step { display: flex; flex-direction: column; gap: 18px; animation: stepin .25s ease; }
.step[hidden] { display: none; }
@keyframes stepin { from { opacity: 0; transform: translateY(6px); } }
.step h2 { margin: 0; font-family: "Silkscreen", ui-monospace, monospace; font-weight: 400; font-size: 34px; line-height: 1.15; letter-spacing: -.01em; }
.lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.lead b { color: var(--fg); }

.ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ladder li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; border: 1px solid var(--border); }
.ladder li .px { font-size: 16.5px; }
.ladder small { color: var(--muted); font-size: 11px; }
.tier { display: inline-flex; align-items: center; gap: 4px; color: var(--fg); font-weight: 500; }
.tier .px { font-size: 16.5px; }

.btn.big { height: 48px; padding: 0 26px; font-size: 16px; width: fit-content; }
.step .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-start; margin: 0; }
.step .actions .btn { height: 42px; padding: 0 18px; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.step .actions .btn .px { font-size: 16.5px; }
.btn:disabled { opacity: .45; cursor: default; }

.handle-field { display: flex; align-items: center; height: 50px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); padding: 0 14px; max-width: 380px; }
.handle-field:focus-within { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.handle-field .prefix { font-family: ui-monospace, Menlo, monospace; color: var(--muted); font-size: 17px; }
.handle-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fg); font-family: ui-monospace, Menlo, monospace; font-size: 17px; height: 100%; }
#name-form { display: flex; flex-direction: column; gap: 12px; }
.step .hint { text-align: left; margin: 0; font-size: 13px; color: var(--muted); min-height: 1.3em; }
.step .hint.ok { color: var(--ok); }
.step .hint.err { color: var(--danger); }
.link { border: 0; background: none; padding: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; width: fit-content; }

@media (max-width: 760px) {
  .welcome { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 20px 16px 48px; align-items: start; min-height: 0; }
  .stage canvas { width: 100%; height: auto; aspect-ratio: 1; max-width: 340px; margin: 0 auto; }
  .step h2 { font-size: 26px; }
}
