/* ============================================================
 * 30jili slot - design-d2c8.css
 * Core stylesheet (class prefix: v8d9-)
 * Mobile-first, max-width 430px, root font 62.5% (1rem = 10px)
 * Palette: #F0FDFF | #AFEEEE | #4682B4 | #495057 | #87CEEB | #3A3A3A
 * Comments in English only.
 * ============================================================ */

:root {
  --v8d9-primary: #4682B4;
  --v8d9-secondary: #87CEEB;
  --v8d9-light: #F0FDFF;
  --v8d9-mint: #AFEEEE;
  --v8d9-text: #495057;
  --v8d9-dark: #3A3A3A;
  --v8d9-bg: #0f2233;
  --v8d9-bg2: #163047;
  --v8d9-card: #ffffff;
  --v8d9-accent: #ffd24a;
  --v8d9-danger: #ff5a5f;
  --v8d9-radius: 1.4rem;
  --v8d9-shadow: 0 0.6rem 1.6rem rgba(0,0,0,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, var(--v8d9-light) 0%, var(--v8d9-mint) 100%);
  color: var(--v8d9-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--v8d9-primary); text-decoration: none; }

/* ---------- Layout ---------- */
.v8d9-wrapper { width: 100%; max-width: 430px; margin: 0 auto; background: var(--v8d9-light); min-height: 100vh; position: relative; }
.v8d9-container { width: 100%; padding: 0 1.2rem; }
.v8d9-section { padding: 2.4rem 1.2rem; }
.v8d9-grid { display: grid; gap: 1rem; }

/* ---------- Header ---------- */
.v8d9-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem;
  background: linear-gradient(100deg, var(--v8d9-primary), var(--v8d9-secondary));
  color: #fff; box-shadow: 0 .3rem .8rem rgba(0,0,0,.18);
}
.v8d9-brand { display: flex; align-items: center; gap: 0.6rem; }
.v8d9-brand img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.v8d9-brand-text { font-weight: 700; font-size: 1.5rem; letter-spacing: .2px; }
.v8d9-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v8d9-menu-btn {
  background: rgba(255,255,255,.18); border: 0; color: #fff; width: 3.2rem; height: 3.2rem;
  border-radius: 0.8rem; font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
}
.v8d9-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; border: 0;
  padding: 0.7rem 1.1rem; border-radius: 1rem; font-size: 1.3rem; font-weight: 700;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; min-height: 3.6rem;
}
.v8d9-btn:active { transform: scale(0.96); }
.v8d9-btn-register { background: var(--v8d9-accent); color: var(--v8d9-dark); box-shadow: 0 .3rem .6rem rgba(0,0,0,.18); }
.v8d9-btn-login { background: rgba(255,255,255,.92); color: var(--v8d9-primary); }

/* ---------- Mobile slide-down menu ---------- */
.v8d9-mobile-menu {
  position: fixed; top: 5.2rem; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 9999;
  background: var(--v8d9-bg2); color: #fff;
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  border-radius: 0 0 1.2rem 1.2rem;
}
.v8d9-mobile-menu.v8d9-menu-open { max-height: 32rem; }
.v8d9-mobile-menu a {
  display: block; padding: 1rem 1.4rem; color: #eaf6ff;
  border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.4rem;
}
.v8d9-mobile-menu a:active { background: rgba(255,255,255,.08); }

/* ---------- Spacer to offset fixed header ---------- */
.v8d9-header-spacer { height: 5.4rem; }

/* ---------- Hero / Carousel ---------- */
.v8d9-carousel { position: relative; width: 100%; border-radius: var(--v8d9-radius); overflow: hidden; box-shadow: var(--v8d9-shadow); }
.v8d9-slide { display: none; position: relative; }
.v8d9-slide.v8d9-active { display: block; }
.v8d9-slide img { width: 100%; height: 17rem; object-fit: cover; cursor: pointer; }
.v8d9-slide-caption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(15,34,51,.55); color: #fff; padding: 0.7rem 0.9rem;
  border-radius: 0.8rem; font-size: 1.25rem; font-weight: 600;
}
.v8d9-dots { position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.v8d9-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(255,255,255,.55); }
.v8d9-dot.v8d9-dot-active { background: var(--v8d9-accent); }

/* ---------- Section headings ---------- */
.v8d9-h1 { font-size: 2rem; line-height: 2.4rem; color: var(--v8d9-dark); font-weight: 800; margin-bottom: 1rem; }
.v8d9-h2 { font-size: 1.75rem; line-height: 2.1rem; color: var(--v8d9-primary); font-weight: 700; margin: 1.4rem 0 0.8rem; }
.v8d9-h3 { font-size: 1.45rem; color: var(--v8d9-dark); font-weight: 700; margin: 1rem 0 0.5rem; }
.v8d9-lead { font-size: 1.4rem; color: var(--v8d9-text); margin-bottom: 1rem; }
.v8d9-p { margin-bottom: 0.9rem; color: var(--v8d9-text); }

/* ---------- Cards ---------- */
.v8d9-card {
  background: var(--v8d9-card); border-radius: var(--v8d9-radius);
  padding: 1.2rem; box-shadow: var(--v8d9-shadow); margin-bottom: 1.2rem;
}
.v8d9-card-accent { border-left: 0.4rem solid var(--v8d9-accent); }
.v8d9-card-primary { border-left: 0.4rem solid var(--v8d9-primary); }

/* ---------- Game grid (compact icons) ---------- */
.v8d9-game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.v8d9-game-item { display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; background: #fff; border-radius: 1rem; padding: 0.5rem; transition: transform .15s ease; }
.v8d9-game-item:active { transform: scale(0.94); }
.v8d9-game-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 0.7rem; }
.v8d9-game-name { font-size: 1.05rem; margin-top: 0.3rem; color: var(--v8d9-dark); font-weight: 600; line-height: 1.3rem; min-height: 2.6rem; }

/* ---------- Category section title ---------- */
.v8d9-cat-title { display: flex; align-items: center; gap: 0.6rem; margin: 1.6rem 0 0.8rem; }
.v8d9-cat-title h2 { font-size: 1.6rem; color: var(--v8d9-dark); }
.v8d9-cat-badge { background: var(--v8d9-accent); color: var(--v8d9-dark); border-radius: 0.6rem; font-size: 1rem; padding: 0.2rem 0.6rem; font-weight: 700; }

/* ---------- Buttons (promotional) ---------- */
.v8d9-cta {
  display: inline-block; background: var(--v8d9-accent); color: var(--v8d9-dark);
  padding: 1rem 1.6rem; border-radius: 1rem; font-weight: 800; font-size: 1.45rem;
  box-shadow: var(--v8d9-shadow); cursor: pointer; text-align: center;
}
.v8d9-cta-secondary { background: var(--v8d9-primary); color: #fff; }
.v8d9-link-text { color: var(--v8d9-primary); font-weight: 700; text-decoration: underline; }

/* ---------- Info / feature grid ---------- */
.v8d9-feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.v8d9-feat { background: #fff; border-radius: 1rem; padding: 1rem; text-align: center; box-shadow: var(--v8d9-shadow); }
.v8d9-feat i { font-size: 2.4rem; color: var(--v8d9-primary); }
.v8d9-feat h3 { font-size: 1.3rem; margin: 0.4rem 0; }
.v8d9-feat p { font-size: 1.2rem; color: var(--v8d9-text); }

/* ---------- RTP table ---------- */
.v8d9-rtp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: var(--v8d9-shadow); }
.v8d9-rtp-table th, .v8d9-rtp-table td { padding: 0.7rem 0.9rem; font-size: 1.25rem; border-bottom: 1px solid #eef4f8; text-align: left; }
.v8d9-rtp-table th { background: var(--v8d9-primary); color: #fff; }
.v8d9-rtp-table tr:last-child td { border-bottom: 0; }

/* ---------- Testimonials ---------- */
.v8d9-review { background: #fff; border-radius: 1rem; padding: 1rem; margin-bottom: 0.8rem; box-shadow: var(--v8d9-shadow); border-left: 0.4rem solid var(--v8d9-secondary); }
.v8d9-review-stars { color: var(--v8d9-accent); font-size: 1.2rem; }
.v8d9-review p { font-size: 1.25rem; margin-top: 0.3rem; }

/* ---------- Payment icons ---------- */
.v8d9-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v8d9-pay-chip { background: #fff; border-radius: 0.8rem; padding: 0.5rem 0.9rem; font-size: 1.15rem; font-weight: 700; color: var(--v8d9-primary); box-shadow: var(--v8d9-shadow); }

/* ---------- Winners ---------- */
.v8d9-winner { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 0.7rem 0.9rem; border-radius: 0.8rem; margin-bottom: 0.5rem; box-shadow: var(--v8d9-shadow); }
.v8d9-winner span { font-size: 1.2rem; }
.v8d9-winner b { color: var(--v8d9-accent); }

/* ---------- Steps ---------- */
.v8d9-steps { counter-reset: step; }
.v8d9-step { position: relative; padding: 0.6rem 0 0.6rem 3rem; margin-bottom: 0.6rem; }
.v8d9-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0.3rem; width: 2.2rem; height: 2.2rem;
  background: var(--v8d9-primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem;
}

/* ---------- Footer ---------- */
.v8d9-footer { background: var(--v8d9-bg); color: #cfe6f5; padding: 2rem 1.2rem; }
.v8d9-footer h3 { color: #fff; margin-bottom: 0.6rem; font-size: 1.4rem; }
.v8d9-footer a { color: #cfe6f5; }
.v8d9-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0.8rem 0; }
.v8d9-footer-links a { font-size: 1.2rem; text-decoration: underline; }
.v8d9-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.v8d9-footer-promo a { background: var(--v8d9-accent); color: var(--v8d9-dark); padding: 0.6rem 1rem; border-radius: 0.8rem; font-weight: 700; font-size: 1.2rem; }
.v8d9-footer-copy { font-size: 1.1rem; color: #8fb3cc; margin-top: 1rem; }

/* ---------- Bottom navigation (mobile) ---------- */
.v8d9-bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000; height: 6rem;
  background: linear-gradient(100deg, var(--v8d9-primary), var(--v8d9-secondary));
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -0.3rem 0.8rem rgba(0,0,0,.18); border-radius: 1.2rem 1.2rem 0 0;
}
.v8d9-bottomnav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5.4rem; color: #eaf6ff; cursor: pointer;
  font-size: 1.05rem; transition: transform .15s ease, color .15s ease;
}
.v8d9-bottomnav-item:active { transform: scale(0.9); }
.v8d9-bottomnav-item .material-icons,
.v8d9-bottomnav-item .fas,
.v8d9-bottomnav-item .far,
.v8d9-bottomnav-item ion-icon,
.v8d9-bottomnav-item .bi { font-size: 2.2rem; }
.v8d9-bottomnav-item ion-icon { font-size: 2.2rem; }
.v8d9-bottomnav-active { color: var(--v8d9-accent); }

/* ---------- Reveal animation ---------- */
.v8d9-reveal { opacity: 0; transform: translateY(1.2rem); transition: opacity .5s ease, transform .5s ease; }
.v8d9-visible { opacity: 1; transform: translateY(0); }

/* ---------- Mobile main padding for bottom nav clearance ---------- */
main { padding-bottom: 8rem; }

/* ---------- Back to top ---------- */
.v8d9-totop {
  position: fixed; right: 1.2rem; bottom: 7rem; z-index: 1100;
  width: 4rem; height: 4rem; border-radius: 50%; background: var(--v8d9-primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--v8d9-shadow); cursor: pointer; font-size: 1.6rem;
}

/* ---------- Desktop: hide bottom nav ---------- */
@media (min-width: 769px) {
  .v8d9-bottomnav { display: none; }
  main { padding-bottom: 2rem; }
}

/* ---------- Responsive tuning (max-width 430px) ---------- */
@media (max-width: 430px) {
  html { font-size: 60%; }
  .v8d9-game-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .v8d9-game-name { font-size: 1.05rem; min-height: 2.4rem; }
  .v8d9-h1 { font-size: 1.85rem; }
  .v8d9-slide img { height: 15rem; }
  .v8d9-section { padding: 1.8rem 1rem; }
  .v8d9-brand-text { font-size: 1.35rem; }
  .v8d9-btn { padding: 0.6rem 0.9rem; font-size: 1.2rem; }
}

/* ---------- Extra small screens ---------- */
@media (max-width: 360px) {
  .v8d9-game-grid { grid-template-columns: repeat(2, 1fr); }
  .v8d9-feat-grid { grid-template-columns: 1fr; }
  .v8d9-brand-text { display: none; }
}
