:root {
  color-scheme: light;
  font-family: "Arial Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --wine: #69223d;
  --deep-wine: #4b1932;
  --paper: #fff9ef;
  --red: #dc4939;
  --gold: #f6bf67;
  --black: #351e25;
  --magenta: #c93668;
}

* { box-sizing: border-box; }
html { background: #fff8ef; }
body { min-height: 100vh; min-height: 100svh; margin: 0; }
body.is-intro { height: 100vh; height: 100svh; overflow: hidden; }
a { color: inherit; }

.intro-scene {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: transparent;
  transition: opacity .68s ease, visibility 0s linear .68s, background .65s ease;
}
.intro-scene::after { position: absolute; z-index: 0; inset: 0; opacity: 1; background: radial-gradient(circle at 50% 38%, #fffcf6 0 16%, #fff3e5 52%, #f6d6be 100%); content: ""; transition: opacity .65s ease; }
.intro-scene::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: linear-gradient(90deg, #f2a742 0%, #ef683c 48%, #bc2859 100%);
  content: "";
}
#morph-canvas { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.intro-caption {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: clamp(48px, 9vh, 105px);
  left: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--deep-wine);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 800;
  letter-spacing: .18em;
  text-align: center;
}
.intro-caption strong { color: var(--magenta); font-size: clamp(20px, 2.2vw, 30px); font-weight: 1000; letter-spacing: .02em; }
.intro-caption small { color: #815963; font-size: 11px; font-weight: 600; letter-spacing: .06em; }
body.is-intro .intro-scene { opacity: 1; visibility: visible; transition-delay: 0s; }
body.intro-settling .intro-scene { background: transparent; }
body.intro-settling:not(.intro-complete) .intro-scene { opacity: 1; visibility: visible; transition-delay: 0s; }
body.intro-settling .intro-scene::after { opacity: 0; }
body.intro-settling .intro-caption { opacity: 0; transform: translateY(12px); }
body.is-handoff .mascot-figure { visibility: hidden !important; animation: none !important; }
body.intro-complete .intro-scene { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-caption { transition: opacity .32s ease, transform .32s ease; }

.poster {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  color: var(--deep-wine);
  background: #fff8ef;
  transition: opacity .5s ease, transform .5s ease;
}
body.is-intro .poster { opacity: 0; visibility: hidden; transform: translateY(18px); pointer-events: none; transition: none; }
body.art-ready:not(.is-intro) .poster { animation: poster-enter .62s cubic-bezier(.2, 1, .3, 1) both; }

.masthead,
.poster-footer {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 0 0 auto;
  padding: 15px clamp(17px, 3.2vw, 50px);
  background: #fffaf3;
}

.masthead { min-height: 58px; border-bottom: 1px solid rgba(105, 34, 61, .18); }
.masthead::after { position: absolute; right: 0; bottom: -3px; left: 0; height: 3px; background: linear-gradient(90deg, #f3ad48, #ef7541 48%, #c93668); content: ""; }
.identity { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; font-weight: 900; letter-spacing: .02em; white-space: nowrap; }
.identity-sigil { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; color: var(--red); font-size: 20px; line-height: 1; }
.identity-com { color: var(--magenta); font-family: Arial, sans-serif; }
.edition,
.edition-number,
.poster-footer { font-family: Arial, "Microsoft YaHei", sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.edition { color: #6b4c56; }
.edition-number { color: var(--magenta); }
.poster-footer { min-height: 39px; border-top: 1px solid rgba(105, 34, 61, .18); }
.poster-footer strong { color: var(--magenta); font-weight: 900; }

.canvas {
  position: relative;
  flex: 1 0 auto;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: #f4ae6d;
}

.artwork,
.scan-print { position: absolute; inset: 0; pointer-events: none; }
.artwork { z-index: 0; background: url("/abstract-warm.webp") center 47% / cover no-repeat, linear-gradient(125deg, #f5af69, #e9674d 58%, #9f3153); }
.artwork::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(91, 27, 45, .04) 0%, rgba(99, 28, 50, .02) 53%, rgba(91, 27, 45, .16) 100%); content: ""; }
.scan-print { z-index: 1; opacity: .13; background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(90, 29, 48, .33) 3px 4px); mix-blend-mode: multiply; }

.poster-type {
  position: absolute;
  z-index: 1;
  top: 2%;
  left: -3%;
  color: var(--paper);
  font-size: clamp(250px, 28vw, 450px);
  font-weight: 1000;
  letter-spacing: -.19em;
  line-height: .82;
  text-shadow: 6px 7px 0 rgba(101, 26, 52, .53);
  transform: rotate(-10deg);
  pointer-events: none;
}

.poster-type span { display: block; }
.poster-type span:last-child { margin-left: 24%; color: #ffe5a0; }

.micro-type {
  position: absolute;
  z-index: 2;
  bottom: 8%;
  left: 3.2%;
  color: var(--paper);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1.25;
  text-shadow: 1px 2px 0 var(--deep-wine);
  transform: rotate(-90deg) translateY(100%);
  transform-origin: left bottom;
}

.red-swipe {
  position: absolute;
  z-index: 2;
  top: 58%;
  left: -8%;
  width: 70%;
  height: clamp(28px, 5vw, 68px);
  background: var(--magenta);
  clip-path: polygon(0 14%, 95% 0, 100% 27%, 94% 58%, 100% 93%, 8% 100%, 0 67%);
  transform: rotate(-15deg);
  box-shadow: 0 9px 0 rgba(86, 23, 47, .25);
}

.scribble {
  position: absolute;
  z-index: 5;
  top: 3%;
  left: 32%;
  width: 19%;
  max-width: 250px;
  color: #fff0c3;
  transform: rotate(9deg);
  pointer-events: none;
}
.scribble path { stroke-dasharray: 530; stroke-dashoffset: 0; }

.burst {
  position: absolute;
  z-index: 8;
  top: 9%;
  left: 45%;
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--deep-wine);
  background: #ffd271;
  clip-path: polygon(50% 0, 60% 13%, 78% 5%, 80% 22%, 98% 26%, 88% 43%, 100% 55%, 84% 62%, 88% 83%, 67% 79%, 55% 100%, 44% 83%, 23% 95%, 22% 76%, 3% 72%, 13% 53%, 0 41%, 19% 35%, 13% 15%, 35% 21%);
  font-size: 24px;
  font-weight: 1000;
  line-height: .89;
  text-align: center;
  transform: rotate(-18deg);
  filter: drop-shadow(5px 7px 0 rgba(87, 22, 50, .44));
}

.mascot-figure {
  position: absolute;
  z-index: 6;
  bottom: -6%;
  left: 10%;
  width: min(47vw, 610px);
  height: min(93%, 680px);
  margin: 0;
  transform-origin: 52% 75%;
  transform: rotate(-4deg);
}

.mascot-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(17px 24px 0 rgba(91, 24, 52, .48)) drop-shadow(0 10px 24px rgba(82, 27, 46, .29));
}

.mascot-figure figcaption {
  position: absolute;
  bottom: 11%;
  left: -6%;
  padding: 5px 8px;
  color: var(--deep-wine);
  background: #ffe0a0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  transform: rotate(-8deg);
}

.paper-shadow {
  position: absolute;
  z-index: 7;
  top: 50%;
  right: 4.6%;
  width: min(44%, 565px);
  filter: drop-shadow(16px 20px 0 rgba(102, 27, 57, .67)) drop-shadow(0 24px 38px rgba(74, 20, 44, .2));
  transform: translateY(-50%) rotate(2deg);
}

.paper {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 3vw, 42px) clamp(27px, 3.5vw, 49px) 29px;
  color: var(--deep-wine);
  background: var(--paper);
  clip-path: polygon(0 2%, 31% 0, 69% 1%, 100% 0, 98% 10%, 100% 19%, 99% 87%, 100% 100%, 70% 98%, 39% 100%, 0 99%, 2% 89%, 0 71%);
}

.paper::before {
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: radial-gradient(#8a3551 .7px, transparent .9px), repeating-linear-gradient(12deg, transparent 0 24px, rgba(93, 41, 54, .13) 25px 26px);
  background-size: 9px 9px, auto;
  pointer-events: none;
  content: "";
}

.paper > * { position: relative; }
.paper-kicker { display: flex; justify-content: space-between; gap: 12px; color: var(--deep-wine); font-family: Arial, "Microsoft YaHei", sans-serif; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.paper-kicker span:last-child { white-space: nowrap; }

h1 {
  margin: 20px 0 0;
  font-size: clamp(55px, 6.2vw, 91px);
  font-weight: 1000;
  letter-spacing: -.095em;
  line-height: .95;
  white-space: nowrap;
}

h1 em { color: var(--red); font-style: normal; }
.lead { margin: 20px 0 0; color: #6b4051; font-size: 15px; font-weight: 650; line-height: 1.55; }
.lead strong { color: var(--deep-wine); font-size: 18px; font-weight: 950; }

.target { display: flex; flex-direction: column; gap: 4px; margin-top: 25px; padding: 12px 0 10px; border-top: 2px dashed rgba(118, 38, 65, .42); border-bottom: 2px dashed rgba(118, 38, 65, .42); }
.target span { font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.target a { width: fit-content; max-width: 100%; font-family: Arial, sans-serif; font-size: 16px; font-weight: 900; overflow-wrap: anywhere; text-decoration: none; }
.target a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.action-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.go-button { display: inline-flex; min-width: 175px; min-height: 58px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 21px; color: var(--paper); background: var(--wine); clip-path: polygon(0 0, 91% 0, 100% 22%, 100% 100%, 0 100%); font-size: 16px; font-weight: 900; text-decoration: none; transition: transform .18s ease, background-color .18s ease; }
.go-button span { font-family: Arial, sans-serif; font-size: 25px; font-weight: 400; }
.go-button:hover { transform: translate(-3px, -3px); background: #982b52; }
.go-button:focus-visible,
.target a:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

.countdown { display: flex; align-items: center; gap: 9px; min-width: 0; visibility: hidden; color: var(--red); }
.js-enabled .countdown { visibility: visible; }
.countdown strong { min-width: 2ch; font-family: Arial, sans-serif; font-size: 49px; font-weight: 1000; font-variant-numeric: tabular-nums; letter-spacing: -.08em; line-height: 1; text-align: right; }
.countdown span { color: var(--deep-wine); font-size: 10px; font-weight: 900; line-height: 1.25; white-space: nowrap; }
.is-paused .countdown span { max-width: 7em; white-space: normal; }
.countdown.tick strong { animation: number-hit .32s ease-out; }

.paper-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.paper-foot span:last-child { color: var(--deep-wine); letter-spacing: .02em; text-align: right; }
.is-paused #interaction-hint { color: var(--magenta); }
.disclaimer { margin: 14px 0 0; padding-top: 9px; border-top: 1px solid rgba(105, 34, 61, .25); color: #68515a; font-size: 10px; font-weight: 650; line-height: 1.55; }
.noscript-note { z-index: 30; margin: 0; padding: 6px 14px; color: var(--paper); background: var(--red); font-size: 12px; text-align: center; }

.final-wipe { position: absolute; z-index: 25; top: 0; bottom: 0; left: -130%; width: 125%; background: linear-gradient(100deg, #fff9ef 0%, #f7b56e 61%, #cf4670 100%); clip-path: polygon(0 0, 91% 0, 100% 100%, 0 100%); pointer-events: none; }
body.art-ready .artwork { animation: art-enter 1.4s ease-out both; }
body.art-ready .poster-type span { animation: type-slam .7s cubic-bezier(.14, 1.38, .39, 1) both; }
body.art-ready .poster-type span:last-child { animation-delay: .22s; }
body.art-ready .red-swipe { animation: swipe-in .8s .45s cubic-bezier(.2, 1, .3, 1) both; }
body.art-ready .scribble path { animation: draw-line 1s 1.1s ease-out both; }
body.art-ready .burst { animation: burst-pop .7s 1.15s cubic-bezier(.17, 1.6, .37, 1) both; }
body.art-ready .mascot-figure { animation: mascot-entrance .9s .28s cubic-bezier(.18, 1.25, .36, 1) both, mascot-bob 2.2s 1.25s ease-in-out infinite; }
body.intro-complete:not(.is-departing):not(.is-paused) .mascot-figure { animation: mascot-bob 2.2s ease-in-out infinite; }
body.art-ready .paper-shadow { animation: paper-arrive .9s .55s cubic-bezier(.16, 1.08, .32, 1) both; }
body.phase-two .red-swipe { animation: swipe-beat .55s ease-out both; }
body.phase-two .burst { animation: burst-spin .7s cubic-bezier(.2, 1.4, .3, 1) both; }
body.phase-three .paper-shadow { animation: paper-shake .5s ease-in-out both; }
body.phase-three .poster-type span:last-child { animation: type-shift .55s ease-in-out both; }
body.is-departing .mascot-figure { animation: mascot-exit .66s cubic-bezier(.62, .02, .92, .4) forwards; }
body.is-departing .final-wipe { animation: wipe-across .65s cubic-bezier(.64, .01, .29, 1) forwards; }
body.is-paused .mascot-figure { visibility: visible; opacity: 1; transform: rotate(-4deg); animation: none !important; }
body.is-paused .final-wipe { left: -130%; opacity: 0; animation: none !important; }

@keyframes poster-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes art-enter { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: scale(1); } }
@keyframes type-slam { from { opacity: 0; transform: translate(-90px, -95px) rotate(-14deg) scale(1.3); } to { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); } }
@keyframes swipe-in { from { opacity: 0; transform: translateX(-110%) rotate(-15deg); } to { opacity: 1; transform: translateX(0) rotate(-15deg); } }
@keyframes draw-line { from { stroke-dashoffset: 530; } to { stroke-dashoffset: 0; } }
@keyframes burst-pop { from { opacity: 0; transform: rotate(-54deg) scale(.15); } to { opacity: 1; transform: rotate(-18deg) scale(1); } }
@keyframes mascot-entrance { from { opacity: 0; transform: translateY(110px) rotate(11deg) scale(.86); } to { opacity: 1; transform: translateY(0) rotate(-4deg) scale(1); } }
@keyframes mascot-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(-1deg); } }
@keyframes paper-arrive { from { opacity: 0; transform: translate(100px, -42%) rotate(10deg); } to { opacity: 1; transform: translate(0, -50%) rotate(2deg); } }
@keyframes number-hit { from { transform: translateY(-11px) rotate(-8deg) scale(1.3); opacity: .35; } to { transform: translateY(0) rotate(0) scale(1); opacity: 1; } }
@keyframes swipe-beat { 0% { transform: rotate(-15deg) scaleX(1); } 50% { transform: rotate(-9deg) scaleX(1.13); } 100% { transform: rotate(-15deg) scaleX(1); } }
@keyframes burst-spin { 0% { transform: rotate(-18deg) scale(1); } 55% { transform: rotate(16deg) scale(1.18); } 100% { transform: rotate(-9deg) scale(1); } }
@keyframes paper-shake { 0%, 100% { transform: translateY(-50%) rotate(2deg); } 35% { transform: translateY(-51%) rotate(-1deg); } 70% { transform: translateY(-49%) rotate(3deg); } }
@keyframes type-shift { 50% { transform: translateX(24px) rotate(5deg); } }
@keyframes mascot-exit { 0% { transform: translateY(-8px) rotate(-4deg) scale(1); opacity: 1; } 35% { transform: translateY(30px) rotate(-12deg) scale(.91); opacity: 1; } 100% { transform: translate(220px, -390px) rotate(22deg) scale(1.4); opacity: 0; } }
@keyframes wipe-across { from { left: -130%; } to { left: 100%; } }

@media (max-width: 900px) {
  .poster-type { font-size: clamp(245px, 37vw, 360px); }
  .mascot-figure { left: 3%; width: 56vw; }
  .paper-shadow { right: 2.5%; width: 49%; }
  .paper { padding: 28px 28px 23px; }
  h1 { font-size: clamp(52px, 6.8vw, 69px); }
  .lead { margin-top: 15px; font-size: 13px; }
  .lead strong { font-size: 15px; }
  .target { margin-top: 17px; }
  .target a { font-size: 13px; }
  .action-row { margin-top: 17px; }
  .go-button { min-width: 142px; min-height: 50px; padding: 0 15px; font-size: 13px; }
  .countdown strong { font-size: 39px; }
  .paper-foot { margin-top: 12px; }
}

@media (max-width: 680px) {
  .masthead { flex-wrap: wrap; gap: 3px 10px; min-height: 58px; padding: 8px 12px 7px; }
  .identity { width: 100%; font-size: 11px; }
  .identity-sigil { width: 22px; height: 22px; font-size: 17px; }
  .edition { margin-left: 32px; font-size: 9px; letter-spacing: .05em; }
  .edition-number { display: none; }
  .poster-footer { min-height: 30px; padding: 7px 13px; font-size: 8px; letter-spacing: .04em; }
  .poster-footer span:first-child { display: none; }
  .canvas { flex: none; min-height: 560px; }
  .artwork { background-position: center 39%; }
  .poster-type { top: -2%; left: 21%; font-size: clamp(145px, 45vw, 245px); line-height: .8; transform: rotate(-12deg); opacity: .95; }
  .poster-type span:last-child { margin-left: 31%; }
  .red-swipe { top: 23%; left: -11%; width: 86%; height: 27px; }
  .micro-type { display: none; }
  .scribble { top: 1%; left: 70%; width: 30%; }
  .burst { top: 12%; left: 72%; width: 74px; font-size: 16px; }
  .mascot-figure { top: -21px; bottom: auto; left: 2%; width: 65%; height: 245px; }
  .mascot-figure figcaption { bottom: 4%; left: 4%; font-size: 7px; }
  .paper-shadow { top: 177px; right: 10px; left: 10px; width: auto; transform: rotate(-1.5deg); }
  body.art-ready .paper-shadow { animation: paper-arrive-mobile .8s .45s cubic-bezier(.16, 1.08, .32, 1) both; }
  .paper { padding: 17px 20px 15px; }
  .paper-kicker { font-size: 8px; }
  h1 { margin-top: 9px; font-size: clamp(48px, 13vw, 64px); line-height: .88; }
  .lead { margin-top: 8px; font-size: 11px; line-height: 1.35; }
  .lead strong { font-size: 12px; }
  .target { gap: 2px; margin-top: 10px; padding: 7px 0 6px; border-width: 1px; }
  .target span { font-size: 9px; }
  .target a { font-size: 12px; }
  .action-row { margin-top: 10px; }
  .go-button { min-width: 127px; min-height: 46px; font-size: 12px; }
  .go-button span { font-size: 20px; }
  .countdown strong { font-size: 36px; }
  .countdown span { font-size: 9px; }
  .paper-foot { flex-wrap: wrap; row-gap: 2px; margin-top: 7px; font-size: 8px; }
  .paper-foot span:last-child { flex-basis: 100%; font-size: 9px; text-align: left; }
  .disclaimer { margin-top: 7px; padding-top: 6px; font-size: 9px; line-height: 1.35; }
  body.phase-three .paper-shadow { animation: paper-shake-mobile .5s ease-in-out both; }
}

@media (max-width: 370px) {
  .canvas { min-height: 535px; }
  .paper-shadow { top: 157px; }
  .mascot-figure { top: -18px; height: 220px; }
  .paper { padding: 15px 17px 13px; }
  h1 { font-size: 46px; }
  .paper-foot { margin-top: 5px; }
  .disclaimer { font-size: 9px; }
}

@keyframes paper-arrive-mobile { from { opacity: 0; transform: translate(70px, 18px) rotate(8deg); } to { opacity: 1; transform: translate(0, 0) rotate(-1.5deg); } }
@keyframes paper-shake-mobile { 0%, 100% { transform: rotate(-1.5deg); } 35% { transform: translateY(-4px) rotate(1deg); } 70% { transform: translateY(3px) rotate(-2deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .artwork,
  .poster-type span,
  .red-swipe,
  .burst,
  .mascot-figure,
  .paper-shadow { opacity: 1 !important; }
  .scribble path { stroke-dashoffset: 0; }
  .final-wipe { display: none; }
}
