/*!
 * f1668 base stylesheet
 * Prefix: w4199-  | All custom classes use the w4199- prefix
 * Palette: #00B8D4 | #FF5722 | #F0FDFF | #1B263B | #00695C
 * Mobile-first, max-width 430px.
 */

:root {
  --w4199-primary: #00B8D4;
  --w4199-accent: #FF5722;
  --w4199-light: #F0FDFF;
  --w4199-dark: #1B263B;
  --w4199-deep: #00695C;
  --w4199-bg: #0f1622;
  --w4199-text: #E8F7FB;
  --w4199-muted: #9FB3C8;
  --w4199-card: #162133;
  --w4199-border: #23324a;
  --w4199-gold: #FFC857;
  --w4199-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--w4199-bg);
  color: var(--w4199-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--w4199-primary); text-decoration: none; }

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

/* ===== Header ===== */
.w4199-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--w4199-dark) 0%, var(--w4199-deep) 100%);
  border-bottom: 1px solid var(--w4199-border);
  box-shadow: var(--w4199-shadow);
}

.w4199-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w4199-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.w4199-logo img {
  width: 28px; height: 28px;
  border-radius: 6px;
}

.w4199-logo-name {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--w4199-light);
  letter-spacing: 0.5px;
}

.w4199-logo-name span { color: var(--w4199-accent); }

.w4199-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 1.2rem;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.w4199-btn:active { transform: scale(0.95); }

.w4199-btn-register {
  background: linear-gradient(90deg, var(--w4199-accent), #ff8a4c);
  color: #fff;
}
.w4199-btn-login {
  background: transparent;
  color: var(--w4199-light);
  border: 1px solid var(--w4199-primary);
}

.w4199-menu-btn {
  background: transparent;
  border: 0;
  color: var(--w4199-light);
  font-size: 1.8rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

/* ===== Mobile menu ===== */
.w4199-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: var(--w4199-dark);
  border-top: 1px solid var(--w4199-border);
}
.w4199-mobile-menu.w4199-menu-open { max-height: 520px; }

.w4199-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.6rem 1rem 1rem;
}
.w4199-mobile-menu li { padding: 0.4rem 0; }
.w4199-mobile-menu a {
  display: block;
  color: var(--w4199-text);
  padding: 0.65rem 0.6rem;
  border-radius: 8px;
  font-weight: 600;
}
.w4199-mobile-menu a:hover, .w4199-mobile-menu a:active {
  background: rgba(0, 184, 212, 0.15);
}

/* ===== Main ===== */
.w4199-main {
  padding-top: 64px;
  padding-bottom: 84px;
}

/* ===== Hero / carousel ===== */
.w4199-hero {
  position: relative;
  margin: 1rem 0 1.4rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--w4199-shadow);
}
.w4199-slides { position: relative; }
.w4199-slide {
  display: none;
  cursor: pointer;
}
.w4199-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.w4199-slide.w4199-slide-active { display: block; }
.w4199-hero-caption {
  position: absolute;
  left: 1rem; bottom: 0.8rem;
  background: rgba(15, 22, 34, 0.75);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  color: var(--w4199-light);
}

/* ===== Section headings ===== */
.w4199-section { margin: 2rem 0; }
.w4199-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w4199-light);
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w4199-section-title::before {
  content: "";
  width: 4px; height: 18px;
  background: var(--w4199-accent);
  border-radius: 2px;
}
.w4199-section-sub {
  color: var(--w4199-muted);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

/* ===== Filter chips ===== */
.w4199-filters {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
}
.w4199-filter-btn {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border: 1px solid var(--w4199-border);
  background: var(--w4199-card);
  color: var(--w4199-text);
  border-radius: 18px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
}
.w4199-filter-btn.w4199-filter-active {
  background: var(--w4199-primary);
  color: #07232a;
  border-color: var(--w4199-primary);
}

/* ===== Game grid ===== */
.w4199-cat-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--w4199-primary);
  margin: 1.4rem 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.w4199-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.w4199-game {
  display: block;
  background: var(--w4199-card);
  border: 1px solid var(--w4199-border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.w4199-game:hover, .w4199-game:active {
  transform: translateY(-2px);
  border-color: var(--w4199-primary);
}
.w4199-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.w4199-game-name {
  font-size: 1.1rem;
  color: var(--w4199-text);
  padding: 0.4rem 0.3rem 0.55rem;
  font-weight: 600;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Cards / blocks ===== */
.w4199-card {
  background: var(--w4199-card);
  border: 1px solid var(--w4199-border);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.w4199-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--w4199-gold);
}
.w4199-card p {
  margin: 0 0 0.6rem;
  color: var(--w4199-text);
}

.w4199-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, var(--w4199-accent), var(--w4199-primary));
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  border-radius: 24px;
  margin: 0.6rem 0;
  min-height: 44px;
  cursor: pointer;
}
.w4199-cta:active { transform: scale(0.96); }

/* ===== RTP / stats ===== */
.w4199-rtp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--w4199-border);
}
.w4199-rtp-row:last-child { border-bottom: 0; }
.w4199-rtp-bar {
  flex: 1;
  height: 6px;
  margin: 0 0.8rem;
  border-radius: 4px;
  background: var(--w4199-border);
  overflow: hidden;
}
.w4199-rtp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--w4199-primary), var(--w4199-gold));
}
.w4199-rtp-value { color: var(--w4199-gold); font-weight: 700; }

/* ===== Testimonials ===== */
.w4199-quote {
  border-left: 3px solid var(--w4199-accent);
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.7rem;
  background: rgba(0, 184, 212, 0.06);
  border-radius: 0 8px 8px 0;
}
.w4199-quote .w4199-author {
  display: block;
  color: var(--w4199-muted);
  font-size: 1.1rem;
  margin-top: 0.3rem;
}

/* ===== Payment grid ===== */
.w4199-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  text-align: center;
}
.w4199-pay-item {
  background: var(--w4199-bg);
  border: 1px solid var(--w4199-border);
  border-radius: 8px;
  padding: 0.7rem 0.4rem;
  font-size: 1.1rem;
  color: var(--w4199-text);
}
.w4199-pay-item i { font-size: 1.8rem; color: var(--w4199-primary); }

/* ===== Winners ===== */
.w4199-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--w4199-border);
}
.w4199-winner:last-child { border-bottom: 0; }
.w4199-winner b { color: var(--w4199-gold); }

/* ===== Footer ===== */
.w4199-footer {
  background: var(--w4199-dark);
  border-top: 1px solid var(--w4199-border);
  padding: 1.6rem 1.2rem 2rem;
  color: var(--w4199-muted);
  font-size: 1.2rem;
}
.w4199-footer h4 {
  color: var(--w4199-light);
  font-size: 1.3rem;
  margin: 1rem 0 0.5rem;
}
.w4199-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.5rem 0;
}
.w4199-footer-links a {
  color: var(--w4199-muted);
  font-size: 1.15rem;
}
.w4199-footer-links a:hover { color: var(--w4199-primary); }
.w4199-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0;
}
.w4199-footer-promo button, .w4199-footer-promo a {
  background: var(--w4199-card);
  color: var(--w4199-light);
  border: 1px solid var(--w4199-primary);
  padding: 0.5rem 0.9rem;
  border-radius: 16px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
}
.w4199-copyright {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--w4199-border);
  text-align: center;
  color: var(--w4199-muted);
  font-size: 1.1rem;
}

/* ===== Mobile bottom nav ===== */
.w4199-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, var(--w4199-deep), var(--w4199-dark));
  border-top: 1px solid var(--w4199-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.35);
}
.w4199-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: 0;
  color: var(--w4199-muted);
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
  text-decoration: none;
}
.w4199-nav-btn i, .w4199-nav-btn .material-icons-outlined,
.w4199-nav-btn ion-icon {
  font-size: 24px;
}
.w4199-nav-btn span {
  font-size: 11px;
  font-weight: 600;
}
.w4199-nav-btn:active { transform: scale(0.92); }
.w4199-nav-btn.w4199-nav-current { color: var(--w4199-primary); }
.w4199-nav-promo {
  color: var(--w4199-gold);
  position: relative;
}
.w4199-nav-promo::after {
  content: "";
  position: absolute;
  top: 6px; right: 14px;
  width: 7px; height: 7px;
  background: var(--w4199-accent);
  border-radius: 50%;
}

/* ===== Desktop ===== */
@media (min-width: 769px) {
  body { background: #0a0f17; }
  .w4199-bottom-nav { display: none; }
  .w4199-container { max-width: 760px; }
  .w4199-header-inner { max-width: 760px; }
  .w4199-grid { grid-template-columns: repeat(6, 1fr); }
  .w4199-pay-grid { grid-template-columns: repeat(6, 1fr); }
  .w4199-main { padding-bottom: 2rem; }
}

/* Utility */
.w4199-hide { display: none !important; }
.w4199-text-link { color: var(--w4199-primary); font-weight: 700; }
.w4199-text-link:hover { text-decoration: underline; }
