/* ============================================================
 * Bunny Gaming - layout.css
 * Mobile-first (max 430px) base layout.
 * Every class uses the "gf56-" prefix.
 * Palette: #2D2D2D / #DEB887 / #FFF8DC
 * ============================================================ */

:root {
  --gf56-bg: #2D2D2D;
  --gf56-bg-soft: #3a3a3a;
  --gf56-bg-deep: #1f1f1f;
  --gf56-primary: #DEB887;
  --gf56-primary-dark: #b8966c;
  --gf56-text: #FFF8DC;
  --gf56-text-dim: #d8d2c4;
  --gf56-accent: #e8c89a;
  --gf56-success: #6ec77a;
  --gf56-danger: #e07a6a;
  --gf56-border: rgba(222, 184, 135, 0.25);
}

/* Root font sizing for rem-based scaling. */
html { font-size: 62.5%; }

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

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

body.gf56-menu-open { overflow: hidden; }

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

a { color: var(--gf56-primary); text-decoration: none; }
a:hover { color: var(--gf56-accent); }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--gf56-text); }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.35rem; }

p { margin-bottom: 1rem; color: var(--gf56-text-dim); }

/* ============================================================
 * Layout shells
 * ============================================================ */
.gf56-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }
.gf56-container { padding: 0 1.2rem; width: 100%; }
.gf56-main { padding-bottom: 9rem; padding-top: 5.4rem; }
.gf56-section { padding: 2rem 0; }
.gf56-section--alt { background: var(--gf56-bg-deep); }

.gf56-section-title {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.gf56-section-title i { color: var(--gf56-primary); font-size: 2rem; }
.gf56-section-title h2 { color: var(--gf56-text); }
.gf56-section-title small { color: var(--gf56-text-dim); font-size: 1.2rem; }

.gf56-lead { font-size: 1.45rem; color: var(--gf56-text); }

/* ============================================================
 * Header
 * ============================================================ */
.gf56-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1f1f1f 0%, #2D2D2D 100%);
  border-bottom: 1px solid var(--gf56-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.gf56-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; height: 5.4rem;
}
.gf56-brand { display: flex; align-items: center; gap: 0.7rem; }
.gf56-brand img { width: 32px; height: 32px; border-radius: 8px; }
.gf56-brand-name {
  font-size: 1.6rem; font-weight: 800; color: var(--gf56-primary);
  letter-spacing: 0.3px;
}
.gf56-brand-name span { color: var(--gf56-text); }
.gf56-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.gf56-menu-btn {
  background: transparent; border: 1px solid var(--gf56-border);
  color: var(--gf56-primary); width: 38px; height: 38px;
  border-radius: 8px; cursor: pointer; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
 * Buttons
 * ============================================================ */
.gf56-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.75rem 1.4rem; border-radius: 999px;
  font-size: 1.35rem; font-weight: 700; cursor: pointer;
  border: none; min-height: 44px; transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.gf56-btn:hover { transform: translateY(-1px); }
.gf56-btn--primary { background: linear-gradient(135deg, #DEB887 0%, #b8966c 100%); color: #2D2D2D; box-shadow: 0 4px 12px rgba(222,184,135,0.3); }
.gf56-btn--ghost { background: transparent; color: var(--gf56-primary); border: 1px solid var(--gf56-primary); }
.gf56-btn--block { width: 100%; }
.gf56-btn--sm { padding: 0.55rem 1rem; font-size: 1.2rem; min-height: 38px; }

.gf56-link-text {
  color: var(--gf56-primary); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--gf56-primary);
}
.gf56-link-text:hover { color: var(--gf56-accent); }

/* ============================================================
 * Mobile drawer menu
 * ============================================================ */
.gf56-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.gf56-menu-backdrop.gf56-active { opacity: 1; pointer-events: auto; }

.gf56-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px;
  height: 100%; background: var(--gf56-bg-deep); z-index: 9999;
  transition: right .28s ease; padding: 1.4rem; overflow-y: auto;
  border-left: 1px solid var(--gf56-border);
}
.gf56-mobile-menu.gf56-active { right: 0; }
.gf56-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.gf56-menu-head h3 { color: var(--gf56-primary); }
.gf56-menu-close {
  background: transparent; border: none; color: var(--gf56-text);
  font-size: 1.8rem; cursor: pointer;
}
.gf56-menu-list { list-style: none; }
.gf56-menu-list li { border-bottom: 1px solid var(--gf56-border); }
.gf56-menu-list a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 0.4rem; color: var(--gf56-text); font-weight: 600;
}
.gf56-menu-list a i { color: var(--gf56-primary); width: 22px; text-align: center; }
.gf56-menu-list a:hover { color: var(--gf56-primary); }
.gf56-menu-cta { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }

/* ============================================================
 * Hero carousel
 * ============================================================ */
.gf56-hero {
  position: relative; margin: 1rem 0 0; border-radius: 14px;
  overflow: hidden; height: 200px; background: var(--gf56-bg-deep);
}
.gf56-hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  display: flex; align-items: flex-end; padding: 1rem;
}
.gf56-hero-slide.gf56-active { opacity: 1; }
.gf56-hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gf56-hero-caption {
  position: relative; z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  width: 100%; padding: 1.4rem 0.6rem 0.4rem; color: var(--gf56-text);
}
.gf56-hero-caption h2 { font-size: 1.7rem; color: var(--gf56-primary); margin-bottom: 0.3rem; }
.gf56-hero-caption p { font-size: 1.2rem; color: var(--gf56-text-dim); margin: 0; }

.gf56-hero-dots {
  position: absolute; bottom: 0.6rem; right: 0.8rem; z-index: 3;
  display: flex; gap: 0.4rem;
}
.gf56-hero-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,248,220,0.4);
  cursor: pointer; border: none;
}
.gf56-hero-dot.gf56-active { background: var(--gf56-primary); }

/* ============================================================
 * Trust strip
 * ============================================================ */
.gf56-trust {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem;
}
.gf56-trust-item {
  flex: 1 1 30%; background: var(--gf56-bg-soft); border: 1px solid var(--gf56-border);
  border-radius: 10px; padding: 0.8rem; text-align: center;
}
.gf56-trust-item i { color: var(--gf56-primary); font-size: 1.8rem; }
.gf56-trust-item span { display: block; font-size: 1.1rem; color: var(--gf56-text-dim); margin-top: 0.3rem; }

/* ============================================================
 * Game grid + cards
 * ============================================================ */
.gf56-filter-bar {
  display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.6rem;
  margin-bottom: 1rem; -webkit-overflow-scrolling: touch;
}
.gf56-filter-btn {
  white-space: nowrap; padding: 0.5rem 1.1rem; border-radius: 999px;
  background: var(--gf56-bg-soft); border: 1px solid var(--gf56-border);
  color: var(--gf56-text-dim); font-size: 1.2rem; cursor: pointer;
}
.gf56-filter-btn.gf56-active { background: var(--gf56-primary); color: var(--gf56-bg); }

.gf56-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.gf56-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gf56-grid--2 { grid-template-columns: repeat(2, 1fr); }

.gf56-card {
  background: var(--gf56-bg-soft); border: 1px solid var(--gf56-border);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block; text-align: center;
}
.gf56-card:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.35); }
.gf56-card-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #000;
}
.gf56-card-name {
  font-size: 1.05rem; color: var(--gf56-text); padding: 0.45rem 0.3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gf56-card-tag {
  display: inline-block; font-size: 0.95rem; padding: 0.1rem 0.5rem;
  background: rgba(222,184,135,0.18); color: var(--gf56-primary);
  border-radius: 999px; margin-bottom: 0.4rem;
}

.gf56-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.6rem 0 0.9rem;
}
.gf56-cat-head h3 { display: flex; align-items: center; gap: 0.5rem; color: var(--gf56-primary); }
.gf56-cat-head h3 i { font-size: 1.7rem; }

/* ============================================================
 * Feature / info blocks
 * ============================================================ */
.gf56-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem;
}
.gf56-feature {
  background: var(--gf56-bg-soft); border: 1px solid var(--gf56-border);
  border-radius: 10px; padding: 1rem;
}
.gf56-feature i { color: var(--gf56-primary); font-size: 2rem; margin-bottom: 0.5rem; }
.gf56-feature h4 { margin-bottom: 0.3rem; }
.gf56-feature p { font-size: 1.15rem; margin: 0; }

.gf56-steps { counter-reset: step; list-style: none; }
.gf56-steps li {
  position: relative; padding: 0.6rem 0 0.6rem 3rem; border-bottom: 1px solid var(--gf56-border);
}
.gf56-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0.6rem; width: 2.2rem; height: 2.2rem;
  background: var(--gf56-primary); color: var(--gf56-bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ============================================================
 * Promo CTA banner
 * ============================================================ */
.gf56-promo-banner {
  background: linear-gradient(135deg, #3a2f23 0%, #2D2D2D 100%);
  border: 1px solid var(--gf56-primary); border-radius: 14px;
  padding: 1.4rem; margin: 1.4rem 0; text-align: center;
}
.gf56-promo-banner h3 { color: var(--gf56-primary); margin-bottom: 0.4rem; }
.gf56-promo-banner p { color: var(--gf56-text-dim); margin-bottom: 1rem; }

/* ============================================================
 * RTP table
 * ============================================================ */
.gf56-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.gf56-table th, .gf56-table td {
  padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--gf56-border); text-align: left;
}
.gf56-table th { color: var(--gf56-primary); background: var(--gf56-bg-deep); }
.gf56-table td { color: var(--gf56-text-dim); }
.gf56-bar {
  height: 6px; border-radius: 4px; background: var(--gf56-bg-deep); overflow: hidden; width: 80px; display: inline-block; vertical-align: middle;
}
.gf56-bar > span { display: block; height: 100%; background: var(--gf56-primary); }

/* ============================================================
 * Testimonials
 * ============================================================ */
.gf56-testi {
  background: var(--gf56-bg-soft); border: 1px solid var(--gf56-border);
  border-radius: 10px; padding: 1rem; margin-bottom: 0.7rem;
}
.gf56-testi-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.gf56-testi-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--gf56-primary);
  color: var(--gf56-bg); display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.gf56-testi-name { font-weight: 700; color: var(--gf56-text); font-size: 1.25rem; }
.gf56-stars { color: #f0c040; font-size: 1.1rem; }
.gf56-testi p { font-size: 1.18rem; margin: 0; }

/* ============================================================
 * Payment + winners
 * ============================================================ */
.gf56-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.gf56-pay {
  background: var(--gf56-bg-soft); border: 1px solid var(--gf56-border);
  border-radius: 8px; padding: 0.7rem 0.2rem; text-align: center;
  font-size: 1rem; color: var(--gf56-text-dim);
}
.gf56-pay i { display: block; color: var(--gf56-primary); font-size: 1.8rem; margin-bottom: 0.3rem; }

.gf56-winner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0; border-bottom: 1px solid var(--gf56-border); font-size: 1.15rem;
}
.gf56-winner b { color: var(--gf56-success); }

/* ============================================================
 * FAQ accordion (pure CSS via <details>)
 * ============================================================ */
.gf56-faq {
  background: var(--gf56-bg-soft); border: 1px solid var(--gf56-border);
  border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 0.6rem;
}
.gf56-faq summary {
  cursor: pointer; font-weight: 700; color: var(--gf56-text);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.gf56-faq summary::after { content: "+"; color: var(--gf56-primary); font-size: 1.6rem; }
.gf56-faq[open] summary::after { content: "\2212"; }
.gf56-faq p { margin-top: 0.6rem; font-size: 1.18rem; }

/* ============================================================
 * Footer
 * ============================================================ */
.gf56-footer {
  background: var(--gf56-bg-deep); border-top: 1px solid var(--gf56-border);
  padding: 2rem 0 1rem; margin-top: 1rem;
}
.gf56-footer-brand { margin-bottom: 1rem; }
.gf56-footer-brand h3 { color: var(--gf56-primary); margin-bottom: 0.4rem; }
.gf56-footer-brand p { font-size: 1.18rem; }
.gf56-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1rem; }
.gf56-footer-col h4 { color: var(--gf56-primary); margin-bottom: 0.5rem; font-size: 1.3rem; }
.gf56-footer-col a {
  display: block; padding: 0.3rem 0; color: var(--gf56-text-dim); font-size: 1.15rem;
}
.gf56-footer-promos { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 1rem; }
.gf56-footer-promos .gf56-btn { flex: 1 1 45%; font-size: 1.15rem; }
.gf56-footer-bottom {
  border-top: 1px solid var(--gf56-border); padding-top: 0.9rem; text-align: center;
  font-size: 1.1rem; color: var(--gf56-text-dim);
}

/* ============================================================
 * Bottom navigation (mobile only)
 * ============================================================ */
.gf56-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #2D2D2D 0%, #1f1f1f 100%);
  border-top: 1px solid var(--gf56-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px; padding: 0;
}
.gf56-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gf56-text-dim); font-size: 1rem; gap: 0.15rem;
  position: relative; transition: color .15s ease;
  min-width: 60px; min-height: 60px;
}
.gf56-bottom-nav a i { font-size: 22px; }
.gf56-bottom-nav a:hover, .gf56-bottom-nav a.gf56-current { color: var(--gf56-primary); }
.gf56-bottom-nav a.gf56-current::before {
  content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px;
  background: var(--gf56-primary); border-radius: 0 0 4px 4px;
}
.gf56-bottom-nav a:active { transform: scale(0.93); }
.gf56-bottom-nav .gf56-badge {
  position: absolute; top: 6px; right: 18px;
  background: var(--gf56-danger); color: #fff; font-size: 9px;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Back-to-top floating button */
.gf56-to-top {
  position: fixed; right: 14px; bottom: 76px; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--gf56-primary); color: var(--gf56-bg); cursor: pointer;
  font-size: 1.6rem; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.gf56-to-top.gf56-active { opacity: 1; pointer-events: auto; }

/* ============================================================
 * Desktop / tablet overrides
 * ============================================================ */
@media (min-width: 768px) {
  .gf56-wrapper { max-width: 760px; }
  .gf56-bottom-nav { display: none; }
  .gf56-main { padding-bottom: 2rem; }
  .gf56-grid { grid-template-columns: repeat(5, 1fr); }
  .gf56-grid--4 { grid-template-columns: repeat(6, 1fr); }
  .gf56-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .gf56-footer-cols { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .gf56-wrapper { max-width: 1000px; }
  .gf56-grid { grid-template-columns: repeat(6, 1fr); }
}
