:root {
  --bg-a: #d4f7ff;
  --bg-b: #7cd9ff;
  --bg-c: #5fc7ef;
  --ink: #083147;
  --glass: rgba(233, 253, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.72);
  --btn-a: #ecffff;
  --btn-b: #9deaff;
  --btn-c: #49c8ef;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  font-family: "Verdana", "Tahoma", "Segoe UI", sans-serif;
}

body {
  position: relative;
  background:
    radial-gradient(circle at 13% 15%, rgba(255, 255, 255, 0.98), transparent 26%),
    radial-gradient(circle at 83% 78%, rgba(196, 255, 248, 0.75), transparent 42%),
    radial-gradient(circle at 65% 10%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(145deg, var(--bg-a), var(--bg-b) 45%, var(--bg-c));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.45), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(180, 246, 255, 0.42), transparent 24%),
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.3), transparent 34%);
  animation: aeroDrift 16s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 48%, transparent 57%),
    linear-gradient(165deg, transparent 0%, rgba(255, 255, 255, 0.16) 62%, transparent 73%);
  mix-blend-mode: screen;
}

#sim {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  z-index: 1;
}

#jumpscare-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#jumpscare-overlay[hidden] {
  display: none !important;
}

#jumpscare-overlay.active {
  opacity: 1;
  visibility: visible;
}

#jumpscare-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#tornado-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.96), transparent 46%),
    linear-gradient(180deg, var(--btn-a), var(--btn-b) 58%, var(--btn-c));
  box-shadow:
    inset 0 0 0 1px rgba(130, 223, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -10px 20px rgba(19, 139, 189, 0.22),
    0 10px 26px rgba(5, 111, 150, 0.3);
  backdrop-filter: blur(7px) saturate(1.2);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

#tornado-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.2);
  box-shadow:
    inset 0 0 0 1px rgba(145, 230, 255, 0.64),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -10px 20px rgba(19, 139, 189, 0.2),
    0 14px 28px rgba(7, 115, 153, 0.33);
}

#tornado-btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow:
    inset 0 0 0 1px rgba(106, 207, 244, 0.62),
    inset 0 2px 8px rgba(14, 101, 138, 0.25),
    0 7px 16px rgba(6, 96, 128, 0.3);
}

@keyframes aeroDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-1.5%, 1.2%, 0) scale(1.04);
  }
}
