.make-experience {
  width: min(1000px, calc(100vw - 24px));
  max-height: min(880px, calc(100vh - 20px));
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px -18px rgba(10, 11, 16, 0.25);
  color: var(--ink);
}
.make-experience form { padding: clamp(18px, 2.4vw, 28px); }
.make-experience .make-heading { margin-bottom: 14px; }
.make-experience .make-heading p { color: var(--faint); }
.make-experience .make-heading h2 {
  max-width: 520px;
  font-size: clamp(32px, 4.3vw, 46px);
  line-height: .94;
  color: var(--ink-deep);
  font-weight: 600;
}
.make-intro {
  max-width: 660px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.make-experience .make-step {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 14px 0 16px;
  border: 0;
  border-top: 1px solid var(--line);
}
.make-experience .make-step legend {
  display: block;
  width: 100%;
  padding: 0;
  color: var(--ink);
  font: 500 12px/1 var(--sans);
  letter-spacing: .06em;
}
.make-step legend span { margin-right: 10px; color: var(--faint); }
.make-step-note {
  margin: 7px 0 10px;
  color: var(--muted);
  font: 500 11px/1.4 var(--sans);
  letter-spacing: .02em;
}
.make-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.make-preview-card {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff 0%, #f6f7f9 100%);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.make-preview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 11, 16, 0.28);
  box-shadow: 0 10px 22px -16px rgba(10, 11, 16, 0.35);
}
.make-preview-card.is-selected {
  border-color: var(--primary);
  background: #f6f7f9;
  box-shadow: inset 0 0 0 1px rgba(10, 11, 16, 0.08);
}
.make-preview-number,
.make-preview-action {
  color: var(--faint);
  font: 500 10px/1.3 var(--sans);
  letter-spacing: .1em;
}
.make-preview-card.is-selected .make-preview-number,
.make-preview-card.is-selected .make-preview-action { color: var(--ink); }
.make-preview-card strong {
  font-size: clamp(16px, 1.65vw, 22px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
  color: var(--ink-deep);
}
.make-preview-route {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.make-preview-route i {
  flex: 1;
  height: 1px;
  min-width: 15px;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.make-preview-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.make-preview-action .icon { opacity: .85; }
.make-preview-status {
  min-height: 12px;
  margin: 9px 0 0;
  color: var(--muted);
  font: 500 11px/1.35 var(--sans);
}
.make-field-grid {
  display: grid;
  grid-template-columns: minmax(150px, .65fr) minmax(220px, 1.35fr);
  gap: 12px;
}
.make-field {
  display: grid;
  gap: 9px;
  color: var(--faint);
  font: 500 11px/1 var(--sans);
  letter-spacing: .06em;
}
.make-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font: 400 14px/1 var(--sans);
  letter-spacing: normal;
}
.make-field input::placeholder { color: #8a8a8a; }
.make-field-help {
  margin: 9px 0 0;
  color: var(--muted);
  font: 500 11px/1.45 var(--sans);
}
.make-tone-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.make-tone-row > span {
  margin-right: 5px;
  color: var(--faint);
  font: 500 11px/1 var(--sans);
  letter-spacing: .06em;
}
.make-tone-row label { position: relative; cursor: pointer; }
.make-tone-row input { position: absolute; opacity: 0; }
.make-tone-row label span {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  font: 500 11px/1 var(--sans);
}
.make-tone-row input:checked + span {
  border-color: var(--primary);
  color: var(--primary-fg);
  background: var(--primary);
}
.make-tone-row input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.make-request {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0 0;
  border-top: 1px solid var(--line);
}
.make-request p,
.make-request h3,
.make-request small { margin: 0; }
.make-request p,
.make-result-label {
  color: var(--faint);
  font: 500 10px/1 var(--sans);
  letter-spacing: .13em;
}
.make-request h3 {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--ink-deep);
}
.make-request small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font: 500 11px/1.4 var(--sans);
}
.make-experience .create-button {
  width: min(300px, 42%);
  flex: 0 0 auto;
  margin: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
}
.make-experience form.is-generating .make-starting-points,
.make-experience form.is-generating .make-personalize,
.make-experience form.is-generating .make-request {
  display: none;
}
.make-generation {
  --generation-accent: #b9dafd;
  --generation-ink: #162539;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 9% 14%, color-mix(in srgb, var(--generation-accent) 40%, white), transparent 42%),
    #f6f7f9;
}
.make-generation-orbit {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: color-mix(in srgb, var(--generation-accent) 22%, white);
}
.make-generation-orbit span,
.make-generation-orbit i,
.make-generation-orbit b {
  position: absolute;
  display: block;
  border-radius: 50%;
}
.make-generation-orbit span {
  width: 20px;
  height: 20px;
  background: var(--generation-ink);
  box-shadow: 0 0 0 9px color-mix(in srgb, var(--generation-accent) 55%, transparent);
  animation: make-generation-core 1.55s ease-in-out infinite;
}
.make-generation-orbit i {
  width: 67px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--generation-ink) 55%, transparent);
  animation: make-generation-orbit 3s linear infinite;
}
.make-generation-orbit b {
  width: 44px;
  height: 67px;
  border: 1px solid color-mix(in srgb, var(--generation-accent) 85%, var(--generation-ink));
  animation: make-generation-orbit 4.15s linear infinite reverse;
}
.make-generation h3 {
  margin: 7px 0 0;
  color: var(--ink-deep);
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1;
  letter-spacing: -.045em;
}
.make-generation-status {
  margin: 9px 0 0;
  color: var(--muted);
  font: 500 13px/1.42 var(--sans);
}
.make-generation-stages {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.make-generation-stages li {
  min-height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  background: rgba(255, 255, 255, .72);
  font: 500 10px/1 var(--sans);
  letter-spacing: .05em;
}
.make-generation-stages li.is-active {
  border-color: var(--generation-ink);
  color: #fff;
  background: var(--generation-ink);
}
.make-generation-stages li.is-done {
  border-color: color-mix(in srgb, var(--generation-ink) 24%, var(--line));
  color: var(--generation-ink);
  background: color-mix(in srgb, var(--generation-accent) 34%, white);
}
.make-generation[data-stage="script"] { --generation-accent: #ffd2c9; --generation-ink: #3a1d18; }
.make-generation[data-stage="voice"] { --generation-accent: #c9f0bf; --generation-ink: #183119; }
.make-generation[data-stage="mix"] { --generation-accent: #d9ccff; --generation-ink: #292044; }
@keyframes make-generation-core {
  0%, 100% { transform: scale(.86); box-shadow: 0 0 0 7px color-mix(in srgb, var(--generation-accent) 48%, transparent); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 15px color-mix(in srgb, var(--generation-accent) 8%, transparent); }
}
@keyframes make-generation-orbit { to { transform: rotate(360deg); } }
.make-request-result {
  margin-top: 20px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f6f7f9;
}
.make-request-result > p:not(.make-result-label) {
  max-width: 630px;
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.make-field-wide { grid-column: 1 / -1; }
.make-experience .create-button:disabled {
  opacity: .65;
  cursor: wait;
}
.make-result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}
.make-result-actions button,
.make-continue-link {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary-fg);
  background: var(--primary);
  cursor: pointer;
  font: 500 11px/1 var(--sans);
  letter-spacing: .06em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.make-result-actions span {
  color: var(--muted);
  font: 500 11px/1.4 var(--sans);
}
.make-request-error {
  margin: 12px 0 0;
  color: #b42318;
  font: 500 12px/1.4 var(--sans);
}

@media (max-width: 720px) {
  .make-experience {
    width: min(100%, calc(100vw - 12px));
    max-height: calc(100vh - 8px);
    border-radius: 16px 16px 0 0;
    margin: auto auto 0;
    background: #ffffff;
  }
  .make-experience form { padding: 24px 16px; }
  .make-preview-grid { grid-template-columns: 1fr 1fr; }
  .make-preview-card { min-height: 145px; padding: 12px; }
  .make-preview-card strong { font-size: 17px; }
  .make-field-grid { grid-template-columns: 1fr; }
  .make-request { display: grid; gap: 18px; }
  .make-experience .create-button { width: 100%; min-height: 52px; }
  .make-generation { grid-template-columns: 70px minmax(0, 1fr); gap: 13px; padding: 16px; }
  .make-generation-orbit { width: 68px; height: 68px; }
  .make-generation-stages { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .make-preview-card { transition: none; }
  .make-generation-orbit span,
  .make-generation-orbit i,
  .make-generation-orbit b { animation: none; }
}

/* ── Booth mode panels (shell modes, not modal-as-hero) ── */
.booth-panel {
  position: relative;
  z-index: 2;
  margin: 18px 30px 24px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -24px rgba(10, 11, 16, 0.35);
}
/* In booth mode these are theatre over a locked viewport, not another row in
   the flow — as flow items they pushed the CTA and status off the bottom edge. */
html[data-booth="1"] .booth-panel {
  position: fixed;
  z-index: 40;
  inset: auto 50% auto auto;
  top: 50%;
  right: auto;
  left: 50%;
  translate: -50% -50%;
  width: min(720px, calc(100vw - 48px));
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  margin: 0;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  text-align: center;
  box-shadow: 0 40px 90px -40px rgba(10, 11, 16, .5);
}
html[data-booth="1"] .booth-panel h2,
html[data-booth="1"] .booth-lede { margin-inline: auto; }
html[data-booth="1"] .booth-panel .booth-submit,
html[data-booth="1"] .booth-play-speakers { margin-inline: auto; }
.booth-eyebrow {
  margin: 0 0 10px;
  color: var(--faint);
  font: 500 13px/1 var(--sans);
  letter-spacing: 0;
}
.booth-panel h2 {
  margin: 0;
  max-width: 18ch;
  color: var(--ink-deep);
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1;
  letter-spacing: -.042em;
  font-weight: 600;
}
.booth-lede {
  margin: 14px 0 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.42;
}
.booth-field { display: block; margin-top: 22px; }
.booth-field input {
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: 500 clamp(18px, 2vw, 24px)/1.2 var(--sans);
  letter-spacing: -.02em;
}
.booth-field input::placeholder { color: #8a8a8a; }
.booth-tone-row {
  display: none;
}
.booth-tone-row label { position: relative; cursor: pointer; flex: 0 0 auto; }
.booth-tone-row input { position: absolute; opacity: 0; }
.booth-tone-row span {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: 600 12px/1 var(--sans);
  white-space: nowrap;
}
.booth-tone-row input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}
.booth-tone-row input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.booth-selected-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  min-height: 64px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.booth-selected-chip:hover,
.booth-selected-chip:focus-visible {
  border-color: var(--primary);
  outline: none;
}
.booth-selected-chip-avatar .booth-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}
.booth-selected-chip-copy { flex: 1; min-width: 0; }
.booth-selected-chip-label {
  display: block;
  color: var(--faint);
  font: 600 11px/1.2 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.booth-selected-chip-name {
  display: block;
  margin-top: 2px;
  font: 700 18px/1.15 var(--sans);
  letter-spacing: -.02em;
}
.booth-selected-chip-action {
  color: var(--muted);
  font: 700 13px/1 var(--sans);
  letter-spacing: .04em;
}

.booth-make-dialog {
  width: min(880px, calc(100vw - 24px));
  max-height: min(92vh, 880px);
  height: min(92vh, 880px);
  max-height: min(92dvh, 880px);
  height: min(92dvh, 880px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 64px -28px rgba(10, 11, 16, 0.45);
  overflow: hidden;
  /* Never set display:flex on closed <dialog> — it fights UA display:none and can paint an empty white sheet. */
}
.booth-make-dialog::backdrop {
  background: rgba(10, 11, 16, 0.38);
}
.booth-make-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: booth-sheet-in .22s ease both;
}
html.is-booth-modal-open,
body.is-booth-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}
.booth-make-sheet {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}
.booth-make-dialog-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 4px;
}
.booth-make-dialog-heading { min-width: 0; }
.booth-make-dialog-heading .booth-eyebrow { margin-bottom: 4px; }
.booth-make-dialog-heading h2 {
  margin: 0;
  max-width: 24ch;
  color: var(--ink-deep);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 600;
}
.booth-make-dialog-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.booth-make-dialog-close:hover,
.booth-make-dialog-close:focus-visible {
  border-color: var(--primary);
  outline: none;
}
.booth-make-dialog-close .icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ---- Quiet dice control (sits under the prompt, not above it) ---------- */
.booth-dice {
  flex: 0 0 auto;
  padding: 0;
  --die-accent: var(--primary, #c45c26);
}
.booth-dice-compact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  min-width: 0;
}
.booth-die-tray {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  perspective: 900px;
}
.booth-die {
  --rx: -18deg;
  --ry: 28deg;
  position: relative;
  width: 74px;
  height: 74px;
  cursor: pointer;
  border-radius: 16px;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 1.05s cubic-bezier(.22, .72, .24, 1), scale .18s ease;
}
.booth-die.is-rolling { animation: booth-die-hop 1.05s cubic-bezier(.3, .8, .4, 1); }
@keyframes booth-die-hop {
  0% { translate: 0 0; }
  35% { translate: 0 -26px; }
  65% { translate: 0 -9px; }
  100% { translate: 0 0; }
}
.booth-die-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  padding: 9px;
  border: 1px solid rgba(16, 18, 24, .12);
  border-radius: 16px;
  background: linear-gradient(150deg, #fff, #f1eee8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -4px 10px rgba(16,18,24,.08);
  backface-visibility: hidden;
}
.booth-die-face i {
  grid-row: var(--r);
  grid-column: var(--k);
  place-self: center;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--die-accent);
}
.booth-die-face[data-face="1"] { transform: translateZ(37px); }
.booth-die-face[data-face="2"] { transform: rotateY(90deg) translateZ(37px); }
.booth-die-face[data-face="3"] { transform: rotateY(180deg) translateZ(37px); }
.booth-die-face[data-face="4"] { transform: rotateY(-90deg) translateZ(37px); }
.booth-die-face[data-face="5"] { transform: rotateX(90deg) translateZ(37px); }
.booth-die-face[data-face="6"] { transform: rotateX(-90deg) translateZ(37px); }
/* At 74px the die is the object you reach for, so it needs press feedback. */
/* Never put `filter` (or opacity < 1) on the die: a filter forces
   transform-style to flat, the cube collapses, and all six faces z-fight in one
   plane — which is exactly what the hover flicker was. `scale` is an
   independent transform property and leaves preserve-3d intact, so the hover
   response lives here and on the shadow instead. */
.booth-die-tray:hover .booth-die { scale: 1.05; }
.booth-die-tray:hover .booth-die-shadow { width: 62px; opacity: .22; }
.booth-die:active,
.booth-die-tray:active .booth-die { scale: .96; }
.booth-die:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
/* A slow idle wobble says "press me" without demanding attention. */
.booth-die:not(.is-rolling) { animation: booth-die-idle 5.5s ease-in-out infinite; }
@keyframes booth-die-idle {
  0%, 100% { rotate: 0deg; }
  50% { rotate: -3deg; }
}
.booth-die-shadow {
  width: 54px;
  height: 9px;
  margin-top: 6px;
  transition: width .18s ease, opacity .18s ease;
  border-radius: 50%;
  background: #0a0b10;
  opacity: .16;
  filter: blur(4px);
}
.booth-die.is-rolling ~ .booth-die-shadow {
  animation: booth-shadow-squash 1.05s cubic-bezier(.3, .8, .4, 1);
}
@keyframes booth-shadow-squash {
  35% { transform: scale(.6); opacity: .08; }
}
/* Format + prompt pickers: the deliberate path, next to the die's random one. */
/* Its own row: sharing a line with the die, the roll pill and the result chip
   squeezed the format select down to "Deep▾". */
.booth-prompt-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 0 100%;
}
.booth-prompt-select {
  min-height: 40px;
  min-width: 0;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: 500 13px/1 var(--sans);
  letter-spacing: -.01em;
}
.booth-prompt-select:hover { border-color: var(--primary); }
/* The prompt itself is long — let it take the room and truncate in the control. */
.booth-prompt-select-wide {
  flex: 1 1 auto;
  max-width: 100%;
  text-overflow: ellipsis;
}


.booth-dice-controls {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: start;
}
/* Explaining the die is worse than letting someone press it once. */
.booth-roll-hint {
  display: none;
}
/* Secondary to the prompt field: this is the way out for someone who cannot
   think of anything, not the main instruction. */
.booth-roll-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font: 500 14px/1 var(--sans);
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  transition: border-color .16s ease, background .16s ease;
}
.booth-roll-button:hover:not(:disabled) {
  border-color: var(--primary);
  background: #fafafa;
}
.booth-roll-button:disabled {
  opacity: .55;
  cursor: wait;
}
/* The class sets display, so the hidden attribute needs to be restated or the
   result chip shows a stale "4 · Podcast" before anyone has rolled. */
.booth-roll-result[hidden] { display: none !important; }
.booth-roll-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 13px/1 var(--sans);
  letter-spacing: -.01em;
}
.booth-face-chip {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font: 600 11px/1 var(--sans);
}
#booth-result-format {
  color: var(--muted);
  font: 500 13px/1 var(--sans);
  letter-spacing: -.01em;
}

/* ---- Middle scroll zone ----------------------------------------------- */
.booth-make-body {
  flex: 1 1 auto;
  min-height: 0;
  /* Was hidden, which is what cut the second row of faces off on any short
     viewport - iPad landscape and a 746px-tall Mac window both. The zone is
     named "scroll zone"; now it actually is one. */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.booth-make-prompt {
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
}
.booth-make-prompt .booth-field { margin-top: 0; }
.booth-field-label {
  display: none;
}
/* The prompt is the whole point of the booth, so it gets the display size. */
.booth-make-prompt .booth-field textarea {
  width: 100%;
  min-height: 76px;
  max-height: 96px;
  resize: none;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: 500 clamp(17px, 1.8vw, 21px)/1.32 var(--sans);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
}
.booth-make-prompt .booth-field textarea::placeholder { color: var(--faint); }
.booth-make-prompt .booth-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 11, 16, .07);
}
.booth-voice-block {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.booth-make-section-label {
  display: block;
  margin: 0;
  color: var(--ink);
  font: 600 clamp(15px, 1.5vw, 18px)/1.2 var(--sans);
  letter-spacing: -.025em;
}
/* The old row scrolled sideways with no affordance, so half the categories were
   invisible. Wrapping shows every one of them. */
.booth-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  overflow: visible;
}
.booth-category-chip {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 500 14px/1 var(--sans);
  letter-spacing: -.015em;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.booth-category-chip:hover,
.booth-category-chip:focus-visible {
  color: var(--ink);
  border-color: var(--primary);
  outline: none;
}
/* lissin.com states the selected genre in solid ink, not a tinted wash. */
.booth-category-chip[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
  box-shadow: none;
}
.booth-category-chip-emoji { display: none; }
.booth-make-meta {
  margin: 0;
  min-height: 0;
  color: var(--muted);
  font: 500 12px/1.3 var(--sans);
}
.booth-make-dialog-status {
  display: block;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff4f0;
  color: #7a2e1b;
  font: 600 12px/1.35 var(--sans);
}
.booth-make-dialog-status[hidden] { display: none !important; }
.booth-sample-status:empty { display: none; }
.booth-sample-status {
  display: block;
  margin: 0;
  color: var(--muted);
  font: 500 12px/1.3 var(--sans);
}
/* Rows stretch to fill: the old fixed-height grid left a 200px band of empty
   white under the last row of faces. */
.booth-character-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 2px 0 0;
  /* overflow:hidden + min-height:0 let flexbox squeeze the rows under their
     own content and then clip the remainder. The visible symptom was a pink
     sliver under each face: the top edge of a soundscape pill cut in half.
     Rows still stretch to fill a tall dialog, they just cannot go below the
     height their content needs - past that, the body scrolls. */
  overflow: visible;
  min-height: auto;
  grid-auto-rows: minmax(112px, 1fr);
  flex: 1 1 auto;
  align-content: stretch;
}
.booth-character-card {
  position: relative;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  touch-action: manipulation;
}
.booth-character-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cat-accent, var(--primary));
  outline: none;
}
@media (hover: hover) and (pointer: fine) {
  .booth-character-card:hover {
    transform: translateY(-2px);
    border-color: var(--cat-accent, var(--primary));
  }
}
.booth-character-card.is-selected {
  border-color: var(--cat-accent, var(--primary));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cat-accent, var(--primary)) 35%, transparent);
  background: color-mix(in srgb, var(--cat-accent, var(--primary)) 8%, #fff);
}
.booth-character-card.is-playing::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cat-accent, var(--primary));
  box-shadow: 0 0 0 0 var(--cat-accent, var(--primary));
  animation: booth-pulse 1.2s ease-out infinite;
}
.booth-character-playing-label {
  display: none;
  color: var(--cat-accent, var(--primary));
  font: 700 11px/1.2 var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
}
/* Swap, do not stack. The row is a fixed 1fr, so adding the playing label as a
   fourth element pushed the soundscape pill through the bottom of the card —
   which is exactly what a selected, playing card looked like. */
.booth-character-card.is-playing .booth-character-playing-label { display: block; }
.booth-character-card.is-playing .booth-character-scape { display: none; }
.booth-character-name {
  max-width: 100%;
  min-width: 0;
  font: 600 clamp(12px, 1.05vw, 14px)/1.22 var(--sans);
  letter-spacing: -.02em;
  text-align: center;
  overflow-wrap: anywhere;
}
/* "PLAYING SAMPLE" used to sit on top of the soundscape line. */
.booth-character-playing-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booth-character-timbre {
  display: none;
}
/* ── What each character is carrying, stated on the card ─────────────────── */
/* min-width: 0 on both, or the nowrap soundscape line sets a min-content floor
   that the card cannot shrink below — cards render wider than their grid track
   and the fifth column gets pushed off the edge of the dialog. */
.booth-character-slot {
  position: relative;
  min-height: auto;
  min-width: 0;
  display: flex;
}
.booth-character-slot > .booth-character-card {
  flex: 1 1 auto;
  min-width: 0;
}
.booth-character-scape {
  max-width: 100%;
  min-width: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat-accent, var(--primary)) 10%, #fff);
  color: var(--muted);
  font: 500 10.5px/1.25 var(--sans);
  letter-spacing: -.01em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* An edited character should be obvious at a glance in a grid of sixty. */
.booth-character-scape.is-edited {
  background: var(--ink);
  color: #fff;
}
.booth-character-scape.is-edited::before { content: "✎ "; }

.booth-scape-edit {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--muted);
  cursor: pointer;
  /* Visible by default: this is the operator's way in, and an affordance that
     only appears on hover is one nobody finds on a touchscreen. */
  opacity: .5;
  transition: opacity .15s ease, color .15s ease, border-color .15s ease;
}
.booth-character-slot:hover .booth-scape-edit,
.booth-scape-edit:focus-visible { opacity: 1; }
.booth-scape-edit:hover { color: var(--ink); border-color: var(--primary); }
/* On a touchscreen it is a finger, not a cursor. Kept deliberately modest
   rather than grown to the full 44px target: it sits on top of the card that
   selects the voice, and a large hit area here would steal a visitor's tap to
   serve an operator's tool. */
@media (hover: none) {
  .booth-scape-edit { width: 32px; height: 32px; opacity: .65; }
}

/* ── Soundscape editor ───────────────────────────────────────────────────── */
.booth-scape-editor {
  width: min(560px, calc(100vw - 32px));
  max-height: min(88vh, 760px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(10, 11, 16, .5);
  overflow: hidden;
}
.booth-scape-editor::backdrop { background: rgba(10, 11, 16, .5); }
.booth-scape-editor[open] { display: flex; }
.booth-scape-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100%;
  min-height: 0;
}
.booth-scape-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 8px;
}
.booth-scape-header h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 600;
  color: var(--ink-deep);
}
.booth-scape-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 14px;
  padding: 8px 22px 16px;
}
.booth-scape-field { display: grid; gap: 6px; }
.booth-scape-field > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font: 500 13px/1.2 var(--sans);
  letter-spacing: -.01em;
}
.booth-scape-field > span b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.booth-scape-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 500 15px/1 var(--sans);
}
.booth-scape-field input[type="range"] { width: 100%; accent-color: var(--ink); }
.booth-scape-cues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.booth-scape-status {
  margin: 0;
  min-height: 18px;
  color: var(--muted);
  font: 500 12.5px/1.4 var(--sans);
}
.booth-scape-status[data-kind="ok"] { color: #1f7a3d; }
.booth-scape-status[data-kind="warn"] { color: #b42318; }
.booth-scape-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #fff;
}
.booth-scape-secondary {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: 500 14px/1 var(--sans);
  letter-spacing: -.01em;
}
.booth-scape-secondary:hover:not(:disabled) { border-color: var(--primary); }
.booth-scape-save {
  margin-left: auto;
  min-height: 44px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  cursor: pointer;
  font: 600 15px/1 var(--sans);
  letter-spacing: -.01em;
}
.booth-scape-save:disabled,
.booth-scape-secondary:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) {
  .booth-scape-cues { grid-template-columns: 1fr; }
}

@keyframes booth-sheet-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.booth-avatar {
  width: clamp(48px, 6.4vh, 76px);
  height: clamp(48px, 6.4vh, 76px);
  display: block;
  border-radius: 20px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #f4f1ec;
  box-shadow: inset 0 0 0 1px rgba(22, 24, 31, 0.06);
}
.booth-avatar-fallback {
  background: linear-gradient(145deg, #f4f1ec, #e8e4dc);
}
.booth-character-card:hover .booth-avatar,
.booth-character-card:focus-visible .booth-avatar {
  transform: translateY(-1px);
}
.booth-character-card.is-selected .booth-avatar {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--cat-accent, var(--primary)) 35%, transparent),
    0 6px 16px color-mix(in srgb, var(--cat-accent, var(--primary)) 18%, transparent);
}
.booth-character-card.is-playing .booth-avatar {
  animation: booth-avatar-idle 2.8s ease-in-out infinite;
}
@keyframes booth-avatar-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes booth-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cat-accent, var(--primary)) 55%, transparent); }
  100% { box-shadow: 0 0 0 12px transparent; }
}
.booth-character-confirm {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -10px 24px -18px rgba(10, 11, 16, 0.35);
}
.booth-selected-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  opacity: .72;
}
.booth-character-confirm.has-selection .booth-selected-card { opacity: 1; }
.booth-selected-avatar .booth-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}
.booth-selected-name {
  margin: 0;
  font: 700 16px/1.15 var(--sans);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.booth-selected-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font: 500 12px/1.3 var(--sans);
}
.booth-character-confirm {
  padding: 14px 24px calc(16px + env(safe-area-inset-bottom, 0px));
}
.booth-character-confirm .booth-submit {
  margin-top: 0;
  flex: 0 0 auto;
  width: min(260px, 46%);
  min-height: 54px;
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 17px);
  letter-spacing: -.01em;
}
.booth-character-confirm .booth-submit:disabled {
  /* Muted until a character is selected — still clearly visible, never opacity:0 */
  opacity: .55;
  cursor: not-allowed;
  background: #3a3d45;
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .booth-die:not(.is-rolling) { animation: none; }
  .booth-make-dialog[open] { animation: none; }
  .booth-die,
  .booth-die.is-rolling,
  .booth-die.is-rolling ~ .booth-die-shadow {
    animation: none !important;
    transition: none !important;
  }
  .booth-character-card.is-playing .booth-avatar,
  .booth-character-card.is-playing::after,
  .booth-current-loader > span,
  .booth-current-loader > i,
  .booth-current-loader > b,
  .booth-current-loader u {
    animation: none;
  }
}
.booth-submit,
.booth-play-speakers {
  display: block;
  margin-top: 22px;
  min-height: 64px;
  width: min(420px, 100%);
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  cursor: pointer;
  font: 600 clamp(16px, 1.8vw, 20px)/1 var(--sans);
  letter-spacing: -.01em;
}
.booth-submit:disabled { opacity: .65; cursor: wait; }
.booth-play-speakers {
  width: min(480px, 100%);
  min-height: 80px;
  margin-top: 28px;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -.02em;
  box-shadow: 0 20px 40px -18px rgba(10, 11, 16, .6);
}
.booth-stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
}
.booth-stages li {
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--faint);
  font: 500 14px/1 var(--sans);
  letter-spacing: -.01em;
}
.booth-stages li.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}
.booth-stages li.is-done {
  color: var(--ink);
  background: #eef0f3;
}
.booth-generating-status,
.booth-ready-note {
  margin: 18px 0 0;
  color: var(--muted);
  font: 500 15px/1.4 var(--sans);
}
.booth-current-loader {
  --loader-accent: #b9dafd;
  --loader-ink: #162539;
  position: relative;
  display: grid;
  place-items: center;
  width: 116px;
  height: 88px;
  margin: 22px auto -1px;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--loader-accent) 43%, white) 0 21%, transparent 54%),
    linear-gradient(135deg, rgba(10, 11, 16, .035), transparent 65%);
}
.booth-current-loader > span,
.booth-current-loader > i,
.booth-current-loader > b,
.booth-current-loader > em {
  position: absolute;
  display: block;
}
.booth-current-loader > span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--loader-ink);
  box-shadow: 0 0 0 9px color-mix(in srgb, var(--loader-accent) 45%, transparent);
  animation: booth-current-core 1.65s ease-in-out infinite;
}
.booth-current-loader > i,
.booth-current-loader > b {
  border: 1px solid color-mix(in srgb, var(--loader-ink) 50%, transparent);
  border-radius: 50%;
  animation: booth-current-orbit 3.2s linear infinite;
}
.booth-current-loader > i { width: 86px; height: 39px; }
.booth-current-loader > b {
  width: 59px;
  height: 80px;
  border-color: color-mix(in srgb, var(--loader-accent) 90%, var(--loader-ink));
  animation-duration: 4.1s;
  animation-direction: reverse;
}
.booth-current-loader > em {
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: end;
  gap: 3px;
  height: 19px;
}
.booth-current-loader u {
  display: block;
  width: 3px;
  min-height: 5px;
  border-radius: 999px;
  background: var(--loader-ink);
  animation: booth-current-signal .86s ease-in-out infinite alternate;
}
.booth-current-loader u:nth-child(2) { animation-delay: -.48s; }
.booth-current-loader u:nth-child(3) { animation-delay: -.18s; }
.booth-current-loader u:nth-child(4) { animation-delay: -.62s; }
.booth-current-loader u:nth-child(5) { animation-delay: -.31s; }
.booth-generating.is-current-hosted-flow[data-stage="script"] .booth-current-loader { --loader-accent: #ffd2c9; --loader-ink: #3a1d18; }
.booth-generating.is-current-hosted-flow[data-stage="voice"] .booth-current-loader { --loader-accent: #c9f0bf; --loader-ink: #183119; }
.booth-generating.is-current-hosted-flow[data-stage="mix"] .booth-current-loader { --loader-accent: #d9ccff; --loader-ink: #292044; }
@keyframes booth-current-core {
  0%, 100% { transform: scale(.88); box-shadow: 0 0 0 7px color-mix(in srgb, var(--loader-accent) 42%, transparent); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 15px color-mix(in srgb, var(--loader-accent) 8%, transparent); }
}
@keyframes booth-current-orbit { to { transform: rotate(360deg); } }
@keyframes booth-current-signal {
  from { height: 5px; opacity: .38; }
  to { height: 19px; opacity: 1; }
}

@media (max-width: 1024px) {
  .booth-character-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .booth-make-dialog {
    width: min(100vw, 100%);
    max-height: min(92vh, 880px);
    height: min(92vh, 880px);
    max-height: min(92dvh, 880px);
    height: min(92dvh, 880px);
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }
  .booth-make-sheet {
    max-height: 100%;
    height: 100%;
  }
  .booth-character-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* Landscape tablets and short laptop windows. After the faces, the die is the
   tallest thing in the dialog; trimming it alone buys back the ~30px that was
   pushing the second row of faces below the fold. A booth visitor should not
   have to discover a scrollbar to see half the cast. The die stays the largest
   control in the panel - it just stops being the largest thing on screen. */
@media (min-width: 901px) and (max-height: 900px) {
  .booth-die-tray { width: 74px; height: 74px; }
  .booth-die { width: 52px; height: 52px; }
  .booth-die-face[data-face="1"] { transform: translateZ(26px); }
  .booth-die-face[data-face="2"] { transform: rotateY(90deg) translateZ(26px); }
  .booth-die-face[data-face="3"] { transform: rotateY(180deg) translateZ(26px); }
  .booth-die-face[data-face="4"] { transform: rotateY(-90deg) translateZ(26px); }
  .booth-die-face[data-face="5"] { transform: rotateX(90deg) translateZ(26px); }
  .booth-die-face[data-face="6"] { transform: rotateX(-90deg) translateZ(26px); }
  .booth-make-prompt .booth-field textarea { min-height: 52px; max-height: 64px; }
  .booth-make-body { gap: 10px; }
}

/* Short laptop windows (a 15" MacBook in Safari is ~746px of viewport) and
   iPad landscape with the toolbar showing. Everything gives up a little rather
   than one thing giving up a lot, so the panel still reads as designed instead
   of as a compressed version of itself. Sits between the 900px tier above and
   the phone tier below; the 720px block that follows still wins under it. */
@media (max-height: 800px) {
  .booth-die-tray { width: 54px; height: 54px; }
  .booth-die { width: 38px; height: 38px; }
  .booth-die-face[data-face="1"] { transform: translateZ(19px); }
  .booth-die-face[data-face="2"] { transform: rotateY(90deg) translateZ(19px); }
  .booth-die-face[data-face="3"] { transform: rotateY(180deg) translateZ(19px); }
  .booth-die-face[data-face="4"] { transform: rotateY(-90deg) translateZ(19px); }
  .booth-die-face[data-face="5"] { transform: rotateX(90deg) translateZ(19px); }
  .booth-die-face[data-face="6"] { transform: rotateX(-90deg) translateZ(19px); }
  .booth-avatar { width: 40px; height: 40px; }
  .booth-character-grid { grid-auto-rows: minmax(82px, 1fr); gap: 8px; }
  .booth-character-card { min-height: 82px; gap: 6px; padding: 8px 6px; }
  .booth-make-body { gap: 4px; }
  .booth-make-dialog-header { padding-top: 10px; padding-bottom: 2px; }
  .booth-make-prompt .booth-field textarea { min-height: 44px; max-height: 54px; }
}

@media (max-height: 720px) {
  .booth-make-dialog-header { padding-top: 8px; }
  .booth-dice { padding-top: 4px; }
  .booth-die-tray { width: 56px; height: 56px; }
  .booth-die { width: 38px; height: 38px; }
  .booth-die-face[data-face="1"] { transform: translateZ(19px); }
  .booth-die-face[data-face="2"] { transform: rotateY(90deg) translateZ(19px); }
  .booth-die-face[data-face="3"] { transform: rotateY(180deg) translateZ(19px); }
  .booth-die-face[data-face="4"] { transform: rotateY(-90deg) translateZ(19px); }
  .booth-die-face[data-face="5"] { transform: rotateX(90deg) translateZ(19px); }
  .booth-die-face[data-face="6"] { transform: rotateX(-90deg) translateZ(19px); }
  .booth-make-prompt .booth-field textarea { min-height: 48px; max-height: 56px; }
  .booth-avatar { width: 40px; height: 40px; border-radius: 14px; }
  .booth-character-name { font-size: 11px; }
  .booth-character-grid { grid-auto-rows: minmax(92px, 1fr); }
  .booth-character-card { min-height: 92px; }
  .booth-character-confirm { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .booth-character-confirm .booth-submit { min-height: 48px; }
  .booth-selected-meta { display: none; }
}
@media (max-width: 720px) {
  .booth-panel { margin: 12px 12px 18px; border-radius: 18px; }
  .booth-worlds { margin: 8px 12px 0; gap: 8px; }
  .booth-worlds button { min-height: 46px; font-size: 13px; }
  .booth-stages { grid-template-columns: 1fr 1fr; }
  .booth-play-speakers { min-height: 72px; }
  .booth-character-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .booth-panel h2 { max-width: 18ch; }
  .booth-character-confirm { gap: 8px; }
  .booth-character-confirm .booth-submit {
    width: min(200px, 42%);
    min-height: 48px;
  }
  .booth-dice-compact { gap: 10px; }
  .booth-make-body { padding: 8px 12px 4px; }
  .booth-make-dialog-header { padding-left: 12px; padding-right: 12px; }
  .booth-dice { padding-left: 12px; padding-right: 12px; }
  .booth-character-confirm { padding-left: 12px; padding-right: 12px; }
}
