/* Game Room Engine's Try it! pages only — linked from game_room_base.html, after the
   site-wide /static/style.css (whose base, form, .cta, .notice and .section-heading
   styles it builds on). The project's colour is a deep amber, after the demo's own
   amber accent, dark enough for white text on it and for text on white. */
:root { --grm: #9a5a00; --grm-dark: #7a4700; --grm-ring: rgba(154, 90, 0, 0.2); }

.project-title { color: var(--grm); }
.project-subtitle { font-weight: 400; color: #6b7280; font-size: 0.6em; margin-left: 0.25rem; }

/* The intro above the form (try_form.html). */
.intro { margin-bottom: 1.5rem; }
.intro .lead { font-size: 1.15rem; line-height: 1.55; margin: 0.5rem 0 1.25rem; }

.steps { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: 0.7rem; }
.steps li { display: flex; align-items: baseline; gap: 0.7rem; color: #333; line-height: 1.45; }
.step-num {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--grm);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.6rem;
  text-align: center;
}

/* The form, a card like Secret Shopper's. */
.run-form {
  background: #fff;
  border: 1px solid #e5e8eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  gap: 1.25rem;
}
.field-hint { font-weight: 400; font-size: 0.82rem; color: #6b7280; margin: 0; }

.run-form input,
.run-form select {
  font: inherit;
  font-weight: 400;   /* not the label's bold */
  padding: 0.5rem;
  border: 1px solid #cdd3d8;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.run-form input:hover,
.run-form select:hover { border-color: #9aa4ac; }
.run-form input:focus,
.run-form select:focus {
  outline: none;
  border-color: var(--grm);
  box-shadow: 0 0 0 3px var(--grm-ring);
}

.form-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-submit,
.btn-secondary {
  border-radius: 8px;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-submit { background: var(--grm); }
.btn-submit:hover { background: var(--grm-dark); box-shadow: 0 3px 10px rgba(122, 71, 0, 0.25); }
.btn-secondary { background: #fff; color: var(--grm); border: 1px solid var(--grm); }
.btn-secondary:hover { background: #fdf6ec; }
.btn-submit:focus-visible,
.btn-secondary:focus-visible { outline: 2px solid var(--grm); outline-offset: 2px; }
/* "Build my room" once clicked, while the build starts (try_form.html). */
.btn-submit:disabled { opacity: 0.75; cursor: progress; box-shadow: none; }
/* The room page's "View your room": a link that looks like the form's button. */
a.btn-submit,
a.btn-submit:hover { display: inline-block; color: #fff; text-decoration: none; }
.room-ready { margin-top: 1.25rem; }

/* A refused request or a failed room: the site's .notice, in red. */
.notice--error { background: #fef2f2; border-color: #fecaca; border-left-color: #dc2626; color: #7f1d1d; }
.notice code { font-size: 0.9em; }

/* "Your rooms" (try_form.html). */
.room-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.room-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; }
.room-status {
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f3f4f6;
  color: #374151;
}
.room-status--done { background: #ecfdf3; color: #166534; }
.room-status--running,
.room-status--queued { background: #fff8e6; color: #5c4813; }
.room-status--failed { background: #fef2f2; color: #991b1b; }

/* A room's page while it builds, or why it stopped (try_status.html). */
.room-heading { margin: 1.25rem 0 0.5rem; }
.room-inputs { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0 0 1rem; }
.room-inputs dt { font-weight: 600; color: #6b7280; }
.room-inputs dd { margin: 0; overflow-wrap: anywhere; }
.room-state p { margin: 0.4rem 0; }

/* The live progress lines, like Secret Shopper's live window. */
.status-log {
  margin-top: 1rem;
  height: 14rem;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #16120d;
  color: #efe6d8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}
.status-log--done { height: auto; max-height: 14rem; }
.status-line { white-space: pre-wrap; word-break: break-word; }
.status-line::before { content: "› "; color: #f0b429; }
/* A live step: its line, then how long it has run against its usual time,
   or, once over, how long it took. */
.status-line--step { display: flex; align-items: baseline; gap: 1rem; }
.status-line--step::before { content: "›"; margin-right: -0.5rem; }
.status-text { flex: 1; }
.status-meta { color: #b3a68f; font-variant-numeric: tabular-nums; white-space: nowrap; }
.status-meta--slow { color: #f0b429; }
.status-line--sub { padding-left: 1.25rem; color: #cfc3ae; }
.status-line--sub::before { content: "· "; }
