html,
body {
  margin: 0;
  background: #0f3d28;
}

#keng-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0f3d28;
  transition: transform 620ms cubic-bezier(.76, 0, .24, 1), opacity 420ms ease;
}

#keng-loader.is-leaving {
  transform: translateY(-100%);
  opacity: 0;
}

.kl__topo {
  position: absolute;
  inset: 0;
  background: url('/assets/texture-topo-hero.png') center / cover no-repeat;
}

.kl__topo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(10, 46, 32, .55) 0%, rgba(10, 46, 32, .78) 100%);
}

.kl__center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  padding: 24px;
}

.kl__mark {
  display: block;
  width: auto;
  height: clamp(64px, 11vw, 92px);
}

.kl__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.kl__zh {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(24px, 4.4vw, 32px);
  font-weight: 900;
  letter-spacing: .2em;
  color: #fff;
}

.kl__en {
  padding-left: .46em;
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(10px, 1.6vw, 12px);
  letter-spacing: .46em;
  text-transform: uppercase;
  color: #fcdb00;
}

.kl__pulse {
  width: clamp(216px, 62vw, 320px);
  margin-top: 6px;
}

.kl__pulse svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.kl__base {
  stroke: rgba(252, 219, 0, .22);
  stroke-width: 1;
}

.kl__trace {
  fill: none;
  stroke: #fcdb00;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px rgba(252, 219, 0, .3));
}

.kl__dot {
  fill: #fcdb00;
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(252, 219, 0, .6));
}

.kl__pct {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(10px, 1.5vw, 12px);
  font-variant-numeric: tabular-nums;
  letter-spacing: .26em;
  color: rgba(255, 255, 255, .52);
}

.kl__pct .kl__unit {
  padding-left: 2px;
  color: #fcdb00;
  letter-spacing: 0;
}

@media (prefers-reduced-motion: reduce) {
  #keng-loader {
    transition: none;
  }
}
