/* =========================================================
 * 678k - Shared stylesheet
 * All custom class names use the "v439-" prefix.
 * Palette: dark backgrounds (#1C2833, #36454F) + tan/gold text
 *          accents (#D2B48C, #DEB887, #8B4513) on light text (#EEEEEE).
 * Mobile-first: main container max-width: 430px.
 * ======================================================= */

:root {
  --v439-bg:        #1C2833;
  --v439-bg-2:      #36454F;
  --v439-bg-3:      #24323E;
  --v439-text:      #EEEEEE;
  --v439-text-dim:  #C8CBD0;
  --v439-tan:       #D2B48C;
  --v439-wood:      #DEB887;
  --v439-brown:     #8B4513;
  --v439-gold:      #E8C77E;
  --v439-line:      rgba(210, 180, 140, 0.22);
  --v439-shadow:    0 6px 22px rgba(0, 0, 0, 0.45);
  --v439-radius:    14px;
}

/* ---- Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
  background: var(--v439-bg);
  color: var(--v439-text);
  line-height: 1.6;
  font-size: 1.5rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--v439-tan); text-decoration: none; }
a:hover { color: var(--v439-gold); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--v439-wood); }
p { color: var(--v439-text-dim); }

.v439-no-scroll { overflow: hidden; }

/* ---- Mobile-first container (max-width: 430px) ---- */
.v439-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.v439-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* ---- Header ---- */
.v439-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(28,40,51,0.98), rgba(28,40,51,0.92));
  border-bottom: 1px solid var(--v439-line);
  backdrop-filter: blur(6px);
}
.v439-header-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
.v439-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  gap: 8px;
}
.v439-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--v439-gold);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.5px;
}
.v439-logo img { width: 30px; height: 30px; border-radius: 8px; }
.v439-logo .v439-logo-text { color: var(--v439-gold); }
.v439-logo .v439-logo-sub  { color: var(--v439-brown); font-size: 1rem; font-weight: 700; }

.v439-header-actions { display: flex; align-items: center; gap: 7px; }
.v439-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 38px;
  text-decoration: none;
}
.v439-btn:active { transform: scale(0.96); }
.v439-btn-primary {
  background: linear-gradient(135deg, var(--v439-tan), var(--v439-brown));
  color: #1C2833;
  box-shadow: 0 4px 12px rgba(210,180,140,0.35);
}
.v439-btn-primary:hover { color: #1C2833; box-shadow: 0 6px 16px rgba(210,180,140,0.55); }
.v439-btn-ghost {
  background: transparent;
  color: var(--v439-tan);
  border: 1px solid var(--v439-tan);
}
.v439-btn-ghost:hover { background: rgba(210,180,140,0.12); }
.v439-menu-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(210,180,140,0.12);
  border: 1px solid var(--v439-line);
  border-radius: 10px;
  color: var(--v439-tan);
  cursor: pointer;
  font-size: 1.8rem;
}

/* ---- Mobile drawer + overlay ---- */
.v439-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.v439-mobile-menu {
  position: fixed;
  top: 0; right: -86%;
  width: 84%; max-width: 340px;
  height: 100%;
  background: var(--v439-bg-2);
  z-index: 9999;
  padding: 70px 18px 30px;
  overflow-y: auto;
  transition: right 0.28s ease;
  border-left: 1px solid var(--v439-line);
}
.v439-mobile-menu.v439-menu-open { right: 0; }
.v439-menu-overlay.v439-menu-open { opacity: 1; visibility: visible; }
.v439-menu-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(210,180,140,0.12);
  border: 1px solid var(--v439-line);
  border-radius: 50%;
  color: var(--v439-tan);
  font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.v439-menu-title {
  color: var(--v439-gold);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 6px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--v439-line);
}
.v439-menu-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 8px;
  color: var(--v439-text);
  font-size: 1.45rem;
  border-bottom: 1px dashed rgba(210,180,140,0.15);
}
.v439-menu-list a i { color: var(--v439-tan); width: 22px; text-align: center; }
.v439-menu-list a:hover { background: rgba(210,180,140,0.08); color: var(--v439-gold); }

/* ---- Main content spacing (clears fixed header + bottom nav) ---- */
main.v439-main {
  padding-top: 66px;
  padding-bottom: 80px;     /* reserve space for fixed bottom nav */
}

/* ---- Section + section headings ---- */
.v439-section { padding: 22px 0; }
.v439-section-alt { background: var(--v439-bg-3); }
.v439-section-title {
  font-size: 1.75rem;
  margin-bottom: 4px;
  color: var(--v439-gold);
}
.v439-section-title .v439-hl { color: var(--v439-brown); }
.v439-section-desc {
  color: var(--v439-text-dim);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* ---- Carousel ---- */
.v439-carousel {
  position: relative;
  border-radius: var(--v439-radius);
  overflow: hidden;
  box-shadow: var(--v439-shadow);
  margin: 14px 0 4px;
}
.v439-carousel-viewport { overflow: hidden; }
.v439-carousel-track {
  display: flex;
  transition: transform 0.55s ease;
}
.v439-carousel-slide {
  min-width: 100%;
  position: relative;
}
.v439-carousel-slide img {
  width: 100%; height: 200px; object-fit: cover;
}
.v439-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(28,40,51,0.92));
  color: var(--v439-text);
}
.v439-carousel-cap strong { color: var(--v439-gold); display: block; font-size: 1.5rem; }
.v439-carousel-cap span { font-size: 1.2rem; color: var(--v439-tan); }
.v439-carousel-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(28,40,51,0.72);
  border: 1px solid var(--v439-line);
  color: var(--v439-tan);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
}
.v439-carousel-prev { left: 8px; }
.v439-carousel-next { right: 8px; }
.v439-carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 6px;
}
.v439-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(238,238,238,0.45); cursor: pointer;
}
.v439-carousel-dot-active { background: var(--v439-gold); }

/* ---- Game grid (compact icon layout) ---- */
.v439-game-block { margin-bottom: 8px; }
.v439-game-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 0 10px;
}
.v439-game-head h2 {
  font-size: 1.6rem;
  display: flex; align-items: center; gap: 8px;
}
.v439-game-head h2 i { color: var(--v439-brown); }
.v439-game-head .v439-game-count {
  font-size: 1.2rem;
  color: var(--v439-tan);
  background: rgba(210,180,140,0.1);
  border: 1px solid var(--v439-line);
  padding: 3px 10px;
  border-radius: 12px;
}
.v439-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.v439-game-card {
  background: var(--v439-bg-2);
  border: 1px solid var(--v439-line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: block;
  text-align: center;
}
.v439-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--v439-tan);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}
.v439-game-card img {
  width: 100%; height: 84px; object-fit: cover;
}
.v439-game-card .v439-game-name {
  display: block;
  font-size: 1.15rem;
  color: var(--v439-text);
  padding: 6px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v439-game-card:hover .v439-game-name { color: var(--v439-gold); }

/* ---- Info card / feature blocks ---- */
.v439-card {
  background: var(--v439-bg-2);
  border: 1px solid var(--v439-line);
  border-radius: var(--v439-radius);
  padding: 16px;
  margin-bottom: 12px;
}
.v439-card h3 { font-size: 1.55rem; margin-bottom: 6px; color: var(--v439-gold); }
.v439-card h3 i { color: var(--v439-brown); margin-right: 6px; }
.v439-card p { font-size: 1.3rem; }
.v439-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.v439-feature-item {
  background: var(--v439-bg-3);
  border: 1px solid var(--v439-line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.v439-feature-item .v439-feature-ico {
  font-size: 2.2rem; color: var(--v439-tan); margin-bottom: 4px;
}
.v439-feature-item h4 { font-size: 1.3rem; color: var(--v439-gold); margin-bottom: 2px; }
.v439-feature-item p { font-size: 1.15rem; }

/* ---- Inline promo strip ---- */
.v439-promo-strip {
  background: linear-gradient(135deg, var(--v439-brown), var(--v439-bg-2));
  border: 1px solid var(--v439-tan);
  border-radius: var(--v439-radius);
  padding: 14px;
  margin: 16px 0;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--v439-shadow);
}
.v439-promo-strip .v439-promo-ico {
  font-size: 2.4rem; color: var(--v439-gold); flex-shrink: 0;
}
.v439-promo-strip .v439-promo-txt { flex: 1; }
.v439-promo-strip h3 { color: var(--v439-gold); font-size: 1.5rem; }
.v439-promo-strip p { color: var(--v439-text); font-size: 1.2rem; margin-top: 2px; }

/* ---- FAQ ---- */
.v439-faq-item {
  background: var(--v439-bg-2);
  border: 1px solid var(--v439-line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 9px;
}
.v439-faq-item h4 { color: var(--v439-gold); font-size: 1.35rem; margin-bottom: 4px; }
.v439-faq-item p { font-size: 1.25rem; }

/* ---- Testimonials ---- */
.v439-testi {
  background: var(--v439-bg-3);
  border-left: 3px solid var(--v439-tan);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.v439-testi .v439-testi-name { color: var(--v439-gold); font-weight: 700; font-size: 1.3rem; }
.v439-testi .v439-testi-text { font-size: 1.2rem; color: var(--v439-text-dim); margin-top: 3px; }
.v439-stars { color: #F2B33C; font-size: 1.1rem; margin-top: 3px; }

/* ---- Payment chips ---- */
.v439-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.v439-chip {
  background: var(--v439-bg-3);
  border: 1px solid var(--v439-line);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 1.15rem;
  color: var(--v439-tan);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---- Winners ---- */
.v439-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--v439-bg-2);
  border: 1px solid var(--v439-line);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 1.2rem;
}
.v439-winner strong { color: var(--v439-gold); }

/* ---- Reveal animation ---- */
.v439-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.v439-reveal-in { opacity: 1; transform: translateY(0); }

/* ---- Footer ---- */
.v439-footer {
  background: var(--v439-bg-3);
  border-top: 1px solid var(--v439-line);
  padding: 22px 0 96px;
  margin-top: 16px;
}
.v439-footer h4 { color: var(--v439-gold); font-size: 1.4rem; margin: 10px 0 6px; }
.v439-footer p { font-size: 1.2rem; }
.v439-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 10px 0;
}
.v439-footer-links a {
  font-size: 1.2rem;
  color: var(--v439-text-dim);
  display: inline-flex; align-items: center; gap: 6px;
}
.v439-footer-links a:hover { color: var(--v439-gold); }
.v439-footer-promo {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0;
}
.v439-footer-copy {
  text-align: center;
  font-size: 1.15rem;
  color: var(--v439-text-dim);
  border-top: 1px dashed var(--v439-line);
  padding-top: 10px; margin-top: 10px;
}

/* ---- Mobile bottom navigation ---- */
.v439-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  z-index: 1000;
  background: linear-gradient(180deg, var(--v439-bg-2), #1A2530);
  border-top: 1px solid var(--v439-tan);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.5);
}
.v439-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: 0;
  color: var(--v439-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}
.v439-bottomnav-btn i,
.v439-bottomnav-btn .material-icons-outlined,
.v439-bottomnav-btn .bi { font-size: 22px; }
.v439-bottomnav-btn:active { transform: scale(0.92); }
.v439-bottomnav-btn:hover { color: var(--v439-gold); }
.v439-bottomnav-btn.v439-bottomnav-active { color: var(--v439-gold); }
.v439-bottomnav-btn.v439-bottomnav-active i { color: var(--v439-gold); }
.v439-bottomnav-btn.v439-bottomnav-promo i { color: var(--v439-brown); }
.v439-bottomnav-btn.v439-bottomnav-promo .v439-bottomnav-label { color: var(--v439-gold); font-weight: 700; }

/* ---- Desktop behavior ---- */
@media (min-width: 769px) {
  .v439-bottomnav { display: none; }
  main.v439-main { padding-bottom: 30px; }
  .v439-container,
  .v439-wrapper,
  .v439-header-inner { max-width: 760px; }
  .v439-grid { grid-template-columns: repeat(6, 1fr); }
  .v439-feature-row { grid-template-columns: repeat(4, 1fr); }
  .v439-footer-links { grid-template-columns: repeat(3, 1fr); }
  .v439-carousel-slide img { height: 320px; }
}
