/* Styles for The Boy Cursed by Blood. Load after the shared ../style.css. */

/* The Boy Cursed by Blood synopsis page */
.synopsis-page { --blood: #a52a46; --blood-dark: #411a2b; --night: #1a1118; }
.blood-hero { position: relative; display: flex; min-height: 710px; flex-direction: column; align-items: flex-start; justify-content: center; overflow: hidden; padding: 145px 10vw 100px; background: radial-gradient(ellipse at 75% 45%, #6b263d 0, transparent 40%), radial-gradient(circle at 17% 19%, #ffffff20 0 1px, transparent 2px), radial-gradient(circle at 82% 18%, #f1d49b88 0 1px, transparent 2px), linear-gradient(135deg, #21151f, #120f16 70%); }
.blood-hero::after { position: absolute; right: -12%; bottom: 8%; width: 68%; height: 22%; transform: rotate(-13deg); background: linear-gradient(90deg, transparent, #9f254c99, #d6495b55); clip-path: polygon(0 40%, 100% 0, 87% 60%, 20% 100%); content: ''; }
.blood-hero .eyebrow, .blood-title, .blood-subtitle, .blood-hook, .blood-hero .circle-link { position: relative; z-index: 2; }
.blood-hero .eyebrow { color: #e5c6ca; }
.blood-title { margin: 0; font: 900 clamp(76px, 13vw, 158px)/.76 var(--display); letter-spacing: -.04em; text-shadow: 0 12px 45px #0008; }
.blood-title em { color: #e8d8d0; font-size: .55em; font-style: normal; }
.blood-title span { color: #d14d62; }
.blood-subtitle { margin: 28px 0 0; color: #e6cbd1; font: 600 16px var(--body); letter-spacing: .08em; }
.blood-hook { max-width: 380px; color: #c9b8c2; font-size: 13px; line-height: 1.8; }
.blood-hero .circle-link { margin-top: 16px; color: var(--paper); }
.blood-hero-mark { position: absolute; top: 6%; right: 11%; color: #c84a5b55; font-size: clamp(240px, 38vw, 490px); line-height: 1; animation: sigil-turn 80s linear infinite; }
.blood-hero-note { position: absolute; z-index: 2; right: 5.4vw; bottom: 28px; color: #b7a4b1; font-size: 8px; letter-spacing: .22em; }
.blood-cast { padding-top: 105px; background: radial-gradient(ellipse at 92% 20%, #4b1d32 0, transparent 38%), #1a1118; }
.blood-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 290px); align-items: center; gap: clamp(24px, 4vw, 52px); }
.blood-section-copy { max-width: 550px; }
.blood-section-copy .display-title { margin: 0; }
.blood-section-copy > p { max-width: 300px; margin: 24px 0 0; color: #c5b8c3; font-size: 12px; line-height: 1.9; }
.blood-section-art { display: block; width: min(100%, 290px); max-height: 350px; object-fit: contain; object-position: center right; justify-self: end; filter: drop-shadow(0 18px 30px #0008) drop-shadow(0 0 25px #d14d6240); animation: blood-art-float 7s ease-in-out infinite; }
@keyframes blood-art-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.blood-section-heading .display-title em { color: #d14d62; }
.blood-character-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 65px; }
.blood-character { min-width: 0; }
.blood-portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; isolation: isolate; background: linear-gradient(150deg, #754055, #2c1d2b 65%, #141016); }
.blood-portrait::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, transparent 45%, #100c13cc); content: ''; }
.blood-portrait--boy { background: radial-gradient(ellipse at 50% 28%, #cf8a79 0 12%, transparent 12.5%), linear-gradient(150deg, #73344b, #2c1c2a 65%, #141016); }
.blood-portrait--princess { background: radial-gradient(ellipse at 50% 28%, #e5bd9f 0 12%, transparent 12.5%), linear-gradient(150deg, #79638f, #33233e 65%, #141016); }
.blood-portrait--horde { background: radial-gradient(ellipse at 50% 28%, #d9bb8c 0 12%, transparent 12.5%), linear-gradient(150deg, #6e7656, #29332d 65%, #141016); }
.blood-portrait--witch { background: radial-gradient(ellipse at 50% 28%, #c48c93 0 12%, transparent 12.5%), linear-gradient(150deg, #863a4a, #30203a 65%, #141016); }
.blood-portrait--aunt { background: radial-gradient(ellipse at 50% 45%, #4c555c, #171a20 76%); }
.blood-portrait img { z-index: 2; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.blood-portrait.has-image img { display: block; }
.blood-portrait > span { position: absolute; z-index: 3; bottom: 16px; left: 16px; color: white; font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.blood-character h3 { margin: 16px 0 5px; color: #f0e6e4; font: 700 21px var(--display); text-transform: uppercase; }
.blood-character > p { margin: 0; color: #b8aab5; font-size: 10px; line-height: 1.7; }
.synopsis-story { padding-top: 115px; background: #f5efe9; }
.synopsis-intro { max-width: 750px; margin: 0 auto 70px; }
.synopsis-intro .eyebrow { color: #7b6370; }
.synopsis-intro .display-title em { color: var(--blood); }
.synopsis-chapter { position: relative; display: grid; grid-template-columns: 56px minmax(0, 700px); gap: 24px; max-width: 900px; margin: 0 auto; padding: 28px 0 38px; border-top: 1px solid #d9cbd0; }
.chapter-number { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #b58b96; border-radius: 50%; color: var(--blood); font: 700 18px var(--display); }
.synopsis-chapter h3 { margin: 0 0 12px; color: #321b29; font: 700 28px var(--display); text-transform: uppercase; }
.synopsis-chapter p { margin: 0; color: #514650; font-size: 13px; line-height: 2; }
.synopsis-chapter--blood .chapter-number { border-color: var(--blood); background: #a52a4610; }
.synopsis-chapter--blood h3 { color: #81243b; }
.battle-interlude { position: relative; display: grid; min-height: 230px; max-width: 900px; margin: 35px auto 45px; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #a52a4680, transparent 55%), linear-gradient(120deg, #251925, #442033 60%, #1b1620); }
.battle-interlude::after { position: absolute; inset: 0; background: repeating-linear-gradient(155deg, transparent 0 70px, #ffffff09 71px 73px); content: ''; }
.battle-interlude img { z-index: 0; display: none; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.battle-interlude.has-image img { display: block; }
.battle-interlude p { position: absolute; z-index: 2; color: #f5efe9; font: 700 clamp(19px, 3vw, 30px)/1.2 var(--display); letter-spacing: .08em; text-align: center; text-shadow: 0 4px 24px #000; }
.battle-sigil { position: absolute; z-index: 1; color: #e6b66d88; font-size: 180px; }
.synopsis-ending { max-width: 800px; margin: 55px auto 0; padding: 30px 0 25px 28px; border-left: 4px solid var(--blood); color: #3a202e; font: 700 clamp(24px, 4vw, 38px)/1.2 var(--display); }
.synopsis-back { display: flex; width: fit-content; max-width: 100%; margin: 50px auto 0; }

@media (max-width: 1050px) {
  .blood-character-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .blood-hero { min-height: 650px; padding: 125px 8vw 90px; }
  .blood-title { font-size: clamp(70px, 20vw, 118px); }
  .blood-subtitle { font-size: 13px; }
  .blood-hero-mark { top: 22%; right: -13%; font-size: 280px; }
  .blood-section-heading { grid-template-columns: 1fr; gap: 18px; }
  .blood-section-copy > p { margin-top: 20px; }
  .blood-section-art { width: min(64vw, 230px); max-height: 275px; justify-self: end; }
  .blood-character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; margin-top: 42px; }
  .blood-character h3 { font-size: 18px; }
  .blood-character > p { font-size: 9px; }
  .synopsis-story { padding-top: 85px; }
  .synopsis-intro { margin-bottom: 45px; }
  .synopsis-chapter { grid-template-columns: 38px minmax(0, 1fr); gap: 13px; padding: 23px 0 28px; }
  .chapter-number { width: 34px; height: 34px; font-size: 15px; }
  .synopsis-chapter h3 { font-size: 24px; }
  .synopsis-chapter p { font-size: 12px; line-height: 1.9; }
  .battle-interlude { min-height: 190px; }
  .battle-sigil { font-size: 130px; }
  .synopsis-ending { margin-top: 40px; padding-left: 18px; }
}
@media (max-width: 420px) {
  .blood-character-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .blood-hero-mark, .blood-section-art { animation: none; }
}

/* Red thriller motion on the novel detail page */
.synopsis-page .blood-hero { background: radial-gradient(ellipse at 75% 45%, #9f203e 0, transparent 42%), radial-gradient(circle at 17% 19%, #ffffff20 0 1px, transparent 2px), linear-gradient(130deg, #25111c, #100d13 70%); }
.synopsis-page .blood-hero::before { position: absolute; z-index: 1; inset: -30% -70%; transform: rotate(-17deg) translateX(-75%); background: linear-gradient(90deg, transparent, #d43b5522 45%, #ec465322 50%, transparent 60%); animation: crimson-sweep 8s ease-in-out infinite; content: ''; }
.synopsis-page .blood-hero::after { animation: slash-drift 7s ease-in-out infinite alternate; }
.synopsis-page .blood-hero-mark { color: #df385b66; text-shadow: 0 0 60px #e33b5655; animation: sigil-turn 44s linear infinite, sigil-pulse 4s ease-in-out infinite alternate; }
.synopsis-page .blood-title span { color: #ff5365; text-shadow: 0 0 35px #e82f4b77; }
.synopsis-page .blood-portrait { box-shadow: inset 0 0 0 1px #e7485a55, 0 12px 36px #0005; }
.synopsis-page .blood-portrait:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px #ff5d70, 0 18px 42px #a52a4640; }
.synopsis-page .synopsis-story { background: radial-gradient(ellipse at 5% 15%, #421927, transparent 32%), radial-gradient(ellipse at 95% 57%, #351524, transparent 34%), #181117; color: #f4e9e8; }
.synopsis-page .synopsis-story .section-index { color: #f4e9e8; }
.synopsis-page .synopsis-story .section-index span { color: #c39ca9; }
.synopsis-page .synopsis-intro .eyebrow { color: #d492a0; }
.synopsis-page .synopsis-intro .display-title { color: #fff1ec; }
.synopsis-page .synopsis-intro .display-title em { color: #f04a60; }
.synopsis-page .synopsis-chapter { border-color: #763447; }
.synopsis-page .chapter-number { border-color: #d84d64; background: #a52a4628; color: #ff7884; }
.synopsis-page .synopsis-chapter h3 { color: #ffe8e5; }
.synopsis-page .synopsis-chapter--blood h3 { color: #ff7884; }
.synopsis-page .synopsis-chapter p { color: #d2c2c7; }
.synopsis-page .battle-interlude { box-shadow: 0 0 55px #a52a4622; }
.synopsis-page .battle-interlude::after { animation: battle-flash 2.7s ease-in-out infinite alternate; }
.synopsis-page .synopsis-ending { border-color: #ef4b63; color: #ffe3df; text-shadow: 0 0 22px #e738512c; }
.synopsis-page .synopsis-back { color: #f1dce0; }
@keyframes crimson-sweep { 0%, 16% { transform: rotate(-17deg) translateX(-75%); } 55%, 100% { transform: rotate(-17deg) translateX(75%); } }
@keyframes slash-drift { from { transform: rotate(-13deg) translateX(0); } to { transform: rotate(-13deg) translateX(-3%); } }
@keyframes sigil-pulse { from { opacity: .5; } to { opacity: 1; } }
@keyframes battle-flash { from { opacity: .3; } to { opacity: .85; } }

/* Author background appears only at the end of the synopsis */
.origin-teaser { max-width: 800px; margin: 45px auto 0; padding: 30px 32px; border: 1px solid #ab3b51; background: linear-gradient(125deg, #32131f, #21131d); box-shadow: 0 0 42px #a52a4622; }
.origin-teaser .eyebrow { margin-bottom: 12px; color: #e18a99; }
.origin-teaser h2 { margin: 0 0 10px; color: #fff0ec; font: 700 clamp(24px, 4vw, 38px)/1 var(--display); text-transform: uppercase; }
.origin-teaser > p:not(.eyebrow) { margin: 0; color: #cfb9c0; font-size: 12px; line-height: 1.8; }
.origin-teaser-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 20px; padding-bottom: 8px; border-bottom: 1px solid #e77080; color: #fff0ec; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.origin-teaser-link span { color: #ff7586; font-size: 16px; }
@media (max-width: 700px) { .origin-teaser { padding: 24px 20px; } }

/* Full author background placed immediately after the novel synopsis */
.synopsis-origin { margin: 70px -10vw 0; padding: 90px 10vw 100px; background: linear-gradient(135deg, #eee3dc, #f7eee8 55%, #e8d8d5); color: #261820; }
.synopsis-origin-heading { max-width: 800px; margin: 0 auto 55px; }
.synopsis-origin-heading .eyebrow { color: #9d3349; }
.synopsis-origin-heading .display-title { color: #241720; font-size: clamp(43px, 7vw, 83px); }
.synopsis-origin-heading .display-title em { color: #a52a46; }
.synopsis-origin-heading > p:last-child { color: #67535e; font-size: 13px; line-height: 1.8; }
.synopsis-origin .origin-prose { max-width: 800px; }
.synopsis-origin .origin-prose p { color: #51434b; font-size: 13px; line-height: 1.95; }
.synopsis-origin .origin-prose strong { color: #8a233b; }
@media (max-width: 700px) {
  .synopsis-origin { margin: 55px -8vw 0; padding: 70px 8vw 80px; }
  .synopsis-origin-heading { margin-bottom: 38px; }
  .synopsis-origin-heading .display-title { font-size: clamp(38px, 11vw, 64px); }
  .synopsis-origin .origin-prose p { font-size: 12px; }
}

/* Supplied character artwork: consistent framing, no distortion */
.blood-portrait { background-color: #17121b; border: 1px solid #9b53624a; }
.blood-portrait img { padding: 8px; object-fit: contain; object-position: center bottom; transition: transform .45s cubic-bezier(.2, .7, .2, 1), filter .45s ease; }
.blood-portrait.has-image img { display: block; }
.blood-character:hover .blood-portrait img { transform: scale(1.035); filter: drop-shadow(0 6px 16px #0008); }
.blood-portrait--boy { background: radial-gradient(ellipse at 50% 45%, #68293e, #201722 76%); }
.blood-portrait--princess { background: radial-gradient(ellipse at 50% 45%, #54405e, #1b1721 76%); }
.blood-portrait--witch { background: radial-gradient(ellipse at 50% 45%, #7d3045, #20141e 76%); }
.blood-portrait--horde { background: radial-gradient(ellipse at 50% 45%, #39413d, #17161b 76%); }
.battle-interlude img { object-fit: contain; object-position: right center; opacity: .8; }
.battle-interlude.has-image::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, #251925 10%, #251925df 47%, #25192555); content: ''; }
.battle-interlude p { right: 8%; left: 8%; }
@media (max-width: 700px) {
  .blood-portrait img { padding: 5px; }
  .battle-interlude img { opacity: .62; }
  .battle-interlude p { right: 5%; left: 5%; }
}

/* Hero illustration replacing the decorative star */
.synopsis-page .blood-hero-mark { top: 7%; right: -5%; width: min(65vw, 850px); height: 88%; color: transparent; font-size: 0; line-height: 0; text-shadow: none; animation: none; }
.synopsis-page .blood-hero-mark::before { position: absolute; inset: 18% 5%; border-radius: 50%; background: radial-gradient(ellipse, #b9344b48, #84203918 48%, transparent 72%); filter: blur(20px); content: ''; }
.synopsis-page .blood-hero-mark img { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center right; filter: drop-shadow(0 18px 32px #0009) drop-shadow(0 0 24px #d9415840); animation: duel-float 7s ease-in-out infinite; }
@keyframes duel-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 700px) {
  .synopsis-page .blood-hero-mark { top: 35%; right: -18%; width: 125vw; height: 58%; opacity: .74; }
  .synopsis-page .blood-hero-mark img { object-position: center right; }
}
@media (prefers-reduced-motion: reduce) {
  .synopsis-page .blood-hero-mark img { animation: none; }
}

/* Blend the duel artwork into the hero and keep the sigil behind it */
.synopsis-page .blood-hero-mark { z-index: 1; overflow: visible; }
.synopsis-page .blood-hero-mark::before { z-index: 0; inset: 13% 2%; background: radial-gradient(ellipse, #b9344b55 0, #84203925 48%, transparent 75%); filter: blur(34px); }
.synopsis-page .blood-hero-sigil { position: absolute; z-index: 1; top: 50%; left: 50%; display: block; transform: translate(-50%, -50%); color: #e5566d35; font: 400 clamp(240px, 39vw, 520px)/1 var(--display); text-shadow: 0 0 50px #ad263b44; animation: hero-sigil-turn 48s linear infinite; }
.synopsis-page .blood-hero-mark img { z-index: 2; object-position: center; -webkit-mask-image: radial-gradient(ellipse 94% 88% at 50% 52%, #000 68%, #000d 83%, transparent 100%); mask-image: radial-gradient(ellipse 94% 88% at 50% 52%, #000 68%, #000d 83%, transparent 100%); filter: drop-shadow(0 14px 28px #0007) drop-shadow(0 0 30px #d9415838); }
@keyframes hero-sigil-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (max-width: 700px) {
  .synopsis-page .blood-hero-sigil { font-size: clamp(230px, 68vw, 390px); }
  .synopsis-page .blood-hero-mark img { -webkit-mask-image: radial-gradient(ellipse 100% 92% at 50% 52%, #000 72%, #000d 86%, transparent 100%); mask-image: radial-gradient(ellipse 100% 92% at 50% 52%, #000 72%, #000d 86%, transparent 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .synopsis-page .blood-hero-sigil { animation: none; }
}

/* Link to the dedicated reading page */
.blood-title-row { position:relative; z-index:2; display:flex; width:min(100%,980px); align-items:flex-end; justify-content:space-between; gap:28px; }
.blood-title-row .blood-title { flex:0 1 auto; }
.blood-read-link { display:inline-flex; flex:0 0 auto; align-items:center; gap:16px; margin:0 0 5px; padding:13px 16px; border:1px solid #ff788477; background:#29131cbb; color:#fff2ed; font-size:9px; font-weight:700; letter-spacing:.16em; transition:background .2s,transform .2s; }
.blood-read-link:hover { transform:translateY(-3px); background:#a52a4655; }
.blood-read-link b { color:#ff7884; font-size:18px; font-weight:400; }
@media(max-width:700px) { .blood-title-row { align-items:flex-start; flex-direction:column; gap:20px; } .blood-read-link { margin:0; } }
