:root {

  --background: #17191a;
  --surface: #1f2122;
  --surface-light: #252829;

  --green: #14583a;
  --green-dark: #0d3928;
  --green-light: #196c47;

  --yellow: #f8c905;
  --yellow-hover: #ffd51b;

  --white: #ffffff;

  --text: #f4f4f4;
  --text-soft: #b7b9ba;
  --text-muted: #777a7b;

  --border: #383b3c;

  --font:
    "Roboto Condensed",
    Arial,
    sans-serif;

}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}


html,
body {
  margin: 0;
  min-height: 100%;
}


body {

  min-width: 320px;

  background:
    var(--background);

  color:
    var(--text);

  font-family:
    var(--font);

  -webkit-font-smoothing:
    antialiased;

}


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


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


/* =========================================================
   PAGE
========================================================= */

.age-page {

  position: relative;

  display: flex;

  min-height:
    100svh;

  align-items: center;
  justify-content: center;

  flex-direction: column;

  overflow: hidden;

  padding:
    36px 20px 24px;

  background:

    radial-gradient(
      circle at 50% 35%,
      rgba(20, 88, 58, .23),
      transparent 34rem
    ),

    linear-gradient(
      180deg,
      #1c1e1f 0%,
      #151718 100%
    );

}


/* =========================================================
   BACKGROUND DECORATION
========================================================= */

.background-glow {

  position: absolute;

  border-radius: 50%;

  pointer-events: none;

}


.glow-one {

  top: -270px;
  right: -230px;

  width: 620px;
  height: 620px;

  border:

    80px solid
    rgba(248, 201, 5, .018);

}


.glow-two {

  bottom: -330px;
  left: -260px;

  width: 680px;
  height: 680px;

  border:

    1px solid
    rgba(248, 201, 5, .07);

}


/* =========================================================
   CARD
========================================================= */

.age-card {

  position: relative;
  z-index: 2;

  width:
    min(100%, 490px);

  overflow: hidden;

  padding:
    40px 44px
    38px;

  border:

    1px solid
    rgba(248, 201, 5, .16);

  border-radius: 16px;

  background:

    linear-gradient(
      145deg,
      rgba(32, 34, 35, .98),
      rgba(24, 26, 27, .98)
    );

  box-shadow:

    0 30px 80px
    rgba(0, 0, 0, .42);

}


/* =========================================================
   BRAND
========================================================= */

.brand {

  position: relative;
  z-index: 3;

  display: flex;

  justify-content: center;

  margin-bottom: 34px;

}


.logo {

  width: auto;
  height: 53px;

}


/* =========================================================
   18+ ICON
========================================================= */

.age-icon {

  position: relative;
  z-index: 3;

  display: grid;

  width: 72px;
  height: 72px;

  margin:

    0 auto
    24px;

  place-items: center;

  border:

    2px solid
    var(--yellow);

  border-radius: 50%;

  background:

    rgba(248, 201, 5, .06);

  color:
    var(--yellow);

  box-shadow:

    0 0 0 8px
    rgba(248, 201, 5, .025);

  font-size: 1.45rem;
  font-weight: 800;

}


/* =========================================================
   CONTENT
========================================================= */

.age-content {

  position: relative;
  z-index: 3;

  text-align: center;

}


.eyebrow {

  display: inline-block;

  margin-bottom: 8px;

  color:
    var(--yellow);

  font-size: .72rem;
  font-weight: 800;

  letter-spacing: .08em;

  text-transform: uppercase;

}


h1 {

  margin:

    0 0
    16px;

  color:
    var(--white);

  font-size:

    clamp(
      2rem,
      6vw,
      2.75rem
    );

  font-weight: 800;

  line-height: 1;

  letter-spacing: -.035em;

}


.age-description {

  max-width: 350px;

  margin:

    0 auto
    27px;

  color:
    var(--text-soft);

  font-size: .98rem;

  line-height: 1.55;

}


.age-description strong {

  color:
    var(--white);

  font-weight: 700;

}


/* =========================================================
   CTA
========================================================= */

.continue-button {

  position: relative;

  display: flex;

  width: 100%;
  min-height: 56px;

  align-items: center;
  justify-content: center;

  gap: 10px;

  padding:
    12px 20px;

  border-radius: 10px;

  background:
    var(--yellow);

  color:
    #111;

  box-shadow:

    0 0 0 0
    rgba(248, 201, 5, .45);

  font-size: .98rem;
  font-weight: 800;

  letter-spacing: .015em;

  animation:
    confirmPulse
    1.8s
    ease-out
    infinite;

  transition:

    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;

}


@keyframes confirmPulse {

  0% {

    box-shadow:

      0 0 0 0
      rgba(248, 201, 5, .46),

      0 10px 25px
      rgba(248, 201, 5, .08);

  }


  55% {

    box-shadow:

      0 0 0 11px
      rgba(248, 201, 5, 0),

      0 14px 30px
      rgba(248, 201, 5, .14);

  }


  100% {

    box-shadow:

      0 0 0 15px
      rgba(248, 201, 5, 0),

      0 10px 25px
      rgba(248, 201, 5, .08);

  }

}


.continue-button:hover {

  animation-play-state:
    paused;

  transform:
    translateY(-2px)
    scale(1.01);

  background:
    var(--yellow-hover);

  box-shadow:

    0 15px 34px
    rgba(248, 201, 5, .20);

}


.continue-button:active {

  transform:
    translateY(0)
    scale(.985);

}


.continue-button span {

  font-size: 1.25rem;

  transition:
    transform 160ms ease;

}


.continue-button:hover span {

  transform:
    translateX(3px);

}


/* =========================================================
   RESPONSIBLE GAMING
========================================================= */

.responsible-message {

  margin:

    20px 0
    0;

  color:
    var(--text-muted);

  font-size: .7rem;

  line-height: 1.45;

}


/* =========================================================
   MASCOT
========================================================= */

.mascot {

  position: absolute;

  right: -91px;
  bottom: -104px;

  width: 220px;

  opacity: .11;

  transform:
    rotate(-5deg);

  pointer-events: none;

}


/* =========================================================
   FOOTER
========================================================= */

.footer {

  position: relative;
  z-index: 2;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  margin-top: 24px;

  color:
    #5f6263;

  font-size: .66rem;

}


.footer-dot {

  color:
    var(--yellow);

}


/* =========================================================
   LOAD ANIMATION
========================================================= */

.age-card {

  animation:

    cardEntrance
    650ms
    cubic-bezier(.22, 1, .36, 1)
    both;

}


@keyframes cardEntrance {

  from {

    opacity: 0;

    transform:
      translateY(18px)
      scale(.99);

  }

  to {

    opacity: 1;

    transform:
      translateY(0)
      scale(1);

  }

}


/*
 * Importante:
 *
 * age-card usa una animación de entrada
 * y continue-button usa su propia animación
 * de pulse. Son elementos distintos,
 * así que no interfieren entre sí.
 */


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

  .age-page {

    justify-content: center;

    padding:

      22px 15px
      max(
        20px,
        env(safe-area-inset-bottom)
      );

  }


  .age-card {

    padding:

      31px 23px
      29px;

    border-radius:
      14px;

  }


  .brand {

    margin-bottom:
      28px;

  }


  .logo {

    height:
      44px;

  }


  .age-icon {

    width:
      66px;

    height:
      66px;

    margin-bottom:
      22px;

    font-size:
      1.3rem;

  }


  .age-description {

    margin-bottom:
      24px;

    font-size:
      .92rem;

  }


  .continue-button {

    min-height:
      54px;

  }


  .mascot {

    right:
      -76px;

    bottom:
      -90px;

    width:
      190px;

  }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 370px) {

  .age-card {

    padding:

      27px 18px
      25px;

  }


  .logo {

    height:
      39px;

  }


  h1 {

    font-size:
      1.85rem;

  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .age-card,
  .continue-button {

    animation:
      none;

  }


  .continue-button,
  .continue-button span {

    transition:
      none;

  }

}