:root {
  --fg-size: 400px;
  --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: 280px;
  }
}
@media (max-width: 320px) {
  :root {
    --fg-size: 200px;
  }
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100dvh;
  position: relative; 
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: #000000;
}

/* ----------------------Clarity - Banner */
#CookieBanner {
  inset: 0;
  width: 100%;
  position: fixed;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  background-color: rgba(255, 255, 255, 0.699); 
  backdrop-filter: blur(5px);
  animation: CFadeIn 1s ease-in;
  will-change: transform, opacity;
  z-index: 201;
}

#CookieImage {
  display: block;
  margin-bottom: 0.5rem;
  user-select: none;
  image-rendering: crisp-edges;
  margin-top: 0.6rem;
  max-width: 15rem;
}
#CookieTextBox {
  max-width: 330px;
  box-sizing: border-box;
  padding: 0.5rem;
  font-family: Arial, Helvetica;
  font-size: 0.75rem;
  user-select: none;
}

#CookieTitle {
  color: #000000ce;
  font-weight: normal;
  font-style: normal;
  font-size: 0.8rem;
  text-align: center;
  padding-top: 5px;
}
#CookieTitle p {
  color: #000000bb;
  font-weight: normal;
  font-style: normal;
  font-size: 0.75rem; 
  text-align: center;
  text-transform: none;
}
#CookieTitle a {
  color: #000000bb;
  font-size: 0.70rem;
  font-style: italic;
  text-decoration: underline;
  -webkit-user-drag: none;
}

#ButtonBox {
  text-align: center;
}  
#B1, #B2 {
  margin-left: 0;
  margin-right: 10px;
  margin-top: 0.8em;
  height: 1.5em;
  display: inline-flex;
  font-family: 'Arial';
  font-size: small;
  align-items: center;
  justify-content: center;
  appearance: none;
  background-color: #0000008a;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  box-shadow: none;
  box-sizing: border-box;
  cursor: pointer;
  padding: calc(.5em - 1px) 1.5em;
  position: relative;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: top;
  white-space: nowrap;
}
#B1:active, #B2:active {
  border-color: #4a4a4a;
  outline: 0;
}

#B1:hover, #B2:hover {
  border-color: #b5b5b5;
}

#B1:focus, #B2:focus {
  border-color: #485fc7;
  outline: 0;
}

#B1:focus:not(:active), #B2:focus:not(:active) {
  box-shadow: rgba(72, 95, 199, .25) 0 0 0 .125em;
}
  
@keyframes CFadeIn {
  0% { opacity: 0.1; }
  100% { opacity: 0.8; }
}


#BackgroundA {
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  position: fixed;
  overflow: hidden;
  pointer-events: none;
  background: url("../IMG/background.jpg") center/cover no-repeat;
  z-index: 4;
  animation: FlickerBright 15s infinite steps(2), Flicker 7.5s infinite steps(1);
}

@media  (max-width: 800px) {
  #BackgroundA {
    background: url("../IMG/background_mv.jpg") center/cover no-repeat;
  }
  
}

@keyframes FlickerBright {
  0%, 18%, 25%, 57%, 70%, 100% { filter: none; }
  58% { filter: contrast(1.01) brightness(1.01) hue-rotate(350deg); }
  19%, 23% { filter: contrast(1.01) brightness(1.01) hue-rotate(100deg); }
}

@keyframes Flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.8; }
  55% { opacity: 0.7; }
  70% { opacity: 0.9; }
}
/* ----------------------Moving Background */
.ViewportTopGradient {
  top: 0;
  left: 0;
  width: 100%;
  height: 30vh;
  position: fixed;
  background: linear-gradient(
    to bottom,
      hsl(0, 0%, 0%) 0%,
      hsl(0, 0%, 0%) 0%,
      hsl(0, 0%, 0%) 0%,
      hsl(0, 0%, 0%) 0%,
      hsl(0, 0%, 0%) 0%,
      hsl(0, 0%, 0%) 0%,
      hsla(0, 0%, 0%, 0.738) 19%,
      hsla(0, 0%, 0%, 0.541) 34%,
      hsla(0, 0%, 0%, 0.382) 47%,
      hsla(0, 0%, 0%, 0.278) 56.5%,
      hsla(0, 0%, 0%, 0.194) 65%,
      hsla(0, 0%, 0%, 0.126) 73%,
      hsla(0, 0%, 0%, 0.075) 80.2%,
      hsla(0, 0%, 0%, 0.042) 86.1%,
      hsla(0, 0%, 0%, 0.021) 91%,
      hsla(0, 0%, 0%, 0.008) 95.2%,
      hsla(0, 0%, 0%, 0.002) 98.2%,
      hsla(0, 0%, 0%, 0) 100%);
  mix-blend-mode: normal;
  pointer-events: none;
  z-index: 5;
}

.ViewportBottomGradient {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  position: fixed;
  background: linear-gradient(
    to top,
      hsl(0, 0%, 0%) 0%,
      hsl(0, 0%, 0%) 0%,
      hsl(0, 0%, 0%) 0%,
      hsl(0, 0%, 0%) 0%,
      hsl(0, 0%, 0%) 0%,
      hsl(0, 0%, 0%) 0%,
      hsla(0, 0%, 0%, 0.738) 19%,
      hsla(0, 0%, 0%, 0.541) 34%,
      hsla(0, 0%, 0%, 0.382) 47%,
      hsla(0, 0%, 0%, 0.278) 56.5%,
      hsla(0, 0%, 0%, 0.194) 65%,
      hsla(0, 0%, 0%, 0.126) 73%,
      hsla(0, 0%, 0%, 0.075) 80.2%,
      hsla(0, 0%, 0%, 0.042) 86.1%,
      hsla(0, 0%, 0%, 0.021) 91%,
      hsla(0, 0%, 0%, 0.008) 95.2%,
      hsla(0, 0%, 0%, 0.002) 98.2%,
      hsla(0, 0%, 0%, 0) 100%);
  mix-blend-mode: normal;
  pointer-events: none;
  z-index: 5;
}

#FilmGrain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 101;  
  pointer-events: none;
  mix-blend-mode: overlay; 
  opacity: 0.101;   
}

.Title {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  color: smokegray;
  padding: 5px;
  text-align: center;
  font-family: Georgia, 'Times New Roman', Times, serif;
  position: fixed;
  font-weight: bold;
  background: linear-gradient(to right, #ffffff, #ff0000);
  background-size: 200% auto;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: #00000052 0px 0px 10px;
  z-index: 50;
  animation: ScaleIn 1.2s ease-out forwards, animated-text-gradient 5s linear infinite, FlickerBright 10s infinite steps(2);
}

@keyframes animated-text-gradient {
  to { background-position: 200% center; }
}

.Title a {
  display: flex;  
  flex-direction: row;       
  justify-content: space-around; 
  width: 100%;               
  color: inherit;           
  text-decoration: none;   
}

@keyframes ScaleIn {
  0% {
    transform: scale(0.2); 
    opacity: 0;   
  }
  60% {
    transform: scale(1.1); 
    opacity: 1;
  }
  100% {
    transform: scale(1);  
  }
}

 /* ----------------------Foooter */ 
 footer {
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px;
  text-align: center;
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
  z-index: 198;
}

.Copyright {
  text-transform: uppercase;
  font-size: calc(0.65rem * var(--fg-scale));
  margin: 1.2rem;
  color: #ffffff94;
  user-select: none;
}
.Copyright img {
  image-rendering: crisp-edges;
  margin-top: 0.45rem;
  max-width: calc(8rem * var(--fg-scale));
  opacity: 0.8;
  pointer-events: none;
}
.PPolicy {
  font-size: calc(0.65rem * var(--fg-scale));
  color: #ffffff94;
  text-decoration: none;
}

.More {
  display: inline-block;
  opacity: 0.8;
  animation: GentleWiggle 3s infinite;
}
@keyframes GentleWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1deg); }
  75% { transform: rotate(-1deg); }
}

.More a {
  display: inline-flex;    
  align-items: center;    
  gap: 0.2rem;       
  text-decoration: none;    
  color: inherit;           
}

.More img {
  width: calc(2rem * var(--fg-scale));
  height: auto;
  display: block;
  image-rendering: crisp-edges;  
}
.More:hover {
  scale: 1.05;
}
.MoreText {
  font-size: calc(0.75rem * var(--fg-scale));
  font-weight: 600;
  vertical-align: middle;
  margin: 0; 
  user-select: none;
  text-decoration: none;
  background: linear-gradient(to right, #fafafa, #ff0000);
  background-size: 200% auto;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animated-text-gradient 5s linear infinite;
}

@keyframes animated-text-gradient {
  to { background-position: 200% center; }
}