/* ============================================
   Font
============================================ */
@font-face {
  font-family: 'ZhuqueFangsong-Regular';
  src:
    url('./assets/ZhuqueFangsong-Regular.woff2') format('woff2'),
    url('./assets/ZhuqueFangsong-Regular.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}

:root {
  --page1-line-height: 380px;
}

/* ============================================
   Reset
============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #000; color: #fff;
  font-family: 'ZhuqueFangsong-Regular', 'Zhuque Fangsong (technical preview)', 'FangSong', serif;
}

/* ============================================
   App / Full-page Container
============================================ */
#app { width: 100%; height: 100%; position: relative; overflow: hidden; }

.page-wrapper {
  width: 100%; position: relative;
  transition: transform 0.9s cubic-bezier(0.645, 0.045, 0.355, 1);
  will-change: transform;
}

.page {
  width: 100%; height: 100vh;
  position: relative; overflow: hidden;
  background: #000;
}
.page.bg-beige { background: #F4EDDF; }

/* ============================================
   SVG Layer — full-page inline SVG
============================================ */
.svg-layer {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 5; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.svg-layer svg { width: 100%; height: 100%; display: block; }

/* Hide SVG-internal nav elements (replaced by fixed overlay) */
.svg-layer svg text[transform*="translate(1190"],
.svg-layer svg text[transform*="translate(1202"],
.svg-layer svg text[transform*="translate(1398"],
.svg-layer svg text[transform*="translate(1409"],
.svg-layer svg text[transform*="translate(1605"],
.svg-layer svg text[transform*="translate(1616"],
.svg-layer svg text[transform*="translate(1813"],
.svg-layer svg text[transform*="translate(1824"],
.svg-layer svg text[transform*="translate(122 843"] {
  display: none !important;
}
.svg-layer svg circle[cx="122"] {
  display: none !important;
}
.g4-svg-reference {
  opacity: 0;
}

/* ============================================
   Page 1 — Dot → Line → Reveal Animation
============================================ */
.page-content { position: relative; width: 100%; height: 100%; }

/* The central dot + line element */
.center-dot-line {
  position: absolute; left: 50%; z-index: 8;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  top: 50%; transform: translate(-50%, -50%);
  opacity: 0;
  transition: none;
}

/* Phase 1: Dot appears */
.page.phase-dot .center-dot-line {
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* Phase 2: Line extends vertically */
.page.phase-line .center-dot-line {
  opacity: 1;
  width: 1.5px; height: var(--page1-line-height);
  border-radius: 1px;
  background: rgba(255,255,255,0.5);
  transition: width 0.3s ease, height 1.0s cubic-bezier(0.25,0.46,0.45,0.94),
              border-radius 0.3s ease;
}

/* Masks hide the image; they shrink to reveal */
.reveal-mask-left, .reveal-mask-right {
  position: absolute; top: 0; height: 100%;
  background: #000; z-index: 6; will-change: width;
  transition: width 0s;
}
.reveal-mask-left { left: 0; width: 50%; }
.reveal-mask-right { right: 0; width: 50%; }

.reveal-mask-top, .reveal-mask-bottom {
  position: absolute; left: 0; width: 100%;
  background: #000; z-index: 7; will-change: height;
  transition: height 0s;
}
.reveal-mask-top { top: 0; height: 23%; }
.reveal-mask-bottom { bottom: 0; height: 23%; }

/* Phase 3: Masks slide open → image revealed */
.page.phase-reveal .center-dot-line {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.page.phase-reveal .reveal-mask-left {
  width: 0%;
  transition: width 1.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.page.phase-reveal .reveal-mask-right {
  width: 0%;
  transition: width 1.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.page.phase-reveal .reveal-mask-top {
  height: 5%;
  transition: height 1.8s cubic-bezier(0.25,0.46,0.45,0.94) 0.6s;
}
.page.phase-reveal .reveal-mask-bottom {
  height: 0%;
  transition: height 1.8s cubic-bezier(0.25,0.46,0.45,0.94) 0.6s;
}

/* Closing: masks slide back */
.page.closing .reveal-mask-left {
  width: 50%;
  transition: width 0.8s cubic-bezier(0.645,0.045,0.355,1);
}
.page.closing .reveal-mask-right {
  width: 50%;
  transition: width 0.8s cubic-bezier(0.645,0.045,0.355,1);
}
.page.closing .reveal-mask-top {
  height: 23%;
  transition: height 0.6s cubic-bezier(0.645,0.045,0.355,1);
}
.page.closing .reveal-mask-bottom {
  height: 23%;
  transition: height 0.6s cubic-bezier(0.645,0.045,0.355,1);
}
.page.closing .center-dot-line {
  opacity: 1; width: 1.5px; height: var(--page1-line-height);
  border-radius: 1px;
  transition: opacity 0.3s ease;
}

/* ============================================
   Flashlight pages
============================================ */
.flashlight-page { position: relative; width: 100%; height: 100%; }

.flashlight-mask {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; z-index: 1;
  -webkit-mask-image: radial-gradient(circle 0px at -100px -100px, black 0%, transparent 100%);
  mask-image: radial-gradient(circle 0px at -100px -100px, black 0%, transparent 100%);
  will-change: mask-image, -webkit-mask-image;
}
.flashlight-mask .bg-image {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* ============================================
   Text Enter Animations
============================================ */
/* Global default: from below + fade in */
.txt_up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 1.2s cubic-bezier(0.25,0.46,0.45,0.94);
}
.page.active .txt_up { opacity: 1; transform: translateY(0); }

/* Group 2: from right + fade in */
.txt_right {
  opacity: 0; transform: translateX(80px);
  transition: opacity 1.5s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 1.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.page.active .txt_right { opacity: 1; transform: translateX(0); }

/* Group 3-01: text scatter — initial set by JS */
.txt_scatter {
  opacity: 0;
}
.page.active .txt_scatter { opacity: 1; transform: translate(0, 0) !important; }

/* Group 4: depth blur */
.txt_depth {
  opacity: 0; transform: scale(1.08) translateY(-20px);
  filter: blur(5px);
  transition: opacity 1.5s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 1.5s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 1.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.page.active .txt_depth { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }

/* ============================================
   Fixed Nav Overlay (SVG, same viewBox)
============================================ */
.fixed-nav {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 30; pointer-events: none;
}

/* ============================================
   Group 3 Image Container
============================================ */
.g3-img-box {
  position: fixed; z-index: 3;
  overflow: hidden; border-radius: 24px;
  clip-path: inset(0 round 24px);
  background: #000;
  opacity: 0;
  transition: width 0.9s cubic-bezier(0.645,0.045,0.355,1),
              opacity 0.6s ease;
  pointer-events: auto;
}
.g3-img-box.visible { opacity: 1; }

.g3-img-box img {
  position: absolute;
  width: calc(100% + 260px); height: calc(100% + 260px);
  top: -130px; left: -130px;
  object-fit: cover;
  transition: transform 0.24s ease-out;
  will-change: transform;
  pointer-events: none;
}

/* ============================================
   Vertical text fix: English & numbers horizontal
============================================ */
.svg-layer svg text {
  text-orientation: mixed !important;
}

/* ============================================
   Sub-page Overlay
============================================ */
.sub-page-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 25;
  background: #000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
  overflow: hidden;
}
.sub-page-overlay.open {
  opacity: 1; pointer-events: auto;
}
.sub-page-overlay .svg-layer {
  position: relative; width: 100%; height: 100%;
  pointer-events: auto;
}

.sub-page-error {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: #F4EDDF;
  font-size: 18px;
  letter-spacing: 0.08em;
}

/* Contact sub-page: staged entrance + gentle card hover */
.contact-page-svg svg {
  pointer-events: auto;
}
.contact-page-svg .contact-card {
  cursor: pointer;
  pointer-events: auto;
  transform-box: fill-box;
  transform-origin: center center;
  opacity: 0;
  will-change: transform, opacity, filter;
  transition:
    transform 1.15s cubic-bezier(0.18, 0.72, 0.22, 1),
    filter 1.15s cubic-bezier(0.18, 0.72, 0.22, 1);
}
.contact-page-svg .contact-card-1 {
  transform: translateY(-92px);
}
.contact-page-svg .contact-card-3 {
  transform: translateY(92px);
}
.contact-page-svg .contact-card-2,
.contact-page-svg .contact-card-4 {
  transform: translateY(0);
}
.contact-page-svg .contact-card-5 {
  transform: translateX(130px);
}
.contact-page-svg.contact-ready .contact-card {
  opacity: 1;
  transform: translate(0, 0);
}
.contact-page-svg.contact-ready .contact-card-1,
.contact-page-svg.contact-ready .contact-card-3 {
  transition:
    opacity 1.65s cubic-bezier(0.18, 0.72, 0.22, 1),
    transform 1.65s cubic-bezier(0.18, 0.72, 0.22, 1),
    filter 1.15s cubic-bezier(0.18, 0.72, 0.22, 1);
}
.contact-page-svg.contact-ready .contact-card-2,
.contact-page-svg.contact-ready .contact-card-4 {
  transition:
    opacity 1.35s cubic-bezier(0.18, 0.72, 0.22, 1) 1.35s,
    transform 1.15s cubic-bezier(0.18, 0.72, 0.22, 1),
    filter 1.15s cubic-bezier(0.18, 0.72, 0.22, 1);
}
.contact-page-svg.contact-ready .contact-card-5 {
  transition:
    opacity 1.7s cubic-bezier(0.18, 0.72, 0.22, 1) 0.35s,
    transform 1.7s cubic-bezier(0.18, 0.72, 0.22, 1) 0.35s,
    filter 1.15s cubic-bezier(0.18, 0.72, 0.22, 1);
}
.contact-page-svg.contact-ready .contact-card:hover {
  animation: contactCardBreath 3.8s cubic-bezier(0.42, 0, 0.24, 1) infinite;
  filter: drop-shadow(0 34px 78px rgba(236,191,88,0.06)) drop-shadow(0 30px 72px rgba(0,0,0,0.06));
}

@keyframes contactCardBreath {
  0%, 100% { transform: translateY(-8px) scale(1.012); }
  50% { transform: translateY(-14px) scale(1.024); }
}

/* ============================================
   Spiral Book Canvas (仙道系列)
============================================ */
.book-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  cursor: grab;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}
.book-canvas.dragging { cursor: grabbing; }
.sub-page-overlay.book-mode,
.sub-page-overlay.book-mode .svg-layer,
#bookRenderLayer {
  cursor: grab;
}
.book-canvas.dragging,
.book-canvas.dragging *,
.no-text-select,
.no-text-select * {
  cursor: grabbing !important;
}
.book-canvas *,
.sub-page-overlay.book-mode,
.sub-page-overlay.book-mode *,
.no-text-select,
.no-text-select * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
  user-drag: none !important;
}
.sub-page-overlay.book-mode img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

#bookRenderLayer {
  position: absolute;
  inset: 0;
  transform: translateZ(0);
}

/* Dot grid background */
.book-canvas-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.4;
}

/* Center title in spiral */
.book-canvas-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none; z-index: 35;
  transition: opacity 0.8s ease;
}
.book-canvas-center h1 {
  font-family: inherit;
  font-weight: 400;
  font-size: 30px; color: rgba(255,255,255,0.78);
  letter-spacing: 0.18em; margin: 0;
}
.book-canvas-center .center-dot {
  width: 60px; height: 60px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.book-canvas-center .center-dot::after {
  content: ''; width: 6px; height: 6px;
  background: rgba(255,255,255,0.4); border-radius: 50%;
}

/* Individual book in spiral — cover only, no title */
.spiral-book {
  position: absolute; left: 50%; top: 50%;
  cursor: pointer;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  contain: layout paint style;
}
.spiral-book-inner {
  transform-origin: center center;
  transition: none;
}
.spiral-book-cover {
  width: 140px; height: 196px;
  border-radius: 0 4px 4px 0;
  overflow: hidden; position: relative;
  box-shadow: 10px 15px 30px rgba(0,0,0,0.25), -2px 0 10px rgba(0,0,0,0.1);
  border-left: 3px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  transition: box-shadow 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  backface-visibility: hidden;
  animation: softFloat 6.4s ease-in-out infinite;
  will-change: transform;
}
.spiral-book-cover img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.25s ease;
  will-change: transform;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
.spiral-book-cover .cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.spiral-book-cover .spine-line {
  position: absolute; top: 0; left: 8px; bottom: 0;
  width: 1px; background: rgba(0,0,0,0.08);
}
.spiral-book:hover .spiral-book-cover {
  box-shadow: 0 20px 50px rgba(236,191,88,0.15), 0 8px 30px rgba(0,0,0,0.4);
  border-left-color: rgba(236,191,88,0.45);
}
.spiral-book:hover .spiral-book-cover img {
  transform: scale(1.03);
}
.spiral-book.is-active .spiral-book-cover {
  animation: none;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.book-canvas.dragging .spiral-book-cover,
.book-canvas.focus-mode .spiral-book-cover,
.spiral-book.depth-blur-2 .spiral-book-cover,
.spiral-book.depth-blur-3 .spiral-book-cover {
  animation: none;
}
.spiral-book.depth-blur-1 { filter: blur(0.7px); }
.spiral-book.depth-blur-2 { filter: blur(1.4px); }
.spiral-book.depth-blur-3 { filter: blur(2.2px); }
.book-canvas.dragging .spiral-book,
.book-canvas.focus-mode .spiral-book {
  filter: none !important;
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Book detail panel — absolute SVG matching */
.book-side-panel {
  position: fixed; z-index: 60;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.23,1,0.32,1),
              transform 0.7s cubic-bezier(0.23,1,0.32,1);
}
.book-side-panel.open {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.book-side-panel * {
  pointer-events: auto;
}
.panel-abs {
  position: absolute;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: #fff;
}
.panel-title-col {
  right: calc(100% - (1813.08 / 1920 * 100%));
  top: calc(341 / 1080 * 100%);
  font-family: 'ZhuqueFangsong-Regular', 'Zhuque Fangsong (technical preview)', serif;
  font-size: calc(38px * var(--svg-scale, 1));
  line-height: 1.2;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.panel-info-col {
  right: calc(100% - (1605.64 / 1920 * 100%));
  top: calc(341 / 1080 * 100%);
  font-size: calc(18px * var(--svg-scale, 1));
  line-height: 1;
  color: rgba(255,255,255,1);
}
.panel-info-col .spec-col {
  position: absolute;
  top: 0;
  width: calc(28px * var(--svg-scale, 1));
  height: calc(450px * var(--svg-scale, 1));
  white-space: nowrap;
  line-height: 1;
}
.panel-info-col .spec-col .spec-key {
  position: absolute;
  top: 0;
  right: 0;
  color: rgba(255,255,255,1);
}
.panel-info-col .spec-col .spec-rule {
  position: absolute;
  top: calc((var(--spec-key-height, 72px) + 22px) * var(--svg-scale, 1));
  bottom: calc((var(--spec-val-height, 72px) + 22px) * var(--svg-scale, 1));
  right: calc(8px * var(--svg-scale, 1));
  width: 0;
  border-right: 1px dotted rgba(255,255,255,0.58);
}
.panel-info-col .spec-col .spec-val {
  position: absolute;
  bottom: 0;
  right: 0;
}
.panel-desc-col {
  right: calc(100% - (1190.75 / 1920 * 100%));
  top: calc(341 / 1080 * 100%);
  width: calc(380 / 1920 * 100%);
  height: calc(450 / 1080 * 100%);
  font-size: calc(18px * var(--svg-scale, 1));
  line-height: calc(38px * var(--svg-scale, 1));
  color: rgba(255,255,255,1);
  overflow: hidden;
}
.panel-desc {
  height: 100%;
}
.panel-cover-col {
  left: calc(451.5 / 1920 * 100%);
  top: calc(341.13 / 1080 * 100%);
  width: calc(300 / 1920 * 100%);
  height: calc(436 / 1080 * 100%);
  writing-mode: horizontal-tb;
}
.panel-cover-col img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevent cropping while strictly matching SVG bounds */
  border-radius: 0 6px 6px 0;
  box-shadow: 0 26px 58px rgba(0,0,0,0.42);
}

/* Glass overlay for dimmed background */
.book-glass-overlay {
  position: fixed; inset: 0; z-index: 40;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.36), rgba(0,0,0,0.68)),
    rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.7s ease;
}
.book-glass-overlay.open {
  opacity: 1; pointer-events: auto;
}

/* Close button — always shown when sub-page overlay is open */
.book-close-btn {
  position: fixed; top: 158px; right: 32px; z-index: 60;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  cursor: pointer; font-size: 22px;
  opacity: 1; pointer-events: auto;
  transition: all 0.5s ease;
}
.book-close-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Bottom hint */
.book-canvas-hint {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 35;
  font-family: sans-serif;
  font-size: 13px; color: rgba(255,255,255,0.3);
  letter-spacing: 2px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* ============================================
   Group 4 — Depth / 3D text animation
============================================ */
.page.g4-depth-page {
  perspective: 1200px;
}
.g4-text-container {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 10;
}
.g4-text-container * {
  pointer-events: auto;
}
.g4-subtitles {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.g4-subtitle-el {
  position: absolute;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: clamp(36px, 2vw, 48px);
  line-height: 1;
  letter-spacing: 0;
  transform-style: preserve-3d;
  color: #fff;
  will-change: transform, filter, opacity;
}
.g4-block {
  position: absolute;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  max-height: min(43vh, 392px);
  font-size: clamp(16px, 0.94vw, 18px);
  line-height: 2.12;
  letter-spacing: 0;
  transform-style: preserve-3d;
  color: rgba(255,255,255,0.88);
  white-space: normal;
  will-change: transform, filter, opacity;
}
.g4-block-zhen {
  max-width: min(31vw, 590px);
}
.g4-block-zhuxia {
  max-width: min(27vw, 500px);
}
.g4-inline-keyword {
  color: #fff;
}
.g4-cloud-layer {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.g4-cloud-word {
  position: absolute;
  display: inline-block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(18px, 1.2vw, 26px);
  line-height: 1.3;
  transform-style: preserve-3d;
  will-change: transform, filter, opacity;
  transform-origin: center center;
  color: #fff;
}
.g4-char {
  display: inline-block;
  opacity: 0;
}

/* ============================================
   Scroll Hint
============================================ */
.scroll-hint {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%); z-index: 100;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  min-width: 72px;
  padding: 0;
  opacity: 0.94;
  animation: scrollPulseStrong 2s ease-in-out infinite, scrollFloatStrong 3.2s ease-in-out infinite;
}
.scroll-hint::before {
  display: none;
}
.scroll-hint .mouse {
  width: 26px; height: 40px;
  border: 2px solid rgba(255,255,255,0.78);
  border-radius: 12px; position: relative;
  box-shadow: 0 0 20px rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
}
.scroll-hint.dark .mouse {
  border-color: rgba(0,0,0,0.55);
  box-shadow: 0 0 20px rgba(0,0,0,0.12);
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.02));
}
.scroll-hint .wheel {
  width: 4px; height: 10px;
  background: rgba(255,255,255,0.88);
  border-radius: 2px; position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(255,255,255,0.32);
  animation: scrollWheelStrong 1.45s cubic-bezier(0.22,0.61,0.36,1) infinite;
}
.scroll-hint.dark .wheel {
  background: rgba(0,0,0,0.68);
  box-shadow: 0 0 10px rgba(0,0,0,0.14);
}
.scroll-hint span {
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.2em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.scroll-hint.dark span { color: rgba(0,0,0,0.7); text-shadow: none; }
.scroll-hint.group4 { bottom: 34px; }
.scroll-hint.is-subtle { opacity: 0.74; }

@keyframes scrollPulseStrong {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}
@keyframes scrollFloatStrong {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}
@keyframes scrollWheelStrong {
  0% { top: 6px; opacity: 0.98; transform: translateX(-50%) scaleY(1); }
  70% { top: 18px; opacity: 0.16; transform: translateX(-50%) scaleY(1.25); }
  100% { top: 20px; opacity: 0; transform: translateX(-50%) scaleY(0.86); }
}
