@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');


:root {
  --white: rgba(255, 255, 255, 1);
  --orange-gradient: linear-gradient(274.33deg, #FE8C45 2.74%, #CA2826 103%);
  --yellow-gradient: linear-gradient(180deg, #FFCB52 0%, #FF7B02 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.75) 13.41%, rgba(255, 255, 255, 0) 100%);
  --green: rgba(0, 182, 122, 1);
  --pink: rgba(255, 3, 94, 1);
  --violet:  rgba(119, 145, 186, 1);
  --dark-blue: rgba(1, 1, 30, 1);
  --dark-violet: rgba(19, 16, 55, 1);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Red Hat Display', sans-serif;
  background-color: var(--dark-blue);
  color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 45px;
}

a {
  transition: .3s;
  text-decoration: none;
  color: inherit;

  &:hover {
    color: var(--pink);
  }
}

ul {
  list-style-type: none;
}

.gold {
  background: linear-gradient(180deg, #FFCB52 0%, #FF7B02 100%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.75) 13.41%, rgba(255, 255, 255, 0) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}


/* Header */
.header {
  padding: 40px 0;
  text-align: center;
  background: url('../images/header-background.png') no-repeat bottom center;

  .header__title {
    font-weight: 900;
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 100%;
  }

  .header__subtitle {
    font-weight: 700;
    font-size: 1.5rem;
  }

}

/* Main */
.main {
  /* position: relative; */
  min-height: 70vh;
}

.offers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.offer {
  z-index: 9999999999;
  max-width: 560px;
  width: 100%;
  margin: 100px 0;
  background-color: var(--dark-violet);
  border-radius: 16px;

  .offer__img {
    background: var(--orange-gradient);
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    margin-bottom: 16px;

    img {
      width: 100%;
      max-width: 200px;
      height: 100%;
      object-fit: contain;
    }
  }

  .offer__container {
    padding: 0 20px 20px 20px;
  }

  .offer__data,
  .offer__reviews,
  .offer__bonus {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .offer__data {
    span {
      display: block;
      text-align: center;
      font-weight: 900;
      font-size: 0.9rem;
      margin-bottom: 4px;
      color: var(--white);
    }

    p {
      text-align: center;
      .gold {
        font-size: 2rem;
        font-weight: 900;
      }
    }
  }

  .offer__reviews {
    img {
      max-width: 115px;
      width: 100%;
    }

    p {
      display: flex;
      align-items: center;
      gap: 7px;
      color: var(--violet);
      font-weight: 500;
      font-size: .9rem;

      img {
        max-width: 18px;
      }
    }
  }

  .offer__bonus {
    p {
      font-weight: 900;
      font-size: 1.5rem;
    }
  }

  .offer__btn {
    width: 100%;
    border: none;
    outline: none;
    background: var(--orange-gradient);
    padding: 15px 0;
    text-align: center;
    cursor: pointer;
    border-radius: 999px;

    a {
      display: flex;
      width: 100%;
      justify-content: center;
      align-items: center;
      gap: 10px;
      color: var(--white);
      font-weight: 800;
      font-size: 1rem;
      transition: .3s;
      font-family: "Red Hat Display", sans-serif;

      img {
        transition: .3s;
      }

      &:hover {
        img {
          transform: translateX(30px);
        }
      }
    }
  }
}

/* Technical pages (privacy, terms, etc.) */
.policy-page {
  padding: 60px 0 100px 0;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  background-color: var(--dark-violet);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.policy-header {
  padding: 28px 24px 0 24px;
  text-align: center;
}

.policy-title {
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 8px;
}

.policy-subtitle {
  color: var(--violet);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 12px;
}

.policy-content {
  padding: 8px 24px 28px 24px;
}

.policy-content h2 {
  font-size: 1.4rem;
  margin: 24px 0 12px 0;
  font-weight: 800;
}

.policy-content p,
.policy-content li {
  color: var(--white);
  font-weight: 500;
  line-height: 1.6;
  font-size: .95rem;
}

.policy-content ul,
.policy-content ol {
  margin: 12px 0 12px 20px;
  display: grid;
  gap: 6px;
}

.policy-content .highlight {
  margin-top: 24px;
  color: var(--green);
  font-weight: 700;
}

.policy-content a {
  color: var(--pink);
}

/* Back to home button */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--orange-gradient);
  color: var(--white);
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  transition: .3s;
  margin-bottom: 16px;
}

.back-home:hover {
  transform: translateY(-2px);
}


.coin-layer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1000;
}

.coin-wrap {
  position: absolute;
  will-change: transform, opacity;
  animation: coin-fall var(--fall-duration, 3.2s) linear var(--delay, 0s) forwards;
}

.coin-spin {
  width: 80px;
  height: 80px;
  display: block;
  animation: coin-spin var(--spin-duration, 6s) linear infinite;
}

@keyframes coin-fall {
  0%   { transform: translateY(calc(-1 * var(--start-offset, 40px))) scale(0.9); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translateY(var(--fall-distance, 100%)) scale(1); opacity: 0; }
}

@keyframes coin-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

html, body { overflow-x: hidden; }



/* Age Verification Modal */
.agegate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999999999999; /* above coins */
  padding: 24px;
}

.agegate-backdrop.is-visible {
  display: flex;
}

.agegate-modal {
  width: 100%;
  max-width: 560px;
  background-color: var(--dark-violet);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  padding: 28px 24px;
  text-align: center;
}

.agegate-title {
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.agegate-text {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
}

.agegate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.agegate-btn {
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  transition: .3s;
  color: var(--white);
}

.agegate-btn--yes {
  background: var(--orange-gradient);
}

.agegate-btn--no {
  background: var(--pink);
}

.agegate-btn:hover {
  transform: translateY(-1px);
}

.agegate-error {
  margin-top: 14px;
  color: var(--pink);
  font-weight: 800;
  display: none;
}

.agegate-error.is-visible {
  display: block;
}

/* footer */
.footer {
  background: url('../images/footer-background.png') no-repeat top center;

  .footer__wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    padding: 56px 0 24px 0;
    gap: 24px;
  }

  .footer__disclaimer {
    grid-area: 1 / 1 / 2 / 2;

    h3 {
      font-weight: 500;
      font-size: 1rem;
      text-align: center;
      margin-bottom: 16px;
    }

    p {
      font-weight: 500;
      font-size: .8rem;
      line-height: 18px;
    }
  }

  .footer__gambling {
    grid-area: 1 / 2 / 2 / 3;

    h4 {
      font-weight: 500;
      font-size: 1rem;
      margin-bottom: 12px;
    }

    .footer__gambling-resources {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;

      a {
        max-width: 120px;
        padding: 10px;
        background-color: var(--pink);
        border-radius: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;

        &:hover {
          background-color: var(--green);
        }

        img {
          width: 100%;
          max-height: 30px;
          height: auto;
          object-fit: contain;
        }
      }
    }
  }

  .footer__copyright {
    grid-area: 2 / 1 / 3 / 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--white);
    padding-top: 24px;

    ul {
      display: flex;
      align-items: center;
      gap: 40px;
      flex-wrap: wrap;

      a {
        font-size: 1rem;
      }
    }
  }
}




/* Media queries */
@media (max-width: 768px) {
  /* Header */
  .header {
    .header__title {
      font-size: 2rem;
    }

    .header__subtitle {
      font-size: 1rem;
    }
  }

  /* Offer */
  .offer {
    margin: 50px 0;
  }

  /* Policy */
  .policy-page {
    padding: 30px 0 60px 0;
  }

  .policy-container {
    padding: 0 16px;
    border-radius: 12px;
  }

  .policy-title {
    font-size: 1.5rem;
  }

  .policy-content h2 {
    font-size: 1.1rem;
  }

  .policy-content p,
  .policy-content li {
    font-size: .9rem;
  }

  /* Footer */
  .footer {
    background-size: cover;

    .footer__wrapper {
      grid-template-columns: 1fr;
    }    

    .footer__disclaimer,
    .footer__gambling,
    .footer__copyright {
      grid-area: auto;
    }

    .footer__gambling-resources {
      justify-content: center;
    }

    .footer__copyright {
      flex-direction: column-reverse;
      gap: 30px;

      ul {
        gap: 10px;
      }
    }
  }
}