/* betpk-homes core stylesheet
 * All class names use prefix w3d73-. Comments in English only.
 * Mobile-first: max-width 430px primary, scales up to desktop.
 * Palette: #6F4E37 | #E5E5E5 | #F08080 | #FDF5E6 | #1A1A1A | #FF69B4
 * Dark colors as background, light colors as text accent.
 */

:root {
  --w3d73-primary: #6F4E37;
  --w3d73-accent: #FF69B4;
  --w3d73-coral: #F08080;
  --w3d73-cream: #FDF5E6;
  --w3d73-light: #E5E5E5;
  --w3d73-bg: #1A1A1A;
  --w3d73-bg2: #262018;
  --w3d73-text: #FDF5E6;
  --w3d73-muted: #c9b9a8;
  --w3d73-radius: 1.2rem;
  --w3d73-shadow: 0 0.4rem 1.4rem rgba(0,0,0,0.35);
  --w3d73-header-h: 5.6rem;
  --w3d73-nav-h: 6.4rem;
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--w3d73-bg);
  color: var(--w3d73-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

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

a { color: var(--w3d73-accent); text-decoration: none; }
a:hover { color: var(--w3d73-coral); }

/* ============ Layout primitives ============ */
.w3d73-container { width: 100%; padding: 0 1.2rem; }
.w3d73-wrapper { max-width: 430px; margin: 0 auto; }
.w3d73-grid { display: grid; gap: 1rem; }
.w3d73-section { padding: 2.4rem 1.2rem; }
.w3d73-section-title { font-size: 1.7rem; font-weight: 700; color: var(--w3d73-cream); margin-bottom: 0.6rem; }
.w3d73-section-title span { color: var(--w3d73-accent); }
.w3d73-section-sub { font-size: 1.3rem; color: var(--w3d73-muted); margin-bottom: 1.4rem; }

/* ============ Header ============ */
.w3d73-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--w3d73-header-h);
  background: linear-gradient(135deg, #2a2018 0%, #1A1A1A 100%);
  border-bottom: 0.2rem solid var(--w3d73-primary);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; z-index: 1000; box-shadow: var(--w3d73-shadow);
}
.w3d73-logo { display: flex; align-items: center; gap: 0.6rem; }
.w3d73-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.w3d73-logo-text { font-size: 1.6rem; font-weight: 800; color: var(--w3d73-accent); letter-spacing: 0.05rem; }
.w3d73-logo-text small { display: block; font-size: 1rem; color: var(--w3d73-muted); font-weight: 500; }

.w3d73-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w3d73-menu-btn {
  background: transparent; border: 0.1rem solid var(--w3d73-primary);
  color: var(--w3d73-cream); width: 3.6rem; height: 3.6rem; border-radius: 0.8rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; cursor: pointer;
}

/* ============ Buttons ============ */
.w3d73-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 1.3rem; font-weight: 700; padding: 0.8rem 1.4rem;
  border-radius: 2rem; border: none; cursor: pointer;
  min-height: 4.4rem; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.w3d73-btn:active { transform: scale(0.96); }
.w3d73-btn-login { background: var(--w3d73-cream); color: var(--w3d73-bg); }
.w3d73-btn-register { background: linear-gradient(135deg, var(--w3d73-accent), var(--w3d73-coral)); color: #1A1A1A; }
.w3d73-btn-cta {
  background: linear-gradient(135deg, var(--w3d73-accent), var(--w3d73-coral));
  color: #1A1A1A; padding: 1rem 2rem; font-size: 1.5rem; border-radius: 2.4rem;
  box-shadow: 0 0.4rem 1rem rgba(255,105,180,0.35);
}
.w3d73-btn-outline {
  background: transparent; border: 0.15rem solid var(--w3d73-accent); color: var(--w3d73-cream);
}

/* ============ Mobile menu (expandable nav) ============ */
.w3d73-mobile-menu {
  position: fixed; top: var(--w3d73-header-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--w3d73-bg2); border-bottom: 0.2rem solid var(--w3d73-primary);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease; z-index: 9999;
}
.w3d73-mobile-menu.w3d73-menu-open { max-height: 60rem; }
.w3d73-mobile-menu ul { list-style: none; padding: 1rem 1.2rem 1.4rem; }
.w3d73-mobile-menu li { border-bottom: 0.1rem solid rgba(111,78,55,0.4); }
.w3d73-mobile-menu a {
  display: block; padding: 1.1rem 0.4rem; color: var(--w3d73-cream); font-size: 1.4rem; font-weight: 600;
}
.w3d73-mobile-menu a i { color: var(--w3d73-accent); margin-right: 0.8rem; width: 2rem; text-align: center; }

/* ============ Hero / Carousel ============ */
.w3d73-hero { margin-top: var(--w3d73-header-h); }
.w3d73-carousel { position: relative; overflow: hidden; border-radius: 0 0 1.4rem 1.4rem; }
.w3d73-carousel-track { display: flex; transition: transform 0.5s ease; }
.w3d73-carousel-slide {
  min-width: 100%; position: relative; cursor: pointer;
}
.w3d73-carousel-slide img { width: 100%; height: 22rem; object-fit: cover; }
.w3d73-carousel-slide .w3d73-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(26,26,26,0.9));
  padding: 1.6rem 1.2rem 1.2rem;
}
.w3d73-carousel-slide h2 { font-size: 1.8rem; color: var(--w3d73-accent); margin-bottom: 0.4rem; }
.w3d73-carousel-slide p { font-size: 1.25rem; color: var(--w3d73-cream); }
.w3d73-carousel-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 5;
}
.w3d73-carousel-dots span {
  width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(253,245,230,0.4);
}
.w3d73-carousel-dots span.w3d73-dot-active { background: var(--w3d73-accent); }

/* ============ Hero CTA strip ============ */
.w3d73-hero-cta {
  display: flex; gap: 0.8rem; justify-content: center; padding: 1.4rem 1.2rem;
  background: var(--w3d73-bg2);
}

/* ============ Game grid ============ */
.w3d73-cat-block { margin-bottom: 1.6rem; }
.w3d73-cat-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.w3d73-cat-head i { color: var(--w3d73-accent); font-size: 1.6rem; }
.w3d73-cat-head h3 { font-size: 1.5rem; color: var(--w3d73-cream); font-weight: 700; }
.w3d73-cat-head .w3d73-cat-tag {
  margin-left: auto; font-size: 1rem; color: var(--w3d73-muted);
  background: rgba(111,78,55,0.4); padding: 0.2rem 0.8rem; border-radius: 1rem;
}
.w3d73-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.w3d73-game-card {
  background: var(--w3d73-bg2); border: 0.1rem solid rgba(111,78,55,0.5);
  border-radius: 0.8rem; overflow: hidden; cursor: pointer; transition: transform 0.15s ease;
}
.w3d73-game-card:active { transform: scale(0.96); }
.w3d73-game-card img { width: 100%; height: 8.4rem; object-fit: cover; }
.w3d73-game-card .w3d73-game-name {
  font-size: 1.05rem; color: var(--w3d73-cream); padding: 0.4rem 0.5rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600;
}

/* ============ Info / content cards ============ */
.w3d73-card {
  background: var(--w3d73-bg2); border: 0.1rem solid rgba(111,78,55,0.4);
  border-radius: var(--w3d73-radius); padding: 1.6rem; margin-bottom: 1.2rem;
}
.w3d73-card h3 { font-size: 1.5rem; color: var(--w3d73-accent); margin-bottom: 0.6rem; }
.w3d73-card p { font-size: 1.25rem; color: var(--w3d73-cream); margin-bottom: 0.6rem; line-height: 1.6rem; }
.w3d73-card ul { padding-left: 1.6rem; }
.w3d73-card li { font-size: 1.2rem; color: var(--w3d73-cream); margin-bottom: 0.4rem; }

/* ============ Features grid ============ */
.w3d73-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.w3d73-feature {
  background: var(--w3d73-bg2); border-radius: 1rem; padding: 1.2rem; text-align: center;
  border: 0.1rem solid rgba(111,78,55,0.4);
}
.w3d73-feature i { font-size: 2.4rem; color: var(--w3d73-accent); margin-bottom: 0.4rem; }
.w3d73-feature h4 { font-size: 1.2rem; color: var(--w3d73-cream); margin-bottom: 0.2rem; }
.w3d73-feature p { font-size: 1.05rem; color: var(--w3d73-muted); }

/* ============ Testimonials ============ */
.w3d73-testimonial {
  background: var(--w3d73-bg2); border-left: 0.3rem solid var(--w3d73-accent);
  padding: 1.2rem 1.4rem; border-radius: 0.8rem; margin-bottom: 1rem;
}
.w3d73-testimonial p { font-size: 1.25rem; color: var(--w3d73-cream); font-style: italic; margin-bottom: 0.5rem; }
.w3d73-testimonial .w3d73-author { font-size: 1.1rem; color: var(--w3d73-muted); }

/* ============ Winners strip ============ */
.w3d73-winners { display: flex; gap: 0.8rem; overflow-x: auto; padding: 0.4rem 0; }
.w3d73-winner {
  flex: 0 0 auto; background: var(--w3d73-bg2); border-radius: 0.8rem;
  padding: 0.8rem 1rem; border: 0.1rem solid rgba(255,105,180,0.3); min-width: 14rem;
}
.w3d73-winner .w3d73-wname { font-size: 1.15rem; color: var(--w3d73-accent); font-weight: 700; }
.w3d73-winner .w3d73-wgame { font-size: 1.05rem; color: var(--w3d73-cream); }
.w3d73-winner .w3d73-wamount { font-size: 1.3rem; color: var(--w3d73-coral); font-weight: 800; }

/* ============ Payment methods ============ */
.w3d73-payments { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.w3d73-pay {
  background: var(--w3d73-bg2); border: 0.1rem solid rgba(111,78,55,0.4);
  border-radius: 0.6rem; padding: 0.6rem 1rem; font-size: 1.1rem; color: var(--w3d73-cream);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.w3d73-pay i { color: var(--w3d73-accent); }

/* ============ App download CTA ============ */
.w3d73-app-cta {
  background: linear-gradient(135deg, rgba(255,105,180,0.15), rgba(111,78,55,0.25));
  border: 0.15rem solid var(--w3d73-accent); border-radius: var(--w3d73-radius);
  padding: 1.6rem; text-align: center;
}
.w3d73-app-cta h3 { font-size: 1.6rem; color: var(--w3d73-accent); margin-bottom: 0.6rem; }
.w3d73-app-cta p { font-size: 1.25rem; color: var(--w3d73-cream); margin-bottom: 1rem; }
.w3d73-app-cta .w3d73-app-btns { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* ============ FAQ ============ */
.w3d73-faq { border-bottom: 0.1rem solid rgba(111,78,55,0.4); padding: 1rem 0; }
.w3d73-faq summary {
  font-size: 1.3rem; color: var(--w3d73-cream); font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 0.6rem;
}
.w3d73-faq summary::-webkit-details-marker { display: none; }
.w3d73-faq summary i { color: var(--w3d73-accent); }
.w3d73-faq[open] summary i { transform: rotate(90deg); }
.w3d73-faq p { padding-top: 0.8rem; font-size: 1.2rem; color: var(--w3d73-muted); }

/* ============ Footer ============ */
.w3d73-footer {
  background: #181311; border-top: 0.2rem solid var(--w3d73-primary);
  padding: 2rem 1.2rem 9rem;
}
.w3d73-footer-brand { font-size: 1.5rem; color: var(--w3d73-accent); font-weight: 800; margin-bottom: 0.6rem; }
.w3d73-footer-desc { font-size: 1.15rem; color: var(--w3d73-muted); margin-bottom: 1.2rem; line-height: 1.6rem; }
.w3d73-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 1.4rem; }
.w3d73-footer-links a { font-size: 1.15rem; color: var(--w3d73-cream); padding: 0.4rem 0; }
.w3d73-footer-links a:hover { color: var(--w3d73-accent); }
.w3d73-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.w3d73-footer-copy { font-size: 1.05rem; color: var(--w3d73-muted); text-align: center; padding-top: 1rem; border-top: 0.1rem solid rgba(111,78,55,0.3); }

/* ============ Mobile bottom nav ============ */
.w3d73-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--w3d73-nav-h);
  background: linear-gradient(180deg, #2a2018 0%, #1A1A1A 100%);
  border-top: 0.15rem solid var(--w3d73-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -0.4rem 1rem rgba(0,0,0,0.4);
}
.w3d73-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--w3d73-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; transition: transform 0.15s ease, color 0.15s ease;
  font-family: inherit;
}
.w3d73-bottom-nav-btn i, .w3d73-bottom-nav-btn .material-icons,
.w3d73-bottom-nav-btn .ion { font-size: 2.2rem; line-height: 1; }
.w3d73-bottom-nav-btn span { font-size: 1.05rem; font-weight: 600; }
.w3d73-bottom-nav-btn:active { transform: scale(0.9); }
.w3d73-bottom-nav-btn.w3d73-nav-active { color: var(--w3d73-accent); }
.w3d73-bottom-nav-btn.w3d73-nav-active::before {
  content: ""; position: absolute; top: 0; width: 2.4rem; height: 0.25rem;
  background: var(--w3d73-accent); border-radius: 0 0 0.4rem 0.4rem;
}

/* Highlight promo nav button */
.w3d73-bottom-nav-btn.w3d73-nav-promo { color: var(--w3d73-coral); }

/* ============ Desktop ============ */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .w3d73-header, .w3d73-mobile-menu, .w3d73-footer, .w3d73-bottom-nav, .w3d73-wrapper { max-width: 1100px; }
  .w3d73-bottom-nav { display: none; }
  .w3d73-header { position: sticky; }
  .w3d73-hero { margin-top: 0; }
  .w3d73-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w3d73-features { grid-template-columns: repeat(4, 1fr); }
  .w3d73-footer-links { grid-template-columns: repeat(4, 1fr); }
  .w3d73-carousel-slide img { height: 32rem; }
}

/* ============ Mobile clearance ============ */
@media (max-width: 768px) {
  main { padding-bottom: 8rem; }
  .w3d73-footer { padding-bottom: 9rem; }
}
