/* ============================================================
 * me777 app - shared theme stylesheet
 * Class prefix: g7bb-  |  Variables: --g7bb-*
 * Palette: #D2691E #F8F9FA #FAF0E6 #2D2D2D #00FF7F #8B7355
 * Mobile-first, max 430px primary viewport.
 * ============================================================ */

:root {
  --g7bb-primary: #D2691E;       /* chocolate orange - brand */
  --g7bb-bg: #2D2D2D;            /* deep charcoal background */
  --g7bb-bg-2: #1c1c1c;          /* darker surface */
  --g7bb-surface: #FAF0E6;       /* warm linen highlight */
  --g7bb-text: #F8F9FA;          /* near-white text */
  --g7bb-text-dim: #b9b3aa;      /* muted text */
  --g7bb-accent: #00FF7F;        /* spring green CTA */
  --g7bb-brown: #8B7355;         /* soft brown secondary */
  --g7bb-gold: #F5C45E;          /* warm gold for jackpots */
  --g7bb-radius: 14px;
  --g7bb-shadow: 0 8px 24px rgba(0,0,0,.45);
  --g7bb-header-h: 60px;
  --g7bb-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: radial-gradient(circle at top, #3a3327 0%, var(--g7bb-bg) 55%, var(--g7bb-bg-2) 100%);
  color: var(--g7bb-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--g7bb-accent); text-decoration: none; }
a:hover { color: var(--g7bb-gold); }

.g7bb-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.g7bb-wrapper {
  padding-top: var(--g7bb-header-h);
  padding-bottom: calc(var(--g7bb-bottomnav-h) + 2rem);
}

/* ===================== HEADER ===================== */
.g7bb-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--g7bb-header-h);
  z-index: 1000;
  background: linear-gradient(180deg, rgba(45,45,45,.96), rgba(45,45,45,.88));
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--g7bb-primary);
  transition: box-shadow .25s ease, background .25s ease;
}
.g7bb-header-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.5); }

.g7bb-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
}

.g7bb-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--g7bb-text);
  font-weight: 700;
  font-size: 1.7rem;
}
.g7bb-brand img { width: 30px; height: 30px; border-radius: 8px; }
.g7bb-brand .g7bb-brand-accent { color: var(--g7bb-primary); }

.g7bb-header-actions { display: flex; align-items: center; gap: .6rem; }
.g7bb-hamburger {
  display: inline-flex;
  width: 38px; height: 38px;
  border: none;
  border-radius: 10px;
  background: rgba(210,105,30,.15);
  color: var(--g7bb-text);
  font-size: 2rem;
  cursor: pointer;
  align-items: center; justify-content: center;
}

/* ===================== BUTTONS ===================== */
.g7bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 40px;
  padding: 0 1.4rem;
  border: none;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.g7bb-btn:active { transform: scale(.96); }
.g7bb-btn-primary {
  background: linear-gradient(135deg, var(--g7bb-primary), #ff8c3a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(210,105,30,.45);
}
.g7bb-btn-accent {
  background: linear-gradient(135deg, var(--g7bb-accent), #00c965);
  color: #11231a;
  box-shadow: 0 4px 14px rgba(0,255,127,.35);
}
.g7bb-btn-ghost {
  background: transparent;
  color: var(--g7bb-text);
  border: 1.5px solid rgba(248,249,250,.35);
}
.g7bb-btn-block { width: 100%; }
.g7bb-btn-lg { min-height: 50px; font-size: 1.6rem; }

.g7bb-link-text {
  color: var(--g7bb-accent);
  font-weight: 700;
  border-bottom: 1.5px dashed rgba(0,255,127,.5);
  padding-bottom: 1px;
}

/* ===================== MOBILE MENU ===================== */
.g7bb-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.g7bb-overlay-show { opacity: 1; pointer-events: auto; }

.g7bb-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--g7bb-bg-2);
  z-index: 9999;
  padding: 2.4rem 1.6rem;
  overflow-y: auto;
  transition: right .3s ease;
  border-left: 2px solid var(--g7bb-primary);
}
.g7bb-menu-open { right: 0; }

.g7bb-mobile-menu h3 {
  font-size: 1.5rem;
  color: var(--g7bb-text-dim);
  margin: 1.8rem 0 .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.g7bb-mobile-menu a {
  display: block;
  color: var(--g7bb-text);
  padding: 1rem .6rem;
  border-radius: 10px;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.g7bb-mobile-menu a:active { background: rgba(210,105,30,.15); }

/* ===================== HERO / CAROUSEL ===================== */
.g7bb-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--g7bb-radius);
  box-shadow: var(--g7bb-shadow);
  margin: 1.6rem 0;
}
.g7bb-carousel-viewport { overflow: hidden; }
.g7bb-carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.g7bb-carousel-slide {
  min-width: 100%;
  position: relative;
}
.g7bb-carousel-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.g7bb-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  color: #fff;
}
.g7bb-carousel-caption strong { color: var(--g7bb-gold); font-size: 1.6rem; }
.g7bb-carousel-dots {
  display: flex;
  justify-content: center;
  gap: .6rem;
  padding: .8rem 0;
}
.g7bb-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(248,249,250,.35);
  border: none;
  cursor: pointer;
}
.g7bb-dot-active { background: var(--g7bb-primary); width: 22px; border-radius: 5px; }

/* ===================== TYPOGRAPHY / SECTIONS ===================== */
.g7bb-section {
  margin: 2.4rem 0;
}
.g7bb-h1 {
  font-size: 2.4rem;
  line-height: 3rem;
  margin: 1rem 0 1.2rem;
  color: var(--g7bb-text);
}
.g7bb-h1 span { color: var(--g7bb-primary); }
.g7bb-h2 {
  font-size: 2rem;
  margin: 2.4rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--g7bb-accent);
  color: var(--g7bb-text);
}
.g7bb-h3 { font-size: 1.7rem; margin: 1.6rem 0 .8rem; color: var(--g7bb-gold); }
.g7bb-lead { color: var(--g7bb-text-dim); font-size: 1.5rem; }
.g7bb-p { margin: .8rem 0; color: var(--g7bb-text); }

.g7bb-card {
  background: linear-gradient(160deg, rgba(250,240,230,.07), rgba(250,240,230,.02));
  border: 1px solid rgba(210,105,30,.25);
  border-radius: var(--g7bb-radius);
  padding: 1.4rem;
  margin: 1rem 0;
  box-shadow: var(--g7bb-shadow);
}

/* ===================== GAME GRID ===================== */
.g7bb-cat-title {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 2rem 0 1rem;
  color: var(--g7bb-gold);
  font-size: 1.8rem;
  font-weight: 700;
}
.g7bb-cat-title i { color: var(--g7bb-primary); }

.g7bb-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.g7bb-game-card {
  background: var(--g7bb-bg-2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease;
}
.g7bb-game-card:active { transform: scale(.95); border-color: var(--g7bb-primary); }
.g7bb-game-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}
.g7bb-game-name {
  font-size: 1.15rem;
  color: var(--g7bb-text);
  padding: .5rem .3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== FEATURE / HIGHLIGHTS ===================== */
.g7bb-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.g7bb-feature-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(139,115,85,.12);
  border: 1px solid rgba(139,115,85,.4);
  border-radius: 12px;
  padding: 1.2rem;
}
.g7bb-feature-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(210,105,30,.18);
  color: var(--g7bb-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

/* ===================== RTP / STATS ===================== */
.g7bb-rtp-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: .6rem;
  padding: .8rem 1rem;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  margin-bottom: .6rem;
  font-size: 1.35rem;
}
.g7bb-rtp-bar {
  height: 8px;
  background: rgba(255,255,255,.1);
  border-radius: 5px;
  overflow: hidden;
  margin-top: .4rem;
}
.g7bb-rtp-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--g7bb-primary), var(--g7bb-accent));
}

/* ===================== STEPS ===================== */
.g7bb-steps { list-style: none; padding: 0; margin: 0; }
.g7bb-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(0,255,127,.06);
  border-left: 3px solid var(--g7bb-accent);
  border-radius: 8px;
}
.g7bb-step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--g7bb-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===================== TESTIMONIALS ===================== */
.g7bb-testimonial {
  background: var(--g7bb-bg-2);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--g7bb-brown);
}
.g7bb-testimonial .g7bb-stars { color: var(--g7bb-gold); }
.g7bb-testimonial cite { display: block; margin-top: .6rem; color: var(--g7bb-text-dim); font-size: 1.3rem; }

/* ===================== PAYMENT / DOWNLOAD ===================== */
.g7bb-pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.g7bb-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(248,249,250,.08);
  border: 1px solid rgba(248,249,250,.15);
  border-radius: 999px;
  padding: .6rem 1rem;
  font-size: 1.3rem;
  color: var(--g7bb-text);
}

.g7bb-download-cta {
  background: linear-gradient(135deg, var(--g7bb-primary), #8B7355);
  border-radius: var(--g7bb-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1.6rem 0;
}
.g7bb-download-cta h3 { color: #fff; margin-top: 0; }

/* ===================== FAQ ===================== */
.g7bb-faq details {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  margin-bottom: .6rem;
  padding: 1rem 1.2rem;
}
.g7bb-faq summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--g7bb-text);
}
.g7bb-faq p { color: var(--g7bb-text-dim); margin: .8rem 0 0; }

/* ===================== FOOTER ===================== */
.g7bb-footer {
  margin-top: 3rem;
  padding: 2rem 1.4rem 2rem;
  background: var(--g7bb-bg-2);
  border-top: 2px solid var(--g7bb-primary);
  color: var(--g7bb-text-dim);
  font-size: 1.3rem;
}
.g7bb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  margin: 1rem 0;
}
.g7bb-footer-links a {
  color: var(--g7bb-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.g7bb-footer-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin: 1rem 0;
}
.g7bb-footer-promos .g7bb-btn { width: 100%; padding: 0 .8rem; font-size: 1.25rem; min-height: 38px; }
.g7bb-copyright { margin-top: 1.2rem; font-size: 1.2rem; color: var(--g7bb-text-dim); }

/* ===================== BOTTOM NAV ===================== */
.g7bb-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--g7bb-bottomnav-h);
  z-index: 1000;
  background: linear-gradient(180deg, rgba(45,45,45,.98), rgba(20,20,20,.99));
  border-top: 2px solid var(--g7bb-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.g7bb-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--g7bb-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color .2s ease, transform .15s ease;
  position: relative;
}
.g7bb-nav-btn .g7bb-nav-icon { font-size: 2.2rem; line-height: 1; }
.g7bb-nav-btn:active { transform: scale(.92); }
.g7bb-nav-btn.g7bb-active { color: var(--g7bb-accent); }
.g7bb-nav-btn.g7bb-active::before {
  content: "";
  position: absolute; top: 0;
  width: 28px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--g7bb-accent);
}
.g7bb-nav-promo .g7bb-nav-icon { color: var(--g7bb-gold); }

/* ===================== REVEAL ANIMATION ===================== */
.g7bb-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.g7bb-revealed { opacity: 1; transform: translateY(0); }

.g7bb-no-scroll { overflow: hidden; }

/* ===================== MOBILE MEDIA QUERY (<= 430px) ===================== */
@media (max-width: 430px) {
  html { font-size: 58%; }
  .g7bb-container { padding: 0 1.1rem; }
  .g7bb-h1 { font-size: 2.1rem; line-height: 2.8rem; }
  .g7bb-h2 { font-size: 1.8rem; }
  .g7bb-game-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .g7bb-game-card img { height: 78px; }
  .g7bb-carousel-slide img { height: 170px; }
  .g7bb-brand { font-size: 1.5rem; }
  .g7bb-header-actions .g7bb-btn { padding: 0 .9rem; min-height: 36px; font-size: 1.3rem; }
  .g7bb-footer-promos { grid-template-columns: 1fr 1fr; }
}

/* ===================== TABLET / DESKTOP ===================== */
@media (min-width: 431px) and (max-width: 768px) {
  .g7bb-container { max-width: 760px; }
  .g7bb-game-grid { grid-template-columns: repeat(4, 1fr); }
  .g7bb-feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 769px) {
  .g7bb-bottom-nav { display: none; }
  .g7bb-wrapper { padding-bottom: 3rem; }
  .g7bb-container { max-width: 960px; }
  .g7bb-game-grid { grid-template-columns: repeat(6, 1fr); }
  .g7bb-hamburger { display: none; }
  .g7bb-feature-grid { grid-template-columns: repeat(3, 1fr); }
  body { padding-bottom: 0; }
}
