:root {
  --accent: #db5e34;
  --accent-bright: #db5e34;
  --white: #f5f5f5;
  --muted: rgba(255,255,255,.58);
  --panel: rgba(13,13,13,.80);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #080808;
  color: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body {
  opacity: 0;
  animation: pageIn .9s cubic-bezier(.2,.8,.2,1) forwards;
}

.bg-layer {
  position: fixed;
  inset: -3%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.35s ease;
  will-change: transform, opacity;
}

.bg-layer.active {
  opacity: 1;
  animation: kenburns 12s ease-out forwards;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,.05) 0 20%, rgba(0,0,0,.42) 100%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.34));
  pointer-events: none;
}

.bg-noise {
  position: fixed;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.scene {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.center {
  width: min(570px, 88vw);
  transform: translateY(18px);
  opacity: 0;
  animation: centerIn 1s .18s cubic-bezier(.2,.85,.2,1) forwards;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px 2px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.55));
}

.brand-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  background: var(--accent);
  color: #111;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

.server-name {
  font-size: clamp(18px, 2.1vw, 25px);
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1;
}

.server-type {
  margin-top: 5px;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
}

.loading-box {
  position: relative;
  padding: 19px 21px 16px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 65px rgba(0,0,0,.42);
  backdrop-filter: blur(12px);
}

.loading-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
}

#percent {
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
  min-width: 42px;
  text-align: right;
}

.bar {
  position: relative;
  height: 6px;
  margin-top: 13px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
}

.bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #db5e34, #db5e34);
  box-shadow: 0 0 18px rgba(243,183,43,.42);
  transform-origin: left center;
  transition: width .32s cubic-bezier(.2,.8,.2,1);
}

.bar-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 100%;
  opacity: .45;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: scan 1.6s linear infinite;
  pointer-events: none;
}

.loading-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
}

#detail {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#fileCount {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.hint {
  margin-top: 11px;
  padding-left: 2px;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  text-shadow: 0 2px 8px #000;
  text-align: center;
}

.transition {
  position: fixed;
  inset: 0;
  background: #050505;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}

.transition.visible {
  opacity: 1;
}

@keyframes pageIn {
  to { opacity: 1; }
}

@keyframes centerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kenburns {
  from { transform: scale(1.035) translate3d(0,0,0); }
  to { transform: scale(1.10) translate3d(-.7%, -.4%, 0); }
}

@keyframes scan {
  from { transform: translateX(-110px); }
  to { transform: translateX(650px); }
}

@media (max-width: 600px) {
  .scene { padding: 14px; }
  .center { width: 100%; }
  .loading-box { padding: 16px; }
  .brand-logo { width: 46px; height: 46px; flex-basis: 46px; }
  .loading-top { font-size: 12px; }
}
