:root {
  --bg: #081018;
  --bg-deep: #04070d;
  --text: #f5fbff;
  --muted: #a7bdc9;
  --line: rgba(166, 239, 255, 0.18);
  --teal: #36f5d4;
  --pink: #ff5eb9;
  --gold: #ffd174;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 94, 185, 0.2), transparent 31rem),
    radial-gradient(circle at 20% 80%, rgba(54, 245, 212, 0.18), transparent 30rem),
    linear-gradient(145deg, var(--bg-deep), var(--bg) 54%, #101321);
  color: var(--text);
}

button {
  border: 0;
  font: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  isolation: isolate;
}

.app::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 78%);
}

.app::after {
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 36vh;
  min-height: 220px;
  content: "";
  background: linear-gradient(to top, rgba(8, 16, 24, 0.98), rgba(8, 16, 24, 0));
  pointer-events: none;
}

.scene-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  min-height: 620px;
  pointer-events: none;
}

.scene-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 40px;
  background: linear-gradient(to bottom, rgba(4, 7, 13, 0.78), rgba(4, 7, 13, 0));
}

.brand,
.header-actions,
.hero-controls,
.panel-topline,
.location-line,
.share-button,
.primary-action,
.secondary-action,
.runaway-action,
.curiosity-close,
.reset-button {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--teal);
  border: 1px solid rgba(54, 245, 212, 0.32);
  border-radius: 8px;
  background: rgba(10, 23, 32, 0.76);
  box-shadow: 0 0 26px rgba(54, 245, 212, 0.16);
}

.header-actions {
  gap: 10px;
}

.icon-button,
.share-button,
.primary-action,
.secondary-action,
.runaway-action,
.reset-button {
  min-height: 42px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(12, 25, 37, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.icon-button {
  justify-content: center;
  width: 42px;
}

.icon-button:hover,
.share-button:hover,
.primary-action:hover,
.secondary-action:hover,
.runaway-action:hover,
.reset-button:hover {
  transform: translateY(-1px);
  border-color: rgba(54, 245, 212, 0.42);
  background: rgba(19, 40, 56, 0.82);
}

.icon-button.is-active {
  color: #081018;
  border-color: rgba(255, 209, 116, 0.7);
  background: linear-gradient(135deg, var(--gold), var(--pink));
  box-shadow: 0 0 34px rgba(255, 94, 185, 0.32);
}

.share-button {
  gap: 9px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 760;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(250px, 0.55fr);
  align-items: end;
  min-height: 100vh;
  padding: 144px 40px 96px;
  column-gap: 28px;
}

.hero-copy {
  max-width: 620px;
}

.location-line {
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 780;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: 64px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero p {
  max-width: 570px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.58;
}

.hero-controls {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.how-to-list {
  display: flex;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 14px 0 0;
  padding: 0;
  gap: 8px 12px;
  list-style: none;
}

.how-to-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: #ecfbff;
  font-size: 13px;
  font-weight: 760;
}

.how-to-list span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  color: #071017;
  font-size: 13px;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--gold));
}

.click-guide {
  max-width: 520px;
  margin: 10px 0 0;
  color: #d7eef5;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.48;
}

.prank-zone {
  position: relative;
  width: min(100%, 560px);
  min-height: 92px;
  margin-top: 10px;
  overflow: hidden;
}

.primary-action,
.secondary-action,
.runaway-action,
.curiosity-close {
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 820;
}

.primary-action {
  color: #071017;
  border-color: rgba(54, 245, 212, 0.7);
  background: linear-gradient(135deg, var(--teal), #bdfcf0);
  box-shadow: 0 0 42px rgba(54, 245, 212, 0.2);
}

.secondary-action {
  color: var(--text);
  border-color: rgba(255, 209, 116, 0.32);
  background: rgba(14, 25, 38, 0.82);
}

.runaway-action {
  position: absolute;
  top: 8px;
  left: 0;
  min-height: 44px;
  color: #081018;
  border: 1px solid rgba(255, 209, 116, 0.72);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd174, #ff8acb);
  box-shadow: 0 16px 42px rgba(255, 94, 185, 0.22);
  touch-action: none;
  will-change: transform;
}

.angel-toast {
  position: absolute;
  right: 0;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(310px, 100%);
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid rgba(255, 209, 116, 0.38);
  border-radius: 8px;
  background: rgba(8, 14, 22, 0.86);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.angel-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.troll-face {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: #071017;
  font-size: 17px;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #f8fff9);
}

.troll-face.big {
  width: 62px;
  height: 62px;
  margin-inline: auto;
  font-size: 28px;
}

.orbit-panel {
  width: min(100%, 370px);
  margin-left: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(9, 18, 27, 0.82), rgba(10, 21, 34, 0.52));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-topline {
  justify-content: space-between;
  gap: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

.meter {
  position: relative;
  height: 8px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.meter span {
  display: block;
  width: 67%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--pink));
  box-shadow: 0 0 22px rgba(255, 94, 185, 0.34);
  transition: width 320ms ease;
}

.step-list {
  display: grid;
  gap: 8px;
}

.step {
  display: block;
  min-height: 32px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.step.is-current {
  color: var(--text);
  border-color: rgba(255, 209, 116, 0.46);
  background: rgba(255, 209, 116, 0.1);
}

.meme-strip {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 8, 14, 0.72);
}

.strip-track {
  display: flex;
  width: max-content;
  animation: stripMove 24s linear infinite;
}

.strip-track span {
  min-width: max-content;
  padding: 14px 26px;
  color: rgba(245, 251, 255, 0.62);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

.signal-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.6fr) minmax(280px, 1fr);
  gap: 34px;
  padding: 86px 40px 108px;
  background:
    linear-gradient(to bottom, rgba(8, 16, 24, 0.64), rgba(8, 16, 24, 0.98)),
    radial-gradient(circle at 12% 10%, rgba(54, 245, 212, 0.12), transparent 24rem);
}

.signal-copy h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0;
}

.signal-copy p {
  max-width: 470px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.signal-item {
  min-height: 198px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 22, 32, 0.72);
  backdrop-filter: blur(14px);
}

.signal-item span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.signal-item strong {
  display: block;
  margin-top: 36px;
  font-size: 20px;
}

.signal-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.54;
}

.reset-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 12;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--gold);
}

.curiosity-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 6, 11, 0.72);
  backdrop-filter: blur(16px);
}

.curiosity-overlay[hidden] {
  display: none;
}

.curiosity-box {
  width: min(100%, 430px);
  padding: 26px;
  text-align: center;
  border: 1px solid rgba(255, 209, 116, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 209, 116, 0.14), transparent 18rem),
    rgba(8, 16, 24, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.curiosity-box h2 {
  margin: 18px 0 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
}

.curiosity-box p {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.curiosity-close {
  min-height: 44px;
  color: #071017;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), #bdfcf0);
  cursor: pointer;
}

.meme-active .scene-canvas {
  filter: saturate(1.25) contrast(1.06);
}

.meme-active .strip-track span {
  color: var(--gold);
}

@keyframes stripMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 920px) {
  .site-header {
    padding: 14px 18px;
  }

  .share-button span {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 100vh;
    padding: 112px 18px 70px;
  }

  .hero-copy {
    max-width: 560px;
  }

  .hero h1 {
    max-width: 520px;
    font-size: 42px;
    line-height: 1.05;
  }

  .hero p {
    max-width: 470px;
    font-size: 16px;
    line-height: 1.55;
  }

  .orbit-panel {
    width: min(100%, 420px);
    margin: 32px 0 0;
  }

  .signal-section {
    grid-template-columns: 1fr;
    padding: 64px 18px 92px;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-item {
    min-height: 160px;
  }

  .signal-item strong {
    margin-top: 22px;
  }
}

@media (max-width: 560px) {
  .scene-canvas {
    opacity: 0.78;
    transform: translateX(18%);
  }

  .brand span:last-child {
    display: none;
  }

  .site-header {
    gap: 8px;
    padding: 12px 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .icon-button,
  .share-button,
  .primary-action,
  .secondary-action {
    min-height: 40px;
  }

  .hero h1 {
    max-width: 330px;
    font-size: 31px;
    line-height: 1.08;
  }

  .hero p {
    max-width: 340px;
    font-size: 15px;
  }

  .hero-controls {
    align-items: stretch;
    flex-direction: column;
    margin-top: 20px;
  }

  .primary-action,
  .secondary-action,
  .runaway-action {
    width: 100%;
  }

  .prank-zone {
    width: 100%;
    min-height: 116px;
  }

  .angel-toast {
    left: 0;
    right: auto;
    bottom: 0;
  }

  .click-guide {
    max-width: 340px;
    font-size: 13px;
  }

  .how-to-list {
    max-width: 340px;
    margin-top: 12px;
  }

  .orbit-panel {
    padding: 16px;
  }

  .panel-topline {
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.35;
  }

  .curiosity-box h2 {
    font-size: 28px;
  }
}

@media (max-width: 390px) {
  .hero {
    padding-top: 96px;
  }

  .hero h1 {
    max-width: 300px;
    font-size: 29px;
  }

  .hero-controls {
    margin-top: 18px;
  }

  .primary-action,
  .secondary-action,
  .runaway-action,
  .curiosity-close {
    min-height: 46px;
    padding-inline: 14px;
    font-size: 14px;
  }
}

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