/*!
 * nustar ph apk - Core Stylesheet
 * Mobile-first HTML5 casino gaming site (max-width: 430px viewport baseline).
 * All custom classes use the "gd64-" prefix; CSS variables use --gd64-*.
 * Palette: #20B2AA | #00E5FF | #9932CC | #2D2D2D | #48D1CC
 */

:root {
  --gd64-primary: #20B2AA;
  --gd64-accent: #00E5FF;
  --gd64-accent2: #9932CC;
  --gd64-bg: #2D2D2D;
  --gd64-bg-alt: #1c1f24;
  --gd64-bg-card: #3a3f44;
  --gd64-bg-soft: rgba(72, 209, 204, 0.08);
  --gd64-text: #FFFFFF;
  --gd64-text-muted: #48D1CC;
  --gd64-text-dim: #b9c6c6;
  --gd64-border: rgba(72, 209, 204, 0.22);
  --gd64-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --gd64-radius: 12px;
  --gd64-header-h: 58px;
  --gd64-bottomnav-h: 62px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--gd64-bg);
  color: var(--gd64-text);
  line-height: 1.5;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gd64-accent); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== Layout helpers ===== */
.gd64-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.gd64-main { padding-bottom: calc(var(--gd64-bottomnav-h) + 20px); }

/* ===== Header ===== */
.gd64-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--gd64-header-h);
  background: linear-gradient(90deg, #1c1f24 0%, #2D2D2D 55%, #3a2440 100%);
  border-bottom: 1px solid var(--gd64-border);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.gd64-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.gd64-logo { display: flex; align-items: center; gap: 8px; }
.gd64-logo-img { width: 28px; height: 28px; border-radius: 6px; }
.gd64-logo-text {
  font-size: 1.5rem; font-weight: 800; letter-spacing: 0.3px;
  background: linear-gradient(90deg, var(--gd64-accent), var(--gd64-text-muted));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gd64-header-actions { display: flex; align-items: center; gap: 8px; }
.gd64-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 14px; border-radius: 999px;
  font-size: 1.25rem; font-weight: 700; min-height: 36px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  text-align: center;
}
.gd64-btn:active { transform: scale(0.96); }
.gd64-btn-login {
  background: transparent; color: var(--gd64-accent);
  border: 1.5px solid var(--gd64-accent);
}
.gd64-btn-register {
  background: linear-gradient(90deg, var(--gd64-primary), var(--gd64-accent2));
  color: #fff; box-shadow: 0 3px 10px rgba(153, 50, 204, 0.4);
}
.gd64-btn-promo {
  background: linear-gradient(90deg, var(--gd64-accent), var(--gd64-text-muted));
  color: #11212a; font-weight: 800;
}
.gd64-menu-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--gd64-accent); font-size: 2rem; line-height: 1;
}

/* ===== Mobile dropdown menu ===== */
.gd64-mobile-menu {
  position: fixed; top: var(--gd64-header-h); left: 0; right: 0;
  background: var(--gd64-bg-alt);
  border-bottom: 1px solid var(--gd64-border);
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
  z-index: 9999;
}
.gd64-mobile-menu.gd64-menu-open { max-height: 540px; }
.gd64-menu-list { list-style: none; padding: 8px 12px; }
.gd64-menu-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 10px; color: var(--gd64-text);
  border-bottom: 1px dashed var(--gd64-border); font-size: 1.35rem;
}
.gd64-menu-list a:last-child { border-bottom: none; }
.gd64-menu-list a i { color: var(--gd64-text-muted); width: 22px; text-align: center; }

/* ===== Hero / Carousel ===== */
.gd64-hero { margin-top: var(--gd64-header-h); position: relative; }
.gd64-carousel { position: relative; overflow: hidden; border-radius: 0 0 18px 18px; }
.gd64-slide {
  position: relative; display: none; cursor: pointer;
}
.gd64-slide img { width: 100%; height: 200px; object-fit: cover; }
.gd64-slide-active { display: block; }
.gd64-slide-caption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff; padding: 18px 10px 6px; border-radius: 10px;
}
.gd64-slide-caption strong { font-size: 1.5rem; display: block; }
.gd64-slide-caption span { font-size: 1.2rem; color: var(--gd64-text-muted); }
.gd64-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.45); color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.gd64-carousel-nav.gd64-prev { left: 8px; }
.gd64-carousel-nav.gd64-next { right: 8px; }
.gd64-dots {
  display: flex; justify-content: center; gap: 6px; padding: 8px 0;
  background: var(--gd64-bg-alt);
}
.gd64-dot { width: 8px; height: 8px; border-radius: 50%; background: #555; transition: background .2s; }
.gd64-dot-active { background: var(--gd64-accent); }

/* ===== Sections & headings ===== */
.gd64-section { padding: 18px 0; }
.gd64-section-alt { background: var(--gd64-bg-alt); }
.gd64-h1 {
  font-size: 2rem; font-weight: 800; margin: 6px 0 10px;
  background: linear-gradient(90deg, var(--gd64-accent), var(--gd64-text-muted));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-align: center;
}
.gd64-h2 {
  font-size: 1.7rem; font-weight: 800; margin: 0 0 12px;
  padding-left: 10px; border-left: 4px solid var(--gd64-primary);
  color: var(--gd64-text);
}
.gd64-h3 { font-size: 1.4rem; font-weight: 700; margin: 12px 0 6px; color: var(--gd64-text-muted); }
.gd64-lead { color: var(--gd64-text-dim); font-size: 1.3rem; }
.gd64-intro { color: var(--gd64-text-dim); line-height: 1.6; }
.gd64-intro p { margin-bottom: 8px; }

/* ===== Category chips ===== */
.gd64-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.gd64-chip {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px;
  background: var(--gd64-bg-card); color: var(--gd64-text-dim);
  font-size: 1.2rem; font-weight: 600; border: 1px solid transparent;
  white-space: nowrap;
}
.gd64-chip-active {
  background: linear-gradient(90deg, var(--gd64-primary), var(--gd64-accent2));
  color: #fff; border-color: var(--gd64-accent);
}

/* ===== Game grid ===== */
.gd64-game-group { margin-bottom: 18px; }
.gd64-group-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.45rem; font-weight: 800; color: var(--gd64-text);
  margin-bottom: 10px;
}
.gd64-group-title i { color: var(--gd64-accent); }
.gd64-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.gd64-game-item {
  background: var(--gd64-bg-card); border-radius: 10px; padding: 6px;
  text-align: center; transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid var(--gd64-border); overflow: hidden;
}
.gd64-game-item:active { transform: scale(0.96); }
.gd64-game-item img {
  width: 100%; height: 78px; object-fit: cover; border-radius: 8px; margin-bottom: 4px;
}
.gd64-game-item span {
  display: block; font-size: 1.1rem; color: var(--gd64-text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}

/* ===== Cards ===== */
.gd64-card {
  background: var(--gd64-bg-card); border-radius: var(--gd64-radius);
  padding: 14px; box-shadow: var(--gd64-shadow); border: 1px solid var(--gd64-border);
}
.gd64-card-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; color: var(--gd64-text); }
.gd64-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.gd64-feature {
  background: var(--gd64-bg-soft); border-radius: 10px; padding: 12px; text-align: center;
}
.gd64-feature i { font-size: 2.2rem; color: var(--gd64-accent); margin-bottom: 6px; }
.gd64-feature strong { display: block; font-size: 1.2rem; color: var(--gd64-text); }
.gd64-feature span { font-size: 1.05rem; color: var(--gd64-text-dim); }

/* ===== RTP / data rows ===== */
.gd64-rtp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px dashed var(--gd64-border); font-size: 1.25rem;
}
.gd64-rtp-row:last-child { border-bottom: none; }
.gd64-rtp-bar {
  flex: 1; height: 8px; background: #2a2f33; border-radius: 4px; margin: 0 10px; overflow: hidden;
}
.gd64-rtp-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gd64-primary), var(--gd64-accent)); }
.gd64-rtp-pct { color: var(--gd64-accent); font-weight: 700; min-width: 48px; text-align: right; }

/* ===== Winners showcase ===== */
.gd64-winners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gd64-winner {
  background: linear-gradient(135deg, #3a2440, #2D2D2D);
  border-radius: 10px; padding: 10px; border: 1px solid var(--gd64-border);
}
.gd64-winner .gd64-w-name { font-weight: 700; font-size: 1.2rem; }
.gd64-winner .gd64-w-game { color: var(--gd64-text-muted); font-size: 1.05rem; }
.gd64-winner .gd64-w-amount { color: var(--gd64-accent); font-weight: 800; font-size: 1.35rem; }

/* ===== Testimonials ===== */
.gd64-quote {
  background: var(--gd64-bg-soft); border-left: 3px solid var(--gd64-primary);
  padding: 10px 12px; border-radius: 8px; margin-bottom: 8px;
}
.gd64-quote p { font-size: 1.2rem; color: var(--gd64-text-dim); font-style: italic; }
.gd64-quote span { font-size: 1.1rem; color: var(--gd64-text-muted); }

/* ===== Payment methods ===== */
.gd64-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gd64-pay {
  background: #fff; color: #11212a; border-radius: 8px; padding: 8px;
  text-align: center; font-size: 1.1rem; font-weight: 700; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== FAQ accordion ===== */
.gd64-acc { border: 1px solid var(--gd64-border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; background: var(--gd64-bg-card); }
.gd64-acc-head {
  width: 100%; text-align: left; padding: 12px; font-size: 1.25rem; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; color: var(--gd64-text);
}
.gd64-acc-head i { color: var(--gd64-accent); transition: transform .2s; }
.gd64-acc-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 12px; color: var(--gd64-text-dim); font-size: 1.2rem; }
.gd64-acc-open .gd64-acc-body { max-height: 320px; padding: 0 12px 12px; }
.gd64-acc-open .gd64-acc-head i { transform: rotate(45deg); }

/* ===== Inline CTA ===== */
.gd64-cta {
  display: block; text-align: center; padding: 14px; border-radius: 12px;
  background: linear-gradient(90deg, var(--gd64-primary), var(--gd64-accent2));
  color: #fff; font-weight: 800; font-size: 1.4rem; box-shadow: 0 4px 14px rgba(153,50,204,0.35);
}
.gd64-text-link { color: var(--gd64-accent); font-weight: 700; text-decoration: underline; }

/* ===== App download banner ===== */
.gd64-app-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(120deg, #3a2440, #1c1f24);
  border: 1px solid var(--gd64-border); border-radius: 12px; padding: 12px;
}
.gd64-app-banner img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; }
.gd64-app-info { flex: 1; }
.gd64-app-info strong { display: block; font-size: 1.3rem; }
.gd64-app-info span { color: var(--gd64-text-muted); font-size: 1.1rem; }

/* ===== Footer ===== */
.gd64-footer {
  background: var(--gd64-bg-alt); border-top: 1px solid var(--gd64-border);
  padding: 18px 12px 12px; color: var(--gd64-text-dim);
}
.gd64-footer-brand { font-size: 1.2rem; margin-bottom: 12px; line-height: 1.6; }
.gd64-footer-promo {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0;
}
.gd64-footer-promo .gd64-btn { flex: 1 1 45%; min-height: 40px; font-size: 1.2rem; }
.gd64-footer-links { columns: 2; column-gap: 12px; margin: 12px 0; }
.gd64-footer-links a {
  display: block; padding: 4px 0; color: var(--gd64-text-muted); font-size: 1.15rem; break-inside: avoid;
}
.gd64-footer-copy { text-align: center; font-size: 1.05rem; color: #6b7a7a; border-top: 1px dashed var(--gd64-border); padding-top: 8px; }

/* ===== Mobile bottom navigation (hidden on desktop) ===== */
.gd64-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--gd64-bottomnav-h);
  background: linear-gradient(180deg, #1c1f24, #111);
  border-top: 1px solid var(--gd64-border);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000; padding: 4px 0;
}
.gd64-navbtn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--gd64-text-dim); font-size: 1rem; min-width: 60px; min-height: 54px;
  transition: color .15s, transform .15s; position: relative;
}
.gd64-navbtn i { font-size: 2.2rem; line-height: 1; }
.gd64-navbtn .material-icons { font-size: 2.4rem; }
.gd64-navbtn:active { transform: scale(0.92); color: var(--gd64-accent); }
.gd64-navbtn-active { color: var(--gd64-accent); }
.gd64-navbtn-active::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 2px; background: var(--gd64-accent);
}
.gd64-navbtn-promo { color: #ffd479; }

/* ===== Responsive: tablet / desktop ===== */
@media (min-width: 431px) and (max-width: 768px) {
  .gd64-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 769px) {
  .gd64-bottomnav { display: none; }
  .gd64-main { padding-bottom: 30px; }
  .gd64-container { max-width: 760px; }
  .gd64-grid { grid-template-columns: repeat(5, 1fr); }
  .gd64-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .gd64-winners { grid-template-columns: repeat(4, 1fr); }
  .gd64-pay-grid { grid-template-columns: repeat(6, 1fr); }
  .gd64-footer-links { columns: 3; }
}
