/* Haijie 30th anniversary. Scoped styles; no dependencies. */
#hj30-intro, #hj30-intro * { box-sizing: border-box; }
#hj30-intro {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000; overflow: hidden;
  background: #020e24; color: #fff; isolation: isolate;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.5; text-align: left; opacity: 1;
  transition: opacity .65s ease, visibility .65s;
}
#hj30-intro.hj30-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
#hj30-intro .hj30-backdrop {
  position: absolute; top: -15%; right: -15%; bottom: -15%; left: -15%; background: url("anniversary-30.jpg") center / cover;
  filter: blur(55px) brightness(.32); opacity: .8;
}
#hj30-intro .hj30-aura {
  position: absolute; top: -20%; right: -20%; bottom: -20%; left: -20%; opacity: .6;
  background: radial-gradient(ellipse at 70% 30%, #146ae955, transparent 48%), radial-gradient(ellipse at 30% 80%, #a064263d, transparent 40%);
  animation: hj30-aura 7s ease-in-out infinite alternate;
}
#hj30-intro .hj30-stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transform: translate(var(--hj30-x, 0px), var(--hj30-y, 0px)); transition: transform 1.2s ease-out; }
/* Keep the poster visible even when animations are disabled or unsupported. */
#hj30-intro .hj30-art { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; opacity: 1; }
#hj30-intro .hj30-art img { width: 100%; height: 100%; object-fit: contain; display: block; max-width: none; }
#hj30-intro.hj30-ready .hj30-art { opacity: 1; animation: hj30-reveal 2s cubic-bezier(.16,1,.3,1) both, hj30-camera 8s ease-out both; }
#hj30-intro .hj30-sweep {
  position: absolute; top: -30%; right: -70%; bottom: -30%; left: -70%; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(112deg, transparent 43%, #ffd98408 47%, #fff2c02c 50%, #ffd98408 53%, transparent 57%);
}
#hj30-intro.hj30-ready .hj30-sweep { animation: hj30-sweep 4.8s .2s ease-in-out both; }
#hj30-intro .hj30-vignette { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; background: linear-gradient(0deg, #010b20 0, transparent 19%, transparent 88%, #010b201c); }
#hj30-intro canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
#hj30-intro .hj30-mobile-brand, #hj30-intro .hj30-mobile-copy { display: none; }
#hj30-intro .hj30-skip, #hj30-intro .hj30-enter {
  appearance: none; -webkit-appearance: none; cursor: pointer; margin: 0; font-family: inherit;
  text-align: center; text-decoration: none; text-transform: none; line-height: 1.3;
  transition: background .2s, border-color .2s, transform .2s; outline-offset: 5px;
}
#hj30-intro button:focus-visible { outline: 2px solid #ffe1a0; }
#hj30-intro .hj30-skip {
  position: absolute; z-index: 3; right: 30px; top: 28px; right: max(30px, env(safe-area-inset-right)); top: max(28px, env(safe-area-inset-top));
  display: flex; align-items: center; gap: 16px; padding: 12px 19px; min-height: 44px;
  border: 1px solid #d3dcf847; border-radius: 30px; background: #05172a80; color: #fff; font-size: 13px; letter-spacing: 1px;
  backdrop-filter: blur(12px);
}
#hj30-intro .hj30-skip:hover { background: #143452; border-color: #ffe3a4; }
#hj30-intro .hj30-count { color: #ffe6b8; min-width: 22px; font-variant-numeric: tabular-nums; }
#hj30-intro .hj30-footer {
  position: absolute; z-index: 2; bottom: 32px; bottom: max(32px, env(safe-area-inset-bottom)); left: 4.6%; right: 4.6%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
#hj30-intro .hj30-note { font-size: 10px; letter-spacing: 4px; color: #d2deedb8; }
#hj30-intro .hj30-note strong { display: block; color: #e8d2a9; font-size: 12px; letter-spacing: 3px; font-weight: 400; margin-bottom: 5px; }
#hj30-intro .hj30-actions { display: flex; align-items: center; gap: 22px; }
#hj30-intro .hj30-auto { margin: 0; font-size: 12px; letter-spacing: 1px; color: #bdcce1; }
#hj30-intro .hj30-enter {
  display: inline-flex; align-items: center; justify-content: center; gap: 36px;
  border: 1px solid #efd2969c; border-radius: 3px; background: linear-gradient(110deg, #f7dfac, #bf904d);
  color: #102037; padding: 16px 25px; min-height: 50px; font-size: 14px; letter-spacing: 2px; font-weight: 600;
  box-shadow: 0 0 35px #e5bd6620;
}
#hj30-intro .hj30-enter:hover { transform: translateY(-2px); background: #ffe6b0; }
#hj30-intro .hj30-enter span { font-size: 21px; font-weight: 400; line-height: 16px; }
#hj30-intro .hj30-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #8aadde20; }
#hj30-intro .hj30-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #0780e2, #7bd8ff 35%, #fff4ce 75%, #d29a49); box-shadow: 0 0 16px #ffe5a6; }
#hj30-intro.hj30-ready .hj30-progress span { animation: hj30-progress 8s linear both; }
@keyframes hj30-reveal { from { opacity: .15; } to { opacity: 1; } }
@keyframes hj30-camera { from { transform: scale(1.045); } to { transform: scale(1); } }
@keyframes hj30-sweep { 0% { transform: translateX(-45%); opacity: 0; } 25% { opacity: .8; } 75% { opacity: .5; } 100% { transform: translateX(45%); opacity: 0; } }
@keyframes hj30-aura { from { transform: rotate(-8deg) scale(1); } to { transform: rotate(8deg) scale(1.15); } }
@keyframes hj30-progress { to { transform: scaleX(1); } }
@keyframes hj30-copy { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 680px) and (orientation: portrait) {
  #hj30-intro .hj30-mobile-brand { display: block; position: absolute; left: 24px; top: 26px; top: max(26px, env(safe-area-inset-top)); font-size: 17px; letter-spacing: 2px; font-weight: 700; }
  #hj30-intro .hj30-mobile-brand span { display: block; font-size: 9px; letter-spacing: 3px; color: #bfd2e7; font-weight: 400; }
  #hj30-intro .hj30-art { top: 13%; right: 2%; bottom: auto; left: 2%; height: 47%; mask-image: radial-gradient(ellipse at 50% 47%, black 45%, transparent 74%); -webkit-mask-image: radial-gradient(ellipse at 50% 47%, black 45%, transparent 74%); }
  #hj30-intro .hj30-art img { position: absolute; width: 207%; height: auto; left: -5%; top: 0; object-fit: initial; transform: translateY(-19%); }
  #hj30-intro .hj30-mobile-copy { display: block; position: absolute; top: 61%; left: 16px; right: 16px; text-align: center; }
  #hj30-intro .hj30-mobile-copy h2 { margin: 0 0 8px; color: #f9deaa; font-size: 28px; font-size: clamp(24px, 7vw, 34px); letter-spacing: 2px; line-height: 1.4; font-weight: 600; }
  #hj30-intro .hj30-mobile-copy p { margin: 0 0 17px; color: #eedbbc; font-size: 10px; letter-spacing: 2px; }
  #hj30-intro .hj30-mobile-copy strong { font-size: 15px; letter-spacing: 3px; font-weight: 400; }
  #hj30-intro.hj30-ready .hj30-mobile-copy { animation: hj30-copy 1.2s .6s both; }
  #hj30-intro .hj30-skip { top: 24px; top: max(24px, env(safe-area-inset-top)); right: 20px; padding: 10px 13px; gap: 10px; font-size: 12px; }
  #hj30-intro .hj30-footer { left: 24px; right: 24px; bottom: 30px; bottom: max(30px, env(safe-area-inset-bottom)); justify-content: center; }
  #hj30-intro .hj30-note { display: none; }
  #hj30-intro .hj30-actions { flex-direction: column-reverse; gap: 12px; width: 100%; }
  #hj30-intro .hj30-enter { width: 100%; max-width: 290px; padding: 15px 25px; }
  #hj30-intro .hj30-auto { font-size: 10px; }
  #hj30-intro .hj30-vignette { background: linear-gradient(0deg, #010b20, transparent 28%, transparent 82%, #010b20); }
}
@media (max-height: 560px) and (orientation: landscape) {
  #hj30-intro .hj30-skip { top: 12px; right: 16px; padding: 8px 13px; }
  #hj30-intro .hj30-footer { bottom: 14px; }
  #hj30-intro .hj30-note, #hj30-intro .hj30-auto { display: none; }
  #hj30-intro .hj30-actions { margin-left: auto; }
  #hj30-intro .hj30-enter { min-height: 40px; padding: 10px 18px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #hj30-intro *, #hj30-intro.hj30-ready .hj30-art, #hj30-intro.hj30-ready .hj30-mobile-copy { animation: none !important; }
  #hj30-intro.hj30-ready .hj30-art { opacity: 1; }
  #hj30-intro canvas, #hj30-intro .hj30-sweep { display: none; }
  #hj30-intro .hj30-stage { transform: none; }
}
