.foguang-intro {
  --fg-scale: .654;
  --fg-round: 32px;
  --fg-shift: 5vh;
  --fg-title: 1;
  --fg-title-shift: 0px;
  --fg-detail: 0;
  --fg-spread: 0;
  position: relative;
  overflow: clip;
  height: 185svh;
  background: #23312b;
  color: #fcfbf8;
}
.foguang-sticky { position: sticky; top: 0; height: 100svh; min-height: 430px; overflow: hidden; isolation: isolate; }
.foguang-frame {
  position: absolute; inset: 0;
  transform: translateY(var(--fg-shift)) scale(var(--fg-scale));
  clip-path: inset(0 round var(--fg-round));
  background: radial-gradient(circle at 62% 45%, #27483e 0%, #152822 58%, #0e1916 100%);
}
.foguang-frame::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("assets/background/ink-mountains-bamboo.webp") center / cover no-repeat;
  filter: brightness(0) invert(1); opacity: .18;
}
.foguang-frame :is(canvas,img) { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#foguang-fallback { object-fit: contain; padding: 8%; opacity: .85; }
.foguang-frame canvas { visibility: hidden; }
.foguang-frame[data-ready] canvas { visibility: visible; }
.foguang-frame[data-ready] img { visibility: hidden; }
.foguang-title {
  position: absolute; inset: 0; padding: 0 10vw; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; opacity: var(--fg-title); transform: translateY(var(--fg-title-shift));
}
.foguang-title span, .foguang-pill { border-radius: 999px; background: #e4ddca; color: #1c1915; padding: 8px 16px; font-size: .875rem; font-weight: 700; box-shadow: 0 6px 18px #0003; }
.foguang-title h1, .foguang-detail h2 {
  margin: 0; color: #fcfbf8; font: 400 clamp(2rem,5vw,4.1rem)/1.2 "Zhi Mang Xing", "KaiTi", serif;
  letter-spacing: .055em; text-wrap: balance; text-shadow: 0 2px 0 #0003, 0 12px 32px #0006;
}
.foguang-title h1 { margin-top: 16px; }
.foguang-title p { margin: 14px 0 0; font-size: clamp(.875rem,1.5vw,1.15rem); color: #fcfbf8e0; text-shadow: 0 2px 10px #0009; }
.foguang-detail, .foguang-meter { position: absolute; opacity: var(--fg-detail); transform: translateY(calc((1 - var(--fg-detail)) * 14px)); }
.foguang-detail { top: clamp(34px,10vh,92px); left: clamp(20px,5vw,72px); }
.foguang-detail p { margin: 0 0 7px; color: #dddcc7; font-size: .875rem; }
.foguang-detail h2 { font-size: clamp(1.7rem,3.3vw,3.2rem); }
.foguang-pill { display: inline-flex; margin-top: 10px; text-decoration: none; }
.foguang-pill:hover { background: #fcfbf8; }
.foguang-meter { right: clamp(20px,6vw,90px); bottom: max(74px,9vh); width: min(220px,60vw); padding: 12px 16px; border: 1px solid #d6dfd046; border-radius: 10px; background: #12241fe0; font-size: .875rem; }
.foguang-meter strong { float: right; color: #dce4c9; font-variant-numeric: tabular-nums; }
.foguang-meter i { display: block; margin-top: 9px; height: 4px; background: #ffffff26; border-radius: 3px; overflow: hidden; }
.foguang-meter i::before { display: block; content: ""; height: 100%; background: #c4cbb6; transform: scaleX(var(--fg-spread)); transform-origin: left; }
.foguang-navigate { position: absolute; bottom: 16px; left: 0; right: 0; padding-inline: 16px; display: flex; gap: 12px; align-items: center; justify-content: center; font-size: .8125rem; color: #f8f4e6cc; }
.foguang-navigate a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 12px; border-radius: 999px; background: #11231dcc; color: #fcfbf8; text-decoration: none; }
.foguang-navigate a:hover, .foguang-navigate a:focus-visible { background: #40594c; }
.foguang-intro :focus-visible { outline-color: #fcfbf8; }
.foguang-intro[data-static] { height: auto; }
.foguang-intro[data-static] :is(.foguang-meter,#foguang-cue) { display: none; }
@media (max-width: 740px) {
  .foguang-intro { --fg-scale: .92; --fg-shift: 0px; --fg-round: 18px; height: 148svh; }
  .foguang-sticky { height: 78svh; }
  .foguang-title { padding-inline: 9vw; }
  .foguang-title h1 { font-size: clamp(2.2rem,10vw,3.1rem); }
  .foguang-title span { font-size: .75rem; }
  .foguang-meter { width: min(166px,55vw); bottom: 70px; }
}
