/* ============================================================
   cwin bet - theme-9e83.css
   All custom classes use "w9e83-" prefix.
   Mobile-first HTML5 casino website (max-width 430px shell).
   Palette: #F0FDFF | #A0522D | #C71585 | #FFB6C1 | #0C0C0C
   ============================================================ */

:root {
  --w9e83-bg: #0C0C0C;
  --w9e83-bg-soft: #15100F;
  --w9e83-surface: #1d1413;
  --w9e83-text: #F0FDFF;
  --w9e83-muted: #c8b9bd;
  --w9e83-primary: #C71585;
  --w9e83-primary-2: #FFB6C1;
  --w9e83-secondary: #A0522D;
  --w9e83-gold: #E8B860;
  --w9e83-line: rgba(240, 253, 255, 0.10);
  --w9e83-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --w9e83-radius: 14px;
  --w9e83-maxw: 430px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", system-ui, sans-serif;
  background: var(--w9e83-bg);
  color: var(--w9e83-text);
  font-size: 1.5rem;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--w9e83-primary-2); text-decoration: none; }
a:hover, a:focus { color: var(--w9e83-gold); text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- Shell wrapper ---------- */
.w9e83-shell {
  max-width: var(--w9e83-maxw);
  margin: 0 auto;
  background: linear-gradient(180deg, #120a0c 0%, var(--w9e83-bg) 60%);
  min-height: 100vh;
  position: relative;
  box-shadow: var(--w9e83-shadow);
}

/* ---------- Header ---------- */
.w9e83-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(120deg, #1a0d12 0%, #2a0d1f 60%, #1a0d12 100%);
  border-bottom: 1px solid var(--w9e83-line);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.w9e83-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.w9e83-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, var(--w9e83-primary-2), var(--w9e83-primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 0 12px rgba(199, 21, 133, 0.55);
}
.w9e83-brand-text {
  display: flex; flex-direction: column; line-height: 1.15;
}
.w9e83-brand-text strong {
  font-size: 1.5rem; letter-spacing: 0.3px; color: var(--w9e83-text);
}
.w9e83-brand-text small { font-size: 1.05rem; color: var(--w9e83-primary-2); }

.w9e83-header-actions {
  display: flex; align-items: center; gap: 6px;
}
.w9e83-menu-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--w9e83-line);
  color: var(--w9e83-text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.w9e83-menu-btn .material-icons { font-size: 24px; }

.w9e83-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-decoration: none;
}
.w9e83-btn:hover { transform: translateY(-1px); text-decoration: none; }
.w9e83-btn-login {
  background: transparent;
  color: var(--w9e83-text);
  border: 1px solid var(--w9e83-primary-2);
}
.w9e83-btn-register {
  background: linear-gradient(90deg, var(--w9e83-primary) 0%, #ff5fa2 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(199, 21, 133, 0.45);
}

/* ---------- Mobile slide-down menu ---------- */
.w9e83-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none;
  z-index: 9998;
  transition: opacity .25s ease;
}
.w9e83-backdrop-show { opacity: 1; pointer-events: auto; }

.w9e83-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: var(--w9e83-maxw);
  margin: 0 auto;
  background: #160a0f;
  border-bottom: 1px solid var(--w9e83-line);
  transform: translateY(-110%);
  transition: transform .28s ease;
  z-index: 9999;
  padding: 12px 14px 18px;
  border-radius: 0 0 18px 18px;
  box-shadow: var(--w9e83-shadow);
}
.w9e83-menu-open { transform: translateY(0); }
.w9e83-mobile-menu h4 {
  margin: 14px 4px 6px;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--w9e83-primary-2);
}
.w9e83-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.w9e83-menu-link {
  display: flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--w9e83-line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--w9e83-text);
  font-size: 1.3rem;
  font-weight: 600;
}
.w9e83-menu-link:hover { background: rgba(199,21,133,0.18); text-decoration: none; }
.w9e83-menu-link .material-icons { font-size: 20px; color: var(--w9e83-primary-2); }

/* ---------- Main ---------- */
main.w9e83-main {
  padding: 12px 12px 88px; /* bottom clearance for fixed nav */
}

/* ---------- Carousel ---------- */
.w9e83-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--w9e83-shadow);
}
.w9e83-carousel-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.w9e83-carousel-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.w9e83-slide-caption {
  position: absolute;
  left: 12px; bottom: 12px;
  background: linear-gradient(90deg, rgba(199,21,133,0.92), rgba(160,82,45,0.78));
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  max-width: 78%;
}
.w9e83-carousel-dots {
  position: absolute;
  right: 10px; bottom: 12px;
  display: flex; gap: 5px;
}
.w9e83-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  border: 0; padding: 0;
}
.w9e83-dot-active { background: var(--w9e83-primary-2); width: 20px; border-radius: 4px; }

/* ---------- Section / headings ---------- */
.w9e83-section {
  margin: 18px 0 6px;
}
.w9e83-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.6rem;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--w9e83-primary);
  color: var(--w9e83-text);
}
.w9e83-section-title .w9e83-tag {
  background: var(--w9e83-primary);
  color: #fff;
  font-size: 1.05rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.w9e83-h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 8px 0 12px;
  color: var(--w9e83-text);
}
.w9e83-h1 span { color: var(--w9e83-primary-2); }
.w9e83-lead {
  font-size: 1.45rem;
  color: var(--w9e83-muted);
  margin-bottom: 14px;
}

/* ---------- Game grid ---------- */
.w9e83-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.w9e83-game-card {
  background: var(--w9e83-surface);
  border: 1px solid var(--w9e83-line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.w9e83-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(199,21,133,0.32);
}
.w9e83-game-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  background: #0c0c0c;
  object-fit: cover;
}
.w9e83-game-name {
  font-size: 1.15rem;
  padding: 6px 8px;
  color: var(--w9e83-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 28px;
}

/* ---------- Cards / features ---------- */
.w9e83-card {
  background: var(--w9e83-surface);
  border: 1px solid var(--w9e83-line);
  border-radius: var(--w9e83-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.w9e83-card h3 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  color: var(--w9e83-primary-2);
}
.w9e83-card p { margin: 0 0 8px; color: var(--w9e83-muted); font-size: 1.35rem; }

.w9e83-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.w9e83-feature {
  background: linear-gradient(135deg, rgba(199,21,133,0.18), rgba(160,82,45,0.12));
  border: 1px solid var(--w9e83-line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.w9e83-feature .material-icons, .w9e83-feature i {
  font-size: 26px; color: var(--w9e83-gold);
}
.w9e83-feature strong { display: block; margin-top: 4px; font-size: 1.3rem; }
.w9e83-feature small { color: var(--w9e83-muted); font-size: 1.15rem; }

/* ---------- Inline affiliate links (text) ---------- */
.w9e83-aff-text {
  color: var(--w9e83-primary-2);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.w9e83-aff-text:hover { color: var(--w9e83-gold); }

/* ---------- CTA banner ---------- */
.w9e83-cta {
  background: linear-gradient(120deg, var(--w9e83-primary) 0%, #ff5fa2 60%, var(--w9e83-secondary) 120%);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  color: #fff;
  margin: 16px 0;
  box-shadow: var(--w9e83-shadow);
}
.w9e83-cta h3 { margin: 0 0 6px; font-size: 1.7rem; }
.w9e83-cta p { margin: 0 0 12px; font-size: 1.35rem; opacity: 0.95; }
.w9e83-cta .w9e83-btn {
  background: #fff; color: var(--w9e83-primary);
}

/* ---------- Steps ---------- */
.w9e83-steps { counter-reset: step; margin: 6px 0; padding: 0; list-style: none; }
.w9e83-steps li {
  position: relative;
  padding: 10px 12px 10px 44px;
  margin-bottom: 8px;
  background: var(--w9e83-surface);
  border: 1px solid var(--w9e83-line);
  border-radius: 10px;
  counter-increment: step;
  font-size: 1.35rem;
}
.w9e83-steps li::before {
  content: counter(step);
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--w9e83-primary);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* ---------- Testimonial ---------- */
.w9e83-testi {
  background: var(--w9e83-surface);
  border-left: 3px solid var(--w9e83-primary-2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.w9e83-testi p { margin: 0 0 4px; font-size: 1.3rem; }
.w9e83-testi small { color: var(--w9e83-primary-2); font-weight: 700; }

/* ---------- Payment / winners list ---------- */
.w9e83-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.w9e83-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--w9e83-line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 1.2rem;
  color: var(--w9e83-text);
}

.w9e83-winners {
  display: grid; gap: 6px;
}
.w9e83-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--w9e83-surface);
  border: 1px solid var(--w9e83-line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.25rem;
}
.w9e83-winner b { color: var(--w9e83-gold); }

/* ---------- Article text block ---------- */
.w9e83-prose p { margin: 0 0 10px; font-size: 1.38rem; color: var(--w9e83-muted); }
.w9e83-prose h3 { color: var(--w9e83-text); font-size: 1.55rem; margin: 14px 0 6px; }

/* ---------- Footer ---------- */
.w9e83-footer {
  background: #0a0608;
  border-top: 1px solid var(--w9e83-line);
  padding: 18px 14px 92px;
  margin-top: 12px;
}
.w9e83-footer h4 {
  color: var(--w9e83-primary-2);
  font-size: 1.35rem;
  margin: 12px 0 6px;
}
.w9e83-footer p { color: var(--w9e83-muted); font-size: 1.3rem; margin: 0 0 8px; }
.w9e83-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 8px 0;
}
.w9e83-footer-links a {
  color: var(--w9e83-text);
  font-size: 1.25rem;
  padding: 4px 0;
}
.w9e83-footer-aff {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 10px 0;
}
.w9e83-footer-aff .w9e83-btn {
  flex: 1 1 auto;
  min-width: 120px;
}
.w9e83-copy {
  margin-top: 10px;
  font-size: 1.15rem;
  color: var(--w9e83-muted);
  text-align: center;
}

/* ---------- Back to top ---------- */
.w9e83-top-btn {
  position: fixed;
  right: 12px;
  bottom: 86px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--w9e83-primary);
  color: #fff;
  border: 0;
  cursor: pointer;
  z-index: 1100;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: var(--w9e83-shadow);
}
.w9e83-top-show { display: flex; }

/* ---------- Mobile bottom nav ---------- */
.w9e83-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: var(--w9e83-maxw);
  margin: 0 auto;
  height: 62px;
  background: linear-gradient(180deg, #1a0d12, #0a0608);
  border-top: 1px solid var(--w9e83-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.45);
}
.w9e83-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--w9e83-muted);
  cursor: pointer;
  padding: 4px 2px;
  transition: transform .12s ease, color .18s ease;
}
.w9e83-nav-btn .material-icons,
.w9e83-nav-btn i {
  font-size: 24px;
}
.w9e83-nav-btn span.w9e83-nav-label {
  font-size: 11px;
  letter-spacing: 0.3px;
}
.w9e83-nav-btn:hover, .w9e83-nav-btn:active {
  transform: translateY(-2px) scale(1.04);
  color: var(--w9e83-primary-2);
}
.w9e83-nav-btn.w9e83-nav-active { color: var(--w9e83-primary); }
.w9e83-nav-btn.w9e83-nav-active span.w9e83-nav-label { font-weight: 800; }
.w9e83-nav-promo {
  position: relative;
}
.w9e83-nav-promo::before {
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--w9e83-primary), var(--w9e83-secondary));
  box-shadow: 0 0 14px rgba(199,21,133,0.6);
  z-index: -1;
}
.w9e83-nav-promo .material-icons,
.w9e83-nav-promo i { color: #fff; }

/* ---------- Desktop: hide bottom nav ---------- */
@media (min-width: 769px) {
  .w9e83-bottom-nav { display: none; }
  .w9e83-top-btn { bottom: 24px; }
}
