/*!
 * Fly88 App - Layout Stylesheet (we4cd- prefix)
 * Mobile-first responsive design, max-width 430px primary target.
 * Color palette: #0E1621 (bg) / #CD853F (gold) / #BBBBBB (muted) / #CD5C5C (red) / #FFC0CB (pink)
 */

/* ---------- CSS Variables ---------- */
:root {
  --we4cd-primary: #CD853F;
  --we4cd-bg: #0E1621;
  --we4cd-text: #BBBBBB;
  --we4cd-red: #CD5C5C;
  --we4cd-pink: #FFC0CB;
  --we4cd-gold-light: #E5B568;
  --we4cd-bg-soft: #16202E;
  --we4cd-bg-card: #1C2837;
  --we4cd-border: #2A3645;
  --we4cd-white: #F5F7FA;
  --we4cd-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --we4cd-radius: 14px;
  --we4cd-radius-sm: 9px;
  --we4cd-transition: all 0.28s ease;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Be Vietnam Pro", sans-serif;
  background: var(--we4cd-bg);
  color: var(--we4cd-white);
  line-height: 1.55;
  font-size: 1.5rem;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: var(--we4cd-primary); text-decoration: none; transition: var(--we4cd-transition); }
a:hover { color: var(--we4cd-gold-light); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout helpers ---------- */
.we4cd-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.we4cd-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.we4cd-section { padding: 36px 0; }
.we4cd-section-title {
  font-size: 2.4rem; font-weight: 800; color: var(--we4cd-white);
  text-align: center; margin-bottom: 6px; letter-spacing: 0.5px;
}
.we4cd-section-subtitle {
  font-size: 1.45rem; color: var(--we4cd-text);
  text-align: center; margin-bottom: 24px;
}
.we4cd-section-title .we4cd-accent { color: var(--we4cd-primary); }
.we4cd-eyebrow {
  display: inline-block; font-size: 1.15rem; font-weight: 700;
  color: var(--we4cd-gold-light); text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 8px;
}

/* ---------- Header ---------- */
.we4cd-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, #0B121B 0%, #0E1621 100%);
  border-bottom: 1px solid var(--we4cd-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.we4cd-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; padding: 0 14px;
}
.we4cd-logo { display: flex; align-items: center; gap: 10px; }
.we4cd-logo img { width: 34px; height: 34px; border-radius: 8px; }
.we4cd-logo-text {
  font-size: 2rem; font-weight: 800; color: var(--we4cd-white);
  letter-spacing: 0.4px;
}
.we4cd-logo-text span { color: var(--we4cd-primary); }
.we4cd-header-actions { display: flex; align-items: center; gap: 8px; }
.we4cd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--we4cd-radius-sm);
  font-size: 1.35rem; font-weight: 700; transition: var(--we4cd-transition);
  min-height: 38px; white-space: nowrap;
}
.we4cd-btn-login {
  background: transparent; color: var(--we4cd-white);
  border: 1px solid var(--we4cd-primary);
}
.we4cd-btn-login:hover { background: rgba(205, 133, 63, 0.15); }
.we4cd-btn-register {
  background: linear-gradient(135deg, var(--we4cd-primary), var(--we4cd-red));
  color: #fff; box-shadow: 0 4px 12px rgba(205, 92, 92, 0.4);
}
.we4cd-btn-register:hover { transform: translateY(-1px); filter: brightness(1.1); }
.we4cd-menu-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: 8px;
}
.we4cd-menu-toggle span {
  width: 24px; height: 2px; background: var(--we4cd-white); border-radius: 2px;
  transition: var(--we4cd-transition);
}

/* ---------- Desktop nav ---------- */
.we4cd-desktop-nav { display: none; }
.we4cd-desktop-nav ul { display: flex; gap: 18px; align-items: center; }
.we4cd-desktop-nav a {
  color: var(--we4cd-text); font-size: 1.4rem; font-weight: 600;
  padding: 6px 4px; position: relative;
}
.we4cd-desktop-nav a:hover { color: var(--we4cd-primary); }
.we4cd-desktop-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; height: 2px;
  width: 0; background: var(--we4cd-primary); transition: var(--we4cd-transition);
}
.we4cd-desktop-nav a:hover::after { width: 100%; }

/* ---------- Mobile slide-in menu ---------- */
.we4cd-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 82%; max-width: 340px;
  height: 100vh; background: var(--we4cd-bg-soft); z-index: 9999;
  transition: right 0.32s ease; padding: 22px 18px; overflow-y: auto;
  border-left: 1px solid var(--we4cd-border); box-shadow: -6px 0 24px rgba(0,0,0,0.6);
}
.we4cd-menu-open { right: 0; }
.we4cd-mobile-menu .we4cd-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--we4cd-border);
}
.we4cd-mobile-menu h3 { font-size: 1.7rem; color: var(--we4cd-primary); }
.we4cd-mobile-menu .we4cd-close {
  font-size: 2.2rem; color: var(--we4cd-white); line-height: 1; padding: 4px 10px;
}
.we4cd-mobile-menu ul li { margin-bottom: 4px; }
.we4cd-mobile-menu ul a {
  display: flex; align-items: center; gap: 12px; padding: 13px 12px;
  color: var(--we4cd-white); font-size: 1.45rem; font-weight: 600;
  border-radius: var(--we4cd-radius-sm); transition: var(--we4cd-transition);
}
.we4cd-mobile-menu ul a:hover { background: rgba(205, 133, 63, 0.15); color: var(--we4cd-primary); }
.we4cd-mobile-menu ul a i { color: var(--we4cd-primary); width: 22px; text-align: center; }
.we4cd-menu-promo {
  margin-top: 18px; padding: 16px; background: linear-gradient(135deg, var(--we4cd-primary), var(--we4cd-red));
  border-radius: var(--we4cd-radius); text-align: center; color: #fff;
}
.we4cd-menu-promo p { font-size: 1.3rem; margin-bottom: 10px; }
.we4cd-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; visibility: hidden; transition: var(--we4cd-transition);
}
.we4cd-overlay-show { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.we4cd-hero {
  position: relative; padding: 30px 0 10px; overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(205, 133, 63, 0.18), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(205, 92, 92, 0.15), transparent 55%);
}
.we4cd-hero-inner { text-align: center; }
.we4cd-hero h1 {
  font-size: 3.2rem; font-weight: 900; line-height: 1.15;
  color: var(--we4cd-white); margin-bottom: 12px;
}
.we4cd-hero h1 span { color: var(--we4cd-primary); }
.we4cd-hero p {
  font-size: 1.5rem; color: var(--we4cd-text); max-width: 540px; margin: 0 auto 22px;
}
.we4cd-hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.we4cd-btn-hero {
  padding: 13px 26px; font-size: 1.55rem; border-radius: 30px; font-weight: 800;
}
.we4cd-hero-stats {
  display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 6px;
}
.we4cd-stat { text-align: center; }
.we4cd-stat-num {
  display: block; font-size: 2.2rem; font-weight: 900; color: var(--we4cd-primary);
}
.we4cd-stat-label { font-size: 1.15rem; color: var(--we4cd-text); }

/* ---------- Carousel ---------- */
.we4cd-carousel {
  position: relative; border-radius: var(--we4cd-radius); overflow: hidden;
  margin: 22px 0; box-shadow: var(--we4cd-shadow); aspect-ratio: 16/8;
  background: var(--we4cd-bg-card);
}
.we4cd-carousel-track { position: relative; width: 100%; height: 100%; }
.we4cd-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
  display: flex; align-items: center;
}
.we4cd-carousel-slide.we4cd-slide-active { opacity: 1; }
.we4cd-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.we4cd-carousel-caption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(14, 22, 33, 0.92));
  color: #fff;
}
.we4cd-carousel-caption h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.we4cd-carousel-caption p { font-size: 1.25rem; color: var(--we4cd-text); }
.we4cd-carousel-dots {
  position: absolute; bottom: 10px; right: 14px; display: flex; gap: 6px; z-index: 3;
}
.we4cd-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: var(--we4cd-transition);
}
.we4cd-carousel-dot.we4cd-dot-active { background: var(--we4cd-primary); width: 22px; border-radius: 4px; }

/* ---------- Filter ---------- */
.we4cd-filter-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.we4cd-filter-bar::-webkit-scrollbar { display: none; }
.we4cd-filter-btn {
  flex-shrink: 0; padding: 8px 16px; border-radius: 20px;
  background: var(--we4cd-bg-card); color: var(--we4cd-text);
  font-size: 1.3rem; font-weight: 700; border: 1px solid var(--we4cd-border);
  transition: var(--we4cd-transition);
}
.we4cd-filter-btn.we4cd-filter-active,
.we4cd-filter-btn:hover {
  background: var(--we4cd-primary); color: #fff; border-color: var(--we4cd-primary);
}

/* ---------- Game grid ---------- */
.we4cd-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.we4cd-grid-4 { grid-template-columns: repeat(3, 1fr); }
.we4cd-game-card {
  position: relative; border-radius: var(--we4cd-radius-sm); overflow: hidden;
  background: var(--we4cd-bg-card); border: 1px solid var(--we4cd-border);
  transition: var(--we4cd-transition); cursor: pointer;
}
.we4cd-game-card:hover {
  transform: translateY(-4px); border-color: var(--we4cd-primary);
  box-shadow: 0 10px 24px rgba(205, 133, 63, 0.25);
}
.we4cd-game-card .we4cd-card-img {
  aspect-ratio: 1/1; overflow: hidden; position: relative;
}
.we4cd-game-card .we4cd-card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}
.we4cd-game-card:hover .we4cd-card-img img { transform: scale(1.08); }
.we4cd-card-body { padding: 8px 10px 10px; text-align: center; }
.we4cd-card-body h4 {
  font-size: 1.22rem; font-weight: 700; color: var(--we4cd-white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.we4cd-card-tag {
  position: absolute; top: 6px; left: 6px; background: var(--we4cd-red);
  color: #fff; font-size: 0.95rem; font-weight: 700; padding: 2px 7px;
  border-radius: 5px; z-index: 2;
}
.we4cd-card-tag.gold { background: var(--we4cd-primary); }
.we4cd-card-tag.pink { background: var(--we4cd-red); }
.we4cd-card-overlay {
  position: absolute; inset: 0; background: rgba(14, 22, 33, 0.78);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--we4cd-transition);
}
.we4cd-game-card:hover .we4cd-card-overlay { opacity: 1; }
.we4cd-play-btn {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--we4cd-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}

/* ---------- Category section ---------- */
.we4cd-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--we4cd-border);
}
.we4cd-cat-head h2 {
  font-size: 1.9rem; font-weight: 800; color: var(--we4cd-white);
  display: flex; align-items: center; gap: 10px;
}
.we4cd-cat-head h2 i { color: var(--we4cd-primary); font-size: 2.2rem; }
.we4cd-cat-head .we4cd-view-all { font-size: 1.25rem; font-weight: 700; color: var(--we4cd-primary); }

/* ---------- Featured blocks ---------- */
.we4cd-featured-banner {
  background: linear-gradient(135deg, #1C2837, #0E1621);
  border: 1px solid var(--we4cd-border); border-radius: var(--we4cd-radius);
  padding: 22px 18px; margin: 28px 0; position: relative; overflow: hidden;
}
.we4cd-featured-banner::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(205,133,63,0.25), transparent 70%);
}
.we4cd-featured-banner h3 {
  font-size: 2.1rem; font-weight: 800; color: var(--we4cd-primary); margin-bottom: 8px;
}
.we4cd-featured-banner p { font-size: 1.35rem; color: var(--we4cd-text); margin-bottom: 14px; max-width: 600px; }
.we4cd-featured-links { display: flex; gap: 10px; flex-wrap: wrap; }
.we4cd-pill-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px;
  background: rgba(205, 133, 63, 0.12); border: 1px solid var(--we4cd-primary);
  color: var(--we4cd-primary); font-size: 1.25rem; font-weight: 700;
}
.we4cd-pill-link:hover { background: var(--we4cd-primary); color: #fff; }

/* ---------- SEO long text ---------- */
.we4cd-seo-text {
  background: var(--we4cd-bg-soft); border-radius: var(--we4cd-radius);
  padding: 24px 18px; margin: 24px 0; border-left: 3px solid var(--we4cd-primary);
}
.we4cd-seo-text h2 { font-size: 2rem; font-weight: 800; color: var(--we4cd-white); margin-bottom: 12px; }
.we4cd-seo-text h3 { font-size: 1.6rem; font-weight: 700; color: var(--we4cd-primary); margin: 18px 0 8px; }
.we4cd-seo-text p { font-size: 1.4rem; color: var(--we4cd-text); margin-bottom: 12px; }
.we4cd-seo-text strong { color: var(--we4cd-white); }
.we4cd-seo-text ol, .we4cd-seo-text ul { padding-left: 22px; margin-bottom: 12px; }
.we4cd-seo-text li { font-size: 1.4rem; color: var(--we4cd-text); margin-bottom: 6px; }
.we4cd-seo-text a { color: var(--we4cd-gold-light); font-weight: 600; text-decoration: underline; }

/* ---------- FAQ ---------- */
.we4cd-faq-list { max-width: 760px; margin: 0 auto; }
.we4cd-faq-item {
  background: var(--we4cd-bg-card); border: 1px solid var(--we4cd-border);
  border-radius: var(--we4cd-radius-sm); margin-bottom: 10px; overflow: hidden;
}
.we4cd-faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; cursor: pointer; font-size: 1.45rem; font-weight: 700; color: var(--we4cd-white);
}
.we4cd-faq-icon { color: var(--we4cd-primary); transition: transform 0.3s ease; font-size: 1.5rem; }
.we4cd-faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  padding: 0 18px;
}
.we4cd-faq-answer p { padding-bottom: 14px; font-size: 1.35rem; color: var(--we4cd-text); }

/* ---------- Footer ---------- */
.we4cd-footer {
  background: #080F17; border-top: 1px solid var(--we4cd-border);
  padding: 32px 0 20px; margin-top: 20px;
}
.we4cd-footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 22px;
}
.we4cd-footer-col h4 {
  font-size: 1.55rem; font-weight: 800; color: var(--we4cd-primary);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.we4cd-footer-col ul li { margin-bottom: 8px; }
.we4cd-footer-col a { color: var(--we4cd-text); font-size: 1.3rem; }
.we4cd-footer-col a:hover { color: var(--we4cd-primary); padding-left: 4px; }
.we4cd-footer-about p { font-size: 1.3rem; color: var(--we4cd-text); margin-bottom: 12px; }
.we4cd-footer-social { display: flex; gap: 10px; }
.we4cd-footer-social a {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: var(--we4cd-bg-card); color: var(--we4cd-primary);
  font-size: 1.6rem; border: 1px solid var(--we4cd-border);
}
.we4cd-footer-social a:hover { background: var(--we4cd-primary); color: #fff; }
.we4cd-footer-bottom {
  text-align: center; padding-top: 18px; border-top: 1px solid var(--we4cd-border);
  font-size: 1.2rem; color: var(--we4cd-text);
}
.we4cd-footer-bottom p { margin-bottom: 4px; }
.we4cd-responsible {
  background: rgba(205, 92, 92, 0.1); border: 1px solid var(--we4cd-red);
  border-radius: var(--we4cd-radius-sm); padding: 12px 14px; margin-top: 14px;
  font-size: 1.2rem; color: var(--we4cd-pink); text-align: center;
}

/* ---------- Mobile bottom nav ---------- */
.we4cd-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 62px; z-index: 1000;
  background: linear-gradient(180deg, #0B121B, #060B12);
  border-top: 1px solid var(--we4cd-border);
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 4px; box-shadow: 0 -4px 18px rgba(0,0,0,0.5);
}
.we4cd-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 58px; color: var(--we4cd-text);
  font-size: 1.05rem; font-weight: 600; gap: 2px; transition: var(--we4cd-transition);
}
.we4cd-bottom-nav-btn i { font-size: 2.1rem; }
.we4cd-bottom-nav-btn .material-symbols-outlined { font-size: 24px; }
.we4cd-bottom-nav-btn:hover { color: var(--we4cd-primary); }
.we4cd-bottom-nav-btn.we4cd-nav-current { color: var(--we4cd-primary); }
.we4cd-bottom-nav-promo {
  position: relative;
}
.we4cd-bottom-nav-promo::before {
  content: ''; position: absolute; top: -16px; width: 46px; height: 46px;
  border-radius: 50%; background: linear-gradient(135deg, var(--we4cd-primary), var(--we4cd-red));
  box-shadow: 0 4px 12px rgba(205, 92, 92, 0.5); z-index: 0;
}
.we4cd-bottom-nav-promo i, .we4cd-bottom-nav-promo span {
  position: relative; z-index: 1; color: #fff;
}

/* ---------- Desktop rules ---------- */
@media (min-width: 769px) {
  .we4cd-bottom-nav { display: none; }
  .we4cd-menu-toggle { display: none; }
  .we4cd-desktop-nav { display: block; }
  .we4cd-grid { grid-template-columns: repeat(6, 1fr); }
  .we4cd-grid-4 { grid-template-columns: repeat(6, 1fr); }
  .we4cd-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .we4cd-hero h1 { font-size: 4.5rem; }
  .we4cd-section-title { font-size: 3rem; }
}

/* ---------- Mobile bottom padding ---------- */
@media (max-width: 768px) {
  .we4cd-main { padding-bottom: 80px; }
  .we4cd-footer { padding-bottom: 90px; }
}

/* ---------- Compact support cards ---------- */
.we4cd-card {
  background: var(--we4cd-bg-card); border: 1px solid var(--we4cd-border);
  border-radius: var(--we4cd-radius-sm); min-height: 118px;
}
.we4cd-card .we4cd-card-body { text-align: left; padding: 16px; }
.we4cd-card .we4cd-card-body h4 { white-space: normal; font-size: 1.4rem; margin-bottom: 7px; }
.we4cd-card .we4cd-card-body p { color: var(--we4cd-text); font-size: 1.3rem; }
.we4cd-bottom-nav-btn:active { color: var(--we4cd-primary); transform: scale(0.92); }
