.faith-sample {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(9px, 4vw, 35px);
  min-height: 108px;
  min-width: 0;
  margin-block-start: 11px;
  padding: 11px clamp(8px, 2.4vw, 21px);
  border: 1px solid #ddd9f2;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 82% 4%, #fff2cc, transparent 53%),
    linear-gradient(145deg, #f6f0ff, #edeafa 57%, #e9f5f2);
}

.question-voice-actions {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
}

.faith-scene {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 1vw, 9px);
  min-width: 0;
  padding: .13em .24em .18em;
  border: 1px solid #fff9;
  border-radius: .32em;
  background: #fffffff0;
  box-shadow: 0 3px 0 #cabde64f;
  font: 400 clamp(24px, 5vw, 54px)/1.16 "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  white-space: nowrap;
  user-select: none;
}

.faith-scene > span { flex: none; }

.faith-scene .faith-staff {
  display: inline-block;
  width: .16em;
  height: .90em;
  margin: 0 .10em;
  border: 1px solid #8f5d3e;
  border-radius: 1em;
  background: linear-gradient(90deg, #d7a474, #9c633f 68%, #845136);
  transform: rotate(20deg);
}

.faith-story-button, .faith-name-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-weight: 810;
  line-height: 1.3;
}

.faith-story-button {
  flex: 0 1 auto;
  gap: 9px;
  min-height: 53px;
  padding: 7px 13px;
  border: 1px solid #5c46b8;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(140deg, #8267dc, #6549bb 77%);
  box-shadow: 0 4px 0 #543aab, 0 7px 14px #6e52b838;
  font-size: clamp(.84rem, 2.25vw, 1.03rem);
}

.faith-story-button::before {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  padding-inline-end: 1px;
  border-radius: 11px;
  color: #6846c1;
  background: #fff6ff;
  content: '▶';
  font: 900 15px/1 system-ui, sans-serif;
}

.faith-story-button:not(:disabled):hover { background: linear-gradient(132deg, #7659d2, #5437ae); }
.faith-story-button[aria-pressed='true'] {
  border-color: #25796c;
  background: linear-gradient(140deg, #3b957f, #267363 83%);
  box-shadow: 0 4px 0 #226859, 0 7px 14px #357e6938;
}
.faith-story-button[aria-pressed='true']::before { color: #246b59; content: '■'; }
.faith-story-button[aria-pressed='true']:not(:disabled):hover { background: #246f60; }

.faith-transcript {
  margin-block-start: 10px;
  padding-inline: 12px;
  border: 1px solid #e6dff4;
  border-radius: 12px;
  color: #41395b;
  background: #faf7ff;
  font-size: .89rem;
}

.faith-transcript summary {
  width: max-content;
  max-width: 100%;
  padding-block: 8px;
  border-radius: 6px;
  font-weight: 790;
  cursor: pointer;
}

.faith-transcript summary:focus-visible { outline: 2px solid #7753c3; outline-offset: 1px; }
.faith-transcript[open] { padding-block-end: 10px; }
.faith-transcript p { font-size: .9rem; line-height: 1.85; }
.faith-source { display: block; margin-block-start: 5px; color: #534865; font-size: .82rem; }
.faith-source a, a.faith-source { color: #54409a; text-underline-offset: 3px; }

.choices--audio {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.faith-choice {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-width: 0;
}

.faith-choice .choice {
  width: 100%;
  min-height: clamp(69px, 13vh, 115px);
  padding: 10px 6px;
}

.faith-choice:nth-child(1) .choice { --tile: #fff2d8; --tile-border: #eed7a4; --tile-shadow: #e6cea1; --halo: #ffe6ac; }
.faith-choice:nth-child(2) .choice { --tile: #eaf8ef; --tile-border: #c8e7d4; --tile-shadow: #badfca; --halo: #d4eddf; }
.faith-choice:nth-child(3) .choice { --tile: #f3eefe; --tile-border: #ddcef5; --tile-shadow: #d5c6ed; --halo: #e6d8fa; }
.faith-choice:nth-child(4) .choice { --tile: #fff0f3; --tile-border: #f1cfdb; --tile-shadow: #eac3d2; --halo: #ffdfeb; }

.faith-name {
  display: block;
  max-width: 100%;
  color: #333054;
  font-size: clamp(.94rem, 2.4vw, 1.43rem);
  font-weight: 880;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.faith-name-button {
  gap: 5px;
  min-height: 44px;
  padding: 5px 7px;
  border: 1px solid #decff4;
  border-radius: 12px;
  color: #574482;
  background: #f7f1fe;
  box-shadow: 0 2px 0 #eaddf7;
  font-size: .81rem;
}

.faith-name-button::before {
  flex: none;
  content: '🔊';
  font: 400 19px/1 "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

.faith-name-button:not(:disabled):hover { border-color: #bca6e4; background: #eee3fc; }
.faith-name-button[aria-pressed='true'] { border-color: #b59bdf; color: #3e266b; background: #e8dafa; }
.faith-name-button[aria-pressed='true']::before { content: '■'; font: 900 14px/1 system-ui, sans-serif; }
.faith-story-button:disabled, .faith-name-button:disabled { opacity: .65; }

.faith-speech-status {
  position: absolute;
  inset-block-start: 1px;
  inset-inline-start: 1px;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 570px) {
  .choices--audio { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }
  .faith-choice .choice { min-height: 65px; }
}

@media (max-width: 470px) {
  .faith-sample { min-height: 81px; border-radius: 16px; }
  .choice-visual .faith-scene {
    max-width: 100%;
    padding-inline: .12em;
    font-size: clamp(18px, 5.5vw, 24px);
    text-align: center;
    white-space: normal;
  }
  .faith-story-button { min-height: 44px; gap: 5px; padding: 6px 8px; border-radius: 12px; }
  .faith-story-button::before { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
  .faith-transcript { margin-block-start: 8px; }
  .faith-choice .choice { min-height: 58px; }
  .faith-name-button { font-size: .76rem; }
}

.question-voice-button {
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  margin-block-start: 9px;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 12px;
  font-size: .85rem;
}

.question-voice-button::before {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 13px;
}

@media (max-width: 355px) {
  body:not(.challenge-page):has(.question-voice-button) .masthead {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  body:not(.challenge-page):has(.question-voice-button) .brand {
    max-width: 100%;
    font-size: .97rem;
  }

  body:not(.challenge-page):has(.question-voice-button) .brand-mark { width: 32px; }
}
