/*!
 * CasinoPlus Com PH - style-a42d.css
 * Mobile-first (max 430px) base styles.
 * All custom classes use the "g2dd-" prefix.
 * Palette: #0F0F23 (bg) | #FFFACD / #FFEF94 / #EEE8AA (text/accents)
 */

:root {
  --g2dd-bg: #0F0F23;
  --g2dd-bg-alt: #161638;
  --g2dd-bg-soft: #1d1d44;
  --g2dd-text: #FFFACD;
  --g2dd-text-soft: #EEE8AA;
  --g2dd-accent: #FFEF94;
  --g2dd-accent-2: #FFFACD;
  --g2dd-primary: #FFEF94;
  --g2dd-gold: #FFD24A;
  --g2dd-border: rgba(255, 239, 148, 0.18);
  --g2dd-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --g2dd-radius: 14px;
  --g2dd-header-h: 58px;
  --g2dd-bottom-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--g2dd-bg);
  color: var(--g2dd-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--g2dd-accent); text-decoration: none; }

/* ---------- Layout helpers ---------- */
.g2dd-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.g2dd-wrapper { padding-top: var(--g2dd-header-h); }
.g2dd-section { padding: 2.2rem 0 1.5rem; }
.g2dd-grid { display: grid; gap: 0.8rem; }

/* ---------- Header ---------- */
.g2dd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--g2dd-header-h);
  background: linear-gradient(180deg, #14143a 0%, #0F0F23 100%);
  border-bottom: 1px solid var(--g2dd-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.g2dd-header__inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.g2dd-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--g2dd-accent);
  font-weight: 700;
  font-size: 1.4rem;
}
.g2dd-brand img { width: 28px; height: 28px; border-radius: 6px; }
.g2dd-brand span { line-height: 1.1rem; }

.g2dd-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.g2dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
}
.g2dd-btn:active { transform: scale(0.96); }
.g2dd-btn--login {
  background: transparent;
  color: var(--g2dd-text);
  border: 1px solid var(--g2dd-border);
}
.g2dd-btn--register {
  background: linear-gradient(90deg, #FFEF94 0%, #FFD24A 100%);
  color: #0F0F23;
  box-shadow: 0 4px 12px rgba(255, 210, 74, 0.35);
}
.g2dd-btn--lg { min-height: 44px; padding: 0 1.4rem; font-size: 1.4rem; }
.g2dd-btn--block { width: 100%; }

.g2dd-menu-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--g2dd-bg-soft);
  color: var(--g2dd-accent);
  border: 1px solid var(--g2dd-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}
.g2dd-menu-btn-active { background: var(--g2dd-accent); color: #0F0F23; }

/* ---------- Mobile dropdown menu ---------- */
.g2dd-mobile-menu {
  position: fixed;
  top: var(--g2dd-header-h);
  left: 0; right: 0;
  background: #0d0d20;
  border-bottom: 1px solid var(--g2dd-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}
.g2dd-mobile-menu.g2dd-menu-open { max-height: 460px; }
.g2dd-mobile-menu__inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.g2dd-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: var(--g2dd-bg-soft);
  color: var(--g2dd-text);
  font-size: 1.25rem;
  border: 1px solid var(--g2dd-border);
}
.g2dd-mobile-menu a:active { background: var(--g2dd-bg-alt); }

/* ---------- Hero carousel ---------- */
.g2dd-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--g2dd-radius);
  margin-top: 1rem;
  box-shadow: var(--g2dd-shadow);
}
.g2dd-carousel__track {
  display: flex;
  transition: transform 0.5s ease;
}
.g2dd-carousel__slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}
.g2dd-carousel__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.g2dd-carousel__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15,15,35,0.92) 100%);
  color: var(--g2dd-accent);
  font-size: 1.3rem;
  font-weight: 700;
}
.g2dd-carousel__dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  padding: 0.6rem 0;
}
.g2dd-carousel__dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 250, 205, 0.35);
  cursor: pointer;
}
.g2dd-dot-active { background: var(--g2dd-accent) !important; }

/* ---------- Titles ---------- */
.g2dd-h1 {
  font-size: 2rem;
  line-height: 2.4rem;
  margin: 1.4rem 0 0.6rem;
  color: var(--g2dd-accent);
  font-weight: 800;
  text-align: center;
}
.g2dd-h2 {
  font-size: 1.7rem;
  margin: 1.6rem 0 0.8rem;
  color: var(--g2dd-accent-2);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.g2dd-h2 i { color: var(--g2dd-gold); }
.g2dd-h3 {
  font-size: 1.4rem;
  margin: 1rem 0 0.5rem;
  color: var(--g2dd-text-soft);
  font-weight: 700;
}
.g2dd-subtitle {
  text-align: center;
  color: var(--g2dd-text-soft);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ---------- Filter chips ---------- */
.g2dd-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  scrollbar-width: none;
}
.g2dd-filters::-webkit-scrollbar { display: none; }
.g2dd-filter-btn {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 18px;
  background: var(--g2dd-bg-soft);
  color: var(--g2dd-text);
  border: 1px solid var(--g2dd-border);
  font-size: 1.2rem;
  cursor: pointer;
  white-space: nowrap;
}
.g2dd-filter-active {
  background: var(--g2dd-accent);
  color: #0F0F23;
  border-color: var(--g2dd-accent);
}

/* ---------- Game grid ---------- */
.g2dd-game-section { margin-bottom: 1.4rem; }
.g2dd-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.g2dd-game-card {
  background: var(--g2dd-bg-alt);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--g2dd-border);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  text-align: center;
}
.g2dd-game-card:active {
  transform: scale(0.97);
  box-shadow: 0 4px 14px rgba(255, 239, 148, 0.25);
}
.g2dd-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.g2dd-game-card__name {
  padding: 0.45rem 0.3rem;
  font-size: 1.1rem;
  color: var(--g2dd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards / Features ---------- */
.g2dd-card {
  background: var(--g2dd-bg-alt);
  border: 1px solid var(--g2dd-border);
  border-radius: var(--g2dd-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--g2dd-shadow);
}
.g2dd-features {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
}
.g2dd-feature {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--g2dd-bg-soft);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--g2dd-border);
}
.g2dd-feature__icon {
  font-size: 2rem;
  color: var(--g2dd-gold);
  flex: 0 0 auto;
}
.g2dd-feature__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--g2dd-accent);
  margin-bottom: 0.3rem;
}
.g2dd-feature__text { font-size: 1.2rem; color: var(--g2dd-text); }

/* ---------- Promo CTA banner ---------- */
.g2dd-cta {
  background: linear-gradient(135deg, #1d1d44 0%, #2a2150 100%);
  border: 1px solid var(--g2dd-accent);
  border-radius: var(--g2dd-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.4rem 0;
}
.g2dd-cta__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--g2dd-accent);
  margin-bottom: 0.4rem;
}
.g2dd-cta__text { color: var(--g2dd-text-soft); font-size: 1.2rem; margin-bottom: 1rem; }

/* ---------- Testimonials ---------- */
.g2dd-testimonial {
  background: var(--g2dd-bg-alt);
  border-left: 3px solid var(--g2dd-gold);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}
.g2dd-testimonial__text { font-style: italic; color: var(--g2dd-text); font-size: 1.2rem; }
.g2dd-testimonial__author { margin-top: 0.5rem; color: var(--g2dd-accent); font-size: 1.1rem; font-weight: 700; }

/* ---------- RTP table ---------- */
.g2dd-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.g2dd-rtp-table th, .g2dd-rtp-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--g2dd-border);
  text-align: left;
}
.g2dd-rtp-table th { color: var(--g2dd-accent); }
.g2dd-rtp-table td:last-child { color: var(--g2dd-gold); font-weight: 700; }

/* ---------- Payment methods ---------- */
.g2dd-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.g2dd-pay-item {
  background: var(--g2dd-bg-soft);
  border-radius: 10px;
  padding: 0.6rem 0.3rem;
  text-align: center;
  border: 1px solid var(--g2dd-border);
  font-size: 1rem;
  color: var(--g2dd-text-soft);
}
.g2dd-pay-item i { font-size: 1.8rem; color: var(--g2dd-accent); display: block; margin-bottom: 0.2rem; }

/* ---------- Winners ---------- */
.g2dd-winner {
  display: flex;
  justify-content: space-between;
  background: var(--g2dd-bg-alt);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  border: 1px solid var(--g2dd-border);
}
.g2dd-winner__amount { color: var(--g2dd-gold); font-weight: 700; }

/* ---------- App download CTA ---------- */
.g2dd-app-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--g2dd-bg-alt);
  border-radius: var(--g2dd-radius);
  padding: 1.2rem;
  border: 1px solid var(--g2dd-accent);
}
.g2dd-app-cta__icon { font-size: 3rem; color: var(--g2dd-accent); }
.g2dd-app-cta__title { font-size: 1.4rem; font-weight: 700; color: var(--g2dd-accent); margin-bottom: 0.3rem; }
.g2dd-app-cta__text { font-size: 1.15rem; color: var(--g2dd-text); }

/* ---------- Footer ---------- */
.g2dd-footer {
  background: #0a0a1c;
  border-top: 1px solid var(--g2dd-border);
  padding: 1.6rem 0 calc(var(--g2dd-bottom-h) + 1.4rem);
  margin-top: 1.6rem;
}
.g2dd-footer__brand { color: var(--g2dd-text-soft); font-size: 1.2rem; margin-bottom: 1rem; }
.g2dd-footer__promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.g2dd-footer__promo .g2dd-btn {
  min-height: 36px;
  font-size: 1.15rem;
  padding: 0 0.9rem;
}
.g2dd-footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.g2dd-footer__links a {
  font-size: 1.15rem;
  color: var(--g2dd-text);
  padding: 0.3rem 0;
}
.g2dd-footer__copy {
  text-align: center;
  color: var(--g2dd-text-soft);
  font-size: 1.1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--g2dd-border);
  padding-top: 1rem;
}

/* ---------- Bottom navigation ---------- */
.g2dd-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--g2dd-bottom-h);
  background: linear-gradient(180deg, #14143a 0%, #0a0a1c 100%);
  border-top: 1px solid var(--g2dd-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.4);
}
.g2dd-bottom-nav__btn {
  flex: 1;
  min-width: 60px;
  min-height: var(--g2dd-bottom-h);
  background: transparent;
  border: none;
  color: var(--g2dd-text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s, transform 0.15s;
}
.g2dd-bottom-nav__btn .material-icons,
.g2dd-bottom-nav__btn i,
.g2dd-bottom-nav__btn ion-icon {
  font-size: 22px;
}
.g2dd-bottom-nav__btn:active { transform: scale(0.9); }
.g2dd-bottom-nav__btn--active { color: var(--g2dd-accent); }
.g2dd-bottom-nav__btn--promo {
  position: relative;
}
.g2dd-bottom-nav__btn--promo::before {
  content: "";
  position: absolute;
  top: -10px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFEF94 0%, #FFD24A 100%);
  z-index: -1;
  box-shadow: 0 4px 12px rgba(255, 210, 74, 0.4);
}
.g2dd-bottom-nav__btn--promo { color: #0F0F23; margin-top: -8px; }
.g2dd-bottom-nav__btn--promo i,
.g2dd-bottom-nav__btn--promo .material-icons { font-size: 24px; }

/* ---------- Reveal animation ---------- */
.g2dd-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.g2dd-revealed { opacity: 1; transform: translateY(0); }

/* ---------- SEO content section ---------- */
.g2dd-seo p { color: var(--g2dd-text); font-size: 1.25rem; margin: 0.6rem 0; }
.g2dd-seo a { color: var(--g2dd-accent); font-weight: 700; }

/* ---------- Desktop behaviour ---------- */
@media (min-width: 769px) {
  .g2dd-bottom-nav { display: none; }
  .g2dd-footer { padding-bottom: 1.6rem; }
  .g2dd-container { max-width: 720px; }
  .g2dd-game-grid { grid-template-columns: repeat(6, 1fr); }
  .g2dd-features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 431px) and (max-width: 768px) {
  .g2dd-container { max-width: 430px; }
}

/* Mobile bottom padding to clear fixed bottom nav */
@media (max-width: 768px) {
  .g2dd-wrapper { padding-bottom: calc(var(--g2dd-bottom-h) + 1rem); }
}
