/*!
 * Kuya King - layout.css
 * Mobile-first stylesheet for the Kuya King gaming portal.
 * All custom classes use the "g2b7-" prefix to isolate the namespace.
 * Color system: #FF5722 primary | #FFBF00 gold | #EEEEEE light | #0C0C0C dark.
 */

:root {
  --g2b7-primary: #FF5722;
  --g2b7-primary-dark: #c63d12;
  --g2b7-gold: #FFBF00;
  --g2b7-gold-soft: #ffd24a;
  --g2b7-light: #EEEEEE;
  --g2b7-bg: #0C0C0C;
  --g2b7-bg-soft: #181818;
  --g2b7-bg-card: #1f1f1f;
  --g2b7-bg-elev: #262626;
  --g2b7-text: #f4f4f4;
  --g2b7-text-muted: #b8b8b8;
  --g2b7-border: #2c2c2c;
  --g2b7-success: #2ecc71;
  --g2b7-danger: #ff4d4d;
  --g2b7-radius: 12px;
  --g2b7-radius-lg: 18px;
  --g2b7-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --g2b7-header-h: 56px;
  --g2b7-bottom-h: 62px;
}

* { box-sizing: border-box; }

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

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

body.g2b7-lock-scroll { overflow: hidden; }

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

.g2b7-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

.g2b7-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* ============ Header ============ */
.g2b7-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(12,12,12,0.98), rgba(12,12,12,0.92));
  border-bottom: 1px solid var(--g2b7-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.g2b7-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: var(--g2b7-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.g2b7-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--g2b7-gold);
  letter-spacing: 0.3px;
}

.g2b7-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--g2b7-gold);
}

.g2b7-brand .g2b7-brand-tag {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--g2b7-light);
  background: var(--g2b7-primary);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: 700;
}

.g2b7-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g2b7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
  text-decoration: none;
  color: #fff;
}

.g2b7-btn:active { transform: scale(0.96); }
.g2b7-btn-primary { background: var(--g2b7-primary); }
.g2b7-btn-primary:hover { background: var(--g2b7-primary-dark); color: #fff; }
.g2b7-btn-gold { background: var(--g2b7-gold); color: #1a1300; }
.g2b7-btn-gold:hover { background: var(--g2b7-gold-soft); color: #1a1300; }
.g2b7-btn-ghost {
  background: transparent;
  border: 1px solid var(--g2b7-gold);
  color: var(--g2b7-gold);
}
.g2b7-btn-block { width: 100%; }
.g2b7-btn-lg { min-height: 46px; font-size: 1.5rem; }

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

/* ============ Mobile Menu ============ */
.g2b7-mobile-menu {
  position: fixed;
  top: var(--g2b7-header-h);
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--g2b7-bg-soft);
  border-bottom: 1px solid var(--g2b7-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.g2b7-mobile-menu.g2b7-menu-open { max-height: 540px; }

.g2b7-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 12px 14px 18px;
}

.g2b7-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--g2b7-light);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.g2b7-mobile-menu a:hover {
  background: rgba(255,87,34,0.12);
  color: var(--g2b7-gold);
}

.g2b7-mobile-menu a i { font-size: 1.6rem; color: var(--g2b7-primary); width: 22px; text-align: center; }
.g2b7-mobile-menu a .material-icons,
.g2b7-mobile-menu a .bi { font-size: 1.6rem; color: var(--g2b7-primary); }

/* ============ Main ============ */
.g2b7-main {
  padding-top: calc(var(--g2b7-header-h) + 8px);
  padding-bottom: calc(var(--g2b7-bottom-h) + 24px);
  min-height: 100vh;
}

.g2b7-section { padding: 18px 0; }

.g2b7-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.g2b7-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--g2b7-gold);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.g2b7-section-title i,
.g2b7-section-title .material-icons { color: var(--g2b7-primary); font-size: 1.8rem; }

.g2b7-section-link {
  font-size: 1.2rem;
  color: var(--g2b7-light);
  font-weight: 600;
}

/* ============ Hero / Carousel ============ */
.g2b7-carousel {
  position: relative;
  border-radius: var(--g2b7-radius-lg);
  overflow: hidden;
  box-shadow: var(--g2b7-shadow);
}

.g2b7-carousel-track { position: relative; }

.g2b7-carousel-slide {
  position: relative;
  display: none;
  cursor: pointer;
}

.g2b7-carousel-slide.g2b7-active { display: block; }

.g2b7-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.g2b7-carousel-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.75));
  padding: 16px 14px 12px;
  border-radius: 10px;
}

.g2b7-carousel-caption h2 {
  margin: 0 0 4px;
  font-size: 1.7rem;
  color: var(--g2b7-gold);
}

.g2b7-carousel-caption p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--g2b7-light);
}

.g2b7-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.g2b7-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.g2b7-carousel-dot.g2b7-active {
  background: var(--g2b7-gold);
  width: 22px;
  border-radius: 4px;
}

/* ============ Hero Banner CTA ============ */
.g2b7-hero-cta {
  background: linear-gradient(135deg, var(--g2b7-primary), #ff8a3d);
  border-radius: var(--g2b7-radius-lg);
  padding: 16px 14px;
  margin: 14px 0;
  text-align: center;
  color: #fff;
  box-shadow: var(--g2b7-shadow);
}

.g2b7-hero-cta h1 {
  margin: 0 0 6px;
  font-size: 1.9rem;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
}

.g2b7-hero-cta p {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.92);
}

/* ============ Game Grid ============ */
.g2b7-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.g2b7-grid-4 { grid-template-columns: repeat(4, 1fr); }

.g2b7-game-card {
  background: var(--g2b7-bg-card);
  border-radius: var(--g2b7-radius);
  overflow: hidden;
  border: 1px solid var(--g2b7-border);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.g2b7-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,87,34,0.25);
  border-color: var(--g2b7-primary);
}

.g2b7-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}

.g2b7-game-card .g2b7-game-name {
  display: block;
  font-size: 1.15rem;
  color: var(--g2b7-light);
  padding: 6px 4px 8px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Filter Bar ============ */
.g2b7-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
}

.g2b7-filter-bar button {
  flex: 0 0 auto;
  background: var(--g2b7-bg-elev);
  border: 1px solid var(--g2b7-border);
  color: var(--g2b7-light);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.g2b7-filter-bar button.g2b7-active {
  background: var(--g2b7-primary);
  color: #fff;
  border-color: var(--g2b7-primary);
}

/* ============ Card / Panel ============ */
.g2b7-card {
  background: var(--g2b7-bg-card);
  border: 1px solid var(--g2b7-border);
  border-radius: var(--g2b7-radius);
  padding: 14px;
  margin-bottom: 12px;
}

.g2b7-card h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--g2b7-gold);
}

.g2b7-card p {
  margin: 0 0 8px;
  color: var(--g2b7-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
}

.g2b7-card ul { padding-left: 18px; margin: 8px 0; color: var(--g2b7-text-muted); }
.g2b7-card ul li { margin-bottom: 6px; font-size: 1.25rem; line-height: 1.5; }

/* ============ Feature / Highlights ============ */
.g2b7-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.g2b7-feature {
  background: var(--g2b7-bg-card);
  border: 1px solid var(--g2b7-border);
  border-radius: var(--g2b7-radius);
  padding: 14px 10px;
  text-align: center;
}

.g2b7-feature i,
.g2b7-feature .material-icons,
.g2b7-feature .bi {
  font-size: 2.4rem;
  color: var(--g2b7-primary);
  margin-bottom: 6px;
}

.g2b7-feature h4 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: var(--g2b7-gold);
}

.g2b7-feature p {
  margin: 0;
  font-size: 1.15rem;
  color: var(--g2b7-text-muted);
  line-height: 1.4;
}

/* ============ Steps ============ */
.g2b7-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.g2b7-steps li {
  position: relative;
  padding: 10px 10px 10px 44px;
  margin-bottom: 8px;
  background: var(--g2b7-bg-card);
  border-radius: var(--g2b7-radius);
  border: 1px solid var(--g2b7-border);
  font-size: 1.25rem;
  color: var(--g2b7-light);
  line-height: 1.5;
  counter-increment: step;
}
.g2b7-steps li::before {
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--g2b7-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ FAQ / Accordion ============ */
.g2b7-faq-item {
  background: var(--g2b7-bg-card);
  border: 1px solid var(--g2b7-border);
  border-radius: var(--g2b7-radius);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.g2b7-faq-item h4 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: var(--g2b7-gold);
}
.g2b7-faq-item p { margin: 0; font-size: 1.2rem; color: var(--g2b7-text-muted); line-height: 1.5; }

/* ============ Testimonials ============ */
.g2b7-testimonial {
  background: var(--g2b7-bg-card);
  border: 1px solid var(--g2b7-border);
  border-radius: var(--g2b7-radius);
  padding: 12px;
  margin-bottom: 8px;
}
.g2b7-testimonial-stars { color: var(--g2b7-gold); font-size: 1.2rem; margin-bottom: 4px; }
.g2b7-testimonial p { margin: 0 0 6px; font-size: 1.2rem; color: var(--g2b7-text-muted); line-height: 1.5; }
.g2b7-testimonial strong { color: var(--g2b7-light); font-size: 1.2rem; }

/* ============ Payment / Winners ============ */
.g2b7-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.g2b7-chip {
  background: var(--g2b7-bg-card);
  border: 1px solid var(--g2b7-border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 1.15rem;
  color: var(--g2b7-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.g2b7-chip i, .g2b7-chip .bi { color: var(--g2b7-gold); font-size: 1.3rem; }

.g2b7-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--g2b7-bg-card);
  border: 1px solid var(--g2b7-border);
  border-radius: var(--g2b7-radius);
  margin-bottom: 6px;
  font-size: 1.2rem;
}
.g2b7-winner-row .g2b7-winner-game { color: var(--g2b7-light); font-weight: 600; }
.g2b7-winner-row .g2b7-winner-amount { color: var(--g2b7-gold); font-weight: 800; }

/* ============ RTP table ============ */
.g2b7-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.g2b7-rtp-table th, .g2b7-rtp-table td {
  border: 1px solid var(--g2b7-border);
  padding: 8px 10px;
  text-align: left;
}
.g2b7-rtp-table th { background: var(--g2b7-bg-elev); color: var(--g2b7-gold); }
.g2b7-rtp-table td { color: var(--g2b7-light); }
.g2b7-rtp-badge {
  background: var(--g2b7-success);
  color: #04210f;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============ Inline promo links ============ */
.g2b7-promo-link {
  color: var(--g2b7-primary);
  font-weight: 800;
  cursor: pointer;
}
.g2b7-promo-link:hover { color: var(--g2b7-gold); text-decoration: underline; }

/* ============ App Download CTA ============ */
.g2b7-app-cta {
  background: linear-gradient(135deg, #1a1a1a, #2a1a0a);
  border: 1px solid var(--g2b7-gold);
  border-radius: var(--g2b7-radius-lg);
  padding: 16px;
  text-align: center;
}
.g2b7-app-cta h3 { margin: 0 0 6px; color: var(--g2b7-gold); font-size: 1.6rem; }
.g2b7-app-cta p { margin: 0 0 12px; color: var(--g2b7-text-muted); font-size: 1.2rem; }
.g2b7-app-cta .g2b7-btn { margin: 0 4px; }

/* ============ Footer ============ */
.g2b7-footer {
  background: #050505;
  border-top: 1px solid var(--g2b7-border);
  padding: 22px 0 calc(var(--g2b7-bottom-h) + 24px);
}

.g2b7-footer .g2b7-footer-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

.g2b7-footer h4 {
  font-size: 1.4rem;
  color: var(--g2b7-gold);
  margin: 14px 0 8px;
}

.g2b7-footer p {
  color: var(--g2b7-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 0 8px;
}

.g2b7-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.g2b7-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--g2b7-bg-card);
  border: 1px solid var(--g2b7-border);
  color: var(--g2b7-light);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.15rem;
}

.g2b7-footer-links a:hover { color: var(--g2b7-gold); border-color: var(--g2b7-primary); }

.g2b7-footer-copy {
  text-align: center;
  color: #777;
  font-size: 1.1rem;
  margin-top: 14px;
}

/* ============ Bottom Nav ============ */
.g2b7-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--g2b7-bottom-h);
  background: linear-gradient(180deg, #141414, #060606);
  border-top: 1px solid var(--g2b7-gold);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.6);
}

.g2b7-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--g2b7-text-muted);
  font-size: 1rem;
  text-decoration: none;
  gap: 2px;
  position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
}

.g2b7-bottom-nav a i,
.g2b7-bottom-nav a .material-icons,
.g2b7-bottom-nav a .bi,
.g2b7-bottom-nav a ion-icon {
  font-size: 22px;
}

.g2b7-bottom-nav a:hover,
.g2b7-bottom-nav a.g2b7-current {
  color: var(--g2b7-gold);
}

.g2b7-bottom-nav a:active { transform: scale(0.92); }

.g2b7-bottom-nav a.g2b7-current::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--g2b7-primary);
}

.g2b7-bottom-nav a.g2b7-nav-promo {
  color: var(--g2b7-primary);
}

.g2b7-bottom-nav a.g2b7-nav-promo .g2b7-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 22px);
  background: var(--g2b7-danger);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 5px;
  line-height: 14px;
}

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

/* ============ Desktop ============ */
@media (min-width: 769px) {
  .g2b7-bottom-nav { display: none; }
  .g2b7-header-inner { max-width: 760px; }
  .g2b7-container, .g2b7-wrapper, .g2b7-footer .g2b7-footer-inner, .g2b7-mobile-menu-inner {
    max-width: 760px;
  }
  .g2b7-grid { grid-template-columns: repeat(6, 1fr); }
  .g2b7-feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Keep mobile container width hard cap */
@media (max-width: 430px) {
  .g2b7-container, .g2b7-wrapper { width: 100%; }
}
