/* funbingo.homes theme
 * Prefix: g548- for all custom classes
 * Palette: #4DB6AC teal | #FF69B4 pink | #F0FDFF ice | #0A0A0A ink | #E0E0E0 mist | #FF7F50 coral
 * Mobile-first, rem units (root 62.5%), touch targets >= 44px
 */
:root {
  --g548-teal: #4DB6AC;
  --g548-pink: #FF69B4;
  --g548-ice: #F0FDFF;
  --g548-ink: #0A0A0A;
  --g548-mist: #E0E0E0;
  --g548-coral: #FF7F50;
  --g548-bg: #0A0A0A;
  --g548-bg2: #141414;
  --g548-card: #1c1c1c;
  --g548-text: #F0FDFF;
  --g548-muted: #9aa0a6;
  --g548-gold: #FFD54F;
  --g548-radius: 14px;
  --g548-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --g548-max: 430px;
}
* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(circle at 20% 0%, #1a1a1a 0%, var(--g548-bg) 60%);
  color: var(--g548-text);
  font-size: 1.5rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--g548-teal); text-decoration: none; }
.g548-hidden { display: none !important; }
.g548-no-scroll { overflow: hidden; }
.g548-wrap { width: 100%; max-width: var(--g548-max); margin: 0 auto; padding: 0 14px; }

/* ===== Header ===== */
.g548-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(77, 182, 172, 0.25);
}
.g548-header-inner {
  max-width: var(--g548-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; min-height: 56px;
}
.g548-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.9rem; color: var(--g548-text); }
.g548-logo .g548-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--g548-teal), var(--g548-pink));
  display: flex; align-items: center; justify-content: center; color: #0A0A0A; font-size: 1.6rem;
}
.g548-logo .g548-accent { color: var(--g548-pink); }
.g548-header-actions { display: flex; align-items: center; gap: 8px; }
.g548-menu-btn {
  background: transparent; border: 0; color: var(--g548-text);
  font-size: 2.2rem; padding: 6px 8px; min-width: 44px; min-height: 44px; cursor: pointer;
}
.g548-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-weight: 700; font-size: 1.4rem; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.g548-btn:active { transform: scale(0.96); }
.g548-btn-login { background: transparent; color: var(--g548-text); border: 1px solid var(--g548-teal); }
.g548-btn-register {
  background: linear-gradient(135deg, var(--g548-coral), var(--g548-pink));
  color: #fff; box-shadow: 0 4px 14px rgba(255, 127, 80, 0.45);
}

/* ===== Mobile slide menu ===== */
.g548-mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: var(--g548-bg2);
  transform: translateY(-100%); transition: transform 0.28s ease;
  padding: 64px 16px 24px; border-bottom: 1px solid rgba(77, 182, 172, 0.25);
  max-height: 100vh; overflow-y: auto;
}
.g548-mobile-menu.g548-open { transform: translateY(0); }
.g548-mobile-menu a {
  display: block; padding: 12px 8px; color: var(--g548-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 1.5rem;
}
.g548-mobile-menu a:active { color: var(--g548-pink); }
.g548-menu-close {
  position: absolute; top: 12px; right: 14px; background: transparent; border: 0;
  color: var(--g548-text); font-size: 2.4rem; cursor: pointer; min-width: 44px; min-height: 44px;
}

/* ===== Layout main ===== */
.g548-main { padding-top: 70px; padding-bottom: 90px; }

/* ===== Hero carousel ===== */
.g548-hero { position: relative; border-radius: var(--g548-radius); overflow: hidden; margin-bottom: 18px; }
.g548-slide {
  position: relative; display: none; min-height: 190px;
  border-radius: var(--g548-radius); overflow: hidden;
}
.g548-slide.g548-active { display: block; }
.g548-slide img { width: 100%; height: 200px; object-fit: cover; }
.g548-slide-content {
  position: absolute; inset: 0; padding: 20px;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(90deg, rgba(10,10,10,0.82) 30%, rgba(10,10,10,0.25) 100%);
}
.g548-slide-title { font-size: 2.2rem; font-weight: 800; margin: 0 0 6px; color: #fff; }
.g548-slide-title .g548-accent { color: var(--g548-pink); }
.g548-slide-sub { font-size: 1.35rem; color: var(--g548-ice); margin: 0 0 12px; }
.g548-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.g548-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--g548-mist);
  opacity: 0.5; border: 0; cursor: pointer; padding: 0;
}
.g548-dot.g548-active { background: var(--g548-teal); opacity: 1; width: 22px; border-radius: 4px; }

/* ===== Promo CTA banner ===== */
.g548-cta {
  background: linear-gradient(135deg, var(--g548-teal), var(--g548-pink));
  border-radius: var(--g548-radius); padding: 16px; color: #0A0A0A;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 18px; box-shadow: var(--g548-shadow);
}
.g548-cta-text { font-weight: 800; font-size: 1.5rem; }
.g548-cta-text small { display: block; font-weight: 500; font-size: 1.2rem; opacity: 0.85; }
.g548-cta .g548-btn {
  background: #0A0A0A; color: #fff; min-height: 42px; padding: 0 18px;
}

/* ===== Section title ===== */
.g548-section { margin-bottom: 26px; }
.g548-section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.g548-section-title {
  font-size: 1.8rem; font-weight: 800; margin: 0;
  display: flex; align-items: center; gap: 8px;
}
.g548-section-title::before {
  content: ''; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(var(--g548-teal), var(--g548-pink));
}
.g548-section-more { font-size: 1.25rem; color: var(--g548-teal); }

/* ===== Category tabs ===== */
.g548-cats {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch; margin-bottom: 14px;
}
.g548-cats::-webkit-scrollbar { display: none; }
.g548-cat-tab {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 999px;
  background: var(--g548-card); color: var(--g548-text);
  border: 1px solid rgba(255,255,255,0.08); font-size: 1.3rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
}
.g548-cat-tab.g548-active {
  background: linear-gradient(135deg, var(--g548-coral), var(--g548-pink));
  border-color: transparent; color: #fff;
}

/* ===== Game grid ===== */
.g548-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.g548-card {
  background: var(--g548-card); border-radius: 12px; overflow: hidden;
  position: relative; border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.15s ease;
}
.g548-card:active { transform: scale(0.97); }
.g548-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.g548-card-name {
  padding: 8px 6px; font-size: 1.15rem; text-align: center; color: var(--g548-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g548-card-play {
  position: absolute; top: 6px; right: 6px;
  background: rgba(255, 105, 180, 0.92); color: #fff;
  border: 0; border-radius: 8px; padding: 4px 8px; font-size: 1.05rem; cursor: pointer;
}
.g548-card-hot {
  position: absolute; top: 6px; left: 6px;
  background: var(--g548-coral); color: #fff; font-size: 1rem;
  padding: 2px 7px; border-radius: 6px; font-weight: 700;
}

/* ===== Feature / info cards ===== */
.g548-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.g548-feature {
  background: var(--g548-card); border-radius: 12px; padding: 14px;
  border: 1px solid rgba(77,182,172,0.18);
}
.g548-feature .g548-ico { font-size: 2.4rem; color: var(--g548-teal); margin-bottom: 6px; }
.g548-feature h3 { margin: 0 0 4px; font-size: 1.35rem; color: var(--g548-text); }
.g548-feature p { margin: 0; font-size: 1.2rem; color: var(--g548-muted); line-height: 1.4; }

/* ===== SEO content block ===== */
.g548-seo {
  background: var(--g548-card); border-radius: var(--g548-radius);
  padding: 18px; margin-bottom: 22px; border: 1px solid rgba(255,255,255,0.05);
}
.g548-seo h2 { font-size: 1.7rem; margin: 0 0 10px; color: var(--g548-text); }
.g548-seo h3 { font-size: 1.4rem; margin: 14px 0 6px; color: var(--g548-teal); }
.g548-seo p { font-size: 1.3rem; color: var(--g548-muted); margin: 0 0 10px; line-height: 1.6; }
.g548-seo a { color: var(--g548-pink); }
.g548-seo ul { padding-left: 18px; color: var(--g548-muted); font-size: 1.3rem; }
.g548-seo li { margin-bottom: 6px; }

/* ===== Promo link text ===== */
.g548-play-link {
  color: var(--g548-coral); font-weight: 700; cursor: pointer;
}
.g548-play-link:hover { text-decoration: underline; }

/* ===== FAQ ===== */
.g548-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06); padding: 10px 0;
}
.g548-faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 1.35rem; color: var(--g548-text);
  list-style: none; position: relative; padding-right: 24px;
}
.g548-faq-item summary::-webkit-details-marker { display: none; }
.g548-faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 0; color: var(--g548-teal); font-size: 1.8rem;
}
.g548-faq-item[open] summary::after { content: '\2212'; }
.g548-faq-item p { margin: 8px 0 0; color: var(--g548-muted); font-size: 1.25rem; line-height: 1.55; }

/* ===== Footer ===== */
.g548-footer {
  background: var(--g548-bg2); border-top: 1px solid rgba(77,182,172,0.2);
  padding: 22px 14px 16px;
}
.g548-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }
.g548-footer h4 { margin: 0 0 8px; font-size: 1.3rem; color: var(--g548-teal); }
.g548-footer a { display: block; color: var(--g548-muted); font-size: 1.2rem; padding: 4px 0; }
.g548-footer a:hover { color: var(--g548-pink); }
.g548-footer-bottom {
  text-align: center; color: var(--g548-muted); font-size: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 12px;
}
.g548-footer-warn {
  background: rgba(255,127,80,0.1); border: 1px solid rgba(255,127,80,0.3);
  border-radius: 10px; padding: 10px; font-size: 1.1rem; color: var(--g548-coral); margin-bottom: 12px;
}

/* ===== Bottom nav ===== */
.g548-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(77, 182, 172, 0.28);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px;
}
.g548-bottom-nav button, .g548-bottom-nav a {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: 0; color: var(--g548-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 1rem; cursor: pointer; text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
.g548-bottom-nav button:active, .g548-bottom-nav a:active { transform: scale(0.92); }
.g548-bottom-nav .g548-ico { font-size: 2.2rem; line-height: 1; }
.g548-bottom-nav .g548-active-nav { color: var(--g548-pink); }
.g548-bottom-nav .g548-promo-center {
  position: relative; top: -14px;
  background: linear-gradient(135deg, var(--g548-coral), var(--g548-pink));
  color: #fff; width: 54px; height: 54px; border-radius: 50%;
  margin: 0 auto; box-shadow: 0 4px 14px rgba(255,105,180,0.5);
  border: 3px solid var(--g548-bg);
}
.g548-bottom-nav .g548-promo-center .g548-ico { font-size: 2.4rem; }

/* ===== Back to top ===== */
.g548-top-btn {
  position: fixed; right: 14px; bottom: 76px; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--g548-teal); color: #0A0A0A; border: 0;
  font-size: 2rem; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.g548-top-btn.g548-show { opacity: 1; pointer-events: auto; }

/* ===== Desktop ===== */
@media (min-width: 769px) {
  body { background: #050505; }
  .g548-wrap { max-width: 960px; }
  .g548-header-inner { max-width: 960px; }
  .g548-bottom-nav { display: none; }
  .g548-main { padding-bottom: 40px; }
  .g548-grid { grid-template-columns: repeat(6, 1fr); }
  .g548-features { grid-template-columns: repeat(4, 1fr); }
  .g548-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .g548-mobile-menu { display: none; }
  .g548-desktop-nav { display: flex; gap: 18px; align-items: center; }
  .g548-desktop-nav a { color: var(--g548-text); font-size: 1.3rem; }
  .g548-desktop-nav a:hover { color: var(--g548-teal); }
}
.g548-desktop-nav { display: none; }
@media (max-width: 768px) {
  .g548-main { padding-bottom: 90px; }
}
