/* rr8i.click - theme.css | Prefix: v329- | Palette: #1C2833 (bg) / #AFEEEE (text) */
/* Root font sizing - 62.5% base for rem-based layout */
:root {
  --v329-primary: #1C2833;
  --v329-bg: #141c25;
  --v329-bg-alt: #1f2a36;
  --v329-text: #AFEEEE;
  --v329-text-soft: #cfe9e9;
  --v329-accent: #ffd166;
  --v329-accent-2: #ff6b6b;
  --v329-line: rgba(175, 238, 238, 0.14);
  --v329-radius: 14px;
  --v329-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--v329-bg);
  color: var(--v329-text);
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--v329-text-soft); text-decoration: none; }

/* Layout helpers */
.v329-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.v329-wrapper { padding: 18px 14px; }
.v329-grid { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.v329-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #141c25 0%, #1C2833 100%);
  border-bottom: 1px solid var(--v329-line);
  box-shadow: var(--v329-shadow);
}
.v329-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; min-height: 56px;
}
.v329-brand { display: flex; align-items: center; gap: 8px; }
.v329-brand img { width: 28px; height: 28px; border-radius: 6px; }
.v329-brand-name { font-size: 1.8rem; font-weight: 800; color: var(--v329-text); letter-spacing: .5px; }
.v329-brand-dot { color: var(--v329-accent); }
.v329-header-actions { display: flex; align-items: center; gap: 8px; }
.v329-hamburger {
  background: transparent; border: 1px solid var(--v329-line);
  color: var(--v329-text); border-radius: 10px;
  width: 40px; height: 40px; font-size: 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Buttons */
.v329-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: none; cursor: pointer;
  font-size: 1.4rem; font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.v329-btn:active { transform: scale(.96); }
.v329-btn-primary {
  background: linear-gradient(135deg, var(--v329-accent) 0%, #ff9f43 100%);
  color: #1C2833;
  box-shadow: 0 4px 14px rgba(255, 209, 102, 0.35);
}
.v329-btn-ghost {
  background: transparent; color: var(--v329-text);
  border: 1px solid var(--v329-text-soft);
}
.v329-btn-block { display: flex; width: 100%; }

/* Mobile menu */
.v329-mobile-menu {
  position: fixed; top: 0; right: -85%; bottom: 0;
  width: 80%; max-width: 320px;
  background: var(--v329-primary);
  z-index: 9999; padding: 70px 18px 24px;
  transform: translateX(0);
  transition: right .28s ease;
  overflow-y: auto;
}
.v329-mobile-menu.v329-menu-open { right: 0; box-shadow: -10px 0 40px rgba(0,0,0,.5); }
.v329-menu-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none; color: var(--v329-text);
  font-size: 22px; cursor: pointer;
}
.v329-menu-section { margin-bottom: 18px; }
.v329-menu-title {
  font-size: 1.3rem; text-transform: uppercase;
  color: var(--v329-accent); letter-spacing: .5px; margin: 0 0 8px;
}
.v329-menu-link {
  display: block; padding: 10px 12px;
  border-radius: 10px; color: var(--v329-text-soft);
  font-size: 1.5rem; border-bottom: 1px solid var(--v329-line);
}
.v329-menu-link:hover, .v329-menu-link:focus { background: rgba(175,238,238,.08); color: var(--v329-text); }
.v329-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.v329-backdrop.v329-backdrop-show { opacity: 1; pointer-events: auto; }

/* Main */
.v329-main { padding-top: 70px; padding-bottom: 80px; }

/* Hero carousel */
.v329-hero {
  position: relative; margin: 14px; border-radius: var(--v329-radius); overflow: hidden;
  box-shadow: var(--v329-shadow);
}
.v329-hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
}
.v329-hero-slide.v329-slide-active { opacity: 1; position: relative; }
.v329-hero-slide img { width: 100%; height: 180px; object-fit: cover; }
.v329-hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px; background: linear-gradient(to top, rgba(20,28,37,.92), transparent);
  display: flex; flex-direction: column; gap: 8px;
}
.v329-hero-title { font-size: 1.9rem; font-weight: 800; color: var(--v329-text); margin: 0; }
.v329-hero-sub { font-size: 1.3rem; color: var(--v329-text-soft); margin: 0; }
.v329-hero-dots { display: flex; gap: 6px; padding: 8px 14px; }
.v329-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(175,238,238,.3); }

/* Headings */
.v329-section { margin: 22px 0; }
.v329-h1 { font-size: 2.4rem; font-weight: 900; line-height: 1.25; margin: 0 0 10px; color: var(--v329-text); }
.v329-h2 { font-size: 2rem; font-weight: 800; margin: 22px 0 10px; color: var(--v329-text); }
.v329-h2 .v329-mark { color: var(--v329-accent); }
.v329-h3 { font-size: 1.7rem; font-weight: 700; margin: 16px 0 8px; color: var(--v329-text-soft); }
.v329-lead { font-size: 1.5rem; color: var(--v329-text-soft); line-height: 1.55; }
.v329-p { font-size: 1.5rem; color: var(--v329-text-soft); line-height: 1.55; margin: 0 0 10px; }
.v329-text-link { color: var(--v329-accent); font-weight: 700; border-bottom: 1px dashed rgba(255,209,102,.4); }

/* Game area */
.v329-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 20px 0 10px;
}
.v329-cat-title { font-size: 1.8rem; font-weight: 800; color: var(--v329-text); display: flex; align-items: center; gap: 8px; }
.v329-cat-icon { color: var(--v329-accent); font-size: 22px; }
.v329-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.v329-game-card {
  background: var(--v329-bg-alt); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--v329-line); position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.v329-game-card:active { transform: scale(.97); box-shadow: var(--v329-shadow); }
.v329-game-card img { width: 100%; height: 96px; object-fit: cover; }
.v329-game-name {
  font-size: 1.2rem; line-height: 1.3; padding: 6px 8px;
  color: var(--v329-text-soft); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v329-hot-tag {
  position: absolute; top: 6px; left: 6px;
  background: var(--v329-accent-2); color: #fff;
  font-size: 1rem; font-weight: 700; padding: 2px 6px; border-radius: 6px;
}

/* CTA banner */
.v329-cta {
  margin: 22px 14px; padding: 18px;
  border-radius: var(--v329-radius);
  background: linear-gradient(135deg, #1C2833 0%, #2a3a4a 100%);
  border: 1px solid var(--v329-line);
  text-align: center; box-shadow: var(--v329-shadow);
}
.v329-cta-title { font-size: 1.9rem; font-weight: 800; color: var(--v329-text); margin: 0 0 6px; }
.v329-cta-sub { font-size: 1.35rem; color: var(--v329-text-soft); margin: 0 0 14px; }

/* Feature highlights */
.v329-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.v329-feature {
  background: var(--v329-bg-alt); border-radius: 12px; padding: 14px;
  border: 1px solid var(--v329-line);
}
.v329-feature-ico { font-size: 24px; color: var(--v329-accent); margin-bottom: 6px; }
.v329-feature-title { font-size: 1.5rem; font-weight: 700; color: var(--v329-text); margin: 0 0 4px; }
.v329-feature-desc { font-size: 1.25rem; color: var(--v329-text-soft); line-height: 1.45; margin: 0; }

/* Testimonials */
.v329-testi {
  background: var(--v329-bg-alt); border-radius: 12px; padding: 14px;
  border-left: 4px solid var(--v329-accent); margin-bottom: 10px;
}
.v329-testi-text { font-size: 1.4rem; color: var(--v329-text-soft); font-style: italic; margin: 0 0 6px; }
.v329-testi-author { font-size: 1.25rem; color: var(--v329-accent); font-weight: 700; }

/* Winners ticker */
.v329-winners {
  background: var(--v329-bg-alt); border-radius: 12px; padding: 10px 14px;
  border: 1px solid var(--v329-line); margin: 14px 0;
}
.v329-win-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--v329-line); font-size: 1.3rem; }
.v329-win-row:last-child { border-bottom: none; }
.v329-win-amount { color: var(--v329-accent); font-weight: 700; }

/* Payment */
.v329-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.v329-pay {
  background: var(--v329-bg-alt); border: 1px solid var(--v329-line);
  border-radius: 10px; padding: 8px 12px; font-size: 1.25rem; color: var(--v329-text-soft);
  display: inline-flex; align-items: center; gap: 6px;
}

/* App download */
.v329-app-card {
  background: linear-gradient(135deg, #1C2833, #2a3a4a);
  border-radius: var(--v329-radius); padding: 18px; margin: 14px 0;
  border: 1px solid var(--v329-line); text-align: center;
}
.v329-app-title { font-size: 1.8rem; font-weight: 800; color: var(--v329-text); margin: 0 0 6px; }

/* FAQ */
.v329-faq-item {
  background: var(--v329-bg-alt); border-radius: 10px; padding: 12px;
  margin-bottom: 8px; border: 1px solid var(--v329-line);
}
.v329-faq-q { font-size: 1.45rem; font-weight: 700; color: var(--v329-text); margin: 0 0 4px; }
.v329-faq-a { font-size: 1.35rem; color: var(--v329-text-soft); line-height: 1.5; margin: 0; }

/* Footer */
.v329-footer {
  background: #0f1620; border-top: 1px solid var(--v329-line);
  padding: 22px 14px 30px; margin-top: 18px;
}
.v329-footer-brand { font-size: 1.7rem; font-weight: 800; color: var(--v329-text); margin-bottom: 6px; }
.v329-footer-desc { font-size: 1.3rem; color: var(--v329-text-soft); line-height: 1.5; margin-bottom: 14px; }
.v329-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.v329-footer-links a {
  background: var(--v329-bg-alt); border: 1px solid var(--v329-line);
  border-radius: 10px; padding: 6px 10px; font-size: 1.2rem; color: var(--v329-text-soft);
}
.v329-footer-links a:hover { color: var(--v329-accent); }
.v329-footer-copy { font-size: 1.2rem; color: rgba(175,238,238,.55); border-top: 1px solid var(--v329-line); padding-top: 12px; }

/* Reveal animation */
.v329-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.v329-revealed { opacity: 1; transform: translateY(0); }

/* Bottom navigation */
.v329-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
  background: linear-gradient(180deg, #1C2833 0%, #0f1620 100%);
  border-top: 1px solid var(--v329-line);
  height: 62px; max-width: 430px; margin: 0 auto;
  box-shadow: 0 -4px 18px rgba(0,0,0,.4);
}
.v329-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--v329-text-soft); gap: 2px;
  transition: color .15s ease, transform .15s ease;
}
.v329-bottomnav-btn:active { transform: scale(.9); }
.v329-bottomnav-btn .v329-bn-icon { font-size: 22px; line-height: 1; }
.v329-bottomnav-btn .v329-bn-label { font-size: 1rem; line-height: 1; }
.v329-bottomnav-btn.v329-bn-active { color: var(--v329-accent); }
.v329-bottomnav-btn.v329-bn-promo { color: var(--v329-accent); }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .v329-bottomnav { display: none; }
  .v329-main { padding-bottom: 30px; }
  .v329-container { max-width: 760px; }
}

/* Mobile bottom padding so content is never hidden behind bottom nav */
@media (max-width: 768px) {
  .v329-main { padding-bottom: 84px; }
}
