.answer-yes {
  background: #ff5fae;
}

.answer-yes:hover {
  background: #e84c9b;
}

.answer-no {
  background: #ff6fcb;
}

.answer-no:hover {
  background: #e15bb2;
}

.answer-maybe {
  background: #ff8ed8;
}

.answer-maybe:hover {
  background: #e576c0;
}

.progress {
  height: 4px;
  width: 100%;
  background: rgba(43, 10, 47, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.35s ease;
}

.progress-meta {
  text-align: right;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -6px;
}

.questions-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.questions-back-icon {
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}

.questions-back:hover {
  color: var(--ink);
  box-shadow: 0 8px 16px rgba(58, 11, 59, 0.12);
  transform: translateY(-1px);
}

.questions-back:active {
  transform: scale(0.98);
}

.questions-back-spacer {
  width: 32px;
  height: 32px;
  display: inline-block;
}

.question-card {
  position: relative;
}

.question-head {
  padding-right: 52px;
}

.question-info-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.question-info-button:hover {
  background: rgba(255, 255, 255, 0.95);
}

.question-info-button:focus-visible {
  outline: 3px solid rgba(255, 87, 182, 0.35);
  outline-offset: 2px;
}

.question-info-button svg {
  display: block;
}

.answers-stack {
  margin-top: 24px;
}

.answers-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.answer-chip {
  border: 1px solid rgba(58, 11, 59, 0.16);
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  max-width: 100%;
  width: fit-content;
  white-space: normal;
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 14px rgba(58, 11, 59, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}

.sanctuary-chip {
  appearance: none;
  cursor: pointer;
  text-align: left;
  padding-right: 36px;
  position: relative;
}

.sanctuary-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.sanctuary-chevron-icon {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.toc-question {
  position: relative;
  padding-right: 36px;
  text-align: left;
}

.toc-accordion .sanctuary-chevron-icon {
  transition: transform 0.2s ease;
}

.toc-accordion .faq-item.is-open .sanctuary-chevron-icon {
  transform: rotate(135deg);
}

.sanctuary-chip:focus-visible {
  outline: 2px solid rgba(255, 77, 157, 0.6);
  outline-offset: 2px;
}

.chip-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chip-text {
  font-size: 0.98rem;
}

.chip-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.answer-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #ffd0ea 35%, #ff7ab6 90%);
  box-shadow: 0 0 6px rgba(255, 122, 182, 0.45);
  flex: none;
}

.answer-chip:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 18px rgba(58, 11, 59, 0.14);
  border-color: rgba(58, 11, 59, 0.22);
  transform: translateY(-2px);
}

.answer-chip:active {
  transform: scale(0.98);
  box-shadow: 0 8px 14px rgba(58, 11, 59, 0.12);
}

.results-yes-yes .answer-chip {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(58, 11, 59, 0.28);
  box-shadow: 0 10px 20px rgba(58, 11, 59, 0.16);
}

.results-yes-maybe .answer-chip {
  background: rgba(255, 255, 255, 0.62);
  border-style: dashed;
  border-color: rgba(58, 11, 59, 0.16);
  box-shadow: 0 3px 8px rgba(58, 11, 59, 0.05);
}

.results-section + .results-section {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.results-empty {
  border: 1px dashed rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.45);
  padding: 18px 20px;
  border-radius: 20px;
}

.sanctuary-pair-block {
  margin-bottom: 18px;
}

.sanctuary-pair-label {
  font-weight: 600;
  color: var(--ink);
}

.sanctuary-pair-sub {
  color: var(--muted);
}

.sanctuary-note {
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.sanctuary-note-action {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.sanctuary-note-action:hover {
  opacity: 0.9;
}

.sanctuary-confirm .site-modal-panel {
  max-width: 420px;
  width: calc(100% - 32px);
  margin: 16vh auto;
  height: auto;
}

.sanctuary-confirm .site-modal-body {
  overflow: visible;
}

.sanctuary-confirm-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sanctuary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.sanctuary-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sanctuary-action {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.sanctuary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(58, 11, 59, 0.12);
}

.sanctuary-accordion .faq-answer p + p {
  margin-top: 8px;
}

.sanctuary-step-title {
  font-weight: 700;
}

.sanctuary-step-subtitle {
  margin-top: 6px;
}

.sanctuary-prompt-line {
  position: relative;
  padding-left: 18px;
  display: block;
}

.sanctuary-prompt-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sanctuary-prompt-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #ffd0ea 35%, #ff7ab6 90%);
  box-shadow: 0 0 6px rgba(255, 122, 182, 0.45);
}

.sanctuary-footer {
  margin-top: 24px;
  padding: 16px 0 calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(58, 11, 59, 0.12);
  background: linear-gradient(
    180deg,
    rgba(255, 248, 251, 0) 0%,
    rgba(255, 248, 251, 0.9) 35%,
    rgba(255, 248, 251, 0.98) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sanctuary-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sanctuary-remove-button {
  border: 1px solid rgba(255, 77, 157, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.7);
  color: #a2396c;
  font-size: 0.85rem;
  font-weight: 200;
}

.sanctuary-remove-button:hover {
  background: rgba(255, 77, 157, 0.12);
}

.rules-card {
  gap: 14px;
}

.rules-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(58, 11, 59, 0.14);
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(58, 11, 59, 0.08);
}

.rules-table th,
.rules-table td {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
}

.rules-table th {
  font-weight: 700;
  border-bottom: 1px solid rgba(58, 11, 59, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.rules-table tr + tr td {
  border-top: 1px solid rgba(58, 11, 59, 0.08);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.65);
  color: #6a3a6d;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.status-pill.is-waiting .status-dot {
  background: #f08bb8;
}

.status-pill.is-online .status-dot {
  background: #ff5fae;
}

.status-pill.is-ready .status-dot {
  background: #ff3b9b;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.invite-code-badge {
  padding: 12px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.6);
}

.qr-block {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.qr-image {
  width: 180px;
  height: 180px;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(58, 11, 59, 0.12);
}

.copy-block {
  gap: 10px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-answer {
  padding: 0 16px 16px;
  color: var(--muted);
  display: none;
}

.faq-item.is-open .faq-answer {
  display: block;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .answer-chip {
    transition: none;
  }

  .answer-chip:hover {
    transform: none;
  }
}

@media (min-width: 900px) {
  .answers-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 14px;
  }

  .answer-chip {
    width: 100%;
  }
}
