/* NoFilter — anonymous answers + ranked voting. Shares primitives with styles.css. */

.nf-display-body [hidden],
.nf-phone-body [hidden],
.nf-setup-body [hidden] { display: none !important; }

.nf-display-topbar,
.nf-phone-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.nf-display-topbar h1 { font-family: "Oxanium", sans-serif; }

.nf-display-body { min-height: 100vh; background: radial-gradient(circle at 50% 0%, #2b0f3a 0, #0d0712 48%, #08050d 100%); }
.nf-display-shell { width: min(100%, 1800px); }
.nf-display-main { display: grid; gap: 14px; padding-bottom: 24px; }
.nf-status-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nf-live-lobby { width: min(1180px, 100%); justify-self: center; }

.nf-stage { min-height: min(70vh, 860px); display: grid; }
.nf-ready-view,
.nf-prompt-view,
.nf-results-view {
  border-radius: 18px;
  border: 1px solid rgba(213, 156, 245, 0.22);
  background: linear-gradient(160deg, rgba(43, 15, 58, 0.86), rgba(13, 7, 18, 0.94));
}
.nf-ready-view { padding: clamp(28px, 8vw, 110px); align-content: center; justify-items: center; text-align: center; display: grid; gap: 10px; }
.nf-ready-view p { max-width: 620px; color: var(--muted); }
.nf-ready-start { font-size: 1.1rem; }

.nf-prompt-view { padding: clamp(16px, 3vw, 34px); display: grid; gap: 16px; align-content: start; }
.nf-prompt-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.nf-phase-chip { background: rgba(213, 156, 245, 0.16); }
.nf-prompt-text {
  font: 700 clamp(1.5rem, 3.4vw, 3rem)/1.25 "Oxanium", sans-serif;
  padding: clamp(10px, 2vw, 22px) 0;
}
.nf-prompt-footer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nf-timer { font: 700 1.6rem "Oxanium", sans-serif; min-width: 84px; }
.nf-timer.urgent { color: var(--amber, #ffcc62); animation: nfPulse 0.9s infinite; }
@keyframes nfPulse { 50% { opacity: 0.45; } }
.nf-progress-banner { flex: 1; color: var(--muted); font-weight: 600; }

.nf-answer-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.nf-wall-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(213, 156, 245, 0.2);
  background: rgba(30, 12, 42, 0.82);
  animation: nfDeal 0.45s both;
  animation-delay: calc(var(--nf-i, 0) * 70ms);
}
@keyframes nfDeal { from { opacity: 0; transform: translateY(14px); } }
.nf-wall-card span {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(213, 156, 245, 0.9); color: #1c0929;
  font: 700 1rem "Oxanium", sans-serif;
}
.nf-wall-card p { margin: 4px 0 0; font-size: 1.08rem; }

.nf-results-view { padding: clamp(16px, 3vw, 34px); display: grid; gap: 14px; align-content: start; }
.nf-results-prompt { color: var(--muted); font: 600 1.15rem/1.4 "Space Grotesk", sans-serif; }
.nf-results-list { display: grid; gap: 10px; }
.nf-result-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(213, 156, 245, 0.18);
  background: rgba(30, 12, 42, 0.7);
}
.nf-result-row.winner { border-color: rgba(255, 204, 98, 0.65); background: rgba(59, 38, 10, 0.55); }
.nf-result-row.mine { border-color: rgba(213, 156, 245, 0.6); }
.nf-result-row.placeholder {
  justify-content: center;
  color: rgba(213, 156, 245, 0.4);
  font: 700 1.1rem "Oxanium", sans-serif;
  border-style: dashed;
  min-height: 52px;
}
.nf-result-row.revealing { animation: nfReveal 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes nfReveal {
  from { opacity: 0; transform: translateY(26px) scale(0.96); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
.nf-result-row.revealing .nf-result-meta strong { animation: nfPoints 0.7s 0.25s both; }
@keyframes nfPoints {
  from { opacity: 0; transform: scale(2.1); }
  to { opacity: 1; transform: scale(1); }
}
.nf-result-row.winner.revealing { animation: nfWinner 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
@keyframes nfWinner {
  from { opacity: 0; transform: translateY(34px) scale(0.9); }
  55% { opacity: 1; transform: translateY(-6px) scale(1.04); }
  to { opacity: 1; transform: none; }
}
.nf-result-place {
  min-width: 40px; flex: none; text-align: center;
  font: 700 1rem "Oxanium", sans-serif;
  color: rgba(213, 156, 245, 0.75);
}
.nf-result-row.winner .nf-result-place { color: #ffcc62; font-size: 1.3rem; }
.nf-result-body { flex: 1; display: grid; gap: 6px; min-width: 0; }
.nf-voter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.nf-voter-chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid rgba(213, 156, 245, 0.25);
  background: rgba(213, 156, 245, 0.08);
}
.nf-voter-chip b { color: #ffcc62; font-family: "Oxanium", sans-serif; }
.nf-voter-chip.empty { opacity: 0.55; border-style: dashed; }
.nf-result-text { font-size: 1.06rem; }
.nf-result-meta { display: flex; align-items: center; gap: 12px; flex: none; }
.nf-result-meta span { color: var(--muted); font-weight: 600; }
.nf-result-meta strong { font: 700 1.15rem "Oxanium", sans-serif; color: #ffcc62; }
.nf-next-round { justify-self: start; }

.nf-reading-view {
  border-radius: 18px;
  border: 1px solid rgba(213, 156, 245, 0.22);
  background: linear-gradient(160deg, rgba(43, 15, 58, 0.86), rgba(13, 7, 18, 0.94));
  padding: clamp(28px, 8vw, 110px);
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.nf-reading-view p { max-width: 680px; color: var(--muted); font-size: 1.12rem; }

.nf-tally-view {
  border-radius: 18px;
  border: 1px solid rgba(213, 156, 245, 0.22);
  background: linear-gradient(160deg, rgba(43, 15, 58, 0.86), rgba(13, 7, 18, 0.94));
  padding: clamp(16px, 3vw, 34px);
  display: grid;
  gap: 14px;
  align-content: start;
}
.nf-tally-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.nf-tally-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(213, 156, 245, 0.2);
  background: rgba(30, 12, 42, 0.7);
}
.nf-tally-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-tally-stepper { display: flex; align-items: center; gap: 10px; flex: none; }
.nf-tally-stepper strong { min-width: 34px; text-align: center; font: 700 1.25rem "Oxanium", sans-serif; color: #ffcc62; }
.nf-tally-stepper .btn { min-width: 40px; font-size: 1.1rem; }

.nf-result-name-line { font: 700 1.2rem "Oxanium", sans-serif; }

.nf-roster-editor { margin-top: 12px; }
.nf-roster-count { width: min(260px, 100%); display: grid; gap: 6px; margin-bottom: 10px; }
.nf-name-row { display: flex; gap: 8px; }
.nf-name-row .form-input { flex: 1; }

.nf-score-strip { overflow-x: auto; }
.nf-score-strip > div { display: flex; gap: 10px; }
.nf-score-pill {
  display: flex; gap: 10px; align-items: baseline;
  padding: 8px 14px; border-radius: 999px; flex: none;
  border: 1px solid rgba(213, 156, 245, 0.24);
  background: rgba(30, 12, 42, 0.7);
}
.nf-score-pill strong { font-family: "Oxanium", sans-serif; }

/* Phone */
.nf-phone-body { min-height: 100vh; background: radial-gradient(circle at 50% 0%, #24102f 0, #0d0712 55%); }
.nf-phone-stage { display: grid; gap: 14px; }
.nf-phone-status { color: var(--muted); font-weight: 600; min-height: 1.3em; }
.nf-phone-prompt { display: grid; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid rgba(213, 156, 245, 0.22); background: rgba(30, 12, 42, 0.6); }
.nf-phone-prompt span { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.nf-phone-prompt strong { font: 700 1.2rem/1.35 "Oxanium", sans-serif; }
.nf-phone-prompt em { font: 700 1rem "Oxanium", sans-serif; color: #ffcc62; }

.nf-answer-box { display: grid; gap: 10px; }
.nf-answer-input { resize: vertical; min-height: 84px; font-size: 1rem; }

.nf-vote-box { display: grid; gap: 10px; }
.nf-vote-cards { display: grid; gap: 8px; }
.nf-vote-card {
  display: flex; gap: 10px; align-items: center; text-align: left;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(213, 156, 245, 0.24);
  background: rgba(30, 12, 42, 0.7);
  color: inherit; font: inherit; cursor: pointer;
}
.nf-vote-card.picked { border-color: rgba(213, 156, 245, 0.9); background: rgba(58, 25, 79, 0.85); }
.nf-vote-card.mine { opacity: 0.55; cursor: not-allowed; }
.nf-vote-card:disabled { cursor: not-allowed; }
.nf-vote-rank {
  min-width: 44px; flex: none; text-align: center;
  font: 700 0.82rem "Oxanium", sans-serif;
  color: #d59cf5;
}
.nf-vote-card.picked .nf-vote-rank { color: #ffcc62; }
.nf-vote-text { flex: 1; }

.nf-results-box { display: grid; gap: 8px; }
.nf-results-box .nf-result-row { padding: 10px 12px; }

/* Rules page */
.nf-rules-hero { padding: clamp(28px, 7vw, 84px); background: radial-gradient(circle at 80% 10%, rgba(213, 156, 245, 0.18), transparent 35%), linear-gradient(145deg, #24102f, #0d0712); }
.nf-rules-hero h1 { font-family: "Oxanium", sans-serif; display: flex; align-items: center; gap: 12px; }
.nf-rules-hero p { max-width: 720px; color: var(--muted); font-size: 1.1rem; }
.nf-rules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nf-rules-grid article { padding: 18px; border-radius: 14px; background: rgba(30, 12, 42, 0.82); border: 1px solid rgba(213, 156, 245, 0.18); }
.nf-rules-grid article > strong { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #d59cf5; color: #1c0929; font-family: "Oxanium"; }
.nf-rules-grid h3 { margin-bottom: 5px; }
.nf-rules-grid p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .nf-rules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .nf-rules-grid { grid-template-columns: 1fr; } }

/* Setup */
.nf-setup-grid { display: grid; gap: 14px; }
.nf-modal-filters { display: grid; grid-template-columns: 1fr minmax(180px, auto); gap: 8px; }
@media (max-width: 620px) { .nf-modal-filters { grid-template-columns: 1fr; } }
.nf-modal-category-head {
  margin-top: 6px;
  font: 700 0.78rem "Oxanium", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d59cf5;
}
.nf-modal-category-head:first-child { margin-top: 0; }
.nf-prompt-item {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(155, 176, 197, 0.18);
  background: rgba(12, 25, 45, 0.5);
}
.nf-prompt-item label { flex: 1; cursor: pointer; }
.nf-adult-note {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 204, 98, 0.4);
  background: rgba(59, 38, 10, 0.35);
}
.nf-adult-note label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.nf-timing-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
