:root {
  color-scheme: light;
  --red: #c9112e;
  --cream: #fff2da;
  --paper: #f7f1e6;
  --ink: #271d1b;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 96px, 1240px); margin-inline: auto; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--red); color: var(--cream); }
.hero-art {
  position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #b50b29 0%, #ba0e27eb 24%, #bb0e2755 55%, transparent 75%), url("./chicken.webp") center 49% / cover no-repeat;
}
.hero-inner { min-height: min(900px, 94svh); display: flex; flex-direction: column; }
.nav { display: flex; align-items: center; padding-block: 28px; }
.brand { font: 950 italic 27px/1 Arial, sans-serif; letter-spacing: -.075em; white-space: nowrap; }
.brand span { font-style: normal; margin-left: .04em; }
.hero-content { margin-block: auto; padding: 12px 0 48px; width: min(570px, 100%); }
.animated-heading { width: 100%; font-size: inherit; margin: 0 0 12px; line-height: 0; }
.title-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; max-width: 400px; margin: 18px auto 0; }
.timer div { display: grid; justify-items: center; padding: 10px 7px; border-radius: 10px; background: #fff2daed; color: #a10c29; box-shadow: 0 4px 0 #76071845; }
.timer strong { font: 900 clamp(32px, 4vw, 52px)/1.05 Arial, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.timer small { margin-top: 5px; font-size: 10px; font-weight: 750; }
.today { width: fit-content; margin: 18px auto 0; color: var(--red); background: var(--cream); border-radius: 10px; padding: 10px 25px 14px; font-size: clamp(34px, 4vw, 54px); line-height: 1; font-weight: 950; box-shadow: 0 5px 0 #76071835; }
/* Oversized inline SVG. Slow energy loops; no rapid flashes or animated blur filters. */
.impact-wordmark { transform-origin: 450px 260px; animation: impact-land 1.15s cubic-bezier(.16,.7,.2,1) both, impact-power 6s ease-in-out 1.15s infinite; }
.title-outline { stroke-dasharray: 1600; animation: title-draw 2.2s ease-out both; }
.title-sweep { animation: title-sweep 4.8s ease-in-out 1.1s infinite both; }
.impact-aura { transform-origin: 450px 260px; animation: impact-aura 5s ease-in-out infinite; }
.impact-orbit { transform-origin: 450px 260px; animation: impact-orbit 26s linear infinite; }
.impact-shock { transform-origin: 450px 260px; opacity: 0; animation: impact-shock 4.8s ease-out .6s infinite; }
.impact-rays { transform-origin: 450px 260px; animation: impact-rays 4.8s ease-out .4s infinite both; }
.impact-lightning { animation: impact-electric 4.8s ease-in-out 1s infinite both; }
.title-spark { transform-box: fill-box; transform-origin: center; animation: title-spark 4.8s ease-in-out infinite; }
.spark-two { animation-delay: 1.8s; }
.ember { animation: impact-ember 4.8s ease-out infinite both; }
.ember-two { animation-delay: 1.2s; }
.ember-three { animation-delay: 2.4s; }
.ember-four { animation-delay: 3.6s; }
.title-underline { stroke-dasharray: 800; animation: title-underline 1.5s ease-out both; }
.animation-paused .title-svg * { animation-play-state: paused !important; }
@keyframes impact-land { 0% { transform: scale(1.4) rotate(-5deg); opacity: .15; } 55% { transform: scale(.96) rotate(1deg); opacity: 1; } 78% { transform: scale(1.025) rotate(-.4deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes impact-power { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes title-draw { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }
@keyframes title-sweep { 0%, 10% { transform: translateX(0) skewX(-18deg); opacity: 0; } 18% { opacity: .9; } 48% { transform: translateX(1500px) skewX(-18deg); opacity: .9; } 49%, 100% { transform: translateX(1500px) skewX(-18deg); opacity: 0; } }
@keyframes impact-aura { 0%, 100% { opacity: .5; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.07); } }
@keyframes impact-orbit { to { transform: rotate(360deg); } }
@keyframes impact-shock { 0% { transform: scale(.65); opacity: 0; } 8% { opacity: .65; } 55% { transform: scale(1.65); opacity: 0; } 100% { transform: scale(1.65); opacity: 0; } }
@keyframes impact-rays { 0%, 100% { transform: scale(.92); opacity: .4; } 25% { transform: scale(1.08); opacity: .95; } 65% { transform: scale(1); opacity: .5; } }
@keyframes impact-electric { 0%, 100% { opacity: .25; } 30%, 45% { opacity: 1; } 70% { opacity: .35; } }
@keyframes impact-ember { 0% { transform: translate(0, 25px); opacity: 0; } 25% { opacity: .95; } 100% { transform: translate(20px, -70px); opacity: 0; } }
@keyframes title-spark { 0%, 100% { opacity: .3; transform: scale(.65) rotate(0); } 40% { opacity: 1; transform: scale(1.2) rotate(45deg); } }
@keyframes title-underline { from { stroke-dashoffset: 800; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
/* One quiet reading surface; no headings, categories, counters or instructions. */
.library { padding: 36px 24px 56px; }
.reader { max-width: 760px; margin: 0 auto; padding: 30px 32px 18px; background: #fffaf2; border: 1px solid #e6dacb; border-radius: 22px; box-shadow: 0 12px 40px #58341a08; touch-action: pan-y pinch-zoom; }
.story { min-width: 0; }
.story-body { min-height: 250px; max-height: min(60svh, 620px); overflow-y: auto; overscroll-behavior-y: contain; touch-action: pan-y pinch-zoom; scrollbar-width: thin; scrollbar-color: #cdbda6 transparent; padding: 0 8px 0 0; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; white-space: pre-line; }
.story-body p { margin: 0 0 17px; }
.story-body p:last-child { margin-bottom: 0; color: #a21530; font-weight: 650; }
.reader-actions { display: flex; align-items: center; justify-content: center; gap: 30px; padding-top: 22px; margin-top: 22px; border-top: 1px solid #eadfce; }
.reader-actions button { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #8a7769; }
.reader-actions button:hover { background: #f3eadb; color: var(--red); }
.reader-actions button:disabled { opacity: .3; cursor: default; }
.reader-actions svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#copy-story { background: var(--red); color: #fff3de; box-shadow: 0 4px 12px #c9112e22; }
#copy-story:hover { background: #ad1029; }
#copy-story.copied { background: #2d7357; }
#copy-story.copied svg { display: none; }
#copy-story.copied::after { content: '✓'; font-size: 24px; }
#copy-story.copy-failed { background: #835c2e; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .hero-inner { min-height: max(600px, 90svh); }
  .hero-art { background: linear-gradient(0deg, #b90e2a 0%, #bc102b 8%, #bf102955 38%, transparent 62%), linear-gradient(90deg, #be102b55, transparent 45%), url("./chicken.webp") 85% 18% / auto min(74svh, 640px) no-repeat; }
  .nav { padding-block: 22px; }
  .brand { font-size: 25px; }
  .hero-content { margin-top: auto; margin-bottom: 0; padding: 0 0 35px; }
  .animated-heading { width: calc(100% + 12px); margin: 0 -6px 12px; }
  .timer { max-width: 320px; gap: 7px; margin-top: 12px; }
  .today { margin-top: 12px; padding: 10px 25px 13px; }
  .library { padding: 24px 16px 36px; }
  .reader { padding: 22px 18px 14px; border-radius: 18px; }
  .story-body { min-height: 260px; max-height: 58svh; font-size: 15.5px; padding-right: 5px; }
  .reader-actions { gap: 27px; padding-top: 15px; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .title-svg * { animation: none !important; }
  .title-sweep, .impact-shock { display: none; }
  .impact-wordmark { opacity: 1; transform: none; }
}
