@charset "UTF-8";

@font-face {
  font-family: "Benguiat Std";
  src: url("../Font/benguiat-std-bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}

/* 🎨 Основні стилі */
body {
  margin: 0;
  padding: 0;
  background-color: black;
  color: white;
  overflow-x: hidden;
  font-family: "Benguiat Std", serif;
  overflow: hidden;
}

/* 🔲 Клікабельний фон */
#background-link {
  display: block;
  position: absolute;

  width: 100%;
  height: 100vh; /* повний екран */
  z-index: 1;
  cursor: pointer;
  text-decoration: none;
}

#background-link {
  display: block;
  height: 100vh; /* або скільки хочеш */
  position: relative; /* ОБОВ’ЯЗКОВО, щоб всередині absolute працювало */
}

/* Фонове зображення */
#background-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("../Images/Entrance.svg");
  background-size: contain; /* або cover */
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  animation: fadeInZoom 3s ease-out forwards;
  opacity: 0;
  transform: scale(1.2);
  animation: fadeInZoom 3s ease-out forwards, breathing 6s ease-in-out infinite;
  overflow: hidden;
}

@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(1.2);
    filter: brightness(0.3) blur(5px);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
    filter: brightness(0.9) blur(1px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) blur(0);
  }
}

@keyframes breathing {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.015);
  }
}

/* Велика червона плашка SCORE */
.score-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgb(0, 0, 0);
  display: none; /* Спочатку приховано */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
  box-sizing: border-box;
}

#scoreScreen {
  color: rgb(255, 255, 255);
  font-size: 35px;
  font-family: "Benguiat Std";
  display: none;
}

.score-content {
  text-transform: uppercase;
  text-align: center;
  max-width: 80%;
  font-size: 2rem;
  font-family: "Benguiat Std";
  line-height: 1.3; /* більша читабельність */
  padding: 40px;
}

.story-text {
  margin-bottom: 40px; /* головний відступ між текстом і кнопкою */
}

.continue-button {
  padding: 15px 30px;
  font-family: "Benguiat Std";
  all: unset;
  cursor: pointer;
  text-decoration: underline;
  color: rgb(255, 255, 255);
  transition: opacity 0.3s ease;
  text-transform: uppercase;
  font-size: 1.7rem;
}

.continue-button:hover {
  opacity: 0.6;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes circle-wipe {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

/* 📱 Мобільна адаптація */
@media (max-width: 600px) {
  .score-content {
    font-size: 1.3rem;
    padding: 20px;
    max-width: 100%;
  }

  #scoreScreen {
    font-size: 24px;
  }

  .continue-button {
    font-size: 1.3rem;
    padding: 12px 24px;
  }

  .story-text {
    margin-bottom: 24px;
  }

  .score-overlay {
    padding: 20px;
  }
}
