:root {
  --night: #120c18;
  --night-soft: #211529;
  --ink: #1c1322;
  --purple: #7b32bd;
  --purple-hot: #a85ce2;
  --lilac: #ddd0e9;
  --paper: #d9c2e8;
  --muted: #766a7e;
  --green: #7ce4ae;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #0d0811;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.nebula-shell {
  min-height: 100vh;
  padding: clamp(12px, 2.2vw, 34px);
  background:
    radial-gradient(circle at 13% 20%, rgba(129, 53, 190, 0.32), transparent 24%),
    radial-gradient(circle at 88% 74%, rgba(102, 33, 153, 0.28), transparent 25%),
    #0d0811;
}

.magazine {
  position: relative;
  width: min(1580px, 100%);
  min-height: min(920px, calc(100vh - clamp(24px, 4.4vw, 68px)));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background:
    radial-gradient(circle at 24% 40%, rgba(255, 255, 255, 0.34), transparent 29%),
    radial-gradient(circle at 68% 14%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #eadcf3 0%, #dfcce9 42%, #cda8e1 76.5%, #120c18 76.5%);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5);
  isolation: isolate;
}

.magazine::before {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 33.5%;
  width: 1px;
  content: "";
  background: transparent;
}

.star-field {
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.27;
  background-image:
    radial-gradient(rgba(64, 28, 84, 0.4) 0.65px, transparent 0.7px),
    radial-gradient(rgba(255, 255, 255, 0.36) 0.7px, transparent 0.8px);
  background-position: 0 0, 9px 11px;
  background-size: 19px 19px, 31px 31px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.giant-type {
  position: absolute;
  z-index: 0;
  top: 88px;
  left: -24px;
  color: transparent;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(128px, 14vw, 225px);
  font-weight: 950;
  line-height: 0.73;
  letter-spacing: -0.085em;
  opacity: 0.12;
  -webkit-text-stroke: 1.5px #54226f;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: top left;
}

.masthead {
  position: absolute;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 76.5% 23.5%;
  height: 64px;
  border-bottom: 1px solid rgba(54, 26, 68, 0.14);
}

.edition-mark {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-right: 27px;
  color: #795c89;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.edition-mark b {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  color: white;
  background: var(--purple);
  font: italic 13px Georgia, serif;
  transform: rotate(5deg);
}

.online-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: clamp(28px, 3vw, 48px);
  color: rgba(255, 255, 255, 0.66);
  background: var(--night);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
}
.online-mark i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(124, 228, 174, 0.1);
}

.layout-grid {
  display: grid;
  grid-template-columns: 33.5% 43% 23.5%;
  min-height: inherit;
}

.character-panel {
  position: relative;
  z-index: 3;
  min-width: 0;
  overflow: visible;
  padding-top: 64px;
  background: transparent;
}
.character-panel::after {
  position: absolute;
  z-index: 1;
  right: -8px;
  bottom: 54px;
  left: 18%;
  height: 34px;
  content: "";
  background: rgba(72, 32, 94, 0.14);
  filter: blur(18px);
  border-radius: 50%;
}
.vertical-caption {
  position: absolute;
  z-index: 7;
  top: 94px;
  left: 25px;
  color: #765186;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.23em;
  writing-mode: vertical-rl;
}
.orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(101, 39, 139, 0.17);
  border-radius: 50%;
}
.orbit-one { top: 24%; left: 8%; width: 79%; aspect-ratio: 1; }
.orbit-two { top: 30%; left: 17%; width: 63%; aspect-ratio: 1; }
.orbit-one::after {
  position: absolute;
  top: 10%;
  right: 7%;
  color: #8b43bf;
  content: "✦";
  font-size: 26px;
}
.character-art {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 68px;
  width: min(30vw, 435px);
  aspect-ratio: 2 / 3;
  background-image: url("/anime/hero.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 28px 28px rgba(30, 10, 42, 0.34));
  transition: transform 420ms ease;
}
.magazine:hover .character-art { transform: translateY(-5px) rotate(-0.5deg); }
.navigation-panel {
  position: relative;
  z-index: 4;
  min-width: 0;
  padding: 81px clamp(30px, 3.2vw, 54px) 66px;
  background: transparent;
}
.hero-copy > p {
  margin: 0 0 12px;
  color: #806c8b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.hero-copy h1 {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin: 0;
  font-size: clamp(67px, 6.8vw, 112px);
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: -0.12em;
  white-space: nowrap;
}
.hero-copy h1 span { position: relative; z-index: 2; }
.hero-copy h1 span::after {
  position: absolute;
  z-index: -1;
  right: -6px;
  bottom: -4px;
  left: 10px;
  height: 18%;
  content: "";
  background: rgba(145, 69, 200, 0.3);
  transform: rotate(-2deg);
}
.hero-copy h1 em {
  position: relative;
  margin-left: 0.08em;
  color: transparent;
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-style: normal;
  -webkit-text-stroke: 2px var(--purple);
  text-shadow: 6px 6px 0 #c28be5;
  transform: rotate(-4deg) translateY(5px);
}
.hero-copy h1 em::after {
  position: absolute;
  z-index: -1;
  right: -7%;
  bottom: -20%;
  left: 10%;
  height: 9px;
  content: "";
  background: var(--night);
  clip-path: polygon(0 42%, 100% 0, 96% 100%, 4% 72%);
}
.hero-rule {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  color: #887491;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.23em;
}
.hero-rule span { width: 54px; height: 1px; background: var(--purple); }

.dialogue-stage {
  position: relative;
  margin-top: clamp(38px, 5vh, 58px);
  padding: 0 8px 20px 31px;
}
.dialogue-stage::before {
  position: absolute;
  top: 43px;
  bottom: 36px;
  left: 2px;
  width: 1px;
  content: "";
  background: repeating-linear-gradient(to bottom, rgba(123, 50, 189, 0.5) 0 4px, transparent 4px 10px);
}
.dialogue-stage::after {
  position: absolute;
  top: 37px;
  left: -3px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--purple);
  border-radius: 50%;
  content: "";
  background: #d7bce7;
  box-shadow: 0 0 0 6px rgba(123, 50, 189, 0.1);
}
.dialogue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(48, 23, 60, 0.2);
}
.dialogue-heading span {
  color: #8b5ba4;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.dialogue-heading b {
  color: var(--ink);
  font: italic 22px Georgia, serif;
}
.dialogue-stream {
  position: relative;
  display: grid;
  gap: 10px;
}
.dialogue-bubble {
  position: relative;
  opacity: 0;
  transform: translateX(-42px) scale(0.84) rotate(-2deg);
  transform-origin: left center;
  animation: dialogue-pop 620ms cubic-bezier(0.18, 0.89, 0.32, 1.32) forwards;
}
.dialogue-bubble::before {
  position: absolute;
  top: 26px;
  left: -13px;
  width: 17px;
  height: 19px;
  content: "";
  background: inherit;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
.dialogue-bubble:nth-child(1) { animation-delay: 120ms; }
.dialogue-bubble:nth-child(2) { animation-delay: 420ms; }
.dialogue-bubble:nth-child(3) { animation-delay: 700ms; }
.dialogue-bubble:nth-child(4) { animation-delay: 980ms; }
.dialogue-bubble:nth-child(5) { animation-delay: 1260ms; }
.dialogue-lead {
  width: 94%;
  min-height: 92px;
  padding: 17px 20px 17px 104px;
  color: white;
  background: linear-gradient(112deg, #24122f, #57227e);
  box-shadow: 9px 10px 0 rgba(77, 28, 109, 0.18);
}
.dialogue-lead::after {
  position: absolute;
  top: -16px;
  right: 20px;
  color: #c284e8;
  content: "✦";
  font-size: 24px;
  transform: rotate(12deg);
}
.bubble-copy { position: relative; z-index: 2; }
.bubble-copy > span {
  display: block;
  margin-bottom: 4px;
  color: #b879dd;
  font: italic 9px Georgia, serif;
}
.dialogue-lead .bubble-copy > span { color: #d5a2f1; }
.dialogue-lead h2 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-size: clamp(21px, 2vw, 31px);
  line-height: 1.25;
  letter-spacing: -0.04em;
}
.dialogue-line {
  width: 88%;
  min-height: 74px;
  padding: 12px 17px 12px 86px;
  border: 1px solid rgba(78, 27, 111, 0.18);
  color: #3f244c;
  background: rgba(133, 68, 174, 0.2);
  box-shadow: 6px 7px 0 rgba(65, 32, 80, 0.08);
}
.dialogue-line:nth-child(even) { margin-left: 6%; background: rgba(109, 45, 151, 0.28); }
.dialogue-line:nth-child(3n) { width: 94%; }
.dialogue-line p {
  margin: 0;
  color: #4f355c;
  font-size: 10px;
  line-height: 1.65;
}
.bubble-character {
  position: absolute;
  z-index: 3;
  bottom: -2px;
  left: -9px;
  width: 92px;
  height: 92px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 7px 7px rgba(41, 14, 56, 0.24));
  pointer-events: none;
}
.dialogue-lead .bubble-character {
  bottom: -5px;
  left: -14px;
  width: 112px;
  height: 112px;
}
@keyframes dialogue-pop {
  0% { opacity: 0; transform: translateX(-42px) scale(0.84) rotate(-2deg); }
  68% { opacity: 1; transform: translateX(7px) scale(1.025) rotate(0.5deg); }
  100% { opacity: 1; transform: translateX(0) scale(1) rotate(0); }
}

.release-panel {
  position: relative;
  z-index: 4;
  min-width: 0;
  overflow: hidden;
  padding: 127px clamp(27px, 2.6vw, 45px) 72px;
  color: white;
  background:
    radial-gradient(circle at 105% 17%, rgba(151, 72, 213, 0.34), transparent 28%),
    var(--night);
}
.release-panel::before {
  position: absolute;
  top: 109px;
  right: -82px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(190, 128, 233, 0.14);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 31px rgba(190, 128, 233, 0.035), 0 0 0 66px rgba(190, 128, 233, 0.02);
}
.radio-mark { position: absolute; top: 111px; right: 29px; color: #c786ef; transform: rotate(18deg); }
.release-heading { position: relative; z-index: 2; }
.release-heading > span { color: #b478d8; font-size: 7px; font-weight: 900; letter-spacing: 0.22em; }
.release-heading h2 {
  display: grid;
  margin: 13px 0 17px;
  font-size: clamp(43px, 4.1vw, 66px);
  line-height: 0.77;
  letter-spacing: -0.11em;
}
.release-heading h2 em {
  margin-left: 0.25em;
  color: transparent;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 1.07em;
  font-style: normal;
  -webkit-text-stroke: 1px #c98df1;
  transform: rotate(-5deg);
}
.release-heading p { margin: 0; color: rgba(255, 255, 255, 0.46); font-family: "STKaiti", "KaiTi", serif; font-size: 13px; }

.domain-ledger { position: relative; z-index: 2; display: grid; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.domain-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 30px;
  gap: 9px;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  opacity: 0.43;
}
.domain-row.is-live { opacity: 1; }
.domain-row > span { color: #bb7be4; font: italic 9px Georgia, serif; }
.domain-row p { display: grid; gap: 3px; min-width: 0; margin: 0; }
.domain-row small { color: #a268c5; font-size: 6px; font-weight: 900; letter-spacing: 0.17em; }
.domain-row strong { color: rgba(255, 255, 255, 0.88); font-size: 10px; }
.domain-row em { overflow: hidden; color: rgba(255, 255, 255, 0.38); font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.domain-row > a { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(201, 139, 241, 0.28); color: #d298f7; }
.domain-row > a:hover, .domain-row > a:focus-visible { outline: none; color: white; background: var(--purple); transform: rotate(-6deg); }
.domain-row > i { color: rgba(255, 255, 255, 0.22); font-style: normal; text-align: center; }

.bookmark-sticker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 14px 15px;
  color: var(--night);
  background: #d5a1f4;
  box-shadow: 9px 9px 0 rgba(139, 65, 189, 0.22);
  transform: rotate(-2deg);
}
.bookmark-sticker p { display: grid; gap: 3px; margin: 0; }
.bookmark-sticker strong { font-size: 10px; }
.bookmark-sticker small { color: rgba(31, 16, 39, 0.58); font-size: 7px; }
.release-quote {
  position: absolute;
  right: -7px;
  bottom: 56px;
  color: transparent;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(38px, 3.5vw, 57px);
  font-weight: 950;
  line-height: 0.74;
  letter-spacing: -0.06em;
  opacity: 0.13;
  -webkit-text-stroke: 1px #d8a1f7;
  transform: rotate(-5deg);
}

.magazine-footer {
  position: absolute;
  z-index: 25;
  right: 25px;
  bottom: 20px;
  left: 25px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: rgba(52, 31, 62, 0.42);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.magazine-footer span:nth-child(2) { text-align: center; }
.magazine-footer span:last-child { color: rgba(255, 255, 255, 0.25); text-align: right; }

@media (max-width: 1180px) {
  .magazine { min-height: 1250px; }
  .masthead { grid-template-columns: 72% 28%; }
  .layout-grid { grid-template-columns: 38% 62%; grid-template-rows: 830px 420px; }
  .magazine::before { left: 38%; }
  .character-panel { grid-column: 1; grid-row: 1; }
  .navigation-panel { grid-column: 2; grid-row: 1; padding-inline: 45px; }
  .release-panel { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 25% 43% 32%; gap: 30px; padding: 90px 48px 58px; }
  .online-mark { padding-left: 32px; }
  .release-heading { align-self: start; }
  .domain-ledger { margin-top: -8px; }
  .bookmark-sticker { align-self: start; margin-top: 6px; }
  .release-quote { bottom: 48px; }
  .character-art { right: 5%; width: min(33vw, 380px); }
}

@media (max-width: 720px) {
  .nebula-shell { padding: 0; background: #dfcce9; }
  .magazine { width: 100%; min-height: 0; border: 0; box-shadow: none; }
  .magazine::before { display: none; }
  .star-field { opacity: 0.2; }
  .masthead { position: relative; display: flex; height: 60px; }
  .edition-mark { margin-left: auto; padding-right: 12px; }
  .edition-mark > span { display: none; }
  .edition-mark b { width: 30px; height: 30px; }
  .online-mark { display: none; }
  .layout-grid { display: block; min-height: 0; }
  .giant-type { top: 245px; left: -7px; font-size: 88px; opacity: 0.08; }
  .character-panel { height: 390px; overflow: hidden; padding-top: 0; }
  .vertical-caption { top: 23px; left: 14px; font-size: 6px; }
  .character-art { right: auto; bottom: 0; left: 50%; width: min(66vw, 270px); transform: translateX(-50%); }
  .magazine:hover .character-art { transform: translate(-50%, -4px); }
  .orbit-one { top: 7%; left: 8%; width: 84%; }
  .orbit-two { top: 14%; left: 19%; width: 62%; }
  .navigation-panel {
    z-index: 8;
    margin-top: -24px;
    padding: 48px 16px 64px;
    border-radius: 26px 26px 0 0;
    background: linear-gradient(to bottom, rgba(235, 220, 244, 0.9), rgba(218, 194, 232, 0.42) 24%, transparent 55%);
  }
  .hero-copy { text-align: center; }
  .hero-copy h1 {
    justify-content: center;
    font-size: clamp(52px, 15.5vw, 66px);
    letter-spacing: -0.11em;
  }
  .hero-copy > p { margin-bottom: 10px; font-size: 8px; line-height: 1.6; }
  .hero-rule { justify-content: center; margin-top: 19px; }
  .dialogue-stage { margin-top: 38px; padding: 0 0 16px 18px; text-align: left; }
  .dialogue-heading { margin-bottom: 15px; }
  .dialogue-stream { gap: 12px; }
  .dialogue-lead {
    width: 100%;
    min-height: 94px;
    padding: 17px 15px 17px 94px;
  }
  .dialogue-lead h2 { font-size: clamp(18px, 5.2vw, 23px); line-height: 1.35; }
  .dialogue-line,
  .dialogue-line:nth-child(even),
  .dialogue-line:nth-child(3n) {
    width: 100%;
    min-height: 76px;
    margin-left: 0;
    padding: 12px 14px 12px 78px;
  }
  .dialogue-line p { font-size: 10px; line-height: 1.55; }
  .bubble-character { left: -5px; width: 80px; height: 80px; }
  .dialogue-lead .bubble-character { left: -10px; width: 102px; height: 102px; }
  .release-panel { display: block; padding: 78px 20px 105px; }
  .release-heading h2 { font-size: 58px; }
  .domain-ledger { margin-top: 38px; }
  .domain-row { min-height: 88px; }
  .domain-row > a { width: 40px; height: 40px; }
  .bookmark-sticker { margin-top: 33px; }
  .release-quote { right: 15px; bottom: 48px; }
  .magazine-footer { right: 16px; bottom: 16px; left: 16px; grid-template-columns: 1fr auto; color: rgba(255, 255, 255, 0.2); }
  .magazine-footer span:nth-child(2) { display: none; }
}

@media (max-width: 390px) {
  .character-panel { height: 360px; }
  .character-art { width: min(64vw, 245px); }
  .navigation-panel { padding-inline: 13px; }
  .hero-copy h1 { font-size: clamp(48px, 15vw, 58px); }
  .dialogue-stage { padding-left: 16px; }
  .dialogue-lead { padding-left: 86px; }
  .dialogue-line,
  .dialogue-line:nth-child(even),
  .dialogue-line:nth-child(3n) { padding-left: 72px; }
  .bubble-character { width: 74px; height: 74px; }
  .dialogue-lead .bubble-character { width: 94px; height: 94px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .dialogue-bubble { opacity: 1 !important; animation: none !important; transform: none !important; }
}
