:root {
  --ice: #f7fbfc;
  --mist: #e7f1f4;
  --snow: #ffffff;
  --cyan: #22c8d2;
  --cyan-deep: #1297a5;
  --ink: #22323b;
  --soft-ink: #647780;
  --line: rgba(84, 145, 154, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.95), transparent 34%),
    radial-gradient(circle at 15% 85%, rgba(34, 200, 210, 0.16), transparent 31%),
    linear-gradient(145deg, #ffffff 0%, var(--ice) 34%, var(--mist) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.14) 0,
      rgba(255, 255, 255, 0.14) 1px,
      transparent 1px,
      transparent 18px
    );
  opacity: 0.55;
}

.fog-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.fog,
.soft-light {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(34px);
  transform: translate3d(0, 0, 0);
}

.fog {
  background: rgba(255, 255, 255, 0.58);
  opacity: 0.78;
  transition: opacity 1800ms ease, transform 2200ms ease;
}

.fog-one {
  width: min(74vw, 760px);
  height: 180px;
  top: 17%;
  left: -12%;
}

.fog-two {
  width: min(82vw, 860px);
  height: 230px;
  right: -20%;
  bottom: 21%;
  opacity: 0.64;
}

.fog-three {
  width: min(64vw, 620px);
  height: 150px;
  left: 18%;
  bottom: 6%;
  opacity: 0.48;
}

.soft-light {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  top: 3%;
  right: 9%;
  background: rgba(255, 255, 255, 0.52);
  opacity: 0.26;
  transition: opacity 2200ms ease, transform 2400ms ease;
}

body.fog-cleared .fog-one {
  opacity: 0.22;
  transform: translate3d(-12%, -18px, 0) scale(1.12);
}

body.fog-cleared .fog-two {
  opacity: 0.16;
  transform: translate3d(13%, 24px, 0) scale(1.16);
}

body.fog-cleared .fog-three {
  opacity: 0.12;
  transform: translate3d(0, 32px, 0) scale(1.18);
}

body.fog-cleared .soft-light {
  opacity: 0.42;
  transform: translate3d(-18px, 12px, 0) scale(1.06);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.reset-panel {
  width: min(100%, 680px);
  padding: clamp(34px, 7vw, 68px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 28px 80px rgba(88, 121, 130, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: clamp(96px, 20vw, 148px);
  height: clamp(96px, 20vw, 148px);
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 42px rgba(18, 151, 165, 0.14);
  overflow: hidden;
}

.brand-mark img {
  width: 145%;
  height: 145%;
  object-fit: cover;
  object-position: center 30%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 5.8rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.96;
}

.subtitle {
  max-width: 440px;
  margin: 18px auto 0;
  color: var(--soft-ink);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.6;
}

.message-area {
  height: clamp(132px, 18vw, 164px);
  display: grid;
  place-items: center;
  margin: 36px auto 26px;
  padding: 24px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

#reset-message {
  max-width: 520px;
  margin: 0;
  color: #2f4852;
  font-size: clamp(1.08rem, 2.8vw, 1.45rem);
  line-height: 1.55;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

#reset-message.message-fade {
  opacity: 0;
  transform: translateY(8px);
}

#reset-message.message-long {
  font-size: clamp(0.98rem, 2.25vw, 1.22rem);
}

#reset-message.message-extra-long {
  font-size: clamp(0.9rem, 2vw, 1.08rem);
}

button {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(18, 151, 165, 0.28);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  box-shadow: 0 14px 30px rgba(18, 151, 165, 0.2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(18, 151, 165, 0.25);
  filter: saturate(1.04);
}

button:active {
  transform: translateY(0);
}

button:focus-visible {
  outline: 3px solid rgba(34, 200, 210, 0.32);
  outline-offset: 4px;
}

.sound-control {
  margin-top: 14px;
}

.sound-button {
  min-height: 40px;
  padding: 0 18px;
  color: var(--cyan-deep);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(18, 151, 165, 0.22);
  box-shadow: 0 10px 26px rgba(18, 151, 165, 0.08);
  font-size: 0.94rem;
}

.sound-button:hover {
  box-shadow: 0 14px 30px rgba(18, 151, 165, 0.14);
}

.sound-button.is-playing {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(34, 200, 210, 0.86), rgba(18, 151, 165, 0.86));
}

.music-link {
  width: fit-content;
  max-width: 100%;
  display: block;
  margin: 20px auto 0;
  color: var(--cyan-deep);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  border-bottom: 0;
  transition: color 160ms ease, border-color 160ms ease;
}

.music-link:hover {
  color: var(--ink);
  border-color: rgba(34, 50, 59, 0.35);
}

.music-link:focus-visible {
  outline: 3px solid rgba(34, 200, 210, 0.28);
  outline-offset: 5px;
  border-radius: 4px;
}

@media (max-width: 520px) {
  .reset-panel {
    padding: 32px 20px;
  }

  .message-area {
    height: 154px;
    padding: 22px 12px;
    margin: 30px auto 22px;
  }

  #reset-message.message-long {
    font-size: 1rem;
  }

  #reset-message.message-extra-long {
    font-size: 0.92rem;
  }

  button {
    width: 100%;
  }

  .fog {
    filter: blur(28px);
  }

  .fog-one {
    width: 112vw;
    height: 150px;
    top: 14%;
  }

  .fog-two {
    width: 122vw;
    height: 190px;
    bottom: 17%;
  }

  .fog-three {
    width: 96vw;
    height: 130px;
    left: 4%;
  }
}
