/* ==========================================================================
   AS99 Casino - Layout CSS  (prefix: w3e9d-)
   Palette: #0C0C0C bg | #228B22 primary | #D8BFD8 soft | #EE82EE accent
   Mobile-first, max-width 430px. Root font-size 62.5% => 1rem = 10px.
   ========================================================================== */

:root {
  --w3e9d-bg: #0C0C0C;
  --w3e9d-bg-alt: #161616;
  --w3e9d-bg-card: #1E1E1E;
  --w3e9d-primary: #228B22;
  --w3e9d-primary-hover: #2EA62E;
  --w3e9d-accent: #EE82EE;
  --w3e9d-soft: #D8BFD8;
  --w3e9d-text: #FFFFFF;
  --w3e9d-text-muted: #B5B5B5;
  --w3e9d-border: #2A2A2A;
  --w3e9d-gold: #FFD700;
  --w3e9d-radius: 1.2rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  background: var(--w3e9d-bg);
  color: var(--w3e9d-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--w3e9d-accent); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.w3e9d-no-scroll { overflow: hidden; }

/* Layout containers */
.w3e9d-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.w3e9d-wrapper { min-height: 100vh; padding-top: 6rem; }
@media (max-width: 768px) { .w3e9d-wrapper { padding-bottom: 8rem; } }

/* Header */
.w3e9d-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--w3e9d-border);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.w3e9d-header-scrolled { background: rgba(12, 12, 12, 0.98); box-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.w3e9d-header-inner {
  max-width: 430px; margin: 0 auto; height: 6rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
}
.w3e9d-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.8rem; color: var(--w3e9d-text); }
.w3e9d-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.w3e9d-logo .w3e9d-logo-text {
  background: linear-gradient(90deg, var(--w3e9d-primary), var(--w3e9d-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.w3e9d-header-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Buttons */
.w3e9d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; cursor: pointer; font-weight: 700; font-size: 1.3rem;
  padding: 0.8rem 1.4rem; border-radius: 0.8rem; min-height: 4rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.w3e9d-btn:active { transform: scale(0.96); }
.w3e9d-btn-login { background: transparent; color: var(--w3e9d-text); border: 1px solid var(--w3e9d-primary); }
.w3e9d-btn-login:hover { background: rgba(34, 139, 34, 0.15); }
.w3e9d-btn-register {
  background: linear-gradient(135deg, var(--w3e9d-primary), var(--w3e9d-primary-hover));
  color: #fff; box-shadow: 0 4px 14px rgba(34, 139, 34, 0.4);
}
.w3e9d-btn-register:hover { box-shadow: 0 6px 22px rgba(34, 139, 34, 0.6); }
.w3e9d-btn-promo {
  background: linear-gradient(135deg, var(--w3e9d-accent), #C71585);
  color: #fff; box-shadow: 0 4px 14px rgba(238, 130, 238, 0.4);
}
.w3e9d-btn-promo:hover { box-shadow: 0 6px 22px rgba(238, 130, 238, 0.6); }
.w3e9d-btn-block { display: flex; width: 100%; }

.w3e9d-menu-btn {
  background: transparent; color: var(--w3e9d-text);
  border: 1px solid var(--w3e9d-border);
  width: 4rem; height: 4rem; border-radius: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 2rem;
}

/* Mobile slide-in menu */
.w3e9d-mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 82%; max-width: 320px; height: 100vh; z-index: 9999;
  background: var(--w3e9d-bg-alt);
  padding: 1.8rem 1.4rem; overflow-y: auto;
  transition: right 0.3s ease;
  border-left: 1px solid var(--w3e9d-border);
}
.w3e9d-menu-open { right: 0; }
.w3e9d-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--w3e9d-border); }
.w3e9d-menu-title { font-size: 1.7rem; color: var(--w3e9d-accent); font-weight: 800; }
.w3e9d-menu-close { background: transparent; border: none; color: var(--w3e9d-text); font-size: 2.6rem; cursor: pointer; line-height: 1; }
.w3e9d-menu-link {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1.2rem 1rem; color: var(--w3e9d-text);
  border-bottom: 1px solid var(--w3e9d-border);
  font-size: 1.35rem; font-weight: 500;
  transition: background 0.2s, padding 0.2s, color 0.2s;
}
.w3e9d-menu-link i, .w3e9d-menu-link span.material-icons { color: var(--w3e9d-primary); font-size: 1.8rem; }
.w3e9d-menu-link:hover, .w3e9d-menu-link:focus { background: rgba(34, 139, 34, 0.16); padding-left: 1.4rem; color: var(--w3e9d-soft); }
.w3e9d-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.w3e9d-overlay-show { opacity: 1; pointer-events: auto; }

/* Carousel */
.w3e9d-carousel {
  position: relative; margin: 1.4rem 0; border-radius: var(--w3e9d-radius);
  overflow: hidden; aspect-ratio: 16 / 7; background: var(--w3e9d-bg-alt);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}
.w3e9d-slides { position: relative; width: 100%; height: 100%; }
.w3e9d-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; cursor: pointer; }
.w3e9d-slide-active { opacity: 1; }
.w3e9d-slide img { width: 100%; height: 100%; object-fit: cover; }
.w3e9d-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
}
.w3e9d-slide-title { font-size: 1.6rem; font-weight: 800; color: var(--w3e9d-accent); margin-bottom: 0.2rem; }
.w3e9d-slide-text { font-size: 1.2rem; color: var(--w3e9d-soft); }
.w3e9d-dot-row { position: absolute; bottom: 0.7rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 2; }
.w3e9d-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: background 0.2s, width 0.3s; border: none; }
.w3e9d-dot-active { background: var(--w3e9d-accent); width: 2rem; border-radius: 0.4rem; }

/* Sections */
.w3e9d-section { margin: 2.2rem 0; }
.w3e9d-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.w3e9d-section-title { font-size: 1.7rem; font-weight: 800; color: var(--w3e9d-text); display: flex; align-items: center; gap: 0.5rem; }
.w3e9d-section-title i, .w3e9d-section-title span.material-icons { color: var(--w3e9d-primary); font-size: 2rem; }
.w3e9d-section-link { font-size: 1.2rem; color: var(--w3e9d-accent); font-weight: 600; }

.w3e9d-h1 { font-size: 2.2rem; font-weight: 900; line-height: 1.35; margin: 1.4rem 0 0.6rem; }
.w3e9d-h1 .w3e9d-h1-accent { background: linear-gradient(90deg, var(--w3e9d-accent), var(--w3e9d-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w3e9d-lead { font-size: 1.3rem; color: var(--w3e9d-text-muted); line-height: 1.65; margin-bottom: 1rem; }

/* Game grid + cards */
.w3e9d-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.w3e9d-game-card {
  background: var(--w3e9d-bg-card); border-radius: 0.9rem; overflow: hidden; cursor: pointer;
  border: 1px solid var(--w3e9d-border); position: relative;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.w3e9d-game-card:hover, .w3e9d-game-card:active { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(238, 130, 238, 0.25); border-color: var(--w3e9d-accent); }
.w3e9d-game-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.w3e9d-game-name { padding: 0.55rem 0.5rem; font-size: 1.05rem; color: var(--w3e9d-soft); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.w3e9d-game-badge { position: absolute; top: 0.35rem; left: 0.35rem; background: var(--w3e9d-primary); color: #fff; font-size: 0.85rem; padding: 0.15rem 0.45rem; border-radius: 0.35rem; font-weight: 700; }
.w3e9d-game-badge.w3e9d-badge-hot { background: linear-gradient(135deg, #FF4500, var(--w3e9d-accent)); }

/* Info / feature cards */
.w3e9d-card { background: var(--w3e9d-bg-card); border-radius: var(--w3e9d-radius); padding: 1.4rem; border: 1px solid var(--w3e9d-border); margin-bottom: 1rem; }
.w3e9d-card-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.6rem; color: var(--w3e9d-text); display: flex; align-items: center; gap: 0.5rem; }
.w3e9d-card-title i, .w3e9d-card-title span.material-icons { color: var(--w3e9d-accent); font-size: 1.9rem; }
.w3e9d-card-text { font-size: 1.25rem; color: var(--w3e9d-text-muted); line-height: 1.6; }
.w3e9d-card-text p { margin-bottom: 0.6rem; }

/* CTA banner */
.w3e9d-cta { background: linear-gradient(135deg, rgba(34, 139, 34, 0.28), rgba(238, 130, 238, 0.28)); border: 1px solid var(--w3e9d-primary); border-radius: var(--w3e9d-radius); padding: 1.6rem; text-align: center; margin: 1.5rem 0; }
.w3e9d-cta h3 { font-size: 1.7rem; color: var(--w3e9d-accent); margin-bottom: 0.5rem; }
.w3e9d-cta p { font-size: 1.22rem; color: var(--w3e9d-soft); margin-bottom: 1.1rem; line-height: 1.5; }

/* Check list */
.w3e9d-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--w3e9d-border); font-size: 1.22rem; color: var(--w3e9d-text-muted); display: flex; gap: 0.7rem; align-items: flex-start; line-height: 1.5; }
.w3e9d-list li i { color: var(--w3e9d-primary); margin-top: 0.25rem; font-size: 1.4rem; flex-shrink: 0; }

/* Stats grid (RTP) */
.w3e9d-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.w3e9d-stat { background: var(--w3e9d-bg-card); border: 1px solid var(--w3e9d-border); border-radius: 1rem; padding: 1.1rem; text-align: center; }
.w3e9d-stat-num { font-size: 2rem; font-weight: 900; color: var(--w3e9d-accent); }
.w3e9d-stat-label { font-size: 1.1rem; color: var(--w3e9d-text-muted); margin-top: 0.2rem; }

/* Steps */
.w3e9d-step { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--w3e9d-border); }
.w3e9d-step-num { flex-shrink: 0; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: linear-gradient(135deg, var(--w3e9d-primary), var(--w3e9d-accent)); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.w3e9d-step-title { font-size: 1.35rem; font-weight: 700; color: var(--w3e9d-text); margin-bottom: 0.2rem; }
.w3e9d-step-text { font-size: 1.2rem; color: var(--w3e9d-text-muted); line-height: 1.5; }

/* Reviews */
.w3e9d-review { background: var(--w3e9d-bg-card); border: 1px solid var(--w3e9d-border); border-left: 3px solid var(--w3e9d-primary); border-radius: 0.8rem; padding: 1rem 1.2rem; margin-bottom: 0.8rem; }
.w3e9d-review-text { font-size: 1.2rem; color: var(--w3e9d-text); margin-bottom: 0.5rem; line-height: 1.55; }
.w3e9d-review-author { font-size: 1.1rem; color: var(--w3e9d-accent); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.w3e9d-stars { color: var(--w3e9d-gold); font-size: 1.15rem; letter-spacing: 0.1rem; }

/* Payment grid */
.w3e9d-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.w3e9d-pay-item { background: var(--w3e9d-bg-card); border: 1px solid var(--w3e9d-border); border-radius: 0.7rem; padding: 0.9rem 0.4rem; text-align: center; font-size: 1rem; color: var(--w3e9d-soft); font-weight: 600; }
.w3e9d-pay-item i, .w3e9d-pay-item span.material-icons { display: block; font-size: 1.9rem; color: var(--w3e9d-primary); margin-bottom: 0.3rem; }

/* Winners */
.w3e9d-winner { display: flex; align-items: center; gap: 0.8rem; background: var(--w3e9d-bg-card); border: 1px solid var(--w3e9d-border); border-radius: 0.8rem; padding: 0.8rem 1rem; margin-bottom: 0.6rem; }
.w3e9d-winner-avatar { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: linear-gradient(135deg, var(--w3e9d-primary), var(--w3e9d-accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.w3e9d-winner-info { flex: 1; min-width: 0; }
.w3e9d-winner-name { font-size: 1.2rem; color: var(--w3e9d-text); font-weight: 700; }
.w3e9d-winner-game { font-size: 1.05rem; color: var(--w3e9d-text-muted); }
.w3e9d-winner-amount { font-size: 1.25rem; color: var(--w3e9d-gold); font-weight: 800; white-space: nowrap; }

/* App download box */
.w3e9d-app-box { background: linear-gradient(135deg, rgba(34, 139, 34, 0.18), rgba(238, 130, 238, 0.18)); border: 1px solid var(--w3e9d-border); border-radius: var(--w3e9d-radius); padding: 1.4rem; margin: 1rem 0; display: flex; flex-direction: column; gap: 1rem; }
.w3e9d-app-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* SEO prose */
.w3e9d-prose { font-size: 1.3rem; color: var(--w3e9d-text-muted); line-height: 1.7; }
.w3e9d-prose h2 { font-size: 1.7rem; color: var(--w3e9d-text); margin: 1.5rem 0 0.6rem; font-weight: 800; }
.w3e9d-prose h3 { font-size: 1.45rem; color: var(--w3e9d-soft); margin: 1rem 0 0.4rem; font-weight: 700; }
.w3e9d-prose p { margin-bottom: 0.8rem; }
.w3e9d-prose a { color: var(--w3e9d-accent); font-weight: 600; text-decoration: underline; }
.w3e9d-prose a:hover { color: var(--w3e9d-soft); }
.w3e9d-prose strong { color: var(--w3e9d-text); }

/* Footer */
.w3e9d-footer { background: #050505; border-top: 1px solid var(--w3e9d-border); padding: 2rem 1.2rem 2.5rem; margin-top: 2rem; }
.w3e9d-footer-inner { max-width: 430px; margin: 0 auto; }
.w3e9d-footer-brand { font-size: 1.25rem; color: var(--w3e9d-text-muted); line-height: 1.6; margin-bottom: 1.2rem; }
.w3e9d-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.w3e9d-footer-promos .w3e9d-btn { font-size: 1.15rem; padding: 0.7rem 1rem; min-height: 3.6rem; }
.w3e9d-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 0.8rem; margin-bottom: 1.2rem; }
.w3e9d-footer-links a { font-size: 1.15rem; color: var(--w3e9d-soft); padding: 0.3rem 0; }
.w3e9d-footer-links a:hover { color: var(--w3e9d-accent); }
.w3e9d-footer-copy { font-size: 1.1rem; color: var(--w3e9d-text-muted); text-align: center; padding-top: 1rem; border-top: 1px solid var(--w3e9d-border); }

/* Mobile bottom navigation */
.w3e9d-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--w3e9d-border);
  height: 6rem;
  display: flex; justify-content: space-around; align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.w3e9d-bottom-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none;
  color: var(--w3e9d-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  cursor: pointer; font-size: 1rem; font-weight: 600; font-family: inherit;
  transition: color 0.2s, transform 0.2s;
}
.w3e9d-bottom-btn i, .w3e9d-bottom-btn span.material-icons { font-size: 2.2rem; }
.w3e9d-bottom-btn ion-icon { font-size: 2.3rem; }
.w3e9d-bottom-btn:hover, .w3e9d-bottom-btn:focus { color: var(--w3e9d-text); }
.w3e9d-bottom-btn:active { transform: scale(0.92); }
.w3e9d-bottom-btn.w3e9d-active { color: var(--w3e9d-accent); }
.w3e9d-bottom-btn-promo { color: var(--w3e9d-primary); }
.w3e9d-bottom-btn-promo:hover { color: var(--w3e9d-primary-hover); }

/* Desktop / responsive rules */
@media (min-width: 769px) {
  .w3e9d-bottom-nav { display: none; }
  .w3e9d-menu-btn { display: none; }
  .w3e9d-container, .w3e9d-header-inner, .w3e9d-footer-inner { max-width: 720px; }
}
@media (max-width: 768px) {
  .w3e9d-desktop-only { display: none; }
}
