/* gperya link - style.css | class prefix: w64b2- | basefiles only */
/* Color palette: #0F0F23 (bg) | #FF4500 (primary) | #FF6347 (accent) | #00FF7F (highlight) */

:root {
  --w64b2-bg: #0F0F23;
  --w64b2-bg2: #161635;
  --w64b2-bg3: #1d1d44;
  --w64b2-primary: #FF4500;
  --w64b2-accent: #FF6347;
  --w64b2-highlight: #00FF7F;
  --w64b2-text: #FFFFFF;
  --w64b2-text-dim: #B8B8D1;
  --w64b2-border: rgba(255, 99, 71, 0.25);
  --w64b2-gold: #FFD700;
  --w64b2-radius: 1.4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'PingFang SC', sans-serif;
  background: var(--w64b2-bg);
  color: var(--w64b2-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

a { color: var(--w64b2-highlight); text-decoration: none; }
a:hover { color: var(--w64b2-accent); }
img { max-width: 100%; display: block; }

/* ============ HEADER ============ */
.w64b2-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(15,15,35,0.97), rgba(29,29,68,0.97));
  border-bottom: 1px solid var(--w64b2-border);
  backdrop-filter: blur(8px);
}
.w64b2-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.7rem; font-weight: 800;
  color: var(--w64b2-text);
}
.w64b2-logo .w64b2-logo-mark {
  width: 3.2rem; height: 3.2rem; border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--w64b2-primary), var(--w64b2-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
}
.w64b2-logo .w64b2-logo-text { background: linear-gradient(90deg, var(--w64b2-primary), var(--w64b2-highlight)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w64b2-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w64b2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 4rem; padding: 0 1.4rem;
  border-radius: 2rem; border: none;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none; color: #fff;
}
.w64b2-btn:active { transform: scale(0.96); }
.w64b2-btn-login { background: transparent; border: 1px solid var(--w64b2-highlight); color: var(--w64b2-highlight); }
.w64b2-btn-register { background: linear-gradient(135deg, var(--w64b2-primary), var(--w64b2-accent)); box-shadow: 0 0.4rem 1rem rgba(255,69,0,0.35); }
.w64b2-icon-btn {
  background: transparent; border: none; color: var(--w64b2-text);
  font-size: 2.2rem; cursor: pointer; min-width: 4.4rem; min-height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* ============ MOBILE MENU ============ */
.w64b2-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease; z-index: 9998;
}
.w64b2-menu-overlay.w64b2-active { opacity: 1; visibility: visible; }
.w64b2-mobile-menu {
  position: fixed; top: 0; right: -80%; width: 78%; height: 100%;
  background: var(--w64b2-bg2); z-index: 9999;
  transform: translateX(0); transition: right 0.3s ease;
  padding: 2rem 1.6rem; overflow-y: auto;
}
.w64b2-mobile-menu.w64b2-open { right: 0; }
.w64b2-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.w64b2-menu-title { font-size: 1.6rem; color: var(--w64b2-highlight); font-weight: 700; }
.w64b2-menu-list { list-style: none; }
.w64b2-menu-list li a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.3rem 0.5rem; font-size: 1.5rem; color: var(--w64b2-text);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.w64b2-menu-list li a i { color: var(--w64b2-primary); width: 2.2rem; text-align: center; }
.w64b2-menu-cta { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.w64b2-menu-cta .w64b2-btn { width: 100%; }

/* ============ HERO ============ */
.w64b2-hero { position: relative; overflow: hidden; background: var(--w64b2-bg2); }
.w64b2-hero-slide {
  display: none; position: relative;
  min-height: 22rem; padding: 2.2rem 1.5rem;
  background-size: cover; background-position: center;
}
.w64b2-hero-slide.w64b2-active { display: block; animation: w64b2-fade 0.6s ease; }
@keyframes w64b2-fade { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: scale(1); } }
.w64b2-hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,15,35,0.92) 30%, rgba(15,15,35,0.35));
}
.w64b2-hero-content { position: relative; z-index: 2; max-width: 75%; }
.w64b2-hero-tag {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 1rem;
  background: rgba(0,255,127,0.15); color: var(--w64b2-highlight);
  font-size: 1.1rem; font-weight: 700; margin-bottom: 0.8rem;
  border: 1px solid rgba(0,255,127,0.3);
}
.w64b2-hero-title { font-size: 2.4rem; line-height: 1.3; font-weight: 800; margin-bottom: 0.6rem; }
.w64b2-hero-title .w64b2-hl { color: var(--w64b2-primary); }
.w64b2-hero-desc { font-size: 1.3rem; color: var(--w64b2-text-dim); margin-bottom: 1.2rem; }
.w64b2-hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.w64b2-hero-dots { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.6rem; z-index: 3; }
.w64b2-hero-dot { width: 0.9rem; height: 0.9rem; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: all 0.2s; }
.w64b2-hero-dot.w64b2-active { background: var(--w64b2-primary); width: 2.4rem; border-radius: 0.6rem; }

/* ============ STAT BAR ============ */
.w64b2-stat-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; padding: 1.2rem; background: var(--w64b2-bg2); }
.w64b2-stat { text-align: center; padding: 0.8rem 0.4rem; background: var(--w64b2-bg3); border-radius: 1rem; }
.w64b2-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--w64b2-highlight); display: block; }
.w64b2-stat-label { font-size: 1.1rem; color: var(--w64b2-text-dim); }

/* ============ SECTIONS ============ */
main { padding-bottom: 9rem; }
.w64b2-section { padding: 2rem 1.2rem 0.5rem; }
.w64b2-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.w64b2-section-title { font-size: 1.8rem; font-weight: 800; display: flex; align-items: center; gap: 0.7rem; }
.w64b2-section-title i { color: var(--w64b2-primary); }
.w64b2-section-more { font-size: 1.2rem; color: var(--w64b2-highlight); }

/* ============ TABS ============ */
.w64b2-tabs { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0 1.2rem 1rem; scrollbar-width: none; }
.w64b2-tabs::-webkit-scrollbar { display: none; }
.w64b2-tab {
  flex: 0 0 auto; padding: 0.7rem 1.4rem; border-radius: 2rem;
  background: var(--w64b2-bg2); color: var(--w64b2-text-dim);
  font-size: 1.3rem; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.w64b2-tab.w64b2-active { background: linear-gradient(135deg, var(--w64b2-primary), var(--w64b2-accent)); color: #fff; border-color: var(--w64b2-primary); }

/* ============ GAME GRID ============ */
.w64b2-game-section[data-cat] { padding: 0 1.2rem; margin-bottom: 1rem; }
.w64b2-cat-title { font-size: 1.5rem; font-weight: 700; margin: 1.4rem 0 1rem; color: var(--w64b2-accent); display: flex; align-items: center; gap: 0.5rem; }
.w64b2-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.w64b2-game-card {
  background: var(--w64b2-bg2); border-radius: var(--w64b2-radius); overflow: hidden;
  border: 1px solid var(--w64b2-border); position: relative; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.w64b2-game-card:active { transform: scale(0.96); }
.w64b2-game-thumb { position: relative; aspect-ratio: 1 / 1; background: #0a0a1c; }
.w64b2-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.w64b2-game-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  padding: 0.2rem 0.6rem; font-size: 0.9rem; font-weight: 700;
  border-radius: 0.6rem; background: var(--w64b2-primary); color: #fff;
}
.w64b2-game-badge.w64b2-hot { background: var(--w64b2-accent); }
.w64b2-game-badge.w64b2-new { background: var(--w64b2-highlight); color: #0F0F23; }
.w64b2-game-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15,15,35,0.6); opacity: 0; transition: opacity 0.2s; color: #fff; font-size: 3rem;
}
.w64b2-game-card:hover .w64b2-game-play { opacity: 1; }
.w64b2-game-name { padding: 0.6rem 0.5rem; font-size: 1.15rem; text-align: center; color: var(--w64b2-text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ FEATURED CARD ============ */
.w64b2-featured {
  display: flex; gap: 1rem; padding: 1.2rem; margin: 0 1.2rem 1rem;
  background: linear-gradient(135deg, rgba(255,69,0,0.12), rgba(0,255,127,0.08));
  border-radius: var(--w64b2-radius); border: 1px solid var(--w64b2-border);
}
.w64b2-featured-img { flex: 0 0 9rem; width: 9rem; height: 9rem; border-radius: 1rem; overflow: hidden; }
.w64b2-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.w64b2-featured-body { flex: 1; }
.w64b2-featured-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.4rem; color: var(--w64b2-highlight); }
.w64b2-featured-desc { font-size: 1.2rem; color: var(--w64b2-text-dim); margin-bottom: 0.8rem; }
.w64b2-featured-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.w64b2-pill { padding: 0.2rem 0.7rem; border-radius: 0.8rem; font-size: 1rem; background: rgba(0,255,127,0.15); color: var(--w64b2-highlight); }
.w64b2-pill.w64b2-rtp { background: rgba(255,215,0,0.15); color: var(--w64b2-gold); }

/* ============ SEO CONTENT ============ */
.w64b2-seo { padding: 1.5rem 1.2rem; }
.w64b2-seo h2 { font-size: 1.8rem; margin: 1.2rem 0 0.7rem; color: var(--w64b2-primary); }
.w64b2-seo h3 { font-size: 1.5rem; margin: 1rem 0 0.5rem; color: var(--w64b2-highlight); }
.w64b2-seo p { font-size: 1.3rem; color: var(--w64b2-text-dim); margin-bottom: 0.8rem; }
.w64b2-seo ul { padding-left: 1.6rem; margin-bottom: 0.8rem; }
.w64b2-seo li { font-size: 1.3rem; color: var(--w64b2-text-dim); margin-bottom: 0.3rem; }

/* ============ FAQ ============ */
.w64b2-faq { padding: 1.5rem 1.2rem; }
.w64b2-faq-item {
  background: var(--w64b2-bg2); border-radius: 1rem; margin-bottom: 0.8rem;
  border: 1px solid var(--w64b2-border); overflow: hidden;
}
.w64b2-faq-q {
  width: 100%; background: transparent; border: none; padding: 1.2rem;
  text-align: left; color: var(--w64b2-text); font-size: 1.35rem; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; min-height: 4.4rem;
}
.w64b2-faq-q .w64b2-faq-icon { color: var(--w64b2-primary); transition: transform 0.25s; }
.w64b2-faq-item.w64b2-open .w64b2-faq-icon { transform: rotate(45deg); }
.w64b2-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.2rem; }
.w64b2-faq-item.w64b2-open .w64b2-faq-a { max-height: 60rem; padding: 0 1.2rem 1.2rem; }
.w64b2-faq-a p { font-size: 1.25rem; color: var(--w64b2-text-dim); }

/* ============ CTA STRIP ============ */
.w64b2-cta-strip {
  margin: 1.5rem 1.2rem; padding: 1.6rem; border-radius: var(--w64b2-radius);
  background: linear-gradient(135deg, var(--w64b2-primary), var(--w64b2-accent));
  text-align: center; box-shadow: 0 0.6rem 1.4rem rgba(255,69,0,0.3);
}
.w64b2-cta-strip h3 { font-size: 1.7rem; color: #fff; margin-bottom: 0.4rem; }
.w64b2-cta-strip p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 1rem; }
.w64b2-cta-strip .w64b2-btn { background: #fff; color: var(--w64b2-primary); }

/* ============ FOOTER ============ */
.w64b2-footer { background: var(--w64b2-bg2); padding: 2rem 1.2rem 6rem; border-top: 1px solid var(--w64b2-border); }
.w64b2-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-bottom: 1.5rem; }
.w64b2-footer-col h4 { font-size: 1.35rem; color: var(--w64b2-highlight); margin-bottom: 0.7rem; }
.w64b2-footer-col ul { list-style: none; }
.w64b2-footer-col li { margin-bottom: 0.5rem; }
.w64b2-footer-col a { font-size: 1.2rem; color: var(--w64b2-text-dim); }
.w64b2-footer-bottom { text-align: center; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.06); }
.w64b2-footer-bottom p { font-size: 1.1rem; color: var(--w64b2-text-dim); margin-bottom: 0.4rem; }
.w64b2-footer-warning { font-size: 1.05rem; color: rgba(255,99,71,0.7); margin-top: 0.6rem; }

/* ============ BOTTOM NAV ============ */
.w64b2-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 6.4rem;
  background: linear-gradient(180deg, var(--w64b2-bg3), var(--w64b2-bg2));
  border-top: 1px solid var(--w64b2-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding-bottom: env(safe-area-inset-bottom);
}
.w64b2-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 6rem; padding: 0.4rem;
  background: transparent; border: none; color: var(--w64b2-text-dim);
  cursor: pointer; transition: color 0.2s, transform 0.15s;
}
.w64b2-nav-btn:active { transform: scale(0.92); }
.w64b2-nav-btn i, .w64b2-nav-btn span.material-icons-outlined, .w64b2-nav-btn ion-icon { font-size: 2.4rem; margin-bottom: 0.2rem; }
.w64b2-nav-btn ion-icon { font-size: 2.4rem; }
.w64b2-nav-btn .w64b2-nav-label { font-size: 1rem; font-weight: 600; }
.w64b2-nav-btn.w64b2-active { color: var(--w64b2-primary); }
.w64b2-nav-btn.w64b2-promo { color: var(--w64b2-highlight); }
.w64b2-nav-btn.w64b2-promo i { filter: drop-shadow(0 0 0.4rem rgba(0,255,127,0.5)); }
.w64b2-nav-center {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(135deg, var(--w64b2-primary), var(--w64b2-accent));
  color: #fff; border-radius: 50%; width: 5rem; height: 5rem;
  margin-top: -2rem; box-shadow: 0 0.4rem 1rem rgba(255,69,0,0.45);
  border: 0.3rem solid var(--w64b2-bg);
}

/* ============ BACK TO TOP ============ */
.w64b2-back-top {
  position: fixed; right: 1.2rem; bottom: 7.4rem; z-index: 999;
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--w64b2-primary); color: #fff; border: none;
  display: none; align-items: center; justify-content: center;
  font-size: 1.8rem; cursor: pointer; box-shadow: 0 0.3rem 0.8rem rgba(0,0,0,0.4);
}

/* ============ UTILITY ============ */
.w64b2-text-link { color: var(--w64b2-primary); font-weight: 700; }

/* ============ DESKTOP (hidden bottom nav, wider layout) ============ */
@media (min-width: 768px) {
  body { max-width: 100%; }
  .w64b2-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
  .w64b2-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w64b2-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .w64b2-stat-bar { max-width: 800px; margin: 0 auto; }
  .w64b2-hero-slide { min-height: 28rem; }
}
