:root {
  color-scheme: light;
  --ink: #302a2a;
  --paper: #fffdf8;
  --shadow: 0 22px 55px rgba(37, 32, 30, .16), 0 3px 12px rgba(37, 32, 30, .08);
}

* {
  box-sizing: border-box;
}

html {
  background: #ecebea;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(255,255,255,.9), transparent 24rem),
    #ecebea;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.music-toggle {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 11px;
  border: 1px solid rgba(92, 73, 65, .18);
  border-radius: 99px;
  color: #5f5049;
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 7px 22px rgba(55, 45, 41, .14);
  font: 800 11px/1 "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .08em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .2s ease, color .2s ease, background .2s ease;
}

.music-toggle:hover {
  transform: translateY(-1px);
}

.music-toggle:focus-visible {
  outline: 3px solid rgba(225, 95, 102, .28);
  outline-offset: 3px;
}

.music-toggle.is-playing {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #e86c73, #e89b67);
}

.music-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 16px;
  height: 18px;
}

.music-icon i {
  display: block;
  width: 2px;
  height: 6px;
  border-radius: 3px;
  background: currentColor;
}

.music-icon i:nth-child(2) {
  height: 12px;
}

.music-toggle.is-playing .music-icon i {
  animation: music-wave .72s ease-in-out infinite alternate;
}

.music-toggle.is-playing .music-icon i:nth-child(2) {
  animation-delay: -.45s;
}

.music-toggle.is-playing .music-icon i:nth-child(3) {
  animation-delay: -.22s;
}

@keyframes music-wave {
  from { height: 5px; }
  to { height: 15px; }
}

.page-intro {
  width: min(390px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 4px 28px;
}

.page-intro .eyebrow {
  margin: 0 0 8px;
  color: #8d817b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.page-intro h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 30px;
  letter-spacing: .04em;
}

.page-intro > p:last-child {
  margin: 7px 0 0;
  color: #837a76;
  font-size: 12px;
}

.poster-feed {
  display: grid;
  justify-content: center;
  gap: 34px;
  padding: 0 12px;
}

.poster {
  position: relative;
  isolation: isolate;
  width: min(390px, calc(100vw - 24px));
  aspect-ratio: 1080 / 1920;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
  container-type: inline-size;
}

.poster::after {
  position: absolute;
  inset: 0;
  z-index: 20;
  border: 1px solid rgba(40, 35, 32, .07);
  content: "";
  pointer-events: none;
}

.poster-header {
  position: relative;
  z-index: 5;
}

.poster h2 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-weight: 900;
  line-height: 1.08;
}

.chapter {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.sequence {
  position: absolute;
  top: 21px;
  right: 22px;
  z-index: 12;
  display: grid;
  min-width: 48px;
  height: 29px;
  padding: 0 9px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.poster-footer {
  position: absolute;
  right: 23px;
  bottom: 15px;
  left: 23px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
}

.poster-footer i {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .35;
}

.poster-footer small {
  font-size: 7px;
  letter-spacing: .15em;
}

.paper-noise,
.ink-grid,
.watercolor-clouds,
.rainbow-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.paper-noise {
  z-index: 1;
  opacity: .26;
  background-image:
    repeating-linear-gradient(17deg, transparent 0 3px, rgba(110,74,45,.07) 4px, transparent 5px),
    repeating-linear-gradient(101deg, transparent 0 6px, rgba(255,255,255,.32) 7px, transparent 8px);
  mix-blend-mode: multiply;
}

/* Poster 1 */
.poster-healing {
  color: #49392f;
  background:
    radial-gradient(circle at 16% 77%, rgba(246,163,181,.36), transparent 26%),
    radial-gradient(circle at 90% 38%, rgba(255,189,93,.32), transparent 28%),
    linear-gradient(150deg, #fff5cf 0%, #fff9e9 45%, #f9e3d4 100%);
}

.poster-healing .poster-header {
  padding: 34px 29px 0;
}

.poster-healing .chapter {
  color: #d66c71;
}

.poster-healing h2 {
  max-width: 305px;
  font-size: 34px;
  letter-spacing: -.03em;
}

.poster-healing h2 span {
  color: #e4816f;
}

.title-note {
  margin: 7px 0 0 3px;
  color: #b98564;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .22em;
}

.sunbeam {
  position: absolute;
  top: -20px;
  right: -36px;
  width: 190px;
  height: 430px;
  transform: rotate(17deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.64), transparent);
  filter: blur(3px);
  opacity: .7;
}

.healing-scene {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 307px;
  margin-top: -3px;
}

.healing-scene svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.window-line,
.finger {
  fill: none;
  stroke: #b8956b;
  stroke-linecap: round;
  stroke-width: 2;
  opacity: .55;
}

.leaf {
  fill: #8fb978;
  stroke: #53774e;
  stroke-width: 1.5;
}

.leaf-two { fill: #efb060; }
.table-shadow { fill: rgba(151,100,70,.12); }

.bead-board rect {
  fill: rgba(255,255,255,.57);
  stroke: #cda986;
  stroke-width: 2;
}

.beads circle {
  stroke: rgba(103,72,58,.28);
  stroke-width: 1;
}

.beads circle:nth-child(5n+1) { fill: #e97c82; }
.beads circle:nth-child(5n+2) { fill: #efbd55; }
.beads circle:nth-child(5n+3) { fill: #74b69e; }
.beads circle:nth-child(5n+4) { fill: #7ba8d7; }
.beads circle:nth-child(5n) { fill: #b98fc8; }

.hand {
  fill: url(#skin);
  stroke: #bd7c63;
  stroke-width: 2;
}

.held-bead { fill: #ee7180; stroke: #8c504c; }
.loose-beads circle:nth-child(3n+1) { fill: #ed7781; }
.loose-beads circle:nth-child(3n+2) { fill: #efbc4f; }
.loose-beads circle:nth-child(3n) { fill: #68ad97; }

.pixel-samples rect {
  fill: rgba(255,255,255,.58);
  stroke: #c9a481;
}

.pixel-samples path,
.pixel-samples circle {
  fill: none;
  stroke: #bd7466;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pixel-samples g:nth-child(2) path { stroke: #6b9c7c; }
.pixel-samples g:nth-child(3) path { stroke: #9b765f; }

.poster-healing blockquote {
  position: absolute;
  right: 28px;
  bottom: 126px;
  left: 28px;
  z-index: 6;
  margin: 0;
  padding: 12px 14px 11px 17px;
  border-left: 3px solid #e28477;
  background: rgba(255,251,235,.67);
  box-shadow: 0 7px 24px rgba(135,93,65,.08);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 11px;
  line-height: 1.75;
}

.poster-healing blockquote strong {
  color: #d65f67;
  font-size: 13px;
}

.data-strip {
  position: absolute;
  right: 28px;
  bottom: 55px;
  left: 28px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.data-strip p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.data-strip b {
  color: #d7686e;
  font-family: Georgia, serif;
  font-size: 21px;
  font-style: italic;
}

.data-strip span {
  color: #6d5a4d;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.45;
}

.data-strip i {
  width: 1px;
  height: 29px;
  background: #c8a687;
}

/* Poster 2 */
.poster-warning {
  color: #151515;
  background: #f4f3ef;
}

.ink-grid {
  opacity: .09;
  background:
    linear-gradient(#111 1px, transparent 1px),
    linear-gradient(90deg, #111 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, transparent 7%, #000 30%, #000 78%, transparent);
}

.poster-warning::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 9px;
  background: #df1f26;
  content: "";
}

.poster-warning .sequence {
  color: #df1f26;
}

.poster-warning .poster-header {
  padding: 34px 29px 0 36px;
}

.poster-warning .chapter {
  color: #df1f26;
}

.poster-warning h2 {
  font-family: "Songti SC", "STSong", serif;
  font-size: 32px;
  letter-spacing: -.05em;
}

.poster-warning h2 em {
  color: #d81820;
  font-style: normal;
}

.warning-lead {
  margin: 9px 0 0;
  padding-left: 8px;
  border-left: 2px solid #d81820;
  font-size: 9px;
  line-height: 1.5;
}

.warning-scene {
  position: relative;
  z-index: 4;
  height: 301px;
  margin: -2px 8px 0 10px;
}

.warning-scene svg { width: 100%; height: 100%; }
.crack { fill: none; stroke: #111; stroke-width: 2; }

.mega-bead > path:first-child {
  fill: #f0efeb;
  stroke: #151515;
  stroke-width: 3;
}

.mega-bead ellipse {
  fill: #f4f3ef;
  stroke: #151515;
  stroke-width: 3;
}

.mega-bead .melt {
  fill: #df2027;
  stroke: #151515;
  stroke-width: 2;
}

.drip-line { fill: none; stroke: #f4f3ef; stroke-width: 2; opacity: .65; }

.toxic-labels path { fill: none; stroke: #d81820; stroke-width: 2; }
.toxic-labels rect { fill: #d81820; }
.toxic-labels text { fill: #fff; font-size: 13px; font-weight: 900; text-anchor: middle; }

.factory path,
.iron path {
  fill: #111;
  stroke: #111;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.factory path:nth-child(n+2),
.iron path:nth-child(n+2) {
  fill: none;
}

.iron text {
  fill: #fff;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-anchor: middle;
}

.stamp rect { fill: none; stroke: #d81820; stroke-width: 3; }
.stamp text { fill: #d81820; font-size: 14px; font-weight: 900; text-anchor: middle; }
.danger path { fill: #d81820; }
.danger text { fill: white; font: 900 35px Arial; text-anchor: middle; }

.warning-facts {
  position: absolute;
  right: 28px;
  bottom: 88px;
  left: 34px;
  z-index: 5;
  display: grid;
  gap: 7px;
}

.warning-facts p {
  display: grid;
  grid-template-columns: 30px 1fr;
  margin: 0;
  padding: 7px 9px;
  border-top: 1px solid #1b1b1b;
  background: rgba(244,243,239,.78);
}

.warning-facts span {
  grid-row: 1 / 3;
  color: #d81820;
  font: 900 17px/1 Arial;
}

.warning-facts b { font-size: 10px; }
.warning-facts small { margin-top: 2px; color: #555; font-size: 8px; }

.red-note {
  position: absolute;
  right: 28px;
  bottom: 52px;
  left: 34px;
  z-index: 5;
  margin: 0;
  color: #d81820;
  font-size: 7.5px;
  font-weight: 800;
  line-height: 1.45;
}

/* Poster 3 */
.poster-rebuild {
  color: #174c52;
  background: linear-gradient(155deg, #f5fffb, #e8f7f1 55%, #dceff2);
}

.watercolor-clouds {
  z-index: -1;
  background:
    radial-gradient(ellipse at 4% 22%, rgba(67,178,172,.2), transparent 27%),
    radial-gradient(ellipse at 96% 62%, rgba(63,147,184,.18), transparent 29%),
    radial-gradient(ellipse at 20% 91%, rgba(131,202,158,.18), transparent 25%);
  filter: blur(4px);
}

.poster-rebuild .sequence { color: #238b8c; }
.poster-rebuild .poster-header { padding: 34px 29px 0; }
.poster-rebuild .chapter { color: #2a9b91; }

.poster-rebuild h2 {
  color: #164b51;
  font-size: 38px;
  letter-spacing: -.06em;
}

.poster-rebuild h2 em {
  color: #1d9b8f;
  font-style: normal;
}

.rebuild-lead {
  margin: 9px 0 0;
  color: #4a7373;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 10px;
  line-height: 1.55;
}

.shield-scene {
  position: relative;
  z-index: 3;
  height: 286px;
  margin-top: -4px;
}

.shield-scene svg { width: 100%; height: 100%; }
.wash { fill: rgba(69,177,171,.11); }
.wash-b { fill: rgba(255,255,255,.28); stroke: rgba(46,142,145,.14); stroke-width: 3; }
.shield { fill: url(#shield); stroke: #268f94; stroke-width: 3; }
.shield-shine { fill: none; stroke: white; stroke-linecap: round; stroke-width: 5; opacity: .7; }

.ccc path {
  fill: none;
  stroke: #177a7e;
  stroke-linecap: round;
  stroke-width: 7;
}

.ccc text {
  fill: #28777a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-anchor: middle;
}

.orbit circle {
  fill: rgba(255,255,255,.72);
  stroke: #4ca7a5;
  stroke-width: 2;
}

.orbit path,
.orbit rect {
  fill: none;
  stroke: #307b80;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.orbit .check {
  stroke: #42ad6e;
  stroke-width: 4;
}

.orbit-line {
  fill: none;
  stroke: #60aaa8;
  stroke-dasharray: 3 5;
  stroke-width: 1.5;
}

.action-grid {
  position: absolute;
  right: 25px;
  bottom: 102px;
  left: 25px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.action-grid p {
  min-height: 76px;
  margin: 0;
  padding: 9px 8px;
  border: 1px solid rgba(35,132,132,.28);
  border-radius: 9px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 7px 18px rgba(36,105,105,.07);
}

.action-grid span {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 5px;
  border-radius: 99px;
  color: #fff;
  background: #309b91;
  font-size: 7px;
  font-weight: 900;
}

.action-grid b { display: block; font-size: 10px; }
.action-grid small { display: block; margin-top: 5px; color: #507477; font-size: 7.5px; line-height: 1.45; }

.calm-callout {
  position: absolute;
  right: 28px;
  bottom: 57px;
  left: 28px;
  z-index: 5;
  color: #427174;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 11px;
  text-align: center;
}

.calm-callout span { color: #138b82; font-weight: 900; }

/* Poster 4 */
.poster-blueprint {
  color: #333a45;
  background:
    radial-gradient(circle at 17% 17%, rgba(255,216,80,.32), transparent 23%),
    radial-gradient(circle at 88% 54%, rgba(93,191,211,.28), transparent 28%),
    linear-gradient(155deg, #fff8d5, #f4fcff 54%, #fce5eb);
}

.rainbow-frame {
  z-index: 2;
  inset: 7px;
  border: 3px solid transparent;
  border-image: linear-gradient(135deg, #f05f65, #f5c84c, #53b98a, #4a9ed1, #a879c5, #f05f65) 1;
  opacity: .76;
}

.poster-blueprint .sequence {
  color: #287a9d;
  background: rgba(255,255,255,.42);
}

.poster-blueprint .poster-header { padding: 34px 29px 0; }
.poster-blueprint .chapter { color: #e56869; }

.poster-blueprint h2 {
  color: #29526a;
  font-size: 35px;
  letter-spacing: -.06em;
}

.poster-blueprint h2 em {
  color: #e15f66;
  font-style: normal;
}

.blueprint-lead {
  margin: 8px 0 0;
  color: #64808b;
  font-size: 9px;
  font-weight: 700;
}

.blueprint-scene {
  position: relative;
  z-index: 4;
  height: 322px;
  margin-top: -6px;
}

.blueprint-scene svg { width: 100%; height: 100%; }

.pixel-wall path,
.pixel-wall circle {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.rainbow { stroke: #ef6c70; }
.pixel-wall .rainbow:nth-of-type(2) { stroke: #f1bd48; }
.pixel-wall .rainbow:nth-of-type(3) { stroke: #55ad8c; }
.pixel-wall .sun { fill: #f7c84f; stroke: #e7a62f; }
.ray { stroke: #e7a62f; stroke-width: 4 !important; }
.house { fill: #f18c83 !important; stroke: #d15f67; }
.house ~ path { stroke: #fff; stroke-width: 4; }
.tree { fill: #68b885 !important; stroke: #3d966d; }
.tree ~ path { stroke: #7c5d44; stroke-width: 6; }
.smile circle:first-child { fill: #f7d45b; stroke: #dda838; }
.smile circle:not(:first-child) { fill: #594a3e; stroke: none; }
.smile path { stroke: #594a3e; stroke-width: 3; }
.desk { fill: #dfb28d; opacity: .78; }
.person .head, .person .neck { fill: #f3b791; stroke: #b97665; stroke-width: 2; }
.person .hair { fill: #493a39; stroke: #382d2d; stroke-width: 2; }
.person .body { fill: url(#shirt); stroke: #256b78; stroke-width: 2; }
.person .arm { fill: none; stroke: #efaa85; stroke-linecap: round; stroke-width: 17; }
.board rect { fill: rgba(255,255,255,.77); stroke: #be9679; stroke-width: 2; }
.mini-beads circle:nth-child(4n+1), .loose circle:nth-child(1) { fill: #e96773; }
.mini-beads circle:nth-child(4n+2), .loose circle:nth-child(2) { fill: #efbf47; }
.mini-beads circle:nth-child(4n+3), .loose circle:nth-child(3) { fill: #50ad8a; }
.mini-beads circle:nth-child(4n) { fill: #579fd0; }
.safe-box rect { fill: #fffaf0; stroke: #3b858d; stroke-width: 2; }
.safe-box > path { fill: none; stroke: #dc6a6b; stroke-width: 4; }
.safe-box text { fill: #3e7279; font: 700 7px Arial; letter-spacing: .04em; }
.box-ccc path { fill: none; stroke: #267880; stroke-linecap: round; stroke-width: 3; }

.choice-line {
  position: absolute;
  right: 28px;
  bottom: 104px;
  left: 28px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 14px;
  color: #325c6c;
  background: rgba(255,255,255,.73);
  box-shadow: 0 8px 26px rgba(47,105,119,.12);
}

.choice-line p { margin: 0; text-align: center; }
.choice-line b { display: block; color: #df5e65; font-size: 10px; }
.choice-line span { display: block; margin-top: 2px; font-size: 7px; }
.choice-line i { width: 1px; height: 25px; background: #9cb9bf; }

.final-statement {
  position: absolute;
  right: 28px;
  bottom: 56px;
  left: 28px;
  z-index: 6;
  margin: 0;
  color: #4b6975;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.final-statement strong { color: #dc5b62; font-size: 12px; }

.js .reveal {
  transform: translateY(18px);
  opacity: 0;
  transition: transform .7s cubic-bezier(.2,.75,.3,1), opacity .7s ease;
}

.js .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 400px) {
  .page-intro { padding-top: 34px; }
  .poster-feed { gap: 24px; }
  .music-toggle {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
  .music-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    transform: none;
    opacity: 1;
    transition: none;
  }
  .music-toggle,
  .music-toggle.is-playing .music-icon i {
    transition: none;
    animation: none;
  }
}

@media print {
  body { background: #fff; }
  .page-intro, .music-toggle, audio { display: none; }
  .poster-feed { gap: 0; padding: 0; }
  .poster {
    width: 108mm;
    break-after: page;
    border-radius: 0;
    box-shadow: none;
  }
  .js .reveal { transform: none; opacity: 1; }
}
