html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
  background-color: #f5f5f5;
  background-image: url("/static/images/logo.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.fullscreen-container.home-bg {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.sacred-title {
  margin-top: 50px;
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  text-transform: uppercase;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
  font-weight: 900;
  z-index: 10;
}

.sacred-title .white-word {
  color: #99d81b !important;
  -webkit-text-stroke: 0px;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

.start-container {
  margin: auto 0;
  z-index: 10;
}

.puzzle-start {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  text-decoration: none;
}

@keyframes jump {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-20px);
    filter: brightness(1.4);
  }
}

.puzzle-start .piece {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 15px 22px;
  font-size: clamp(1.3rem, 4vw, 2.3rem);
  font-weight: 800;
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: jump 2s infinite ease-in-out;
}

.puzzle-start .piece:nth-child(1) {
  animation-delay: 0.1s;
}
.puzzle-start .piece:nth-child(2) {
  animation-delay: 0.2s;
}
.puzzle-start .piece:nth-child(3) {
  animation-delay: 0.3s;
}
.puzzle-start .piece:nth-child(4) {
  animation-delay: 0.4s;
}
.puzzle-start .piece:nth-child(5) {
  animation-delay: 0.5s;
}
.puzzle-start .piece:nth-child(7) {
  animation-delay: 0.6s;
}
.puzzle-start .piece:nth-child(8) {
  animation-delay: 0.7s;
}
.puzzle-start .piece:nth-child(9) {
  animation-delay: 0.8s;
}
.puzzle-start .piece:nth-child(10) {
  animation-delay: 0.9s;
}
.puzzle-start .piece:nth-child(11) {
  animation-delay: 1s;
}
.puzzle-start .piece:nth-child(12) {
  animation-delay: 1.1s;
}

.puzzle-start .piece:nth-child(5n + 1) {
  background: rgba(255, 69, 0, 0.8) !important;
}
.puzzle-start .piece:nth-child(5n + 2) {
  background: rgba(255, 140, 0, 0.8) !important;
}
.puzzle-start .piece:nth-child(5n + 3) {
  background: rgba(255, 215, 0, 0.8) !important;
  color: #000;
}
.puzzle-start .piece:nth-child(5n + 4) {
  background: rgba(50, 205, 50, 0.8) !important;
}
.puzzle-start .piece:nth-child(5n + 5) {
  background: rgba(30, 144, 255, 0.8) !important;
}

.puzzle-start:hover .piece {
  animation-play-state: paused;
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.bottom-auth {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 25px;
  row-gap: 10px;
  margin: 30px;
  z-index: 10;
}
.auth-btn {
  min-width: 170px;
  padding: 16px 35px;
  background: linear-gradient(135deg, #ff8c00, #ff4500) !important;
  color: white !important;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2rem;
  border: 2px solid #fff !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  text-align: center;
}
.auth-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(255, 69, 0, 0.5);
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 3px;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}
.puzzle-piece {
  background-size: cover;
  background-position: center;
  border-radius: 3px;
}

.piece-1 {
  background-image: url("/static/images/logo-part-1.png");
}
.piece-2 {
  background-image: url("/static/images/logo-part-2.png");
}
.piece-3 {
  background-image: url("/static/images/logo-part-3.png");
}
.piece-4 {
  background-image: url("/static/images/logo-part-4.png");
}
.piece-5 {
  background-image: url("/static/images/logo-part-5.png");
}
.piece-6 {
  background-image: url("/static/images/logo-part-6.png");
}
.piece-7 {
  background-image: url("/static/images/logo-part-7.png");
}
.piece-8 {
  background-image: url("/static/images/logo-part-8.png");
}
.piece-9 {
  background-image: url("/static/images/logo-part-9.png");
}
.piece-10 {
  background-image: url("/static/images/logo-part-10.png");
}
.piece-11 {
  background-image: url("/static/images/logo-part-11.png");
}
.piece-12 {
  background-image: url("/static/images/logo-part-12.png");
}
.piece-13 {
  background-image: url("/static/images/logo-part-13.png");
}
.piece-14 {
  background-image: url("/static/images/logo-part-14.png");
}
.piece-15 {
  background-image: url("/static/images/logo-part-15.png");
}
.piece-16 {
  background-image: url("/static/images/logo-part-16.png");
}

@media (max-width: 600px) {
  .puzzle-start {
    flex-direction: row;
    flex-wrap: wrap;
    width: 90%;
  }
  .sacred-title {
    font-size: 1.5rem;
  }
}

.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(26, 188, 156, 0.5);
  border-color: #1abc9c;
}

.lang-btn.active {
  background: #1abc9c;
  border-color: #1abc9c;
  color: #fff;
  box-shadow: 0 0 5px rgba(26, 188, 156, 0.5);
}

.support-link {
  grid-column: 1 / -1;
  justify-self: center;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 8px 14px;

  background: rgba(255, 255, 255, 0.85);
  color: #17181c;

  border: 1px solid rgba(23, 24, 28, 0.8);
  border-radius: 7px;

  font-size: 13px;
  font-weight: 600;

  text-decoration: none;

  box-shadow: 2px 2px 0 rgba(23, 24, 28, 0.8);

  transition: all 0.15s ease;
}

.support-link:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 3px 4px 0 rgba(23, 24, 28, 0.8);
}
