/* ============================================================
 * luckyplay login - theme.css
 * Palette: #2E4057 | #E5E5E5 | #80CBC4 | #B2DFDB | #00FFFF
 * All custom classes use the "wb1d0-" prefix.
 * ============================================================ */

:root {
  --wb1d0-bg: #2E4057;
  --wb1d0-bg-dark: #1d2b3a;
  --wb1d0-bg-soft: #3a5168;
  --wb1d0-text: #E5E5E5;
  --wb1d0-muted: #9bb0c4;
  --wb1d0-primary: #80CBC4;
  --wb1d0-secondary: #B2DFDB;
  --wb1d0-accent: #00FFFF;
  --wb1d0-gold: #ffd76b;
  --wb1d0-radius: 14px;
  --wb1d0-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --wb1d0-header-h: 58px;
  --wb1d0-bottomnav-h: 62px;
  font-size: 62.5%;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--wb1d0-bg);
  color: var(--wb1d0-text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--wb1d0-accent); text-decoration: none; }
a:hover { color: var(--wb1d0-secondary); }

.wb1d0-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }

/* ---------- Header ---------- */
.wb1d0-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--wb1d0-header-h);
  background: linear-gradient(90deg, var(--wb1d0-bg-dark), var(--wb1d0-bg-soft));
  border-bottom: 2px solid var(--wb1d0-primary);
  z-index: 1000;
  box-shadow: var(--wb1d0-shadow);
}
.wb1d0-header-inner {
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.wb1d0-brand { display: flex; align-items: center; gap: 8px; }
.wb1d0-brand img { width: 28px; height: 28px; border-radius: 6px; }
.wb1d0-brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--wb1d0-text);
  letter-spacing: .3px;
}
.wb1d0-brand-name span { color: var(--wb1d0-accent); }

.wb1d0-header-actions { display: flex; align-items: center; gap: 8px; }
.wb1d0-menu-toggle {
  background: transparent;
  border: 0;
  color: var(--wb1d0-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px 6px;
}

/* ---------- Buttons ---------- */
.wb1d0-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.wb1d0-btn:hover { transform: translateY(-1px); }
.wb1d0-btn-primary { background: linear-gradient(90deg, var(--wb1d0-primary), var(--wb1d0-accent)); color: #062430; box-shadow: 0 4px 12px rgba(0, 255, 255, .25); }
.wb1d0-btn-secondary { background: linear-gradient(90deg, var(--wb1d0-gold), #ff9f43); color: #2b1a00; }
.wb1d0-btn-ghost { background: transparent; color: var(--wb1d0-text); border: 1.5px solid var(--wb1d0-primary); }
.wb1d0-btn-block { width: 100%; }

/* ---------- Mobile menu ---------- */
.wb1d0-mobile-menu {
  position: fixed;
  top: 0; right: -86%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--wb1d0-bg-dark);
  padding: 80px 18px 30px;
  z-index: 9999;
  transition: right .28s ease;
  overflow-y: auto;
  border-left: 2px solid var(--wb1d0-primary);
}
.wb1d0-mobile-menu.wb1d0-menu-open { right: 0; }
.wb1d0-mobile-menu a {
  display: block;
  padding: 12px 10px;
  color: var(--wb1d0-text);
  border-bottom: 1px solid rgba(128, 203, 196, .2);
  font-size: 1.5rem;
  font-weight: 600;
}
.wb1d0-mobile-menu a:hover { color: var(--wb1d0-accent); }
.wb1d0-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.wb1d0-menu-overlay.wb1d0-overlay-active { opacity: 1; pointer-events: auto; }

/* ---------- Main layout ---------- */
.wb1d0-main { padding-top: calc(var(--wb1d0-header-h) + 10px); padding-bottom: 20px; }

/* ---------- Carousel ---------- */
.wb1d0-carousel {
  position: relative;
  border-radius: var(--wb1d0-radius);
  overflow: hidden;
  margin: 12px 0 18px;
  box-shadow: var(--wb1d0-shadow);
}
.wb1d0-slide {
  display: none;
  cursor: pointer;
  position: relative;
}
.wb1d0-slide img { width: 100%; height: 180px; object-fit: cover; }
.wb1d0-slide-active { display: block; }
.wb1d0-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 22px 14px 12px;
  font-size: 1.4rem; font-weight: 700; color: #fff;
}
.wb1d0-dots { display: flex; gap: 6px; justify-content: center; padding: 6px 0 10px; }
.wb1d0-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; }
.wb1d0-dot-active { background: var(--wb1d0-accent); }

/* ---------- Headings ---------- */
.wb1d0-section { margin: 22px 0; }
.wb1d0-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--wb1d0-text);
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--wb1d0-accent);
}
.wb1d0-section-title em { color: var(--wb1d0-primary); font-style: normal; }
.wb1d0-h1 {
  font-size: 2.4rem;
  font-weight: 900;
  margin: 6px 0 14px;
  line-height: 1.4rem;
  color: #fff;
}
.wb1d0-lead { color: var(--wb1d0-muted); font-size: 1.45rem; }

/* ---------- Game grid ---------- */
.wb1d0-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wb1d0-game-tile {
  background: var(--wb1d0-bg-soft);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
}
.wb1d0-game-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,255,255,.18); }
.wb1d0-game-tile img { width: 100%; height: 78px; object-fit: cover; border-radius: 8px; }
.wb1d0-game-name {
  margin-top: 6px;
  font-size: 1.15rem;
  color: var(--wb1d0-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards ---------- */
.wb1d0-card {
  background: var(--wb1d0-bg-soft);
  border-radius: var(--wb1d0-radius);
  padding: 16px;
  margin: 10px 0;
  box-shadow: var(--wb1d0-shadow);
}
.wb1d0-card h3 { margin: 0 0 8px; font-size: 1.6rem; color: var(--wb1d0-primary); }
.wb1d0-card p { margin: 6px 0; color: var(--wb1d0-text); font-size: 1.35rem; line-height: 1.6rem; }

.wb1d0-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wb1d0-mini-card {
  background: var(--wb1d0-bg-soft);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.wb1d0-mini-card .wb1d0-icon { font-size: 2.2rem; color: var(--wb1d0-accent); }
.wb1d0-mini-card strong { display: block; color: #fff; font-size: 1.3rem; margin-top: 4px; }
.wb1d0-mini-card span { color: var(--wb1d0-muted); font-size: 1.15rem; }

/* ---------- Info list / steps ---------- */
.wb1d0-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.wb1d0-steps li {
  position: relative;
  padding: 10px 10px 10px 42px;
  margin-bottom: 8px;
  background: var(--wb1d0-bg-soft);
  border-radius: 10px;
  font-size: 1.35rem;
  counter-increment: step;
}
.wb1d0-steps li::before {
  content: counter(step);
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px;
  background: var(--wb1d0-primary);
  color: #062430;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Promo banner ---------- */
.wb1d0-promo {
  background: linear-gradient(135deg, var(--wb1d0-primary), var(--wb1d0-secondary));
  border-radius: var(--wb1d0-radius);
  padding: 16px;
  color: #062430;
  margin: 14px 0;
  text-align: center;
}
.wb1d0-promo h3 { margin: 0 0 6px; font-size: 1.8rem; }
.wb1d0-promo p { margin: 0 0 10px; font-size: 1.3rem; }

/* ---------- Footer ---------- */
.wb1d0-footer {
  background: var(--wb1d0-bg-dark);
  border-top: 2px solid var(--wb1d0-primary);
  padding: 22px 14px 30px;
  margin-top: 24px;
}
.wb1d0-footer-inner { max-width: 430px; margin: 0 auto; }
.wb1d0-footer-brand { color: var(--wb1d0-text); font-size: 1.35rem; line-height: 1.6rem; margin-bottom: 12px; }
.wb1d0-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.wb1d0-footer-links a {
  flex: 1 1 44%;
  background: var(--wb1d0-bg-soft);
  color: var(--wb1d0-text);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 1.2rem;
  text-align: center;
}
.wb1d0-footer-links a:hover { color: var(--wb1d0-accent); }
.wb1d0-footer-copy { color: var(--wb1d0-muted); font-size: 1.15rem; text-align: center; }

/* ---------- Bottom nav ---------- */
.wb1d0-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--wb1d0-bottomnav-h);
  background: linear-gradient(180deg, var(--wb1d0-bg-soft), var(--wb1d0-bg-dark));
  border-top: 2px solid var(--wb1d0-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.wb1d0-navbtn {
  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(--wb1d0-text);
  cursor: pointer;
  transition: transform .15s ease, color .15s ease;
}
.wb1d0-navbtn i, .wb1d0-navbtn span.material-icons-outlined, .wb1d0-navbtn ion-icon { font-size: 22px; }
.wb1d0-navbtn .wb1d0-nav-label { font-size: 1.05rem; color: var(--wb1d0-muted); }
.wb1d0-navbtn:hover { transform: scale(1.08); color: var(--wb1d0-accent); }
.wb1d0-navbtn-active { color: var(--wb1d0-accent); }
.wb1d0-navbtn-active .wb1d0-nav-label { color: var(--wb1d0-accent); }
.wb1d0-navbtn-promo { color: var(--wb1d0-gold); }

/* ---------- Utilities ---------- */
.wb1d0-text-link { color: var(--wb1d0-accent); font-weight: 700; }
.wb1d0-text-link:hover { text-decoration: underline; }
.wb1d0-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wb1d0-divider { height: 1px; background: rgba(128,203,196,.25); margin: 14px 0; }

/* ---------- Mobile bottom padding so content isn't covered ---------- */
@media (max-width: 768px) {
  .wb1d0-main { padding-bottom: calc(var(--wb1d0-bottomnav-h) + 20px); }
}

/* ---------- Hide bottom nav on desktop ---------- */
@media (min-width: 769px) {
  .wb1d0-bottomnav { display: none; }
  .wb1d0-menu-toggle { display: none; }
  .wb1d0-container { max-width: 720px; }
}

/* ---------- Tight phones (430px and below) ---------- */
@media (max-width: 430px) {
  :root { font-size: 58%; }
  .wb1d0-h1 { font-size: 2.1rem; }
  .wb1d0-section-title { font-size: 1.7rem; }
  .wb1d0-game-tile img { height: 70px; }
  .wb1d0-brand-name { font-size: 1.5rem; }
}
