/* `hidden` must actually hide. `.realm-btn` sets `display: inline-flex`, which — being an
   author rule — beats the browser's own `[hidden] { display: none }` default no matter how
   the specificities compare, so #go-mark showed up before an attempt was even submitted.
   StoryForge hit this exact bug first; same fix here. */
[hidden] { display: none !important; }

.hall .sheet {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  /* Every other Realm app puts its content on the light parchment (see the Great Wall's
     .sheet and StoryForge's .sf-sheet); without this, the page shows realm.css's dark
     "leather desk" body background behind dark ink text — unreadable. */
  background-color: var(--parchment);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  min-height: calc(100dvh - 2.5rem);
}

.hall-title {
  font-size: 1.6rem;
  margin: 0.5rem 0 1rem;
}

.hall .screen { display: block; }

.hall .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1rem 0;
}

.hall .field input {
  font-size: 1.1rem;
  padding: 0.5rem;
  width: 8rem;
}

.hall .screen--attempt .hud {
  position: sticky;
  top: 0;
  background: inherit;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(128, 128, 128, 0.3);
  z-index: 1;
}

.hall .clock { font-size: 1.4rem; font-weight: bold; margin: 0; }
.hall .target { margin: 0; opacity: 0.7; }

.hall .question {
  margin: 1.25rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(128, 128, 128, 0.3);
}

.hall .question__number { font-weight: bold; margin-right: 0.4rem; }

.hall .mcq-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.hall .mcq-options button {
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--parchment-lit, #fff8e6);
  border: 2px solid var(--ink-soft, #6b5330);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.hall .mcq-options button:active { transform: translateY(2px); }

.hall .mcq-options button[aria-pressed="true"] {
  background: linear-gradient(180deg, #e2b653, var(--gold) 55%, var(--gold-deep));
  border-color: var(--ink);
  box-shadow: 0 3px 0 rgba(90, 65, 30, 0.55);
}

.hall .quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.hall .quick-pick {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--parchment-lit, #fff8e6);
  border: 2px solid var(--ink-soft, #6b5330);
  border-radius: 999px;
  cursor: pointer;
}

.hall .quick-pick[aria-pressed="true"] {
  background: linear-gradient(180deg, #e2b653, var(--gold) 55%, var(--gold-deep));
  border-color: var(--ink);
}

.hall .paper-card__icon { font-size: 1.4rem; margin-right: 0.3rem; }
.hall .paper-card__meta { color: var(--ink-soft, #6b5330); font-size: 0.9rem; }

.hall .empty-state {
  grid-column: 1 / -1;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--ink-soft, #6b5330);
}

.hall .answer-input {
  font-size: 1rem;
  padding: 0.4rem;
  width: 100%;
  max-width: 12rem;
}

.hall .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.hall .paper-card {
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 8px;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  background: none;
  font: inherit;
  width: 100%;
}

.hall #history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}
