/* Progressive visual storytelling: no asset replacements, avoids hiding content. */
.hero .hero-identity,.hero .hero-ornament,.hero .motto,.hero .hero-text,.hero .hero-buttons,.hero .hero-stats{opacity:1}
@media(prefers-reduced-motion:no-preference){
 .hero.gp-awake .hero-identity{animation:gp-wake-logo 1.65s cubic-bezier(.2,.7,.2,1) both}
 .hero.gp-awake .hero-ornament{animation:gp-wake-rise .95s .25s both}
 .hero.gp-awake .motto{animation:gp-wake-rise 1s .42s both}
 .hero.gp-awake .hero-text{animation:gp-wake-rise 1s .58s both}
 .hero.gp-awake .hero-buttons,.hero.gp-awake .hero-stats{animation:gp-wake-rise 1s .72s both}
 .hero.gp-awake .hero-cards{animation:gp-wake-cards 1.4s .38s both}
}
@keyframes gp-wake-logo{from{opacity:0;filter:brightness(.45);transform:translateY(10px) scale(.96)}to{opacity:1;filter:brightness(1);transform:none}}
@keyframes gp-wake-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes gp-wake-cards{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
/* Crossfade between two real battlefield textures. */
.battle-backdrop{background-size:cover;background-position:center;transition:none}
.battle-backdrop-next{position:absolute;inset:0;z-index:0;opacity:0;background-size:cover;background-position:center;pointer-events:none;will-change:opacity}
.battle-backdrop-next.gp-fading{opacity:1;transition:opacity .85s ease-in-out}
.battle-shade{z-index:1;pointer-events:none}
.battle-atmosphere{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.42;overflow:hidden;--scene-tint:#dc995c55}
.battle-atmosphere::before{content:"";position:absolute;inset:-20%;background:radial-gradient(ellipse at 74% 74%,var(--scene-tint),transparent 56%);animation:gp-atmosphere 12s ease-in-out infinite alternate}
.battle-atmosphere::after{content:"";position:absolute;inset:0;background:linear-gradient(108deg,transparent 25%,#e0d7bd0c 48%,transparent 75%);animation:gp-mist 16s ease-in-out infinite alternate}
@keyframes gp-atmosphere{from{opacity:.55;transform:scale(1)}to{opacity:.92;transform:scale(1.07)}}
@keyframes gp-mist{from{transform:translateX(-6%);opacity:.36}to{transform:translateX(6%);opacity:.7}}
.battle-section[data-scene="beihai"] .battle-atmosphere{--scene-tint:#7ea9df66}
.battle-section[data-scene="wuzhang"] .battle-atmosphere{--scene-tint:#547dbd66}
.battle-section[data-scene="chibi"] .battle-atmosphere{--scene-tint:#d76b365e}
.battle-section[data-scene="hulao"] .battle-atmosphere{--scene-tint:#d38f595b}
.battle-section[data-scene="guandu"] .battle-atmosphere{--scene-tint:#c47a4e66}
.battle-section[data-scene="luoyang"] .battle-atmosphere{--scene-tint:#e4ad625b}
.battle-caption{margin:13px 0 0!important;color:#edd8ab!important;font:13px/1.65 "Noto Sans SC",sans-serif!important;letter-spacing:.08em;min-height:22px}
.gameplay-media{isolation:isolate}
.gameplay-clip{position:absolute;inset:0;z-index:2;width:100%;height:100%;object-fit:cover;display:none;background:#0b1117}
.gameplay-feature.has-clip .gameplay-clip{display:block}
.gameplay-clip[hidden]{display:none!important}
.gameplay-video-control{position:absolute;z-index:3;right:12px;bottom:12px;border:1px solid #c9a56d;background:#121b25cf;color:#f2d9a3;padding:8px 13px;font:12px/1.4 inherit;cursor:pointer}
.gameplay-video-control[hidden]{display:none!important}
.gameplay-feature.has-clip .gameplay-fallback{visibility:hidden}
.gameplay-video-control:focus-visible{outline:2px solid #f1cf89;outline-offset:3px}
.gameplay-status{font-size:12px;color:#d7be8b;margin-top:8px}
.news-feed{display:grid;gap:18px}
.news-feed .news-row.brand-news{min-height:160px}
.news-feed .news-poster{max-height:240px}
.news-feed .news-row:not(:first-child) .news-poster{max-height:175px}
.news-empty{color:#b8ae9b;text-align:center}
@media(max-width:760px){.news-feed .news-row.brand-news{min-height:auto}}
@media(prefers-reduced-motion:reduce){.battle-backdrop-next,.battle-backdrop-next.gp-fading{transition:none}.battle-atmosphere::before,.battle-atmosphere::after{animation:none}}

/* Keep playback control above footage despite the shared button interaction stylesheet. */
.gameplay-feature .gameplay-media button.gameplay-video-control{position:absolute;right:12px;bottom:12px;z-index:5}

/* Stacking must be explicit: otherwise the crossfade layer can sit behind
   the old positioned background and appear to do nothing. */
.battle-section{isolation:isolate}
.battle-section .battle-backdrop{z-index:0}
.battle-section .battle-backdrop-next{z-index:1}
.battle-section .battle-shade,.battle-section .battle-atmosphere{z-index:2}
.battle-section .battle-content{z-index:3}
.news-feed .news-row.brand-news:nth-child(2) .news-poster{object-fit:contain;background:#101922}

/* Battlefield ambience v3: motion belongs to scenery, not to the controls.
   Low-opacity CSS overlays preserve every official battlefield illustration. */
.battle-section .battle-atmosphere{
  --scene-tint:#e4ad625b;
  transition:opacity .75s ease;
  opacity:.42;
}
.battle-section .battle-atmosphere::before{
  animation:gp-atmosphere 12s ease-in-out infinite alternate;
}
.battle-section .battle-atmosphere::after{
  animation:gp-mist 16s ease-in-out infinite alternate;
}
/* Warm ember light for the Imperial City and Guandu. */
.battle-section[data-scene="luoyang"] .battle-atmosphere::after,
.battle-section[data-scene="guandu"] .battle-atmosphere::after{
  background:
    radial-gradient(circle at 12% 76%,#fba3516e 0 2px,transparent 3px),
    radial-gradient(circle at 77% 82%,#ffa64c75 0 2px,transparent 3px),
    radial-gradient(circle at 59% 61%,#fbd49060 0 1px,transparent 2px),
    radial-gradient(circle at 35% 92%,#ffa14c80 0 2px,transparent 3px);
  background-size:250px 170px,310px 230px,180px 120px,360px 240px;
  opacity:.30;
  animation:gp-embers 9s linear infinite;
}
/* Tiger Pass: drifting fine smoke under orange sunset. */
.battle-section[data-scene="hulao"] .battle-atmosphere::after{
  background:linear-gradient(106deg,transparent 5%,#d1a47c18 31%,transparent 65%,#c69d7719 91%);
  animation:gp-pass-smoke 13s ease-in-out infinite alternate;
}
/* Chibi: delicate warm reflections instead of simulated water that obscures art. */
.battle-section[data-scene="chibi"] .battle-atmosphere::after{
  background:repeating-linear-gradient(178deg,transparent 0 29px,#f7a85a18 30px 32px,transparent 34px 58px);
  mask-image:linear-gradient(to bottom,transparent 22%,#000a 82%,#000);
  animation:gp-reflections 6s ease-in-out infinite alternate;
}
/* North Sea: tiny snow particles in foreground; no external animation media. */
.battle-section[data-scene="beihai"] .battle-atmosphere::after{
  background-image:
    radial-gradient(circle,#ffffffd9 0 1px,transparent 2px),
    radial-gradient(circle,#e1efffc9 0 1.4px,transparent 2.5px),
    radial-gradient(circle,#ffffffa8 0 .8px,transparent 1.8px);
  background-size:93px 107px,137px 153px,177px 117px;
  background-position:0 0,49px 16px,12px 31px;
  opacity:.66;
  animation:gp-snow 18s linear infinite;
}
/* Wuzhang: slow moonlit haze, no false flickering moon. */
.battle-section[data-scene="wuzhang"] .battle-atmosphere::after{
  background:linear-gradient(110deg,transparent 8%,#98bce02b 42%,transparent 74%);
  opacity:.36;
  animation:gp-night-mist 18s ease-in-out infinite alternate;
}
@keyframes gp-embers{from{background-position:0 0,0 0,0 0,0 0}to{background-position:32px -120px,-45px -180px,24px -140px,-40px -180px}}
@keyframes gp-pass-smoke{from{transform:translateX(-8%);opacity:.3}to{transform:translateX(8%);opacity:.62}}
@keyframes gp-reflections{from{transform:translateY(0) scaleX(1);opacity:.15}to{transform:translateY(5px) scaleX(1.02);opacity:.45}}
@keyframes gp-snow{from{background-position:0 0,49px 16px,12px 31px}to{background-position:30px 214px,-26px 322px,75px 234px}}
@keyframes gp-night-mist{from{transform:translateX(-6%);opacity:.24}to{transform:translateX(5%);opacity:.55}}
/* Suspend ambience if the battlefield is offscreen, to avoid background CPU load. */
.battle-section.gp-ambient-paused .battle-atmosphere::before,
.battle-section.gp-ambient-paused .battle-atmosphere::after{animation-play-state:paused!important}
@media(max-width:760px){
 .battle-section .battle-atmosphere{opacity:.30}
 .battle-section[data-scene="beihai"] .battle-atmosphere::after{opacity:.42}
}
@media(prefers-reduced-motion:reduce){
 .battle-section .battle-atmosphere::before,.battle-section .battle-atmosphere::after{animation:none!important}
 .battle-section .battle-atmosphere{transition:none}
}

/* Ambience visibility fix v4:
   shade is a later sibling and was painting ABOVE atmosphere at the same
   z-index. Draw particles after the shade and before the text. */
.battle-section .battle-shade{z-index:2}
.battle-section .battle-atmosphere{
  z-index:3;
  opacity:.9;
  mix-blend-mode:screen;
}
.battle-section .battle-content{z-index:4}
.battle-section[data-scene="beihai"] .battle-atmosphere::after{
  background-image:
    radial-gradient(circle,#fff 0 2px,transparent 3px),
    radial-gradient(circle,#eef7ffdf 0 1.7px,transparent 3px),
    radial-gradient(circle,#fff9 0 1px,transparent 2.5px);
  background-size:83px 97px,127px 139px,157px 119px;
  opacity:.88;
  animation:gp-snow 10s linear infinite;
}
.battle-section[data-scene="luoyang"] .battle-atmosphere::after,
.battle-section[data-scene="guandu"] .battle-atmosphere::after{
  opacity:.82;
  filter:drop-shadow(0 0 6px #f2ac68);
}
.battle-section[data-scene="hulao"] .battle-atmosphere::after{opacity:.72}
.battle-section[data-scene="chibi"] .battle-atmosphere::after{opacity:.70}
.battle-section[data-scene="wuzhang"] .battle-atmosphere::after{opacity:.66}
@media(max-width:760px){
 .battle-section .battle-atmosphere{opacity:.72}
 .battle-section[data-scene="beihai"] .battle-atmosphere::after{opacity:.78}
}
@media(prefers-reduced-motion:reduce){
 .battle-section .battle-atmosphere{opacity:.32}
}

/* North Sea v5: sparse, slow snow instead of a dense particle grid. */
.battle-section[data-scene="beihai"] .battle-atmosphere::after{
  background-image:
    radial-gradient(circle,#ffffffdb 0 1.2px,transparent 2.2px),
    radial-gradient(circle,#eaf5ffc0 0 1px,transparent 2px),
    radial-gradient(circle,#ffffff9b 0 .75px,transparent 1.6px);
  background-size:235px 245px,315px 330px,385px 350px;
  background-position:0 0,95px 55px,38px 120px;
  opacity:.48;
  animation:gp-sparse-snow 26s linear infinite;
}
@keyframes gp-sparse-snow{
  from{background-position:0 0,95px 55px,38px 120px}
  to{background-position:28px 245px,63px 385px,66px 470px}
}
@media(max-width:760px){
  .battle-section[data-scene="beihai"] .battle-atmosphere::after{opacity:.38}
}

/* North Sea v6: layered snowfall, with perspective, uneven placement and wind.
   Independent timing creates natural movement without dense white noise. */
.battle-section[data-scene="beihai"] .battle-atmosphere::before{
  background:
    radial-gradient(circle at 72% 36%,#a8c4e728,transparent 46%);
  opacity:.65;
  animation:gp-atmosphere 12s ease-in-out infinite alternate;
}
.battle-section[data-scene="beihai"] .battle-atmosphere::after{
  background-image:
    radial-gradient(circle,#fffefde8 0 2.3px,transparent 3.8px),
    radial-gradient(circle,#f0f7ffdc 0 1.35px,transparent 2.6px),
    radial-gradient(circle,#e9f5ffb0 0 .7px,transparent 1.5px);
  background-size:327px 271px,209px 193px,141px 157px;
  background-position:57px 31px,121px 77px,18px 93px;
  opacity:.65;
  animation:gp-natural-snow 14s linear infinite;
}
@keyframes gp-natural-snow{
  from{background-position:57px -240px,121px -116px,18px -64px}
  to{background-position:103px 302px,85px 270px,50px 250px}
}
@media(max-width:760px){
 .battle-section[data-scene="beihai"] .battle-atmosphere::after{opacity:.57}
}
@media(prefers-reduced-motion:reduce){
 .battle-section[data-scene="beihai"] .battle-atmosphere::after{animation:none!important}
}

/* v7 — Natural Beihai snowfall rendered as independently drifting particles.
   Disable the repeated tiled CSS snowfield to eliminate horizontal rows and
   the full-screen snap at the end of a CSS keyframe cycle. */
.battle-section .gp-snow-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;display:none}
.battle-section[data-scene="beihai"] .gp-snow-canvas{display:block}
.battle-section[data-scene="beihai"] .battle-atmosphere::after{background:none!important;animation:none!important;opacity:0!important}
.battle-section .battle-content{z-index:4}
@media(prefers-reduced-motion:reduce){.battle-section .gp-snow-canvas{display:none!important}}

/* Embers v8: individually animated glowing particles replace repeating tiles. */
.battle-section .gp-ember-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;display:none}
.battle-section[data-scene="luoyang"] .gp-ember-canvas,
.battle-section[data-scene="guandu"] .gp-ember-canvas{display:block}
.battle-section[data-scene="luoyang"] .battle-atmosphere::after,
.battle-section[data-scene="guandu"] .battle-atmosphere::after{background:none!important;animation:none!important;opacity:0!important}
@media(prefers-reduced-motion:reduce){.battle-section .gp-ember-canvas{display:none!important}}

/* Gameplay showcase v2: honest artwork previews until real Unity capture exists. */
.gameplay-section .gameplay-disclosure{
  margin:12px auto 0;
  max-width:760px;
  font-size:12px;
  line-height:1.7;
  color:#ad9b7a;
  letter-spacing:.02em;
}
.gameplay-feature .gameplay-media{
  overflow:hidden;
  position:relative;
  aspect-ratio:16/9;
  background:#131820;
}
.gameplay-feature .gameplay-media .gameplay-fallback{
  position:absolute;inset:0;
}
.gameplay-feature .gameplay-media .gameplay-fallback.gameplay-scene>img{
  width:100%;height:100%;object-fit:cover;
}
.gameplay-feature.has-clip .gameplay-fallback{visibility:hidden}
.gameplay-feature .gameplay-video-control{z-index:5}

/* 将契纪事 / military dispatch archive — journal layout with a quiet timeline. */
.news-section .dispatch-filters{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin:2px auto 28px}
.news-section .dispatch-filter{border:1px solid #806b4f9c;border-radius:2px;background:#131920;color:#b9b2a5;padding:9px 19px;font-size:13px;transition:background .2s,color .2s,border-color .2s}
.news-section .dispatch-filter:hover,.news-section .dispatch-filter:focus-visible{border-color:#e1bd7d;color:#f4ddb0}
.news-section .dispatch-filter.active{background:linear-gradient(120deg,#765630,#b38d54);border-color:#d7b475;color:#fff4dc}
.news-section .news-feed{max-width:1120px;margin:0 auto;position:relative;gap:17px}
.news-section .news-feed::before{content:"";position:absolute;left:11px;top:18px;bottom:18px;width:1px;background:linear-gradient(#d5af70, #9b764d75,transparent);pointer-events:none}
.news-section .dispatch-entry{position:relative;margin-left:37px;display:grid;grid-template-columns:minmax(170px,32%) minmax(0,1fr);gap:25px;padding:20px;background:linear-gradient(120deg,#181c23,#11171d);border:1px solid #8b704b66;transition:border-color .3s,transform .3s,box-shadow .3s}
.news-section .dispatch-entry::before{content:"";position:absolute;left:-32px;top:32px;width:9px;height:9px;border:1px solid #e6c68f;border-radius:50%;background:#785837;box-shadow:0 0 0 5px #090d11}
.news-section .dispatch-entry:hover{border-color:#c6a574;transform:translateY(-2px);box-shadow:0 14px 35px #0003}
.news-section .dispatch-art{width:100%;height:200px;object-fit:cover;object-position:center;display:block;border:1px solid #8b704b42;background:#0b1118}
.news-section .dispatch-entry:has(.dispatch-art[src*="/media/cards/"]) .dispatch-art{object-fit:contain}
.news-section .dispatch-body{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}
.news-section .dispatch-body h3{margin:13px 0 6px;font-size:clamp(19px,2vw,24px);font-family:serif;color:#f4e5c8;line-height:1.35}
.news-section .dispatch-summary{margin:5px 0 10px;color:#c2c1bd;font-size:14px;line-height:1.9}
.news-section .dispatch-more{margin-top:8px;width:100%;border-top:1px solid #826e4c5b;padding-top:10px;color:#cbc3b5;font-size:13px}
.news-section .dispatch-more summary{list-style:none;width:max-content;max-width:100%;cursor:pointer;color:#e6bc78;padding:4px 6px 4px 0}
.news-section .dispatch-more summary::-webkit-details-marker{display:none}
.news-section .dispatch-more summary::after{content:" ▾";display:inline-block;margin-left:5px;transition:transform .2s}
.news-section .dispatch-more[open] summary::after{transform:rotate(180deg)}
.news-section .dispatch-more p{line-height:1.9;margin:8px 0;color:#b8bbb8}
.news-section .dispatch-link{display:inline-block;margin:4px 0 3px;color:#f0cc88;border-bottom:1px solid #b99558;padding-bottom:2px}
.news-section .dispatch-link:hover{text-shadow:0 0 12px #dba75d7a}
@media(max-width:760px){
 .news-section .dispatch-filter{padding:8px 12px;font-size:12px}
 .news-section .dispatch-entry{grid-template-columns:1fr;gap:13px;padding:14px;margin-left:25px}
 .news-section .dispatch-entry::before{left:-27px}
 .news-section .news-feed::before{left:3px}
 .news-section .dispatch-art{height:auto;aspect-ratio:16/9}
 .news-section .dispatch-body h3{font-size:20px;margin-top:10px}
}
@media(prefers-reduced-motion:reduce){.news-section .dispatch-entry{transition:none;transform:none!important}}

/* Homepage: full archive lives on a separate page. */
.news-section .archive-home-link{display:flex;justify-content:center;margin:28px auto 4px}
.news-section .archive-home-link a{min-width:210px;text-align:center}
