.np-choice-flow {
  --np-choice-card-height: 168px;
  --np-choice-card-min: 210px;
  --np-choice-card-gap: 1rem;
  --np-choice-check-size: 1.45rem;
  --np-choice-check-space: 0rem;
  --np-choice-columns: 4;
  --np-choice-accent: #70d6c8;
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.2rem;
}

.np-choice-flow[data-flow-size="small"] {
  --np-choice-card-height: 142px;
  --np-choice-card-min: 180px;
}

.np-choice-flow[data-flow-size="large"] {
  --np-choice-card-height: 188px;
  --np-choice-card-min: 230px;
}

.np-choice-flow[data-flow-presentation="focus"] {
  gap: 0.85rem;
}

.np-choice-flow[data-flow-layout="quad"] {
  --np-choice-card-height: 260px;
  --np-choice-card-min: 260px;
  --np-choice-card-gap: 1.1rem;
  --np-choice-columns: 2;
}

.np-choice-flow__stage {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  animation: np-choice-flow-stage-in 150ms ease-out both;
}

.np-choice-flow__stage-head {
  display: grid;
  gap: 0.2rem;
  min-height: 3.2rem;
}

.np-choice-flow__stage-kicker {
  color: #70d6c8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.np-choice-flow__stage-title {
  color: #ffffff;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 900;
  line-height: 1.15;
}

.np-choice-flow__stage-copy {
  max-width: 68ch;
  margin: 0;
  color: #c9ddd9;
  font-size: 0.95rem;
  line-height: 1.4;
}

.np-choice-flow__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--np-choice-card-min)), 1fr));
  gap: var(--np-choice-card-gap);
  align-items: stretch;
  margin: 0;
  padding: 0;
  border: 0;
}

.np-choice-flow__choice {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.45rem;
  height: var(--np-choice-card-height);
  min-height: var(--np-choice-card-height);
  max-height: var(--np-choice-card-height);
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 1rem calc(1rem + var(--np-choice-check-space)) 1rem 1rem;
  border: 1px solid color-mix(in srgb, var(--np-choice-accent) 42%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 96% 12%, color-mix(in srgb, var(--np-choice-accent) 12%, transparent), transparent 5.5rem),
    rgba(13, 18, 17, 0.92);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transform: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease,
    filter 150ms ease,
    background 150ms ease;
}

.np-choice-flow__choice::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: color-mix(in srgb, var(--np-choice-accent) 78%, transparent);
  pointer-events: none;
}

.np-choice-flow__choice::after {
  content: none;
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: none;
  box-sizing: border-box;
  place-items: center;
  width: var(--np-choice-check-size);
  height: var(--np-choice-check-size);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.88), transparent 22%),
    radial-gradient(circle at center, #fff2a8 0 28%, #f4b942 30% 64%, #b66c12 66%);
  color: #ffffff;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, background 150ms ease;
}

.np-choice-flow__choice:hover,
.np-choice-flow__choice:focus-visible,
.np-choice-flow__choice.is-selected {
  border-color: color-mix(in srgb, var(--np-choice-accent) 78%, #ffffff 10%);
  background:
    radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--np-choice-accent) 58%, transparent), transparent 8rem),
    linear-gradient(180deg, color-mix(in srgb, var(--np-choice-accent) 42%, rgba(20, 34, 31, 0.96)), rgba(13, 18, 17, 0.98));
  box-shadow:
    0 20px 48px color-mix(in srgb, var(--np-choice-accent) 46%, transparent),
    inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  filter: saturate(1.12) brightness(1.04);
  outline: none;
  z-index: 1;
}

.np-choice-flow__choice.is-selected,
.np-choice-flow__choice.is-confirmed {
  filter: saturate(1.16) brightness(1.06);
}

.np-choice-flow__choice.is-completed {
  box-shadow: none;
}

.np-choice-flow__choice.is-selected::after,
.np-choice-flow__choice.is-confirmed::after {
  opacity: 1;
}

.np-choice-flow__stage.has-selection .np-choice-flow__choice:not(.is-selected):not(.is-confirmed):not(.is-completed):not(.is-live-locked) {
  filter: saturate(0.72) brightness(0.82);
  opacity: 0.5;
}

.np-choice-flow__stage.has-selection .np-choice-flow__choice:not(.is-selected):not(.is-confirmed):not(.is-completed):not(.is-live-locked):hover,
.np-choice-flow__stage.has-selection .np-choice-flow__choice:not(.is-selected):not(.is-confirmed):not(.is-completed):not(.is-live-locked):focus-visible {
  filter: saturate(1.12) brightness(1.04);
  opacity: 1;
}

.np-choice-flow__stage.has-selection .np-choice-flow__choice.has-friend-badge:not(.is-selected):not(.is-confirmed):not(.is-completed):not(.is-live-locked),
.np-choice-flow__stage.has-selection .np-choice-flow__choice.is-choice-ready-hint:not(.is-selected):not(.is-confirmed):not(.is-completed):not(.is-live-locked) {
  filter: saturate(1.08) brightness(1.03);
  opacity: 1;
}

.np-choice-flow__choice.is-disabled,
.np-choice-flow__choice:disabled {
  border-color: color-mix(in srgb, var(--np-choice-accent) 28%, transparent);
  background:
    radial-gradient(circle at 96% 12%, color-mix(in srgb, var(--np-choice-accent) 8%, transparent), transparent 5.5rem),
    rgba(13, 18, 17, 0.92);
  box-shadow: none;
  cursor: pointer;
  filter: saturate(0.72) brightness(0.82);
  opacity: 0.5;
  outline: none;
  z-index: 0;
}

.np-choice-flow__choice.is-disabled.is-live-locked {
  border-color: color-mix(in srgb, var(--np-choice-accent) 42%, transparent);
  background:
    radial-gradient(circle at 96% 12%, color-mix(in srgb, var(--np-choice-accent) 12%, transparent), transparent 5.5rem),
    rgba(13, 18, 17, 0.92);
  box-shadow: none;
  filter: none;
  opacity: 1;
  z-index: 0;
}

.np-choice-flow__choice.is-disabled:hover,
.np-choice-flow__choice.is-disabled:focus-visible {
  border-color: color-mix(in srgb, var(--np-choice-accent) 78%, #ffffff 10%);
  background:
    radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--np-choice-accent) 58%, transparent), transparent 8rem),
    linear-gradient(180deg, color-mix(in srgb, var(--np-choice-accent) 42%, rgba(20, 34, 31, 0.96)), rgba(13, 18, 17, 0.98));
  box-shadow:
    0 20px 48px color-mix(in srgb, var(--np-choice-accent) 46%, transparent),
    inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  filter: saturate(1.12) brightness(1.04);
  opacity: 1;
  outline: none;
  z-index: 1;
}

.np-choice-flow__choice.is-wrong-answer-hint {
  animation: np-choice-flow-wrong-answer-hint 1.2s ease-in-out both;
}

.np-choice-flow__choice.is-choice-ready-hint {
  animation: np-choice-flow-ready-hint 1.2s ease-in-out both;
}

.np-choice-flow__choice-kicker {
  color: #70d6c8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.np-choice-flow__choice-title {
  color: #ffffff;
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1.15;
}

.np-choice-flow__choice-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
  color: #c9ddd9;
  font-size: 0.95rem;
  line-height: 1.35;
}

.np-choice-flow__choice.has-friend-badge {
  padding-right: max(3.5rem, calc(1rem + var(--np-choice-check-space)));
}

.np-choice-flow__choice-friend-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  place-items: center;
  width: clamp(2rem, 20%, 3rem);
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--np-choice-badge-accent, var(--np-choice-accent)) 76%, #ffffff 12%);
  border-radius: 50%;
  background: rgba(7, 14, 15, 0.9);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.34),
    0 0 0 0.24rem color-mix(in srgb, var(--np-choice-badge-accent, var(--np-choice-accent)) 20%, transparent);
  pointer-events: none;
}

.np-choice-flow__choice-friend-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(1.04);
}

.np-choice-flow__choice-image {
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(1.05);
  opacity: 0.92;
  pointer-events: none;
}

.np-choice-flow__summary {
  display: grid;
  gap: 0.4rem;
  min-height: 4.4rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(112, 214, 200, 0.28);
  border-radius: 8px;
  background: rgba(5, 10, 10, 0.44);
  box-shadow: inset 4px 0 0 rgba(112, 214, 200, 0.62);
}

.np-choice-flow__summary strong {
  color: #ffffff;
  font-size: 0.95rem;
}

.np-choice-flow__summary p {
  margin: 0;
  color: #c9ddd9;
  font-size: 0.92rem;
  line-height: 1.4;
}

.np-choice-flow__path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-choice-flow__path li {
  display: block;
}

.np-choice-flow__path button {
  border: 1px solid rgba(244, 185, 66, 0.34);
  border-radius: 999px;
  background: rgba(244, 185, 66, 0.12);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.38rem 0.58rem;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.np-choice-flow__path button:hover,
.np-choice-flow__path button:focus-visible {
  border-color: rgba(244, 185, 66, 0.72);
  background: rgba(244, 185, 66, 0.2);
  box-shadow: 0 0 18px rgba(244, 185, 66, 0.18);
  outline: none;
}

.np-choice-flow[data-flow-presentation="focus"] .np-choice-flow__summary {
  min-height: 3.35rem;
  padding-block: 0.68rem;
}

.np-choice-flow[data-flow-presentation="focus"] .np-choice-flow__stage {
  min-height: calc(var(--np-choice-card-height) + 4rem);
}

.np-choice-flow[data-flow-presentation="focus"] .np-choice-flow__stage--selected {
  min-height: auto;
}

.np-choice-flow__stage--selected .np-choice-flow__stage-head {
  min-height: auto;
}

.np-choice-flow__stage--selected .np-choice-flow__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.np-choice-flow[data-flow-layout="quad"] .np-choice-flow__stage--selected {
  min-height: auto;
}

.np-choice-flow[data-flow-layout="quad"] .np-choice-flow__stage--selected .np-choice-flow__choice {
  height: 156px;
  min-height: 156px;
  max-height: 156px;
}

.np-choice-flow[data-flow-layout="quad"] .np-choice-flow__stage--selected .np-choice-flow__choice-copy {
  -webkit-line-clamp: 2;
}

.np-choice-flow[data-flow-layout="quad"] .np-choice-flow__stage--selected .np-choice-flow__choice-image {
  width: 3.2rem;
  height: 3.2rem;
}

.np-choice-flow[data-flow-layout="quad"] .np-choice-flow__stage {
  min-height: calc((var(--np-choice-card-height) * 2) + var(--np-choice-card-gap) + 4rem);
}

.np-choice-flow[data-flow-layout="quad"] .np-choice-flow__stage.np-choice-flow__stage--selected {
  min-height: auto;
}

.np-choice-flow[data-flow-layout="quad"] .np-choice-flow__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.np-choice-flow[data-flow-layout="quad"] .np-choice-flow__choice {
  padding: 1.15rem calc(1.2rem + var(--np-choice-check-space)) 1.15rem 1.15rem;
}

.np-choice-flow[data-flow-layout="quad"] .np-choice-flow__choice-title {
  font-size: 1.28rem;
}

.np-choice-flow[data-flow-layout="quad"] .np-choice-flow__choice-copy {
  -webkit-line-clamp: 4;
}

.np-choice-flow[data-flow-layout="quad"] .np-choice-flow__choice-image {
  width: 4.4rem;
  height: 4.4rem;
}

.np-choice-flow__spotlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  min-height: 6.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--np-choice-accent) 42%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 94% 12%, color-mix(in srgb, var(--np-choice-accent) 18%, transparent), transparent 8rem),
    linear-gradient(135deg, rgba(20, 34, 31, 0.94), rgba(8, 16, 15, 0.96));
  box-shadow:
    inset 4px 0 0 color-mix(in srgb, var(--np-choice-accent) 74%, transparent),
    0 16px 34px rgba(0, 0, 0, 0.22);
}

.np-choice-flow__spotlight.is-empty {
  opacity: 0.84;
}

.np-choice-flow__spotlight-image {
  width: 4.4rem;
  height: 4.4rem;
  border: 2px solid color-mix(in srgb, var(--np-choice-accent) 58%, rgba(255, 255, 255, 0.28));
  border-radius: 50%;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.3),
    0 0 0 0.45rem color-mix(in srgb, var(--np-choice-accent) 18%, transparent);
  object-fit: cover;
}

.np-choice-flow__spotlight-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.np-choice-flow__spotlight-kicker {
  color: #70d6c8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.np-choice-flow__spotlight-title {
  color: #ffffff;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 900;
  line-height: 1.16;
}

.np-choice-flow__spotlight-body {
  max-width: 72ch;
  margin: 0;
  color: #c9ddd9;
  font-size: 0.94rem;
  line-height: 1.38;
}

.np-choice-flow-result.is-empty {
  opacity: 0.82;
}

.np-choice-flow-result__kicker {
  display: block;
  color: #70d6c8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.np-choice-flow-result__title {
  display: block;
  margin-top: 0.15rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
}

.np-choice-flow-result__body {
  margin: 0.3rem 0 0;
  color: #c9ddd9;
  line-height: 1.45;
}

.np-choice-flow__panels {
  display: grid;
  gap: 1rem;
}

.np-choice-flow-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(112, 214, 200, 0.24);
  border-radius: 8px;
  background: rgba(5, 10, 10, 0.44);
}

.np-choice-flow-panel__head,
.np-choice-flow-panel__block-head {
  display: grid;
  gap: 0.25rem;
}

.np-choice-flow-panel__head > strong,
.np-choice-flow-panel__block-head > strong {
  color: #ffffff;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 900;
  line-height: 1.16;
}

.np-choice-flow-panel__head p,
.np-choice-flow-panel__block-head p,
.np-choice-flow-panel__card p,
.np-choice-flow-panel__choice p {
  margin: 0;
  color: #c9ddd9;
  font-size: 0.94rem;
  line-height: 1.4;
}

.np-choice-flow-panel__kicker,
.np-choice-flow-panel__link-card span,
.np-choice-flow-panel__choice span,
.np-choice-flow-panel__memory-card span {
  color: #70d6c8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.np-choice-flow-panel__block {
  display: grid;
  gap: 0.7rem;
}

.np-choice-flow-panel__card-grid,
.np-choice-flow-panel__link-grid,
.np-choice-flow-panel__choice-grid,
.np-choice-flow-panel__memory-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.8rem;
}

.np-choice-flow-panel__card,
.np-choice-flow-panel__link-card,
.np-choice-flow-panel__choice,
.np-choice-flow-panel__memory-card {
  position: relative;
  display: grid;
  gap: 0.42rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--np-choice-accent, #70d6c8) 38%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 94% 12%, color-mix(in srgb, var(--np-choice-accent, #70d6c8) 12%, transparent), transparent 6rem),
    rgba(13, 18, 17, 0.88);
  color: #ffffff;
}

.np-choice-flow-panel__link-card,
.np-choice-flow-panel__choice {
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.np-choice-flow-panel__choice {
  border-style: solid;
  font: inherit;
  text-align: left;
}

.np-choice-flow-panel__link-card:hover,
.np-choice-flow-panel__link-card:focus-visible,
.np-choice-flow-panel__choice:hover,
.np-choice-flow-panel__choice:focus-visible {
  border-color: color-mix(in srgb, var(--np-choice-accent, #70d6c8) 76%, #ffffff 10%);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--np-choice-accent, #70d6c8) 32%, transparent);
  filter: saturate(1.08) brightness(1.04);
  outline: none;
}

.np-choice-flow-panel__card strong,
.np-choice-flow-panel__link-card strong,
.np-choice-flow-panel__choice strong,
.np-choice-flow-panel__memory-card strong {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.16;
}

.np-choice-flow-panel__link-card small,
.np-choice-flow-panel__memory-card time {
  color: #c9ddd9;
  font-size: 0.9rem;
  line-height: 1.35;
}

.np-choice-flow-panel__choice img,
.np-choice-flow-panel__memory-card img {
  width: 3.4rem;
  height: 3.4rem;
  border: 2px solid color-mix(in srgb, var(--np-choice-accent, #70d6c8) 64%, rgba(255, 255, 255, 0.24));
  border-radius: 50%;
  object-fit: cover;
}

.np-choice-flow-panel__pills,
.np-choice-flow-panel__trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.np-choice-flow-panel__pills span,
.np-choice-flow-panel__trust-list span {
  border: 1px solid rgba(112, 214, 200, 0.24);
  border-radius: 999px;
  background: rgba(112, 214, 200, 0.1);
  color: #e8fffb;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.38rem 0.58rem;
}

@media (min-width: 920px) {
  .np-choice-flow__grid {
    grid-template-columns: repeat(var(--np-choice-columns), minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .np-choice-flow {
    --np-choice-card-height: 154px;
    --np-choice-card-gap: 0.75rem;
  }

  .np-choice-flow[data-flow-layout="quad"] {
    --np-choice-card-height: 188px;
    --np-choice-card-min: 160px;
  }

  .np-choice-flow[data-flow-layout="quad"] .np-choice-flow__stage {
    min-height: calc((var(--np-choice-card-height) * 2) + var(--np-choice-card-gap) + 4rem);
  }

  .np-choice-flow__spotlight {
    grid-template-columns: 1fr;
  }

  .np-choice-flow__spotlight-image {
    width: 3.75rem;
    height: 3.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .np-choice-flow__stage {
    animation: none;
  }

  .np-choice-flow__choice,
  .np-choice-flow__choice::after {
    transition: none;
  }

  .np-choice-flow__choice.is-wrong-answer-hint {
    animation: none;
    box-shadow:
      0 20px 48px color-mix(in srgb, var(--np-choice-accent) 46%, transparent),
      inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  }

  .np-choice-flow__choice.is-choice-ready-hint {
    animation: none;
    box-shadow:
      0 20px 48px color-mix(in srgb, #62d6a4 42%, transparent),
      inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  }
}

@keyframes np-choice-flow-stage-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes np-choice-flow-wrong-answer-hint {
  0%,
  100% {
    box-shadow: none;
    filter: none;
  }

  12%,
  45%,
  78% {
    border-color: color-mix(in srgb, var(--np-choice-accent) 88%, #ffffff 12%);
    box-shadow:
      0 20px 48px color-mix(in srgb, var(--np-choice-accent) 48%, transparent),
      inset 0 0 0 2px rgba(255, 255, 255, 0.2);
    filter: saturate(1.2) brightness(1.08);
  }

  24%,
  57%,
  90% {
    box-shadow: none;
    filter: none;
  }
}

@keyframes np-choice-flow-ready-hint {
  0%,
  100% {
    box-shadow: none;
    filter: none;
  }

  12%,
  45%,
  78% {
    border-color: color-mix(in srgb, #62d6a4 88%, #ffffff 12%);
    box-shadow:
      0 20px 48px color-mix(in srgb, #62d6a4 50%, transparent),
      inset 0 0 0 2px rgba(255, 255, 255, 0.22);
    filter: saturate(1.22) brightness(1.09);
  }

  24%,
  57%,
  90% {
    box-shadow: none;
    filter: none;
  }
}
