/* ============================================================
   Fun88 605 - Theme Stylesheet
   Prefix: w2ae3-
   Palette: #E65100 | #FFFFBA | #FFA500 | #4169E1 | #1E1E1E
   Mobile-first, max-width 430px container
   ============================================================ */

:root {
  --w2ae3-primary: #E65100;
  --w2ae3-accent: #FFA500;
  --w2ae3-soft: #FFFFBA;
  --w2ae3-blue: #4169E1;
  --w2ae3-bg: #1E1E1E;
  --w2ae3-bg-2: #262420;
  --w2ae3-card: #2d2a26;
  --w2ae3-text: #FFFFBA;
  --w2ae3-text-soft: #f3e7c0;
  --w2ae3-muted: #b9a98a;
  --w2ae3-border: rgba(255, 165, 0, 0.25);
  --w2ae3-radius: 1.2rem;
  --w2ae3-shadow: 0 0.4rem 1.4rem rgba(0, 0, 0, 0.45);
}

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

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

body {
  margin: 0;
  padding: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--w2ae3-bg);
  color: var(--w2ae3-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--w2ae3-accent);
  text-decoration: none;
}

.w2ae3-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}

main.w2ae3-main {
  padding-top: 6rem;
  padding-bottom: 8rem;
}

/* ============================================================
   Top Navigation
   ============================================================ */
.w2ae3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1815 0%, #221f1a 100%);
  border-bottom: 0.2rem solid var(--w2ae3-primary);
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.55);
}

.w2ae3-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.w2ae3-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--w2ae3-soft);
  font-weight: 800;
  font-size: 1.6rem;
}

.w2ae3-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
}

.w2ae3-logo span {
  background: linear-gradient(90deg, var(--w2ae3-accent), var(--w2ae3-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.w2ae3-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w2ae3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border: none;
  border-radius: 0.8rem;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
}

.w2ae3-btn:active {
  transform: scale(0.94);
}

.w2ae3-btn-login {
  background: transparent;
  color: var(--w2ae3-soft);
  border: 0.15rem solid var(--w2ae3-blue);
}

.w2ae3-btn-register {
  background: linear-gradient(90deg, var(--w2ae3-primary), var(--w2ae3-accent));
  color: #1a1208;
  box-shadow: 0 0.3rem 0.8rem rgba(230, 81, 0, 0.45);
}

.w2ae3-menu-btn {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 0.1rem solid var(--w2ae3-border);
  color: var(--w2ae3-accent);
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============================================================
   Mobile slide-down menu
   ============================================================ */
.w2ae3-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.25s ease;
}

.w2ae3-overlay.w2ae3-active {
  opacity: 1;
  pointer-events: auto;
}

.w2ae3-mobilemenu {
  position: fixed;
  top: 0;
  right: 0;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: var(--w2ae3-bg-2);
  z-index: 9999;
  transform: translateX(105%);
  transition: transform 0.3s ease;
  padding: 7rem 1.6rem 2rem;
  overflow-y: auto;
  border-left: 0.2rem solid var(--w2ae3-primary);
}

.w2ae3-mobilemenu.w2ae3-open {
  transform: translateX(0);
}

.w2ae3-mobilemenu h4 {
  color: var(--w2ae3-accent);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin: 1.6rem 0 0.6rem;
}

.w2ae3-mobilemenu a {
  display: block;
  padding: 1rem 0.8rem;
  color: var(--w2ae3-text);
  border-bottom: 0.1rem solid rgba(255, 165, 0, 0.12);
  border-radius: 0.6rem;
  font-weight: 600;
}

.w2ae3-mobilemenu a:active,
.w2ae3-mobilemenu a:hover {
  background: rgba(230, 81, 0, 0.18);
}

/* ============================================================
   Hero carousel
   ============================================================ */
.w2ae3-hero {
  position: relative;
  border-radius: var(--w2ae3-radius);
  overflow: hidden;
  margin: 1rem 0 1.4rem;
  box-shadow: var(--w2ae3-shadow);
}

.w2ae3-slides {
  position: relative;
  height: 18rem;
}

.w2ae3-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.w2ae3-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w2ae3-slide.w2ae3-active {
  opacity: 1;
}

.w2ae3-slide-cap {
  position: absolute;
  left: 1rem;
  bottom: 1.2rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.7rem 1rem;
  border-radius: 0.8rem;
  border-left: 0.3rem solid var(--w2ae3-accent);
}

.w2ae3-slide-cap strong {
  color: var(--w2ae3-accent);
  font-size: 1.5rem;
  display: block;
}

.w2ae3-slide-cap span {
  color: var(--w2ae3-soft);
  font-size: 1.2rem;
}

.w2ae3-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
}

.w2ae3-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}

.w2ae3-dot.w2ae3-active {
  background: var(--w2ae3-primary);
  transform: scale(1.3);
}

/* ============================================================
   Sections & headings
   ============================================================ */
.w2ae3-section {
  margin: 1.8rem 0;
}

.w2ae3-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.w2ae3-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w2ae3-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w2ae3-section-title i {
  color: var(--w2ae3-accent);
}

.w2ae3-more {
  font-size: 1.2rem;
  color: var(--w2ae3-accent);
  font-weight: 600;
}

.w2ae3-h1 {
  font-size: 2.2rem;
  line-height: 2.6rem;
  margin: 1.2rem 0 0.6rem;
  background: linear-gradient(90deg, var(--w2ae3-accent), var(--w2ae3-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.w2ae3-sub {
  color: var(--w2ae3-muted);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ============================================================
   Game grid (compact tiles)
   ============================================================ */
.w2ae3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.w2ae3-game {
  background: var(--w2ae3-card);
  border-radius: 0.9rem;
  overflow: hidden;
  border: 0.1rem solid var(--w2ae3-border);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.w2ae3-game:active {
  transform: scale(0.96);
  border-color: var(--w2ae3-accent);
}

.w2ae3-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.w2ae3-game-name {
  padding: 0.4rem 0.5rem 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: var(--w2ae3-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w2ae3-cat-tag {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 0.5rem;
  background: rgba(65, 105, 225, 0.2);
  color: var(--w2ae3-blue);
  margin-bottom: 0.6rem;
}

/* ============================================================
   Cards (features, faq, testimonials)
   ============================================================ */
.w2ae3-card {
  background: var(--w2ae3-card);
  border-radius: var(--w2ae3-radius);
  padding: 1.2rem;
  margin-bottom: 0.9rem;
  border: 0.1rem solid var(--w2ae3-border);
  box-shadow: var(--w2ae3-shadow);
}

.w2ae3-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  color: var(--w2ae3-accent);
}

.w2ae3-card p {
  margin: 0.3rem 0;
  color: var(--w2ae3-text-soft);
  font-size: 1.25rem;
  line-height: 1.7rem;
}

.w2ae3-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.w2ae3-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 165, 0, 0.12);
  color: var(--w2ae3-soft);
  padding: 0.5rem 0.9rem;
  border-radius: 1rem;
  font-size: 1.2rem;
  border: 0.1rem solid var(--w2ae3-border);
}

.w2ae3-pill i {
  color: var(--w2ae3-accent);
}

/* Promotional inline text link */
.w2ae3-link {
  color: var(--w2ae3-accent);
  font-weight: 700;
  border-bottom: 0.15rem dashed var(--w2ae3-primary);
  cursor: pointer;
}

/* CTA banners */
.w2ae3-cta {
  background: linear-gradient(120deg, #2a1605, #4169E1 130%);
  border-radius: var(--w2ae3-radius);
  padding: 1.4rem;
  margin: 1.4rem 0;
  border: 0.15rem solid var(--w2ae3-primary);
  text-align: center;
}

.w2ae3-cta h3 {
  margin: 0 0 0.3rem;
  color: var(--w2ae3-soft);
  font-size: 1.7rem;
}

.w2ae3-cta p {
  margin: 0 0 1rem;
  color: var(--w2ae3-text-soft);
  font-size: 1.25rem;
}

.w2ae3-cta .w2ae3-btn {
  width: 100%;
  min-height: 4rem;
  font-size: 1.5rem;
}

/* Stats strip */
.w2ae3-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1rem 0;
}

.w2ae3-stat {
  background: var(--w2ae3-card);
  border-radius: 0.8rem;
  padding: 1rem 0.6rem;
  text-align: center;
  border: 0.1rem solid var(--w2ae3-border);
}

.w2ae3-stat b {
  display: block;
  font-size: 1.8rem;
  color: var(--w2ae3-accent);
  font-weight: 800;
}

.w2ae3-stat small {
  color: var(--w2ae3-muted);
  font-size: 1.1rem;
}

/* ============================================================
   Footer
   ============================================================ */
.w2ae3-footer {
  background: #15130f;
  border-top: 0.2rem solid var(--w2ae3-primary);
  padding: 2rem 0 1rem;
  margin-top: 1.6rem;
}

.w2ae3-footer-brand {
  color: var(--w2ae3-text-soft);
  font-size: 1.25rem;
  line-height: 1.8rem;
  margin-bottom: 1.2rem;
}

.w2ae3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-bottom: 1.2rem;
}

.w2ae3-footer-links a {
  color: var(--w2ae3-muted);
  font-size: 1.2rem;
}

.w2ae3-footer-links a:hover {
  color: var(--w2ae3-accent);
}

.w2ae3-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 1.2rem;
}

.w2ae3-footer-promo .w2ae3-btn {
  flex: 1 1 auto;
  min-height: 3.4rem;
  font-size: 1.2rem;
  padding: 0 0.8rem;
}

.w2ae3-copy {
  text-align: center;
  color: var(--w2ae3-muted);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 0.1rem solid rgba(255, 165, 0, 0.1);
}

/* ============================================================
   Mobile bottom navigation
   ============================================================ */
.w2ae3-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: 6rem;
  background: linear-gradient(180deg, #221f1a, #14120f);
  border-top: 0.2rem solid var(--w2ae3-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 0.2rem 0;
  box-shadow: 0 -0.2rem 1rem rgba(0, 0, 0, 0.5);
}

.w2ae3-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--w2ae3-muted);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.w2ae3-bottomnav-btn i,
.w2ae3-bottomnav-btn span.material-icons-outlined,
.w2ae3-bottomnav-btn ion-icon {
  font-size: 2.2rem;
}

.w2ae3-bottomnav-btn ion-icon {
  font-size: 2.4rem;
}

.w2ae3-bottomnav-btn:active {
  transform: scale(0.9);
}

.w2ae3-bottomnav-btn.w2ae3-current {
  color: var(--w2ae3-accent);
}

.w2ae3-bottomnav-btn.w2ae3-current::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.4rem;
  height: 0.25rem;
  border-radius: 0.2rem;
  background: var(--w2ae3-primary);
}

.w2ae3-bottomnav-btn.w2ae3-promo {
  color: var(--w2ae3-soft);
}

.w2ae3-bottomnav-btn.w2ae3-promo i {
  color: var(--w2ae3-accent);
}

.w2ae3-badge {
  position: absolute;
  top: 0.4rem;
  right: 1rem;
  background: var(--w2ae3-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  border-radius: 0.6rem;
  min-width: 1.5rem;
  text-align: center;
}

/* ============================================================
   Utilities & desktop rules
   ============================================================ */
.w2ae3-hidden {
  display: none !important;
}

.w2ae3-mt {
  margin-top: 1.2rem;
}

@media (min-width: 769px) {
  .w2ae3-bottomnav {
    display: none;
  }

  main.w2ae3-main {
    padding-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  main.w2ae3-main {
    padding-bottom: 8rem;
  }
}
