:root {
  color-scheme: dark;
  --ink: #f6f0df;
  --muted: #b8c4c0;
  --line: rgba(246, 240, 223, 0.2);
  --panel: rgba(11, 18, 22, 0.72);
  --accent: #68d9c2;
  --accent-two: #ffcb6b;
  --accent-three: #f06f9b;
  --bg-a: #081114;
  --bg-b: #14252b;
  --bg-c: #302642;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(104, 217, 194, 0.2), transparent 28rem),
    radial-gradient(circle at 78% 28%, rgba(240, 111, 155, 0.18), transparent 26rem),
    linear-gradient(135deg, var(--bg-a), var(--bg-b) 52%, var(--bg-c));
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.stage {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(20px, 4vw, 56px);
  isolation: isolate;
}

.stage::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle, #000 0 48%, transparent 78%);
  content: "";
}

.stage::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 30vh;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.34));
  content: "";
}

.coming-soon {
  width: min(720px, 100%);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  text-align: center;
  backdrop-filter: blur(18px);
}

.eye-mark {
  display: inline-grid;
  width: 82px;
  height: 82px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 30px rgba(104, 217, 194, 0.18);
  font-size: 42px;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.eye-mark:hover,
.eye-mark:focus-visible {
  transform: translateY(-3px) scale(1.04);
  background: rgba(104, 217, 194, 0.16);
}

.eye-mark span {
  display: block;
  animation: look 5s infinite;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3.8rem, 10vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.intro {
  width: min(540px, 100%);
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.65;
}

.notify {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  margin: 34px auto 0;
  text-align: left;
}

.notify label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.notify-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.notify input,
.notify button,
.panel-button,
.dock-button,
.corner-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notify input {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  outline: none;
}

.notify input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(104, 217, 194, 0.12);
}

.notify button,
.panel-button {
  padding: 14px 18px;
  background: var(--accent-two);
  color: #18130c;
  font-weight: 900;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.notify button:hover,
.panel-button:hover,
.notify button:focus-visible,
.panel-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.control-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.panel-button {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.dock {
  position: fixed;
  top: 50%;
  right: clamp(14px, 3vw, 30px);
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.dock-button,
.corner-tab,
.star {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  transition:
    transform 170ms ease,
    background 170ms ease,
    border-color 170ms ease;
}

.dock-button {
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
}

.dock-button:hover,
.dock-button:focus-visible,
.corner-tab:hover,
.corner-tab:focus-visible,
.star:hover,
.star:focus-visible {
  border-color: rgba(104, 217, 194, 0.8);
  background: rgba(104, 217, 194, 0.18);
  transform: translateY(-2px) rotate(4deg);
}

.corner-tab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  color: var(--accent-two);
  font-weight: 900;
}

.skyline {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  pointer-events: auto;
}

.star-one {
  top: 13%;
  left: 17%;
  color: var(--accent-two);
}

.star-two {
  top: 21%;
  right: 22%;
  color: var(--accent);
}

.star-three {
  bottom: 24%;
  left: 11%;
  color: var(--accent-three);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--toast-bg, rgba(8, 13, 16, 0.88));
  color: var(--ink);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

#spark-canvas {
  position: fixed;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lights-on {
  --panel: rgba(246, 240, 223, 0.8);
  --ink: #10171a;
  --muted: #3f5557;
  --line: rgba(16, 23, 26, 0.18);
  --toast-bg: rgba(246, 240, 223, 0.94);
  --bg-a: #d9fff4;
  --bg-b: #f6f0df;
  --bg-c: #f9d3df;
  color-scheme: light;
}

.lights-on .toast {
  background: rgba(246, 240, 223, 0.96);
  color: #10171a;
  border-color: rgba(16, 23, 26, 0.22);
  box-shadow: 0 18px 50px rgba(16, 23, 26, 0.16);
}

.moon-mode {
  --accent: #a7b5ff;
  --accent-two: #f0f3ff;
  --accent-three: #d7b6ff;
}

.tempo-fast .eye-mark span {
  animation-duration: 1.6s;
}

.decoded .intro::after {
  display: block;
  margin-top: 14px;
  color: var(--accent-two);
  font-weight: 800;
  content: "Hidden note: launch windows open from the inside.";
}

.found {
  animation: found 420ms ease;
}

@keyframes look {
  0%,
  46%,
  100% {
    transform: translateX(0);
  }
  50%,
  60% {
    transform: translateX(8px);
  }
  70%,
  78% {
    transform: translateX(-8px);
  }
}

@keyframes found {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08) rotate(-2deg);
  }
}

@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  .stage {
    align-items: start;
    padding-top: 26px;
  }

  .coming-soon {
    padding: 26px 18px;
  }

  .notify-row {
    grid-template-columns: 1fr;
  }

  .dock {
    position: static;
    display: flex;
    margin-top: 18px;
    transform: none;
  }

  .corner-tab {
    right: 12px;
    bottom: 12px;
  }

  .star-one {
    left: 7%;
  }

  .star-two {
    right: 8%;
  }
}
