/* ==========================================================================
   rr888.homes - core layout stylesheet
   Mobile-first gaming site. All custom classes use the va46- prefix.
   Palette: #1B263B (dark bg) | #F0F8FF (light text) | #A9A9A9 (muted accent)
   ========================================================================== */

:root {
  --va46-bg: #1B263B;
  --va46-bg-2: #243450;
  --va46-bg-3: #2d4263;
  --va46-text: #F0F8FF;
  --va46-muted: #A9A9A9;
  --va46-primary: #ffd24a;
  --va46-primary-2: #ffb732;
  --va46-accent: #36c5d0;
  --va46-accent-2: #5b8def;
  --va46-danger: #ff6b6b;
  --va46-success: #4caf50;
  --va46-card: #2a3a57;
  --va46-card-2: #21304b;
  --va46-border: rgba(240, 248, 255, 0.12);
  --va46-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --va46-radius: 14px;
  --va46-radius-sm: 10px;
  --va46-header-h: 60px;
  --va46-bottom-h: 62px;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: linear-gradient(160deg, var(--va46-bg) 0%, var(--va46-bg-2) 100%);
  color: var(--va46-text);
  font-size: 1.6rem;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--va46-primary); text-decoration: none; }
a:hover { color: var(--va46-primary-2); }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.9rem; margin-bottom: 0.8rem; }
p { margin-bottom: 1.2rem; }

.va46-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.va46-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ===== Header ===== */
.va46-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--va46-header-h);
  background: rgba(27, 38, 59, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--va46-border);
  z-index: 1000;
}
.va46-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.va46-brand { display: flex; align-items: center; gap: 0.6rem; }
.va46-brand img { width: 30px; height: 30px; border-radius: 6px; }
.va46-brand-name { font-size: 1.8rem; font-weight: 800; color: var(--va46-primary); letter-spacing: 0.5px; }
.va46-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.va46-menu-btn {
  background: none; border: none; color: var(--va46-text);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem 0.6rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.va46-menu-btn:hover { background: var(--va46-bg-3); color: var(--va46-primary); }

/* ===== Buttons ===== */
.va46-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 1.4rem; border: none; border-radius: var(--va46-radius-sm);
  font-size: 1.4rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 44px; text-align: center;
}
.va46-btn:hover { transform: translateY(-2px); }
.va46-btn-primary { background: linear-gradient(135deg, var(--va46-primary), var(--va46-primary-2)); color: #1B263B; box-shadow: 0 4px 14px rgba(255, 210, 74, 0.3); }
.va46-btn-primary:hover { color: #1B263B; box-shadow: 0 6px 18px rgba(255, 210, 74, 0.45); }
.va46-btn-accent { background: linear-gradient(135deg, var(--va46-accent-2), var(--va46-accent)); color: #fff; }
.va46-btn-accent:hover { color: #fff; }
.va46-btn-outline { background: transparent; color: var(--va46-text); border: 1.5px solid var(--va46-border); }
.va46-btn-outline:hover { border-color: var(--va46-primary); color: var(--va46-primary); }
.va46-btn-block { display: flex; width: 100%; }
.va46-btn-sm { padding: 0.5rem 1rem; font-size: 1.3rem; min-height: 36px; }

/* ===== Mobile slide-down menu ===== */
.va46-menu {
  position: fixed; top: var(--va46-header-h); left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: var(--va46-bg-2);
  border-bottom: 1px solid var(--va46-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  z-index: 9999;
}
.va46-menu.va46-open { max-height: 480px; padding: 0.6rem 1rem 1rem; box-shadow: var(--va46-shadow); }
.va46-menu-close { display: flex; justify-content: flex-end; }
.va46-menu-close button {
  background: none; border: none; color: var(--va46-muted);
  font-size: 2rem; cursor: pointer; padding: 0.2rem 0.6rem;
}
.va46-nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.va46-nav-link {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.2rem; border-radius: var(--va46-radius-sm);
  color: var(--va46-text); background: var(--va46-card);
  font-size: 1.5rem; font-weight: 600;
}
.va46-nav-link i, .va46-nav-link .material-icons-outlined { font-size: 2rem; color: var(--va46-primary); }
.va46-nav-link:hover { background: var(--va46-card-2); color: var(--va46-primary); }

/* ===== Slider ===== */
.va46-slider {
  position: relative; margin-top: calc(var(--va46-header-h) + 1rem);
  border-radius: var(--va46-radius); overflow: hidden;
  box-shadow: var(--va46-shadow); background: var(--va46-card);
}
.va46-slides { position: relative; height: 200px; }
.va46-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.va46-slide.va46-active { opacity: 1; position: relative; }
.va46-slide img { width: 100%; height: 200px; object-fit: cover; }
.va46-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem; font-size: 1.4rem; font-weight: 700; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.va46-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.6rem 0; background: var(--va46-card); }
.va46-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(240,248,255,0.4); cursor: pointer; transition: background 0.2s; }
.va46-dot.va46-active { background: var(--va46-primary); width: 20px; border-radius: 4px; }

/* ===== Sections ===== */
.va46-section { padding: 2rem 0; }
.va46-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.va46-section-head h2 { margin: 0; }
.va46-section-head .va46-link-more { font-size: 1.3rem; color: var(--va46-primary); }
.va46-eyebrow { color: var(--va46-primary); font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }

main { padding-bottom: calc(var(--va46-bottom-h) + 1.5rem); padding-top: 1rem; }

/* ===== Game grid ===== */
.va46-game-section { margin-bottom: 2.2rem; }
.va46-cat-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.va46-cat-head h3 { margin: 0; flex: 1; font-size: 1.8rem; }
.va46-cat-head .va46-cat-icon { font-size: 2.2rem; color: var(--va46-primary); }
.va46-cat-tag { background: var(--va46-bg-3); color: var(--va46-primary); padding: 0.2rem 0.8rem; border-radius: 12px; font-size: 1.1rem; font-weight: 700; }

.va46-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.va46-game-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--va46-card); border: 1px solid var(--va46-border);
  border-radius: var(--va46-radius-sm); padding: 0.6rem; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.va46-game-card:hover { transform: translateY(-3px); border-color: var(--va46-primary); }
.va46-game-thumb { width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--va46-bg-3); margin-bottom: 0.5rem; }
.va46-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.va46-game-name { font-size: 1.2rem; text-align: center; color: var(--va46-text); line-height: 1.25; min-height: 3rem; display: flex; align-items: center; justify-content: center; }

/* ===== Content cards / modules ===== */
.va46-card { background: var(--va46-card); border: 1px solid var(--va46-border); border-radius: var(--va46-radius); padding: 1.4rem; box-shadow: var(--va46-shadow); margin-bottom: 1.4rem; }
.va46-card-accent { border-left: 4px solid var(--va46-primary); }
.va46-card-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.va46-feature-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--va46-border); }
.va46-feature-row:last-child { border-bottom: none; }
.va46-feature-row .va46-feature-icon { font-size: 2.4rem; color: var(--va46-primary); flex-shrink: 0; width: 40px; text-align: center; }
.va46-feature-row h4 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.va46-feature-row p { margin: 0; font-size: 1.35rem; color: var(--va46-muted); }

.va46-list { list-style: none; padding: 0; }
.va46-list li { padding: 0.8rem 0; border-bottom: 1px dashed var(--va46-border); font-size: 1.4rem; color: var(--va46-text); display: flex; gap: 0.6rem; }
.va46-list li:last-child { border-bottom: none; }
.va46-list li i { color: var(--va46-primary); flex-shrink: 0; margin-top: 0.2rem; }

.va46-step { display: flex; gap: 1rem; padding: 1rem; background: var(--va46-card-2); border-radius: var(--va46-radius-sm); margin-bottom: 0.8rem; }
.va46-step-num { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--va46-primary), var(--va46-primary-2)); color: #1B263B; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.va46-step p { margin: 0; font-size: 1.4rem; }

/* FAQ */
.va46-faq-item { background: var(--va46-card); border: 1px solid var(--va46-border); border-radius: var(--va46-radius-sm); margin-bottom: 0.7rem; overflow: hidden; }
.va46-faq-q { padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.45rem; }
.va46-faq-q i { color: var(--va46-primary); }
.va46-faq-a { padding: 0 1.2rem 1rem; color: var(--va46-muted); font-size: 1.35rem; }

/* RTP table */
.va46-rtp-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--va46-border); font-size: 1.35rem; }
.va46-rtp-row:last-child { border-bottom: none; }
.va46-rtp-row span:last-child { color: var(--va46-primary); font-weight: 700; }
.va46-bar { height: 6px; background: var(--va46-bg-3); border-radius: 3px; margin-top: 0.3rem; overflow: hidden; }
.va46-bar-fill { height: 100%; background: linear-gradient(90deg, var(--va46-primary), var(--va46-primary-2)); border-radius: 3px; }

/* Testimonials */
.va46-testi { background: var(--va46-card-2); border-radius: var(--va46-radius-sm); padding: 1.2rem; margin-bottom: 0.8rem; }
.va46-testi-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.va46-testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--va46-accent-2), var(--va46-accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.va46-testi-name { font-weight: 700; font-size: 1.4rem; }
.va46-testi-stars { color: var(--va46-primary); font-size: 1.2rem; }
.va46-testi p { margin: 0; font-size: 1.35rem; color: var(--va46-muted); }

/* Winners ticker */
.va46-winner { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--va46-border); font-size: 1.35rem; }
.va46-winner:last-child { border-bottom: none; }
.va46-winner-name { color: var(--va46-text); font-weight: 600; }
.va46-winner-amount { color: var(--va46-success); font-weight: 800; }

/* Payment chips */
.va46-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.va46-pay-chip { background: var(--va46-card-2); border: 1px solid var(--va46-border); border-radius: 8px; padding: 0.6rem 1rem; display: flex; align-items: center; gap: 0.4rem; font-size: 1.3rem; font-weight: 600; }
.va46-pay-chip i { color: var(--va46-accent); }

/* Promo banner */
.va46-promo { background: linear-gradient(135deg, var(--va46-bg-3), var(--va46-card)); border: 1px solid var(--va46-border); border-radius: var(--va46-radius); padding: 1.4rem; text-align: center; margin-bottom: 1.4rem; }
.va46-promo h3 { color: var(--va46-primary); }
.va46-promo p { color: var(--va46-muted); }

/* App download CTA */
.va46-app-cta { display: flex; flex-direction: column; gap: 0.8rem; align-items: center; text-align: center; padding: 1.4rem; background: var(--va46-card); border-radius: var(--va46-radius); }
.va46-app-cta img { width: 100%; max-height: 180px; object-fit: cover; border-radius: var(--va46-radius-sm); }
.va46-app-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }

/* Inline text link */
.va46-inline-link { color: var(--va46-primary); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Reveal animation */
.va46-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.va46-reveal.va46-visible { opacity: 1; transform: translateY(0); }

/* ===== Footer ===== */
.va46-footer { background: var(--va46-bg-2); border-top: 1px solid var(--va46-border); padding: 2rem 1.2rem 1rem; margin-top: 2rem; }
.va46-footer-inner { max-width: 430px; margin: 0 auto; }
.va46-footer-about { font-size: 1.3rem; color: var(--va46-muted); margin-bottom: 1.2rem; }
.va46-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-bottom: 1.2rem; }
.va46-footer-links a { color: var(--va46-text); font-size: 1.3rem; }
.va46-footer-links a:hover { color: var(--va46-primary); }
.va46-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.va46-footer-copy { font-size: 1.2rem; color: var(--va46-muted); text-align: center; padding-top: 1rem; border-top: 1px solid var(--va46-border); }

/* ===== Mobile bottom nav ===== */
.va46-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--va46-bottom-h);
  background: linear-gradient(180deg, var(--va46-bg-2), var(--va46-bg));
  border-top: 1px solid var(--va46-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}
.va46-bottom-nav-inner { max-width: 430px; margin: 0 auto; display: flex; width: 100%; justify-content: space-around; }
.va46-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: none; border: none; color: var(--va46-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 1.1rem; cursor: pointer; transition: color 0.2s, transform 0.15s;
  padding: 0.4rem;
}
.va46-bottom-nav-btn i, .va46-bottom-nav-btn .material-icons-outlined, .va46-bottom-nav-btn .icon { font-size: 22px; }
.va46-bottom-nav-btn:hover { color: var(--va46-primary); transform: scale(1.05); }
.va46-bottom-nav-btn.va46-active { color: var(--va46-primary); }
.va46-bottom-nav-btn.va46-active::before {
  content: ""; position: absolute; top: 0; width: 32px; height: 3px;
  background: var(--va46-primary); border-radius: 0 0 4px 4px;
}
.va46-bottom-nav-btn { position: relative; }
.va46-bottom-nav-btn span { font-size: 1.05rem; }

/* ===== Desktop adjustments ===== */
@media (min-width: 769px) {
  .va46-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
  .va46-header-inner, .va46-menu, .va46-footer-inner { max-width: 768px; }
  .va46-slider, .va46-section, .va46-promo { max-width: 768px; margin-left: auto; margin-right: auto; }
  .va46-grid { grid-template-columns: repeat(6, 1fr); }
  .va46-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .va46-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 360px) {
  .va46-grid { grid-template-columns: repeat(2, 1fr); }
  .va46-brand-name { font-size: 1.6rem; }
}

/* Utility */
.va46-text-center { text-align: center; }
.va46-mt-1 { margin-top: 1rem; }
.va46-mt-2 { margin-top: 2rem; }
.va46-mb-2 { margin-bottom: 2rem; }
.va46-hidden { display: none; }
.va46-flex { display: flex; }
.va46-gap { gap: 0.6rem; }
.va46-wrap { flex-wrap: wrap; }
