html.dq-splash-lock, html.dq-splash-lock body { overflow: hidden; }
html, body { min-height: 100%; }
html.dq-splash-lock, html.dq-splash-lock body { background-color: #0a1220; }

#dq-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #0a1220;
  font-family: 'Be Vietnam Pro', Inter, system-ui, sans-serif;
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1), filter .9s;
}
#dq-splash.leave { opacity: 0; transform: scale(1.08); filter: blur(10px); pointer-events: none; }

.dq-splash-bg {
  position: absolute;
  inset: -4%;
  background: url('./splash.png') center 62% / cover no-repeat;
  animation: dq-bg-in 1.4s ease both, dq-kenburns 10s ease-out both;
}
.dq-splash-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 38%, rgba(10, 18, 32, .15), rgba(10, 18, 32, .78) 100%),
    linear-gradient(180deg, rgba(10, 18, 32, .72) 0%, rgba(10, 18, 32, .25) 38%, rgba(10, 18, 32, .55) 70%, rgba(10, 18, 32, .96) 100%),
    linear-gradient(135deg, rgba(37, 99, 235, .35), rgba(8, 145, 178, .18));
}
.dq-splash-sweep { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dq-splash-sweep::before {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent);
  content: "";
  transform: skewX(-18deg);
  animation: dq-sweep 2.2s .6s cubic-bezier(.22, 1, .36, 1) both;
}

.dq-splash-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(520px, calc(100% - 40px));
  padding: 0 0 4vh;
  text-align: center;
}
.dq-splash-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 26px;
  background: transparent;
  animation: dq-logo-in .9s .25s cubic-bezier(.34, 1.56, .64, 1) both;
}
.dq-splash-logo img { width: 100%; height: 100%; object-fit: contain; }
.dq-splash-logo::before, .dq-splash-logo::after { content: none; }
.dq-splash-hello {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  animation: dq-rise .8s .85s cubic-bezier(.22, 1, .36, 1) both;
}
.dq-splash-title {
  display: flex;
  justify-content: center;
  gap: .02em;
  margin: 0;
  font-size: clamp(58px, 17vw, 104px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.02;
}
.dq-splash-title span {
  display: inline-block;
  background: linear-gradient(180deg, #fff 15%, #dbeafe 55%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(37, 99, 235, .55));
  animation: dq-letter 1s calc(1.05s + var(--i) * .09s) cubic-bezier(.22, 1, .36, 1) both;
}
.dq-splash-title .sp { width: .22em; }
.dq-splash-tag {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14.5px;
  letter-spacing: .02em;
  animation: dq-rise .65s .9s cubic-bezier(.22, 1, .36, 1) both;
}
.dq-splash-progress {
  width: min(280px, 72vw);
  margin-top: 38px;
  animation: dq-rise .65s 1.1s cubic-bezier(.22, 1, .36, 1) both;
}
.dq-splash-bar { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.dq-splash-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22d3ee, #fff);
  box-shadow: 0 0 14px rgba(34, 211, 238, .8);
  animation: dq-bar 2.8s 1.1s cubic-bezier(.3, .7, .2, 1) forwards;
}
#dq-splash.done .dq-splash-bar i { width: 100%; animation: none; transition: width .45s cubic-bezier(.22, 1, .36, 1); }
.dq-splash-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .75);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  transition: opacity .25s;
}
.dq-splash-status::after { display: inline-block; width: 1.2em; content: ""; text-align: left; animation: dq-dots 1.2s steps(4, end) infinite; }
#dq-splash.done .dq-splash-status::after { content: ""; animation: none; }
.app.dq-reveal { animation: dq-app-in .9s cubic-bezier(.22, 1, .36, 1) both; }

@keyframes dq-bg-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dq-kenburns { from { transform: scale(1.18); } to { transform: scale(1.02); } }
@keyframes dq-sweep { to { left: 130%; } }
@keyframes dq-logo-in { from { opacity: 0; transform: translateY(-30px) scale(.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes dq-ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes dq-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dq-letter {
  from { opacity: 0; filter: blur(14px) drop-shadow(0 6px 24px rgba(37, 99, 235, .55)); transform: translateY(46px) scale(.9); }
  to { opacity: 1; filter: blur(0) drop-shadow(0 6px 24px rgba(37, 99, 235, .55)); transform: none; }
}
@keyframes dq-bar { 0% { width: 0; } 60% { width: 72%; } 100% { width: 90%; } }
@keyframes dq-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@keyframes dq-app-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 650px) {
  .dq-splash-bg { background-position: center 58%; }
  .dq-splash-hello { font-size: 12px; letter-spacing: .26em; }
}
@media (prefers-reduced-motion: reduce) {
  #dq-splash *, #dq-splash *::before, #dq-splash *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  #dq-splash, .app.dq-reveal { transition-duration: .01ms; animation-duration: .01ms; }
}
