/* ============================================================
 * rr8811 - core stylesheet (v5e8- prefix)
 * Palette: #1A1A1A | #F4A460 | #708090 | #191970 | #0000CD | #FFFFFF
 * Dark tones = background, light tones = text.
 * Mobile-first, max-width 430px, root font 62.5% (1rem = 10px).
 * ============================================================ */

:root {
  --v5e8-bg: #1A1A1A;
  --v5e8-bg-deep: #0e0e0e;
  --v5e8-bg-alt: #191970;       /* midnight blue */
  --v5e8-primary: #0000CD;       /* royal blue accent */
  --v5e8-accent: #F4A460;        /* sandy brown / gold */
  --v5e8-muted: #708090;         /* slate gray */
  --v5e8-text: #FFFFFF;
  --v5e8-text-soft: #d8d8e8;
  --v5e8-border: rgba(244,164,96,0.25);
  --v5e8-shadow: 0 4px 18px rgba(0,0,0,0.45);
  --v5e8-radius: 12px;
  --v5e8-header-h: 56px;
  --v5e8-bottom-h: 62px;
  font-size: 62.5%;
}

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

html, body {
  background: var(--v5e8-bg);
  color: var(--v5e8-text);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

/* ---------- Layout helpers ---------- */
.v5e8-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.v5e8-wrapper { padding: 14px 0; }
.v5e8-grid { display: grid; gap: 10px; }
.v5e8-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.v5e8-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v5e8-header-h);
  background: linear-gradient(90deg, var(--v5e8-bg-deep) 0%, var(--v5e8-bg-alt) 100%);
  border-bottom: 1px solid var(--v5e8-border);
  box-shadow: var(--v5e8-shadow);
}
.v5e8-header-inner {
  height: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.v5e8-logo { display: flex; align-items: center; gap: 8px; color: var(--v5e8-text); }
.v5e8-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v5e8-logo-text {
  font-weight: 800; font-size: 1.9rem; letter-spacing: .5px;
  color: var(--v5e8-accent);
}
.v5e8-header-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Buttons ---------- */
.v5e8-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border: none; border-radius: 20px;
  font-size: 1.35rem; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; color: var(--v5e8-text); touch-action: manipulation;
}
.v5e8-btn:active { transform: scale(.96); }
.v5e8-btn-register {
  background: linear-gradient(135deg, var(--v5e8-accent) 0%, #ff7f50 100%);
  color: #1a1a1a; box-shadow: 0 3px 10px rgba(244,164,96,.45);
}
.v5e8-btn-login {
  background: var(--v5e8-primary); color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,205,.4);
}
.v5e8-btn-ghost {
  background: transparent; border: 1px solid var(--v5e8-accent); color: var(--v5e8-accent);
}
.v5e8-btn-block { display: flex; width: 100%; padding: 12px 16px; min-height: 44px; font-size: 1.55rem; }
.v5e8-icon-btn {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: var(--v5e8-text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 2rem; border: 1px solid var(--v5e8-border);
}

/* ---------- Mobile menu ---------- */
.v5e8-menu-btn { display: inline-flex; }
.v5e8-mobile-menu {
  position: fixed; top: var(--v5e8-header-h); left: 0; right: 0;
  background: var(--v5e8-bg-deep); border-bottom: 1px solid var(--v5e8-border);
  z-index: 9999; max-height: 0; overflow: hidden;
  transition: max-height .28s ease; box-shadow: var(--v5e8-shadow);
}
.v5e8-mobile-menu.v5e8-menu-open { max-height: 80vh; overflow-y: auto; }
.v5e8-mobile-menu a {
  display: block; padding: 13px 18px; color: var(--v5e8-text-soft);
  border-bottom: 1px solid rgba(255,255,255,.05); font-size: 1.45rem;
}
.v5e8-mobile-menu a:hover { background: rgba(244,164,96,.08); color: var(--v5e8-accent); text-decoration: none; }

/* ---------- Desktop nav (hidden on mobile) ---------- */
.v5e8-desktop-nav { display: none; }
@media (min-width: 769px) {
  .v5e8-desktop-nav { display: flex; gap: 18px; align-items: center; }
  .v5e8-desktop-nav a { color: var(--v5e8-text-soft); font-size: 1.4rem; }
  .v5e8-desktop-nav a:hover { color: var(--v5e8-accent); }
  .v5e8-menu-btn { display: none; }
}

/* ---------- Main / spacing ---------- */
main { padding-top: calc(var(--v5e8-header-h) + 6px); }
@media (max-width: 768px) { main { padding-bottom: calc(var(--v5e8-bottom-h) + 14px); } }

/* ---------- Carousel ---------- */
.v5e8-carousel {
  position: relative; border-radius: var(--v5e8-radius); overflow: hidden;
  box-shadow: var(--v5e8-shadow); margin: 12px 0;
}
.v5e8-carousel-viewport { overflow: hidden; }
.v5e8-carousel-track { display: flex; transition: transform var(--v5e8-carousel-transition-ms, .48s) ease; }
.v5e8-slide { min-width: 100%; position: relative; }
.v5e8-slide img { width: 100%; height: 180px; object-fit: cover; }
.v5e8-slide-caption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: rgba(26,26,26,.62); padding: 8px 12px; border-radius: 8px;
  font-size: 1.3rem; color: #fff;
}
.v5e8-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.v5e8-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45);
  border: none; cursor: pointer; padding: 0;
}
.v5e8-carousel-dot-active { background: var(--v5e8-accent); width: 20px; border-radius: 4px; }

/* ---------- Sections ---------- */
.v5e8-section { padding: 18px 0; }
.v5e8-section-title {
  font-size: 1.85rem; font-weight: 800; margin-bottom: 4px;
  color: var(--v5e8-accent); display: flex; align-items: center; gap: 8px;
}
.v5e8-section-title .material-icons,
.v5e8-section-title i { font-size: 2.2rem; }
.v5e8-section-sub { color: var(--v5e8-muted); font-size: 1.25rem; margin-bottom: 12px; }
.v5e8-card {
  background: linear-gradient(160deg, #20202a 0%, #15151f 100%);
  border: 1px solid var(--v5e8-border); border-radius: var(--v5e8-radius);
  padding: 14px; box-shadow: var(--v5e8-shadow);
}
.v5e8-intro { color: var(--v5e8-text-soft); font-size: 1.4rem; line-height: 1.55; }
.v5e8-intro strong, .v5e8-intro b { color: var(--v5e8-accent); }

/* ---------- Game grid ---------- */
.v5e8-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (min-width: 430px) { .v5e8-game-grid { grid-template-columns: repeat(4, 1fr); } }
.v5e8-game-card {
  background: #14141c; border: 1px solid var(--v5e8-border); border-radius: 10px;
  overflow: hidden; cursor: pointer; transition: transform .15s ease, border-color .15s ease;
  text-align: center; display: flex; flex-direction: column;
}
.v5e8-game-card:hover { transform: translateY(-3px); border-color: var(--v5e8-accent); }
.v5e8-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.v5e8-game-name {
  font-size: 1.15rem; padding: 5px 4px; color: var(--v5e8-text-soft);
  line-height: 1.2; min-height: 30px;
}
.v5e8-category-tag {
  display: inline-block; font-size: 1.15rem; padding: 3px 10px; border-radius: 12px;
  background: rgba(244,164,96,.14); color: var(--v5e8-accent); margin-bottom: 10px;
}

/* ---------- Feature / info blocks ---------- */
.v5e8-feature-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.v5e8-feature {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px;
  background: #15151f; border-radius: 10px; border-left: 3px solid var(--v5e8-accent);
}
.v5e8-feature .material-icons,
.v5e8-feature i { font-size: 2.4rem; color: var(--v5e8-accent); }
.v5e8-feature h3 { font-size: 1.45rem; margin-bottom: 4px; color: #fff; }
.v5e8-feature p { font-size: 1.25rem; color: var(--v5e8-text-soft); }

.v5e8-rtp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.v5e8-rtp-item {
  background: #14141c; border: 1px solid var(--v5e8-border); border-radius: 8px; padding: 8px;
  text-align: center;
}
.v5e8-rtp-item .v5e8-rtp-name { font-size: 1.2rem; color: var(--v5e8-text-soft); }
.v5e8-rtp-item .v5e8-rtp-value { font-size: 1.7rem; font-weight: 800; color: var(--v5e8-accent); }

/* ---------- FAQ ---------- */
.v5e8-faq { border: 1px solid var(--v5e8-border); border-radius: 10px; overflow: hidden; margin-bottom: 8px; background: #15151f; }
.v5e8-faq-head {
  width: 100%; text-align: left; padding: 12px 14px; background: none; border: none;
  color: var(--v5e8-text); font-size: 1.35rem; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.v5e8-faq-body { padding: 0 14px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; color: var(--v5e8-text-soft); font-size: 1.25rem; }
.v5e8-faq.v5e8-faq-open .v5e8-faq-body { padding: 0 14px 12px; max-height: 320px; }

/* ---------- Testimonials / winners ---------- */
.v5e8-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.v5e8-row > * { flex: 0 0 80%; scroll-snap-align: start; }
.v5e8-testimonial { background: #15151f; border: 1px solid var(--v5e8-border); border-radius: 10px; padding: 12px; }
.v5e8-testimonial .v5e8-stars { color: var(--v5e8-accent); font-size: 1.3rem; }
.v5e8-testimonial p { font-size: 1.25rem; color: var(--v5e8-text-soft); margin: 6px 0; }
.v5e8-testimonial .v5e8-author { font-size: 1.15rem; color: var(--v5e8-muted); }
.v5e8-winner {
  background: linear-gradient(135deg, #1d1d2b 0%, #14141c 100%);
  border: 1px solid var(--v5e8-border); border-radius: 10px; padding: 10px; text-align: center;
}
.v5e8-winner .v5e8-amount { color: var(--v5e8-accent); font-weight: 800; font-size: 1.5rem; }

/* ---------- Payment / app CTA ---------- */
.v5e8-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.v5e8-pay-badge {
  background: #15151f; border: 1px solid var(--v5e8-border); border-radius: 8px;
  padding: 8px 12px; font-size: 1.2rem; color: var(--v5e8-text-soft);
  display: inline-flex; align-items: center; gap: 6px;
}
.v5e8-cta {
  background: linear-gradient(135deg, var(--v5e8-bg-alt) 0%, var(--v5e8-bg-deep) 100%);
  border: 1px solid var(--v5e8-border); border-radius: var(--v5e8-radius);
  padding: 18px; text-align: center; box-shadow: var(--v5e8-shadow);
}
.v5e8-cta h2 { color: var(--v5e8-accent); font-size: 1.9rem; margin-bottom: 8px; }
.v5e8-cta p { color: var(--v5e8-text-soft); margin-bottom: 14px; }

/* ---------- Inline affiliate text links ---------- */
.v5e8-aff-link {
  color: var(--v5e8-accent); font-weight: 700; cursor: pointer;
  text-decoration: underline; display: inline;
}

/* ---------- Footer ---------- */
.v5e8-footer {
  background: var(--v5e8-bg-deep); border-top: 1px solid var(--v5e8-border);
  padding: 22px 0 calc(var(--v5e8-bottom-h) + 22px); margin-top: 18px;
}
@media (min-width: 769px) { .v5e8-footer { padding-bottom: 22px; } }
.v5e8-footer-brand { color: var(--v5e8-text-soft); font-size: 1.25rem; line-height: 1.55; margin-bottom: 12px; }
.v5e8-footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0; }
.v5e8-footer-links a { font-size: 1.2rem; color: var(--v5e8-muted); }
.v5e8-footer-links a:hover { color: var(--v5e8-accent); }
.v5e8-footer-copy { color: var(--v5e8-muted); font-size: 1.15rem; margin-top: 10px; }

/* ---------- Mobile bottom navigation ---------- */
.v5e8-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v5e8-bottom-h);
  background: linear-gradient(180deg, var(--v5e8-bg-deep) 0%, #000 100%);
  border-top: 1px solid var(--v5e8-border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 14px rgba(0,0,0,.55);
}
.v5e8-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: none; border: none;
  color: var(--v5e8-muted); cursor: pointer; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 1.05rem; padding: 6px 2px; transition: color .15s ease, transform .15s ease;
}
.v5e8-bottom-nav-btn:active { transform: scale(.92); }
.v5e8-bottom-nav-btn .material-icons,
.v5e8-bottom-nav-btn i,
.v5e8-bottom-nav-btn ion-icon { font-size: 2.4rem; }
.v5e8-bottom-nav-btn span { font-size: 1.05rem; }
.v5e8-bottom-nav-btn:hover { color: var(--v5e8-accent); text-decoration: none; }
.v5e8-bottom-nav-active { color: var(--v5e8-accent); }
.v5e8-bottom-nav-active::before {
  content: ""; position: absolute; top: 0; width: 32px; height: 3px;
  background: var(--v5e8-accent); border-radius: 0 0 4px 4px;
}
.v5e8-bottom-nav-promo { color: var(--v5e8-accent); position: relative; }
.v5e8-bottom-nav-promo::after {
  content: "HOT"; position: absolute; top: 4px; right: 10px;
  background: #ff3b3b; color: #fff; font-size: .85rem; font-weight: 800;
  padding: 1px 4px; border-radius: 6px; line-height: 1.2;
}
@media (min-width: 769px) { .v5e8-bottom-nav { display: none; } }
