/**
 * Slza Temnoty — jednotný teplý nádych (ako kapitola 1):
 * ember, vínový odtieň pozadia, žiara na iniciále a dekoratívnych prvkoch.
 * Načítať až PO inline <style> v každej kapitole.
 */

body.chapter-read {
  --ember: #ffb07a;
  --ember-deep: #c75d4a;
  --ember-blood: #7a1a1a;
  --ink: #060209;
  --parchment: #e8d8c8;
  --parchment-dim: #a89280;
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  color: var(--parchment);
  background:
    radial-gradient(ellipse 130% 85% at 50% -5%, rgba(110, 28, 26, 0.42), transparent 52%),
    radial-gradient(ellipse 90% 45% at 50% 105%, rgba(35, 10, 14, 0.65), transparent 55%),
    var(--ink);
  min-height: 100vh;
}

body.chapter-read .ch-body {
  background:
    radial-gradient(ellipse 70% 30% at 50% 0%, rgba(199, 93, 74, 0.14), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, #0b0712 50%, var(--ink) 100%);
}

body.chapter-read .ch-body::before {
  background-image: radial-gradient(rgba(255, 176, 122, 0.035) 1px, transparent 1px);
}

body.chapter-read .ch-body p {
  color: #dccdbe;
}

body.chapter-read .ch-body p.first::first-letter {
  color: var(--ember);
  text-shadow:
    0 0 22px rgba(199, 93, 74, 0.9),
    0 0 38px rgba(255, 120, 90, 0.5),
    0 0 56px rgba(199, 93, 74, 0.28);
}

body.chapter-read .ch-body__opening-glyph {
  color: var(--ember);
}

body.chapter-read .ch-body__opening-glyph::before,
body.chapter-read .ch-body__opening-glyph::after {
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}

body.chapter-read .ch-body__opening-star {
  color: var(--ember);
  text-shadow: 0 0 16px var(--ember), 0 0 28px rgba(255, 140, 100, 0.45);
}

body.chapter-read .ch-body p.dialogue {
  border-left-color: rgba(255, 176, 122, 0.28);
  color: #ede0d0;
}

body.chapter-read .ch-body p.telepathy.telepathy--burn {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #fff8f6;
  background: radial-gradient(ellipse 85% 120% at 50% 50%, rgba(45, 12, 10, 0.42), transparent 72%);
  text-shadow:
    0 0 2px rgba(255, 245, 240, 0.92),
    0 0 8px rgba(255, 75, 28, 0.92),
    0 0 16px rgba(255, 48, 0, 0.78),
    0 0 28px rgba(200, 38, 10, 0.48),
    0 0 40px rgba(110, 22, 8, 0.28);
}

body.chapter-read .ch-body p.telepathy {
  font-style: italic;
  text-align: center;
  font-size: clamp(18px, 1.4vw, 22px);
  letter-spacing: 0.01em;
  padding: 20px 30px;
  margin: 36px auto;
  max-width: 560px;
  color: #fdf2e9;
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  background: radial-gradient(ellipse 85% 100% at 50% 50%, rgba(110, 32, 26, 0.2), transparent 72%);
  text-shadow:
    0 0 6px rgba(255, 130, 85, 0.9),
    0 0 16px rgba(255, 95, 55, 0.7),
    0 0 28px rgba(185, 45, 32, 0.55),
    0 0 42px rgba(120, 20, 16, 0.35);
}

body.chapter-read .ch-body p.mind {
  color: #f0c4ae;
  border-left-color: rgba(255, 176, 122, 0.55);
  background: linear-gradient(90deg, rgba(199, 93, 74, 0.14), transparent 72%);
  text-shadow: 0 0 12px rgba(255, 176, 122, 0.3);
}

body.chapter-read .ch-body p.mind::before {
  color: var(--ember);
  text-shadow: 0 0 10px var(--ember);
}

body.chapter-read .ch-body p.thought {
  color: #e8b89a;
  text-shadow: 0 0 20px rgba(199, 93, 74, 0.4);
}

body.chapter-read .ch-body p.magic-glow {
  color: #fde8dc;
  text-shadow: 0 0 18px rgba(255, 176, 122, 0.55), 0 0 32px rgba(199, 93, 74, 0.35);
}

body.chapter-read .ch-pull {
  color: #faf8f5;
  font-family: "Italianno", cursive;
  text-shadow:
    0 0 8px rgba(255, 150, 115, 0.42),
    0 0 20px rgba(205, 85, 65, 0.48),
    0 0 34px rgba(140, 48, 40, 0.34),
    0 0 48px rgba(85, 28, 22, 0.2);
}

body.chapter-read .ch-divider {
  color: var(--ember);
}

body.chapter-read .ch-divider__star {
  color: var(--ember);
  text-shadow: 0 0 12px var(--ember);
}

body.chapter-read .ch-divider::before,
body.chapter-read .ch-divider::after {
  background: linear-gradient(90deg, transparent, rgba(255, 176, 122, 0.45), transparent);
}

/* Hero — teplá žiara titulkov */
body.chapter-read .ch-hero__roman {
  text-shadow:
    0 0 50px rgba(199, 93, 74, 0.55),
    0 0 90px rgba(199, 93, 74, 0.32),
    0 6px 20px rgba(0, 0, 0, 0.9);
}

body.chapter-read .ch-hero__title {
  text-shadow: 0 0 30px rgba(199, 93, 74, 0.48), 0 3px 14px rgba(0, 0, 0, 0.85);
}

body.chapter-read .ch-hero__eyebrow,
body.chapter-read .ch-hero__pov {
  color: var(--ember);
}

body.chapter-read .ch-hero__eyebrow::before,
body.chapter-read .ch-hero__eyebrow::after {
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}

body.chapter-read .ch-hero__ornament-line {
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}

body.chapter-read .ch-hero__ornament-glyph {
  background: var(--ember);
  box-shadow: 0 0 14px var(--ember);
}

body.chapter-read .ch-hero__pov {
  border-color: rgba(255, 176, 122, 0.45);
}

body.chapter-read .ch-hero__scroll {
  color: var(--parchment-dim);
}

body.chapter-read .ch-hero__scroll-line {
  background: linear-gradient(180deg, transparent, var(--ember));
}

body.chapter-read .ch-back {
  border-color: rgba(255, 176, 122, 0.35);
  color: var(--parchment);
}

body.chapter-read .ch-back:hover {
  border-color: rgba(255, 176, 122, 0.88);
  box-shadow: 0 0 20px rgba(255, 146, 114, 0.48);
  color: #fff;
}

body.chapter-read .ch-progress {
  background: linear-gradient(90deg, var(--ember-deep), var(--ember), #fff);
  box-shadow: 0 0 14px var(--ember);
}

body.chapter-read .ch-footer {
  background: var(--ink);
  color: var(--parchment-dim);
}

body.chapter-read .ch-end {
  color: var(--parchment-dim);
  border-top-color: rgba(255, 176, 122, 0.18);
}

body.chapter-read .ch-end__ornament {
  color: var(--ember);
  text-shadow: 0 0 16px var(--ember);
}

/* Teplý film na celý hero (nad fotkou, pod titulkami) */
body.chapter-read .ch-hero__content {
  position: relative;
  z-index: 2;
}
body.chapter-read .ch-hero__scroll {
  z-index: 3;
}
body.chapter-read .ch-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 35%, rgba(90, 24, 22, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(45, 12, 14, 0.35) 0%, transparent 45%, rgba(20, 5, 8, 0.45) 100%);
  mix-blend-mode: multiply;
}

body.chapter-read .ch-panel__frame {
  border-color: rgba(255, 176, 122, 0.32);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.72), inset 0 0 50px rgba(40, 10, 12, 0.25);
  background: linear-gradient(135deg, rgba(35, 12, 18, 0.65), rgba(8, 4, 10, 0.45));
}
