:root {
  --bg: #121e37;
  --bg1: #010F18;
  --accent: #22ff00;
  --banner: #ffe14d;
  --btn: #ffa200;
  --highlight: #ff2b2b;
  --gradient-start: rgba(1,15,24,0.8);
  --gradient-end: rgba(1,15,24,0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-optical-sizing: auto;
  background: var(--bg);
  color: #e5e5e5;
  line-height: 1.6;
}

.header {
  position: relative;
  background: var(--bg1);
  max-width: 1300px;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  overflow: visible;
}

.header__inner {
  display: grid;
  grid-template-areas: "logo nav buttons";
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 10px 20px;
  column-gap: 20px;
}

.logo {
  grid-area: logo;
  padding: 0;
  margin-bottom: 10px;
}

.logo img {
  height: 85px;
}

.desktop-nav .nav__list {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  text-wrap: nowrap;
}

.nav__list a {
  padding: 6px 10px;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: background-color .3s, color .3s;
}

.nav__list a:hover {
  background-color: rgba(34, 255, 0, 0.15);
  color: var(--accent);
}

.header__buttons {
  grid-area: buttons;
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn--login {
  background: var(--btn);
  color: var(--bg1);
}

.btn--register {
  background: var(--accent);
  color: var(--bg1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  background: var(--highlight);
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.burger-menu span {
  display: block;
  height: 2.5px;
  background: var(--highlight);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.mobile-menu {
  position: absolute;
  top: 110px;
  left: 0;
  width: 100%;
  background: var(--bg1);
  border-top: 4px solid var(--accent);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.header.active .mobile-menu {
  max-height: 400px;
}

.mobile-menu .nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu .nav__list li + li {
  border-top: 1px solid rgba(34, 255, 0, 0.3);
}

.mobile-menu .nav__list li a {
  display: block;
  padding: 18px 20px;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: background .2s;
  border-radius: 4px;
  margin: 4px 20px;
}

.mobile-menu .nav__list li a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.header.active .burger-menu span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.header.active .burger-menu span:nth-child(2) {
  opacity: 0;
}

.header.active .burger-menu span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .header__inner {
    grid-template-areas:
      "burger logo"
      "buttons buttons";
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 10px;
    padding: 10px 20px;
  }

  .burger-menu {
    display: flex;
    grid-area: burger;
  }

  .desktop-nav,
  .header__buttons {
    display: none;
  }

  .logo {
    grid-area: logo;
    justify-self: center;
    margin-right: 45px ;
  }

  .header__buttons {
    grid-area: buttons;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .header__buttons a {
    flex: 1;
  }

  .mobile-menu {
    top: 180px;
  }
}

.banner {
  max-width: 1300px;
  width: 100%;
  margin: 0px auto;
  overflow: hidden;
  position: relative;
}
.banner__track {
  display: flex;
  transition: transform 0.5s ease;
}
.banner__slide {
  position: relative;
  min-width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
}
.slide-1 {
  background-image: url('/assets/img/slide1.png');
}
.slide-2 {
  background-image: url('/assets/img/slide2.png');
}
.slide-3 {
  background-image: url('/assets/img/slide3.png');
}
.slide-1,
.slide-2,
.slide-3 {
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: darken;
}
.banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.banner__content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 5vw, 60px);
  max-width: clamp(300px, 40%, 600px);
  width: 100%;
  gap: 20px;
  justify-items: start;
  color: #fff;
  z-index: 2;
}
.banner__title {
  font-size: 2rem;
}
.banner__text {
  font-size: 1rem;
  line-height: 1.4;
}
.btn--cta {
  padding: 10px 24px;
  border-radius: 6px;
  background: var(--btn);
  color: var(--bg1);
  transition: background 0.3s, transform 0.2s;
  justify-self: start;
  align-self: end;
}
.btn--cta:hover {
  background: var(--highlight);
  transform: translateY(-2px);
}
.banner__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}
.banner__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}
.banner__dot.active {
  background: var(--accent);
}
@media (max-width: 768px) {
  .banner__slide {
    height: 250px;
  }
  .banner__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    max-width: 100%;
  }
  .banner__title {
    font-size: 1.5rem;
  }
  .banner__text {
    font-size: 0.9rem;
  }
  .btn--cta {
    padding: 8px 16px;
    font-size: 0.9rem;
    justify-self: center;
    align-self: center;
    margin-top: 10px;
  }
  .banner__dots {
    bottom: 10px;
  }
}

.top-games {
  background: var(--bg1);
  padding: 40px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  max-width: 1300px;
  margin: 0px auto;
  border-top: 4px solid var(--accent);
}

.top-games__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.top-games__title {
  font-size: 1.75rem;
  color: var(--banner);
  letter-spacing: 1px;
}

.top-games__more {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.top-games__more:hover {
  background: var(--accent);
  color: var(--bg1);
}

.top-games__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.top-games__grid {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg1);
}

.top-games__grid::-webkit-scrollbar {
  height: 8px;
}

.top-games__grid::-webkit-scrollbar-track {
  background: var(--bg1);
}

.top-games__grid::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.top-games__grid::-webkit-scrollbar-thumb:hover {
  background: var(--highlight);
}

.game-card {
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
}

.game-card:hover {
  transform: translateY(-4px);
}

.game-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover .game-card__overlay {
  opacity: 1;
}

.game-card__overlay a {
  display: inline-block;
  width: 80%;
  padding: 10px 0;
  text-align: center;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--bg1);
  text-decoration: none;
  transition: background 0.3s;
}

.btn--demo {
  background: var(--banner);
}

.btn--play {
  background: var(--accent);
}

.game-card__overlay a:hover {
  background: var(--highlight);
}

@media (max-width: 768px) {
  .top-games__grid {
    gap: 16px;
  }
  .game-card__overlay {
    position: static;
    background: none;
    opacity: 1;
    flex-direction: row;
    justify-content: space-between;
    padding: 8px;
  }
  .game-card__overlay a {
    width: 48%;
    padding: 6px 0;
    font-size: 0.8rem;
  }

  .top-games__title {
    font-size: 1.25rem;
    text-transform: none;
    }   
}

.content {
  background: var(--bg1);
  padding: 40px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  max-width: 1300px;
  margin: 0 auto;
  border-top: 4px solid var(--accent);
}

.content h1 {
  font-size: 2.5rem;
  color: var(--banner);
  margin-bottom: 1rem;
  text-align: center;
}

.content h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content h3 {
  font-size: 1.75rem;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #e5e5e5;
}

.content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 4px;
}

.content ul,
.content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content ul li,
.content ol li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .content {
    padding: 20px 15px;
  }
  .content h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  .content h2 {
    font-size: 1.75rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }
  .content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }
  .content p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  .content img {
    margin: 1rem auto;
  }
  .content ul,
  .content ol {
    padding-left: 1rem;
    margin-bottom: 1rem;
  }
}

.content table {
  width: 100%;
  background: var(--bg1);
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.content th,
.content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content thead th {
  background: var(--banner);
  color: var(--bg1);
  font-weight: 600;
}

.content tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.05);
}

.content tbody tr:hover {
  background: rgba(34, 255, 0, 0.1);
}

@media (max-width: 768px) {
  .content table {
    font-size: 0.875rem;
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.content section {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
}
.content section > span {
  display: block;
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.content section details {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 12px 0;
}
.content section details:first-of-type {
  border-top: none;
}
.content section summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  list-style: none;
  position: relative;
  padding-right: 20px;
}
.content section summary::marker {
  display: none;
}
.content section summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  transition: transform .3s;
}
.content section details[open] summary::after {
  content: '−';
  transform: rotate(0deg);
}
.content section details p {
  margin: 8px 0 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #e5e5e5;
}
@media (max-width: 768px) {
  .content section {
    padding: 0 15px;
  }
  .content section > span {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  .content section summary {
    font-size: 0.95rem;
  }
  .content section details p {
    font-size: 0.9rem;
  }
}

.footer {
  background: var(--bg1);
  color: var(--text-light);
  padding: 40px 20px;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.7);
  max-width: 1300px;
  margin: 0px auto;
  border-top: 4px solid var(--accent);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 24px;
}

.footer__branding img {
  max-height: 60px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__links a {
  color: var(--text-light);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__links a:hover::after {
  transform: scaleX(1);
}

.footer__bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  opacity: 0.7;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer {
    padding: 24px 12px;
    font-size: 0.85rem;
  }
  .footer__top {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .footer__links {
    gap: 16px;
    justify-content: center;
  }
  .footer__bottom {
    padding-top: 12px;
  }
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg1);
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: var(--bg1);
}

html::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--highlight);
}