/* ---------- Filter bar & tags ---------- */ .filter-bar { margin-bottom: 18px; } .search-input { max-width: 340px; } .tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .tag { padding: 2px 12px; font-size: 0.76rem; border-radius: 999px; color: var(--text-dim); } .tag.active { color: var(--accent-bright); border-color: var(--accent-dim); box-shadow: inset 0 0 10px rgba(212, 169, 78, 0.1); } .tag.small { display: inline-block; background: var(--bg-input); border: 1px solid var(--border); padding: 1px 9px; margin-right: 4px; cursor: default; } /* ---------- Modal ---------- */ .modal-overlay { position: fixed; inset: 0; background: rgba(5, 5, 9, 0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 50; animation: page-in 0.2s ease both; } .modal { width: min(480px, calc(100vw - 40px)); max-height: 80vh; overflow-y: auto; background: var(--bg-panel); border: 1px solid var(--border-bright); border-radius: 14px; padding: 26px 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 169, 78, 0.06); } .modal h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.2rem; color: var(--accent-bright); } .modal .modal-hint { margin: 0 0 18px; color: var(--text-dim); font-size: 0.88rem; } .modal .modal-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; } /* The begin-adventure modal puts name and pronouns on one line. Pronouns need only a few characters, so the name takes the slack. Both stack on a narrow screen rather than shrinking the name field to nothing. */ .modal .modal-row { display: flex; gap: 10px; } .modal .modal-row > .field { flex: 1 1 auto; min-width: 0; } .modal .modal-row > .field-narrow { flex: 0 1 9rem; } @media (max-width: 480px) { .modal .modal-row { display: block; } .modal .modal-row > .field-narrow { flex: none; } } /* A second hint, introducing the scenario's own questions below the persona. */ .modal .modal-hint + .field, .modal .field + .modal-hint { margin-top: 4px; }