/* ============================================================
 * color game - layout.css
 * All custom classes use the vd4d- prefix.
 * Palette: #FF69B4 (pink) | #EEEEEE (light) | #0E1621 (dark) | #FF6347 (coral)
 * Mobile-first: max 430px container, responsive up to desktop.
 * ============================================================ */

:root {
  --vd4d-primary: #FF69B4;
  --vd4d-accent: #FF6347;
  --vd4d-bg: #0E1621;
  --vd4d-bg-light: #142031;
  --vd4d-bg-card: #1a2840;
  --vd4d-text: #EEEEEE;
  --vd4d-text-muted: #9aa8bd;
  --vd4d-border: #243350;
  --vd4d-gold: #FFD700;
  --vd4d-green: #2ecc71;
  --vd4d-blue: #4a9eff;
  --vd4d-radius: 14px;
  --vd4d-header-h: 56px;
  --vd4d-bottom-h: 62px;
  --vd4d-max: 430px;
  --vd4d-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--vd4d-bg);
  color: var(--vd4d-text);
  font-size: 1.5rem;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--vd4d-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ---------- Layout primitives ---------- */
.vd4d-wrapper {
  max-width: var(--vd4d-max);
  margin: 0 auto;
  padding: 0 1.2rem;
  width: 100%;
}
.vd4d-container { width: 100%; padding: 1.6rem 0; }
.vd4d-main { padding-top: calc(var(--vd4d-header-h) + 1rem); }
.vd4d-section { padding: 1.4rem 0; }
.vd4d-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.vd4d-section-title {
  font-size: 1.8rem; font-weight: 800;
  display: flex; align-items: center; gap: .6rem;
}
.vd4d-section-title i,
.vd4d-section-title .material-icons,
.vd4d-section-title bi { color: var(--vd4d-primary); font-size: 2rem; }
.vd4d-section-more { font-size: 1.2rem; color: var(--vd4d-primary); font-weight: 600; }
.vd4d-anchor-offset { scroll-margin-top: 70px; }

@media (max-width: 768px) {
  .vd4d-main { padding-bottom: calc(var(--vd4d-bottom-h) + 1.4rem); }
}

/* ---------- Header ---------- */
.vd4d-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--vd4d-header-h);
  background: rgba(14, 22, 33, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vd4d-border);
  z-index: 1000;
  transition: box-shadow .25s;
}
.vd4d-header-scrolled { box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55); }
.vd4d-header-inner {
  max-width: var(--vd4d-max); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
}
.vd4d-logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.8rem; color: var(--vd4d-text); }
.vd4d-logo img { width: 30px; height: 30px; border-radius: 8px; }
.vd4d-logo-text {
  background: linear-gradient(90deg, var(--vd4d-primary), var(--vd4d-accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vd4d-header-actions { display: flex; align-items: center; gap: .5rem; }

/* ---------- Buttons ---------- */
.vd4d-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .7rem 1.2rem;
  border-radius: 10px; font-size: 1.3rem; font-weight: 700;
  min-height: 36px;
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.vd4d-btn:active { transform: scale(.96); }
.vd4d-btn-primary {
  background: linear-gradient(135deg, var(--vd4d-primary), var(--vd4d-accent));
  color: #fff; box-shadow: 0 3px 10px rgba(255, 105, 180, .4);
}
.vd4d-btn-secondary {
  background: transparent; color: var(--vd4d-text);
  border: 1.5px solid var(--vd4d-primary);
}
.vd4d-btn-gold { background: linear-gradient(135deg, var(--vd4d-gold), #ffb347); color: #0E1621; }
.vd4d-btn-block { width: 100%; padding: 1rem; font-size: 1.5rem; }
.vd4d-btn-large { padding: 1.2rem 2rem; font-size: 1.6rem; }
.vd4d-link-text { color: var(--vd4d-primary); font-weight: 700; text-decoration: underline; }
.vd4d-tag {
  display: inline-block; padding: .2rem .7rem;
  background: rgba(255, 105, 180, .15); color: var(--vd4d-primary);
  border-radius: 6px; font-size: 1.05rem; font-weight: 600;
  margin-right: .4rem; margin-bottom: .3rem;
}
.vd4d-hamburger {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--vd4d-text); font-size: 2rem;
}
.vd4d-hamburger:active { background: var(--vd4d-bg-light); }

/* ---------- Mobile slide-in menu ---------- */
.vd4d-mobile-menu {
  position: fixed; top: 0; left: 0;
  width: 82%; max-width: 330px; height: 100vh;
  background: var(--vd4d-bg-light);
  border-right: 1px solid var(--vd4d-border);
  transform: translateX(-100%);
  transition: transform .3s ease;
  z-index: 9999; padding: 1.5rem; overflow-y: auto;
}
.vd4d-menu-open { transform: translateX(0); }
.vd4d-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.vd4d-overlay-active { opacity: 1; pointer-events: auto; }
.vd4d-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.vd4d-menu-title { font-size: 1.7rem; font-weight: 800; }
.vd4d-menu-close {
  width: 36px; height: 36px; border-radius: 8px; font-size: 1.8rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.vd4d-menu-close:active { background: var(--vd4d-bg-card); }
.vd4d-menu-list li { margin-bottom: .3rem; }
.vd4d-menu-list a {
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.2rem; border-radius: 10px;
  color: var(--vd4d-text); font-size: 1.4rem; font-weight: 500;
  transition: background .2s;
}
.vd4d-menu-list a:active, .vd4d-menu-list a:hover { background: var(--vd4d-bg-card); }
.vd4d-menu-list .material-icons,
.vd4d-menu-list i { font-size: 2rem; color: var(--vd4d-primary); }
.vd4d-menu-promo {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--vd4d-border);
  display: grid; gap: .6rem;
}
.vd4d-no-scroll { overflow: hidden; }

/* ---------- Desktop nav ---------- */
.vd4d-desktop-nav { display: none; }
@media (min-width: 769px) {
  .vd4d-desktop-nav { display: flex; gap: 1.4rem; align-items: center; }
  .vd4d-desktop-nav a { color: var(--vd4d-text); font-size: 1.3rem; font-weight: 500; }
  .vd4d-desktop-nav a:hover { color: var(--vd4d-primary); }
  .vd4d-hamburger { display: none; }
  .vd4d-wrapper { max-width: 760px; }
}

/* ---------- H1 / hero text ---------- */
.vd4d-h1 {
  font-size: 2.1rem; font-weight: 900;
  line-height: 1.3; margin: 1.4rem 0 1rem;
}
.vd4d-h1 span { color: var(--vd4d-primary); }
.vd4d-subtitle { color: var(--vd4d-text-muted); font-size: 1.3rem; margin-bottom: 1.2rem; line-height: 1.6; }

/* ---------- Carousel ---------- */
.vd4d-carousel { position: relative; border-radius: var(--vd4d-radius); overflow: hidden; box-shadow: var(--vd4d-shadow); }
.vd4d-slides { position: relative; aspect-ratio: 16/9; }
.vd4d-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .6s; cursor: pointer;
}
.vd4d-slide img { width: 100%; height: 100%; object-fit: cover; }
.vd4d-slide-active { opacity: 1; }
.vd4d-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(14, 22, 33, .9), transparent);
  font-size: 1.3rem; font-weight: 600;
}
.vd4d-slide-dots {
  position: absolute; bottom: .8rem; right: 1rem;
  display: flex; gap: .5rem; z-index: 2;
}
.vd4d-slide-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.vd4d-dot-active { background: var(--vd4d-primary); width: 18px; border-radius: 4px; }

/* ---------- Category quick chips ---------- */
.vd4d-chips { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .6rem; -webkit-overflow-scrolling: touch; }
.vd4d-chip {
  flex-shrink: 0; padding: .5rem 1.1rem; border-radius: 20px;
  background: var(--vd4d-bg-card); color: var(--vd4d-text-muted);
  font-size: 1.2rem; font-weight: 600;
  border: 1px solid var(--vd4d-border);
}
.vd4d-chip:active { background: var(--vd4d-primary); color: #fff; border-color: var(--vd4d-primary); }

/* ---------- Game grid ---------- */
.vd4d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
@media (min-width: 460px) { .vd4d-grid { grid-template-columns: repeat(4, 1fr); } }
.vd4d-game-card {
  background: var(--vd4d-bg-card); border-radius: 12px; padding: .5rem;
  text-align: center; border: 1px solid var(--vd4d-border);
  transition: transform .15s, border-color .2s, box-shadow .2s;
  cursor: pointer; display: block;
}
.vd4d-game-card:active { transform: scale(.95); border-color: var(--vd4d-primary); box-shadow: 0 3px 10px rgba(255, 105, 180, .3); }
.vd4d-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: .4rem; }
.vd4d-game-name {
  font-size: 1.1rem; color: var(--vd4d-text); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
}
.vd4d-game-section { margin-bottom: 1.6rem; }

/* ---------- Generic card / content block ---------- */
.vd4d-card {
  background: var(--vd4d-bg-card); border-radius: var(--vd4d-radius);
  padding: 1.4rem; border: 1px solid var(--vd4d-border); margin-bottom: 1rem;
}
.vd4d-card-title { font-size: 1.6rem; font-weight: 700; margin-bottom: .8rem; display: flex; align-items: center; gap: .6rem; }
.vd4d-card-title i, .vd4d-card-title .material-icons, .vd4d-card-title bi { color: var(--vd4d-accent); font-size: 2rem; }
.vd4d-card p { color: var(--vd4d-text-muted); margin-bottom: .6rem; line-height: 1.6; }
.vd4d-card p strong { color: var(--vd4d-text); }
.vd4d-card a { color: var(--vd4d-primary); font-weight: 600; }
.vd4d-card ul { padding-left: 1.4rem; }
.vd4d-card ul li { color: var(--vd4d-text-muted); margin-bottom: .4rem; line-height: 1.6; }
.vd4d-card ul li::marker { color: var(--vd4d-primary); }

/* ---------- Steps ---------- */
.vd4d-step { display: flex; gap: 1rem; padding: .8rem 0; border-bottom: 1px dashed var(--vd4d-border); }
.vd4d-step:last-child { border-bottom: none; }
.vd4d-step-num {
  flex-shrink: 0; width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--vd4d-primary), var(--vd4d-accent));
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700;
}
.vd4d-step-text { font-size: 1.3rem; color: var(--vd4d-text-muted); line-height: 1.5; }
.vd4d-step-text strong { color: var(--vd4d-text); }

/* ---------- FAQ ---------- */
.vd4d-faq-item { border-bottom: 1px solid var(--vd4d-border); padding: 1rem 0; }
.vd4d-faq-q { font-size: 1.4rem; font-weight: 700; color: var(--vd4d-text); display: flex; align-items: flex-start; gap: .6rem; }
.vd4d-faq-q i, .vd4d-faq-q .material-icons { color: var(--vd4d-primary); flex-shrink: 0; font-size: 1.8rem; }
.vd4d-faq-a { margin-top: .5rem; padding-left: 2.4rem; color: var(--vd4d-text-muted); font-size: 1.3rem; line-height: 1.6; }

/* ---------- RTP stats ---------- */
.vd4d-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.vd4d-stat { background: var(--vd4d-bg-light); border-radius: 10px; padding: 1rem; text-align: center; border: 1px solid var(--vd4d-border); }
.vd4d-stat-num {
  font-size: 2rem; font-weight: 900;
  background: linear-gradient(90deg, var(--vd4d-primary), var(--vd4d-accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.vd4d-stat-label { font-size: 1.1rem; color: var(--vd4d-text-muted); margin-top: .2rem; }

/* ---------- Testimonials ---------- */
.vd4d-testi { background: var(--vd4d-bg-light); border-radius: 12px; padding: 1.1rem; margin-bottom: .8rem; border-left: 3px solid var(--vd4d-primary); }
.vd4d-testi-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; }
.vd4d-testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--vd4d-primary), var(--vd4d-accent));
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
}
.vd4d-testi-name { font-size: 1.3rem; font-weight: 700; }
.vd4d-testi-stars { color: var(--vd4d-gold); font-size: 1.1rem; }
.vd4d-testi-text { color: var(--vd4d-text-muted); font-size: 1.25rem; line-height: 1.5; }

/* ---------- Winners ---------- */
.vd4d-winner-row { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--vd4d-border); }
.vd4d-winner-row:last-child { border-bottom: none; }
.vd4d-winner-name { font-size: 1.25rem; font-weight: 600; }
.vd4d-winner-game { font-size: 1.1rem; color: var(--vd4d-text-muted); }
.vd4d-winner-amount { color: var(--vd4d-green); font-weight: 800; font-size: 1.35rem; }

/* ---------- Payment ---------- */
.vd4d-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.vd4d-pay { background: var(--vd4d-bg-light); border-radius: 10px; padding: .8rem .4rem; text-align: center; border: 1px solid var(--vd4d-border); }
.vd4d-pay i, .vd4d-pay .material-icons { font-size: 2rem; color: var(--vd4d-primary); }
.vd4d-pay span { display: block; font-size: 1rem; margin-top: .2rem; color: var(--vd4d-text-muted); }

/* ---------- Achievements ---------- */
.vd4d-ach { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--vd4d-border); }
.vd4d-ach:last-child { border-bottom: none; }
.vd4d-ach-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 105, 180, .15); color: var(--vd4d-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0;
}
.vd4d-ach-text strong { display: block; font-size: 1.3rem; color: var(--vd4d-text); }
.vd4d-ach-text small { color: var(--vd4d-text-muted); font-size: 1.1rem; }

/* ---------- CTA banner ---------- */
.vd4d-cta {
  background: linear-gradient(135deg, rgba(255, 105, 180, .15), rgba(255, 99, 71, .15));
  border: 1px solid var(--vd4d-primary); border-radius: var(--vd4d-radius);
  padding: 1.6rem; text-align: center;
}
.vd4d-cta h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: .5rem; }
.vd4d-cta p { color: var(--vd4d-text-muted); margin-bottom: 1rem; font-size: 1.3rem; }

/* ---------- Footer ---------- */
.vd4d-footer { background: var(--vd4d-bg-light); border-top: 1px solid var(--vd4d-border); padding: 2rem 0 1rem; margin-top: 2rem; }
.vd4d-footer-brand { font-size: 1.7rem; font-weight: 800; margin-bottom: .6rem; }
.vd4d-footer-brand span { color: var(--vd4d-primary); }
.vd4d-footer-desc { color: var(--vd4d-text-muted); font-size: 1.2rem; margin-bottom: 1.2rem; line-height: 1.6; }
.vd4d-footer-promos { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.vd4d-footer-promos .vd4d-btn { font-size: 1.15rem; padding: .55rem .9rem; min-height: 32px; }
.vd4d-footer-links-title { font-size: 1.3rem; font-weight: 700; color: var(--vd4d-text); margin-bottom: .6rem; }
.vd4d-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem 1rem; margin-bottom: 1.2rem; }
.vd4d-footer-links a { color: var(--vd4d-text-muted); font-size: 1.2rem; padding: .3rem 0; }
.vd4d-footer-links a:hover { color: var(--vd4d-primary); }
.vd4d-footer-copy { text-align: center; font-size: 1.1rem; color: var(--vd4d-text-muted); padding-top: 1rem; border-top: 1px solid var(--vd4d-border); }

/* ---------- Mobile bottom nav ---------- */
.vd4d-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--vd4d-bottom-h);
  background: rgba(20, 32, 49, 0.98);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--vd4d-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 0 .3rem;
}
.vd4d-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; color: var(--vd4d-text-muted); font-size: 1rem;
  transition: color .2s, transform .15s; position: relative;
}
.vd4d-bottom-nav-btn i,
.vd4d-bottom-nav-btn .material-icons { font-size: 2.2rem; }
.vd4d-bottom-nav-btn:active { transform: scale(.9); }
.vd4d-bottom-nav-btn.vd4d-nav-active { color: var(--vd4d-primary); }
.vd4d-bottom-nav-btn.vd4d-nav-active::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 30px; height: 3px;
  background: var(--vd4d-primary); border-radius: 0 0 4px 4px;
}
.vd4d-nav-badge {
  position: absolute; top: 4px; right: 18%;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--vd4d-accent); color: #fff; font-size: 1rem;
  border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
@media (min-width: 769px) { .vd4d-bottom-nav { display: none; } }

/* ---------- Back to top ---------- */
.vd4d-to-top {
  position: fixed; right: 1.2rem; bottom: calc(var(--vd4d-bottom-h) + 1.2rem);
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--vd4d-primary), var(--vd4d-accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; z-index: 900; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .15s; box-shadow: var(--vd4d-shadow);
}
.vd4d-to-top-show { opacity: 1; pointer-events: auto; }
.vd4d-to-top:active { transform: scale(.9); }

/* ---------- Utilities ---------- */
.vd4d-text-center { text-align: center; }
.vd4d-mt-1 { margin-top: 1rem; }
.vd4d-mt-2 { margin-top: 2rem; }
.vd4d-mb-1 { margin-bottom: 1rem; }
.vd4d-hidden { display: none; }
.vd4d-row { display: flex; align-items: center; gap: .6rem; }
.vd4d-divider { height: 1px; background: var(--vd4d-border); margin: 1.2rem 0; border: none; }
