/*!
 * sz777 asia - shared layout (basefiles)
 * Class prefix: v64d- | Function prefix: web626 | Image hash: c6264db5
 * Palette: #CD853F | #0C0C0C | #00FFFF | #8B0000 | #E5E5E5 | #80CBC4
 */

:root {
  --v64d-primary: #CD853F;       /* peru / brand gold */
  --v64d-bg: #0C0C0C;            /* near-black background */
  --v64d-accent: #00FFFF;        /* electric cyan */
  --v64d-deep: #8B0000;          /* dark red */
  --v64d-text: #E5E5E5;          /* light grey body text */
  --v64d-mint: #80CBC4;          /* soft teal */
  --v64d-card: #161616;
  --v64d-card-2: #1f1a14;
  --v64d-border: rgba(205, 133, 63, 0.28);
  --v64d-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.55);
  --v64d-radius: 1rem;
  --v64d-max-w: 430px;
}

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

html {
  font-size: 62.5%;              /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: var(--v64d-bg);
  color: var(--v64d-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: var(--v64d-max-w);
  margin: 0 auto;
  overflow-x: hidden;
  padding-bottom: 8rem;          /* space for fixed bottom nav */
}

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

a { color: var(--v64d-mint); text-decoration: none; }
a:hover { color: var(--v64d-accent); }

h1, h2, h3 { color: #fff; line-height: 1.8rem; }
h1 { font-size: 2rem; margin: 1.2rem 0; }
h2 { font-size: 1.7rem; margin: 1rem 0; }
h3 { font-size: 1.45rem; margin: 0.8rem 0; }
p { margin: 0.6rem 0; }

/* ============ Header ============ */
.v64d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1206 0%, #0C0C0C 100%);
  border-bottom: 0.2rem solid var(--v64d-primary);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.v64d-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.v64d-brand img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.v64d-brand-name {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--v64d-primary);
  white-space: nowrap;
  letter-spacing: 0.02rem;
}

.v64d-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v64d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.v64d-btn:active { transform: scale(0.96); }

.v64d-btn-login {
  background: transparent;
  color: var(--v64d-text);
  border: 0.15rem solid var(--v64d-primary);
}
.v64d-btn-login:hover { color: var(--v64d-accent); }

.v64d-btn-register {
  background: linear-gradient(135deg, var(--v64d-primary), var(--v64d-deep));
  color: #fff;
  box-shadow: 0 0.3rem 1rem rgba(205, 133, 63, 0.45);
}

.v64d-menu-btn {
  background: transparent;
  border: 0.15rem solid var(--v64d-border);
  color: var(--v64d-text);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.8rem;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ============ Mobile menu ============ */
.v64d-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #110d05;
  border-bottom: 0.2rem solid var(--v64d-primary);
  padding: 0.8rem 1rem 1.2rem;
  z-index: 9999;
}
.v64d-mobile-menu.v64d-menu-open { display: block; }
.v64d-mobile-menu a {
  display: block;
  padding: 1rem 0.6rem;
  border-bottom: 0.1rem dashed var(--v64d-border);
  color: var(--v64d-text);
  font-size: 1.35rem;
}
.v64d-mobile-menu a:hover { color: var(--v64d-accent); }

/* ============ Layout helpers ============ */
.v64d-container { width: 100%; max-width: var(--v64d-max-w); margin: 0 auto; padding: 0 1rem; }
.v64d-section { padding: 1.6rem 1rem; }
.v64d-section-alt { background: linear-gradient(180deg, #120e07 0%, #0C0C0C 100%); }

.v64d-pill {
  display: inline-block;
  font-size: 1.1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  background: rgba(205, 133, 63, 0.18);
  color: var(--v64d-primary);
  margin-bottom: 0.6rem;
}

.v64d-link-text {
  color: var(--v64d-accent);
  font-weight: 700;
  text-decoration: underline;
}

/* ============ Hero carousel ============ */
.v64d-carousel {
  position: relative;
  border-radius: var(--v64d-radius);
  overflow: hidden;
  box-shadow: var(--v64d-shadow);
  margin: 1rem 0;
}
.v64d-slide {
  display: none;
  position: relative;
}
.v64d-slide.v64d-slide-active { display: block; }
.v64d-slide img { width: 100%; height: auto; }
.v64d-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
}
.v64d-slide-cap h2 { color: var(--v64d-accent); margin: 0 0 0.3rem; font-size: 1.5rem; }
.v64d-slide-cap p { margin: 0; font-size: 1.2rem; }

.v64d-dots {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  display: flex;
  gap: 0.4rem;
}
.v64d-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(229, 229, 229, 0.45);
  border: none;
  cursor: pointer;
}
.v64d-dot.v64d-dot-active { background: var(--v64d-primary); }

/* ============ Game grid ============ */
.v64d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.v64d-grid-4 { grid-template-columns: repeat(4, 1fr); }
.v64d-tile {
  background: var(--v64d-card);
  border: 0.1rem solid var(--v64d-border);
  border-radius: 0.8rem;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.v64d-tile:hover, .v64d-tile:active {
  transform: translateY(-0.2rem);
  border-color: var(--v64d-primary);
}
.v64d-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0a0a0a;
}
.v64d-tile-name {
  display: block;
  font-size: 1.1rem;
  color: var(--v64d-text);
  padding: 0.5rem 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v64d-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 0.15rem solid var(--v64d-primary);
}
.v64d-cat-head h2 { margin: 0; font-size: 1.5rem; color: var(--v64d-primary); }
.v64d-cat-head .v64d-link-text { font-size: 1.15rem; }

/* ============ Cards / blocks ============ */
.v64d-card {
  background: var(--v64d-card);
  border: 0.1rem solid var(--v64d-border);
  border-radius: var(--v64d-radius);
  padding: 1.2rem;
  margin: 0.8rem 0;
  box-shadow: var(--v64d-shadow);
}
.v64d-card h3 { color: var(--v64d-mint); }
.v64d-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.v64d-mini {
  background: #111111;
  border-radius: 0.7rem;
  padding: 0.8rem;
  border-left: 0.25rem solid var(--v64d-primary);
}
.v64d-mini .v64d-num { color: var(--v64d-accent); font-size: 1.6rem; font-weight: 800; }
.v64d-mini .v64d-lab { font-size: 1.05rem; color: var(--v64d-text); }

/* Testimonials */
.v64d-quote {
  background: #121212;
  border-radius: 0.8rem;
  padding: 1rem;
  margin: 0.6rem 0;
  border-left: 0.3rem solid var(--v64d-mint);
}
.v64d-quote .v64d-stars { color: #ffce3a; font-size: 1.1rem; }
.v64d-quote .v64d-author { color: var(--v64d-primary); font-weight: 700; margin-top: 0.4rem; }

/* Payment chips */
.v64d-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.v64d-pay {
  background: #1a1a1a;
  border: 0.1rem solid var(--v64d-border);
  border-radius: 0.6rem;
  padding: 0.6rem 0.9rem;
  font-size: 1.1rem;
  color: var(--v64d-text);
}

/* CTA banner */
.v64d-cta {
  background: linear-gradient(135deg, var(--v64d-deep), var(--v64d-primary));
  border-radius: var(--v64d-radius);
  padding: 1.4rem;
  text-align: center;
  color: #fff;
  margin: 1rem 0;
}
.v64d-cta h2 { color: #fff; }
.v64d-cta .v64d-btn {
  background: #0C0C0C;
  color: var(--v64d-accent);
  margin-top: 0.8rem;
  border: 0.15rem solid var(--v64d-accent);
}

/* Winners strip */
.v64d-winners {
  background: #0e1a1a;
  border: 0.1rem solid rgba(128, 203, 196, 0.4);
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  margin: 0.8rem 0;
}
.v64d-winner-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  padding: 0.4rem 0;
  border-bottom: 0.1rem dashed rgba(128, 203, 196, 0.2);
}
.v64d-winner-row:last-child { border-bottom: none; }
.v64d-winner-row .amt { color: var(--v64d-accent); font-weight: 700; }

/* ============ Footer ============ */
.v64d-footer {
  background: #050505;
  border-top: 0.2rem solid var(--v64d-primary);
  padding: 1.6rem 1rem 2rem;
  color: var(--v64d-text);
  font-size: 1.2rem;
}
.v64d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.8rem 0;
}
.v64d-footer-links a { color: var(--v64d-mint); font-size: 1.15rem; }
.v64d-footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.v64d-footer-buttons .v64d-btn {
  flex: 1 1 auto;
  min-height: 3.4rem;
  padding: 0 0.8rem;
  font-size: 1.2rem;
}
.v64d-footer-brand { line-height: 1.7rem; margin: 0.6rem 0; color: #b8b8b8; }
.v64d-copyright {
  border-top: 0.1rem solid #1a1a1a;
  margin-top: 1rem;
  padding-top: 0.8rem;
  font-size: 1.1rem;
  color: #888;
  text-align: center;
}

/* ============ Bottom nav ============ */
.v64d-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--v64d-max-w);
  height: 6rem;
  background: linear-gradient(180deg, #141008 0%, #050505 100%);
  border-top: 0.2rem solid var(--v64d-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.v64d-bottomnav-btn {
  background: transparent;
  border: none;
  color: var(--v64d-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 6rem;
  min-height: 5.6rem;
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.v64d-bottomnav-btn .material-icons,
.v64d-bottomnav-btn .ion-icon,
.v64d-bottomnav-btn i { font-size: 2.2rem; line-height: 1; }
.v64d-bottomnav-btn:hover { color: var(--v64d-accent); }
.v64d-bottomnav-btn:active { transform: scale(0.92); }
.v64d-bottomnav-btn.v64d-bottomnav-active { color: var(--v64d-primary); }
.v64d-bottomnav-btn.v64d-bottomnav-active .material-icons,
.v64d-bottomnav-btn.v64d-bottomnav-active i { color: var(--v64d-primary); }
.v64d-bottomnav-btn.v64d-bottomnav-promo {
  color: var(--v64d-mint);
}

/* Hide bottom nav on desktop, keep app width */
@media (min-width: 769px) {
  .v64d-bottomnav { display: none; }
  body { padding-bottom: 2rem; }
}

/* Ensure touch targets stay >= 44px on small screens */
@media (max-width: 360px) {
  .v64d-grid { grid-template-columns: repeat(2, 1fr); }
  .v64d-btn { padding: 0 0.8rem; font-size: 1.2rem; }
}
