/* 990k3 - theme.css
   Mobile-first gaming site styles. All custom classes use v638- prefix.
   Palette: #004D40 | #0C0C0C | #FFCCCB | #48D1CC | #AFEEEE
*/

:root {
  --v638-primary: #004D40;
  --v638-bg: #0C0C0C;
  --v638-bg-alt: #141a18;
  --v638-card: #1b2421;
  --v638-text: #AFEEEE;
  --v638-text-soft: #cfeee6;
  --v638-accent: #48D1CC;
  --v638-accent2: #FFCCCB;
  --v638-border: rgba(72, 209, 204, 0.18);
  --v638-radius: 12px;
  --v638-header-h: 56px;
  --v638-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--v638-bg);
  color: var(--v638-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--v638-accent); text-decoration: none; }
a:hover { color: var(--v638-accent2); }
img { max-width: 100%; display: block; }

.v638-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.v638-wrapper { min-height: 100vh; padding-top: var(--v638-header-h); }

/* ===== Header ===== */
.v638-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v638-header-h);
  background: linear-gradient(90deg, #00362c 0%, var(--v638-primary) 100%);
  border-bottom: 2px solid var(--v638-accent);
  display: flex; align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.v638-header-inner {
  width: 100%; max-width: 430px; margin: 0 auto; padding: 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.v638-logo { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 800; font-size: 1.6rem; }
.v638-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v638-header-spacer { flex: 1; }
.v638-header-btns { display: flex; gap: 6px; }
.v638-btn {
  border: none; border-radius: 8px; padding: 8px 14px; font-size: 1.25rem;
  font-weight: 700; cursor: pointer; min-height: 36px; transition: transform .15s, background .2s;
}
.v638-btn:active { transform: scale(0.96); }
.v638-btn-register { background: var(--v638-accent2); color: #0C0C0C; }
.v638-btn-login { background: var(--v638-accent); color: #0C0C0C; }
.v638-menu-toggle {
  background: transparent; border: 0; color: #fff; font-size: 2rem; cursor: pointer; padding: 0 6px;
}

/* ===== Mobile menu ===== */
.v638-mobile-menu {
  position: fixed; top: var(--v638-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--v638-bg-alt); border-bottom: 2px solid var(--v638-accent);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.v638-mobile-menu.v638-open { max-height: 480px; }
.v638-mobile-menu ul { list-style: none; margin: 0; padding: 6px 0; }
.v638-mobile-menu li a {
  display: block; padding: 12px 18px; color: var(--v638-text); font-size: 1.35rem; border-bottom: 1px solid var(--v638-border);
}
.v638-mobile-menu li a:hover { background: rgba(72,209,204,0.08); color: var(--v638-accent); }

/* ===== Carousel ===== */
.v638-carousel {
  position: relative; margin: 12px 0; border-radius: var(--v638-radius); overflow: hidden;
  height: 180px; background: #000;
}
.v638-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; cursor: pointer;
}
.v638-slide.v638-active { opacity: 1; }
.v638-slide img { width: 100%; height: 100%; object-fit: cover; }
.v638-slide-overlay {
  position: absolute; left: 12px; bottom: 12px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.v638-slide-overlay h3 { margin: 0; font-size: 1.5rem; }
.v638-dots { position: absolute; bottom: 8px; right: 10px; display: flex; gap: 6px; }
.v638-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.v638-dot.v638-active { background: var(--v638-accent); }

/* ===== Sections ===== */
.v638-section { margin: 18px 0; padding: 14px 12px; background: var(--v638-bg-alt); border-radius: var(--v638-radius); border: 1px solid var(--v638-border); }
.v638-section h2 { color: var(--v638-accent); font-size: 1.8rem; margin: 0 0 8px; }
.v638-section h3 { color: var(--v638-accent2); font-size: 1.45rem; margin: 12px 0 6px; }
.v638-section p { color: var(--v638-text-soft); font-size: 1.3rem; margin: 6px 0; }
.v638-h1 { color: #fff; font-size: 2.1rem; margin: 14px 0 6px; text-align: center; }
.v638-subtitle { text-align: center; color: var(--v638-text-soft); font-size: 1.3rem; margin-bottom: 10px; }

/* Filter chips */
.v638-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.v638-chip {
  padding: 6px 12px; border-radius: 20px; background: var(--v638-card); color: var(--v638-text);
  border: 1px solid var(--v638-border); font-size: 1.2rem; cursor: pointer;
}
.v638-chip.v638-chip-active { background: var(--v638-accent); color: #0C0C0C; border-color: var(--v638-accent); }

/* ===== Game grid ===== */
.v638-game-section h3 { color: var(--v638-accent2); font-size: 1.5rem; margin: 14px 0 8px; border-left: 3px solid var(--v638-accent); padding-left: 8px; }
.v638-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.v638-game-card {
  background: var(--v638-card); border-radius: 10px; padding: 6px; text-align: center;
  border: 1px solid var(--v638-border); cursor: pointer; transition: transform .15s, border-color .2s;
}
.v638-game-card:hover, .v638-game-card:active { transform: translateY(-2px); border-color: var(--v638-accent); }
.v638-game-card img { width: 100%; height: auto; border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.v638-game-card span { display: block; color: var(--v638-text-soft); font-size: 1.05rem; margin-top: 4px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Promo CTA ===== */
.v638-cta {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 14px 0;
}
.v638-cta .v638-btn { padding: 12px 22px; font-size: 1.4rem; }
.v638-link-inline { color: var(--v638-accent2); font-weight: 700; }
.v638-link-inline:hover { text-decoration: underline; }

/* ===== Feature cards ===== */
.v638-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v638-feature {
  background: var(--v638-card); border-radius: 10px; padding: 12px; border: 1px solid var(--v638-border);
}
.v638-feature .v638-feature-icon { font-size: 2.2rem; color: var(--v638-accent); margin-bottom: 6px; }
.v638-feature h3 { margin: 0 0 4px; font-size: 1.3rem; color: var(--v638-accent2); }
.v638-feature p { margin: 0; font-size: 1.15rem; color: var(--v638-text-soft); }

/* ===== RTP table ===== */
.v638-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.v638-table th, .v638-table td { padding: 8px; border-bottom: 1px solid var(--v638-border); text-align: left; }
.v638-table th { color: var(--v638-accent); }
.v638-table td { color: var(--v638-text-soft); }

/* ===== Testimonials ===== */
.v638-testimonial { background: var(--v638-card); border-radius: 10px; padding: 12px; margin-bottom: 10px; border-left: 3px solid var(--v638-accent2); }
.v638-testimonial .v638-testi-name { color: var(--v638-accent); font-weight: 700; font-size: 1.25rem; }
.v638-testimonial p { margin: 4px 0 0; font-size: 1.2rem; color: var(--v638-text-soft); }

/* ===== Payment icons ===== */
.v638-payments { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.v638-payment { background: var(--v638-card); border-radius: 8px; padding: 8px 12px; font-size: 1.2rem; color: var(--v638-text); border: 1px solid var(--v638-border); display: flex; align-items: center; gap: 6px; }

/* ===== Winners ===== */
.v638-winner { display: flex; justify-content: space-between; padding: 8px 10px; background: var(--v638-card); border-radius: 8px; margin-bottom: 6px; font-size: 1.2rem; border: 1px solid var(--v638-border); }
.v638-winner .v638-winner-amount { color: var(--v638-accent2); font-weight: 700; }

/* ===== App download CTA ===== */
.v638-app-cta { text-align: center; padding: 18px 12px; background: linear-gradient(135deg, #00362c, var(--v638-primary)); border-radius: var(--v638-radius); margin: 14px 0; }
.v638-app-cta h3 { color: #fff; margin: 0 0 8px; font-size: 1.6rem; }
.v638-app-cta p { color: var(--v638-text); font-size: 1.25rem; margin: 0 0 12px; }

/* ===== Footer ===== */
.v638-footer { background: var(--v638-bg-alt); border-top: 2px solid var(--v638-accent); padding: 18px 12px 90px; margin-top: 18px; }
.v638-footer-brand { color: var(--v638-text-soft); font-size: 1.2rem; margin-bottom: 12px; }
.v638-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.v638-footer-links a { color: var(--v638-accent); font-size: 1.15rem; }
.v638-footer-promo { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.v638-footer-copy { color: #888; font-size: 1.1rem; text-align: center; }

/* ===== Bottom nav ===== */
.v638-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v638-bottomnav-h);
  background: linear-gradient(90deg, #00362c, var(--v638-primary));
  border-top: 2px solid var(--v638-accent);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}
.v638-bottomnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; background: transparent; border: 0; color: var(--v638-text);
  font-size: 1.05rem; cursor: pointer; transition: transform .15s, color .2s; gap: 2px;
}
.v638-bottomnav-btn:active { transform: scale(0.92); }
.v638-bottomnav-btn .v638-bn-icon { font-size: 2.2rem; line-height: 1; }
.v638-bottomnav-btn .v638-bn-label { font-size: 1.05rem; }
.v638-bottomnav-btn:hover, .v638-bottomnav-current { color: var(--v638-accent2); }
.v638-bottomnav-current .v638-bn-icon { color: var(--v638-accent); }

/* Desktop: hide bottom nav, show desktop nav */
@media (min-width: 769px) {
  .v638-bottomnav { display: none; }
  .v638-footer { padding-bottom: 18px; }
  .v638-container { max-width: 760px; }
  .v638-grid { grid-template-columns: repeat(6, 1fr); }
  .v638-features { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile: bottom padding for main content clearance */
@media (max-width: 768px) {
  main.v638-main { padding-bottom: calc(var(--v638-bottomnav-h) + 20px); }
}
