/* ===========================================================
   Juan 365 - layout stylesheet (css/layout-7e79.css)
   All custom classes use the v976- prefix.
   Palette: #333333 #B2DFDB #FF8A80 #FA8072 #F0F0F0 #00FFFF
   Mobile-first, container max-width: 430px
   =========================================================== */

:root {
  --v976-dark: #333333;
  --v976-teal: #B2DFDB;
  --v976-pink: #FF8A80;
  --v976-salmon: #FA8072;
  --v976-light: #F0F0F0;
  --v976-cyan: #00FFFF;
  --v976-bg: #1c1c1c;
  --v976-card: #262626;
  --v976-text: #f5f5f5;
  --v976-muted: #9aa0a6;
  --v976-primary: var(--v976-salmon);
  --v976-accent: var(--v976-cyan);
  --v976-radius: 14px;
  --v976-shadow: 0 6px 22px rgba(0,0,0,.35);
}

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

html { font-size: 62.5%; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  background: var(--v976-bg);
  color: var(--v976-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.v976-noscroll { overflow: hidden; }

/* ============ Mobile-first main container ============ */
.v976-container,
.v976-wrapper {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

main.v976-main {
  max-width: 430px;
  margin: 0 auto;
  padding-bottom: 90px; /* clearance for fixed bottom nav */
}

/* ============ Header ============ */
.v976-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%);
  border-bottom: 2px solid var(--v976-salmon);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.v976-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: 56px;
}
.v976-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: .3px;
  flex: 1;
}
.v976-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--v976-salmon);
  padding: 3px;
}
.v976-logo span b { color: var(--v976-cyan); }
.v976-menu-btn {
  background: transparent;
  border: 1px solid rgba(178,223,219,.4);
  border-radius: 8px;
  color: var(--v976-teal);
  font-size: 1.8rem;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.v976-menu-btn:hover, .v976-menu-btn.v976-active {
  background: rgba(250,128,114,.18);
  transform: scale(1.05);
}
.v976-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.35rem;
  padding: 9px 14px;
  border-radius: 10px;
  transition: transform .2s, box-shadow .2s, filter .2s;
  min-height: 38px;
  font-family: inherit;
}
.v976-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.v976-btn-login {
  background: transparent;
  color: var(--v976-teal);
  border: 1px solid var(--v976-teal);
}
.v976-btn-register {
  background: linear-gradient(135deg, var(--v976-pink), var(--v976-salmon));
  color: #fff;
  box-shadow: 0 4px 14px rgba(250,128,114,.45);
}

/* ============ Desktop nav (hidden on mobile) ============ */
.v976-desktop-nav { display: none; }

/* ============ Mobile slide menu ============ */
.v976-mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #1f1f1f;
  z-index: 9999;
  transform: translateX(-105%);
  transition: transform .28s ease;
  padding: 70px 18px 24px;
  overflow-y: auto;
  border-right: 2px solid var(--v976-salmon);
}
.v976-mobile-menu.v976-menu-open { transform: translateX(0); }
.v976-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.v976-mobile-menu.v976-menu-open ~ .v976-overlay {
  opacity: 1; pointer-events: auto;
}
.v976-mobile-menu h4 {
  color: var(--v976-cyan);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 14px 0 8px;
  border-bottom: 1px dashed rgba(178,223,219,.3);
  padding-bottom: 4px;
}
.v976-mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 1.4rem;
  color: var(--v976-text);
  margin-bottom: 4px;
  transition: background .2s;
}
.v976-mobile-menu a:hover { background: rgba(178,223,219,.12); }

/* ============ Hero / Banner carousel ============ */
.v976-banner {
  position: relative;
  margin-top: 56px;
  border-radius: 0;
  overflow: hidden;
  background: #000;
}
.v976-banner-track { position: relative; height: 210px; }
.v976-banner-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.v976-banner-slide.v976-active { opacity: 1; }
.v976-banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.v976-banner-cap {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: linear-gradient(135deg, rgba(250,128,114,.85), rgba(0,0,0,.55));
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
}
.v976-banner-cap h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 4px; }
.v976-banner-cap p { font-size: 1.2rem; opacity: .92; }
.v976-banner-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.v976-banner-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}
.v976-banner-dot.v976-active { background: var(--v976-cyan); width: 18px; border-radius: 5px; }

/* ============ Section base ============ */
.v976-section {
  padding: 18px 12px 8px;
}
.v976-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.v976-section-head h2 {
  font-size: 1.8rem;
  color: #fff;
  position: relative;
  padding-left: 12px;
}
.v976-section-head h2::before {
  content: "";
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 2px;
  background: linear-gradient(var(--v976-pink), var(--v976-cyan));
}
.v976-section-head h3 {
  font-size: 1.55rem; color: #fff;
}
.v976-section-link {
  font-size: 1.2rem;
  color: var(--v976-cyan);
}

/* ============ Search bar ============ */
.v976-search {
  margin: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #2a2a2a;
  border: 1px solid rgba(178,223,219,.25);
  border-radius: 10px;
  padding: 6px 12px;
}
.v976-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.35rem;
  outline: none;
  font-family: inherit;
}
.v976-search i { color: var(--v976-teal); font-size: 1.6rem; }

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

.v976-game-card {
  background: var(--v976-card);
  border-radius: var(--v976-radius);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.04);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.v976-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--v976-salmon);
  box-shadow: var(--v976-shadow);
}
.v976-game-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #111;
  overflow: hidden;
}
.v976-game-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.v976-game-card:hover .v976-game-thumb img { transform: scale(1.06); }
.v976-game-name {
  padding: 6px 8px;
  font-size: 1.18rem;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 28px;
}
.v976-game-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: linear-gradient(135deg, var(--v976-pink), var(--v976-salmon));
  color: #fff;
  font-size: 1rem;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
}
.v976-game-badge.v976-hot { background: linear-gradient(135deg, #ff5252, #fa8072); }
.v976-game-badge.v976-new { background: linear-gradient(135deg, var(--v976-cyan), #00bcd4); color: #002b36; }

/* ============ Category chips ============ */
.v976-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 12px 12px;
  scrollbar-width: none;
}
.v976-chips::-webkit-scrollbar { display: none; }
.v976-chip {
  flex: 0 0 auto;
  background: #2a2a2a;
  border: 1px solid rgba(178,223,219,.2);
  color: var(--v976-teal);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ============ Promo CTA block ============ */
.v976-cta {
  margin: 18px 12px;
  border-radius: 16px;
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(250,128,114,.18), rgba(0,255,255,.08));
  border: 1px solid rgba(250,128,114,.4);
  text-align: center;
}
.v976-cta h3 { font-size: 1.7rem; color: #fff; margin-bottom: 6px; }
.v976-cta p { font-size: 1.25rem; color: var(--v976-muted); margin-bottom: 14px; }
.v976-cta .v976-btn { font-size: 1.45rem; padding: 11px 22px; }

/* ============ Feature / highlight cards ============ */
.v976-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px;
}
.v976-feature {
  background: var(--v976-card);
  border-radius: var(--v976-radius);
  padding: 14px;
  border: 1px solid rgba(255,255,255,.05);
}
.v976-feature i { font-size: 2.4rem; color: var(--v976-cyan); margin-bottom: 8px; }
.v976-feature h3 { font-size: 1.35rem; color: #fff; margin-bottom: 4px; }
.v976-feature p { font-size: 1.18rem; color: var(--v976-muted); }

/* ============ Testimonials ============ */
.v976-testi {
  background: var(--v976-card);
  border-radius: var(--v976-radius);
  padding: 14px;
  margin: 0 12px 10px;
  border-left: 3px solid var(--v976-salmon);
}
.v976-testi-stars { color: #ffd54f; margin-bottom: 6px; font-size: 1.2rem; }
.v976-testi p { font-size: 1.25rem; color: var(--v976-text); margin-bottom: 8px; }
.v976-testi cite { font-size: 1.15rem; color: var(--v976-cyan); font-style: normal; }

/* ============ Winners ticker ============ */
.v976-winners {
  background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 10px 12px;
  overflow: hidden;
}
.v976-winner-row {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0;
  font-size: 1.2rem;
}
.v976-winner-row + .v976-winner-row { border-top: 1px dashed rgba(255,255,255,.07); }
.v976-winner-row b { color: var(--v976-cyan); }
.v976-winner-amount { margin-left: auto; color: var(--v976-pink); font-weight: 700; }

/* ============ Payments row ============ */
.v976-pay-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 12px;
}
.v976-pay {
  background: #2a2a2a;
  border: 1px solid rgba(178,223,219,.18);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.2rem;
  color: var(--v976-teal);
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}

/* ============ SEO content ============ */
.v976-seo {
  padding: 18px 14px;
  font-size: 1.3rem;
  color: #d6d6d6;
}
.v976-seo h2 { color: #fff; font-size: 1.7rem; margin: 18px 0 8px; }
.v976-seo h3 { color: var(--v976-cyan); font-size: 1.4rem; margin: 14px 0 6px; }
.v976-seo p { margin-bottom: 10px; }
.v976-seo a { color: var(--v976-pink); text-decoration: underline; }
.v976-seo ul { padding-left: 18px; list-style: disc; margin-bottom: 10px; }
.v976-seo ul li { margin-bottom: 4px; }
.v976-seo strong { color: #fff; }

/* ============ FAQ ============ */
.v976-faq { padding: 0 14px; }
.v976-faq details {
  background: var(--v976-card);
  border-radius: 10px;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.05);
}
.v976-faq summary {
  font-size: 1.3rem;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.v976-faq summary::after {
  content: "+";
  position: absolute; right: 0;
  color: var(--v976-cyan);
  font-size: 1.8rem;
  line-height: 1;
}
.v976-faq details[open] summary::after { content: "−"; }
.v976-faq p { margin-top: 8px; color: var(--v976-muted); font-size: 1.22rem; }

/* ============ Footer ============ */
.v976-footer {
  background: #161616;
  border-top: 2px solid var(--v976-salmon);
  padding: 22px 14px 14px;
  margin-top: 10px;
}
.v976-footer h4 {
  color: var(--v976-cyan);
  font-size: 1.3rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.v976-footer p { color: var(--v976-muted); font-size: 1.2rem; margin-bottom: 12px; }
.v976-footer-links {
  display: flex; flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 14px;
}
.v976-footer-links a {
  font-size: 1.2rem;
  color: var(--v976-teal);
  text-decoration: underline;
}
.v976-footer-links a:hover { color: var(--v976-pink); }
.v976-footer-cta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 14px 0;
}
.v976-copy {
  font-size: 1.1rem;
  color: #777;
  text-align: center;
  border-top: 1px dashed rgba(255,255,255,.08);
  padding-top: 10px;
  margin-top: 6px;
}

/* ============ Back to top ============ */
.v976-back-top {
  position: fixed;
  right: 14px; bottom: 80px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--v976-salmon);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--v976-shadow);
  z-index: 999;
  opacity: .9;
}
.v976-back-top:hover { opacity: 1; transform: scale(1.06); }

/* ============ Bottom nav (mobile) ============ */
.v976-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
  border-top: 2px solid var(--v976-salmon);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0,0,0,.5);
}
.v976-bottom-nav a,
.v976-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: #b0b0b0;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  font-family: inherit;
  font-size: 1.05rem;
  transition: color .2s, transform .2s;
  position: relative;
}
.v976-bottom-nav a:hover,
.v976-bottom-nav button:hover { transform: translateY(-2px); }
.v976-bottom-nav i { font-size: 22px; line-height: 1; }
.v976-bottom-nav .v976-active i { color: var(--v976-cyan); }
.v976-bottom-nav .v976-active { color: #fff; }
.v976-bottom-nav .v976-nav-promo {
  position: relative;
  margin-top: -16px;
}
.v976-bottom-nav .v976-nav-promo i {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, var(--v976-pink), var(--v976-salmon));
  color: #fff;
  box-shadow: 0 4px 14px rgba(250,128,114,.5);
}

/* ============ Reveal animation ============ */
.v976-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.v976-reveal.v976-visible { opacity: 1; transform: translateY(0); }

/* ============ Desktop (>= 769px) ============ */
@media (min-width: 769px) {
  body { background: #0f0f0f; }
  main.v976-main { padding-bottom: 30px; }
  .v976-bottom-nav { display: none; }
  .v976-back-top { bottom: 24px; }
  .v976-header-inner,
  .v976-banner,
  main.v976-main {
    max-width: 960px;
  }
  .v976-grid { grid-template-columns: repeat(6, 1fr); }
  .v976-feature-grid { grid-template-columns: repeat(4, 1fr); max-width: 960px; margin: 0 auto; }
  .v976-desktop-nav {
    display: flex;
    gap: 18px;
    align-items: center;
  }
  .v976-desktop-nav a {
    color: var(--v976-teal);
    font-size: 1.3rem;
    transition: color .2s;
  }
  .v976-desktop-nav a:hover { color: var(--v976-cyan); }
  .v976-menu-btn { display: none; }
}

/* ============ Small phones ============ */
@media (max-width: 360px) {
  .v976-grid { grid-template-columns: repeat(2, 1fr); }
  .v976-logo span { font-size: 1.5rem; }
}
