@import url("https://fonts.googleapis.com/css2?family=Anton&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

/* Theme 01 — tokens and rules specific to this design. Loaded after style.css (same cascade layers). */

/* BASE – element defaults and design tokens */
@layer base {
  :root {
    --primary: #ff5e00;
    --light-gray: #f2f2f2;
    --gray: #808080;
    --dark-gray: #333333;
    --dark: #111111;
    --font-display: "Anton", sans-serif;
    --font-body: "DM Sans", sans-serif;
  }

  body {
    background-color: var(--light);
    background-image: linear-gradient(to bottom, #ece9d7 0 100px, var(--light) 100px);
    background-repeat: no-repeat;
    width: 100%;
    overflow-x: hidden;
  }

  a {
    color: inherit;
  }

  h2 {
    font-weight: 500;
    text-transform: uppercase;
  }

  h3 {
    font-weight: 400;
  }

  article {
    h2,
    h3 {
      font-weight: 400;
    }
  }
}

/* LAYOUT – containers, page skeleton, grids, header/footer shells */
@layer layout {
  .page-content {
    padding-top: 85px;
    background-color: var(--light);
    background-image: linear-gradient(to bottom, #ece9d7 0%, rgba(236, 233, 215, 0) 100%);
    background-size: 100% 200px;
    background-position: center top;
    background-repeat: no-repeat;
    background-origin: padding-box;
  }

  .main-menu {
    display: block;
  }

  .top-bar {
    background: var(--dark);
    box-shadow:
      0 3px 8px -3px color-mix(in srgb, var(--dark) 10%, transparent),
      0 12px 24px -10px color-mix(in srgb, var(--dark) 15%, transparent);

    .lang {
      > a {
        color: var(--light);
      }

      .lang-select {
        border: 2px solid var(--light-gray);
        border-top-color: var(--white);
        border-radius: var(--border-radius-0);
        background-color: var(--white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      }
    }

    .hamburger {
      color: var(--light);
    }

    ul.menu {
      li.menu-item {
        > a {
          color: var(--light);
        }

        ul.dropdown {
          background: var(--dark);

          li a {
            color: var(--light);
          }
        }
      }
    }
  }

  @media (max-width: 767px) {
    .top-bar ul.menu li.menu-item > a {
      color: var(--white);
    }
  }

  @media (max-width: 767px) {
    .top-bar ul.menu li.menu-item ul.dropdown {
      background: transparent;
    }
  }

  footer {
    margin-top: 50px;

    .footer-wrap {
      .footer-links {
        color: var(--white);
      }
    }
  }
}

/* COMPONENTS – reusable UI pieces */
@layer components {
  .feature-icon {
    color: var(--light);
  }

  .btn {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    border: 1px solid var(--dark);
    border-radius: var(--border-radius-2);
    cursor: pointer;
  }

  .card {
    position: relative;
    min-width: 0;
    background-color: var(--white);
    background-clip: border-box;
    word-wrap: break-word;
  }

  .slider-controls {
    border: 1px solid var(--border);
  }

  .banner-exclusive {
    width: 100%;
    min-height: 390px;
    margin: 0 0 -50px;
    background: var(--primary);
    color: var(--white);

    .container {
      max-width: 1440px;
      padding-inline: 2rem;

      @media screen and (max-width: 767px) {
        padding-inline: 1rem;
      }
    }

    .d-flex {
      justify-content: center;
      min-height: 290px;
    }

    .subtitle {
      display: block;
      margin-bottom: 0.75rem;
      color: var(--dark);
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.12em;
      line-height: 1.2;
      text-transform: none;
    }

    h3 {
      font-size: clamp(4rem, 7vw, 7rem);
      line-height: 1.1;
      text-align: center;
      text-transform: none;

      @media screen and (max-width: 767px) {
        font-size: clamp(3.25rem, 15vw, 5rem);
      }

      span {
        display: block;
        color: var(--white);
      }
    }

    .banner-description {
      max-width: 620px;
      margin-top: 2rem;
      color: var(--white);
      font-size: var(--text-lg);
      line-height: 1.35;
      text-align: center;

      @media screen and (max-width: 767px) {
        font-size: var(--text-md);
      }
    }

    .banner-logos {
      display: none;
    }
  }

  :is(.close, .close-login) {
    &::before,
    &::after {
      background: var(--light);
    }
  }

  .login-popup {
    .btn {
      border-radius: var(--border-radius-1);
    }

    .btn-login {
      border-radius: var(--border-radius-1);
    }
  }

  .btn-login {
    border: 2px solid var(--light);
  }

  .btn-login {
    border-radius: 100%;
  }

  .contact-popup .btn-login {
    border-radius: var(--border-radius-2);
  }

  .color-btn {
    color: var(--white);
  }

  .color-btn {
    display: block;
  }

  .color-btn {
    border: 0;
  }
}

/* PAGES – page-specific blocks */
@layer pages {
  .hero {
    padding-block: 5rem 0;

    .hero-copy {
      flex: 1;

      @media screen and (max-width: 1199px) {
        max-width: 520px;
      }

      @media screen and (max-width: 767px) {
        align-items: center;
        width: 100%;
        text-align: center;
      }

      h1 {
        display: flex;
        flex-direction: column;
        font-size: clamp(4rem, 6vw, 7rem);
        font-weight: 600;
        letter-spacing: 0.01em;
        text-transform: uppercase;

        @media screen and (max-width: 767px) {
          font-size: clamp(3.5rem, 17vw, 6rem);
        }

        span:nth-child(2) {
          color: var(--primary);
        }
      }

      p {
        max-width: 580px;
        margin: 3.5rem 0 2.5rem;
        font-size: var(--text-xl);
        line-height: 1.3;

        @media screen and (max-width: 1199px) {
          margin-top: 3rem;
          font-size: var(--text-lg);
        }

        @media screen and (max-width: 767px) {
          margin-block: 2.5rem 2rem;
          font-size: var(--text-lg);
        }
      }

      .btn {
        min-width: auto;
        padding: 1.25rem 2rem;
        border: 0;
        border-radius: var(--border-radius-1);
        background: var(--dark);
        color: var(--primary);
        font-size: var(--text-sm);
        font-weight: 700;
        letter-spacing: 0.04em;
        line-height: 1;
        text-transform: uppercase;

        &:hover {
          background: var(--primary);
          color: var(--dark);
          transform: translateY(-3px);
        }
      }
    }

    .hero-image {
      flex: 1;
      min-width: 0;
      max-width: 670px;
      margin-left: auto;
      overflow: hidden;
      border-radius: var(--border-radius-4) var(--border-radius-4) 0 0;

      @media screen and (max-width: 1199px) {
        max-width: 560px;
      }

      @media screen and (max-width: 767px) {
        width: 100%;
        max-width: 100%;
        border-radius: var(--border-radius-2);
      }

      img {
        display: block;
        width: 100%;
        height: 650px;
        object-fit: cover;
        object-position: center;

        @media screen and (max-width: 1199px) {
          height: 560px;
        }

        @media screen and (max-width: 767px) {
          height: min(125vw, 560px);
        }
      }
    }
  }

  .discipline-section {
    width: 100%;
    padding-block: 3.5rem;
    background: var(--dark);

    .discipline-content {
      min-height: 320px;

      @media screen and (max-width: 1199px) {
        gap: 2rem;
      }

      @media screen and (max-width: 767px) {
        flex-direction: column;
        min-height: auto;
      }
    }

    .discipline-intro {
      flex: 0 0 390px;
      min-width: 0;

      @media screen and (max-width: 1199px) {
        flex-basis: 280px;
      }

      @media screen and (max-width: 767px) {
        flex-basis: auto;
        text-align: center;
      }

      .subtitle {
        display: block;
        margin-bottom: 0.35rem;
        color: var(--primary);
        font-size: var(--text-xs);
        font-weight: 700;
        letter-spacing: 0.12em;
        line-height: 1.2;
      }

      h2 {
        color: var(--white);
        font-size: clamp(2rem, 4.5vw, 3.75rem);
        font-weight: 400;
        line-height: 0.95;

        span {
          color: var(--primary);
        }
      }
    }

    .discipline-list {
      display: flex;
      flex: 1;
      flex-wrap: wrap;
      gap: var(--space-10);
      min-width: 0;

      @media screen and (max-width: 767px) {
        width: 100%;
      }
    }

    .discipline-card {
      flex: 0 0 calc((100% - 20px) / 3);
      min-height: 157px;
      padding: 1.25rem 1.25rem 1rem;
      border: 1px solid var(--gray);
      border-radius: var(--border-radius-2);
      color: var(--white);
      transition:
        background-color var(--ease-fast),
        border-color var(--ease-fast),
        transform var(--ease-fast);

      &:hover {
        border-color: var(--primary);
        background: var(--dark-gray);
        transform: translateY(-3px);
      }

      @media screen and (max-width: 1199px) {
        flex-basis: calc((100% - 10px) / 2);
      }

      @media screen and (max-width: 767px) {
        flex-basis: 100%;
        min-height: 145px;
      }

      .discipline-icon {
        display: block;
        min-height: 38px;
        font-size: var(--text-xl);
        line-height: 1;
      }

      h3 {
        color: var(--white);
        font-size: var(--text-xl);
        font-weight: 400;
        line-height: 1;
        text-transform: uppercase;
      }

      p {
        margin: 0.5rem 0 0;
        color: var(--gray);
        font-size: var(--text-xs);
        line-height: 1.2;
      }

      .discipline-line {
        display: block;
        width: 24px;
        height: 2px;
        margin-top: auto;
        background: var(--primary);
      }
    }
  }

  .stats-section {
    width: 100%;
    padding-block: 4rem;
    background: var(--primary);

    .container {
      @media screen and (max-width: 767px) {
        padding-inline: 1rem;
      }
    }

    .stats-content {
      display: flex;
      align-items: center;
      gap: 4rem;
      min-height: 620px;

      @media screen and (max-width: 1199px) {
        gap: 2.5rem;
      }

      @media screen and (max-width: 767px) {
        flex-direction: column;
        align-items: stretch;
        gap: 3rem;
        min-height: auto;
      }
    }

    .stats-information {
      flex: 0 1 calc(50% - 2rem);
      min-width: 0;
      max-width: none;

      @media screen and (max-width: 767px) {
        flex-basis: auto;
        width: 100%;
      }

      .subtitle {
        display: block;
        margin-bottom: 1.1rem;
        color: var(--white);
        font-size: var(--text-xs);
        font-weight: 700;
        letter-spacing: 0.12em;
        line-height: 1.2;
        text-transform: uppercase;
      }

      h2 {
        max-width: 420px;
        margin-bottom: 2.5rem;
        color: var(--white);
        font-size: clamp(3.75rem, 5vw, 5.75rem);
        font-weight: 400;
        line-height: 0.95;

        @media screen and (max-width: 767px) {
          margin-bottom: 2rem;
          font-size: clamp(3.25rem, 15vw, 5rem);
        }

        span {
          display: block;
          color: var(--white);
        }
      }
    }

    .stats-list {
      display: flex;
      flex-wrap: wrap;
      gap: 14px 12px;
      width: 100%;
      max-width: 650px;
    }

    .stats-card {
      flex: 0 0 calc((100% - 12px) / 2);
      min-width: 0;
      min-height: 124px;
      padding: 1rem 1.25rem;
      border-radius: var(--border-radius-1);
      background: color-mix(in srgb, var(--white) 10%, transparent);
      color: var(--white);

      @media screen and (max-width: 991px) {
        min-height: 110px;
        padding: 0.85rem 1rem;
      }

      @media screen and (max-width: 480px) {
        flex-basis: 100%;
      }

      .stats-icon {
        display: block;
        min-height: 24px;
        color: var(--white);
        font-size: var(--text-lg);
        line-height: 1;
      }

      strong {
        display: block;
        margin-top: 0.7rem;
        color: var(--white);
        font-family: var(--font-display);
        font-size: 2.25rem;
        font-weight: 400;
        line-height: 0.9;

        @media screen and (max-width: 991px) {
          font-size: var(--text-2xl);
        }
      }

      > span:last-child {
        display: block;
        margin-top: 0.35rem;
        color: var(--white);
        font-size: var(--text-xs);
        font-weight: 600;
        letter-spacing: 0.04em;
        line-height: 1.2;
        text-transform: uppercase;
      }
    }

    .stats-image {
      flex: 0 1 calc(50% - 2rem);
      min-width: 0;
      max-width: 670px;
      overflow: hidden;
      border-radius: var(--border-radius-3);

      @media screen and (max-width: 1199px) {
        max-width: 560px;
      }

      @media screen and (max-width: 767px) {
        flex-basis: auto;
        width: 100%;
        max-width: none;
        border-radius: var(--border-radius-2);
      }

      img {
        display: block;
        width: 100%;
        height: 620px;
        object-fit: cover;
        object-position: center;

        @media screen and (max-width: 1199px) {
          height: 540px;
        }

        @media screen and (max-width: 767px) {
          height: min(125vw, 520px);
        }
      }
    }
  }

  .features-section {
    margin-block: 6rem 2rem;

    .features-content {
      width: 100%;
    }

    .features-heading {
      max-width: 700px;
      margin-bottom: 3.25rem;

      .subtitle {
        display: block;
        margin-bottom: 0.5rem;
        color: var(--primary);
        font-size: var(--text-xs);
        font-weight: 700;
        letter-spacing: 0.12em;
        line-height: 1.2;
        text-transform: uppercase;
      }

      h2 {
        color: var(--dark);
        font-size: clamp(3rem, 5vw, 5rem);
        font-weight: 400;
        line-height: 0.95;
        text-transform: uppercase;

        @media screen and (max-width: 767px) {
          font-size: clamp(2.75rem, 13vw, 4rem);
        }

        span {
          display: block;
          color: var(--primary);
        }
      }
    }

    .features-list {
      width: 100%;

      @media screen and (max-width: 991px) {
        flex-wrap: wrap;
      }

      @media screen and (max-width: 767px) {
        flex-direction: column;
      }
    }

    .feature-card {
      flex: 1 1 0;
      min-width: 0;
      min-height: 290px;
      padding: 2rem;
      border: 1px solid var(--gray);
      border-radius: var(--border-radius-2);
      background: var(--white);
      transition:
        border-color var(--ease-fast),
        box-shadow var(--ease-fast),
        transform var(--ease-fast);

      &:hover {
        border-color: var(--primary);
        box-shadow: 0 12px 30px rgb(17 17 17 / 8%);
        transform: translateY(-3px);
      }

      @media screen and (max-width: 991px) {
        flex-basis: calc((100% - 20px) / 2);
      }

      @media screen and (max-width: 767px) {
        width: 100%;
        min-height: 260px;
        padding: 1.5rem;
      }

      .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1.75rem;
        border-radius: var(--border-radius-1);
        background: var(--primary);
        color: var(--white);
        font-size: var(--text-2xl);
      }

      h3 {
        margin: 0 0 0.85rem;
        text-transform: uppercase;
        color: var(--dark);
        font-size: var(--text-xl);
        font-weight: 400;
        line-height: 1;
      }

      p {
        max-width: 390px;
        color: var(--gray);
        font-size: var(--text-md);
        line-height: 1.5;
      }

      .feature-link {
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        width: fit-content;
        margin-top: auto;
        padding-top: 1.5rem;
        color: var(--primary);
        font-size: var(--text-xs);
        font-weight: 700;
        letter-spacing: 0.06em;
        line-height: 1;
        text-transform: uppercase;

        span {
          font-size: var(--text-xl);
          line-height: 0.7;
        }

        &:hover {
          color: var(--dark);
        }
      }
    }
  }

  .hero-subpage {
    .intro {
      h1 {
        font-weight: 400;
        text-transform: capitalize;
      }
    }
  }

  .sidebar-list-wrapper {
    .sidebar-list {
      .sidebar-item {
        a {
          padding-bottom: 20px;
        }
      }
    }
  }

  .contact-info {
    & .info-box {
      & .info-text {
        h3,
        p,
        a {
          color: var(--light);
          font-weight: 400;
        }
      }
    }
  }

  .text ul li,
  .text p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .app {
    .app-selection {
      border-radius: var(--border-radius-2);

      .app-img {
        border-radius: var(--border-radius-0);
      }
    }

    .app-description {
      .btn {
        color: var(--light);
      }
    }
  }

  .myGames {
    .swiper-slide {
      img.icon-app {
        border-radius: var(--border-radius-2) var(--border-radius-2) 0 0;
      }
    }

    .swiper-slide-content {
      border-radius: var(--border-radius-2);
      background: var(--dark);
    }

    .text {
      color: var(--white);

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

    p {
      height: 32px;
      margin: 10px 0;
      overflow: hidden;
      color: var(--gray);
      font-size: var(--text-xs);
      line-height: 16px;
      text-overflow: ellipsis;
      word-wrap: break-word;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
  }

  .title-section {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;

    a {
      @media (max-width: 480px) {
        display: flex;
        flex-direction: column;
        gap: 5px;
      }

      span {
        gap: 5px;
        color: var(--primary);

        img {
          width: 20px;
        }

        @media (max-width: 480px) {
          position: relative;
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: center;
          text-align: center;
        }
      }
    }

    h2 {
      color: var(--dark);
      text-transform: uppercase;

      span {
        color: var(--primary);
      }
    }

    h3 {
      margin-bottom: 20px;
      color: var(--gray);
      font-size: 1.2em;
      font-weight: 500;
      line-height: 1.5em;
      text-transform: uppercase;
    }

    i {
      margin-right: 10px;
    }
  }

  .custom-grid .custom-wrap {
    background: none;
    box-shadow: none;
  }

  .custom-wrap h3 {
    display: -webkit-box;
    margin: 10px 0;
    padding: 0;
    overflow: hidden;
    color: var(--dark);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.25rem;
    text-align: left;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .custom-grid .custom-wrap h3 {
    line-height: 1.1;
  }
}
