/* Make: a narrow rail for what you say, and the game on a screen beside it. */

.make {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  max-width: 96rem;
  margin: 0 auto;
  align-items: start;
}

.make-rail { min-width: 0; }
.make-rail label { margin-left: 0; }
.make-rail h2 { margin: 2rem 0 0.5rem; font-size: 1rem; font-weight: 650; }

.make-rail .make-ask { margin: 0 0 0.6rem; font-size: 1.35rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
.make-form textarea {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  min-height: 6.5rem;
}
.make-form textarea:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.make-form .draft-row { margin-top: 1rem; }

/* Where you are: describe, play, improve, keep. */
.make-top {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--hair);
}
.make-person { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.25rem; font-size: 0.9rem; }
.make-who { font-family: var(--mono); font-size: 0.85rem; }
.make-who:empty { display: none; }
.make-google { min-height: 32px; }
.make-dev { display: flex; align-items: center; gap: 0.75rem; }
.make-dev input { width: 12rem; margin: 0; font-size: 0.9rem; }
.make-shop { grid-column: 1 / -1; }
.make-shared { margin: 0.75rem 0 0; overflow-wrap: anywhere; }
.make-shared a { font-family: var(--mono); font-size: 0.9rem; }
.make-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  font: 0.85rem var(--mono);
  color: var(--quiet);
}
.make-steps li { counter-increment: step; }
.make-steps li::before { content: counter(step) "\00A0\00A0"; }
.make-steps li.done::before { content: "\2713\00A0\00A0"; }
.make-steps li[aria-current] { color: var(--ink); font-weight: 700; }

/* Answers you tap: square toggles, the chosen one filled with ink. */
.make-guide h3 { margin: 1.1rem 0 0.4rem; font-size: 0.9rem; font-weight: 400; color: var(--quiet); }
.make-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.make-chips button {
  padding: 0.35rem 0.7rem;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 0.95rem var(--sans);
  cursor: pointer;
}
.make-chips button:hover,
.make-chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.make-chips button.make-waiting { border-style: dashed; }
.make-chips input { flex: 1 1 8rem; width: auto; margin: 0; font-size: 0.95rem; }

/* How much the person has made before: one row, above the questions. */
.make-levels { margin: 0.25rem 0 0.5rem; }
.make-levels button { font-weight: 600; }
.make-walk input[name="feel"] { margin: 0; font-size: 0.95rem; }
/* The question being asked now carries the way past it. */
.make-skip { display: block; margin-top: 0.6rem; font-size: 0.9rem; }
/* Each look, drawn: the same small scene five ways. */
.make-looks button { display: grid; gap: 0.35rem; justify-items: start; padding: 0.3rem 0.3rem 0.35rem; text-align: left; }
.make-look-art { display: block; line-height: 0; border: 1px solid var(--hair); }
.make-look-art svg { display: block; width: 7.5rem; height: auto; }
.make-looks button:hover,
.make-looks button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.make-expert + .make-model { margin-top: 1.4rem; }
.make-picture-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.make-picture { max-height: 5rem; max-width: 9rem; border: 1.5px solid var(--ink); display: block; }
.make[data-level="advanced"].is-new .make-form textarea { min-height: 14rem; }

/* Before there is a game: one column of questions, no empty screen beside it. */
.make.is-new { grid-template-columns: minmax(0, 44rem); justify-content: center; }
.make.is-new .make-examples { place-self: auto; max-width: none; margin-top: 2rem; padding: 1rem 0 0; border-top: 1px solid var(--hair); font: 1rem/1.5 var(--sans); }
.make-form .status { flex-basis: 100%; }
.make-form .status:empty { display: none; }

.make-log { list-style: none; margin: 0; padding: 0; }
.make-log li { padding: 0.75rem 0; border-top: 1px solid var(--hair); }
.make-log .link-button { font: 700 0.85rem var(--mono); min-height: 0; }
.make-log .link-button[aria-current] { text-decoration: none; cursor: default; }
.make-log .link-button:disabled { text-decoration: none; cursor: default; }
.make-log p { margin: 0.2rem 0 0; }
.make-log blockquote {
  margin: 0.35rem 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--ink);
  color: var(--quiet);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.make-parked { margin: 0; padding-left: 1.1rem; color: var(--quiet); }

.make-shelf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}
.make-shelf select { flex: 1 1 100%; margin: 0; }

/* The stage keeps the game in view while the rail scrolls. */
.make-stage { position: sticky; top: 1rem; min-width: 0; }
.make-screen {
  display: grid;
  height: min(calc(100vh - 11rem), 46rem);
  min-height: 20rem;
  border: 1.5px solid var(--ink);
  background: var(--screen);
  color: var(--screen-ink);
}
.make-screen iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--screen); }
.make-screen iframe:fullscreen { background: var(--screen); }
.make-gone { place-self: center; margin: 0; font-family: var(--mono); }

.make-examples {
  place-self: center;
  list-style: none;
  margin: 0;
  padding: 1.5rem;
  max-width: 34rem;
  font: 1.05rem/1.5 var(--mono);
}
.make-examples li { display: flex; align-items: baseline; gap: 0.75rem; margin: 0 0 0.6rem; }
.make-examples li::before { content: "\25B6"; font-size: 0.75em; }
.make-examples .link-button { display: block; padding: 0.3rem 0; color: inherit; font: inherit; text-align: left; }

.make-try { margin: 0.75rem 0 0; font-size: 1.1rem; font-weight: 600; }
.make-try:empty { display: none; }
.make-error { margin: 0.5rem 0 0; color: var(--bad); overflow-wrap: anywhere; }
.make-error .link-button { color: inherit; font-weight: 600; }
.make-controls { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-top: 0.75rem; }

@media (max-width: 62rem) {
  .make { grid-template-columns: minmax(0, 1fr); }
  .make-top { order: -3; }
  .make-shop { order: -2; }
  .make-stage { position: static; order: -1; }
  .make-screen { height: min(70vh, 34rem); }
  .make-log .link-button { min-height: 44px; }
  .make-chips button { min-height: 44px; }
  .make-chips input { min-height: 44px; }
}
.make-walk h3 label { display: inline; margin: 0; font-size: inherit; color: inherit; }

/* What the first build costs, under the button that asks for it. */
.make-price { margin: 0.6rem 0 0; font-size: 0.9rem; }
