.graphic-novel-page {
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 82% 0%, rgba(94, 124, 161, 0.18), transparent 24%),
    linear-gradient(180deg, #111214 0%, #17181c 48%, #0a0b0d 100%);
  color: #f3efe8;
}

.graphic-shell {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.45fr) minmax(230px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.panel {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(28, 30, 35, 0.95), rgba(15, 16, 19, 0.96));
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.34);
}

.graphic-hero {
  grid-column: 1 / -1;
  padding: 1.35rem 1.45rem;
  overflow: hidden;
}

.graphic-hero::after {
  content: '';
  position: absolute;
  inset: auto -7rem -5rem auto;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(120, 145, 182, 0.18), transparent 60%);
  filter: blur(8px);
}

.graphic-hero h1,
.graphic-rail h2,
.page-panel h2,
.graphic-notes h2,
.strip-panel h2 {
  margin: 0;
  color: #fffaf3;
}

.graphic-hero h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.graphic-hero p,
.graphic-notes p,
.page-panel figcaption {
  max-width: 70ch;
  color: rgba(243, 239, 232, 0.84);
  line-height: 1.62;
}

.story-kicker,
.story-badge,
.story-counter,
.chapter-chip {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-kicker {
  margin: 0;
  color: #8ea5c9;
  font-size: 0.76rem;
}

.graphic-rail,
.page-panel,
.graphic-notes,
.strip-panel {
  padding: 1rem;
}

.rail-head,
.page-head,
.strip-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.rail-controls {
  display: flex;
  gap: 0.5rem;
}

.rail-controls button {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  color: #fff;
  cursor: pointer;
}

.graphic-tabs {
  display: grid;
  gap: 0.62rem;
  margin-top: 1rem;
}

.chapter-chip {
  width: 100%;
  padding: 0.8rem 0.92rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f4efe9;
  text-align: left;
  cursor: pointer;
}

.chapter-chip strong,
.page-strip button strong {
  display: block;
  color: #fff;
}

.chapter-chip span,
.page-strip button span {
  display: block;
  margin-top: 0.18rem;
  color: rgba(243, 239, 232, 0.7);
  font-size: 0.84rem;
  line-height: 1.35;
}

.chapter-chip.is-active,
.page-strip button.is-active {
  border-color: rgba(167, 190, 230, 0.75);
  background: linear-gradient(180deg, rgba(42, 54, 76, 0.9), rgba(21, 24, 32, 0.96));
  box-shadow: inset 0 0 0 1px rgba(167, 190, 230, 0.18);
}

.graphic-meter {
  height: 0.58rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.graphic-meter-fill {
  width: 16.66%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #809ac6, #c3d2ea);
  transition: width 220ms ease;
}

.story-badge,
.story-counter {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #d9e6ff;
  font-size: 0.74rem;
}

.page-frame {
  margin: 1rem 0 0;
}

.page-art {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, var(--art-sky-top, #293349), var(--art-sky-bottom, #121720));
}

.art-haze,
.art-sky,
.art-buildings,
.art-road,
.art-figure,
.art-shadow {
  position: absolute;
}

.art-haze {
  inset: 0;
  background: radial-gradient(circle at 45% 24%, color-mix(in srgb, var(--art-glow, #a6b9d4) 24%, transparent), transparent 42%);
}

.art-sky {
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.14), transparent 16%),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(180deg, var(--art-sky-top, #293349), var(--art-sky-bottom, #121720));
}

.art-buildings {
  left: -4%;
  right: -4%;
  bottom: 18%;
  height: 46%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 14%),
    linear-gradient(90deg, var(--art-building-a, #1d2532) 0 18%, transparent 18% 22%, var(--art-building-b, #222b3a) 22% 39%, transparent 39% 43%, var(--art-building-c, #151b24) 43% 62%, transparent 62% 66%, var(--art-building-d, #202834) 66% 100%);
  clip-path: polygon(0 100%, 0 46%, 7% 36%, 13% 44%, 20% 26%, 29% 38%, 39% 20%, 49% 33%, 58% 18%, 67% 31%, 76% 14%, 86% 27%, 94% 18%, 100% 28%, 100% 100%);
  opacity: 0.96;
}

.art-road {
  left: 50%;
  bottom: -4%;
  width: 46%;
  height: 42%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--art-road, #3b4658) 62%, #0f1012));
  clip-path: polygon(50% 0, 61% 8%, 70% 24%, 78% 48%, 85% 74%, 100% 100%, 0 100%, 15% 74%, 22% 48%, 30% 24%, 39% 8%);
  opacity: 0.8;
}

.art-figure {
  left: 50%;
  bottom: 8%;
  width: 6.2rem;
  height: 12rem;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 10%, var(--art-figure-head, #d2c8be) 0 11%, transparent 12%),
    linear-gradient(180deg, transparent 0 9%, var(--art-figure-coat, #1a1d24) 9% 44%, transparent 44%),
    radial-gradient(circle at 50% 32%, var(--art-figure-coat, #1a1d24) 0 52%, transparent 53%);
  clip-path: polygon(46% 0, 54% 0, 66% 18%, 76% 43%, 90% 100%, 72% 100%, 61% 60%, 56% 100%, 44% 100%, 39% 60%, 28% 100%, 10% 100%, 24% 43%, 34% 18%);
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.34));
}

.art-shadow {
  left: 50%;
  bottom: 5%;
  width: 10rem;
  height: 1.5rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.28), transparent 72%);
  filter: blur(2px);
}

.graphic-notes blockquote {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 0.28rem solid #8aa0c8;
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.04);
  color: #f7f3ed;
}

.graphic-notes ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.page-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.page-strip button {
  padding: 0.86rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.page-strip button:hover {
  transform: translateY(-1px);
}

@media (max-width: 1120px) {
  .graphic-shell {
    grid-template-columns: 1fr;
  }

  .page-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .graphic-rail,
  .page-panel,
  .graphic-notes,
  .strip-panel,
  .graphic-hero {
    padding: 0.85rem;
  }

  .rail-head,
  .page-head,
  .strip-head {
    flex-direction: column;
  }

  .page-art {
    min-height: 22rem;
  }

  .page-strip {
    grid-template-columns: 1fr;
  }
}