:root {
  --purple: #a88cff;
  --cyan: #8df8ff;
  --dark: #050609;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #08090c;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

button { font: inherit; }

.page-shell {
  min-height: 100vh;
  display: grid;
  place-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 28%, #272530, #0b0c10 48%, #030405);
}

.experience {
  width: min(970px, calc(100vw - 32px));
  aspect-ratio: 970 / 250;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #050609;
  box-shadow: 0 32px 100px #000c, 0 0 0 1px #ffffff20;
  user-select: none;
  touch-action: none;
}

.mouth {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -4;
}

.shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, #040507 0%, #050609f5 33%, #05060966 54%, #02030716 100%),
    linear-gradient(0deg, #0405089e, transparent 65%);
}

.grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .45;
  background:
    linear-gradient(#8df8ff0d 1px, transparent 1px),
    linear-gradient(90deg, #8df8ff0d 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent 42%, #000);
}

.brand {
  position: absolute;
  z-index: 20;
  left: 20px;
  top: 15px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.brand strong { font-size: 25px; letter-spacing: -2.8px; }
.brand span { font-size: 13px; color: #c9bcff; }

.kicker, .mission > span, .report-head > span {
  color: var(--purple);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.intro { position: absolute; left: 20px; top: 57px; }
.intro h1 { font-size: 31px; line-height: .98; letter-spacing: -1.6px; margin: 8px 0 7px; }
.intro em, .report em { color: #b199ff; font-style: normal; }
.intro p { font-size: 11px; color: #bdc0c7; margin: 0 0 13px; }
.intro button, .report button {
  border: 0;
  border-radius: 100px;
  background: #fff;
  color: #08080b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  padding: 9px 13px;
  cursor: pointer;
  box-shadow: 0 0 28px #a589ff3d;
}
.intro button b { color: #795bea; margin-left: 12px; }

.scan-state { position: absolute; inset: 0; }
.scanner-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 110px;
  left: 42%;
  background: linear-gradient(90deg, transparent, #8df8ff12, #c5fbffb8, #8df8ff12, transparent);
  filter: drop-shadow(0 0 8px #8df8ff);
  animation: scanLine 2.2s cubic-bezier(.3,0,.4,1) forwards;
}
.scan-copy {
  position: absolute;
  left: 20px;
  top: 77px;
  width: 230px;
  border-left: 2px solid var(--cyan);
  padding: 7px 0 7px 12px;
  background: linear-gradient(90deg, #071014aa, transparent);
}
.scan-copy span { display: block; color: var(--cyan); font-size: 9px; letter-spacing: 1.6px; margin-bottom: 4px; }
.scan-copy b { font-size: 15px; }
.scan-copy i { display: block; width: 100%; height: 2px; background: #ffffff15; margin-top: 9px; overflow: hidden; }
.scan-copy i:after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  animation: load 2.1s linear forwards;
}
.scan-ping {
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: pingIn .35s ease forwards;
}

.mission {
  position: absolute;
  left: 19px;
  top: 58px;
  width: 205px;
  padding: 12px 14px;
  border: 1px solid #ffffff1d;
  background: #080a0dd9;
  backdrop-filter: blur(14px);
}
.mission > b { float: right; font-size: 23px; line-height: 16px; }
.mission > b small { font-size: 10px; color: #7d8189; }
.mission > i { clear: both; display: block; height: 3px; background: #ffffff12; margin: 13px 0 8px; }
.mission > i u {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  box-shadow: 0 0 12px var(--cyan);
  transition: .35s;
}
.mission p { font-size: 10px; color: #c2c5cb; margin: 0; }

.spot { position: absolute; width: 44px; height: 44px; transform: translate(-50%,-50%); z-index: 5; }
.spot svg { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.spot circle { fill: #08101488; stroke: #91f9ff5c; stroke-width: 1; }
.spot .meter {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 113;
  transition: stroke-dashoffset .09s linear;
  filter: drop-shadow(0 0 3px var(--cyan));
}
.spot > b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; color: #dffeff; }
.deposit {
  position: absolute;
  z-index: -1;
  width: 18px; height: 12px;
  left: 13px; top: 17px;
  border-radius: 60% 35% 55% 38%;
  background: radial-gradient(circle at 35% 30%, #ffe4a0 0 12%, #c18b30 45%, #6d4515 76%, transparent 80%);
  box-shadow: 0 2px 4px #3d270c, 0 0 5px #dca5478a;
  transition: .35s;
}
.spot.active { filter: drop-shadow(0 0 8px #8df8ff); }
.spot.done .deposit { opacity: 0; filter: blur(5px); transform: scale(.05); }
.spot.done svg { opacity: 0; }
.spot.done > b { color: var(--cyan); font-size: 15px; }
.burst { position: absolute; inset: 5px; border-radius: 50%; border: 1px solid transparent; }
.spot.done .burst { animation: burst .6s ease-out; }

.wand {
  position: absolute;
  width: 124px;
  height: 124px;
  z-index: 12;
  pointer-events: none;
  transform: translate(-10px, -10px);
}
.wand img {
  position: absolute;
  left: -45px;
  top: -1px;
  width: 115px;
  height: 150px;
  object-fit: contain;
  mix-blend-mode: normal;
  transform: none;
  filter: drop-shadow(0 8px 12px #000);
}
.nozzle {
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  border: 1px solid #dffeff;
  border-radius: 50%;
  box-shadow: 0 0 11px #8df8ff;
  background: #071116aa;
}
.nozzle:before, .nozzle:after { content: ""; position: absolute; background: var(--cyan); }
.nozzle:before { width: 8px; height: 1px; left: 5px; top: 9px; }
.nozzle:after { width: 1px; height: 8px; left: 9px; top: 5px; }
.nozzle i { position: absolute; inset: 4px; border-radius: 50%; border: 1px solid #ffffff60; }

.beam {
  position: absolute;
  left: 10px;
  right: auto;
  top: 9px;
  width: 0;
  height: 2px;
  transform: translateX(-100%);
  transform-origin: right center;
  background: linear-gradient(90deg, transparent, #b9fbff);
  box-shadow: 0 0 8px var(--cyan);
  transition: .08s;
}
.wand.firing .beam { width: 58px; }

.spray { position: absolute; left: -44px; top: 9px; }
.spray i {
  --n: 0;
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #dffeff;
  box-shadow: 0 0 7px var(--cyan);
  animation: spray .5s linear infinite;
  animation-delay: calc(var(--n) * -.08s);
}

.hold-cue {
  position: absolute;
  right: 15px;
  bottom: 13px;
  padding: 6px 9px;
  border: 1px solid #ffffff18;
  background: #06080ac9;
  color: #afb3ba;
  font-size: 8px;
  letter-spacing: 1px;
}
.hold-cue i {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  margin-right: 6px;
}

.report {
  position: absolute;
  inset: 0;
  padding: 53px 22px 18px;
  width: 58%;
  background: linear-gradient(90deg, #050609fa 0, #050609ec 68%, transparent);
  animation: reportIn .5s ease;
}
.report-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: 330px;
  border-bottom: 1px solid #ffffff20;
  padding-bottom: 5px;
}
.report-head > b { font-size: 26px; color: var(--cyan); }
.report-head small { font-size: 10px; }
.report h2 { font-size: 22px; line-height: 1.03; letter-spacing: -.7px; margin: 8px 0 10px; }
.report-stats { display: flex; gap: 6px; }
.report-stats span { font-size: 8px; color: #b6bac1; padding: 5px 7px; border: 1px solid #ffffff16; background: #ffffff08; }
.report-stats b { color: #fff; margin-right: 3px; }
.report button { position: absolute; right: 20px; bottom: 20px; background: var(--purple); font-size: 8px; padding: 7px 10px; }

.corner { position: absolute; width: 15px; height: 15px; right: 9px; pointer-events: none; }
.c1 { top: 9px; border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.c2 { bottom: 9px; border-bottom: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.concept { position: absolute; left: 20px; bottom: 9px; color: #767a81; font-size: 6px; letter-spacing: 1.5px; }

.outside-note { text-align: center; color: #888b92; font-size: 11px; margin: 13px 0 0; }

@keyframes scanLine {
  0% { left: 42%; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 97%; opacity: 0; }
}
@keyframes load { from { width: 0; } to { width: 100%; } }
@keyframes pingIn {
  0% { opacity: 0; transform: scale(2); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes burst {
  0% { border-color: var(--cyan); transform: scale(.5); opacity: 1; }
  100% { border-color: transparent; transform: scale(2); opacity: 0; }
}
@keyframes spray {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(calc(-34px - var(--n) * 3px), calc((var(--n) - 2) * 5px)) scale(.2); opacity: 0; }
}
@keyframes reportIn { from { opacity: 0; transform: translateX(-15px); } }

@media (max-width: 650px) {
  .page-shell { padding: 10px; }
  .experience { width: 100%; min-height: 250px; aspect-ratio: auto; }
  .mouth { object-position: 61% center; }
  .intro h1 { font-size: 25px; }
  .mission { width: 180px; }
  .wand img { left: -30px; top: 2px; width: 84px; height: 110px; }
  .report { width: 78%; }
  .report-head { width: 270px; }
  .report-stats span:nth-child(2) { display: none; }
}
