/* =============================================
   KOMETA CASINO — MAIN STYLESHEET
   ============================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #0d0d1a;
  color: #cfcfd7;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

body.menu-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: #75E6FF;
  transition: color 0.2s;
}

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

/* =============================================
   CONTAINER
   ============================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   HEADER
   ============================================= */

.header {
  background: #1a1a2e;
  border-bottom: 1px solid rgba(117, 230, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  height: 30px;
  width: auto;
  display: block;
}

/* =============================================
   NAVIGATION
   ============================================= */

.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  display: block;
}

.nav-menu a:hover {
  color: #75E6FF;
  background: rgba(117, 230, 255, 0.08);
}

.nav-menu a[aria-current="page"] {
  color: #75E6FF;
}

.nav-menu .btn-ghost {
  border: 1px solid rgba(117, 230, 255, 0.35);
  color: #75E6FF;
}

.nav-menu .btn-ghost:hover {
  background: rgba(117, 230, 255, 0.1);
}

.nav-menu .btn-primary {
  background: linear-gradient(135deg, #9d4edd, #75E6FF);
  color: #fff !important;
  font-weight: 600;
}

.nav-menu .btn-primary:hover {
  opacity: 0.85;
  background: linear-gradient(135deg, #9d4edd, #75E6FF);
}

/* Actions (mobile toggle) */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #9d4edd, #75E6FF);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn:hover {
  opacity: 0.85;
  color: #fff;
}

/* =============================================
   SECTIONS
   ============================================= */

.section {
  padding: 56px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 32px;
  text-align: center;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.25;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 36px 0 16px;
  line-height: 1.3;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 20px 0 10px;
}

p {
  margin-bottom: 14px;
}

ul, ol {
  margin: 0 0 16px 22px;
}

li {
  margin: 6px 0;
}

strong {
  color: #fff;
  font-weight: 600;
}

/* =============================================
   GAMES GRID
   ============================================= */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.game-item {
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a2e;
  border: 1px solid rgba(117, 230, 255, 0.1);
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}

.game-item:hover {
  transform: translateY(-4px);
  border-color: rgba(117, 230, 255, 0.3);
}

.game-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.game-item:hover img {
  transform: scale(1.04);
}

/* =============================================
   MAIN TEXT CONTENT
   ============================================= */

.main_text {
  max-width: 900px;
  color: #cfcfd7;
}

.main_text p {
  margin-bottom: 16px;
  color: #cfcfd7;
  line-height: 1.75;
}

.main_text h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 36px 0 14px;
  line-height: 1.3;
}

.main_text ul,
.main_text ol {
  margin: 0 0 16px 22px;
  color: #cfcfd7;
}

.main_text li {
  margin: 8px 0;
}

/* Loyalty table */
.main_text table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
}

.main_text table th {
  background: rgba(117, 230, 255, 0.12);
  color: #75E6FF;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(117, 230, 255, 0.2);
}

.main_text table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #cfcfd7;
}

.main_text table tr:last-child td {
  border-bottom: none;
}

.main_text table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

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

.footer {
  background: #1a1a2e;
  border-top: 1px solid rgba(117, 230, 255, 0.1);
  padding: 28px 0;
  color: #9d9db7;
}

.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 24px;
  width: auto;
  display: block;
}

.foot-legal {
  font-size: 13px;
  color: #9d9db7;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 0;
}

.foot-nav a {
  color: #9d9db7;
  font-size: 13px;
  transition: color 0.2s;
  padding: 3px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1;
}

.foot-nav a:first-child {
  padding-left: 0;
}

.foot-nav a:last-child {
  border-right: none;
}

.foot-nav a:hover,
.foot-nav a[aria-current="page"] {
  color: #75E6FF;
}

#license {
  margin: 18px 0 0;
  font-size: 9px;
  line-height: 1.5;
  color: #444;
}

#license p {
  margin-bottom: 8px;
}

/* =============================================
   CONTACT SECTION
   ============================================= */

.contact-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 60px 0;
}

.contact-info {
  background: rgba(117, 230, 255, 0.06);
  border: 1px solid rgba(117, 230, 255, 0.2);
  border-radius: 14px;
  padding: 28px;
}

/* =============================================
   RESPONSIVE — TABLET (≤960px)
   ============================================= */

@media (max-width: 960px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .game-item img {
    height: 140px;
  }

  h1 {
    font-size: 1.7rem;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================= */

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Mobile nav dropdown */
  .header .row {
    position: relative;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border-top: 1px solid rgba(117, 230, 255, 0.2);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu {
    flex-direction: column;
    padding: 16px 20px 20px;
    gap: 4px;
    align-items: stretch;
  }

  .nav-menu a {
    text-align: center;
    padding: 13px 16px;
    font-size: 15px;
  }

  .nav-menu .btn-ghost,
  .nav-menu .btn-primary {
    margin-top: 4px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .section {
    padding: 36px 0;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }

  .game-item img {
    height: 120px;
  }

  .foot-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================= */

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  h1 {
    font-size: 1.35rem;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .game-item img {
    height: 100px;
  }

  .foot-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 0;
  }

  .foot-nav a {
    border-right: none;
    padding: 4px 0;
  }

  .main_text table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
  }
}
