/* ============================================================
   Fun88 Newcastle - Core CSS (basefiles)
   Prefix: w7172-
   Palette: #262626 (bg) | #EEE8AA (text) | #FF8C00 |
            #B8860B | #66CDAA
   ============================================================ */

:root {
  --w7172-bg: #262626;
  --w7172-bg-2: #1f1c18;
  --w7172-bg-3: #322c24;
  --w7172-text: #EEE8AA;
  --w7172-text-soft: #d8d09a;
  --w7172-accent: #FF8C00;
  --w7172-gold: #B8860B;
  --w7172-teal: #66CDAA;
  --w7172-white: #fff;
  --w7172-muted: #9a937a;
  --w7172-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

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

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Be Vietnam Pro", sans-serif;
  background: var(--w7172-bg);
  color: var(--w7172-text);
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

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

a { color: var(--w7172-teal); text-decoration: none; }
a:hover { color: var(--w7172-accent); }

h1, h2, h3, h4 { line-height: 1.3; color: var(--w7172-white); }

/* ============ Header ============ */
.w7172-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2c2620, #1f1b16);
  border-bottom: 1px solid rgba(184, 134, 11, 0.4);
  box-shadow: var(--w7172-shadow);
}
.w7172-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.w7172-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.w7172-logo-img {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--w7172-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w7172-bg);
  font-weight: 800;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.w7172-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--w7172-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w7172-logo-text span { color: var(--w7172-accent); }

.w7172-header-actions { display: flex; gap: 6px; align-items: center; }
.w7172-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.w7172-btn:active { transform: scale(0.96); }
.w7172-btn-login {
  background: transparent;
  border: 1px solid var(--w7172-teal);
  color: var(--w7172-teal);
}
.w7172-btn-login:hover { background: rgba(102, 205, 170, 0.12); }
.w7172-btn-register {
  background: linear-gradient(90deg, var(--w7172-accent), var(--w7172-gold));
  color: #1a1a1a;
  box-shadow: 0 3px 10px rgba(255, 140, 0, 0.35);
}
.w7172-btn-register:hover { box-shadow: 0 4px 14px rgba(255, 140, 0, 0.55); }

.w7172-menu-btn {
  background: transparent;
  border: none;
  color: var(--w7172-text);
  font-size: 1.8rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ============ Mobile expandable menu ============ */
.w7172-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  max-height: 0;
  overflow: hidden;
  background: #1f1b16;
  border-bottom: 1px solid rgba(184, 134, 11, 0.35);
  z-index: 9999;
  transition: max-height .28s ease;
}
.w7172-mobile-menu.w7172-menu-open { max-height: 80vh; overflow-y: auto; }
.w7172-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.w7172-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--w7172-bg-3);
  border-radius: 8px;
  color: var(--w7172-text);
  font-size: 1.35rem;
  font-weight: 600;
}
.w7172-mobile-menu a:hover { background: rgba(255, 140, 0, 0.15); color: var(--w7172-accent); }
.w7172-mobile-menu i, .w7172-mobile-menu span.material-icons-outlined, .w7172-mobile-menu ion-icon { font-size: 18px; color: var(--w7172-accent); }

/* ============ Layout ============ */
main.w7172-main {
  padding-top: 64px;
  padding-bottom: 80px;
  max-width: 430px;
  margin: 0 auto;
}
.w7172-container { width: 100%; padding: 0 12px; }

/* ============ Hero / Carousel ============ */
.w7172-hero {
  position: relative;
  margin: 12px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--w7172-shadow);
}
.w7172-slides { position: relative; }
.w7172-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.w7172-slide.w7172-slide-active { display: block; }
.w7172-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.w7172-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,38,38,0) 30%, rgba(38,38,38,0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}
.w7172-slide-overlay h2 {
  font-size: 1.9rem;
  color: var(--w7172-white);
  margin-bottom: 4px;
}
.w7172-slide-overlay p {
  font-size: 1.3rem;
  color: var(--w7172-text);
  margin-bottom: 8px;
}
.w7172-slide-overlay .w7172-btn { align-self: flex-start; }

.w7172-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.w7172-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(238, 232, 170, 0.45);
  cursor: pointer;
  border: none;
}
.w7172-dot.w7172-dot-active { background: var(--w7172-accent); }

/* ============ Section title ============ */
.w7172-section { margin: 18px 0; }
.w7172-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}
.w7172-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w7172-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.w7172-section-title::before {
  content: "";
  display: inline-block;
  width: 4px; height: 18px;
  background: var(--w7172-gold);
  border-radius: 2px;
}
.w7172-section-link {
  font-size: 1.2rem;
  color: var(--w7172-teal);
}

/* ============ Game grid ============ */
.w7172-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.w7172-card {
  background: var(--w7172-bg-3);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.w7172-card:active { transform: scale(0.96); }
.w7172-card:hover { box-shadow: 0 6px 16px rgba(255,140,0,0.25); }
.w7172-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #2a2520;
}
.w7172-card-name {
  font-size: 1.15rem;
  color: var(--w7172-text);
  padding: 6px 6px 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.w7172-card-tag {
  position: absolute;
  top: 4px; left: 4px;
  background: var(--w7172-accent);
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

/* ============ Info / promo blocks ============ */
.w7172-info-card {
  background: linear-gradient(135deg, #322c24, #262626);
  border: 1px solid rgba(184,134,11,0.35);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  box-shadow: var(--w7172-shadow);
}
.w7172-info-card h2 { font-size: 1.7rem; color: var(--w7172-accent); margin-bottom: 8px; }
.w7172-info-card h3 { font-size: 1.35rem; color: var(--w7172-teal); margin: 10px 0 6px; }
.w7172-info-card p { color: var(--w7172-text); font-size: 1.35rem; margin-bottom: 8px; }
.w7172-info-card ul { padding-left: 18px; margin: 6px 0; }
.w7172-info-card li { font-size: 1.3rem; margin-bottom: 4px; color: var(--w7172-text-soft); }
.w7172-info-card a { color: var(--w7172-accent); font-weight: 600; }

.w7172-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, var(--w7172-accent), var(--w7172-gold));
  color: #1a1a1a;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.35rem;
  border: none;
  cursor: pointer;
  margin: 6px 0;
}
.w7172-cta:hover { color: #1a1a1a; box-shadow: 0 4px 14px rgba(255,140,0,0.5); }

/* ============ Testimonials ============ */
.w7172-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.w7172-testimonial {
  background: var(--w7172-bg-3);
  border-left: 3px solid var(--w7172-teal);
  border-radius: 8px;
  padding: 10px 12px;
}
.w7172-testimonial p { font-size: 1.3rem; color: var(--w7172-text); }
.w7172-testimonial .w7172-author {
  margin-top: 4px;
  font-size: 1.15rem;
  color: var(--w7172-accent);
  font-weight: 700;
}

/* ============ Payment / app ============ */
.w7172-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.w7172-payment-chip {
  background: var(--w7172-bg-3);
  border: 1px solid rgba(184,134,11,0.3);
  color: var(--w7172-text);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ============ Footer ============ */
.w7172-footer {
  background: #1a1714;
  border-top: 2px solid var(--w7172-gold);
  padding: 18px 12px 24px;
  margin-top: 18px;
}
.w7172-footer-desc {
  font-size: 1.3rem;
  color: var(--w7172-text-soft);
  margin-bottom: 12px;
}
.w7172-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.w7172-footer-promo button, .w7172-footer-promo a {
  background: linear-gradient(90deg, var(--w7172-accent), var(--w7172-gold));
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.w7172-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 12px;
}
.w7172-footer-links a {
  color: var(--w7172-text-soft);
  font-size: 1.2rem;
}
.w7172-footer-links a:hover { color: var(--w7172-accent); }
.w7172-footer-copy {
  font-size: 1.1rem;
  color: var(--w7172-muted);
  text-align: center;
  border-top: 1px solid rgba(184,134,11,0.2);
  padding-top: 10px;
}

/* ============ Bottom nav (mobile) ============ */
.w7172-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, #2c2620, #1a1714);
  border-top: 1px solid rgba(184,134,11,0.45);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.5);
}
.w7172-bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--w7172-text-soft);
  font-size: 1.05rem;
  gap: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, color .15s ease;
}
.w7172-bottom-nav-link:active { transform: scale(0.92); }
.w7172-bottom-nav-link i,
.w7172-bottom-nav-link span.material-icons-outlined,
.w7172-bottom-nav-link span.material-icons,
.w7172-bottom-nav-link ion-icon {
  font-size: 22px;
}
.w7172-bottom-nav-link ion-icon { font-size: 24px; }
.w7172-bottom-nav-active { color: var(--w7172-accent) !important; }
.w7172-bottom-nav-link:hover { color: var(--w7172-accent); }

/* ============ Desktop ============ */
@media (min-width: 769px) {
  .w7172-bottom-nav { display: none; }
  body, main.w7172-main, .w7172-header-inner, .w7172-mobile-menu-inner {
    max-width: 430px;
    margin: 0 auto;
  }
  main.w7172-main { padding-bottom: 30px; }
}

/* hidden helper */
.w7172-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
