/* Original art composited at 8192 × 1536. Preserve the supplied alpha channels. */
body[data-mode="screen"] { height: 100dvh; min-height: 0; overflow: hidden; }
body[data-mode="screen"] #main { height: 100%; overflow: hidden; }
body[data-mode="screen"] .screen-view {
  width: 100%; height: 100%; min-height: 0; overflow-x: auto; overflow-y: hidden;
  position: relative; background: #020913; overscroll-behavior: contain;
  scrollbar-width: none; scrollbar-gutter: auto;
}
/* Keep horizontal wheel/trackpad/touch navigation, without reserving a bar row. */
body[data-mode="screen"] .screen-view::-webkit-scrollbar { display: none; width: 0; height: 0; }
.screen-view::after { display: none; }
body[data-mode="screen"] .screen-view[data-output="4k-stretch"] { overflow: hidden; }
.screen-view[data-output="4k-stretch"] .venue-stage { margin-inline: 0; transform-origin: left top; }
.screen-view .control-hotspot {
  position: fixed; right: 18px; top: 14px; z-index: 30; width: 94px; height: 48px;
  display: flex; align-items: center; justify-content: center; padding: 0 17px;
  color: #e3fcff; background: rgba(2, 7, 17, .72); border: 1px solid rgba(132,224,245,.32);
  border-radius: 999px; font-size: 11px; text-decoration: none; opacity: 0;
  transform: translateY(-8px); transition: opacity 180ms ease, transform 180ms ease;
}
.screen-view .control-hotspot::before { content: ""; position: absolute; inset: -15px; }
.screen-view .control-hotspot:hover, .screen-view .control-hotspot:focus-visible { opacity: 1; transform: none; }
.venue-stage {
  --stage-height: 100vh; --stage-unit: calc(100vh / 1536);
  width: calc(var(--stage-height) * 16 / 3); height: var(--stage-height);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  isolation: isolate; overflow: hidden; margin-inline: auto;
}
.venue-full-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.venue-stage .screen-backdrop { position: absolute; z-index: 0; inset: 0; }
.venue-outline-art { z-index: 1; opacity: 1; transition: opacity 800ms linear, filter 900ms ease; }
.venue-complete-art { z-index: 2; opacity: 0; transition: opacity 800ms ease-out; }
.screen-view[data-reveal-phase="highlight"] .venue-outline-art { filter: brightness(3.5) saturate(.5); }
.screen-view.has-complete-art[data-reveal-phase="reveal"] .venue-outline-art,
.screen-view.has-complete-art.is-revealed .venue-outline-art { opacity: 0; }
.screen-view.has-complete-art[data-reveal-phase="reveal"] .venue-complete-art,
.screen-view.has-complete-art.is-revealed .venue-complete-art { opacity: 1; }
.venue-side, .venue-main { height: 100%; min-height: 0; min-width: 0; position: relative; overflow: hidden; z-index: 3; }
.venue-side-left { grid-area: 1 / 1; }
.venue-main { grid-area: 1 / 2; }
.venue-side-right { grid-area: 1 / 3; }
.venue-side-art {
  position: absolute; left: calc(347 * var(--stage-unit)); top: calc(212 * var(--stage-unit));
  width: calc(1352 * var(--stage-unit)); height: calc(1050 * var(--stage-unit));
  /* Source placeholder alpha bounds: x474..873/y246..645 on 1352×1050.
     Cut two extra source pixels on every side to prevent resampling seams.
     The dynamic QR carries its own background/frame when it moves or hides. */
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0,
    34.9112% 23.2381%, 34.9112% 61.7143%, 64.7929% 61.7143%, 64.7929% 23.2381%, 34.9112% 23.2381%);
}
.side-qr { position: absolute; left: calc(821 * var(--stage-unit)); top: calc(458 * var(--stage-unit)); }
.side-qr[hidden] { display: none; }
.side-qr[data-position^="top"] { top: calc(360 * var(--stage-unit)); }
.side-qr[data-position^="center"] { top: calc(410 * var(--stage-unit)); }
/* The 53-module matrix has no baked whitespace. Supply a white quiet zone here:
   26 / (332 / 53) = 4.15 modules; retain the artwork's blue rounded frame. */
.side-qr img { display: block; box-sizing: border-box; width: calc(400 * var(--stage-unit)); height: calc(400 * var(--stage-unit)); background: #fff; padding: calc(26 * var(--stage-unit)); border: calc(8 * var(--stage-unit)) solid #e6efff; border-radius: calc(30 * var(--stage-unit)); }
.side-qr[data-qr-mode="mini-release"] img { padding: calc(26 * var(--stage-unit)); }
.venue-main .product-stage {
  width: calc(1208 * var(--stage-unit)); height: calc(943 * var(--stage-unit));
  left: calc(1444 * var(--stage-unit)); top: calc(275 * var(--stage-unit)); opacity: 1;
  position: absolute; z-index: 2;
}
.product-paths, .product-paths > svg, .venue-main .impact-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-paths > svg { overflow: visible; }
.stage-outline-base, .stage-outline-charge { display: none; }
.stage-path-flow { fill: none; stroke: #e6faff; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 3px #80dcff) drop-shadow(0 0 8px #2586ff); }
.flow-outer { display: none; }
.stage-outer-orbit {
  --orbit-duration: 9s;
  fill: none; stroke: #e6faff; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none; opacity: 0; transition: opacity 650ms ease;
}
.screen-view[data-step="2"] .stage-outer-orbit,
.screen-view[data-step="3"] .stage-outer-orbit { opacity: .95; }
/* Preparation and reset hide immediately, including while a fade was running. */
.screen-view:not([data-step="2"]):not([data-step="3"]) .stage-outer-orbit { opacity: 0; transition: none; }
.outer-orbit-track { filter: drop-shadow(0 0 5px #52bffd) drop-shadow(0 0 12px rgba(0,123,255,.5)); }
.stage-contour-glow {
  stroke: rgba(0,123,255,.5); stroke-width: 12; stroke-linejoin: round;
  filter: blur(16px) drop-shadow(0 10px 24px rgba(0,123,255,.5));
}
.outer-orbit-segment {
  stroke-dasharray: 9.53125 990.46875; stroke-dashoffset: var(--orbit-start);
  stroke: var(--segment-color); stroke-linecap: butt;
  stroke-width: var(--segment-width); opacity: var(--segment-alpha);
  animation: outer-path-orbit var(--orbit-duration) linear infinite;
  animation-delay: var(--orbit-phase);
}
/* Keep durations constant. The motion controller changes playbackRate without
   resetting phase when collection advances to convergence/highlight. */
.screen-view[data-reveal-phase="reveal"] .stage-outer-orbit,
.screen-view.is-revealed .stage-outer-orbit { opacity: 0; }
.screen-view:not([data-step="2"]):not([data-step="3"]) .outer-orbit-segment,
.screen-view[data-reveal-phase="reveal"] .outer-orbit-segment,
.screen-view.is-revealed .outer-orbit-segment,
.screen-view.is-document-hidden .outer-orbit-segment { animation-play-state: paused; }
/* Explicit length endpoints avoid an untyped calc(number - number) endpoint,
   which can leave SVG stroke-dashoffset stuck at its underlying value. */
@keyframes outer-path-orbit {
  from { stroke-dashoffset: var(--orbit-start); }
  to { stroke-dashoffset: var(--orbit-end); }
}
.flow-inner {
  stroke-dasharray: 12.5 1437.5; stroke-dashoffset: var(--inner-start);
  stroke: var(--segment-color); stroke-linecap: butt;
  stroke-width: var(--segment-width); opacity: var(--segment-alpha);
  animation: inner-path-flow 3s linear infinite;
}
.screen-view[data-step="2"] .stage-path-flow,
.screen-view[data-step="3"] .stage-path-flow { opacity: .95; }
.screen-view[data-reveal-phase="highlight"] .stage-path-flow { opacity: 1; filter: drop-shadow(0 0 9px #c3f3ff); }
.screen-view[data-reveal-phase="reveal"] .stage-path-flow,
.screen-view.is-revealed .stage-path-flow { opacity: 0; }
.screen-view:not([data-step="2"]):not([data-step="3"]) .flow-inner,
.screen-view.is-revealed .flow-inner,
.screen-view.is-document-hidden .flow-inner { animation-play-state: paused; }
@keyframes inner-path-flow {
  from { stroke-dashoffset: var(--inner-start); }
  to { stroke-dashoffset: var(--inner-end); }
}
.venue-main .wish-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.venue-main .wish-bubble { animation: none; position: absolute; will-change: transform, opacity; transform-origin: 0 0; }
.venue-main .wish-bubble.is-danmaku { left: calc(100% + 32px); transform: translate3d(0, 0, 0); contain: layout paint style; }
.venue-main .wish-bubble.is-danmaku .wish-copy { opacity: var(--comment-opacity, 1); }
.venue-main .wish-copy {
  display: inline-flex; align-items: center; height: calc(80 * var(--stage-unit));
  padding: 0 calc(30 * var(--stage-unit)) 0 calc(16 * var(--stage-unit)); gap: calc(20 * var(--stage-unit));
  border-radius: calc(70 * var(--stage-unit)); border: 1px solid #73c9ff;
  background: rgba(21, 91, 199, .5); box-shadow: none; color: #fff; text-shadow: none;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: calc(26.4 * var(--stage-unit)); letter-spacing: 0; white-space: nowrap;
}
.venue-main .comment-text em { color: #fff; font-size: calc(26.4 * var(--stage-unit)); font-style: normal; font-weight: 500; }
.venue-main .comment-avatar { display: grid; place-items: center; flex: 0 0 auto; width: calc(50 * var(--stage-unit)); height: calc(50 * var(--stage-unit)); border: 0; border-radius: 50%; object-fit: cover; }
.venue-main .comment-avatar-fallback { font-size: calc(23 * var(--stage-unit)); font-style: normal; color: #e8f5ff; background: #326ea4; }
.venue-main .wish-photon { opacity: 0; position: absolute; left: 0; top: 0; width: calc(8 * var(--stage-unit)); height: calc(8 * var(--stage-unit)); border-radius: 50%; background: #d5f8ff; box-shadow: 0 0 10px #55c8ff; }
.venue-main .wish-bubble.is-converging { animation: stage-comment-converge var(--flight-duration) cubic-bezier(.4, 0, .2, 1) forwards; }
.venue-main .wish-bubble.is-converging .wish-copy { animation: stage-comment-to-light var(--flight-duration) ease-in forwards; }
.venue-main .wish-bubble.is-converging .wish-photon { animation: stage-photon-form var(--flight-duration) ease-in forwards; }
.venue-main .impact-layer { pointer-events: none; z-index: 3; }
.venue-main .impact-ripple { position: absolute; width: calc(var(--ripple-size, 30) * var(--stage-unit)); height: calc(var(--ripple-size, 30) * var(--stage-unit)); border: 1px solid #a4eaff; border-radius: 50%; animation: path-landing 800ms ease-out forwards; }
@keyframes stage-comment-converge { from { opacity: 1; transform: translate3d(0,0,0); } to { opacity: 1; transform: translate3d(var(--wish-dx),var(--wish-dy),0); } }
@keyframes stage-comment-to-light { 0%, 35% { opacity: 1; transform: scale(1); } 85%, 100% { opacity: 0; transform: scale(.05); } }
@keyframes stage-photon-form { 0%, 45% { opacity: 0; transform: scale(.1); } 72%, 100% { opacity: 1; transform: scale(1); } }
@keyframes path-landing { from { opacity: 1; transform: translate(-50%,-50%) scale(.2); } to { opacity: 0; transform: translate(-50%,-50%) scale(2); } }
@media (prefers-reduced-motion: reduce) {
  .stage-path-flow { display: none; }
  .outer-orbit-segment { animation: none; }
  .stage-outer-orbit { transition: none; }
  .venue-main .wish-bubble.is-danmaku { display: block; }
}
