/* layout-ba8f.css - subway surfers basefiles stylesheet
   All custom class names use prefix "g8fd-".
   Palette: #34495E (slate), #FFE4B5 (moccasin), #6495ED (cornflower),
            #0000FF (blue), #FAF0E6 (linen). Dark bg + light text. */

:root {
  --g8fd-primary: #34495E;
  --g8fd-accent: #FFE4B5;
  --g8fd-cornflower: #6495ED;
  --g8fd-blue: #0000FF;
  --g8fd-linen: #FAF0E6;
  --g8fd-bg: #1d2a38;
  --g8fd-bg-2: #243447;
  --g8fd-text: #FAF0E6;
  --g8fd-muted: #b8c4d2;
  --g8fd-card: #2a3b4e;
  --g8fd-border: #3a4d63;
  --g8fd-gold: #f5c451;
  --g8fd-shadow: 0 4px 18px rgba(0,0,0,.35);
}

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

html { -webkit-text-size-adjust: 100%; }

html, body {
  background: var(--g8fd-bg);
  color: var(--g8fd-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

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

a { color: var(--g8fd-cornflower); text-decoration: none; }
a:hover { color: var(--g8fd-accent); }

.g8fd-container { width: 100%; padding: 0 14px; }

/* ===== Header ===== */
.g8fd-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #1d2a38 0%, #34495E 60%, #243447 100%);
  border-bottom: 1px solid var(--g8fd-border);
  box-shadow: var(--g8fd-shadow);
  transition: padding .2s ease;
}
.g8fd-header-compact { padding-bottom: 2px; }
.g8fd-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}
.g8fd-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--g8fd-accent);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
}
.g8fd-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g8fd-logo small { display: block; color: var(--g8fd-muted); font-weight: 500; font-size: .68rem; }
.g8fd-header-actions { display: flex; align-items: center; gap: 8px; }

.g8fd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
  min-height: 38px;
  line-height: 1;
}
.g8fd-btn:active { transform: scale(.96); }
.g8fd-btn-login {
  background: transparent;
  color: var(--g8fd-accent);
  border: 1px solid var(--g8fd-accent);
}
.g8fd-btn-register {
  background: linear-gradient(90deg, #6495ED, #0000FF);
  color: #fff;
  box-shadow: 0 3px 10px rgba(100,149,237,.35);
}
.g8fd-btn-register:hover { color: #fff; }

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

/* ===== Mobile slide-in menu ===== */
.g8fd-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.g8fd-overlay-show { opacity: 1; pointer-events: auto; }
.g8fd-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%; max-width: 320px;
  height: 100%;
  background: var(--g8fd-bg-2);
  z-index: 9999;
  padding: 18px 16px;
  transition: right .28s ease;
  overflow-y: auto;
}
.g8fd-menu-open { right: 0; }
.g8fd-menu-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 14px; }
.g8fd-menu-head h3 { color: var(--g8fd-accent); font-size: 1.05rem; }
.g8fd-menu-close {
  background: transparent; border: 0; color: var(--g8fd-muted);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.g8fd-mobile-menu a {
  display: block;
  padding: 11px 12px;
  color: var(--g8fd-text);
  border-bottom: 1px solid var(--g8fd-border);
  font-weight: 600;
  font-size: .92rem;
}
.g8fd-mobile-menu a:hover { background: var(--g8fd-card); color: var(--g8fd-accent); }
.g8fd-menu-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

/* ===== Main / sections ===== */
main { padding-bottom: 84px; }
.g8fd-section { padding: 18px 14px; }
.g8fd-section h2 {
  font-size: 1.2rem;
  color: var(--g8fd-accent);
  margin-bottom: 6px;
  border-left: 4px solid var(--g8fd-cornflower);
  padding-left: 10px;
}
.g8fd-section h3 {
  font-size: 1rem;
  color: var(--g8fd-cornflower);
  margin: 14px 0 6px;
}
.g8fd-section p { color: var(--g8fd-muted); margin-bottom: 8px; font-size: .92rem; }
.g8fd-lead {
  font-size: 1rem;
  color: var(--g8fd-text);
  background: var(--g8fd-bg-2);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--g8fd-border);
}

/* ===== Hero / Carousel ===== */
.g8fd-hero { padding: 14px; }
.g8fd-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--g8fd-shadow);
  background: #000;
}
.g8fd-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.g8fd-slide-active { display: block; }
.g8fd-slide img { width: 100%; height: 200px; object-fit: cover; }
.g8fd-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 28px 14px 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.g8fd-slide-cap small { display:block; color: var(--g8fd-accent); font-weight: 600; font-size: .75rem; margin-bottom: 2px; }
.g8fd-dots {
  position: absolute;
  bottom: 10px; right: 12px;
  display: flex; gap: 6px;
}
.g8fd-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.45);
  border-radius: 50%;
  cursor: pointer;
}
.g8fd-dot-active { background: var(--g8fd-accent); }

/* ===== H1 block ===== */
.g8fd-h1-block { padding: 4px 14px 8px; }
.g8fd-h1-block h1 {
  font-size: 1.35rem;
  color: var(--g8fd-accent);
  line-height: 1.3;
  margin-bottom: 6px;
}
.g8fd-h1-block p { color: var(--g8fd-muted); font-size: .9rem; }

/* ===== Game grid ===== */
.g8fd-cat-head {
  display:flex; align-items:center; justify-content:space-between;
  margin: 18px 0 10px;
}
.g8fd-cat-head h2 { margin: 0; font-size: 1.1rem; }
.g8fd-cat-tag {
  font-size: .68rem;
  color: var(--g8fd-accent);
  background: rgba(245,196,81,.12);
  border: 1px solid rgba(245,196,81,.35);
  padding: 3px 8px;
  border-radius: 20px;
}
.g8fd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.g8fd-tile {
  background: var(--g8fd-card);
  border: 1px solid var(--g8fd-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  text-align: center;
}
.g8fd-tile:active { transform: scale(.96); }
.g8fd-tile img { width: 100%; height: 84px; object-fit: cover; background: #000; }
.g8fd-tile-name {
  font-size: .72rem;
  color: var(--g8fd-text);
  padding: 6px 4px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g8fd-tile:hover .g8fd-tile-name { color: var(--g8fd-accent); }

/* ===== Cards ===== */
.g8fd-card {
  background: var(--g8fd-card);
  border: 1px solid var(--g8fd-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--g8fd-shadow);
}
.g8fd-card h3 { color: var(--g8fd-cornflower); margin-bottom: 6px; }
.g8fd-card p { color: var(--g8fd-muted); font-size: .9rem; }

/* ===== CTA banner ===== */
.g8fd-cta {
  background: linear-gradient(135deg, #34495E, #6495ED);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin: 16px 0;
  color: #fff;
  box-shadow: var(--g8fd-shadow);
}
.g8fd-cta h3 { color: var(--g8fd-accent); margin-bottom: 8px; font-size: 1.15rem; }
.g8fd-cta p { color: #fff; opacity: .92; margin-bottom: 12px; font-size: .9rem; }
.g8fd-cta .g8fd-btn-register { display: inline-flex; }

/* ===== Features list ===== */
.g8fd-features { display: grid; grid-template-columns: 1fr; gap: 10px; }
.g8fd-feature {
  display: flex;
  gap: 10px;
  background: var(--g8fd-bg-2);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--g8fd-border);
}
.g8fd-feature-ico {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(100,149,237,.15);
  color: var(--g8fd-cornflower);
  flex-shrink: 0;
  font-size: 1.1rem;
}
.g8fd-feature h4 { font-size: .95rem; color: var(--g8fd-accent); margin-bottom: 2px; }
.g8fd-feature p { font-size: .82rem; color: var(--g8fd-muted); }

/* ===== Testimonials ===== */
.g8fd-testimonials { display: grid; gap: 10px; }
.g8fd-testimonial {
  background: var(--g8fd-bg-2);
  border-left: 3px solid var(--g8fd-gold);
  padding: 10px 12px;
  border-radius: 8px;
}
.g8fd-testimonial p { font-size: .85rem; color: var(--g8fd-text); font-style: italic; }
.g8fd-testimonial .g8fd-stars { color: var(--g8fd-gold); font-size: .8rem; margin-top: 4px; }
.g8fd-testimonial cite { display:block; color: var(--g8fd-muted); font-size: .75rem; margin-top: 3px; }

/* ===== Winners ticker ===== */
.g8fd-winners {
  background: var(--g8fd-bg-2);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--g8fd-border);
}
.g8fd-winner-row {
  display: flex; justify-content: space-between;
  font-size: .8rem;
  padding: 4px 0;
  border-bottom: 1px dashed var(--g8fd-border);
}
.g8fd-winner-row:last-child { border-bottom: 0; }
.g8fd-winner-row .g8fd-amt { color: var(--g8fd-gold); font-weight: 700; }

/* ===== Payment methods ===== */
.g8fd-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.g8fd-pay span {
  background: var(--g8fd-card);
  border: 1px solid var(--g8fd-border);
  color: var(--g8fd-text);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: .8rem;
  font-weight: 600;
}

/* ===== FAQ ===== */
.g8fd-faq-item {
  background: var(--g8fd-card);
  border: 1px solid var(--g8fd-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.g8fd-faq-q {
  padding: 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--g8fd-accent);
  font-size: .9rem;
  display: flex; justify-content: space-between; align-items: center;
}
.g8fd-faq-q::after { content: "+"; color: var(--g8fd-cornflower); font-size: 1.2rem; }
.g8fd-faq-open .g8fd-faq-q::after { content: "-"; }
.g8fd-faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 12px;
  color: var(--g8fd-muted);
  font-size: .85rem;
  transition: max-height .25s ease, padding .25s ease;
}
.g8fd-faq-open .g8fd-faq-a {
  max-height: 320px;
  padding: 0 12px 12px;
}

/* ===== Footer ===== */
.g8fd-footer {
  background: #16212e;
  border-top: 1px solid var(--g8fd-border);
  padding: 18px 14px 24px;
  margin-top: 10px;
}
.g8fd-footer h4 { color: var(--g8fd-accent); margin-bottom: 8px; font-size: .95rem; }
.g8fd-footer p { color: var(--g8fd-muted); font-size: .82rem; margin-bottom: 8px; }
.g8fd-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 10px 0;
}
.g8fd-footer-links a { font-size: .82rem; color: var(--g8fd-text); }
.g8fd-footer-links a:hover { color: var(--g8fd-accent); }
.g8fd-footer-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.g8fd-footer-copy {
  border-top: 1px solid var(--g8fd-border);
  margin-top: 12px;
  padding-top: 10px;
  font-size: .72rem;
  color: var(--g8fd-muted);
  text-align: center;
}

/* ===== Mobile Bottom Nav ===== */
.g8fd-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #243447, #16212e);
  border-top: 1px solid var(--g8fd-border);
  box-shadow: 0 -3px 14px rgba(0,0,0,.4);
  display: flex;
  justify-content: space-around;
  height: 62px;
  padding: 4px 0 calc(env(safe-area-inset-bottom, 0px));
}
.g8fd-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 58px;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--g8fd-muted);
  cursor: pointer;
  font-size: .68rem;
  font-weight: 600;
  position: relative;
  transition: color .15s ease, transform .12s ease;
}
.g8fd-nav-btn:active { transform: scale(.92); }
.g8fd-nav-btn .g8fd-nav-ico { font-size: 22px; line-height: 1; }
.g8fd-nav-btn .material-icons,
.g8fd-nav-btn .bi { font-size: 22px; }
.g8fd-nav-btn.g8fd-nav-promo { color: var(--g8fd-accent); }
.g8fd-nav-btn.g8fd-nav-active { color: var(--g8fd-accent); }
.g8fd-nav-btn.g8fd-nav-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  background: var(--g8fd-accent);
  border-radius: 0 0 4px 4px;
}

/* ===== Hide bottom nav on desktop ===== */
@media (min-width: 769px) {
  .g8fd-bottom-nav { display: none; }
  main { padding-bottom: 24px; }
  html, body { max-width: 760px; }
}

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

/* ===== Utility ===== */
.g8fd-hide { display: none !important; }
.g8fd-text-link {
  color: var(--g8fd-cornflower);
  font-weight: 700;
  border-bottom: 1px dashed currentColor;
}
.g8fd-text-link:hover { color: var(--g8fd-accent); }
.g8fd-back-top {
  position: fixed;
  right: 14px; bottom: 76px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--g8fd-cornflower);
  color: #fff;
  border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: var(--g8fd-shadow);
}
