#drq-app .analyzing {
  --an-growth: 0;
  --an-progress: 0%;
  position: relative;
  min-height: 100svh;
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#drq-app .an-header {
  position: relative;
  text-align: center;
}

#drq-app .an-header .drq-back {
  position: absolute;
  top: -14px;
  left: -4px;
}

#drq-app .an-brand-caption {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.7px;
  color: #c7c5ad;
  margin: 0 0 13px;
}

#drq-app .analyzing h1 {
  min-height: 2.35em;
  max-width: 340px;
  margin: 0 auto;
  color: #f4f4eb;
  font-size: 28px;
  font-weight: 660;
  line-height: 1.16;
  letter-spacing: -.85px;
}

#drq-app .analyzing h1 .an-gold {
  color: #f0d16b;
}

#drq-app .an-tree-scene {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: none;
  justify-content: center;
  width: 100%;
  height: 238px;
  margin: 1px 0 -2px;
}

#drq-app .an-tree-scene::before {
  content: "";
  position: absolute;
  inset: 10% 10% 5%;
  background: radial-gradient(ellipse, #d4af371b, transparent 66%);
  transform: scale(calc(.75 + var(--an-growth) * .25));
  pointer-events: none;
}

#drq-app .an-tree-canvas {
  position: relative;
  flex: none;
  height: 100%;
  aspect-ratio: 1024 / 1160;
}

#drq-app .an-root-drawing {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#drq-app .an-official-tree {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: calc(.45 + var(--an-growth) * .55);
  /* Initial cut is 70%, around 30% farther down than the preview's 54%. */
  clip-path: inset(calc((1 - var(--an-growth)) * 70%) 0 0);
  filter: drop-shadow(0 0 10px #d4af3713);
  pointer-events: none;
}

#drq-app .an-root-group {
  --an-root-start: .015;
  --an-main-growth: clamp(0, (var(--an-growth) - var(--an-root-start)) * 4.4, 1);
  --an-fork-growth: clamp(0, (var(--an-growth) - var(--an-root-start) - .13) * 6, 1);
}

#drq-app .an-root-group:nth-child(2) { --an-root-start: .135; }
#drq-app .an-root-group:nth-child(3) { --an-root-start: .255; }
#drq-app .an-root-group:nth-child(4) { --an-root-start: .375; }
#drq-app .an-root-group:nth-child(5) { --an-root-start: .495; }
#drq-app .an-root-group:nth-child(6) { --an-root-start: .615; }

#drq-app .an-root-main,
#drq-app .an-root-fork {
  fill: none;
  stroke: #d4af37;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}

#drq-app .an-root-main {
  stroke-width: 5.6;
  stroke-dashoffset: calc(1 - var(--an-main-growth));
  opacity: calc(clamp(0, var(--an-main-growth) * 6, 1) * .76);
}

#drq-app .an-root-fork {
  stroke-width: 3.7;
  stroke-dashoffset: calc(1 - var(--an-fork-growth));
  opacity: calc(clamp(0, var(--an-fork-growth) * 6, 1) * .62);
}

#drq-app .an-root-node {
  fill: #e9c45a;
  opacity: calc(clamp(0, (var(--an-main-growth) - .9) * 10, 1) * .8);
}

#drq-app .an-response-zone {
  min-height: 148px;
  margin: 0 0 20px;
}

#drq-app .an-response-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 148px;
  padding: 18px 19px 20px;
  border: 1px solid #6d714b;
  border-radius: 19px 19px 19px 6px;
  background: linear-gradient(120deg, #242c1f, #1b2318);
  box-shadow: 0 8px 22px #0002;
  animation: drq-answer-arrive .3s cubic-bezier(.22, .7, .2, 1);
}

#drq-app .an-answer-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  color: #d5c895;
  font-size: 10px;
  font-weight: 670;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#drq-app .an-answer-label svg {
  flex: none;
  width: 14px;
  height: 14px;
}

#drq-app .an-response-card blockquote {
  margin: 0;
  color: #f0f2e9;
  font-size: 18px;
  font-weight: 530;
  line-height: 1.4;
  letter-spacing: -.2px;
}

#drq-app .an-progress-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: #bdc4b0;
  font-size: 11px;
}

#drq-app .an-progress-heading strong {
  color: #e6cc77;
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

#drq-app .an-progress-track {
  height: 7px;
  border: 1px solid #4e5134;
  border-radius: 8px;
  background: #262c20;
  overflow: hidden;
}

#drq-app .an-progress-fill {
  display: block;
  width: var(--an-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b28b20, #d4af37 40%, #f5df91);
  box-shadow: 0 0 15px #d4af3760;
}

#drq-app .an-skip {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 5px;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #d0c392;
  font: 400 12px / 1.4 Inter, Arial, sans-serif;
  cursor: pointer;
}

#drq-app .an-skip span:last-child {
  font-size: 18px;
}

#drq-app .an-skip:focus-visible {
  outline: 2px solid #f0d16b;
  outline-offset: 4px;
}

#drq-app .an-skip[hidden] {
  display: none;
}

/* Keep the rest of the composition in place when the skip control disappears. */
#drq-app .analyzing.is-finished {
  padding-bottom: 84px;
}

#drq-app .an-finish-card {
  align-items: center;
  border-color: #b99b3f;
  background: radial-gradient(ellipse at 50% 0, #d4af3720, transparent 70%), #20271b;
  text-align: center;
}

#drq-app .an-finish-check {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d4af37;
  border-radius: 50%;
  color: #f0d77f;
}

#drq-app .an-finish-check svg {
  width: 20px;
  height: 20px;
}

#drq-app .analyzing.is-finished .an-official-tree {
  filter: drop-shadow(0 0 17px #d4af372c);
}

#drq-app .analyzing.is-finished h1 {
  color: #f0d16b;
}

@keyframes drq-answer-arrive {
  from { transform: translateY(6px); }
  to { transform: translateY(0); }
}

@media (max-height: 700px) {
  #drq-app .analyzing { padding: 22px 22px 18px; }
  #drq-app .analyzing.is-finished { padding-bottom: 72px; }
  #drq-app .an-brand-caption { margin-bottom: 10px; }
  #drq-app .analyzing h1 { font-size: 26px; }
  #drq-app .an-tree-scene { height: 209px; margin-top: 0; }
  #drq-app .an-response-zone { min-height: 139px; margin-bottom: 18px; }
  #drq-app .an-response-card { min-height: 139px; padding: 16px 17px 18px; }
  #drq-app .an-response-card blockquote { font-size: 17px; }
  #drq-app .an-skip { margin-top: 10px; }
  #drq-app .an-progress-heading { margin-bottom: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  #drq-app .an-tree-scene::before { transform: none; }
  #drq-app .an-official-tree { opacity: 1; clip-path: none; }
  #drq-app .an-root-main, #drq-app .an-root-fork { stroke-dashoffset: 0; opacity: .7; }
  #drq-app .an-root-node { opacity: .8; }
  #drq-app .an-response-card { animation: none; }
}
