/* Native CSS/SVG depth: no video, renderer library, or extra image download. */
.startup-intro {
  box-sizing: border-box;
  position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center;
  min-height: 100svh; padding: max(32px, env(safe-area-inset-top)) 24px max(115px, env(safe-area-inset-bottom));
  background: #090b0e; color: #f4f1e9; overflow: hidden;
  opacity: 1; transition: opacity .24s ease; font-family: 'DM Sans', Arial, sans-serif;
}
.startup-intro::before {
  content: ''; position: absolute; inset: 9% 10% 15%; pointer-events: none;
  background: radial-gradient(ellipse closest-side, #cf920d0c, transparent 100%);
}
.startup-intro-content { position: relative; display: flex; flex-direction: column; align-items: center; width: min(100%, 400px); }
.intro-logo-stage { perspective: 850px; width: 240px; height: 240px; display: grid; place-items: center; margin: 0 0 24px; }
.intro-emblem {
  position: relative; width: 220px; height: 220px; transform-style: preserve-3d;
  transform: rotateX(7deg) rotateY(-10deg); animation: intro-logo-arrive .82s cubic-bezier(.2,.85,.25,1) both;
}
.intro-emblem svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro-emblem-disc { fill: #101112; }
.intro-emblem-ring { fill: none; stroke: #b27510; stroke-width: 3; }
.intro-house, .intro-lock { fill: none; stroke: #b27510; stroke-width: 12; stroke-linecap: square; stroke-linejoin: miter; }
.intro-lock { stroke-width: 10; }
.intro-padlock { fill: #b27510; }
.intro-keyhole { fill: #111214; }
.intro-emblem-layer { transform: translateZ(calc(var(--depth) * 2px)); }
.intro-emblem-layer .intro-emblem-disc { fill: #17140e; }
.intro-emblem-layer .intro-house, .intro-emblem-layer .intro-lock, .intro-emblem-layer .intro-emblem-ring { stroke: #79500c; }
.intro-emblem-layer .intro-padlock { fill: #79500c; }
.intro-emblem-front { transform: translateZ(1px); }
.intro-emblem-front .intro-house, .intro-emblem-front .intro-lock, .intro-emblem-front .intro-emblem-ring { stroke: url(#intro-gold); }
.intro-emblem-front .intro-padlock { fill: url(#intro-gold); }
.intro-wordmark { text-align: center; animation: intro-type-arrive .55s .14s ease both; }
.intro-wordmark strong { display: block; font-size: clamp(31px, 6vw, 43px); line-height: 1.15; letter-spacing: .16em; font-weight: 700; padding-left: .16em; }
.intro-wordmark > span { display: block; margin-top: 10px; font-size: 9px; color: #d2b774; letter-spacing: .31em; padding-left: .31em; }
.intro-loading { width: min(100%, 288px); margin-top: 43px; }
.intro-loading-label { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 13px; color: #9da0a7; font-size: 10px; line-height: 1.4; }
.intro-percentage { color: #d9c28b; font-variant-numeric: tabular-nums; }
.intro-progress { height: 2px; background: #ffffff12; overflow: hidden; border-radius: 2px; }
.intro-progress > span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg,#b87d12,#ffd47a); transform: scaleX(0); transform-origin: left; transition: transform .15s linear; }
.intro-enter { margin-top: 22px; padding: 10px 12px; border: 0; background: transparent; color: #aeb0b6; font-size: 10px; border-radius: 10px; cursor: pointer; }
.intro-enter > span { color: #d9b366; margin-left: 13px; }
.intro-enter:hover { color: #fff2d1; background: #ffffff05; }
.intro-enter:focus-visible, .intro-emergency:focus-visible { outline: 2px solid #ffc045; outline-offset: 5px; }
.intro-emergency {
  position: absolute; left: 24px; right: 24px; bottom: max(29px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 9px; color: #c0c2c7; text-decoration: none;
  font-size: 10px; line-height: 1.6; padding: 9px; text-align: center; border-radius: 10px;
}
.intro-emergency > span { color: #ffba35; }
.intro-emergency > strong { color: #f1d9a4; font-size: 11px; font-weight: 500; margin-left: 10px; white-space: nowrap; }
.intro-leaving { opacity: 0; pointer-events: none; }
.intro-return-visit .intro-emblem, .intro-return-visit .intro-wordmark { animation-duration: .2s; animation-delay: 0s; }
@keyframes intro-logo-arrive {
  from { opacity: 0; transform: translate3d(0,18px,-80px) rotateX(18deg) rotateY(-66deg); }
  65% { opacity: 1; }
  to { opacity: 1; transform: rotateX(7deg) rotateY(-10deg); }
}
@keyframes intro-type-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (max-height: 650px) {
  .startup-intro { padding-top: 24px; padding-bottom: 88px; }
  .intro-logo-stage { width: 160px; height: 160px; margin-bottom: 16px; }
  .intro-emblem { width: 156px; height: 156px; }
  .intro-loading { margin-top: 27px; }
}
@media (max-width: 360px) { .intro-emergency { gap: 6px; font-size: 9px; } .intro-emergency > strong { margin-left: 4px; font-size: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .startup-intro, .intro-progress > span { transition: none; }
  .intro-emblem, .intro-wordmark { animation: none; }
}
