/* scenario.css — the three "draw a scenario" games (Sophie's Choice, You're In The
   Scene, Persuade Together) share one layout: a big card that a draw animation lands
   in, a filter bar, and a browsable list of every scenario. Only the accent colour and
   a couple of sizes differ, so those come from --accent and from each page's own
   <style>, which loads after this file. */

.scenario-browser {
  width: 100%; max-width: 1100px;
  margin-top: 28px;
}
.scenario-browser-hdr {
  background: var(--surface-2); color: var(--text-dim); border: 2px solid var(--border-3); border-radius: 12px;
  padding: 10px 18px; font-size: .8rem; font-weight: 800; font-family: inherit; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s; margin-bottom: 14px;
}
.scenario-browser-hdr:hover { border-color: var(--accent); color: var(--accent-text); }
.scenario-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
}
.scenario-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--btn-face); border: 1.5px solid var(--border-2);
  border-radius: 12px; padding: 12px 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .1s;
  font-family: inherit; text-align: left;
}
.scenario-item:hover  { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.scenario-item:active { transform: scale(.98); }
.scenario-item.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sc-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; text-align: center;
  min-height: 200px;
}
.sc-placeholder .big-emoji { font-size: 3.2rem; }
/* this line is the only thing telling the host what to press before anything is
   drawn, and it is on the shared screen — it was #333 (1.4:1), i.e. invisible */
.sc-placeholder p { color: var(--text-dim); font-size: .95rem; }
.sc-content { display: none; flex-direction: column; gap: 20px; }
.sc-content.show { display: flex; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.filter-btn { padding: 8px 14px; }
.filter-btn:hover  { border-color: var(--accent); color: var(--accent-text); }
.filter-btn:active { transform: scale(.96); }
.filter-btn.active { border-color: var(--accent); color: var(--accent-text); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.btn-draw {
  width: 100%; max-width: 1100px;
  background: var(--accent); color: var(--btn-ink); border: 2px solid var(--accent);
  border-radius: 14px; padding: 16px;
  font-size: 1.05rem; font-weight: 800;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 26%, transparent);
  transition: filter .2s, transform .1s;
  animation: fadeUp .5s .3s ease both;
}
.btn-draw:hover { filter: brightness(1.08); }
.btn-draw:active { transform: scale(.98); }
.btn-draw:disabled { opacity: .4; cursor: not-allowed; }
