#loadingBox, #box, #loadingInfo {
  visibility: hidden !important;
}

#sfLoad {
  --gold: #e6bd68;
  --gold-hi: #fbe6ae;
  --line: rgba(226, 188, 110, .32);
  --f-display: "Cinzel", "Trajan Pro", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --f-body: "Barlow", "Segoe UI", Roboto, system-ui, sans-serif;
  --f-cond: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .68, .32, 1);

  position: fixed;
  inset: 0;
  z-index: 2500;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--f-body);
  color: #edf1f7;
  text-align: center;
  background: #08151c url('town.webp') 50% 52% / cover no-repeat;
  opacity: 1;
  transition: opacity .5s var(--ease);
}

#sfLoad.is-out {
  opacity: 0;
  pointer-events: none;
}

#sfLoad::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 45% 48% at 50% 32%, rgba(5, 16, 26, .66), transparent 95%),
    linear-gradient(180deg, rgba(5, 15, 25, .4), rgba(5, 15, 25, .1) 52%, rgba(8, 21, 28, .3) 78%, #08151c 100%);
}

#sfLoad .embers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .35;
}

#sfLoad .embers i {
  position: absolute;
  bottom: -12px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, #fff4d6 0, rgba(255, 190, 100, .9) 28%, rgba(255, 130, 40, 0) 70%);
  animation: sfl-ember var(--t) linear var(--d) infinite;
}

@keyframes sfl-ember {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  12%, 70% { opacity: var(--a); }
  100% { opacity: 0; transform: translate3d(var(--dx), -72vh, 0); }
}

#sfLoad .in {
  position: relative;
  z-index: 3;
  width: min(640px, 100% - 40px);
  margin: auto 0;
  padding: 24px 0 10px;
  animation: sfl-in .9s var(--ease) both;
}

#sfLoad .mark {
  margin: 0;
  font: 900 64px/.92 var(--f-display);
  letter-spacing: .01em;
  font-size: min(clamp(44px, 7vw, 100px), calc(min(620px, 100vw - 32px) / (var(--len, 8) * .74)));
  background: linear-gradient(180deg, #fff8de 0%, #f6dc98 34%, #e0ad52 62%, #a8742c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #38260f) drop-shadow(0 8px 22px #07131d);
}

#sfLoad .tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px 0 0;
  font: 600 13px/1.4 var(--f-cond);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #f7d689;
}

#sfLoad .tag span {
  margin-right: -.28em;
}

#sfLoad .tag::before,
#sfLoad .tag::after {
  content: "";
  flex: 0 0 clamp(20px, 5vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 189, 104, .85));
}

#sfLoad .tag::after {
  transform: scaleX(-1);
}

#sfLoad .bar {
  position: relative;
  width: min(420px, 88%);
  height: 8px;
  margin: 30px auto 0;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(3, 15, 23, .85);
  border: 1px solid rgba(234, 194, 107, .65);
  box-shadow: inset 0 1px 3px #020d13, 0 0 16px rgba(226, 187, 104, .08);
}

#sfLoad .fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #8a5a1c, #e0ad52 62%, #fff1c4);
  box-shadow: 0 0 14px rgba(236, 184, 90, .55);
  transition: width .3s ease;
}

#sfLoad.phase2 .fill {
  width: 100% !important;
  background: linear-gradient(90deg, transparent 0, rgba(224, 173, 82, .12) 25%, #e0ad52 44%, #fff1c4 50%, #e0ad52 56%, rgba(224, 173, 82, .12) 75%, transparent 100%);
  background-size: 220% 100%;
  animation: sfl-flow 1.9s linear infinite;
}

@keyframes sfl-flow {
  from { background-position: 140% 0; }
  to { background-position: -40% 0; }
}

#sfLoad .st {
  margin-top: 14px;
  min-height: 20px;
  font: 500 15px/1.35 var(--f-body);
  letter-spacing: .02em;
  color: #d0dedb;
  text-shadow: 0 1px 6px #07131d;
}

#sfLoad .pc {
  margin-left: 4px;
  font: 700 16px/1 var(--f-cond);
  letter-spacing: .04em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

#sfLoad .hint {
  margin-top: 22px;
  min-height: 48px;
}

#sfLoad .enter {
  display: none;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  cursor: pointer;
  font: 700 15px/1 var(--f-cond);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f9dda0;
  background: linear-gradient(#143441, #081c26);
  border: 1px solid rgba(232, 194, 112, .65);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 24px -12px rgba(0, 0, 0, .9);
  transition: border-color .25s, color .25s, transform .25s var(--ease);
}

#sfLoad .enter:hover {
  border-color: rgba(236, 198, 120, .8);
  color: var(--gold-hi);
  transform: translateY(-2px);
}

#sfLoad .enter:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

#sfLoad.can-skip .enter {
  display: inline-flex;
  animation: sfl-in .4s var(--ease);
}

@keyframes sfl-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

#sfLoad .art {
  position: relative;
  z-index: 1;
  flex: none;
  width: min(1080px, 92vw, 115svh);
  aspect-ratio: 2.15;
  pointer-events: none;
  user-select: none;
}

#sfLoad .art img {
  position: absolute;
  left: 50%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

#sfLoad .art .art-party {
  width: auto;
  height: 100%;
  max-width: 100%;
  bottom: 0;
  animation: none;
  filter: drop-shadow(0 7px 10px rgba(2, 10, 15, .4));
}

#sfLoad .art::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  background: linear-gradient(transparent, rgba(8, 21, 28, .55) 65%, #08151c);
}

@media (max-width: 640px) {
  #sfLoad {
    background-position: 48% 50%;
  }
  #sfLoad .in {
    width: calc(100% - 32px);
    padding-block: 20px;
  }
  #sfLoad .mark {
    font-size: min(clamp(44px, 12vw, 72px), calc((100vw - 32px) / (var(--len, 8) * .74)));
  }
  #sfLoad .tag {
    font-size: 11px;
    letter-spacing: .18em;
    gap: 9px;
  }
  #sfLoad .tag span {
    margin-right: -.18em;
  }
  #sfLoad .tag::before,
  #sfLoad .tag::after {
    flex-basis: 18px;
  }
  #sfLoad .art {
    width: min(660px, 136vw, 70svh);
    aspect-ratio: 2.2;
  }
  #sfLoad .bar {
    margin-top: 26px;
  }
}

@media (max-width: 380px) {
  #sfLoad .tag::before,
  #sfLoad .tag::after {
    display: none;
  }
}

@media (max-height: 520px) {
  #sfLoad .art {
    display: none;
  }
  #sfLoad .in {
    padding-block: 16px;
  }
  #sfLoad .hint {
    margin-top: 12px;
  }
  #sfLoad .mark {
    font-size: min(66px, 15svh);
  }
}

@media (prefers-reduced-motion: reduce) {
  #sfLoad,
  #sfLoad *,
  #sfLoad *::before,
  #sfLoad *::after {
    animation: none !important;
    transition: none !important;
  }
  #sfLoad .embers {
    display: none;
  }
}