/* Keep the splash font outside the application bundle so it can load before hydration. */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/newsreader-vietnamese-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/newsreader-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/newsreader-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.dckn-protected-boot,
.dckn-noscript {
  box-sizing: border-box;
  font-family: 'Newsreader Variable', Georgia, 'Times New Roman', serif;
}

.dckn-protected-boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #e3ddd1;
  background: #121416;
  text-align: center;
}

html[data-dckn-protected-boot='visible'] .dckn-protected-boot {
  display: flex;
}

html[data-theme='light'] .dckn-protected-boot {
  color: #202428;
  background: #e8e4dc;
}

.dckn-protected-boot__copy {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
}

.dckn-protected-boot__title {
  color: transparent;
  background-image: linear-gradient(100deg, #fdfcf0 0%, #c3a989 48%, #d6d2c9 100%);
  background-clip: text;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-shadow:
    0 1px 0 rgb(255 240 188 / 22%),
    0 3px 8px rgb(18 11 5 / 48%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dckn-protected-boot__subtitle {
  color: transparent;
  background-image: linear-gradient(100deg, #b4976c 0%, #aaa096 54%, #b4976c 100%);
  background-clip: text;
  font-size: 1rem;
  line-height: 1.5;
  text-shadow:
    0 1px 0 rgb(255 232 172 / 16%),
    0 3px 8px rgb(18 11 5 / 40%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dckn-protected-boot__title,
.dckn-protected-boot__subtitle {
  visibility: hidden;
}

html[data-dckn-protected-boot-font='ready'] .dckn-protected-boot__title,
html[data-dckn-protected-boot-font='ready'] .dckn-protected-boot__subtitle {
  visibility: visible;
}

.dckn-protected-boot__spinner {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.45rem;
  border: 2px solid rgb(157 152 141 / 28%);
  border-top-color: #8c7148;
  border-radius: 50%;
  animation: dckn-protected-boot-spin 800ms linear infinite;
}

html[data-theme='light'] .dckn-protected-boot__title,
html[data-theme='light'] .dckn-protected-boot__subtitle {
  text-shadow: none;
}

html[data-theme='light'] .dckn-protected-boot__title {
  background-image: linear-gradient(100deg, #202428 0%, #665743 48%, #4b4e50 100%);
}

html[data-theme='light'] .dckn-protected-boot__subtitle {
  background-image: linear-gradient(100deg, #806641 0%, #71685f 54%, #806641 100%);
}

@keyframes dckn-protected-boot-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dckn-protected-boot__spinner {
    animation-duration: 1.6s;
  }
}

.dckn-noscript {
  margin: 0;
  padding: 1rem;
  color: #e3ddd1;
  background: #121416;
  text-align: center;
}

html[data-theme='light'] .dckn-noscript {
  color: #202428;
  background: #e8e4dc;
}
