/*!
 * 7spin layout (basefiles) - prefix pg78-
 * Palette: #006400 primary | #F5F5F5 surface | #2C3E50 ink | #FFF8DC accent
 * Mobile-first, max 430px baseline, scales up to desktop.
 */
:root {
  --pg78-primary: #006400;
  --pg78-primary-dark: #003d00;
  --pg78-primary-soft: #1a8a1a;
  --pg78-surface: #F5F5F5;
  --pg78-surface-2: #ffffff;
  --pg78-ink: #2C3E50;
  --pg78-ink-soft: #4a5b6d;
  --pg78-accent: #FFF8DC;
  --pg78-gold: #d4af37;
  --pg78-red: #c1272d;
  --pg78-shadow: 0 4px 18px rgba(0, 64, 0, 0.12);
  --pg78-radius: 14px;
  --pg78-radius-sm: 9px;
  --pg78-header-h: 60px;
  --pg78-nav-h: 62px;
}

/* Reset */
* { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, sans-serif;
  background: var(--pg78-surface);
  color: var(--pg78-ink);
  font-size: 1.5rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pg78-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; color: var(--pg78-ink); font-weight: 800; line-height: 1.25; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

/* Layout primitives */
.pg78-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 14px;
}
.pg78-wrapper { padding-top: var(--pg78-header-h); padding-bottom: calc(var(--pg78-nav-h) + 16px); }
main.pg78-main { display: block; }

/* Header */
.pg78-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pg78-header-h);
  background: linear-gradient(135deg, var(--pg78-primary-dark), var(--pg78-primary));
  color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.pg78-header .pg78-container {
  max-width: 480px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pg78-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pg78-brand img { width: 30px; height: 30px; border-radius: 8px; }
.pg78-brand-name { font-weight: 800; font-size: 1.7rem; color: #fff; letter-spacing: .3px; white-space: nowrap; }
.pg78-brand-name span { color: var(--pg78-gold); }

.pg78-header-actions { display: flex; align-items: center; gap: 6px; }
.pg78-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
  text-decoration: none;
  min-height: 38px;
}
.pg78-btn:hover { text-decoration: none; transform: translateY(-1px); }
.pg78-btn:active { transform: scale(.97); }
.pg78-btn-login { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.pg78-btn-register { background: var(--pg78-gold); color: var(--pg78-primary-dark); }
.pg78-btn-cta { background: var(--pg78-primary); color: #fff; padding: 12px 22px; font-size: 1.45rem; }
.pg78-btn-cta:hover { background: var(--pg78-primary-dark); }
.pg78-btn-ghost { background: transparent; color: var(--pg78-primary); border: 1.5px solid var(--pg78-primary); }
.pg78-btn-block { display: flex; width: 100%; }

.pg78-icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #fff; border: none; cursor: pointer;
  border-radius: 50%;
}
.pg78-icon-btn i { font-size: 22px; }

/* Mobile menu */
.pg78-mobile-menu {
  position: fixed;
  top: 0; right: -86%;
  width: 80%;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  padding: 18px 16px;
  transform: translateX(0);
  transition: right .25s ease;
  overflow-y: auto;
  box-shadow: -4px 0 18px rgba(0,0,0,.18);
}
.pg78-mobile-menu.pg78-open { right: 0; }
.pg78-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: opacity .25s;
}
.pg78-mobile-menu.pg78-open ~ .pg78-menu-overlay { opacity: 1; visibility: visible; }
.pg78-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pg78-menu-head strong { color: var(--pg78-primary); font-size: 1.7rem; }
.pg78-menu-list { list-style: none; padding: 0; margin: 0; }
.pg78-menu-list li { border-bottom: 1px solid #eee; }
.pg78-menu-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 8px;
  font-weight: 600; color: var(--pg78-ink);
}
.pg78-menu-list a i { color: var(--pg78-primary); font-size: 18px; width: 22px; text-align: center; }
.pg78-menu-list a:hover { background: var(--pg78-accent); text-decoration: none; }
.pg78-menu-cta { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }

/* Sections */
section.pg78-section { padding: 18px 0; }
.pg78-section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.pg78-section-title h2 { margin: 0; }
.pg78-section-title .pg78-link-more { font-size: 1.25rem; font-weight: 700; }
.pg78-eyebrow {
  display: inline-block;
  background: var(--pg78-accent);
  color: var(--pg78-primary-dark);
  font-weight: 800; font-size: 1.15rem;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 6px;
}

/* Hero / Carousel */
.pg78-hero { margin-top: 8px; }
.pg78-carousel { position: relative; border-radius: var(--pg78-radius); overflow: hidden; box-shadow: var(--pg78-shadow); }
.pg78-slide {
  position: relative; display: none; cursor: pointer;
}
.pg78-slide.pg78-active { display: block; }
.pg78-slide img { width: 100%; height: 200px; object-fit: cover; }
.pg78-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,40,0,.85));
  color: #fff; padding: 24px 14px 14px;
}
.pg78-slide-overlay h2 { color: #fff; margin: 0 0 4px; font-size: 1.8rem; }
.pg78-slide-overlay p { margin: 0 0 8px; font-size: 1.25rem; opacity: .95; }
.pg78-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.pg78-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s; }
.pg78-dot.pg78-active { background: var(--pg78-gold); }

/* Game grid */
.pg78-grid { display: grid; gap: 10px; }
.pg78-grid-cards { grid-template-columns: repeat(3, 1fr); }
.pg78-grid-tiles { grid-template-columns: repeat(4, 1fr); }
.pg78-card {
  background: #fff;
  border-radius: var(--pg78-radius-sm);
  padding: 8px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .12s ease;
  display: flex; flex-direction: column; gap: 6px;
}
.pg78-card:hover { transform: translateY(-2px); box-shadow: var(--pg78-shadow); text-decoration: none; }
.pg78-card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 7px; background: #eee; }
.pg78-card-name {
  font-size: 1.15rem; font-weight: 700; color: var(--pg78-ink);
  line-height: 1.2; min-height: 2.4em; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pg78-card-tag {
  font-size: 1rem; color: var(--pg78-primary); font-weight: 700;
}

/* Filter tabs (visual only) */
.pg78-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }
.pg78-filter-tab {
  flex: 0 0 auto;
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #ddd;
  color: var(--pg78-ink-soft); font-weight: 700; font-size: 1.2rem;
  cursor: pointer; white-space: nowrap;
}
.pg78-filter-tab.pg78-active { background: var(--pg78-primary); color: #fff; border-color: var(--pg78-primary); }

/* Cards / panels */
.pg78-panel {
  background: #fff;
  border-radius: var(--pg78-radius);
  padding: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.pg78-panel-accent { border-left: 4px solid var(--pg78-primary); }
.pg78-prose { color: var(--pg78-ink); line-height: 1.6; }
.pg78-prose strong { color: var(--pg78-primary-dark); }

/* Feature list */
.pg78-feature-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed #e3e3e3; }
.pg78-feature-row:last-child { border-bottom: none; }
.pg78-feature-icon {
  flex: 0 0 36px; width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--pg78-accent);
  color: var(--pg78-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.pg78-feature-body h4 { margin: 0 0 2px; font-size: 1.3rem; }
.pg78-feature-body p { margin: 0; font-size: 1.2rem; color: var(--pg78-ink-soft); }

/* FAQ */
.pg78-faq-item { background: #fff; border-radius: var(--pg78-radius-sm); margin-bottom: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.pg78-faq-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; cursor: pointer; font-weight: 700; color: var(--pg78-ink);
}
.pg78-faq-head i { color: var(--pg78-primary); transition: transform .2s; }
.pg78-faq-item.pg78-open .pg78-faq-head i { transform: rotate(180deg); }
.pg78-faq-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 14px; }
.pg78-faq-item.pg78-open .pg78-faq-body { max-height: 320px; padding: 0 14px 12px; }

/* Testimonial / winners */
.pg78-quote { background: #fff; border-radius: var(--pg78-radius-sm); padding: 12px; margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.pg78-quote-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pg78-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--pg78-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.pg78-quote-meta strong { display: block; font-size: 1.2rem; }
.pg78-quote-meta span { font-size: 1rem; color: var(--pg78-ink-soft); }
.pg78-stars { color: var(--pg78-gold); font-size: 1.1rem; }

/* Payments */
.pg78-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pg78-pay-chip {
  background: #fff; padding: 8px 12px; border-radius: 999px;
  border: 1px solid #e0e0e0; font-weight: 700; font-size: 1.15rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.pg78-pay-chip i { color: var(--pg78-primary); }

/* Stats */
.pg78-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pg78-stat { background: #fff; padding: 12px; border-radius: var(--pg78-radius-sm); text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.pg78-stat strong { display: block; font-size: 1.9rem; color: var(--pg78-primary); }
.pg78-stat span { font-size: 1.15rem; color: var(--pg78-ink-soft); }

/* Tricks */
.pg78-trick { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #e3e3e3; }
.pg78-trick-num { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--pg78-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* CTA band */
.pg78-cta-band {
  background: linear-gradient(135deg, var(--pg78-primary), var(--pg78-primary-soft));
  color: #fff; border-radius: var(--pg78-radius);
  padding: 18px; text-align: center; margin: 12px 0;
}
.pg78-cta-band h3 { color: #fff; }
.pg78-cta-band p { color: rgba(255,255,255,.92); margin-bottom: 12px; }

/* App download */
.pg78-app-card { background: #fff; border-radius: var(--pg78-radius); padding: 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.pg78-app-icon { width: 60px; height: 60px; border-radius: 14px; background: var(--pg78-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; flex: 0 0 60px; }
.pg78-app-body { flex: 1; }
.pg78-app-body h4 { margin: 0 0 4px; }
.pg78-app-body p { margin: 0 0 6px; font-size: 1.2rem; color: var(--pg78-ink-soft); }

/* Footer */
.pg78-footer { background: var(--pg78-ink); color: #cdd6e0; padding: 22px 0 0; margin-top: 18px; }
.pg78-footer .pg78-container { max-width: 480px; }
.pg78-footer h4 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.pg78-footer p { color: #b6c0cc; font-size: 1.2rem; }
.pg78-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pg78-footer-links a { color: #e8eef5; font-size: 1.2rem; background: rgba(255,255,255,.06); padding: 6px 10px; border-radius: 6px; }
.pg78-footer-links a:hover { background: var(--pg78-primary); text-decoration: none; }
.pg78-footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.pg78-footer-cols ul { list-style: none; padding: 0; margin: 0; }
.pg78-footer-cols li { margin-bottom: 5px; }
.pg78-footer-cols a { color: #cdd6e0; font-size: 1.18rem; }
.pg78-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 10px 0; text-align: center; font-size: 1.1rem; color: #94a3b3; padding-bottom: calc(var(--pg78-nav-h) + 14px); }

/* Mobile bottom nav */
.pg78-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pg78-nav-h);
  background: #fff;
  border-top: 1px solid #e3e3e3;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,.06);
}
.pg78-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; padding: 6px 2px;
  color: var(--pg78-ink-soft);
  cursor: pointer;
  min-width: 60px; min-height: 60px;
  position: relative;
  transition: color .15s;
}
.pg78-nav-btn i { font-size: 22px; }
.pg78-nav-btn .material-icons { font-size: 24px; }
.pg78-nav-btn span { font-size: 1.05rem; font-weight: 700; }
.pg78-nav-btn.pg78-active { color: var(--pg78-primary); }
.pg78-nav-btn.pg78-active::before {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 3px;
  background: var(--pg78-primary); border-radius: 0 0 4px 4px;
}
.pg78-nav-btn:active { transform: scale(.92); }
.pg78-nav-btn.pg78-promo { color: var(--pg78-gold); }
.pg78-nav-btn.pg78-promo span { color: var(--pg78-ink); }
.pg78-nav-badge {
  position: absolute; top: 4px; right: 18px;
  background: var(--pg78-red); color: #fff;
  font-size: .9rem; font-weight: 800;
  border-radius: 999px; padding: 1px 5px; min-width: 16px; text-align: center;
}

/* Toast */
.pg78-toast {
  position: fixed; left: 50%; bottom: calc(var(--pg78-nav-h) + 16px);
  transform: translateX(-50%) translateY(20px);
  background: var(--pg78-ink); color: #fff;
  padding: 8px 16px; border-radius: 999px;
  font-size: 1.2rem; font-weight: 600;
  opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s;
  z-index: 1500; max-width: 90%;
}
.pg78-toast.pg78-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Helpers */
.pg78-text-center { text-align: center; }
.pg78-mt-8 { margin-top: 8px; }
.pg78-mt-16 { margin-top: 16px; }
.pg78-hidden { display: none !important; }
.pg78-no-scroll { overflow: hidden; }
.pg78-divider { height: 1px; background: #e3e3e3; margin: 12px 0; border: none; }

/* Desktop: hide bottom nav, widen container */
@media (min-width: 769px) {
  .pg78-bottom-nav { display: none; }
  .pg78-wrapper { padding-bottom: 24px; }
  .pg78-container { max-width: 960px; }
  .pg78-grid-cards { grid-template-columns: repeat(6, 1fr); }
  .pg78-grid-tiles { grid-template-columns: repeat(8, 1fr); }
  .pg78-stats { grid-template-columns: repeat(4, 1fr); }
  .pg78-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .pg78-slide img { height: 320px; }
}

@media (max-width: 768px) {
  main.pg78-main { padding-bottom: 80px; }
}
