@import url("/styles/fonts.css");

@property --music-angle-1 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -75deg;
}

@property --music-angle-2 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -45deg;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  overflow-x: hidden;
  font-family: SupplyMono, monospace;
  cursor: none !important;
}

body {
  margin: 0;
  background: #000;
  overflow-x: hidden;
  overflow-y: auto;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
}

canvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Scroll Container */
.scroll-container {
  position: relative;
  height: 1600vh;
  width: 100%;
  pointer-events: none;
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 120px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 100;
  user-select: none;
}

.scroll-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  transition: none;
}

.scroll-marker {
  position: absolute;
  left: 10px;
  font-family: "Cavier", monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.65);
  transition: color 0.3s ease;
}

.scroll-marker.past {
  top: -4px;
}

.scroll-marker.present {
  top: 49%;
  transform: translateY(-50%);
}

.scroll-marker.future {
  bottom: -4px;
}

.scroll-marker.active {
  color: rgba(255, 255, 255, 0.95);
}

/* Scroll Hint — archive-system scanning beacon.
   The ring stays fixed. Scroll input pushes the arrow down until it
   vanishes at the lower edge, while a signal dot drops into center. */
.scroll-hint {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 44px;
  z-index: 100;
  pointer-events: none;
  --beacon-color: 232, 244, 255;
  animation: beacon-idle-breathe 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 2px rgba(var(--beacon-color), 0.12));
  opacity: 0.96;
}

.scroll-hint.is-transmitting,
.scroll-hint.is-settling {
  animation: none;
  filter: drop-shadow(0 0 5px rgba(var(--beacon-color), 0.32));
  opacity: 1;
}

.scroll-hint-arrow {
  position: absolute;
  top: 3.5px;
  left: 50%;
  width: 8px;
  height: 8px;
  overflow: visible;
  opacity: 0.92;
  transform: translateX(-50%);
  color: rgba(var(--beacon-color), 0.96);
  filter: drop-shadow(0 0 4px rgba(var(--beacon-color), 0.36));
  transition: opacity 160ms ease, transform 160ms ease;
}

.scroll-hint.is-up .scroll-hint-arrow {
  top: 2.85px;
}

.scroll-hint-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-hint::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 1.5px solid rgba(var(--beacon-color), 0.9);
  background: rgba(var(--beacon-color), 0);
  transform: translateY(0) scale(1);
  animation: none;
  opacity: 0.9;
  box-shadow: 0 0 8px rgba(var(--beacon-color), 0.2);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  will-change: opacity, box-shadow;
}

.scroll-hint::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: rgba(var(--beacon-color), 0.98);
  opacity: 0;
  transform: translateY(0) scale(0.45);
  box-shadow: 0 0 5px rgba(var(--beacon-color), 0.34);
  animation: none;
  will-change: transform, opacity;
}

.scroll-hint.is-transmitting::before {
  opacity: 0.96;
  border-color: rgba(var(--beacon-color), 0.92);
  box-shadow: 0 0 9px rgba(var(--beacon-color), 0.28);
}

.scroll-hint.is-transmitting .scroll-hint-arrow {
  animation: beacon-arrow-exit 380ms cubic-bezier(0.36, 0, 0.66, 1) both;
}

.scroll-hint.is-transmitting::after {
  animation: beacon-dot-enter 540ms cubic-bezier(0.34, 0, 0.3, 1) 380ms both;
}

.scroll-hint.is-settling .scroll-hint-arrow {
  animation: beacon-arrow-return 520ms cubic-bezier(0.22, 1, 0.36, 1) 460ms both;
}

.scroll-hint.is-settling::after {
  animation: beacon-dot-release 460ms cubic-bezier(0.4, 0, 0.62, 1) both;
}

.scroll-hint.is-up.is-transmitting .scroll-hint-arrow {
  animation: beacon-arrow-exit-up 380ms cubic-bezier(0.36, 0, 0.66, 1) both;
}

.scroll-hint.is-release-up.is-settling::after {
  animation: beacon-dot-release-up 460ms cubic-bezier(0.4, 0, 0.62, 1) both;
}

.scroll-hint.is-scrolled:not(.is-transmitting)::before {
  opacity: 0.56;
  box-shadow: 0 0 4px rgba(var(--beacon-color), 0.1);
}

@keyframes beacon-idle-breathe {
  0%,
  100% {
    opacity: 0.58;
    filter: drop-shadow(0 0 0 rgba(var(--beacon-color), 0.04));
  }
  48% {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(var(--beacon-color), 0.3));
  }
  54% {
    opacity: 0.9;
    filter: drop-shadow(0 0 3px rgba(var(--beacon-color), 0.18));
  }
  58% {
    opacity: 0.98;
    filter: drop-shadow(0 0 5px rgba(var(--beacon-color), 0.28));
  }
}

@keyframes beacon-arrow-exit {
  0% {
    opacity: 0.92;
    transform: translateX(-50%) translateY(0);
  }
  68% {
    opacity: 0.78;
    transform: translateX(-50%) translateY(4px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
}

@keyframes beacon-arrow-return {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  36% {
    opacity: 0.82;
  }
  100% {
    opacity: 0.92;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes beacon-arrow-exit-up {
  0% {
    opacity: 0.92;
    transform: translateX(-50%) translateY(0);
  }
  68% {
    opacity: 0.78;
    transform: translateX(-50%) translateY(-4px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
}

@keyframes beacon-arrow-return-up {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  36% {
    opacity: 0.82;
  }
  100% {
    opacity: 0.92;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes beacon-dot-enter {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.42);
  }
  42% {
    opacity: 0.88;
    transform: translateY(0) scale(0.78);
  }
  100% {
    opacity: 0.92;
    transform: translateY(0) scale(1);
  }
}

@keyframes beacon-dot-release {
  0% {
    opacity: 0.86;
    transform: translateY(0) scale(1);
  }
  72% {
    opacity: 0.66;
    transform: translateY(6px) scale(0.72);
  }
  100% {
    opacity: 0;
    transform: translateY(7px) scale(0.5);
  }
}

@keyframes beacon-dot-release-up {
  0% {
    opacity: 0.86;
    transform: translateY(0) scale(1);
  }
  72% {
    opacity: 0.66;
    transform: translateY(-6px) scale(0.72);
  }
  100% {
    opacity: 0;
    transform: translateY(-7px) scale(0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint::before,
  .scroll-hint::after {
    animation: none;
    opacity: 0.7;
    transform: translateY(0) scale(1);
  }
  .scroll-hint::after {
    display: none;
  }
}

.curzr-cursor-wrap {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483647;
  opacity: 0;
}

.curzr-glitch-effect {
  pointer-events: none;
}

.curzr-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent;
}

.curzr-pulse-ring.is-active {
  animation: curzr-ring-pulse 1.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.curzr-pulse-ring--filtered {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: invert(1) hue-rotate(135deg) brightness(1.2);
  -webkit-mask: radial-gradient(circle, transparent 65%, #000 65.35%, #000 100%);
  mask: radial-gradient(circle, transparent 65%, #000 65.35%, #000 100%);
}

@keyframes curzr-ring-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.75;
  }
  75% {
    transform: translate(-50%, -50%) scale(1.16);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.16);
    opacity: 0;
  }
}

#display-container {
  position: fixed; /* 固定在视口，不随滚动条移动 */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  pointer-events: none;
  font-family: Cavier, monospace;
  color: white;
  z-index: 1000;
}
/* 容器确保是相对定位的基准 */
.content-wrapper {
  position: relative;
  width: 100%; /* 或者你原本的 80% */
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 统一控制 text-box 和 wake-up-btn */
#text-box, #wake-up-btn {
  position: absolute;
  /* 核心对齐属性 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 完美的绝对居中 */

  font-size: 1.2rem;
  max-width: 70%;
  width: 100%; /* 确保文本宽度一致 */
  text-align: center;
  transition: filter 0.8s ease, opacity 0.8s ease;
  padding: 0;
  margin: 0;
  display:inline-block;
}
.fade-out span{
  animation: blur-text 0.75s ease forwards;
}

@keyframes blur-text{
  0%{
    filter: blur(0px);
    opacity:1;
  }
  100%{
    filter: blur(6px);
    opacity:0;
  }
}

/* 基础容器设置 */
#wake-up-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: fit-content;

  /* 确保内部 flex 容器不会溢出 */
  display: flex;
  justify-content: center;
  align-items: center;

  background: none;
  border: none;
  cursor: none;

  /* 基础可见性 */
  opacity: 0;
  pointer-events: none;

  /* 3D 深度感 */
  perspective: 1000px;
}
#wake-up-btn.show {
  opacity: 1;
  pointer-events: all;
}
#wake-up-btn .text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  transform-style: preserve-3d;
  pointer-events: none; /* 让交互穿透到 button 身上 */
}
/* 字符容器 */
.char {
  display: inline-block;
  position: relative;
  font-family: Cavier, monospace;
  font-size: 1.2rem;
  line-height: 1;
  color: transparent; /* 隐藏原始文本 */

  transform-style: preserve-3d;
  /* 过渡效果：增加一点回弹感 cubic-bezier */
  transition: transform 0.6s cubic-bezier(0.6, 0, 0.4, 1);
  transition-delay: var(--delay);
}

/* 伪元素通用样式：模拟立方体的两个面 */
.char::before,
.char::after {
  content: attr(data-char);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
}

/* 正面：默认显示 */
.char::after {
  transform: translateZ(0.5em); /* 向前推半个字高 */
}

/* 底面：翻转后显示的文字 */
.char::before {
  /* 初始躺在下方，旋转90度并向下偏移 */
  transform: rotateX(-90deg) translateZ(0.5em);
  color: #000; /* 可以给hover后的文字换个颜色 */
}

/* --- 交互逻辑 --- */

/* Hover 时，字符绕 X 轴旋转 90 度 */
#wake-up-btn:hover .char {
  transform: rotateX(90deg);
}


body.locked {
  overflow: hidden !important; /* 强制锁定滚动条 */
}

#text-box {
  min-height: 1.2em; /* 防止空文本时容器塌陷 */
  /* 其他样式保持 */
}

.music-btn {
  --border-width: clamp(1px, 0.0625em, 4px);
  --anim-hover-time: 400ms;
  --anim-hover-ease: cubic-bezier(0.25, 1, 0.5, 1);

  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  z-index: 9999;
  cursor: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: perspective(700px) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  border-radius: 12px;
  border: none;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(
      -75deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.105),
      rgba(255, 255, 255, 0.015)
    );
  backdrop-filter: blur(2px) saturate(135%);
  -webkit-backdrop-filter: blur(2px) saturate(135%);
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.035),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.28),
    0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.16),
    0 0 0.08em 0.18em inset rgba(255, 255, 255, 0.12),
    0 0 0 0 rgba(255, 255, 255, 1);
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    background var(--anim-hover-time) var(--anim-hover-ease),
    backdrop-filter var(--anim-hover-time) var(--anim-hover-ease),
    box-shadow var(--anim-hover-time) var(--anim-hover-ease),
    --music-angle-1 500ms ease;
}

.music-btn::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: calc(100% - var(--border-width));
  height: calc(100% - var(--border-width));
  top: calc(var(--border-width) / 2);
  left: calc(var(--border-width) / 2);
  box-sizing: border-box;
  border-radius: 11px;
  background: linear-gradient(
    var(--music-angle-2),
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.24) 42% 50%,
    rgba(255, 255, 255, 0) 55%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  transition:
    background-position calc(var(--anim-hover-time) * 1.25) var(--anim-hover-ease),
    --music-angle-2 calc(var(--anim-hover-time) * 1.25) var(--anim-hover-ease);
}

.music-btn::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: calc(var(--border-width) / -2);
  border-radius: 13px;
  padding: var(--border-width);
  box-sizing: border-box;
  background:
    conic-gradient(
      from var(--music-angle-1) at 50% 50%,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0) 5% 40%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0) 60% 95%,
      rgba(0, 0, 0, 0.5)
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.16));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(255, 255, 255, 0.28);
  transition:
    box-shadow var(--anim-hover-time) var(--anim-hover-ease),
    --music-angle-1 500ms ease;
}

.music-btn:hover {
  transform: perspective(700px) translate3d(4px, -6px, 20px) rotateX(13deg) rotateY(17deg) scale(1.04);
  backdrop-filter: blur(0.01em);
  -webkit-backdrop-filter: blur(0.01em);
  box-shadow:
    inset 1px 0 0 rgba(116, 244, 255, 0.8),
    inset -1px 0 0 rgba(205, 126, 255, 0.75),
    inset 0 1px 0 rgba(255, 236, 166, 0.65),
    inset 0 -1px 0 rgba(255, 125, 176, 0.58),
    inset 0 0 0.32em rgba(116, 244, 255, 0.12),
    inset 0 0 0.46em rgba(205, 126, 255, 0.1),
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
    0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
    0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5),
    0 0 0 0 rgba(255, 255, 255, 1);
}

.music-btn:hover::before {
  background-position: 25% 50%;
}

.music-btn:hover::after {
  --music-angle-1: -125deg;
  background:
    conic-gradient(
      from var(--music-angle-1) at 50% 50%,
      rgba(116, 244, 255, 0.78),
      rgba(255, 255, 255, 0.12) 8% 34%,
      rgba(205, 126, 255, 0.82) 46%,
      rgba(255, 255, 255, 0.1) 58% 84%,
      rgba(255, 222, 148, 0.72)
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.35));
  box-shadow:
    inset 0 0 0 calc(var(--border-width) / 2) rgba(255, 255, 255, 0.58),
    inset 0 0 0.28em rgba(116, 244, 255, 0.16),
    inset 0 0 0.42em rgba(205, 126, 255, 0.12);
}

.music-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 18px;
  height: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translate(-50%, -50%) translateZ(18px);
}

.music-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.18);
  transform-origin: center;
  transition: transform 300ms ease, opacity 300ms ease;
}

.music-line-1 {
  transform: translate(-50%, -50%) translate(-3px, 0) rotate(90deg);
}

.music-line-2 {
  transform: translate(-50%, -50%) translate(3px, 0) rotate(90deg);
}

.music-line-3 {
  opacity: 0;
  transform: translate(-50%, -50%) translate(3px, 0) rotate(90deg);
}

.music-btn:not(.is-playing) .music-line-1 {
  transform: translate(-50%, -50%) translate(-4px, 0) rotate(90deg);
}

.music-btn:not(.is-playing) .music-line-2 {
  transform: translate(-50%, -50%) translate(0.5px, -2.5px) rotate(29deg);
}

.music-btn:not(.is-playing) .music-line-3 {
  opacity: 1;
  transform: translate(-50%, -50%) translate(0.5px, 2.5px) rotate(-29deg);
}

/* ============ Top-edge overlay (shared logic with Main scene) ============ */
.awake-overlay-mask {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
}

.awake-overlay-page {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  --awake-overlay-edge-y: 0.1%;
  --awake-overlay-pointer-events: none;
  --sw-pink: #ff2a6d;
  --sw-cyan: #05d9e8;
  --sw-purple: #7700ff;
  --sw-magenta: #d300c5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255, 210, 235, 0.94);
  background: linear-gradient(180deg, #0a0020 0%, #12002e 46%, #050010 100%);
  font-family: "supplyMono", monospace;
  -webkit-clip-path: url(#awakeOverlayClipPath);
  clip-path: url(#awakeOverlayClipPath);
  opacity: var(--awake-overlay-opacity, 0);
  pointer-events: var(--awake-overlay-pointer-events);
  transition: opacity 160ms ease;
  will-change: clip-path, opacity;
}

.awake-overlay-page,
.awake-overlay-page * {
  cursor: none;
}

.awake-overlay-page::before {
  content: "";
  position: absolute;
  inset: -2px 0;
  z-index: 2;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(5, 217, 232, 0.12) 0,
      rgba(5, 217, 232, 0.12) 1px,
      transparent 1px,
      transparent 3px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 42, 109, 0.16) 0,
      rgba(255, 42, 109, 0.16) 2px,
      transparent 2px,
      transparent 9px
    );
  opacity: 0.85;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: awakeOverlayScanlines 8s linear infinite;
}

@keyframes awakeOverlayScanlines {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 3px, 0 9px;
  }
}

/* Synthwave horizon scene as the overlay background. */
.awake-overlay-horizon {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.awake-overlay-horizon canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.awake-overlay-page::after {
  content: "";
  position: absolute;
  top: var(--awake-overlay-edge-y);
  left: -8%;
  width: 116%;
  height: clamp(72px, 12vh, 150px);
  border-top: 2px solid var(--sw-cyan);
  background:
    linear-gradient(180deg, rgba(5, 217, 232, 0.55), rgba(255, 42, 109, 0.28) 32%, transparent 78%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 42, 109, 0.5), transparent 64%);
  box-shadow:
    0 -1px 0 rgba(5, 217, 232, 0.9),
    0 0 24px rgba(255, 42, 109, 0.55),
    0 0 48px rgba(5, 217, 232, 0.3);
  filter: blur(0.2px);
  opacity: var(--awake-overlay-edge-shadow, 0);
  transform: translateY(-1px);
  transform-origin: center top;
}

.awake-overlay-scroll-line {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--sw-pink), var(--sw-cyan));
  box-shadow: 0 0 8px var(--sw-cyan), 0 0 16px var(--sw-pink);
  opacity: var(--awake-overlay-scroll-opacity, 0);
  pointer-events: none;
  transform: scaleX(var(--awake-overlay-scroll-progress, 0));
  transform-origin: left center;
}

.awake-overlay-scroll-percent {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 5;
  color: var(--sw-cyan);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-shadow: 0 0 8px rgba(5, 217, 232, 0.8);
  opacity: var(--awake-overlay-readout-opacity, 0);
  pointer-events: none;
}

.awake-overlay-scan-readout {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  display: flex;
  gap: 18px;
  color: rgba(255, 42, 109, 0.78);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-shadow: 0 0 6px rgba(255, 42, 109, 0.55);
  opacity: var(--awake-overlay-readout-opacity, 0);
  pointer-events: none;
  text-transform: uppercase;
}

#awakeOverlayCoordReadout {
  font-size: 10px;
}

.awake-overlay-page__inner {
  position: relative;
  z-index: 3;
  width: min(78vw, 880px);
  max-height: min(78vh, 760px);
  padding: 0 clamp(24px, 4vw, 48px);
  overflow-y: auto;
  scrollbar-width: none;
  text-align: center;
  text-transform: uppercase;
}

.awake-overlay-page__inner::-webkit-scrollbar {
  display: none;
}

.awake-overlay-page__kicker {
  display: block;
  margin-bottom: clamp(12px, 2vh, 18px);
  font-size: clamp(9px, 0.9vw, 13px);
  letter-spacing: clamp(0.18em, 0.7vw, 0.34em);
  color: rgba(5, 217, 232, 0.82);
  text-shadow: 0 0 10px rgba(5, 217, 232, 0.45);
}

.awake-overlay-page__title {
  margin: 0;
  font-size: clamp(32px, 6.6vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  background: linear-gradient(90deg, var(--sw-pink) 0%, var(--sw-magenta) 42%, var(--sw-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 18px rgba(255, 42, 109, 0.65))
    drop-shadow(0 0 32px rgba(5, 217, 232, 0.35));
}

.awake-overlay-page__copy {
  max-width: 56em;
  margin: clamp(14px, 2.6vh, 22px) auto 0;
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1.6;
  letter-spacing: clamp(0.04em, 0.2vw, 0.08em);
  color: rgba(220, 180, 230, 0.78);
  text-shadow: 0 0 12px rgba(119, 0, 255, 0.25);
}

.awake-overlay-credits {
  width: min(680px, 100%);
  margin: clamp(20px, 4vh, 34px) auto 0;
  padding: 0;
  border-top: 1px solid rgba(5, 217, 232, 0.35);
  list-style: none;
  text-align: left;
}

.awake-overlay-credits li {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(9px, 1.6vh, 13px) 0;
  border-bottom: 1px solid rgba(255, 42, 109, 0.22);
  font-size: clamp(10px, 0.9vw, 13px);
  line-height: 1.35;
  letter-spacing: clamp(0.06em, 0.24vw, 0.14em);
}

.awake-overlay-credits span {
  color: rgba(200, 160, 220, 0.62);
}

.awake-overlay-credits a {
  color: var(--sw-cyan);
  text-align: right;
  text-decoration: none;
  text-shadow: 0 0 6px rgba(5, 217, 232, 0.35);
}

.awake-overlay-credits a:hover,
.awake-overlay-credits a:focus-visible {
  color: #ffd319;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow: 0 0 12px rgba(255, 211, 25, 0.85), 0 0 22px rgba(255, 107, 53, 0.5);
}

@media (max-width: 760px) {
  .awake-overlay-page__inner {
    width: min(92vw, 560px);
    max-height: 82vh;
    padding: 0 18px;
  }

  .awake-overlay-page__title {
    font-size: clamp(30px, 12vw, 58px);
    letter-spacing: -0.04em;
  }

  .awake-overlay-credits li {
    display: block;
    text-align: center;
  }

  .awake-overlay-credits span,
  .awake-overlay-credits a {
    display: block;
  }

  .awake-overlay-credits a {
    margin-top: 5px;
    text-align: center;
  }

  .awake-overlay-scan-readout {
    top: 9px;
    right: 10px;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 7px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 460px) {
  .awake-overlay-scroll-percent {
    top: 8px;
    left: 10px;
    font-size: 8px;
  }

  .awake-overlay-scan-readout {
    top: 22px;
    right: auto;
    left: 10px;
    align-items: flex-start;
    font-size: 6px;
    letter-spacing: 0.08em;
  }
}

@media (max-height: 620px) {
  .awake-overlay-page__inner {
    max-height: 76vh;
  }

  .awake-overlay-page__copy {
    line-height: 1.45;
  }

  .awake-overlay-credits {
    margin-top: 16px;
  }
}

