/* Special secret and secret world */
.special-secret-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: hidden;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    background-color 300ms ease;
}

.special-secret-screen {
  pointer-events: auto;
}

.special-secret-overlay-active {
  opacity: 1;
}

.special-secret-overlay-blackout {
  background: #020402;
}

.special-secret-overlay-poweroff {
  background: #010101;
}

.special-secret-noise,
.special-secret-tracking,
.special-secret-tear,
.special-secret-horizontal,
.special-secret-poweroff {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.special-secret-noise {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(248, 248, 248, 0.05) 0 2px,
      rgba(15, 15, 15, 0.14) 2px 4px
    ),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 62%);
  mix-blend-mode: screen;
  animation: specialSecretStatic 120ms steps(3, end) infinite;
}

.special-secret-tracking {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(240, 255, 245, 0.18) 48%, rgba(255, 255, 255, 0) 100%);
  filter: blur(2px);
  animation: specialSecretTracking 360ms linear infinite;
}

.special-secret-tear {
  background:
    linear-gradient(90deg, rgba(255, 0, 68, 0.2), rgba(255, 255, 255, 0.04), rgba(0, 212, 255, 0.18)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0 6px,
      rgba(0, 0, 0, 0) 6px 12px
    );
  mix-blend-mode: screen;
  animation: specialSecretTear 220ms steps(2, end) infinite;
}

.special-secret-horizontal {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0 10px,
      rgba(255, 255, 255, 0.04) 10px 12px,
      rgba(0, 0, 0, 0) 12px 24px,
      rgba(255, 255, 255, 0.09) 24px 29px,
      rgba(0, 0, 0, 0) 29px 42px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18));
  mix-blend-mode: screen;
  filter: blur(0.6px);
  animation: specialSecretHorizontalBands 150ms steps(2, end) infinite;
}

.special-secret-overlay-stage-1 .special-secret-noise {
  opacity: 0.2;
}

.special-secret-overlay-stage-1 .special-secret-tracking {
  opacity: 0.16;
}

.special-secret-overlay-stage-2 .special-secret-noise {
  opacity: 0.42;
}

.special-secret-overlay-stage-2 .special-secret-tracking {
  opacity: 0.28;
}

.special-secret-overlay-stage-2 .special-secret-tear {
  opacity: 0.16;
}

.special-secret-overlay-stage-2 .special-secret-horizontal {
  opacity: 0.12;
}

.special-secret-overlay-stage-3 .special-secret-noise {
  opacity: 0.66;
}

.special-secret-overlay-stage-3 .special-secret-tracking {
  opacity: 0.38;
}

.special-secret-overlay-stage-3 .special-secret-tear {
  opacity: 0.3;
}

.special-secret-overlay-stage-3 .special-secret-horizontal {
  opacity: 0.26;
}

.special-secret-overlay-stage-4 .special-secret-noise {
  opacity: 0.9;
}

.special-secret-overlay-stage-4 .special-secret-tracking {
  opacity: 0.54;
}

.special-secret-overlay-stage-4 .special-secret-tear {
  opacity: 0.46;
}

.special-secret-overlay-stage-4 .special-secret-horizontal {
  opacity: 0.42;
}

.special-secret-overlay-stage-5 .special-secret-noise {
  opacity: 1;
}

.special-secret-overlay-stage-5 .special-secret-tracking {
  opacity: 0.72;
}

.special-secret-overlay-stage-5 .special-secret-tear {
  opacity: 0.62;
}

.special-secret-overlay-stage-5 .special-secret-horizontal {
  opacity: 0.62;
}

.special-secret-overlay-stage-6 .special-secret-noise {
  opacity: 1;
}

.special-secret-overlay-stage-6 .special-secret-tracking {
  opacity: 0.86;
}

.special-secret-overlay-stage-6 .special-secret-tear {
  opacity: 0.9;
}

.special-secret-overlay-stage-6 .special-secret-horizontal {
  opacity: 0.84;
}

.special-secret-poweroff {
  display: grid;
  place-items: center;
  background: #020202;
}

.special-secret-poweroff-line,
.special-secret-poweroff-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.special-secret-poweroff-line {
  width: min(88vw, 1280px);
  height: 2px;
  background: #fffef7;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.98),
    0 0 28px rgba(255, 255, 255, 0.76),
    0 0 58px rgba(255, 255, 255, 0.4);
}

.special-secret-poweroff-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fffef7;
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.95),
    0 0 34px rgba(255, 255, 255, 0.75),
    0 0 64px rgba(255, 255, 255, 0.45);
  transform: scale(0);
}

.special-secret-overlay-poweroff .special-secret-poweroff {
  opacity: 1;
}

.special-secret-overlay-poweroff .special-secret-poweroff-line {
  animation: specialSecretPowerOffLine 520ms ease-out forwards;
}

.special-secret-overlay-poweroff .special-secret-poweroff-dot {
  animation: specialSecretPowerOffDot 700ms ease-in forwards;
  animation-delay: 420ms;
}

.special-secret-terminal-shell {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 260ms ease;
}

.special-secret-overlay-terminal .special-secret-terminal-shell {
  opacity: 1;
}

.special-secret-overlay-terminal,
.special-secret-overlay-terminal-ready {
  background: #010101;
}

.special-secret-terminal-line {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  color: #4cff77;
  text-shadow:
    0 0 10px rgba(76, 255, 119, 0.45),
    0 0 22px rgba(76, 255, 119, 0.18);
  font-family: "VT323", "IBM Plex Mono", monospace;
  font-size: clamp(1.15rem, 2.4vw, 1.95rem);
  letter-spacing: 0.08em;
  text-transform: none;
  transform: translateY(-2vh);
}

.special-secret-terminal-label,
.special-secret-terminal-input {
  display: inline-block;
}

.special-secret-terminal-input {
  min-width: 1ch;
  color: #86ff9e;
}

.special-secret-terminal-label {
  white-space: pre;
}

.special-secret-terminal-cursor {
  width: 0.7ch;
  height: 1.1em;
  margin-left: -0.14em;
  background: currentColor;
  box-shadow: 0 0 12px rgba(76, 255, 119, 0.45);
  animation: specialSecretCursorBlink 0.95s steps(2, end) infinite;
}

.special-secret-overlay-terminal .special-secret-terminal-cursor {
  opacity: 0;
}

.special-secret-overlay-terminal-ready .special-secret-terminal-cursor {
  opacity: 1;
}

.secret-world-screen {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  cursor: default;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, #fff8fe 0%, #ffe6fb 22%, #dff4ff 46%, #fff1b8 70%, #ffd7f0 100%);
}

.secret-world-canvas-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.secret-world-canvas-layer-front {
  z-index: 3;
}

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

.secret-world-sky {
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.secret-world-sky-a {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 170, 221, 0.5), rgba(255, 170, 221, 0) 20%),
    radial-gradient(circle at 82% 24%, rgba(145, 226, 255, 0.46), rgba(145, 226, 255, 0) 24%),
    radial-gradient(circle at 50% 85%, rgba(255, 224, 130, 0.34), rgba(255, 224, 130, 0) 30%);
  animation: secretWorldFloatA 14s ease-in-out infinite alternate;
}

.secret-world-sky-b {
  background:
    radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 16%),
    radial-gradient(circle at 74% 64%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 14%);
  filter: blur(12px);
  animation: secretWorldFloatB 18s ease-in-out infinite alternate;
}

.secret-world-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(980px, 100%);
  padding: 56px 30px;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 246, 253, 0.82)),
    linear-gradient(135deg, rgba(255, 192, 232, 0.3), rgba(174, 234, 255, 0.3));
  box-shadow:
    0 28px 80px rgba(255, 125, 197, 0.26),
    inset 0 0 0 8px rgba(255, 255, 255, 0.34),
    inset 0 0 40px rgba(255, 255, 255, 0.5);
  text-align: center;
  cursor: default;
}

.secret-world-content::before,
.secret-world-content::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 30px;
  pointer-events: none;
}

.secret-world-content::before {
  border: 2px dashed rgba(255, 170, 214, 0.54);
}

.secret-world-content::after {
  inset: auto 28px -24px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 173, 225, 0.32), rgba(255, 173, 225, 0));
  filter: blur(12px);
}

.secret-world-kicker {
  margin: 0;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ff74b5;
}

.secret-world-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.9rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fffdf4;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.8),
    0 0 18px rgba(255, 189, 221, 0.9),
    0 0 34px rgba(255, 219, 130, 0.75),
    0 0 54px rgba(153, 229, 255, 0.55);
  animation: secretWorldTitleSparkle 1.9s ease-in-out infinite alternate;
}

.secret-world-subtitle {
  max-width: 28rem;
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1rem, 2.6vw, 1.45rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff5ea6;
}

.secret-world-unicorns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  animation: secretWorldBob 3.2s ease-in-out infinite;
}

.secret-world-return-button {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff4ca0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 238, 248, 0.94)),
    linear-gradient(90deg, rgba(255, 181, 220, 0.9), rgba(180, 237, 255, 0.9));
  box-shadow:
    0 14px 28px rgba(255, 122, 193, 0.26),
    inset 0 0 0 3px rgba(255, 255, 255, 0.7),
    0 0 22px rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.secret-world-return-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 18px 34px rgba(255, 122, 193, 0.34),
    inset 0 0 0 3px rgba(255, 255, 255, 0.76),
    0 0 28px rgba(255, 255, 255, 0.92);
  filter: saturate(1.1);
}

.secret-world-return-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 5px;
}

.secret-world-rainbows,
.secret-world-clouds,
.secret-world-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.secret-world-rainbow {
  position: absolute;
  width: min(34vw, 360px);
  aspect-ratio: 1 / 0.7;
  border-radius: 999px 999px 0 0;
  border: 18px solid transparent;
  border-bottom: 0;
  opacity: 0.84;
}

.secret-world-rainbow::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  border: 18px solid transparent;
  border-bottom: 0;
  background:
    linear-gradient(90deg, #ff7ac7, #ffb45a, #fff37f, #7ff4aa, #87dbff, #c88cff) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.secret-world-rainbow-left {
  left: -4vw;
  bottom: 14vh;
  transform: rotate(-8deg);
}

.secret-world-rainbow-right {
  right: -4vw;
  top: 14vh;
  transform: rotate(10deg) scaleX(-1);
}

.secret-world-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow:
    42px -12px 0 10px rgba(255, 255, 255, 0.9),
    84px 0 0 4px rgba(255, 255, 255, 0.94),
    18px 14px 38px rgba(255, 189, 232, 0.24);
}

.secret-world-cloud-a {
  top: 11vh;
  left: 8vw;
  width: 108px;
  height: 42px;
  animation: secretWorldDrift 14s linear infinite;
}

.secret-world-cloud-b {
  top: 22vh;
  right: 14vw;
  width: 132px;
  height: 48px;
  animation: secretWorldDrift 18s linear infinite reverse;
}

.secret-world-cloud-c {
  bottom: 14vh;
  left: 18vw;
  width: 120px;
  height: 44px;
  animation: secretWorldDrift 16s linear infinite;
}

.secret-world-sparkles span {
  position: absolute;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  animation: secretWorldSparkle 1.8s ease-in-out infinite;
}

.secret-world-sparkles span:nth-child(1) { top: 12%; left: 18%; animation-delay: 0s; }
.secret-world-sparkles span:nth-child(2) { top: 20%; right: 22%; animation-delay: 0.3s; }
.secret-world-sparkles span:nth-child(3) { top: 34%; left: 10%; animation-delay: 0.8s; }
.secret-world-sparkles span:nth-child(4) { bottom: 28%; right: 14%; animation-delay: 1.1s; }
.secret-world-sparkles span:nth-child(5) { bottom: 16%; left: 24%; animation-delay: 0.5s; }
.secret-world-sparkles span:nth-child(6) { top: 10%; left: 50%; animation-delay: 1.4s; }
