/* Saga v3 readability, aftermath and continuity pass — distinct consequences and browser-independent crossfades. */

/* The numbered question indicator below the image is the single source of progress. */
.journey-progress {
  display: none;
}

.wordmark {
  grid-column: 1;
}

.chrome-actions {
  grid-column: 3;
}

.scene-copy {
  width: min(calc(100% - 48px), 720px);
}

.question-shell {
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 16px));
  padding-top: 22px;
}

.question-meta {
  margin-bottom: 12px;
  gap: 11px;
  color: rgba(243, 240, 231, 0.78);
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.12em;
}

.question-meta b {
  font-size: 0.84rem;
  line-height: 1.2;
  letter-spacing: 0.15em;
}

.question-shell h1 {
  max-width: 710px;
  font-size: clamp(1.9rem, 2.5vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.023em;
}

.option-stack {
  margin-top: 22px;
  gap: 8px;
}

.story-option {
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  min-height: 64px;
  padding: 11px 13px 11px 15px;
  gap: 12px;
  border-color: rgba(243, 240, 231, 0.34);
  background: rgba(9, 12, 13, 0.76);
}

.option-index {
  font-size: 0.76rem;
  font-weight: 650;
}

.option-copy {
  font-size: 1.08rem;
  font-weight: 570;
  line-height: 1.28;
  letter-spacing: 0.005em;
}

.option-arrow {
  width: 18px;
  height: 18px;
  opacity: 0.82;
}

.eyebrow {
  margin-bottom: 13px;
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
}

.primary-action.compact,
.text-action {
  font-size: 0.78rem;
}

.experience-note,
.result-note {
  font-size: 0.78rem;
  line-height: 1.45;
}

.memory-echo span,
.recap-copy li span,
.evidence span,
.result-card blockquote span {
  font-size: 0.66rem;
}

@media (max-width: 700px) {
  .scene-copy {
    width: calc(100% - 32px);
  }

  .question-shell {
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 8px));
    padding-top: 14px;
  }

  .question-meta {
    margin-bottom: 9px;
    font-size: 0.68rem;
  }

  .question-meta b {
    font-size: 0.78rem;
  }

  .question-shell h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.08;
  }

  .option-stack {
    margin-top: 16px;
    gap: 7px;
  }

  .story-option {
    grid-template-columns: 28px minmax(0, 1fr) 22px;
    min-height: 58px;
    padding: 9px 11px;
    gap: 10px;
  }

  .option-index {
    font-size: 0.72rem;
  }

  .option-copy {
    font-size: 1.02rem;
    line-height: 1.24;
  }
}

@media (max-height: 720px) {
  .question-shell {
    bottom: max(6px, env(safe-area-inset-bottom));
    max-height: calc(100svh - 58px);
    padding-top: 10px;
  }

  .question-meta {
    margin-bottom: 7px;
  }

  .question-shell h1 {
    font-size: clamp(1.48rem, 6vw, 1.72rem);
    line-height: 1.06;
  }

  .option-stack {
    margin-top: 10px;
    gap: 5px;
  }

  .story-option {
    min-height: 50px;
    padding-block: 7px;
  }

  .option-copy {
    font-size: 1rem;
    line-height: 1.2;
  }
}

/* The question counter is also a real progress meter: gold is completed/current progress. */
.question-meta i {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(243, 240, 231, 0.25);
}

.question-meta i span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #c88942, #e7ad68);
  box-shadow: 0 0 12px rgba(210, 154, 85, 0.42);
  transform-origin: left center;
  transition: transform 0.72s var(--settle);
}

/* Consequences use their own aftermath stills when available. */

.scene-resolution .scene-portrait {
  width: min(62vw, 780px);
  min-width: 580px;
}

.scene-resolution .scene-backdrop {
  opacity: 0.64;
  filter: blur(34px) saturate(0.68) brightness(0.66);
  transform: scale(1.1);
}

.scene-resolution .scene-image {
  animation: resolution-gentle-drift 12s var(--settle) both;
  filter: saturate(0.91) contrast(1.035);
}

.scene-resolution .scene-shade {
  background:
    linear-gradient(
      90deg,
      rgba(6, 8, 9, 0.66),
      transparent 28%,
      transparent 72%,
      rgba(6, 8, 9, 0.66)
    ),
    linear-gradient(
      180deg,
      rgba(6, 8, 9, 0.48) 0%,
      transparent 23%,
      rgba(6, 8, 9, 0.18) 47%,
      rgba(6, 8, 9, 0.96) 100%
    );
}

@media (max-width: 700px) {
  .scene-resolution .scene-portrait {
    inset: 0;
    width: 100%;
    min-width: 0;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .question-meta i span {
    transition: none;
  }

  .scene-resolution,
  .scene-resolution .scene-image {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}

/* Consequence UX: keep phase changes opaque so the black stage never flashes through. */
.scene:not(.scene-entry),
.scene-resolution {
  animation: saga-phase-settle 460ms var(--settle) both;
}

.scene-resolution .scene-image {
  animation: resolution-gentle-drift 12s var(--settle) both;
}

@keyframes saga-phase-settle {
  from {
    opacity: 1;
    filter: brightness(0.5);
  }

  to {
    opacity: 1;
    filter: none;
  }
}

@keyframes resolution-gentle-drift {
  from {
    transform: scale(1.015);
  }

  to {
    transform: scale(1.065) translate3d(0, -0.6%, 0);
  }
}

/* Lift the complete consequence moment into the lower-middle viewing area. */
.resolution-copy {
  bottom: clamp(96px, 14svh, 190px);
}

.resolution-copy .text-action {
  margin-top: 17px;
}

@media (max-width: 700px) {
  .resolution-copy {
    bottom: max(calc(env(safe-area-inset-bottom) + 44px), 9svh);
  }
}

@media (max-height: 720px) {
  .resolution-copy {
    bottom: max(calc(env(safe-area-inset-bottom) + 34px), 7svh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene:not(.scene-entry),
  .scene-resolution,
  .scene-resolution .scene-image {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}

/* Closing memory recap: restore comfortable desktop reading without crowding mobile. */
@media (min-width: 701px) {
  .recap-copy {
    width: min(calc(100% - 48px), 780px);
    bottom: clamp(38px, 5.5svh, 78px);
  }

  .recap-copy .eyebrow {
    margin-bottom: 15px;
    font-size: 0.8rem;
  }

  .recap-copy ol {
    gap: 12px;
  }

  .recap-copy li {
    padding: 12px 0 12px 18px;
    font-size: clamp(1.16rem, 1.35vw, 1.34rem);
    line-height: 1.24;
  }

  .recap-copy li span {
    margin-bottom: 5px;
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .recap-copy .text-action {
    margin-top: 22px;
    font-size: 0.78rem;
  }

  /* Result card: larger type and a little more width while preserving the verdict hierarchy. */
  .result-scroll {
    top: 62px;
    padding: clamp(70px, 8svh, 112px) 24px
      max(42px, calc(env(safe-area-inset-bottom) + 24px));
  }

  .result-card {
    width: min(100%, 760px);
    padding: 36px 38px 34px;
  }

  .result-card > .eyebrow,
  .evidence span,
  .result-card blockquote span {
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .result-card h1 {
    margin-bottom: 18px;
  }

  .verdict-core {
    max-width: 660px;
    font-size: clamp(1.62rem, 2.1vw, 2rem);
    line-height: 1.17;
  }

  .result-rule {
    margin: 27px 0 24px;
  }

  .evidence {
    margin-bottom: 19px;
    font-size: 1.18rem;
    line-height: 1.38;
  }

  .recognition,
  .byname,
  .result-card blockquote {
    font-size: 1.16rem;
    line-height: 1.42;
  }

  .recognition,
  .byname {
    margin-bottom: 17px;
  }

  .result-card blockquote {
    margin-top: 24px;
    padding: 17px 0 17px 20px;
  }

  .result-actions {
    margin-top: 29px;
  }

  .result-note {
    margin-top: 16px;
    font-size: 0.8rem;
    line-height: 1.45;
  }
}

/* Smooth the complete choice → consequence → next chapter sequence where the browser supports it. */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 680ms;
  animation-timing-function: var(--settle);
}

::view-transition-old(root) {
  animation-name: saga-phase-out;
}

::view-transition-new(root) {
  animation-name: saga-phase-in;
}

@keyframes saga-phase-out {
  from {
    opacity: 1;
    filter: brightness(1);
  }
  to {
    opacity: 0;
    filter: brightness(0.62);
  }
}

@keyframes saga-phase-in {
  from {
    opacity: 0;
    filter: brightness(0.62);
  }
  to {
    opacity: 1;
    filter: brightness(1);
  }
}

/* Keep the closing pages readable on mobile as well as desktop. */
@media (max-width: 700px) {
  .recap-copy {
    max-height: calc(100svh - 78px);
    overflow-y: auto;
    padding-top: 12px;
    scrollbar-width: none;
  }

  .recap-copy::-webkit-scrollbar {
    display: none;
  }

  .recap-copy li {
    font-size: clamp(1.08rem, 4.7vw, 1.24rem);
    line-height: 1.2;
  }

  .recap-copy li span {
    margin-bottom: 4px;
    font-size: 0.64rem;
    line-height: 1.15;
  }

  .result-scroll {
    top: 56px;
    padding: 54px 14px max(32px, calc(env(safe-area-inset-bottom) + 20px));
  }

  .result-card {
    padding: 28px 22px 26px;
  }

  .evidence,
  .recognition,
  .byname,
  .result-card blockquote {
    font-size: 1.08rem;
    line-height: 1.4;
  }

  .result-card > .eyebrow,
  .evidence span,
  .result-card blockquote span {
    font-size: 0.66rem;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.01ms;
  }
}

/* Browser-independent cinematic crossfade: retain the old still until the new still is visibly present. */
.resolution-crossfade {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--night);
}

.scene-resolution {
  animation: none;
}

.resolution-before,
.resolution-after {
  position: absolute;
  inset: 0;
  will-change: opacity;
  transform: translateZ(0);
}

.resolution-before {
  z-index: 1;
  animation: saga-still-out 920ms cubic-bezier(0.45, 0, 0.55, 1) both;
}

.resolution-after {
  z-index: 2;
  opacity: 0;
  animation: saga-still-in 920ms cubic-bezier(0.45, 0, 0.55, 1) both;
}

.scene-handoff .resolution-before,
.scene-handoff .resolution-after {
  animation-duration: 940ms;
}

@keyframes saga-still-out {
  0%,
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes saga-still-in {
  0%,
  8% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resolution-before,
  .resolution-after,
  .scene-handoff .resolution-before,
  .scene-handoff .resolution-after {
    animation-duration: 0.01ms;
  }
}

/* User-test pass c6: plain reading scale and one continuous motion language. */
.cinema-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: #07090a;
  opacity: 0;
  transition: opacity 380ms cubic-bezier(0.45, 0, 0.55, 1);
}

.cinema-stage.is-changing::after {
  opacity: 0.46;
}

.scene:not(.scene-entry) {
  animation: saga-scene-settle 760ms var(--settle) both;
}

.scene-copy {
  will-change: opacity, transform;
}

.scene:not(.scene-entry) > .scene-copy {
  animation: saga-copy-reveal 880ms 230ms var(--settle) both;
}

.scene-question > .question-shell.scene-copy {
  animation-duration: 920ms;
  animation-delay: 260ms;
}

.scene-resolution > .resolution-copy.scene-copy {
  animation-delay: 300ms;
}

@keyframes saga-scene-settle {
  from {
    opacity: 0.72;
  }

  to {
    opacity: 1;
  }
}

@keyframes saga-copy-reveal {
  from {
    opacity: 0;
    transform: translate3d(-50%, 16px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }
}

.transition-copy.scene-copy,
.interlude-copy.scene-copy {
  transform: translate(-50%, -45%);
}

@keyframes saga-centered-copy-reveal {
  from {
    opacity: 0;
    transform: translate3d(-50%, calc(-45% + 14px), 0);
  }

  to {
    opacity: 1;
    transform: translate3d(-50%, -45%, 0);
  }
}

.scene-transition > .transition-copy.scene-copy,
.scene-postfire > .transition-copy.scene-copy,
.scene-sealedPath > .interlude-copy.scene-copy,
.scene-death > .interlude-copy.scene-copy,
.scene-hall > .interlude-copy.scene-copy {
  animation-name: saga-centered-copy-reveal;
}

.method-panel > p:not(.eyebrow) {
  color: rgba(243, 240, 231, 0.88);
}

@media (min-width: 701px) and (min-height: 760px) {
  .scene-copy {
    width: min(calc(100% - 64px), 820px);
  }

  .question-shell {
    width: min(calc(100% - 64px), 820px);
  }

  .question-shell h1 {
    max-width: 800px;
    font-size: clamp(2.08rem, 2.62vw, 2.92rem);
    line-height: 1.1;
  }

  .option-stack {
    margin-top: 24px;
    gap: 10px;
  }

  .story-option {
    grid-template-columns: 36px minmax(0, 1fr) 26px;
    min-height: 70px;
    padding: 13px 16px;
    border-color: rgba(243, 240, 231, 0.42);
    background: rgba(7, 10, 11, 0.84);
  }

  .option-index {
    font-size: 0.82rem;
  }

  .option-copy {
    font-size: clamp(1.14rem, 1.18vw, 1.28rem);
    font-weight: 570;
    line-height: 1.34;
  }

  .memory-echoes {
    margin-bottom: 18px;
    gap: 9px;
  }

  .memory-echo {
    max-width: 800px;
    padding: 13px 20px;
    background: rgba(7, 10, 11, 0.68);
    font-size: clamp(1.28rem, 1.48vw, 1.52rem);
    line-height: 1.32;
  }

  .memory-echo span {
    margin-bottom: 7px;
    font-size: 0.75rem;
    line-height: 1.2;
    letter-spacing: 0.15em;
  }

  .resolution-copy {
    width: min(calc(100% - 64px), 880px);
  }

  .resolution-common {
    max-width: 780px;
    font-size: clamp(1.3rem, 1.55vw, 1.58rem);
    line-height: 1.3;
  }

  .resolution-branch {
    max-width: 880px;
    font-size: clamp(2.42rem, 3.55vw, 3.7rem);
    line-height: 1.08;
    text-wrap: pretty;
  }

  .method-scrim {
    align-items: center;
  }

  .method-panel {
    width: min(calc(100% - 64px), 720px);
    padding: 42px 44px 40px;
  }

  .method-panel h2 {
    max-width: 600px;
    margin-bottom: 24px;
    font-size: clamp(2.8rem, 4vw, 4rem);
    line-height: 1;
  }

  .method-panel > p:not(.eyebrow) {
    max-width: 610px;
    font-size: 1.14rem;
    line-height: 1.62;
  }

  .method-panel .method-small {
    font-size: 1rem;
    line-height: 1.58;
  }

  .method-rule {
    margin: 27px 0;
  }
}

@media (min-width: 701px) and (max-height: 759px) {
  .scene-copy,
  .question-shell {
    width: min(calc(100% - 56px), 800px);
  }

  .question-shell {
    bottom: 12px;
    max-height: calc(100svh - 66px);
    padding-top: 10px;
  }

  .question-shell h1 {
    max-width: 790px;
    font-size: clamp(1.72rem, 2.25vw, 2.2rem);
    line-height: 1.08;
  }

  .question-meta {
    margin-bottom: 9px;
    font-size: 0.74rem;
  }

  .question-meta b {
    font-size: 0.84rem;
  }

  .option-stack {
    margin-top: 14px;
    gap: 6px;
  }

  .story-option {
    grid-template-columns: 32px minmax(0, 1fr) 24px;
    min-height: 54px;
    padding: 8px 13px;
    border-color: rgba(243, 240, 231, 0.4);
    background: rgba(7, 10, 11, 0.84);
  }

  .option-index {
    font-size: 0.76rem;
  }

  .option-copy {
    font-size: 1.06rem;
    font-weight: 570;
    line-height: 1.24;
  }

  .memory-echoes {
    margin-bottom: 10px;
  }

  .memory-echo {
    padding: 9px 16px;
    background: rgba(7, 10, 11, 0.7);
    font-size: 1.15rem;
    line-height: 1.24;
  }

  .memory-echo span {
    margin-bottom: 5px;
    font-size: 0.7rem;
  }

  .resolution-copy {
    width: min(calc(100% - 64px), 920px);
    bottom: clamp(58px, 9svh, 92px);
  }

  .resolution-common {
    max-width: 820px;
    font-size: 1.28rem;
    line-height: 1.26;
  }

  .resolution-branch {
    max-width: 920px;
    font-size: clamp(2.24rem, 3.7vw, 3.35rem);
    line-height: 1.06;
  }

  .method-scrim {
    align-items: center;
  }

  .method-panel {
    width: min(calc(100% - 56px), 700px);
    padding: 34px 40px 32px;
  }

  .method-panel h2 {
    max-width: 580px;
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 3.7vw, 3.5rem);
  }

  .method-panel > p:not(.eyebrow) {
    max-width: 600px;
    font-size: 1.06rem;
    line-height: 1.52;
  }

  .method-panel .method-small {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .method-rule {
    margin: 20px 0;
  }
}

@media (max-width: 700px) {
  .memory-echo {
    padding: 11px 14px;
    background: rgba(7, 10, 11, 0.66);
    font-size: clamp(1.05rem, 4.6vw, 1.22rem);
    line-height: 1.28;
  }

  .memory-echo span {
    font-size: 0.68rem;
    line-height: 1.16;
  }

  .method-panel > p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.55;
  }

  .method-panel .method-small {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-stage::after,
  .scene:not(.scene-entry),
  .scene:not(.scene-entry) > .scene-copy {
    animation-duration: 0.01ms;
    animation-delay: 0ms;
    transition-duration: 0.01ms;
  }
}

/* C7: act-card legibility and a continuous handoff from the cinematic crossfade. */
.cinema-stage.is-handoff-target .scene:not(.scene-entry) {
  animation: none;
  opacity: 1;
}

.scene-transition .scene-shade,
.scene-postfire .scene-shade,
.scene-sealedPath .scene-shade,
.scene-death .scene-shade,
.scene-hall .scene-shade {
  background:
    radial-gradient(
      ellipse 48% 35% at 50% 51%,
      rgba(4, 6, 7, 0.52),
      transparent 100%
    ),
    linear-gradient(
      90deg,
      rgba(6, 8, 9, 0.68),
      transparent 31%,
      transparent 69%,
      rgba(6, 8, 9, 0.68)
    ),
    linear-gradient(
      180deg,
      rgba(6, 8, 9, 0.65),
      transparent 24%,
      rgba(6, 8, 9, 0.18) 48%,
      rgba(6, 8, 9, 0.94)
    );
}

.transition-copy.scene-copy,
.interlude-copy.scene-copy {
  width: min(calc(100% - 64px), 880px);
}

.transition-copy .eyebrow,
.interlude-copy .eyebrow {
  color: #e1a95f;
  font-size: clamp(0.86rem, 1.02vw, 0.96rem);
  font-weight: 690;
  letter-spacing: 0.18em;
  line-height: 1.25;
  margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.96);
}

.transition-line,
.interlude-copy > p:not(.eyebrow) {
  color: #f7f3e9;
  max-width: 780px;
  font-size: clamp(2.65rem, 4.9vw, 4.25rem);
  line-height: 1.06;
  text-shadow:
    0 3px 34px rgba(0, 0, 0, 0.98),
    0 1px 3px rgba(0, 0, 0, 0.95);
  text-wrap: pretty;
}

.transition-copy .text-action,
.interlude-copy .text-action {
  border-bottom-color: rgba(231, 173, 104, 0.92);
  color: #f7f3e9;
  font-size: 0.94rem;
  font-weight: 720;
  letter-spacing: 0.13em;
  margin-top: 30px;
  min-height: 50px;
  padding: 12px 2px 9px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95);
}

.transition-copy .text-action:focus-visible,
.interlude-copy .text-action:focus-visible {
  outline: 2px solid #e7ad68;
  outline-offset: 6px;
}

/* Keep progress as orientation before the question, with enough contrast to read at a glance. */
.question-meta {
  color: rgba(247, 243, 233, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.92);
}

.question-meta i {
  background: rgba(247, 243, 233, 0.34);
}

@media (min-width: 701px) and (max-height: 759px) {
  .transition-copy .eyebrow,
  .interlude-copy .eyebrow {
    font-size: 0.84rem;
    margin-bottom: 13px;
  }

  .transition-line,
  .interlude-copy > p:not(.eyebrow) {
    font-size: clamp(2.35rem, 4.25vw, 3.5rem);
    max-width: 720px;
  }

  .transition-copy .text-action,
  .interlude-copy .text-action {
    font-size: 0.86rem;
    margin-top: 20px;
    min-height: 46px;
  }
}

@media (max-width: 700px) {
  .transition-copy.scene-copy,
  .interlude-copy.scene-copy {
    width: calc(100% - 34px);
  }

  .transition-copy .eyebrow,
  .interlude-copy .eyebrow {
    font-size: 0.77rem;
    margin-bottom: 12px;
  }

  .transition-line,
  .interlude-copy > p:not(.eyebrow) {
    font-size: clamp(2.1rem, 10.5vw, 3.05rem);
    line-height: 1.04;
  }

  .transition-copy .text-action,
  .interlude-copy .text-action {
    font-size: 0.82rem;
    margin-top: 22px;
    min-height: 46px;
  }
}


/* Saga prologue: a non-scored role choice before question 1. */
.gender-copy {
  bottom: clamp(48px, 8svh, 104px);
  width: min(calc(100% - 48px), 760px);
  text-align: left;
}

.gender-copy .eyebrow {
  margin-bottom: 16px;
}

.gender-copy h1 {
  max-width: 730px;
  margin: 0;
  font-family: "Newsreader Variable", Georgia, serif;
  font-size: clamp(2.65rem, 5.2vw, 4.35rem);
  font-weight: 355;
  line-height: 1.01;
  letter-spacing: -0.042em;
  text-wrap: balance;
  text-shadow: 0 3px 32px rgba(0, 0, 0, 0.9);
}

.gender-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  gap: 10px;
}

.gender-option {
  display: flex;
  min-height: 72px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(243, 240, 231, 0.42);
  border-radius: 2px;
  color: var(--bone);
  background: rgba(7, 10, 11, 0.84);
  -webkit-backdrop-filter: blur(13px) saturate(0.8);
  backdrop-filter: blur(13px) saturate(0.8);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s var(--settle);
}

.gender-option span {
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  font-weight: 570;
  line-height: 1.24;
}

.gender-option svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  opacity: 0.82;
  stroke-width: 1.55;
}

html:not(.suppress-story-option-hover) .gender-option:hover {
  border-color: rgba(210, 154, 85, 0.86);
  background: rgba(17, 23, 25, 0.84);
  transform: translateY(-2px);
}

.gender-option:active {
  transform: scale(0.99);
}

@media (max-width: 700px) {
  .gender-copy {
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 14px));
    width: calc(100% - 32px);
  }

  .gender-copy .eyebrow {
    margin-bottom: 12px;
  }

  .gender-copy h1 {
    max-width: 620px;
    font-size: clamp(2.05rem, 9.2vw, 3rem);
    line-height: 1.02;
  }

  .gender-actions {
    grid-template-columns: 1fr;
    margin-top: 22px;
    gap: 8px;
  }

  .gender-option {
    min-height: 62px;
    padding: 11px 14px;
  }

  .gender-option span {
    font-size: 1.02rem;
  }
}

@media (max-height: 720px) {
  .gender-copy {
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .gender-copy .eyebrow {
    margin-bottom: 9px;
  }

  .gender-copy h1 {
    font-size: clamp(1.85rem, 7.2vw, 2.5rem);
  }

  .gender-actions {
    margin-top: 14px;
    gap: 6px;
  }

  .gender-option {
    min-height: 54px;
    padding-block: 8px;
  }
}
