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

  /* https://kilianvalkhof.com/2022/css-html/your-css-reset-needs-text-size-adjust-probably/ */
  html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: none;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  p,
  figure,
  blockquote,
  dl,
  dd {
    margin: 0;
  }

  /* https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html */
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  body {
    min-block-size: 100vh;
    line-height: 1.4;
  }

  h1,
  h2,
  h3,
  button,
  input,
  label {
    line-height: 1.1;
  }

  p:empty {
    display: none;
  }

  img,
  picture {
    max-inline-size: 100%;
    display: block;
  }

  input,
  button,
  textarea,
  select {
    font: inherit;
  }
}

@layer base {
  :root {
    --bg: #0f172a;
    --white: #f4f1e8;
    --black: #1a1d29;
    --primary: #2cbbbf;
    --secondary: #ff00ff;
    --light-primary: oklch(from var(--primary) clamp(0, l + 0.22, 1) calc(c * 0.9) h);
    --dark-primary: oklch(from var(--primary) clamp(0, l - 0.22, 1) calc(c * 0.92) h);
    --light-gray: #e2e8f0;
    --gray: #64748b;
    --radius: 16px;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.9), 0 2px 4px -1px rgba(0, 0, 0, 0.8);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border: 1px solid #e2e8f0;
    --box-shadow: rgba(0, 121, 80, 0.39);
  }

  .language,
  a {
    text-decoration: none;
  }

  .black_box,
  .circle,
  .content,
  .input-group {
    position: relative;
  }

  .header_right,
  header {
    display: flex;
    align-items: center;
  }

  .info p,
  h3,
  p {
    margin: 0;
    line-height: 20px;
  }

  a,
  body,
  h2,
  html,
  p {
    color: var(--white);
  }

  .btn,
  .icons,
  .language,
  header p {
    color: var(--white);
  }

  .wrap,
  body,
  footer,
  h2,
  html,
  p {
    text-align: center;
  }

  html {
    scroll-padding: 2rem;
    overflow-x: hidden;
  }
  body,
  html {
    margin: 0;
    padding: 0;
    border: 0;
    height: 100vh;
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--black);
    font-size: 1rem;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }
  .mt-1 {
    margin-top: 1rem !important;
  }
  .mt-2 {
    margin-top: 2rem !important;
  }
  .mt-3 {
    margin-top: 3rem !important;
  }
  .m-auto {
    margin-inline: auto !important;
  }
  .no-border {
    border: none !important;
  }

  .wrap {
    display: block;
    max-width: 450px;
    margin: 0 auto;
    overflow: auto;
    padding: 0 20px 0;
  }
}

.logo img {
  display: block;
  width: 120px;
  opacity: 0.8;
}

/* Hamburger icon */
.hamburger {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--white);
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block;
  width: 26px;
  height: 3px;
  background: currentColor;
  border-radius: 999px;
  position: relative;
  transition: 0.3s ease;
}

.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger span::before {
  top: -8px;
}

.hamburger span::after {
  top: 8px;
}

.hamburger[aria-expanded="true"] span {
  background: transparent;
}

.hamburger[aria-expanded="true"] span::before {
  transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span::after {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  z-index: 900;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.header-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 320px);
  height: 100dvh;
  padding: 90px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  box-shadow: -10px 0 24px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 901;
}

.header-nav.is-open {
  transform: translateX(0);
}

.header-nav .nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.header-nav .nav-close:hover,
.header-nav .nav-close:focus-visible {
  background: rgba(44, 187, 191, 0.24);
  border-color: rgba(44, 187, 191, 0.9);
}

.header-nav .nav-link {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 14px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.header-nav .nav-link:hover,
.header-nav .nav-link:focus-visible {
  background: rgba(44, 187, 191, 0.2);
  border-color: rgba(44, 187, 191, 0.8);
}

.language {
  position: relative;
  display: flex;
}

.language img {
  width: 30px;
}
main {
  margin-bottom: 20px;
}
.content {
  /*   width: 80%; */
  height: auto;
  /*   max-width: 340px;
  margin: 0 auto 20px;
  padding: 30px 15px 30px; */
  display: flex;
  flex-direction: column;
}

header {
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  margin: 0 auto 10px;
}

header a {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

header .logo h3 {
  font-weight: bolder;
  color: #83bb00;
  font-size: 16px;
  margin: 5px auto;
}

.wrap {
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .black_box img {
    object-fit: cover;
  }
}

.content {
  margin: 0 auto;
  max-width: 600px;
}

p {
  font-size: 14px;
}

p span {
  color: #e60012;
}

.info p,
h3 {
  font-size: 1rem;
  font-weight: 700;
  padding: 5px;
}

.btn,
h2 {
  font-weight: 400;
}

footer,
footer a,
footer p {
  font-family: Arial, sans-serif;
}

.wc-title {
  position: relative;
  margin: 0 auto 10px;
  text-align: center;
  font-family: "Jersey 10", sans-serif;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-wrap: balance;
  font-size: clamp(26px, 4.5vw, 36px);

  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.95),
    0 0 10px rgba(255, 0, 255, 0.95),
    0 0 18px rgba(255, 0, 255, 0.85),
    0 0 30px rgba(255, 0, 255, 0.65),
    0 0 42px rgba(0, 253, 253, 0.85),
    0 0 72px rgba(0, 253, 253, 0.55),
    0 0 110px rgba(0, 253, 253, 0.35);

  animation: neonPulse 2.2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
  from {
    text-shadow:
      0 0 3px rgba(255, 255, 255, 0.92),
      0 0 8px rgba(255, 0, 255, 0.88),
      0 0 16px rgba(255, 0, 255, 0.78),
      0 0 26px rgba(255, 0, 255, 0.58),
      0 0 36px rgba(0, 253, 253, 0.72),
      0 0 60px rgba(0, 253, 253, 0.44),
      0 0 92px rgba(0, 253, 253, 0.26);
  }
  to {
    text-shadow:
      0 0 5px rgba(255, 255, 255, 1),
      0 0 12px rgba(255, 0, 255, 1),
      0 0 22px rgba(255, 0, 255, 0.92),
      0 0 36px rgba(255, 0, 255, 0.72),
      0 0 52px rgba(0, 253, 253, 0.92),
      0 0 82px rgba(0, 253, 253, 0.62),
      0 0 130px rgba(0, 253, 253, 0.42);
  }
}

.wc-title span {
  display: block;
  font-size: clamp(46px, 6vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h4 {
  color: var(--secondary);
  margin: 1rem 0 0;
}

.grid {
  display: grid;
  gap: 15px;
  width: 100%;

  @media (min-width: 1024px) and (max-width: 1179px) {
    gap: 60px 15px;
  }

  @media (max-width: 1023px) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  @media (max-width: 539px) {
    grid-template-columns: minmax(2, 1fr) !important;
  }

  &.column2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  &.column3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  &.column4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  & > * {
    min-width: 0;
  }
}

.single-game {
  text-align: center;
  position: relative;
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--primary);

  &:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
  }

  &:hover .game-image img {
    transform: scale(1.08);
  }

  &:hover .icon {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.4);
  }

  &.locked-game:hover .icon {
    box-shadow: 0 12px 24px rgba(220, 53, 69, 0.4);
  }

  .game-image {
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    background: var(--light-gray);
    border-radius: var(--radius);

    &::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    img {
      height: 190px;
      object-fit: cover;
      width: 100%;
      transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      display: block;
    }
  }

  &:hover .game-image::after {
    opacity: 1;
  }

  &.locked-game .game-info {
    background: var(--primary);
    box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.5);

    .full-name {
      color: var(--white);
    }

    p {
      color: var(--white);
    }
  }

  &.locked-game .game-info .icon {
    background: var(--primary);
    box-shadow:
      0 0 6px var(--primary),
      0 0 16px var(--primary),
      0 0 32px var(--primary);

    img {
      filter: drop-shadow(0 2px 4px rgba(220, 53, 69, 0.3));
    }
  }
}

@media (max-width: 767px) {
  .single-game {
    .game-image img {
      height: 160px;
    }

    .game-info {
      padding: 1rem 1.25rem 1.25rem;

      .full-name {
        font-size: 1.2rem;
      }

      p {
        font-size: 0.9rem;
      }

      .icon {
        width: 45px;
        height: 45px;

        img {
          width: 25px;
          height: 25px;
        }
      }
    }
  }
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 70px;
  max-width: 280px;
  background-color: var(--primary);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px;
  margin: 10px auto;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 var(--box-shadow);
  letter-spacing: 0.3px;

  @media (max-width: 767px) {
    min-width: auto;
  }

  &:hover,
  &:focus,
  &:focus-visible {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.5);
  }
}

footer {
  padding-bottom: 10px;
  margin-top: 50px;
  text-align: justify;
  text-align-last: center;
}

footer a,
footer p {
  font-size: 10px;
  line-height: 11px;
  max-width: 450px;
  width: 90%;
  color: #bdbdbd;
  margin: 0 auto 10px;
  text-align: justify;
  text-align-last: center;
}

footer #terms {
  padding-right: 10px;
  margin-right: 10px;
  border-right: 1px solid #bdbdbd;
}

.hidden {
  display: none;
}

.error,
.error.black,
.error.white,
.error.yellow {
  margin: 0 auto 15px;
  max-width: 280px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 20px;
  color: #d11212;
  border: 2px solid #d11212;
  border-radius: 5px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.712);
  z-index: 999;
  position: relative;
}

p a {
  color: #bdbdbd;
  text-decoration: underline;
}

.add-text {
  padding: 10px 0;
  display: block;
}
.link,
.add-text a {
  color: var(--white);
}

/* PopUp */

/* Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;

  /* Nested CSS for elements inside the popup */
  .popup-box {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-hover);
    animation: pop 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);

    img {
      width: 100%;
      border-radius: 12px;
    }

    h3 {
      margin-top: 15px;
      color: var(--black);
    }

    p {
      color: var(--black);
    }

    .close-btn {
      position: absolute;
      top: 16px;
      right: 16px;
      font-size: 20px;
      color: var(--gray);
      width: 40px;
      height: 40px;
      text-align: center;
      vertical-align: middle;
      background: var(--light-gray);
      border: none;
      cursor: pointer;
      border-radius: 50%;
      transition: all 0.2s ease;

      &:hover {
        background: var(--secondary);
        color: var(--white);
        transform: rotate(90deg);
      }
    }
  }
}

/*TERMS MODAL*/

/* Fullscreen modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  padding: 16px;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
}

.modal-content.terms {
  background-color: var(--white);
  color: var(--black);
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  margin: auto;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.modal-content.terms h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  text-align: left;
  color: var(--black);
}

.modal-content.terms p {
  color: var(--gray);
  text-align: justify;
}

.modal-content.terms a {
  color: var(--primary);
  text-decoration: none;
}

.modal-content.terms a:hover {
  text-decoration: underline;
}

.close {
  color: var(--black);
  float: right;
  font-size: 28px;
  cursor: pointer;
  margin-top: -10px;
}

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

.loader {
  border: 12px solid #2b3650;
  border-radius: 50%;
  border-top: 12px solid #2cbbbf;
  width: 80px;
  height: 80px;
  margin: 20px auto 0;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .single-game {
    .game-image img {
      height: 18vh;
    }

    .game-info {
      /* padding: 0.2rem .5rem .5rem; */
      padding: 0.35rem;

      .speciality {
        font-size: 0.75rem;
      }

      .full-name {
        font-size: 0.9rem;
      }

      p {
        font-size: 0.85rem;
      }

      .icon {
        width: 48px;
        height: 48px;

        img {
          width: 24px;
          height: 24px;
        }
      }
    }
  }

  .modal {
    /* align-items: flex-start; */
    padding: 12px;
  }

  .modal-content.terms {
    margin: 0 auto;
    max-height: calc(100dvh - 24px);
    padding: 16px;
    border-radius: 8px;
  }
}

@media (max-width: 374px) {
  .single-game .game-image img {
    height: 90px;
  }
}
.success-checkmark {
  width: 80px;
  height: 115px;
  margin: 0 auto 10px;
}

.success-checkmark .check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid var(--primary);
  transform: scale(1.4);
  margin: 30px auto;
}

.icon-circle,
.icon-fix,
.icon-line {
  position: absolute;
}

.check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  -webkit-animation: 4.25s ease-in rotate-circle;
  animation: 4.25s ease-in rotate-circle;
}

.check-icon::after,
.check-icon::before {
  content: "";
  height: 100px;
  position: absolute;
  /* background: #fff; */
  transform: rotate(-45deg);
}

.icon-line {
  height: 6px;
  background-color: var(--primary);
  border-radius: 2px;
  z-index: 10;
}

.icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  -webkit-animation: 0.75s icon-line-tip;
  animation: 0.75s icon-line-tip;
}

.icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  -webkit-animation: 0.75s icon-line-long;
  animation: 0.75s icon-line-long;
}

.icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid var(--primary);
  animation: loadingBorder 1s linear;
}

@keyframes loadingBorder {
  0% {
    transform: rotate(0deg);
    border-color: var(--primary) transparent transparent transparent;
  }

  25% {
    border-color: var(--primary) #2cbbbf transparent transparent;
  }

  50% {
    border-color: var(--primary) #2cbbbf #41cf65 transparent;
  }

  75% {
    border-color: var(--primary) #2cbbbf #41cf65 #49e770;
  }

  100% {
    transform: rotate(360deg);
    border-color: #2cbbbf transparent transparent transparent;
  }
}

@keyframes rotate-circle {
  0%,
  5% {
    transform: rotate(-45deg);
  }

  100%,
  12% {
    transform: rotate(-405deg);
  }
}

@-webkit-keyframes icon-line-tip {
  0%,
  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }

  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }

  100% {
    width: 25px;
    left: 14px;
    top: 45px;
  }
}

@keyframes icon-line-tip {
  0%,
  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }

  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }

  100% {
    width: 25px;
    left: 14px;
    top: 45px;
  }
}

@-webkit-keyframes icon-line-long {
  0%,
  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  84% {
    width: 55px;
    right: 0;
    top: 35px;
  }

  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}

@keyframes icon-line-long {
  0%,
  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  84% {
    width: 55px;
    right: 0;
    top: 35px;
  }

  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}
