/* Theme & Texture Background Styles */
body.dark {
  --bg: #181015;
  --bg2: #2b1721;
  --card: rgba(56, 31, 43, 0.76);
  --solid: rgba(66, 36, 51, 0.96);
  --text: #fff5f8;
  --muted: #d3aabd;
  --soft: #5b2d43;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
}

/* Background Texture Options */
body.bg-texture-grain {
  background-image: radial-gradient(rgba(255, 95, 158, 0.15) 1px, transparent 1px), linear-gradient(135deg, var(--bg), var(--bg2));
  background-size: 16px 16px, 100% 100%;
}

body.bg-texture-aurora {
  background: linear-gradient(135deg, var(--bg), #d980a6, var(--bg2));
  background-size: 200% 200%;
  animation: auroraDrift 12s ease infinite alternate;
}

@keyframes auroraDrift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

body.bg-texture-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1.5px, transparent 1.5px), linear-gradient(135deg, var(--bg), var(--bg2));
  background-size: 24px 24px, 100% 100%;
}

body.bg-texture-silk {
  background: linear-gradient(120deg, var(--bg) 0%, rgba(255, 221, 225, 0.8) 50%, var(--bg2) 100%);
}

/* Double Time Layer (Giờ đôi) */
.double-time-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.14;
  transition: opacity 0.4s ease;
}

body.bg-texture-doubletime .double-time-layer {
  opacity: 0.22;
}

.double-time-thought {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.double-time-thought.show {
  opacity: 1;
  transform: scale(1);
}
