/* Reset and Base Styles */
@font-face {
  font-family: "Poppins-Regular";
  src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins-Regular;
}

html {
  font-size: 16px;
}

html,
body {
  height: 100%;
}

body {
  font-family: Poppins-Regular;
  line-height: 1.6;
  color: #333;
  background-color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Main Wrapper */
.main-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  background-color: #000;
  background-image: url("../assets/images/bg_mob.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Header */
.header {
  padding: 7vw 0 0;
  text-align: center;
  background-color: #000;
}

.header__logo {
  display: inline-block;
}

.header__logo img {
  height: auto;
  width: 120px;
}

.header__text {
  font-weight: 500;
  font-size: 4vw;
  text-align: center;
  text-transform: capitalize;
  color: #fff;
}

.header__text span {
  font-weight: 700;
  color: #ffd700;
}

/* Main Section */
.main-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25.251vw 4vw 0vw;
}

.main-section__content {
  width: 100%;
  max-width: 480px;

  text-align: center;
}

.main-section__title {
  font-weight: 700;
  font-size: 6.4vw;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.2;
}

.main-section__title span {
  color: #ffd700;
}

/* Action Section */
.main-section__action {
  margin-bottom: 32px;
}

.button {
  display: inline-block;
  margin-bottom: 12px;
}

.button__link {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  font-weight: 700;
  font-size: 18px;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.button__link:active {
  transform: scale(0.98);
}

.main-section__terms {
  display: block;
  font-size: 12px;
  color: #999;
  text-decoration: underline;
  cursor: pointer;
}

/* Cards Container */
.main-section__wrap {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  padding: 32.533vw 0 0;
  flex-wrap: wrap;
}

/* Card Styles */
.main-section__card {
  width: 32.267vw;
  height: 49.6vw;
  perspective: 100vw;
  position: relative;
  cursor: pointer;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.55));
  border-radius: 20px;
}

/* Pulse animation for card glow */
@keyframes cardPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 12px 12px rgba(0, 0, 0, 0.55);
    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.55));
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 16px 16px rgba(0, 0, 0, 0.65);
    filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.65));
  }
}

/* Pulse animation for unlucky card glow (red) */
@keyframes cardPulseUnlucky {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.4), 0 12px 12px rgba(0, 0, 0, 0.55);
    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.55));
  }
  50% {
    box-shadow: 0 0 30px rgba(211, 47, 47, 0.6), 0 16px 16px rgba(0, 0, 0, 0.65);
    filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.65));
  }
}

/* Pulse animation for victory card glow (green) */
@keyframes cardPulseVictory {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4), 0 12px 12px rgba(0, 0, 0, 0.55);
    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.55));
  }
  50% {
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.6), 0 16px 16px rgba(0, 0, 0, 0.65);
    filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.65));
  }
}

/* Scale pulse animation for card overlay */
@keyframes cardScalePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* Pulse overlay that appears before card is flipped - fully replicates the card */
.main-section__card:not(.flipped)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  background-image: url("../assets/images/card_front.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 5;
  animation: cardScalePulse 2s ease-in-out infinite;
  pointer-events: none;
}

/* Different pulse timing for different cards - card 1 starts immediately */
#card-1:not(.flipped)::before {
  animation-delay: 0s;
}

/* Card 2 starts with delay - creating alternating pulse effect */
#card-2:not(.flipped)::before {
  animation-delay: 1s;
}

/* Fallback pattern for overlay if image is missing */
.main-section__card:not(.flipped)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 10px,
    transparent 10px,
    transparent 20px
  );
  border-radius: 12px;
  pointer-events: none;
}

.main-section__card.flipped::after {
  display: none;
}

/* Pulse glow effect that appears before card is flipped */
.main-section__card:not(.flipped) {
  animation: cardPulse 2s ease-in-out infinite;
}

/* Hide overlay when card is flipped */
.main-section__card.flipped::before {
  display: none;
}

.main-section__card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
  z-index: 2;
}

/* Stop pulse animation and disable cursor when card is flipped */
.main-section__card.flipped {
  cursor: default;
}

/* Glow effect for flipped unlucky card (red) */
.main-section__card.flipped[data-unlucky="true"] {
  animation: cardPulseUnlucky 2s ease-in-out infinite;
  animation-delay: 0.8s;
}

/* Glow effect for flipped victory card (green) */
.main-section__card.flipped[data-victory="true"] {
  animation: cardPulseVictory 2s ease-in-out infinite;
  animation-delay: 0.8s;
}

/* Flip animation when card is flipped */
.main-section__card.flipped .main-section__card-inner {
  transform: rotateY(180deg);
}

.main-section__card-front,
.main-section__card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.main-section__card-front {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  background-image: url("../assets/images/card_front.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fallback pattern if image is missing */
.main-section__card-front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 10px,
    transparent 10px,
    transparent 20px
  );
  border-radius: 12px;
  pointer-events: none;
}

.main-section__card-front--first {
  background-image: url("../assets/images/card_front.webp");
}

.main-section__card-back {
  background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
  background-image: url("../assets/images/card_back.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Different backgrounds for different card states */
.main-section__card.flipped[data-card="1"] .main-section__card-back,
.main-section__card.flipped[data-card="2"] .main-section__card-back {
  background-image: url("../assets/images/card_back.webp");
}

/* Specific background for unlucky card (first flipped) */
.main-section__card.flipped[data-unlucky="true"] .main-section__card-back {
  background-image: url("../assets/images/card_back.webp");
}

.main-section__card.flipped[data-unlucky="true"] .main-section__card-back::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #d32f2f;
  opacity: 0.6;
  z-index: 1;
  border-radius: 12px;
}

/* Specific background for victory card (second flipped) */
.main-section__card.flipped[data-victory="true"] .main-section__card-back {
  background-image: url("../assets/images/card_back.webp");
}

.main-section__card.flipped[data-victory="true"] .main-section__card-back::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #4caf50;
  opacity: 0.6;
  z-index: 1;
  border-radius: 12px;
}

.card-content {
  text-align: center;
  color: #000;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  font-size: 3.2vw;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  width: 26.933vw;
}

.card-title {
  font-weight: 700;
  margin-bottom: 5px;
  color: rgb(0 0 0);
  line-height: 1.2;
}

/* Card title colors are set dynamically via JavaScript */

.card-text {
  font-size: 14px;
  line-height: 1.2;
  color: #333;
}

/* Bonus Button Wrapper */
.main-section__bonus-button-wrapper {
  margin-top: 24px;
  margin-bottom: 24px;
  animation: fadeInUp 0.5s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button--bonus {
  position: relative;
  height: 14.4vw;
  width: 56.267vw;
  z-index: 1;
  transition: 0.3s ease;
  border-radius: 1.067vw;
  background: #f8ff13;
  border: 2px solid #f8ff13;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
}

.button--bonus span {
  text-transform: uppercase;
  font-family: Poppins-Regular;
  font-size: 5.227vw;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

/* USP Section */
.main-section__usp {
  margin-top: 18px;
}

.main-section__usp img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* Payments Section */
.main-section__payments {
  width: 100%;
  padding: 10px 4vw;
  background: #000;
}

.main-section__payments img {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer */
.footer {
  padding: 32px 16px 24px;
  background-color: #1a1a1a;
  text-align: center;
}

.footer__sponsors {
  margin-bottom: 24px;
}

.footer__sponsors img {
  max-width: 200px;
  margin: 0 auto;
  opacity: 0.8;
}

.footer__privacy-policy {
  margin-bottom: 20px;
}

.footer__privacy-policy span {
  font-size: 12px;
  color: #999;
  cursor: pointer;
  text-decoration: underline;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.footer__social-icon svg {
  width: 100%;
  height: 100%;
}

.footer__responsible-gambling {
  margin-bottom: 20px;
}

.footer__responsible-gambling span {
  font-size: 12px;
  color: #999;
  cursor: pointer;
  text-decoration: underline;
}

.footer__licenses {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer__license {
  display: inline-block;
}

.footer__license img {
  height: 32px;
  width: auto;
  opacity: 0.8;
}

.footer__description {
  margin-bottom: 16px;
  padding: 0 8px;
}

.footer__description p {
  font-size: 10px;
  color: #666;
  line-height: 1.4;
}

.footer__mail {
  margin-bottom: 16px;
  font-size: 12px;
  color: #999;
}

.footer__mail a {
  color: #ffd700;
  text-decoration: underline;
}

.footer__copyright {
  font-size: 12px;
  color: #666;
}

.footer__copyright span {
  color: #999;
}

.footer__copyright strong {
  color: #fff;
  font-weight: 700;
}
