/* ============================================================
   白夜 (White Nights) — Design System & Component Styles
   治愈但忧郁的粉紫色调 · Ghibli-inspired atmosphere
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  /* Colors — deep indigo / lavender / rose */
  --color-bg-deep:       hsl(255, 30%, 6%);
  --color-bg-surface:    hsl(255, 25%, 10%);
  --color-bg-panel:      hsla(255, 30%, 8%, 0.88);
  --color-accent-rose:   hsl(330, 50%, 65%);
  --color-accent-lavender: hsl(270, 45%, 72%);
  --color-accent-gold:   hsl(42, 55%, 70%);
  --color-text-primary:  hsl(45, 25%, 92%);
  --color-text-muted:    hsla(45, 20%, 85%, 0.55);
  --color-monologue:     hsl(270, 55%, 88%);
  --color-border:        hsla(270, 40%, 60%, 0.15);

  /* Typography */
  --font-serif:  'Source Han Serif SC', 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans:   'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif;

  /* Motion */
  --ease-soft:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-dramatic: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-scene:     1.5s;
  --dur-ui:        0.4s;
}

/* === RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-bg-deep);
  color: var(--color-text-primary);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  cursor: default;
}

/* === GAME CONTAINER === */
#game-container {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  cursor: pointer;
}

/* === STAGE (Background) === */
#stage {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    hsl(255, 30%, 7%) 0%,
    hsl(275, 25%, 5%) 50%,
    hsl(240, 30%, 7%) 100%
  );
}

.bg-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-scene) var(--ease-soft);
  z-index: 1;
}

.bg-layer.active {
  opacity: 1;
}

.bg-layer img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  filter: brightness(0.78) contrast(1.03) saturate(0.94);
  border-radius: 0;
  box-shadow: none;
  transition: opacity 0.8s var(--ease-soft);
}

/* Soft radial fade to blend image edges into dark bg */
.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 75% 70% at center,
    transparent 42%,
    hsla(255, 30%, 6%, 0.42) 74%,
    hsla(255, 30%, 6%, 0.82) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Cover mode for panoramic scenes */
.bg-layer.cover-mode img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: brightness(0.78) saturate(0.94) contrast(1.03);
  box-shadow: none;
}

/* === VIGNETTE LAYER === */
.vignette-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  background: radial-gradient(
    ellipse 65% 55% at center,
    transparent 30%,
    hsla(260, 35%, 4%, 0.22) 62%,
    hsla(260, 35%, 3%, 0.56) 100%
  );
  transition: opacity 1.5s var(--ease-soft);
}

.vignette-layer.intense {
  background: radial-gradient(
    ellipse 50% 45% at center,
    transparent 15%,
    hsla(260, 35%, 4%, 0.5) 50%,
    hsla(260, 35%, 3%, 0.85) 100%
  );
}

/* === TITLE SCREEN === */
.title-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(28px, 5vw, 76px);
  background: #0f0c12;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s var(--ease-soft);
}

.title-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(circle at 73% 26%, hsla(42, 55%, 70%, 0.16), transparent 25%),
    linear-gradient(90deg, hsla(255, 30%, 6%, 0.96) 0%, hsla(255, 30%, 6%, 0.76) 38%, hsla(255, 30%, 6%, 0.28) 72%, hsla(255, 30%, 6%, 0.82) 100%),
    linear-gradient(180deg, hsla(255, 30%, 6%, 0.18) 0%, hsla(255, 30%, 6%, 0.2) 48%, hsla(255, 30%, 6%, 0.92) 100%);
  pointer-events: none;
}

.title-screen.active {
  opacity: 1;
  pointer-events: auto;
}

.btn-theater-back {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 12;
  padding: 9px 20px;
  border: 1px solid hsla(42, 55%, 70%, 0.22);
  border-radius: 999px;
  background: hsla(255, 30%, 8%, 0.58);
  color: hsla(42, 55%, 84%, 0.8);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-soft);
}

.btn-theater-back:hover {
  color: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
  background: hsla(255, 30%, 14%, 0.75);
}

/* Stars */
.stars-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.star {
  position: absolute;
  background: var(--color-text-primary);
  border-radius: 50%;
  animation: twinkle var(--star-duration, 3s) ease-in-out infinite alternate;
  animation-delay: var(--star-delay, 0s);
}

@keyframes twinkle {
  0%   { opacity: 0.05; transform: scale(0.6); }
  100% { opacity: 0.7;  transform: scale(1.3); }
}

/* Title background image */
.title-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 1;
  pointer-events: none;
}

.title-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) contrast(1.04) saturate(0.92);
}

/* Title text content */
.title-content {
  position: relative;
  z-index: 10;
  width: min(680px, 100%);
  margin: 0 0 clamp(30px, 8vh, 96px);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.title-main {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(4.5rem, 11vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--color-text-primary);
  text-shadow:
    0 0 40px hsla(270, 40%, 60%, 0.3),
    0 0 80px hsla(270, 40%, 50%, 0.15),
    0 4px 12px hsla(255, 30%, 5%, 0.5);
  animation: titleFloat 6s ease-in-out infinite;
}

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

.title-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--color-accent-gold);
  letter-spacing: 0.18em;
  opacity: 0.9;
}

.title-author {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 8px;
  letter-spacing: 0.1em;
}

.btn-start {
  margin-top: 48px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--color-accent-gold), hsl(36, 78%, 64%));
  backdrop-filter: blur(12px);
  border: 1px solid hsla(42, 55%, 82%, 0.45);
  border-radius: 40px;
  color: hsl(255, 30%, 8%);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: all 0.4s var(--ease-soft);
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 20px hsla(270, 40%, 50%, 0.1); }
  50%      { box-shadow: 0 0 35px hsla(270, 40%, 50%, 0.25); }
}

.btn-start:hover {
  background: linear-gradient(135deg, hsl(42, 72%, 76%), hsl(36, 82%, 68%));
  border-color: var(--color-accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsla(42, 55%, 50%, 0.22);
}

.btn-start:disabled {
  opacity: 0.62;
  cursor: wait;
  animation: none;
  transform: none;
}

.btn-start:disabled:hover {
  background: linear-gradient(135deg, var(--color-accent-gold), hsl(36, 78%, 64%));
  border-color: hsla(42, 55%, 82%, 0.45);
  box-shadow: none;
  transform: none;
}

.btn-start:active {
  transform: translateY(0);
}

/* Gallery button on title screen */
.btn-gallery {
  margin-top: 12px;
  padding: 10px 32px;
  background: hsla(255, 30%, 8%, 0.42);
  border: 1px solid hsla(42, 55%, 70%, 0.18);
  border-radius: 40px;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0;
  cursor: pointer;
  transition: all 0.4s var(--ease-soft);
}

.btn-gallery:hover {
  color: var(--color-text-primary);
  border-color: var(--color-accent-lavender);
  background: hsla(270, 30%, 15%, 0.3);
}

/* === CONTROL BAR === */
.control-bar {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 35;
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-soft);
}

.control-bar.active {
  opacity: 1;
  pointer-events: auto;
}

.ctrl-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  background: hsla(255, 30%, 8%, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsla(270, 40%, 60%, 0.12);
  border-radius: 10px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.3s var(--ease-soft);
}

.ctrl-btn svg {
  width: 16px;
  height: 16px;
}

.ctrl-btn:hover {
  background: hsla(270, 30%, 15%, 0.7);
  color: var(--color-text-primary);
  border-color: var(--color-accent-lavender);
}

.ctrl-btn.active {
  background: hsla(270, 35%, 25%, 0.8);
  color: var(--color-accent-lavender);
  border-color: var(--color-accent-lavender);
  box-shadow: 0 0 12px hsla(270, 40%, 50%, 0.2);
}

.ctrl-divider {
  width: 1px;
  height: 24px;
  background: hsla(270, 40%, 55%, 0.15);
  align-self: center;
  margin: 0 2px;
}

.ctrl-btn-lang {
  width: auto;
  padding: 7px 12px;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* Mute button — icon toggle */
#btn-mute .icon-sound-off {
  display: none;
}

#btn-mute.active .icon-sound-on {
  display: none;
}

#btn-mute.active .icon-sound-off {
  display: block;
}

/* === MONOLOGUE (centered floating text) === */
.monologue-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease-soft);
  padding: 10% 8%;
}

.monologue-container.active {
  opacity: 1;
}

.monologue-text {
  max-width: 600px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 2;
  color: var(--color-text-primary);
  text-align: center;
  text-shadow:
    0 0 12px hsla(255, 40%, 5%, 0.9),
    0 0 24px hsla(255, 40%, 5%, 0.7),
    0 0 48px hsla(255, 30%, 5%, 0.5),
    0 2px 6px hsla(255, 30%, 3%, 0.8);
  letter-spacing: 0.05em;
  padding: 16px 24px;
  background: radial-gradient(
    ellipse at center,
    hsla(255, 30%, 5%, 0.55) 0%,
    hsla(255, 30%, 5%, 0.3) 50%,
    transparent 80%
  );
  border-radius: 16px;
}

/* === DIALOGUE BOX (bottom panel) — ENLARGED === */
.dialogue-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  justify-content: center;
  padding: 0 20px 24px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-ui) var(--ease-soft),
    transform var(--dur-ui) var(--ease-soft);
  pointer-events: none;
}

.dialogue-container.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dialogue-box {
  width: min(92%, 780px);
  padding: 28px 36px 24px;
  background: var(--color-bg-panel);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow:
    0 -2px 40px hsla(260, 40%, 5%, 0.4),
    inset 0 1px 0 hsla(270, 40%, 70%, 0.06);
}

.speaker-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-accent-rose);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  text-transform: uppercase;
  opacity: 0.9;
}

.speaker-name:empty {
  display: none;
}

.dialogue-text {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 2;
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
  min-height: 3.5em;
}

/* Cursor blink after text */
.dialogue-text.typing::after {
  content: '▏';
  animation: cursorBlink 0.8s step-end infinite;
  color: var(--color-accent-lavender);
  margin-left: 2px;
}

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

/* === CHOICE PANEL === */
.choice-panel {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(88%, 740px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-soft);
}

.choice-panel.active {
  opacity: 1;
  pointer-events: auto;
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  background: hsla(255, 28%, 10%, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsla(270, 40%, 55%, 0.18);
  border-radius: 12px;
  color: var(--color-text-primary);
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  line-height: 1.6;
  cursor: pointer;
  transition: all 0.35s var(--ease-soft);
  text-align: left;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(12px);
  animation: choiceFadeIn 0.5s var(--ease-dramatic) forwards;
}

.choice-route-hint {
  flex: 0 0 auto;
  border: 1px solid hsla(42, 55%, 70%, 0.26);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--color-accent-gold);
  background: hsla(42, 55%, 50%, 0.1);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.choice-label {
  min-width: 0;
}

.choice-option:nth-child(1) { animation-delay: 0.1s; }
.choice-option:nth-child(2) { animation-delay: 0.25s; }
.choice-option:nth-child(3) { animation-delay: 0.4s; }

@keyframes choiceFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.choice-option:hover {
  background: hsla(270, 30%, 15%, 0.92);
  border-color: var(--color-accent-lavender);
  transform: translateY(-2px) !important;
  box-shadow:
    0 4px 24px hsla(270, 40%, 50%, 0.15),
    inset 0 1px 0 hsla(270, 40%, 70%, 0.1);
}

.choice-option:active {
  transform: translateY(0) !important;
  background: hsla(270, 30%, 18%, 0.95);
}

/* === CONTINUE INDICATOR === */
.continue-indicator {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 26;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-soft);
}

.continue-indicator.active {
  opacity: 1;
}

.indicator-arrow {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(4px); opacity: 0.8; }
}

/* === END SCREEN === */
.end-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    160deg,
    hsl(255, 35%, 6%) 0%,
    hsl(275, 30%, 4%) 50%,
    hsl(250, 35%, 7%) 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s var(--ease-soft);
}

.end-screen.active {
  opacity: 1;
  pointer-events: auto;
}

.end-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: endFadeIn 2s 0.5s var(--ease-soft) both;
}

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

.end-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--color-text-primary);
  letter-spacing: 0.2em;
  text-shadow: 0 0 40px hsla(270, 40%, 60%, 0.25);
}

.end-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--color-accent-lavender);
  opacity: 0.7;
  letter-spacing: 0.2em;
}

.end-stats {
  display: flex;
  gap: 48px;
  margin-top: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-label {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2rem;
  color: var(--color-accent-gold);
  text-shadow: 0 0 20px hsla(42, 55%, 50%, 0.3);
}

.end-continue {
  margin-top: 40px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text-muted);
  letter-spacing: 0.3em;
  animation: breathe 3s ease-in-out infinite;
}

.end-reward {
  margin-top: 18px;
  border: 1px solid hsla(42, 55%, 70%, 0.28);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--color-accent-gold);
  background: hsla(42, 55%, 40%, 0.12);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.end-reward:empty,
.end-collection:empty {
  display: none;
}

.end-collection {
  margin: 0;
  color: hsla(45, 25%, 92%, 0.62);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.vn-reward-toast {
  position: fixed;
  left: 50%;
  top: 22px;
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  border: 1px solid hsla(42, 55%, 70%, 0.32);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--color-accent-gold);
  background: hsla(255, 30%, 8%, 0.9);
  box-shadow: 0 18px 58px hsla(250, 45%, 4%, 0.5);
  backdrop-filter: blur(12px);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 800;
  transition: opacity 0.28s var(--ease-soft), transform 0.28s var(--ease-soft);
}

.vn-reward-toast.active {
  opacity: 1;
  transform: translate(-50%, 0);
}

.gallery-unlock-toast {
  position: fixed;
  right: 24px;
  top: 76px;
  z-index: 188;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  border: 1px solid hsla(270, 45%, 72%, 0.2);
  border-radius: 999px;
  padding: 7px 11px;
  color: hsla(45, 25%, 92%, 0.78);
  background: hsla(255, 30%, 8%, 0.64);
  box-shadow: 0 12px 34px hsla(250, 45%, 4%, 0.26);
  backdrop-filter: blur(12px);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  transition: opacity 0.34s var(--ease-soft), transform 0.34s var(--ease-soft);
}

.gallery-unlock-toast.active {
  opacity: 0.82;
  transform: translateY(0);
}

/* === SCENE TRANSITION OVERLAY === */
.scene-transition {
  position: fixed;
  inset: 0;
  background: var(--color-bg-deep);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-soft);
}

.scene-transition.active {
  opacity: 1;
}

/* === NIGHT TRANSITION SCREEN === */
.night-transition {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    hsl(255, 35%, 5%) 0%,
    hsl(265, 30%, 8%) 30%,
    hsl(275, 25%, 6%) 60%,
    hsl(255, 35%, 4%) 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s var(--ease-soft);
  cursor: pointer;
}

.night-transition.active {
  opacity: 1;
  pointer-events: auto;
}

.night-transition-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s 0.3s var(--ease-dramatic);
}

.night-transition.active .night-transition-content {
  opacity: 1;
  transform: translateY(0);
}

.night-transition-ornament {
  font-size: 0.9rem;
  color: var(--color-accent-lavender);
  opacity: 0.4;
  letter-spacing: 0.4em;
  animation: ornamentPulse 3s ease-in-out infinite;
}

@keyframes ornamentPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50%      { opacity: 0.55; transform: scale(1.1); }
}

.night-transition-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 3.5rem);
  color: var(--color-text-primary);
  letter-spacing: 0.25em;
  text-shadow:
    0 0 40px hsla(270, 40%, 60%, 0.25),
    0 0 80px hsla(270, 40%, 50%, 0.12),
    0 4px 12px hsla(255, 30%, 5%, 0.5);
  opacity: 0;
  animation: nightTitleIn 1.2s 0.6s var(--ease-dramatic) forwards;
}

.night-transition.active .night-transition-title {
  animation: nightTitleIn 1.2s 0.6s var(--ease-dramatic) forwards;
}

@keyframes nightTitleIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); letter-spacing: 0.4em; }
  to   { opacity: 1; transform: translateY(0) scale(1); letter-spacing: 0.25em; }
}

.night-transition-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: var(--color-accent-lavender);
  letter-spacing: 0.3em;
  opacity: 0;
  animation: nightSubIn 1s 1s var(--ease-soft) forwards;
}

.night-transition.active .night-transition-subtitle {
  animation: nightSubIn 1s 1s var(--ease-soft) forwards;
}

@keyframes nightSubIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 0.7; transform: translateY(0); }
}

.night-transition-hint {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.2em;
  margin-top: 32px;
  opacity: 0;
  animation: hintFadeIn 0.8s 1.8s var(--ease-soft) forwards;
}

.night-transition.active .night-transition-hint {
  animation: hintFadeIn 0.8s 1.8s var(--ease-soft) forwards,
             breathe 3s 2.6s ease-in-out infinite;
}

@keyframes hintFadeIn {
  from { opacity: 0; }
  to   { opacity: 0.5; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-screen {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: linear-gradient(
    160deg,
    hsl(255, 30%, 6%) 0%,
    hsl(275, 25%, 4%) 50%,
    hsl(250, 30%, 7%) 100%
  );
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-soft);
}

.gallery-screen.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-screen,
.detail-body {
  scrollbar-width: thin;
  scrollbar-color: hsla(42, 38%, 58%, 0.16) transparent;
}

.gallery-screen::-webkit-scrollbar,
.detail-body::-webkit-scrollbar {
  width: 6px;
}

.gallery-screen::-webkit-scrollbar-track,
.detail-body::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.gallery-screen::-webkit-scrollbar-thumb,
.detail-body::-webkit-scrollbar-thumb {
  background: hsla(42, 38%, 58%, 0.16);
  border-radius: 999px;
  border: 2px solid hsla(250, 24%, 6%, 0.72);
}

.gallery-screen::-webkit-scrollbar-thumb:hover,
.detail-body::-webkit-scrollbar-thumb:hover {
  background: hsla(42, 42%, 64%, 0.25);
}

.gallery-screen::-webkit-scrollbar-button,
.detail-body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.gallery-header {
  text-align: center;
  padding: 48px 24px 24px;
  position: relative;
}

.gallery-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.3em;
  color: hsla(40, 78%, 76%, 0.92);
  text-shadow:
    0 0 28px hsla(40, 70%, 62%, 0.16),
    0 0 46px hsla(202, 58%, 66%, 0.1);
}

.gallery-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--color-accent-lavender);
  opacity: 0.6;
  letter-spacing: 0.2em;
  margin-top: 8px;
}

.gallery-back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 20px;
  background: hsla(255, 30%, 10%, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid hsla(270, 40%, 55%, 0.15);
  border-radius: 20px;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-soft);
  letter-spacing: 0.05em;
}

.gallery-back-btn:hover {
  color: var(--color-text-primary);
  border-color: var(--color-accent-lavender);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  padding: 16px 24px 56px;
  max-width: 1120px;
  margin: 0 auto;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px;
  border: 1px solid hsla(40, 58%, 72%, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(180deg, hsla(41, 42%, 84%, 0.075), hsla(218, 32%, 12%, 0.28)),
    hsla(250, 28%, 8%, 0.42);
  box-shadow: 0 18px 44px hsla(255, 42%, 3%, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: border-color 0.35s var(--ease-soft), background 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
  animation: galleryCardIn 0.5s var(--ease-dramatic) forwards;
}

.gallery-card:hover {
  border-color: hsla(40, 68%, 74%, 0.32);
  background:
    linear-gradient(180deg, hsla(41, 42%, 84%, 0.1), hsla(211, 32%, 15%, 0.34)),
    hsla(250, 28%, 9%, 0.52);
  box-shadow: 0 24px 58px hsla(255, 42%, 3%, 0.38);
}

@keyframes galleryCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-card-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid hsla(40, 58%, 72%, 0.16);
  transition: all 0.4s var(--ease-soft);
}

.gallery-card:hover .gallery-card-img-wrap {
  border-color: hsla(202, 62%, 78%, 0.28);
  box-shadow: 0 10px 34px hsla(212, 50%, 22%, 0.22);
}

.gallery-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-soft);
  filter: brightness(0.85) saturate(0.9);
}

.gallery-card:hover .gallery-card-img-wrap img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1);
}

/* Gallery card text layout */
.gallery-card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px 10px;
}

.gallery-card-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 500;
  color: hsla(40, 78%, 74%, 0.9);
  letter-spacing: 0.06em;
}

.gallery-card-caption-zh,
.gallery-card-brief {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 300;
  color: hsla(40, 44%, 84%, 0.88);
  line-height: 1.72;
  letter-spacing: 0.02em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gallery progress counter */
.gallery-progress {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--color-accent-gold);
  letter-spacing: 0.15em;
  margin-top: 10px;
  opacity: 0.7;
}

/* === LOCKED GALLERY CARD === */
.gallery-card.locked {
  cursor: default;
}

.gallery-card.locked .gallery-card-img-wrap {
  background: hsla(255, 25%, 8%, 0.95);
  border-color: hsla(270, 30%, 30%, 0.1);
}

.gallery-card.locked:hover .gallery-card-img-wrap {
  border-color: hsla(270, 30%, 30%, 0.1);
  box-shadow: none;
  transform: none;
}

.gallery-lock-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    hsla(255, 25%, 8%, 1) 0%,
    hsla(265, 20%, 12%, 1) 50%,
    hsla(255, 25%, 6%, 1) 100%
  );
  color: hsla(270, 30%, 55%, 0.25);
}

.gallery-lock-placeholder svg {
  opacity: 0.6;
  transition: opacity 0.3s var(--ease-soft);
}

.gallery-card.locked:hover .gallery-lock-placeholder svg {
  opacity: 0.8;
}

.gallery-card.locked .gallery-card-title {
  color: hsla(40, 44%, 84%, 0.5);
  font-style: italic;
  opacity: 0.5;
}

.gallery-card.locked .gallery-card-caption-zh,
.gallery-card.locked .gallery-card-brief {
  opacity: 0.35;
  font-style: italic;
}


/* ============================================================
   CONFIRM DIALOG (覆盖确认)
   ============================================================ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(255, 30%, 2%, 0.85);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-soft);
}

.confirm-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.confirm-modal {
  width: min(85%, 360px);
  padding: 32px 28px 24px;
  background: hsla(255, 28%, 12%, 0.97);
  border: 1px solid hsla(270, 40%, 55%, 0.2);
  border-radius: 18px;
  box-shadow: 0 16px 48px hsla(255, 30%, 3%, 0.6);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.3s var(--ease-dramatic);
}

.confirm-overlay.active .confirm-modal {
  transform: scale(1);
}

.confirm-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-btn {
  padding: 10px 24px;
  border-radius: 24px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s var(--ease-soft);
  border: 1px solid transparent;
}

.confirm-yes {
  background: hsla(330, 45%, 40%, 0.7);
  color: var(--color-text-primary);
  border-color: hsla(330, 50%, 55%, 0.3);
}

.confirm-yes:hover {
  background: hsla(330, 50%, 48%, 0.85);
  border-color: hsla(330, 50%, 65%, 0.5);
  box-shadow: 0 4px 20px hsla(330, 50%, 40%, 0.25);
}

.confirm-no {
  background: transparent;
  color: var(--color-text-muted);
  border-color: hsla(270, 40%, 55%, 0.15);
}

.confirm-no:hover {
  color: var(--color-text-primary);
  border-color: var(--color-accent-lavender);
}


/* ============================================================
   GALLERY DETAIL PAGE
   ============================================================ */
.gallery-detail {
  display: none;
  flex-direction: column;
  height: 100%;
}

.gallery-detail.active {
  display: flex;
}

.detail-header {
  padding: 16px 20px;
  flex-shrink: 0;
}

.detail-back-btn {
  padding: 8px 20px;
  background: hsla(255, 30%, 10%, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid hsla(270, 40%, 55%, 0.15);
  border-radius: 20px;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-soft);
  letter-spacing: 0.05em;
}

.detail-back-btn:hover {
  color: var(--color-text-primary);
  border-color: var(--color-accent-lavender);
}

.detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 60px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.detail-img-wrap {
  margin-bottom: 28px;
}

.detail-img {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 48px hsla(255, 30%, 3%, 0.5);
}

.detail-info {
  padding: 22px 22px 20px;
  border: 1px solid hsla(40, 58%, 72%, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(180deg, hsla(41, 42%, 84%, 0.07), hsla(218, 32%, 12%, 0.25)),
    hsla(250, 28%, 8%, 0.42);
  box-shadow: 0 20px 52px hsla(255, 42%, 3%, 0.24);
}

.detail-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: hsla(40, 78%, 74%, 0.92);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.detail-caption {
  padding: 2px 0 0;
}

.detail-caption-zh,
.detail-brief {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.95;
  color: hsla(40, 44%, 84%, 0.9);
  letter-spacing: 0.025em;
  margin: 0;
}

.detail-caption-ru {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.85;
  color: hsla(202, 55%, 78%, 0.84);
  letter-spacing: 0.04em;
}

.detail-ru-note {
  margin-top: 28px;
  padding: 18px 0 0;
  border-top: 1px solid hsla(202, 58%, 76%, 0.13);
}

.detail-ru-note::before {
  content: '';
  display: block;
  width: 74px;
  height: 1px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, hsla(202, 55%, 78%, 0.34), transparent);
}

.detail-ru-note[hidden] {
  display: none;
}

.detail-divider {
  width: 68px;
  height: 1px;
  background: linear-gradient(90deg, hsla(40, 78%, 74%, 0.45), transparent);
  margin: 24px 0 22px;
}

.detail-story-p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 2;
  color: hsla(40, 32%, 82%, 0.68);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  text-indent: 2em;
}

.detail-story-p:first-child {
  text-indent: 0;
}


/* === RESPONSIVE === */
@media (max-width: 600px) {
  .title-screen {
    padding: 20px;
  }

  .title-content {
    width: min(100%, 520px);
    margin-bottom: clamp(28px, 9vh, 72px);
  }

  .dialogue-container {
    padding: 0 10px 14px;
  }

  .dialogue-box {
    padding: 20px 22px 16px;
    border-radius: 12px;
  }

  .choice-panel {
    bottom: 16px;
    width: calc(100% - 24px);
  }

  .choice-option {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
  }

  .monologue-container {
    padding: 15% 6%;
  }

  .title-main {
    font-size: clamp(4rem, 21vw, 6rem);
    letter-spacing: 0;
  }

  .title-sub {
    letter-spacing: 0.12em;
  }

  .btn-theater-back {
    top: 14px;
    left: 14px;
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .end-stats {
    gap: 32px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px 14px 44px;
  }

  .gallery-card-caption-zh,
  .gallery-card-brief {
    -webkit-line-clamp: 4;
  }

  .gallery-card-text {
    padding: 13px 10px 10px;
  }

  .detail-body {
    padding: 0 16px 40px;
  }

  .detail-info {
    padding: 18px 16px;
  }

  .detail-title {
    font-size: 1.2rem;
  }

  /* ── 移动端控制栏：加大触摸目标 ── */
  .control-bar {
    top: 8px;
    right: 8px;
    gap: 5px;
  }

  .ctrl-btn {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
  }

  .ctrl-btn svg {
    width: 18px;
    height: 18px;
  }

  .ctrl-btn-lang {
    width: auto;
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  /* ── 选项按钮加大 ── */
  .choice-btn {
    padding: 18px 24px;
    font-size: 1rem;
    min-height: 52px;
  }

  /* ── 标题按钮加大 ── */
  .btn-start,
  .btn-gallery {
    padding: 16px 36px;
  }
}

@media (max-height: 500px) {
  .dialogue-container {
    padding-bottom: 10px;
  }

  .dialogue-box {
    padding: 14px 22px;
  }

  .monologue-text {
    font-size: 1rem;
  }
}

/* ============================================================
   GLOBAL TOUCH OPTIMIZATION
   ============================================================ */

/* 去除所有元素的蓝色触摸高亮 */
* {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

/* 去除按钮焦点蓝框 */
button:focus,
button:active {
  outline: none;
}

/* 对话文本可选中 */
.monologue-text,
.dialogue-text {
  -webkit-user-select: text;
  user-select: text;
}

/* ============================================================
   QINGSONG THEATER LEARNING MODE
   ============================================================ */

.literary-panel {
  position: fixed;
  right: 18px;
  bottom: 126px;
  z-index: 86;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.literary-toggle {
  pointer-events: auto;
  display: block;
  margin-left: auto;
  border: 1px solid rgba(255, 226, 168, 0.38);
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffe2a8;
  background: rgba(43, 20, 23, 0.74);
  backdrop-filter: blur(12px);
  font-family: var(--font-sans);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
}

.literary-body {
  pointer-events: auto;
  margin-top: 10px;
  display: none;
  border: 1px solid rgba(255, 226, 168, 0.24);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(160deg, rgba(20, 13, 18, 0.94), rgba(47, 24, 42, 0.92));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.literary-panel.open .literary-body {
  display: block;
  animation: literaryIn 0.28s var(--ease-soft);
}

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

.literary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.literary-kicker {
  color: rgba(255, 226, 168, 0.62);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.literary-head h3 {
  margin: 3px 0 0;
  color: #ffe2a8;
  font-size: 1.25rem;
}

.literary-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.25rem;
}

.literary-hint {
  margin-top: 12px;
  border-radius: 14px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 226, 168, 0.08);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.65;
}

.literary-section {
  margin-top: 14px;
}

.literary-label {
  margin-bottom: 7px;
  color: rgba(255, 226, 168, 0.7);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
}

.literary-ru,
.literary-zh {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.72;
}

.literary-ru {
  color: #f4dfef;
}

.literary-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.literary-keyword {
  border: 1px solid rgba(255, 226, 168, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  color: #ffe2a8;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.literary-empty {
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-sans);
  font-size: 0.78rem;
}

.literary-save {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  color: #2b1417;
  background: linear-gradient(135deg, #ffe2a8, #f4b860);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.literary-save:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.literary-toast {
  display: none;
  margin-top: 10px;
  border-radius: 12px;
  padding: 9px 11px;
  color: #ffe2a8;
  background: rgba(255, 226, 168, 0.1);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.5;
}

.literary-toast.active {
  display: block;
}

.chapter-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 20%, rgba(255, 226, 168, 0.18), transparent 28%), rgba(10, 6, 11, 0.86);
  backdrop-filter: blur(14px);
}

.chapter-lock-overlay.active {
  display: flex;
}

.chapter-lock-card {
  width: min(520px, 100%);
  border: 1px solid rgba(255, 226, 168, 0.28);
  border-radius: 26px;
  padding: 34px;
  text-align: center;
  background: linear-gradient(160deg, rgba(43, 20, 23, 0.96), rgba(18, 11, 18, 0.98));
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.58);
}

.chapter-lock-kicker {
  color: rgba(255, 226, 168, 0.7);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 900;
}

.chapter-lock-title {
  margin: 10px 0 12px;
  color: #ffe2a8;
  font-size: 2rem;
}

.chapter-lock-text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  line-height: 1.9;
}

.chapter-lock-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.chapter-lock-primary,
.chapter-lock-secondary {
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.chapter-lock-primary {
  color: #2b1417;
  background: linear-gradient(135deg, #ffe2a8, #f4b860);
}

.chapter-lock-secondary {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 760px) {
  .literary-panel {
    right: 12px;
    bottom: 108px;
    width: calc(100vw - 24px);
  }
}
