/* The background leap spans the header, behind its text and mascots. */
.title-pond{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;isolation:isolate}
.title-pond-route{position:absolute;top:0;bottom:0;left:0;width:50%;--title-delay:0s;--title-cycle:8s}
.title-pond-return{left:50%;transform:scaleX(-1)}
.title-pond .koi-jumper{position:absolute;width:170px;height:220px;left:0;top:0;bottom:auto;opacity:1;offset-anchor:50% 50%;offset-rotate:auto 44deg;offset-distance:0%;transform:none;animation:title-pond-leap var(--title-cycle) linear infinite;animation-delay:var(--title-delay);will-change:offset-distance}
.title-pond .koi-jumper img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 6px #62151c25)}
.title-water-surface{position:absolute;left:0;right:0;bottom:0;height:58px;background:radial-gradient(ellipse at 50% 115%,#eedb9b20,transparent 70%),linear-gradient(0deg,#b8d4c51c,transparent);border-bottom:1px solid #f3d59544;pointer-events:none}
.title-pond .water-ripple{position:absolute;width:18%;height:30px;left:76%;bottom:16px;border:1px solid #f5e0a9a6;border-radius:50%;opacity:0;animation:title-pond-ring var(--title-cycle) ease-out infinite;animation-delay:var(--title-delay)}
.title-pond .title-takeoff{left:8%;animation-name:title-pond-takeoff}
.title-pond .ripple-two{left:74%;width:22%;bottom:11px;height:34px;animation-name:title-pond-ring-outer}
.title-pond .splash{position:absolute;left:85%;bottom:30px;width:1px;height:1px}
.title-pond .splash i{position:absolute;width:5px;height:13px;border-radius:60% 60% 55% 55%;background:linear-gradient(#fffdf0,#a8d4cecc);box-shadow:0 0 3px #fff7d3;opacity:0;animation:title-pond-drops var(--title-cycle) ease-out infinite;animation-delay:var(--title-delay)}
.newyear-art>.newyear-lion,.newyear-art>.header-wealth-ram,.newyear-art>.lion-charms{z-index:2}
@keyframes title-pond-leap{
 0%{offset-distance:0%;opacity:1}
 80%{offset-distance:100%;opacity:1}
 80.001%,100%{offset-distance:100%;opacity:0}
}
@keyframes title-pond-takeoff{0%,6%,30%,100%{opacity:0;transform:scale(.3)}10%{opacity:.8;transform:scale(.6)}29%{opacity:0;transform:scale(1.8)}}
@keyframes title-pond-ring{0%,72%{opacity:0;transform:scale(.3)}76%{opacity:.8;transform:scale(.6)}96%,100%{opacity:0;transform:scale(1.8)}}
@keyframes title-pond-ring-outer{0%,75%{opacity:0;transform:scale(.35)}79%{opacity:.75;transform:scale(.65)}99%,100%{opacity:0;transform:scale(1.8)}}
@keyframes title-pond-drops{0%,72%{opacity:0;transform:translate(0,0) scale(.4)}75%{opacity:.9;transform:translate(0,0) scale(.7)}83%{opacity:.8;transform:translate(var(--dx),var(--dy)) rotate(var(--dr))}94%,100%{opacity:0;transform:translate(var(--dx),24px) rotate(var(--dr)) scale(.3)}}
@media(min-width:641px){:root[data-theme=red] .container>header{min-height:320px}}
@media(max-width:640px){
 .title-pond .koi-jumper{width:112px;height:146px;bottom:auto}
 .title-pond .water-ripple{bottom:126px;height:20px;width:23%}
 .title-pond .ripple-two{bottom:121px;height:24px;width:27%}
 .title-pond .splash{bottom:144px}
 .title-water-surface{bottom:109px;height:40px}
}
@media(prefers-reduced-motion:reduce){
 .title-pond .koi-jumper{animation:none;opacity:.75;offset-distance:40%;transform:none}
 .title-pond .water-ripple,.title-pond .splash{display:none}
}

/* Use the page's original lotus and auspicious cloud-scroll art and the same pale wash. */
:root[data-theme=red] .container>header{background:#b91519;border:1px solid #d3a77c;box-shadow:0 7px 24px #9e4d2412}
:root[data-theme=red] .container>header::before{
 inset:0;opacity:1;animation:none;
 background-image:linear-gradient(90deg,#d58c7790,#dea08aa3 24%,#e0a08ba8 50%,#dea08aa3 76%,#d58c7790),url('/illustrations/header-lotus-banner.webp');
 background-position:center,center 20%;background-size:100% 100%,cover;background-repeat:no-repeat;background-attachment:scroll;
}
:root[data-theme=red] .container>header h1{color:#9f2635;text-shadow:0 1px 0 #fff8e9}
:root[data-theme=red] .container>header .app-actions .btn-outline{color:#8c2936;border-color:#c9aa73;background:#fff9e8bd}
@media(max-width:640px){
 :root[data-theme=red] .container>header::before{
  background-image:linear-gradient(90deg,#d58c7790,#dea08aa3 35%,#dea08aa3 65%,#d58c7790),url('/illustrations/header-lotus-banner.webp');
  background-size:100% 100%,cover;background-position:center,left center;background-repeat:no-repeat;background-attachment:scroll;
 }
}

/* Restore the original plain, bold heading instead of the metallic treatment. */
:root[data-theme=red] .container>header h1{
 font-family:'Microsoft YaHei','PingFang SC',Arial,sans-serif;font-size:clamp(26px,4.2vw,50px);font-weight:900;letter-spacing:.04em;
 color:#ffe7ae;background:none;-webkit-text-stroke:0;text-shadow:0 2px 6px #680c2770;
}
@media(max-width:640px){:root[data-theme=red] .container>header h1{font-size:clamp(26px,7.2vw,34px);letter-spacing:.035em}}

/* Three eight-second beats: left solo, right solo, then a synchronized pair. */
.title-pond-forward{animation:title-left-schedule 24s step-end infinite;animation-delay:var(--title-delay)}
.title-pond-return{animation:title-right-schedule 24s step-end infinite;animation-delay:var(--title-delay)}
@keyframes title-left-schedule{0%{visibility:visible}33.333333%{visibility:hidden}66.666667%,100%{visibility:visible}}
@keyframes title-right-schedule{0%{visibility:hidden}33.333333%,100%{visibility:visible}}
@media(prefers-reduced-motion:reduce){.title-pond-route{animation:none;visibility:visible}}

/* Match the approved review heading placement while keeping the theme control available. */
:root[data-theme=red] .container>header{justify-content:flex-start;padding-top:55px}
:root[data-theme=red] .container>header h1{line-height:1.3}
@media(max-width:640px){
 :root[data-theme=red] .container>header{min-height:248px;padding:55px 12px 24px}
 :root[data-theme=red] body::before{background:#fff7ed}
 :root[data-theme=red] .festival-firecrackers,:root[data-theme=red] .koi-pool{display:none}
 :root[data-theme=red] .newyear-lion{width:112px;height:112px;right:12px}
 :root[data-theme=red] .header-wealth-ram{width:112px;height:112px;bottom:-5px}
 :root[data-theme=red] .header-koi-lane img{width:96px!important;height:126px!important}
}
