*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --fg-size: 390px;
  --bg-size: 1.1125;
  
  --fg-base: 400; 
  --fg-scale: min(1, calc(var(--fg-size) / (1px * var(--fg-base))));
}

@media (max-width: 800px) {
  :root {
    --fg-size: 340px;
  }
}
@media (max-width: 320px) {
  :root {
    --fg-size: 200px;
  }
}

body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  width: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-x: hidden;
  overflow-y: scroll; 
  overscroll-behavior-y: contain; 
  scroll-behavior: smooth; 
  background-color: #000;
}

#SplashMask {
  top: 0;
  left: 0; 
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: #000;
  pointer-events: auto;
  z-index: 149;
  animation: FadeOut 3.85s ease-out forwards;
}

@keyframes FadeOut {
  0%, 75% { opacity: 1;  }
  100% { opacity: 0; visibility: hidden;}
}

.Splash {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
  width: max-content;
  height: max-content;
  pointer-events: none;
  animation: CHFadeOut 3.2s forwards;
  z-index: 150;
}

@keyframes CHFadeOut {
  0%, 70% { opacity: 0.9;  }
  100% { opacity: 0; visibility: hidden;}
}

#CH { 
  display: block;
  width: calc(18rem * var(--fg-scale));
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  animation: FadeInS 1s ease forwards;
  transform: scale(0);
  animation-delay: 0.19s;
}

@keyframes FadeInS {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@media (max-width: 800px) {
  #CH {
    width: calc(15rem * var(--fg-scale));
  }

}

 main {
  max-width: calc(25rem * var(--fg-scale));
  padding: calc(1em * var(--fg-scale));
  display: flex;
  flex-direction: column;
  align-items: center; 
  pointer-events: none;
  animation: BlurIn 5s ease;
  z-index: 101;
 }

 @keyframes BlurIn {
  0% { filter: blur(30px); }
  100% { filter: blur(0) }
}

 main p {
  text-align: center;
  color: #fff;
  line-height: 1.1;
  gap: 0.5em;
  font-size: calc(0.9rem * var(--fg-scale));
}

#CHT {  
  max-width: calc(15rem * var(--fg-scale));
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  animation-delay: 0.6s;
  animation: Flicker 3s ease;
}

 @keyframes Flicker {
  0% { opacity: 0.8; }
  25% { opacity: 1; }
  50% { opacity: 0.5; }
  75% { opacity: 0.7; }
  100% { opacity: 1; }

}

#Access {
  display: flex;
  flex-direction: column;
  align-items: center; 
}

#Access a {
  display: inline-block;
  font-size: calc(1.8rem * var(--fg-scale));
  font-weight: 300;
  color: #fff;
  padding-bottom: 0.2em;
  text-decoration: none;
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
}

.Parts {
  font-weight: 500;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

.Parts:active, #Access a:active,
.Parts:has(#Access a:active) {
  font-weight: 500;
}

 footer {
  bottom: 0;
  left: 0;
  width: 100%;
  padding-top: 10px;
  padding-left: 20px;
  padding-bottom: 10px;
  text-align: center;
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: calc(0.72rem * var(--fg-scale));
  line-height: 1.4;
  opacity: 0.5;
  z-index: 100; 
}

.Copyright {
  margin-bottom: 1em;
  color: #ffffffb0;
  white-space: nowrap;
  touch-action: none;
  overflow: hidden;
}

#TM {
  font-size: calc(0.62rem * var(--fg-scale)); 
}

.Info {
  font-size: calc(0.67rem * var(--fg-scale));
  text-transform: capitalize;
  color: #ffffffa4;
  text-decoration: none !important;
}