* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    background: linear-gradient(135deg, #0B0F26 0%, #041848 100%);
    color: #FFFFFF;
}

.site-header {
  background: #0B0F26;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid #0074FF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: grid;
  grid-template-areas: "logo free nav auth burger";
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
}

.logo img {
  height: 45px;
  display: block;
}

.free-money {
  grid-area: free;
  display: inline-block;
  background: linear-gradient(90deg, #FFD700, #FFEA70);
  color: #0B0F26;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(255, 215, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.free-money:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(255, 215, 0, 0.5);
}

.primary-nav {
  grid-area: nav;
  justify-content: center;
}
.primary-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: #B0B7C3;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0074FF;
  transition: width 0.3s;
}
.primary-nav a:hover {
  color: #FFFFFF;
}
.primary-nav a:hover::after {
  width: 100%;
}

.auth-links {
  grid-area: auth;
  display: flex;
  gap: 1rem;
}
.auth-links a {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.auth-links a:first-child {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.auth-links a:first-child:hover {
  background: rgba(255, 255, 255, 0.1);
}
.auth-links a:last-child {
  background: #0074FF;
  color: #FFFFFF;
}
.auth-links a:last-child:hover {
  background: #005ecc;
}

.burger {
  grid-area: burger;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  height: 2px;
  background: #FFFFFF;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media screen and (min-width: 769px) {
  .burger,
  .mobile-menu {
    display: none!important;
  }
  .primary-nav,
  .auth-links,
  .free-money {
    display: flex!important;
  }
}

@media (max-width: 768px) {
  .header-inner {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "burger logo"
      "auth auth";
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .burger {
    display: flex!important;
  }
  .logo {
    grid-area: logo;
    justify-self: center;
  }

  .free-money,
  .primary-nav {
    display: none!important;
  }
  .logo {
    margin-right: 50px;
  }
  .auth-links {
    grid-area: auth;
    display: grid!important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }
  .auth-links a {
    display: flex!important;
    align-items: center;
    justify-content: center;
    height: 44px;
    box-sizing: border-box;
    font-size: 1rem;
  }
  .auth-links a:first-child {
    border: 1px solid #FFFFFF;
    background: transparent;
    color: #FFFFFF;
  }
  .auth-links a:last-child {
    background: #0074FF;
    color: #FFFFFF;
  }

  .mobile-menu {
    display: none;
  }
  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0B0F26;
    padding: 1rem;
  }
  .mobile-menu nav ul {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    text-align: center;
  }
  .mobile-menu nav ul li {
    margin: 0;
  }
  .mobile-menu nav ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #0074FF;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s, color 0.2s;
  }
  .mobile-menu nav ul li:last-child a {
    border-bottom: none;
  }
  .mobile-menu nav ul li a:hover {
    background: rgba(255,255,255,0.1);
    color: #FFFFFF;
  }
  .mobile-menu .free-money {
    display: block!important;
    margin: 1rem auto 0;
    padding: 0.75rem 1rem;
    background: #FFD700;
    color: #0B0F26;
    text-decoration: none;
    font-weight: 700;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(255, 215, 0, 0.3);
  }
  .mobile-menu .free-money:hover {
    background: #e6c200;
  }
}

.promo-section {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
}

.promo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
}

.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 30%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

.promo-large {
  min-height: 500px;
}

.promo-small {
  min-height: 300px;
}

.promo-content {
  position: absolute;
  inset: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.promo-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.promo-content p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.promo-buttons {
  display: flex;
  gap: 0.75rem;
  z-index: 2;
}

.btn-primary,
.btn-secondary,
.btn-white {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: #FFD700;
  color: #0B0F26;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
  background: #FFD700;
  color: #0B0F26;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(255, 215, 0, 0.3);
}

.btn-white {
  background: #FFFFFF;
  color: #0B0F26;
}

.btn-white:hover {
  background: #f0f0f0;
}

@media (max-width: 768px) {
  .promo-section {
    grid-template-columns: 1fr;
    padding: 0.5rem;
  }

  .promo-large {
    min-height: 300px;
  }

  .promo-small {
    min-height: 250px;
  }

  .promo-content {
    inset: 1rem;
  }

  .promo-buttons {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
}

.extra-menu {
  padding: 1rem;
}

.extra-menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.extra-menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 15, 38, 0.85);
  border-radius: 12px;
  padding: 1rem;
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
  border: 1px solid #0074FF;
}

.extra-menu-item a:hover {
  background: rgba(11, 15, 38, 1);
  transform: translateY(-2px);
  border: 1px solid #0074FF;
}

.extra-menu-text {
  display: flex;
  flex-direction: column;
}

.extra-menu-title {
  color: #FFFFFF;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.extra-menu-subtitle {
  color: #B0B7C3;
  font-size: 0.875rem;
}

.extra-menu-icon {
  width: 52px;
  height: 52px;
  background: none;
  border-radius: 0;
  padding: 0;
  transition: none;
  object-fit: contain;
}

@media (max-width: 768px) {
  .extra-menu-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .extra-menu-item a {
    padding: 0.75rem;
  }
  .extra-menu-title {
    font-size: 1rem;
  }
  .extra-menu-subtitle {
    font-size: 0.75rem;
  }
  .extra-menu-icon {
    width: 32px;
    height: 32px;
  }
}

.top-games {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
}
.top-games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.top-games-header .title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFFFFF;
  position: relative;
  padding-bottom: 0.5rem;
}
.top-games-header .title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, #FFD700, #FFEA70);
  border-radius: 2px;
}
.top-games-header .more-link {
  font-size: 1rem;
  font-weight: 500;
  color: #0074FF;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.3s;
}
.top-games-header .more-link:hover {
  background: rgba(0, 116, 255, 0.1);
}
.games-container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: auto;
  scrollbar-width: auto;
}
.game-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  scroll-snap-align: start;
}
.game-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}
.game-item img {
  display: block;
  width: 100%;
  height: auto;
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.game-item:hover .overlay {
  opacity: 1;
}
.demo-btn,
.play-btn {
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.demo-btn {
  border: 2px solid #FFFFFF;
  background: transparent;
  color: #FFFFFF;
  backdrop-filter: blur(4px);
}
.demo-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.play-btn {
  background: #FFD700;
  color: #0B0F26;
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}
.play-btn:hover {
  background: #e6c200;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .games-container {
    grid-auto-columns: 160px;
    gap: 0.75rem;
  }
  .top-games-header {
    flex-direction: row;
    align-items: flex-start;
  }
  .top-games-header .more-link {
    margin-top: 0.5rem;
  }
  .demo-btn,
  .play-btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
  .promo-title {
    font-size: 1.25rem;
  }
}

.games-container {
  scrollbar-color: #FFD700 rgba(11,15,38,0.5);
  scrollbar-width: thin;
}

.games-container::-webkit-scrollbar {
  height: 8px;
}

.games-container::-webkit-scrollbar-track {
  background: rgba(11,15,38,0.5);
}

.games-container::-webkit-scrollbar-thumb {
  background-color: #FFD700;
  border-radius: 4px;
  border: 2px solid rgba(11,15,38,0.5);
}

.content {
  border: 1px solid #0074FF;
  border-radius: 8px;
  background: rgba(11, 15, 38, 0.8);
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  max-width: 1500px;
  margin: 2rem auto;
}

.content h1 {
  color: #FFD700;
  font-size: 2.5rem;
  margin: 2rem 0 1rem;
  border-bottom: 3px solid #FFD700;
  padding-bottom: 0.5rem;
  text-align: center;
}

.content h2 {
  color: #0074FF;
  font-size: 2rem;
  margin: 1.75rem 0 1rem;
  border-left: 4px solid #0074FF;
  padding-left: 0.75rem;
}

.content h3 {
  color: #B0B7C3;
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
  padding: 0.5rem;
  border-radius: 4px;
}

.content img {
    display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}
.content img:hover {
  transform: scale(1.02);
}

.content p {
  margin-bottom: 1rem;
}

.content ul,
.content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.content ul li {
  margin-bottom: 0.75rem;
  list-style: disc;
}

.content ol li {
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .content {
    padding: 1rem;
  }
  .content h1 {
    font-size: 2rem;
  }
  .content h2 {
    font-size: 1.5rem;
  }
  .content h3 {
    font-size: 1.25rem;
  }
}

.content table {
  border-collapse: collapse;
  margin: 2rem auto;
  width: 100%;
  max-width: 100%;
  background: rgba(11,15,38,0.9);
  border: 2px solid #0074FF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  -webkit-overflow-scrolling: touch;
}

.content table tr {
  transition: background 0.3s;
}
.content table tr:hover {
  background: rgba(255,255,255,0.1);
}

.content table td {
  padding: 0.75rem 1.25rem;
}

.content table tr:nth-child(odd) {
  background: rgba(255,255,255,0.05);
}

.content table td:first-child {
  color: #B0B7C3;
  font-weight: 600;
}

.content table td:last-child {
  color: #FFFFFF;
}

.content table a {
  color: #FFD700;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s;
}
.content table a:hover {
  border-color: #FFD700;
}

@media (max-width: 768px) {
  .content table {
    max-width: 100%;
    overflow-x: auto;
  }
  .content table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
        overflow-x: auto;
  }
  .content table::-webkit-scrollbar {
    height: 6px;
  }
  .content table::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
  }
  .content table::-webkit-scrollbar-thumb {
    background-color: #FFD700;
    border-radius: 3px;
  }
}

.content section {
  max-width: 100%;
  margin: 2rem auto;
  padding: 1rem;
  border: 1px solid #0074FF;
  border-radius: 8px;
  background: rgba(11,15,38,0.8);
}
.content section > span {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 1rem;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 0.5rem;
}
.content section > div {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  transition: background 0.3s;
}
.content section > div:hover {
  background: rgba(255,255,255,0.05);
}
.content section > div > span {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}
.content section > div > p {
  margin: 0;
  color: #B0B7C3;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .content section {
    padding: 0.75rem;
    margin: 1.5rem auto;
  }
  .content section > span {
    font-size: 1.5rem;
    padding-bottom: 0.25rem;
  }
  .content section > div {
    padding: 0.5rem;
  }
  .content section > div > span {
    font-size: 0.95rem;
  }
  .content section > div > p {
    font-size: 0.875rem;
  }
}
.site-footer {
  background: #0B0F26;
  color: #FFFFFF;
  padding: 2rem 1rem;
  border-top: 1px solid #0074FF;
}
.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
}
.footer-col-title {
  display: block;
  font-size: 1.125rem;
  color: #FFD700;
  margin-bottom: 0.75rem;
}
.footer-col p,
.footer-col ul li {
  color: #B0B7C3;
  line-height: 1.6;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: #0074FF;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s;
}
.footer-social a:hover img {
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(40deg);
}
.footer-bottom {
  max-width: 1300px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: #B0B7C3;
  border-top: 1px solid #0074FF;
  padding-top: 1rem;
}
.footer-social a svg {
  width: 24px;
  height: 24px;
  color: #B0B7C3;
  transition: color 0.2s;
}

.footer-social a:hover svg {
  color: #FFD700;
}
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
    text-align: center;
  }
  .footer-col ul {
    padding: 0;
  }
  .footer-col ul li a {
    display: inline-block;
  }
  .footer-logo img {
    margin-bottom: 1rem;
  }
  .footer-social {
    justify-content: center;
  }
}
html {
  scrollbar-color: #FFD700 rgba(11,15,38,0.5);
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: rgba(11,15,38,0.5);
}

html::-webkit-scrollbar-thumb {
  background-color: #FFD700;
  border-radius: 4px;
  border: 2px solid rgba(11,15,38,0.5);
}








