/* ===========================================================
   jl779.click - layout.css
   All custom classes use the "gd91-" prefix.
   Palette: #FFD700 (gold) | #FF9800 (orange) | #2D2D2D (dark)
            #EEE8AA (light) | #DEB887 (tan)
   Mobile-first, max 430px base layout.
   =========================================================== */

:root {
  --gd91-primary: #FFD700;
  --gd91-accent: #FF9800;
  --gd91-bg: #2D2D2D;
  --gd91-bg-deep: #1d1d1d;
  --gd91-text: #EEE8AA;
  --gd91-tan: #DEB887;
  --gd91-white: #ffffff;
  --gd91-muted: #b8b8a8;
  --gd91-radius: 12px;
  --gd91-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --gd91-header-h: 56px;
  --gd91-bottomnav-h: 62px;
}

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

html { font-size: 62.5%; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  background: var(--gd91-bg);
  color: var(--gd91-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

a { color: var(--gd91-primary); text-decoration: none; }
a:hover { color: var(--gd91-accent); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--gd91-white); line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.2rem; margin: 1.2rem 0; }
h2 { font-size: 1.9rem; margin: 1rem 0; }
h3 { font-size: 1.6rem; margin: 0.8rem 0; }
p { margin: 0.6rem 0; }

/* ---------- Layout primitives ---------- */
.gd91-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.gd91-wrapper { padding: 1rem 1.2rem; }
.gd91-grid { display: grid; gap: 0.8rem; }

/* ---------- Header ---------- */
.gd91-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--gd91-header-h);
  background: var(--gd91-bg-deep);
  border-bottom: 2px solid var(--gd91-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}
.gd91-brand { display: flex; align-items: center; gap: 0.6rem; }
.gd91-brand img { width: 28px; height: 28px; border-radius: 6px; }
.gd91-brand-name { font-size: 1.6rem; font-weight: 800; color: var(--gd91-primary); letter-spacing: 0.5px; }
.gd91-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.gd91-menu-btn {
  background: transparent; border: none; color: var(--gd91-text);
  font-size: 1.8rem; cursor: pointer; padding: 0.4rem 0.6rem;
}

.gd91-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: 999px; border: none;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  min-height: 36px;
}
.gd91-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.gd91-btn-primary { background: linear-gradient(135deg, var(--gd91-primary), var(--gd91-accent)); color: #1d1d1d; box-shadow: var(--gd91-shadow); }
.gd91-btn-outline { background: transparent; color: var(--gd91-primary); border: 2px solid var(--gd91-primary); }
.gd91-btn-block { width: 100%; padding: 1rem; font-size: 1.5rem; }

/* ---------- Expandable nav menu ---------- */
.gd91-mobile-menu {
  position: fixed;
  top: var(--gd91-header-h); left: 0; right: 0;
  background: var(--gd91-bg-deep);
  border-bottom: 2px solid var(--gd91-accent);
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
  max-width: 430px; margin: 0 auto;
}
.gd91-mobile-menu.gd91-menu-open { max-height: 460px; }
.gd91-menu-list { display: flex; flex-direction: column; padding: 0.5rem 1rem; }
.gd91-menu-list a {
  color: var(--gd91-text); padding: 0.9rem 0.4rem;
  border-bottom: 1px solid #3a3a3a; font-size: 1.4rem; display: flex; align-items: center; gap: 0.6rem;
}
.gd91-menu-list a:last-child { border-bottom: none; }
.gd91-menu-list a:hover { color: var(--gd91-primary); padding-left: 0.8rem; }

/* ---------- Main ---------- */
.gd91-main { padding-top: calc(var(--gd91-header-h) + 0.5rem); padding-bottom: 80px; }

/* ---------- Carousel ---------- */
.gd91-carousel {
  position: relative; width: 100%; height: 180px;
  border-radius: var(--gd91-radius); overflow: hidden; margin: 1rem 0;
  box-shadow: var(--gd91-shadow);
}
.gd91-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.gd91-slide.gd91-slide-active { opacity: 1; }
.gd91-slide img { width: 100%; height: 100%; object-fit: cover; }
.gd91-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 1.2rem 1rem 0.8rem; color: var(--gd91-white); font-weight: 700; font-size: 1.4rem;
}
.gd91-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.gd91-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.gd91-dot.gd91-dot-active { background: var(--gd91-primary); width: 22px; border-radius: 4px; }

/* ---------- Section ---------- */
.gd91-section { margin: 1.4rem 0; padding: 1rem; background: var(--gd91-bg-deep); border-radius: var(--gd91-radius); border-left: 4px solid var(--gd91-primary); }
.gd91-section-title { color: var(--gd91-primary); display: flex; align-items: center; gap: 0.5rem; }
.gd91-section-title i { color: var(--gd91-accent); }

.gd91-text { color: var(--gd91-text); }
.gd91-muted { color: var(--gd91-muted); }
.gd91-keyword { color: var(--gd91-primary); font-weight: 700; }

/* ---------- Category header ---------- */
.gd91-cat-header { display: flex; align-items: center; gap: 0.5rem; margin: 1.2rem 0 0.6rem; }
.gd91-cat-header h2 { margin: 0; font-size: 1.7rem; }
.gd91-cat-icon { font-size: 2rem; color: var(--gd91-accent); }
.gd91-cat-link { margin-left: auto; font-size: 1.2rem; color: var(--gd91-primary); }

/* ---------- Game grid ---------- */
.gd91-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.gd91-game-card {
  background: var(--gd91-bg-deep); border-radius: 10px; padding: 0.5rem;
  text-align: center; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid #3a3a3a; display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
.gd91-game-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(255,215,0,0.25); border-color: var(--gd91-primary); }
.gd91-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.gd91-game-name { font-size: 1.1rem; color: var(--gd91-text); line-height: 1.25; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Feature grid ---------- */
.gd91-feature-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.gd91-feature-card { background: var(--gd91-bg-deep); border-radius: 10px; padding: 1rem; border-left: 3px solid var(--gd91-accent); }
.gd91-feature-card h3 { margin-top: 0; color: var(--gd91-primary); }
.gd91-feature-card i { color: var(--gd91-accent); margin-right: 0.4rem; }

/* ---------- RTP table ---------- */
.gd91-rpt-table { width: 100%; border-collapse: collapse; margin: 0.8rem 0; font-size: 1.2rem; }
.gd91-rpt-table th, .gd91-rpt-table td { padding: 0.6rem 0.4rem; border-bottom: 1px solid #3a3a3a; text-align: left; }
.gd91-rpt-table th { color: var(--gd91-primary); }
.gd91-rpt-table tr:hover td { color: var(--gd91-white); }

/* ---------- Testimonials ---------- */
.gd91-testimonial { background: var(--gd91-bg-deep); border-radius: 10px; padding: 0.9rem; margin: 0.6rem 0; border-left: 3px solid var(--gd91-primary); }
.gd91-testimonial .gd91-stars { color: var(--gd91-primary); margin-bottom: 0.3rem; }
.gd91-testimonial p { font-style: italic; color: var(--gd91-text); }
.gd91-testimonial-author { margin-top: 0.4rem; font-size: 1.2rem; color: var(--gd91-tan); }

/* ---------- Payment / app CTA ---------- */
.gd91-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.6rem 0; }
.gd91-pay-item { background: var(--gd91-bg-deep); border-radius: 8px; padding: 0.6rem 0.9rem; font-size: 1.2rem; color: var(--gd91-text); display: flex; align-items: center; gap: 0.4rem; border: 1px solid #3a3a3a; }
.gd91-pay-item i { color: var(--gd91-accent); }

.gd91-cta-box { background: linear-gradient(135deg, #3a2d12, #2D2D2D); border-radius: var(--gd91-radius); padding: 1.2rem; text-align: center; margin: 1rem 0; border: 1px solid var(--gd91-primary); }
.gd91-cta-box h3 { color: var(--gd91-primary); margin-top: 0; }

/* ---------- Winners ---------- */
.gd91-winner { display: flex; align-items: center; gap: 0.6rem; background: var(--gd91-bg-deep); border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0.4rem 0; border-left: 3px solid var(--gd91-accent); }
.gd91-winner img { width: 36px; height: 36px; border-radius: 6px; }
.gd91-winner .gd91-winner-name { font-weight: 700; color: var(--gd91-white); }
.gd91-winner .gd91-winner-amount { color: var(--gd91-primary); font-weight: 800; margin-left: auto; }

/* ---------- FAQ ---------- */
.gd91-faq-item { background: var(--gd91-bg-deep); border-radius: 8px; padding: 0.8rem 1rem; margin: 0.5rem 0; border-left: 3px solid var(--gd91-primary); }
.gd91-faq-item h3 { color: var(--gd91-primary); font-size: 1.35rem; margin: 0 0 0.3rem; }
.gd91-faq-item p { margin: 0; }

/* ---------- Inline links ---------- */
.gd91-inline-link { color: var(--gd91-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.gd91-inline-link:hover { color: var(--gd91-accent); }

/* ---------- Footer ---------- */
.gd91-footer { background: var(--gd91-bg-deep); padding: 1.4rem 1.2rem; margin-top: 1rem; border-top: 2px solid var(--gd91-primary); }
.gd91-footer-brand { color: var(--gd91-text); font-size: 1.25rem; margin-bottom: 0.6rem; }
.gd91-footer-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.gd91-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; margin: 0.6rem 0; }
.gd91-footer-links a { color: var(--gd91-tan); font-size: 1.15rem; }
.gd91-footer-links a:hover { color: var(--gd91-primary); }
.gd91-copyright { margin-top: 0.8rem; font-size: 1.1rem; color: var(--gd91-muted); text-align: center; }

/* ---------- Bottom navigation ---------- */
.gd91-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--gd91-bottomnav-h);
  background: var(--gd91-bg-deep);
  border-top: 2px solid var(--gd91-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  max-width: 430px; margin: 0 auto;
}
.gd91-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--gd91-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 1rem; cursor: pointer; padding: 4px 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.gd91-bottomnav-btn .material-icons,
.gd91-bottomnav-btn i,
.gd91-bottomnav-btn ion-icon { font-size: 22px; }
.gd91-bottomnav-btn:hover { transform: translateY(-2px); color: var(--gd91-primary); }
.gd91-bottomnav-active { color: var(--gd91-primary); }
.gd91-bottomnav-btn.gd91-bottomnav-active::after {
  content: ""; width: 24px; height: 3px; background: var(--gd91-primary); border-radius: 2px;
  position: absolute; bottom: 4px;
}
.gd91-bottomnav-btn { position: relative; }
.gd91-bottomnav-badge {
  position: absolute; top: 6px; right: 14px; min-width: 16px; height: 16px;
  background: var(--gd91-accent); color: #fff; border-radius: 8px;
  font-size: 1rem; line-height: 16px; padding: 0 4px; font-weight: 700;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .gd91-bottomnav { display: none; }
  body, .gd91-header, .gd91-mobile-menu { max-width: 430px; }
  .gd91-main { padding-bottom: 1.5rem; }
}

/* Small screens fine-tune */
@media (max-width: 360px) {
  .gd91-game-grid { grid-template-columns: repeat(2, 1fr); }
}
