/* ===================================
   三十六计 · 一计一屏 设计系统
   =================================== */

/* ---------- Tokens ---------- */
:root {
  --c-bg:          #0a0a0f;
  --c-bg-card:     #12121a;
  --c-bg-panel:    #181822;
  --c-surface:     #1e1e2a;
  --c-border:      rgba(255, 255, 255, 0.06);
  --c-border-active: rgba(255, 215, 120, 0.3);

  --c-text:        #e8e6e1;
  --c-text-dim:    #9a978f;
  --c-text-heading:#fff;

  --c-accent:      #CD853F;
  --c-accent-glow: rgba(212, 168, 83, 0.15);
  --c-accent-soft: #c49a42;

  --ff-serif:  'Noto Serif SC', 'Georgia', serif;
  --ff-sans:   'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur: 0.35s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--ff-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.75;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Hero Landing Page ---------- */
.hero {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--c-bg);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 168, 83, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 83, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

/* ---- Atmospheric Hero Background Image ---- */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('hero-bg.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  animation: heroBgFadeIn 2s ease-out both;
}

@keyframes heroBgFadeIn {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 0.1; transform: scale(1); }
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--c-accent-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0%   { opacity: 0.3; transform: translateX(-50%) scale(1); }
  100% { opacity: 0.6; transform: translateX(-50%) scale(1.3); }
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--c-accent-soft);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s var(--ease) 0.2s both;
}

.hero-title {
  font-family: var(--ff-serif);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.2;
  color: var(--c-text-heading);
  margin-bottom: 1.5rem;
  animation: fadeUp 1s var(--ease) 0.4s both;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--c-accent) 0%, #f0d78c 50%, var(--c-accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 1s var(--ease) 0.4s both, heroShimmer 5s linear infinite;
}

@keyframes heroShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-desc {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  color: var(--c-text-dim);
  line-height: 1.9;
  animation: fadeUp 1s var(--ease) 0.6s both;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--c-accent);
  color: var(--c-accent);
  background: transparent;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--ff-sans);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  animation: fadeUp 1s var(--ease) 0.8s both;
}

.hero-cta:hover {
  background: var(--c-accent);
  color: var(--c-bg);
  box-shadow: 0 0 30px var(--c-accent-glow);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  justify-content: center;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--c-accent);
  border-radius: 4px;
  margin-top: 6px;
  animation: scrollBob 2s ease-in-out infinite;
}

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(14px); opacity: 0.3; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero exit animation */
.hero.hero-exit {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

/* ---------- Hidden & Transitions ---------- */
.app-shell.hidden {
  display: none;
}

.app-shell.app-enter {
  animation: appFadeIn 0.5s var(--ease) both;
}

@keyframes appFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Back to shelf links */
.back-shelf-link {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--c-text-dim);
  letter-spacing: 0.1em;
  transition: color var(--dur) var(--ease);
  animation: fadeUp 1s var(--ease) 1s both;
}

.back-shelf-link:hover {
  color: var(--c-accent);
}

.wheel-back {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--c-text-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  opacity: 0.6;
}

.wheel-back:hover {
  color: var(--c-accent);
  opacity: 1;
}

/* ---------- App Shell ---------- */
.app-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* ---------- Left Wheel Navigation ---------- */
.wheel-nav {
  width: 180px;
  min-width: 180px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(10,10,15,0.95) 0%, rgba(18,18,26,0.98) 100%);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  user-select: none;
}

.wheel-category {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.3em;
  padding: 0.3rem 1rem;
  border: 1px solid var(--c-border-active);
  border-radius: 50px;
  white-space: nowrap;
}

.wheel-arrow {
  background: transparent;
  border: none;
  color: var(--c-accent);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.8rem;
  transition: all var(--dur) var(--ease);
  opacity: 0.7;
  letter-spacing: 0;
}

.wheel-arrow:hover { opacity: 1; transform: scale(1.3); }
.wheel-arrow.disabled { opacity: 0.15; pointer-events: none; }

.wheel-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  width: 100%;
}

.wheel-item {
  text-align: center;
  transition: all 0.4s var(--ease);
  cursor: default;
  padding: 0.5rem 1rem;
  width: 100%;
}

.wheel-item.blur {
  filter: blur(3px);
  opacity: 0.35;
  transform: scale(0.8);
  cursor: pointer;
}

.wheel-item.blur:hover {
  filter: blur(1.5px);
  opacity: 0.55;
}

.wheel-item.active {
  filter: none;
  opacity: 1;
  transform: scale(1);
}

.wheel-item.placeholder {
  height: 60px;
  visibility: hidden;
}

.wheel-item-num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--c-accent-soft);
  margin-bottom: 0.15rem;
}

.wheel-item.active .wheel-item-num {
  color: var(--c-accent);
}

.wheel-item-name {
  display: block;
  font-family: var(--ff-serif);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--c-text-heading);
  letter-spacing: 0.1em;
}

.wheel-item.active .wheel-item-name {
  background: linear-gradient(135deg, var(--c-accent) 0%, #f0d78c 50%, var(--c-accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
  font-size: 1.8rem;
}

.wheel-item.blur .wheel-item-name {
  font-size: 1.1rem;
  color: var(--c-text-dim);
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.wheel-progress {
  position: absolute;
  bottom: 20px;
  font-size: 0.75rem;
  color: var(--c-text-dim);
  letter-spacing: 0.15em;
  opacity: 0.6;
}

/* ---------- Mobile Wheel ---------- */
.mobile-wheel {
  display: none;
}

/* ---------- Content Area ---------- */
.content-area {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.content-area::-webkit-scrollbar { width: 4px; }
.content-area::-webkit-scrollbar-track { background: transparent; }
.content-area::-webkit-scrollbar-thumb { background: rgba(212,168,83,0.2); border-radius: 10px; }

/* Slide Animations */
.content-area.slide-out-up {
  animation: slideOutUp 0.25s var(--ease) forwards;
}
.content-area.slide-out-down {
  animation: slideOutDown 0.25s var(--ease) forwards;
}
.content-area.slide-in-up {
  animation: slideInUp 0.3s var(--ease) forwards;
}
.content-area.slide-in-down {
  animation: slideInDown 0.3s var(--ease) forwards;
}

@keyframes slideOutUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-40px); }
}
@keyframes slideOutDown {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(40px); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Content Scroll Inner ---------- */
.content-scroll {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 4rem;
}

/* ---------- Stratagem Header ---------- */
.str-header {
  text-align: center;
  margin-bottom: 2rem;
}

.str-badge {
  display: inline-block;
  font-family: var(--ff-serif);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--c-accent);
  border: 1px solid var(--c-border-active);
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.str-name {
  font-family: var(--ff-serif);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--c-text-heading);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.str-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  margin: 0 auto 1rem;
}

.str-original {
  max-width: 600px;
  margin: 0 auto;
  font-family: var(--ff-serif);
  font-size: 1rem;
  color: var(--c-text-dim);
  font-style: italic;
  line-height: 2;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0 2rem;
}

.str-original::before {
  content: '「';
  font-size: 2rem;
  color: var(--c-accent);
  opacity: 0.4;
  position: absolute;
  left: 0;
  top: -0.3rem;
  font-style: normal;
}

.str-original::after {
  content: '」';
  font-size: 2rem;
  color: var(--c-accent);
  opacity: 0.4;
  font-style: normal;
}

/* ---------- Overview ---------- */
.str-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.ov-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: border-color var(--dur) var(--ease);
}

.ov-card:hover { border-color: var(--c-border-active); }

.ov-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

.ov-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  color: var(--c-text-heading);
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--c-border);
}

.ov-card > p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--c-text);
}

.ov-card p strong,
.ov-card h4 {
  color: var(--c-accent);
}

.allusion {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border);
}

.allusion:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.allusion h4 {
  font-family: var(--ff-serif);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.allusion p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--c-text);
}

.allusion p strong { color: var(--c-accent); }

/* ---------- Scene Tabs ---------- */
.scene-tabs-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scene-tabs-bar::-webkit-scrollbar { display: none; }

.stab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border: none;
  background: transparent;
  color: var(--c-text-dim);
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: calc(var(--r-lg) - 4px);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  flex: 1;
  justify-content: center;
}

.stab:hover {
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.04);
}

.stab.active {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.05));
  color: var(--c-accent);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.08);
  border: 1px solid var(--c-border-active);
}

.stab-icon { font-size: 1rem; }

/* ---------- Scene Content ---------- */
.scene-content {
  animation: fadeIn 0.4s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sc-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
  align-items: start;
}

/* Image */
.sc-image {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-bg-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: sticky;
  top: 1rem;
}

.sc-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.3);
}

.sc-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.img-ph {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--c-surface);
  color: var(--c-text-dim);
  font-size: 2.5rem;
  line-height: 2;
  text-align: center;
}

/* Text Modules */
.sc-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sc-module {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
  transition: border-color var(--dur) var(--ease);
}

.sc-module:hover { border-color: var(--c-border-active); }

.sc-mod-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text-heading);
  margin-bottom: 0.8rem;
}

.sc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-soft));
  color: var(--c-bg);
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sc-module p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--c-text);
}

.sc-module p:last-child { margin-bottom: 0; }
.sc-module p strong { color: var(--c-accent); font-weight: 600; }

.sc-strategies {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sc-strategies li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--c-text);
}

.sc-strategies li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
}

.sc-case {
  background: rgba(212, 168, 83, 0.04);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  line-height: 1.85;
}

.sc-quote {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  color: var(--c-accent);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.sc-quote::before,
.sc-quote::after {
  content: '—';
  margin: 0 0.8rem;
  opacity: 0.4;
}

/* ---------- Category Dots ---------- */
.category-dots {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.6rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-border);
  z-index: 20;
}

.cat-dot {
  font-size: 0.72rem;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  color: var(--c-text-dim);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.15em;
  opacity: 0.5;
}

.cat-dot:hover { opacity: 0.8; color: var(--c-accent); }

.cat-dot.active {
  color: var(--c-accent);
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid var(--c-border-active);
  opacity: 1;
}
/* ============ Scene Visual System (replaces images) ============ */

.scene-visual {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sv-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
  background-size: 100% 100%;
  opacity: 0.8;
}

.sv-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(255,255,255,0.015) 30px, rgba(255,255,255,0.015) 31px),
    repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(255,255,255,0.015) 30px, rgba(255,255,255,0.015) 31px);
}

.sv-emojis {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sv-emoji {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.25;
  filter: grayscale(30%);
  animation: emojiFloat 12s ease-in-out infinite;
}

.sv-e1 { top: 12%; left: 10%; animation-delay: 0s; }
.sv-e2 { top: 15%; right: 12%; animation-delay: -3s; }
.sv-e3 { bottom: 18%; left: 15%; animation-delay: -6s; }
.sv-e4 { bottom: 12%; right: 10%; animation-delay: -9s; }

@keyframes emojiFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(5deg); }
  50% { transform: translateY(-3px) rotate(-3deg); }
  75% { transform: translateY(-10px) rotate(2deg); }
}

.sv-center-icon {
  font-size: 4rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
  animation: iconPulse 4s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Dimension label (small, above center) */
.sv-dim-label {
  position: relative;
  z-index: 2;
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.6rem;
}

/* Character/scene name text */
.sv-center-text {
  position: relative;
  z-index: 2;
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.15em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 0 40px rgba(212,168,83,0.15);
  max-width: 80%;
  text-align: center;
  line-height: 1.4;
  animation: textReveal 0.6s var(--ease) both;
}

@keyframes textReveal {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Quote text */
.sv-center-quote {
  position: relative;
  z-index: 2;
  font-family: var(--ff-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: rgba(255,215,120,0.8);
  letter-spacing: 0.1em;
  line-height: 2;
  text-align: center;
  max-width: 80%;
  text-shadow: 0 2px 15px rgba(0,0,0,0.4);
  padding: 0.5rem 1rem;
  border-left: 2px solid rgba(212,168,83,0.3);
  border-right: 2px solid rgba(212,168,83,0.3);
  animation: textReveal 0.6s var(--ease) both;
}

.sv-chapter-num {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-family: var(--ff-serif);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.sv-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============ Responsive: Mobile ============ */
@media (max-width: 768px) {

  .app-shell {
    flex-direction: column;
  }

  /* Hide desktop wheel */
  .wheel-nav { display: none; }

  /* Show mobile wheel */
  .mobile-wheel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0.5rem 0.4rem;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid var(--c-border);
    z-index: 10;
    flex-shrink: 0;
  }

  .mobile-category {
    font-family: var(--ff-serif);
    font-size: 0.65rem;
    color: var(--c-accent);
    letter-spacing: 0.3em;
    margin-bottom: 0.3rem;
    opacity: 0.8;
  }

  .mobile-wheel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    overflow: hidden;
  }

  .mw-item {
    flex: 1;
    text-align: center;
    font-family: var(--ff-serif);
    font-weight: 700;
    padding: 0.4rem 0.3rem;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
    min-width: 0;
  }

  .mw-item.active {
    font-size: 1.2rem;
    color: var(--c-accent);
    flex: 1.5;
  }

  .mw-item.blur {
    font-size: 0.82rem;
    color: var(--c-text-dim);
    filter: blur(2px);
    opacity: 0.4;
    cursor: pointer;
  }

  .mw-item.placeholder {
    visibility: hidden;
    flex: 1;
  }

  /* Content area fills rest */
  .content-area {
    flex: 1;
    height: auto;
  }

  .content-scroll {
    padding: 1.2rem 1rem 8rem;
  }

  .str-header {
    margin-bottom: 1.2rem;
  }

  .str-name {
    font-size: 1.8rem;
  }

  .str-original {
    font-size: 0.88rem;
    padding: 0 1.5rem;
  }

  .str-original::before { font-size: 1.6rem; }
  .str-original::after { font-size: 1.6rem; }

  .str-overview {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .ov-card { padding: 1rem 1.2rem; }

  .scene-tabs-bar {
    gap: 0.2rem;
    padding: 0.25rem;
    position: sticky;
    top: 0;
    z-index: 15;
    background: var(--c-bg);
  }

  .stab {
    padding: 0.45rem 0.5rem;
    font-size: 0.75rem;
    gap: 0.2rem;
  }

  .stab-icon { font-size: 0.85rem; }

  .sc-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sc-image {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .sc-module {
    padding: 1rem;
  }

  .sc-quote {
    font-size: 0.95rem;
    padding: 1rem 0;
    margin-top: 1rem;
  }

  .category-dots {
    padding: 0.4rem;
    gap: 0.1rem;
  }

  .cat-dot {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
}

/* ---------- iPad / Tablet Portrait ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .wheel-nav {
    width: 140px;
    min-width: 140px;
  }

  .wheel-category {
    font-size: 0.72rem;
    padding: 0.25rem 0.8rem;
  }

  .wheel-item-name {
    font-size: 1.2rem;
  }

  .wheel-item.active .wheel-item-name {
    font-size: 1.4rem;
  }

  .wheel-item.blur .wheel-item-name {
    font-size: 0.9rem;
  }

  .content-scroll {
    padding: 2rem 1.8rem 4rem;
  }

  .str-name {
    font-size: 2rem;
  }

  .sc-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 1.2rem;
  }
}

/* ---------- Small Phones ---------- */
@media (max-width: 400px) {
  .content-scroll { padding: 0.8rem 0.7rem 9rem; }
  .str-name { font-size: 1.5rem; }
  .stab { padding: 0.4rem 0.35rem; font-size: 0.7rem; }
  .mw-item.active { font-size: 1rem; }

  .hero-title {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 0.85rem;
  }
}
