/* =========================================================
   ERS_EN_W2_M2 — MEANING THREAD V2

   Scene-first identity exploration. The choice tray is present only while a
   source, value, or identity lesson is needed. Each completed cycle becomes a
   luminous strand in the loom; the final reflection unlocks after all three.
   ========================================================= */

.meaning-thread-v2 {
  --meaning-ink: #263b3a;
  --meaning-copy: #586a68;
  --meaning-teal: #2f756f;
  --meaning-teal-dark: #20544f;
  --meaning-copper: #be7c4d;
  --meaning-cream: #fff8df;
  --meaning-thread-1: #f1cc78;
  --meaning-thread-2: #7fc3a7;
  --meaning-thread-3: #aaa2d9;

  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 480px;
  overflow: hidden;
  color: var(--meaning-ink);
  background: #102c2b;
}

.meaning-thread-v2 *,
.meaning-thread-v2 *::before,
.meaning-thread-v2 *::after {
  box-sizing: border-box;
}

.meaning-thread-v2__picture,
.meaning-thread-v2__picture img,
.meaning-thread-v2__atmosphere,
.meaning-thread-v2__weave-layer,
.meaning-thread-v2__light-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.meaning-thread-v2__picture {
  z-index: -5;
  display: block;
  overflow: hidden;
}

.meaning-thread-v2__picture img {
  display: block;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.58) saturate(0.72) contrast(0.96);
  transform: scale(1.018);
  transition:
    filter 1000ms ease,
    transform 1600ms ease;
}

.meaning-thread-v2[data-completed="1"]
  .meaning-thread-v2__picture img {
  filter: brightness(0.68) saturate(0.82) contrast(0.98);
}

.meaning-thread-v2[data-completed="2"]
  .meaning-thread-v2__picture img {
  filter: brightness(0.79) saturate(0.91) contrast(1);
}

.meaning-thread-v2[data-completed="3"]
  .meaning-thread-v2__picture img {
  filter: brightness(0.96) saturate(1.04) contrast(1.01);
  transform: scale(1);
}

.meaning-thread-v2__atmosphere {
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 49%,
      rgba(241, 204, 120, 0.05),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      rgba(12, 38, 38, 0.25),
      rgba(6, 27, 28, 0.38)
    );
  transition: background 900ms ease;
}

.meaning-thread-v2[data-state="weave"]
  .meaning-thread-v2__atmosphere {
  background:
    radial-gradient(
      circle at 50% 51%,
      rgba(255, 236, 170, 0.18),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      rgba(9, 30, 31, 0.13),
      rgba(5, 22, 23, 0.28)
    );
}

.meaning-thread-v2.is-celebrating
  .meaning-thread-v2__atmosphere {
  background:
    radial-gradient(
      circle at 50% 49%,
      rgba(255, 235, 169, 0.31),
      rgba(126, 193, 166, 0.14) 35%,
      transparent 66%
    ),
    linear-gradient(
      180deg,
      rgba(8, 30, 30, 0.02),
      rgba(8, 27, 28, 0.13)
    );
}

.meaning-thread-v2__weave-layer {
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.meaning-thread-v2__weave-layer svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.meaning-thread-v2__weave-mobile {
  display: none !important;
}

.meaning-thread-v2__woven-lines path,
.meaning-thread-v2__emblem path {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.meaning-thread-v2__woven-lines path {
  stroke-width: 2.5;
}

.meaning-thread-v2__emblem path {
  stroke-width: 2.25;
}

.meaning-thread-v2__woven-lines [data-woven-round="1"],
.meaning-thread-v2__emblem [data-emblem-round="1"] {
  stroke: var(--meaning-thread-1);
}

.meaning-thread-v2__woven-lines [data-woven-round="2"],
.meaning-thread-v2__emblem [data-emblem-round="2"] {
  stroke: var(--meaning-thread-2);
}

.meaning-thread-v2__woven-lines [data-woven-round="3"],
.meaning-thread-v2__emblem [data-emblem-round="3"] {
  stroke: var(--meaning-thread-3);
}

.meaning-thread-v2__woven-lines path.is-woven,
.meaning-thread-v2__emblem path.is-woven {
  opacity: 0.82;
  animation: meaningThreadDraw 1100ms ease-out forwards;
}

.meaning-thread-v2__source-lights circle {
  opacity: 0;
  transform: scale(0.2);
  transform-box: fill-box;
  transform-origin: center;
}

.meaning-thread-v2__source-lights [data-source-round="1"] {
  fill: var(--meaning-thread-1);
}

.meaning-thread-v2__source-lights [data-source-round="2"] {
  fill: var(--meaning-thread-2);
}

.meaning-thread-v2__source-lights [data-source-round="3"] {
  fill: var(--meaning-thread-3);
}

.meaning-thread-v2__source-lights circle.is-woven {
  opacity: 0.96;
  transform: scale(1);
  animation:
    meaningThreadLightIn 700ms
      cubic-bezier(0.18, 0.9, 0.22, 1.25) both,
    meaningThreadLightPulse 2.9s 700ms ease-in-out infinite;
}

.meaning-thread-v2__final-weave {
  opacity: 0;
  pointer-events: none;
}

.meaning-thread-v2__veil {
  opacity: 0;
  transform: scaleY(0.08);
  transform-box: fill-box;
  transform-origin: top center;
}

.meaning-thread-v2__reflection-glow,
.meaning-thread-v2__reflection-ring {
  opacity: 0;
  transform: scale(0.5);
  transform-box: fill-box;
  transform-origin: center;
}

.meaning-thread-v2__reflection-ring {
  fill: none;
  stroke: rgba(255, 245, 196, 0.76);
  stroke-width: 2.4;
}

.meaning-thread-v2[data-state="reward"]
  .meaning-thread-v2__final-weave,
.meaning-thread-v2[data-state="complete"]
  .meaning-thread-v2__final-weave {
  opacity: 1;
}

.meaning-thread-v2[data-state="reward"]
  .meaning-thread-v2__veil {
  opacity: 0.28;
  transform: scaleY(1);
  animation: meaningThreadUnfurl 1500ms ease-out both;
}

.meaning-thread-v2[data-state="reward"]
  .meaning-thread-v2__reflection-glow {
  opacity: 0.58;
  transform: scale(1);
  animation: meaningThreadReflection 1700ms 350ms ease-out both;
}

.meaning-thread-v2[data-state="reward"]
  .meaning-thread-v2__reflection-ring,
.meaning-thread-v2[data-state="complete"]
  .meaning-thread-v2__reflection-ring {
  opacity: 0.38;
  transform: scale(1);
  animation: meaningThreadRipple 2100ms 500ms ease-out infinite;
}

.meaning-thread-v2[data-state="complete"]
  .meaning-thread-v2__veil {
  opacity: 0.28;
  transform: scaleY(1);
  animation: none;
}

.meaning-thread-v2[data-state="complete"]
  .meaning-thread-v2__reflection-glow {
  opacity: 0.58;
  transform: scale(1);
  animation: none;
}

.meaning-thread-v2[data-state="complete"]
  .meaning-thread-v2__reflection-ring {
  opacity: 0.34;
  transform: scale(1);
  animation: none;
}

.meaning-thread-v2__light-field {
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.meaning-thread-v2__mote {
  position: absolute;
  top: calc(12% + ((var(--mote-index) % 8) * 10%));
  left: calc(4% + ((var(--mote-index) % 12) * 7.8%));
  display: block;
  width: calc(2px + ((var(--mote-index) % 3) * 1px));
  height: calc(2px + ((var(--mote-index) % 3) * 1px));
  border-radius: 50%;
  opacity: 0;
  background: #fff1ba;
  box-shadow: 0 0 10px rgba(255, 231, 151, 0.8);
}

.meaning-thread-v2[data-completed="1"]
  .meaning-thread-v2__mote:nth-child(-n + 8),
.meaning-thread-v2[data-completed="2"]
  .meaning-thread-v2__mote:nth-child(-n + 16),
.meaning-thread-v2[data-completed="3"]
  .meaning-thread-v2__mote {
  opacity: 0.6;
  animation: meaningThreadMote 4.3s ease-in-out infinite;
  animation-delay: calc(var(--mote-index) * -125ms);
}

.meaning-thread-v2__hud {
  position: absolute;
  z-index: 30;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.meaning-thread-v2__progress {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 5px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(11, 45, 44, 0.58);
  box-shadow: 0 10px 28px rgba(4, 28, 28, 0.22);
  backdrop-filter: blur(14px);
}

.meaning-thread-v2__progress-item {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 850;
}

.meaning-thread-v2__progress-item.is-current {
  color: #fff;
  background: rgba(50, 123, 116, 0.94);
  box-shadow: 0 0 0 4px rgba(144, 210, 185, 0.13);
}

.meaning-thread-v2__progress-item.is-complete {
  color: #234642;
  background: var(--meaning-cream);
  box-shadow: 0 0 14px rgba(244, 211, 128, 0.38);
}

.meaning-thread-v2__progress-label,
.meaning-thread-v2__live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.meaning-thread-v2__reset {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: #fff;
  background: rgba(11, 45, 44, 0.58);
  box-shadow: 0 10px 28px rgba(4, 28, 28, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  pointer-events: auto;
  backdrop-filter: blur(14px);
}

.meaning-thread-v2__panel {
  position: absolute;
  z-index: 20;
  right: 16px;
  bottom: 16px;
  left: 50%;
  width: min(780px, calc(100% - 32px));
  max-height: min(39dvh, 370px);
  padding: 16px 18px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 254, 246, 0.95),
      rgba(232, 244, 238, 0.9)
    );
  box-shadow:
    0 24px 70px rgba(3, 29, 29, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.9);
  scrollbar-color: rgba(47, 117, 111, 0.32) transparent;
  scrollbar-width: thin;
  transform: translateX(-50%);
  backdrop-filter: blur(19px);
  animation: meaningThreadPanelIn 260ms ease-out both;
}

.meaning-thread-v2__panel[hidden],
.meaning-thread-v2__weave-action[hidden] {
  display: none;
}

.meaning-thread-v2[data-state="intro"]
  .meaning-thread-v2__panel {
  width: min(550px, calc(100% - 32px));
  max-height: min(34dvh, 300px);
}

.meaning-thread-v2[data-builder-step="review"]
  .meaning-thread-v2__panel {
  width: min(680px, calc(100% - 32px));
  max-height: min(43dvh, 410px);
}

.meaning-thread-v2[data-state="complete"]
  .meaning-thread-v2__panel {
  width: min(900px, calc(100% - 32px));
  max-height: min(51dvh, 490px);
}

.meaning-thread-v2__panel-heading {
  margin-bottom: 10px;
}

.meaning-thread-v2__eyebrow {
  margin: 0 0 4px;
  color: var(--meaning-teal-dark);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.meaning-thread-v2__title {
  margin: 0;
  color: var(--meaning-ink);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.12;
  text-wrap: balance;
}

.meaning-thread-v2__copy {
  margin: 6px 0 0;
  color: var(--meaning-copy);
  font-size: 0.78rem;
  line-height: 1.42;
}

.meaning-thread-v2__intro {
  text-align: center;
}

.meaning-thread-v2__choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.meaning-thread-v2[data-builder-step="value"]
  .meaning-thread-v2__choices {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.meaning-thread-v2__choice {
  min-width: 0;
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid rgba(37, 91, 86, 0.17);
  border-radius: 13px;
  color: #365b57;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 3px 0 rgba(31, 79, 74, 0.07);
  cursor: pointer;
  font: inherit;
  font-size: 0.69rem;
  font-weight: 730;
  line-height: 1.2;
  text-align: left;
  transition:
    border-color 170ms ease,
    background 170ms ease,
    transform 170ms ease;
}

.meaning-thread-v2__choice:hover {
  border-color: rgba(47, 117, 111, 0.46);
  background: #fff;
  transform: translateY(-1px);
}

.meaning-thread-v2__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 9px;
}

.meaning-thread-v2__breadcrumb {
  display: inline-flex;
  min-height: 32px;
  padding: 6px 10px;
  align-items: center;
  border: 1px solid rgba(42, 105, 99, 0.21);
  border-radius: 999px;
  color: #2f655f;
  background: rgba(220, 239, 232, 0.9);
  cursor: pointer;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 780;
}

.meaning-thread-v2__breadcrumb::after {
  margin-left: 7px;
  content: "Change";
  color: #6a817e;
  font-size: 0.55rem;
  font-weight: 710;
}

.meaning-thread-v2__custom {
  margin-top: 8px;
  border: 1px solid rgba(37, 91, 86, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.58);
}

.meaning-thread-v2__custom-summary {
  padding: 9px 11px;
  color: #61736f;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 760;
  list-style-position: inside;
}

.meaning-thread-v2__custom-field {
  display: grid;
  gap: 5px;
  padding: 0 9px 9px;
}

.meaning-thread-v2__custom-label {
  color: #6b7a77;
  font-size: 0.6rem;
  font-weight: 730;
}

.meaning-thread-v2__custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.meaning-thread-v2__input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(36, 91, 85, 0.24);
  border-radius: 11px;
  outline: none;
  color: #294744;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.72rem;
}

.meaning-thread-v2__custom-use {
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(31, 81, 75, 0.24);
  border-radius: 11px;
  color: #fff;
  background: var(--meaning-teal);
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 800;
}

.meaning-thread-v2__custom-use:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.meaning-thread-v2__preview {
  margin: 9px 0;
  padding: 13px 15px;
  border: 1px solid rgba(48, 113, 106, 0.2);
  border-radius: 16px;
  color: #294744;
  background:
    linear-gradient(
      145deg,
      rgba(222, 241, 234, 0.94),
      rgba(255, 247, 218, 0.88)
    );
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.92rem, 1.7vw, 1.12rem);
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}

.meaning-thread-v2__error {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-left: 3px solid #a85561;
  color: #74323d;
  background: rgba(255, 234, 236, 0.83);
  font-size: 0.66rem;
  font-weight: 690;
  line-height: 1.35;
}

.meaning-thread-v2__primary,
.meaning-thread-v2__secondary {
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 13px;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 820;
  line-height: 1.2;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    opacity 170ms ease;
}

.meaning-thread-v2__primary {
  width: 100%;
  margin-top: 9px;
  border: 1px solid rgba(26, 75, 69, 0.34);
  color: #fff;
  background: linear-gradient(145deg, #3b827b, #235c57);
  box-shadow:
    0 4px 0 #174a45,
    0 10px 22px rgba(28, 83, 77, 0.2);
}

.meaning-thread-v2__primary:disabled {
  border-color: rgba(60, 79, 76, 0.11);
  color: rgba(71, 84, 82, 0.52);
  background: rgba(183, 198, 194, 0.6);
  box-shadow: 0 3px 0 rgba(45, 80, 75, 0.08);
  cursor: not-allowed;
}

.meaning-thread-v2__secondary {
  border: 1px solid rgba(40, 94, 88, 0.22);
  color: #2e655f;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 4px 0 rgba(37, 87, 81, 0.1);
}

.meaning-thread-v2__primary:not(:disabled):hover,
.meaning-thread-v2__secondary:hover {
  transform: translateY(-1px);
}

.meaning-thread-v2__actions,
.meaning-thread-v2__result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meaning-thread-v2__actions
  .meaning-thread-v2__primary,
.meaning-thread-v2__actions
  .meaning-thread-v2__secondary,
.meaning-thread-v2__result-actions
  .meaning-thread-v2__primary,
.meaning-thread-v2__result-actions
  .meaning-thread-v2__secondary {
  flex: 1 1 190px;
  width: auto;
  margin-top: 0;
}

.meaning-thread-v2__privacy {
  margin: 8px 0 0;
  color: #71817e;
  font-size: 0.59rem;
  line-height: 1.35;
  text-align: center;
}

.meaning-thread-v2__scene-cue {
  position: absolute;
  z-index: 14;
  top: 13%;
  right: 16px;
  left: 16px;
  width: fit-content;
  max-width: min(620px, calc(100% - 32px));
  margin: 0 auto;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff8d9;
  background: rgba(9, 43, 41, 0.42);
  box-shadow: 0 12px 32px rgba(4, 27, 27, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.9rem, 1.7vw, 1.22rem);
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 18px rgba(3, 25, 24, 0.76);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  backdrop-filter: blur(12px);
}

.meaning-thread-v2[data-state="weave"]
  .meaning-thread-v2__scene-cue,
.meaning-thread-v2[data-state="weaving"]
  .meaning-thread-v2__scene-cue,
.meaning-thread-v2[data-state="reward"]
  .meaning-thread-v2__scene-cue {
  opacity: 1;
  transform: translateY(0);
  animation: meaningThreadCueIn 450ms ease-out both;
}

.meaning-thread-v2__weave-action {
  position: absolute;
  z-index: 23;
  inset: 0;
  pointer-events: none;
}

.meaning-thread-v2__weave-action::before {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 2px;
  height: 31%;
  border-left: 2px dashed rgba(255, 241, 188, 0.48);
  content: "";
  filter: drop-shadow(0 0 8px rgba(255, 225, 134, 0.55));
  transform: translateX(-50%);
  transform-origin: top;
  animation: meaningThreadGuide 2.1s ease-in-out infinite;
}

.meaning-thread-v2__weave-target,
.meaning-thread-v2__thread-handle {
  position: absolute;
  left: 50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.meaning-thread-v2__weave-target {
  top: 51%;
  width: 112px;
  height: 112px;
  border: 2px dashed rgba(255, 240, 182, 0.72);
  background: rgba(255, 236, 166, 0.08);
  box-shadow:
    0 0 0 12px rgba(255, 229, 143, 0.04),
    0 0 42px rgba(255, 224, 128, 0.2);
  animation: meaningThreadTarget 1.9s ease-in-out infinite;
}

.meaning-thread-v2__thread-handle {
  --drag-x: 0px;
  --drag-y: 0px;
  --active-thread-color: var(--meaning-thread-1);

  top: 84%;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  outline: none;
  color: #173f3b;
  background:
    radial-gradient(
      circle at 37% 32%,
      #fffde9 0 12%,
      var(--active-thread-color) 43%,
      rgba(42, 105, 99, 0.92) 100%
    );
  box-shadow:
    0 0 0 9px rgba(255, 241, 190, 0.11),
    0 0 34px color-mix(in srgb, var(--active-thread-color) 68%, transparent),
    0 14px 28px rgba(5, 31, 30, 0.35);
  cursor: grab;
  font: inherit;
  pointer-events: auto;
  touch-action: none;
  transform:
    translate(
      calc(-50% + var(--drag-x)),
      calc(-50% + var(--drag-y))
    );
  transition:
    box-shadow 180ms ease,
    transform 280ms cubic-bezier(0.2, 0.78, 0.24, 1);
  animation: meaningThreadHandle 2.2s ease-in-out infinite;
}

.meaning-thread-v2.is-dragging
  .meaning-thread-v2__thread-handle {
  cursor: grabbing;
  transition: box-shadow 120ms ease;
  animation: none;
}

.meaning-thread-v2__thread-core {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.58),
    0 0 13px rgba(255, 247, 213, 0.78);
}

.meaning-thread-v2__thread-label {
  position: absolute;
  top: calc(100% + 7px);
  padding: 4px 9px;
  border-radius: 999px;
  color: #fffce9;
  background: rgba(8, 45, 42, 0.66);
  box-shadow: 0 5px 16px rgba(4, 27, 27, 0.22);
  font-size: 0.61rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.meaning-thread-v2__result-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meaning-thread-v2__result-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(45, 107, 101, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--result-thread-color) 17%, #f5fbf7),
      rgba(255, 250, 228, 0.76)
    );
}

.meaning-thread-v2__result-number {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #254f4a;
  background: var(--result-thread-color);
  font-size: 0.62rem;
  font-weight: 850;
}

.meaning-thread-v2__result-statement {
  margin: 1px 0 0;
  color: #294744;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.73rem;
  line-height: 1.4;
}

.meaning-thread-v2__reflection {
  margin: 9px 0 0;
  padding: 9px 11px;
  border-left: 3px solid rgba(47, 117, 111, 0.58);
  color: #526a66;
  background: rgba(221, 239, 232, 0.74);
  font-size: 0.68rem;
  line-height: 1.4;
}

.meaning-thread-v2__result-actions {
  margin-top: 9px;
}

.meaning-thread-v2 button:focus-visible,
.meaning-thread-v2 input:focus-visible,
.meaning-thread-v2 summary:focus-visible {
  outline: 3px solid rgba(241, 204, 120, 0.84);
  outline-offset: 3px;
}

@keyframes meaningThreadDraw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes meaningThreadLightIn {
  from {
    opacity: 0;
    transform: scale(0.2);
  }

  to {
    opacity: 0.96;
    transform: scale(1);
  }
}

@keyframes meaningThreadLightPulse {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes meaningThreadMote {
  0%,
  100% {
    transform: translateY(10px) scale(0.8);
  }

  50% {
    transform: translateY(-15px) scale(1.12);
  }
}

@keyframes meaningThreadPanelIn {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }

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

@keyframes meaningThreadCueIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes meaningThreadGuide {
  0%,
  100% {
    opacity: 0.32;
    transform: translateX(-50%) scaleY(0.92);
  }

  50% {
    opacity: 0.78;
    transform: translateX(-50%) scaleY(1.03);
  }
}

@keyframes meaningThreadTarget {
  0%,
  100% {
    opacity: 0.56;
    transform: translate(-50%, -50%) scale(0.92);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes meaningThreadHandle {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.95);
  }

  50% {
    transform: translate(-50%, -55%) scale(1.04);
  }
}

@keyframes meaningThreadUnfurl {
  from {
    opacity: 0;
    transform: scaleY(0.08);
  }

  to {
    opacity: 0.28;
    transform: scaleY(1);
  }
}

@keyframes meaningThreadReflection {
  from {
    opacity: 0;
    transform: scale(0.42);
  }

  to {
    opacity: 0.58;
    transform: scale(1);
  }
}

@keyframes meaningThreadRipple {
  0% {
    opacity: 0.74;
    transform: scale(0.62);
  }

  100% {
    opacity: 0;
    transform: scale(1.38);
  }
}

@media (max-width: 700px) {
  .meaning-thread-v2 {
    min-height: 440px;
  }

  .meaning-thread-v2__picture img {
    object-position: center;
  }

  .meaning-thread-v2__weave-desktop {
    display: none !important;
  }

  .meaning-thread-v2__weave-mobile {
    display: block !important;
  }

  .meaning-thread-v2__woven-lines path {
    stroke-width: 3.2;
  }

  .meaning-thread-v2__emblem path {
    stroke-width: 3;
  }

  .meaning-thread-v2__hud {
    top: max(9px, env(safe-area-inset-top));
    left: max(9px, env(safe-area-inset-left));
  }

  .meaning-thread-v2__progress-item {
    width: 27px;
    height: 27px;
    font-size: 0.63rem;
  }

  .meaning-thread-v2__reset {
    min-height: 37px;
    padding-inline: 10px;
    font-size: 0.64rem;
  }

  .meaning-thread-v2__panel,
  .meaning-thread-v2[data-state="intro"]
    .meaning-thread-v2__panel,
  .meaning-thread-v2[data-builder-step="review"]
    .meaning-thread-v2__panel {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    max-height: 38dvh;
    padding: 12px;
    border-radius: 18px;
  }

  .meaning-thread-v2[data-state="intro"]
    .meaning-thread-v2__panel {
    max-height: 32dvh;
  }

  .meaning-thread-v2[data-builder-step="review"]
    .meaning-thread-v2__panel {
    max-height: 44dvh;
  }

  .meaning-thread-v2[data-state="complete"]
    .meaning-thread-v2__panel {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    max-height: 53dvh;
    padding: 11px;
    border-radius: 18px;
  }

  .meaning-thread-v2__panel-heading {
    margin-bottom: 7px;
  }

  .meaning-thread-v2__eyebrow {
    font-size: 0.56rem;
  }

  .meaning-thread-v2__title {
    font-size: clamp(0.96rem, 4.6vw, 1.13rem);
  }

  .meaning-thread-v2__copy {
    margin-top: 4px;
    font-size: 0.65rem;
    line-height: 1.33;
  }

  .meaning-thread-v2__choices,
  .meaning-thread-v2[data-builder-step="value"]
    .meaning-thread-v2__choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .meaning-thread-v2__choice {
    min-height: 37px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 0.61rem;
  }

  .meaning-thread-v2__breadcrumbs {
    gap: 4px;
    margin-bottom: 6px;
  }

  .meaning-thread-v2__breadcrumb {
    min-height: 29px;
    padding: 5px 8px;
    font-size: 0.59rem;
  }

  .meaning-thread-v2__custom {
    margin-top: 6px;
    border-radius: 10px;
  }

  .meaning-thread-v2__custom-summary {
    padding: 7px 9px;
    font-size: 0.58rem;
  }

  .meaning-thread-v2__input,
  .meaning-thread-v2__custom-use {
    min-height: 37px;
    font-size: 0.62rem;
  }

  .meaning-thread-v2__preview {
    margin: 7px 0;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.32;
  }

  .meaning-thread-v2__primary,
  .meaning-thread-v2__secondary {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.64rem;
  }

  .meaning-thread-v2__privacy {
    margin-top: 6px;
    font-size: 0.53rem;
  }

  .meaning-thread-v2__scene-cue {
    top: max(66px, calc(env(safe-area-inset-top) + 58px));
    max-width: calc(100% - 54px);
    padding: 7px 11px;
    font-size: clamp(0.79rem, 3.8vw, 1rem);
  }

  .meaning-thread-v2__weave-action::before {
    top: 52%;
    height: 31%;
  }

  .meaning-thread-v2__weave-target {
    top: 51%;
    width: 94px;
    height: 94px;
  }

  .meaning-thread-v2__thread-handle {
    top: 84%;
    width: 68px;
    height: 68px;
  }

  .meaning-thread-v2__thread-core {
    width: 27px;
    height: 27px;
  }

  .meaning-thread-v2__result-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .meaning-thread-v2__result-item {
    padding: 7px 8px;
    border-radius: 10px;
  }

  .meaning-thread-v2__result-number {
    width: 21px;
    height: 21px;
    font-size: 0.56rem;
  }

  .meaning-thread-v2__result-statement {
    font-size: 0.63rem;
    line-height: 1.31;
  }

  .meaning-thread-v2__reflection {
    margin-top: 6px;
    padding: 7px 9px;
    font-size: 0.58rem;
    line-height: 1.31;
  }

  .meaning-thread-v2__result-actions {
    margin-top: 6px;
  }
}

@media (max-width: 360px),
  (max-width: 700px) and (max-height: 620px) {
  .meaning-thread-v2__panel {
    max-height: 46dvh;
  }

  .meaning-thread-v2[data-state="intro"]
    .meaning-thread-v2__panel {
    max-height: 38dvh;
  }

  .meaning-thread-v2[data-builder-step="review"]
    .meaning-thread-v2__panel {
    max-height: 51dvh;
  }

  .meaning-thread-v2[data-state="complete"]
    .meaning-thread-v2__panel {
    max-height: 74dvh;
  }

  .meaning-thread-v2__choice {
    min-height: 34px;
    padding-block: 5px;
    font-size: 0.58rem;
  }

  .meaning-thread-v2__thread-handle {
    top: 82%;
    width: 62px;
    height: 62px;
  }

  .meaning-thread-v2__weave-target {
    width: 84px;
    height: 84px;
  }

  .meaning-thread-v2__actions
    .meaning-thread-v2__primary,
  .meaning-thread-v2__actions
    .meaning-thread-v2__secondary,
  .meaning-thread-v2__result-actions
    .meaning-thread-v2__primary,
  .meaning-thread-v2__result-actions
    .meaning-thread-v2__secondary {
    flex-basis: calc(50% - 4px);
    min-width: 0;
    padding-inline: 6px;
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meaning-thread-v2 *,
  .meaning-thread-v2 *::before,
  .meaning-thread-v2 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .meaning-thread-v2__woven-lines path.is-woven,
  .meaning-thread-v2__emblem path.is-woven {
    stroke-dashoffset: 0;
    opacity: 0.96;
  }

  .meaning-thread-v2__source-lights circle.is-woven {
    opacity: 0.96;
    transform: scale(1);
  }

  .meaning-thread-v2[data-state="reward"]
    .meaning-thread-v2__veil,
  .meaning-thread-v2[data-state="complete"]
    .meaning-thread-v2__veil,
  .meaning-thread-v2[data-state="reward"]
    .meaning-thread-v2__reflection-glow,
  .meaning-thread-v2[data-state="complete"]
    .meaning-thread-v2__reflection-glow {
    opacity: 0.58;
    transform: none;
  }
}
