/**
 * @module   public/assets/css/half-baked.css
 * @purpose  Surface styling for the Half Baked dealer (/halfbaked). Mobile-first — a team meets
 *           this on a phone via QR. Sits on top of the vendored jotf bricks and only uses their
 *           tokens; it never edits them.
 * @layer    Presentation
 * @contract BEM under the .hb block. The MOMENT carries the most visual weight on purpose: the
 *           three-word label is only a handle, the sentence is the thing being pitched against.
 */

/* ── Shell ──────────────────────────────────────────────────────────────── */
.hb {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hb__head { text-align: center; }

.hb__kicker {
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted-foreground, #6b7280);
}

.hb__title {
  margin: 0.25rem 0 0;
  font-family: var(--font-headline, sans-serif);
  font-size: 1.5rem;
  line-height: 1.2;
}

.hb__empty {
  padding: 1rem;
  border: 1px dashed var(--color-border, #d4d4d8);
  border-radius: var(--radius, 0.5rem);
  color: var(--color-muted-foreground, #6b7280);
}

/* ── The deal ───────────────────────────────────────────────────────────── */
.hb__deal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hb__card {
  padding: 1.25rem;
  border: 1px solid var(--color-border, #d4d4d8);
  border-radius: var(--radius, 0.5rem);
  background: var(--color-card, #fff);
}

.hb__card--gear {
  border-color: var(--color-accent-border, var(--color-border, #d4d4d8));
  text-align: center;
}

/* The domain is the first thing read: it sets the world the moment happens in. A solid pill so it
   is unmistakable across a table, and it leads the card rather than sharing a line with the name. */
.hb__domain {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--color-accent, #2563eb);
  color: var(--color-primary-foreground, #fff);
  font-family: var(--font-headline, sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hb__domain:empty { display: none; }

/* The label is a handle for the moment, not the moment itself — kept small on purpose. */
.hb__label {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted-foreground, #6b7280);
}

/* The sentence a team actually pitches against — the largest type on the page. */
.hb__moment {
  margin: 0;
  font-family: var(--font-headline, sans-serif);
  font-size: 1.375rem;
  line-height: 1.3;
}

.hb__gear {
  margin: 0;
  font-family: var(--font-headline, sans-serif);
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--color-accent, inherit);
}

.hb__joiner {
  margin: 0;
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground, #6b7280);
}

/* Quiet, secondary, and small — it must not compete with the combo above it. */
.hb__huh {
  align-self: center;
  margin-top: 0.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--color-border, #d4d4d8);
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted-foreground, #6b7280);
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  cursor: pointer;
}

.hb__huh:hover { border-color: var(--color-border-strong, #a1a1aa); }
.hb__huh:focus-visible { outline: 3px solid var(--color-ring, #2563eb); outline-offset: 2px; }

.hb__prompt {
  margin: 0;
  padding-top: 0.5rem;
  font-size: 0.95rem;
  line-height: var(--leading-body, 1.6);
  color: var(--color-muted-foreground, #4b5563);
}

.hb__prompt[hidden] { display: none; }

/* ── The button ─────────────────────────────────────────────────────────── */
.hb__button {
  width: 100%;
  padding: 1.125rem 1rem;
  border: 0;
  border-radius: var(--radius, 0.5rem);
  background: var(--color-primary, #111);
  color: var(--color-primary-foreground, #fff);
  font-family: var(--font-headline, sans-serif);
  font-size: 1.25rem;
  cursor: pointer;
}

.hb__button:hover { background: var(--color-primary-dark, #000); }
.hb__button:focus-visible { outline: 3px solid var(--color-ring, #2563eb); outline-offset: 2px; }
.hb__button:active { transform: translateY(1px); }

@media (min-width: 40rem) {
  .hb { padding-top: 3rem; }
  .hb__title { font-size: 2rem; }
  .hb__moment { font-size: 1.625rem; }
  .hb__gear { font-size: 2.25rem; }
}
