.investigation {
  --wire: #ffcea0;
  --faint-wire: #d89677;
  position: relative;
  isolation: isolate;
  width: min(100%, 650px);
  margin-inline: auto;
  color: #fff1dc;
  text-shadow: 0 1px 6px #150917, 0 0 18px #140714;
}
.investigation::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -11% -6% -8%;
  pointer-events: none;
  background: radial-gradient(ellipse closest-side, #180e17eb 24%, #170918a3 68%, transparent 100%);
}
.invest-heading {text-align: center; padding: 0 4%}
.invest-step {
  display: block; color: var(--wire);
  font: 500 11px/1.55 var(--mono); letter-spacing: .1em;
}
.invest-question {
  font: 500 clamp(17px,1.45vw,23px)/1.28 var(--sans);
  max-width: 32ch; text-wrap: balance; margin: 6px auto 0;
}
.invest-chart {
  position: relative; height: clamp(196px,30vh,285px); margin: 3px auto 0;
  max-width: 100%; width: 100%; pointer-events: none; isolation: isolate;
}
.invest-chart .invest-chart-lines {display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none}
.invest-chart-lines path {fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round}
.invest-dust {fill: #e3c7ba; opacity: .62}
.invest-guides {stroke: var(--faint-wire); opacity: .58; stroke-width: 1.05; stroke-dasharray: 1 6}
.invest-map-trace {stroke: var(--wire); stroke-width: 1.3; opacity: .88; filter: drop-shadow(0 0 3px #ff8e5c)}
.invest-map-stars {fill: #fff3cb; filter: drop-shadow(0 0 1px var(--wire))}
.invest-last-wire,.invest-drag-wire {stroke: #ffe9bc; stroke-width: 2; filter: drop-shadow(0 0 3px #ff9866)}
.invest-last-wire {opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 0}
.invest-chart button {position: absolute; pointer-events: auto; color: inherit; -webkit-tap-highlight-color: transparent}
.invest-origin {
  width: 42px; height: 42px; border-radius: 50%; padding: 0; transform: translate(-50%,-50%);
  display: grid; place-items: center; touch-action: none; cursor: grab;
}
.invest-origin:active {cursor: grabbing}
.invest-origin i {
  position: relative; width: 9px; height: 9px; background: #fff7d9; border-radius: 50%;
  box-shadow: 0 0 5px 2px #ffd4a8, 0 0 18px 3px #ff97647d;
}
.invest-origin i::before,.invest-origin i::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid #ffc6a181;
}
.invest-origin i::after {inset: -11px; border-color: #ffc7a04f; border-style: dotted}
.invest-choice {
  left: var(--x); top: calc(var(--y) - 16px); transform: translateX(-50%);
  width: 31%; max-width: 153px; min-height: 54px; padding: 0 1px 2px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; gap: 1px; border-radius: 3px; touch-action: manipulation;
}
.invest-choice i {display: grid; position: relative; height: 32px; width: 32px; place-items: center}
.invest-choice i::before,.invest-choice i::after {content: ""; display: block; position: absolute}
.invest-choice i::before {
  width: 10px; height: 10px; border: 1px solid #ffc5a1; transform: rotate(45deg);
  background: #321925; box-shadow: 0 0 0 3px #190e1b9c; transition: transform .2s, background .2s;
}
.invest-choice i::after {width: 3px; height: 3px; border-radius: 100%; background: #fff1d9}
.invest-choice span {
  display: block; padding: 2px 5px; border-radius: 4px; text-wrap: balance;
  color: #fff2e3; background: #170c18cb;
  font: 550 clamp(13px,1.05vw,16px)/1.22 var(--sans);
}
.invest-choice:is(:focus-visible,:hover,.is-target) i::before {transform: rotate(135deg) scale(1.25); background: #88523a}
.invest-choice:is(.is-target,.is-checked) i::after {width: 6px; height: 6px; box-shadow: 0 0 6px #ffe7ae}
.invest-choice.is-checked span {color: #ffdaac}
.invest-choice.is-checked span::before {content: "✓ "; color: #ffcc91}
.investigation .invest-status {
  position: relative; max-width: 48ch; padding: 0 8px; min-height: 2.7em; margin: 0 auto;
  text-align: center; text-wrap: balance; color: #ffe6d3;
  font: 450 clamp(13px,1.04vw,16px)/1.4 var(--sans);
}
.investigation[data-phase=contact] .invest-chart { margin-bottom:16px; }
@media(max-width:760px) {
  .invest-chart {height: clamp(152px,23svh,213px)}
  .invest-choice span {font-size: 13px}
  .invest-question {font-size: 17px}
  .investigation .invest-chart { margin-bottom:8px; }
  .investigation:is([data-phase=explain],[data-phase=plan],[data-phase=verify]) .invest-chart { margin-bottom:20px; }
  .investigation[data-phase=contact] .invest-chart { margin-bottom:32px; }
}
@media(min-width:361px) and (max-width:389px) and (orientation:portrait) {
  .investigation[data-phase=contact] .invest-chart { margin-bottom:52px; }
}
@media(max-width:360px), (max-height:480px) and (orientation:landscape) {
  .invest-chart {height: 139px}
  .invest-step {font-size: 10px}
  .invest-question {font-size: 15px}
  .invest-choice span {font-size: 12px}
  .investigation .invest-status {font-size: 12px; line-height: 1.35}
  .investigation:is([data-phase=plan],[data-phase=verify]) .invest-chart { margin-bottom:36px; }
  .investigation[data-phase=follow] .invest-chart { margin-bottom:18px; }
  .investigation[data-phase=explain] .invest-chart { margin-bottom:48px; }
  .investigation[data-phase=contact] .invest-chart { margin-bottom:48px; }
}
