/* ============================================================
   Lucky Calico - layout.css
   All custom classes use the w859d- prefix for isolation
   Color palette: #20B2AA | #262626 | #FF4500 | #FFCCCB | #E65100
   Dark = background, light = text
   ============================================================ */

:root {
  --w859d-primary: #20B2AA;
  --w859d-bg: #262626;
  --w859d-text: #FFCCCB;
  --w859d-accent: #FF4500;
  --w859d-orange: #E65100;
  --w859d-dark: #1a1a1a;
  --w859d-light: #fff5f3;
  --w859d-muted: #c9c0bf;
  --w859d-border: rgba(255, 204, 203, 0.18);
  --w859d-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --w859d-radius: 14px;
  --w859d-max-w: 430px;
  --w859d-header-h: 60px;
  --w859d-nav-h: 62px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--w859d-bg);
  color: var(--w859d-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0 0 1rem 0;
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; color: var(--w859d-text); }
h3 { font-size: 1.6rem; color: var(--w859d-primary); }
p { margin: 0 0 1rem 0; }

/* ============================================================
   Layout containers
   ============================================================ */
.w859d-container {
  width: 100%;
  max-width: var(--w859d-max-w);
  margin: 0 auto;
  padding: 0 1.4rem;
}
.w859d-wrapper {
  width: 100%;
  min-height: 100vh;
  position: relative;
}
.w859d-section {
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--w859d-border);
}
.w859d-section--alt {
  background: linear-gradient(180deg, #1f1f1f 0%, #2a2222 100%);
}

/* ============================================================
   Header / top navigation
   ============================================================ */
.w859d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--w859d-header-h);
  background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 100%);
  border-bottom: 2px solid var(--w859d-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.w859d-header-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.w859d-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--w859d-text);
  font-weight: 700;
  font-size: 1.5rem;
}
.w859d-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.w859d-logo .w859d-logo-text {
  color: var(--w859d-primary);
  font-size: 1.6rem;
  letter-spacing: 0.3px;
}
.w859d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 24px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 36px;
  text-align: center;
}
.w859d-btn:active { transform: scale(0.96); }
.w859d-btn--primary {
  background: linear-gradient(90deg, var(--w859d-accent) 0%, var(--w859d-orange) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 69, 0, 0.35);
}
.w859d-btn--secondary {
  background: var(--w859d-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(32, 178, 170, 0.3);
}
.w859d-btn--ghost {
  background: transparent;
  color: var(--w859d-text);
  border: 1px solid var(--w859d-primary);
}
.w859d-btn--block {
  display: flex;
  width: 100%;
  padding: 1rem;
  font-size: 1.5rem;
}
.w859d-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.w859d-menu-toggle {
  width: 36px;
  height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--w859d-primary);
  border-radius: 8px;
  color: var(--w859d-text);
  cursor: pointer;
  font-size: 1.6rem;
}

/* Desktop nav links */
.w859d-nav {
  display: none;
  align-items: center;
  gap: 1.2rem;
}
.w859d-nav a {
  color: var(--w859d-text);
  font-size: 1.3rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}
.w859d-nav a:hover { color: var(--w859d-accent); background: rgba(255,255,255,0.05); }

/* ============================================================
   Mobile slide menu
   ============================================================ */
.w859d-mobile-menu {
  position: fixed;
  top: 0;
  right: -80%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #1a1a1a;
  z-index: 9999;
  padding: 1.8rem 1.4rem;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 2px solid var(--w859d-primary);
}
.w859d-mobile-menu.w859d-menu-open { right: 0; }
.w859d-mobile-menu h3 {
  margin-top: 1.4rem;
  color: var(--w859d-primary);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.w859d-mobile-menu a {
  display: block;
  padding: 0.7rem 0.6rem;
  color: var(--w859d-text);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.35rem;
}
.w859d-mobile-menu a:hover { color: var(--w859d-accent); }
.w859d-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.w859d-overlay.w859d-active {
  opacity: 1;
  pointer-events: auto;
}
.w859d-menu-close {
  background: transparent;
  border: 1px solid var(--w859d-primary);
  color: var(--w859d-text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.6rem;
  float: right;
  cursor: pointer;
}

/* ============================================================
   Hero / carousel
   ============================================================ */
.w859d-hero {
  margin-top: var(--w859d-header-h);
  position: relative;
  overflow: hidden;
}
.w859d-carousel {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.w859d-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.w859d-slide.w859d-active { opacity: 1; }
.w859d-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.w859d-slide .w859d-slide-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: rgba(0,0,0,0.6);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 1.3rem;
  color: #fff;
  max-width: 75%;
}
.w859d-carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 0.8rem;
  transform: translateY(-50%);
  pointer-events: none;
}
.w859d-carousel-btn {
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  pointer-events: auto;
}
.w859d-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.w859d-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
}
.w859d-dot.w859d-active { background: var(--w859d-accent); }

/* ============================================================
   Promo banner
   ============================================================ */
.w859d-promo-banner {
  background: linear-gradient(90deg, var(--w859d-orange) 0%, var(--w859d-accent) 100%);
  color: #fff;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-radius: var(--w859d-radius);
  margin: 1.4rem 0;
}
.w859d-promo-banner p {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  flex: 1;
}

/* ============================================================
   Section title
   ============================================================ */
.w859d-section-title {
  text-align: center;
  margin-bottom: 1.6rem;
}
.w859d-section-title h2 {
  color: var(--w859d-text);
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}
.w859d-section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--w859d-accent);
  transform: translateX(-50%);
  border-radius: 2px;
}
.w859d-section-title p {
  color: var(--w859d-muted);
  font-size: 1.3rem;
  margin-top: 0.6rem;
}

/* ============================================================
   Category tabs (visual only)
   ============================================================ */
.w859d-tabs {
  display: flex;
  overflow-x: auto;
  gap: 0.6rem;
  padding: 0.6rem 0 1rem 0;
  margin-bottom: 0.6rem;
  scrollbar-width: none;
}
.w859d-tabs::-webkit-scrollbar { display: none; }
.w859d-tab {
  flex: 0 0 auto;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  background: #1f1f1f;
  color: var(--w859d-text);
  border: 1px solid var(--w859d-border);
  font-size: 1.25rem;
  cursor: pointer;
  white-space: nowrap;
}
.w859d-tab.w859d-active {
  background: var(--w859d-accent);
  color: #fff;
  border-color: var(--w859d-accent);
}

/* ============================================================
   Game grid - compact icon layout
   ============================================================ */
.w859d-game-block { margin-bottom: 2rem; }
.w859d-game-block h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  color: var(--w859d-primary);
  margin-bottom: 0.8rem;
}
.w859d-game-block h3 i { color: var(--w859d-accent); }
.w859d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.w859d-card {
  background: #1f1f1f;
  border: 1px solid var(--w859d-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}
.w859d-card:hover, .w859d-card:active {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(255, 69, 0, 0.18);
  border-color: var(--w859d-accent);
}
.w859d-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.w859d-card .w859d-card-name {
  padding: 0.4rem 0.3rem;
  font-size: 1.05rem;
  color: var(--w859d-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w859d-card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   Info / content blocks
   ============================================================ */
.w859d-content-block {
  background: rgba(255,255,255,0.03);
  border-radius: var(--w859d-radius);
  padding: 1.4rem;
  border-left: 4px solid var(--w859d-primary);
  margin-bottom: 1.2rem;
}
.w859d-content-block h3 { margin-top: 0; }
.w859d-content-block ul { padding-left: 1.6rem; }
.w859d-content-block li { margin-bottom: 0.4rem; }

.w859d-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.w859d-steps li {
  position: relative;
  padding: 0.6rem 0 0.6rem 3rem;
  margin-bottom: 0.6rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}
.w859d-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--w859d-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ============================================================
   Feature list
   ============================================================ */
.w859d-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.w859d-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,0.03);
  padding: 1rem;
  border-radius: 10px;
  border-left: 3px solid var(--w859d-primary);
}
.w859d-feature i {
  color: var(--w859d-accent);
  font-size: 2rem;
  flex: 0 0 auto;
}
.w859d-feature h4 { margin: 0 0 0.3rem 0; font-size: 1.4rem; color: var(--w859d-text); }
.w859d-feature p { margin: 0; font-size: 1.25rem; color: var(--w859d-muted); }

/* ============================================================
   Promo / winners / testimonials
   ============================================================ */
.w859d-promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.w859d-promo-card {
  background: linear-gradient(135deg, #2a2222 0%, #1a1a1a 100%);
  border-radius: var(--w859d-radius);
  padding: 1.2rem;
  border: 1px solid var(--w859d-border);
  position: relative;
  overflow: hidden;
}
.w859d-promo-card h4 { color: var(--w859d-accent); font-size: 1.4rem; margin-top: 0; }
.w859d-promo-card .w859d-tag {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--w859d-accent);
  color: #fff;
  font-size: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.w859d-winners-list, .w859d-testimonials {
  display: grid;
  gap: 0.8rem;
}
.w859d-winner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255,255,255,0.03);
  padding: 0.7rem;
  border-radius: 8px;
  font-size: 1.2rem;
}
.w859d-winner .w859d-amount {
  margin-left: auto;
  color: var(--w859d-accent);
  font-weight: 700;
}
.w859d-testimonial {
  background: rgba(255,255,255,0.03);
  padding: 1rem;
  border-radius: 10px;
  border-left: 3px solid var(--w859d-primary);
}
.w859d-testimonial .w859d-stars { color: #FFD700; margin-bottom: 0.3rem; }
.w859d-testimonial p { font-size: 1.25rem; color: var(--w859d-muted); }
.w859d-testimonial .w859d-author { color: var(--w859d-text); font-weight: 600; font-size: 1.2rem; }

/* ============================================================
   Payment methods
   ============================================================ */
.w859d-payments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.w859d-payment {
  background: rgba(255,255,255,0.04);
  padding: 0.8rem;
  border-radius: 10px;
  text-align: center;
  font-size: 1.15rem;
  color: var(--w859d-text);
  border: 1px solid var(--w859d-border);
}
.w859d-payment i { font-size: 2rem; color: var(--w859d-primary); display: block; margin-bottom: 0.4rem; }

/* ============================================================
   App download CTA
   ============================================================ */
.w859d-app-cta {
  background: linear-gradient(135deg, var(--w859d-orange) 0%, var(--w859d-accent) 100%);
  border-radius: var(--w859d-radius);
  padding: 1.6rem;
  text-align: center;
  color: #fff;
  margin: 1.4rem 0;
}
.w859d-app-cta h3 { color: #fff; }
.w859d-app-cta .w859d-app-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.w859d-app-btn {
  background: #1a1a1a;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.w859d-faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--w859d-border);
  border-radius: 10px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.w859d-faq-q {
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--w859d-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
}
.w859d-faq-q .w859d-faq-icon { color: var(--w859d-accent); font-size: 1.4rem; }
.w859d-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1rem;
  color: var(--w859d-muted);
  font-size: 1.25rem;
}
.w859d-faq-item.w859d-open .w859d-faq-a {
  max-height: 500px;
  padding: 0 1rem 1rem 1rem;
}

/* ============================================================
   Footer
   ============================================================ */
.w859d-footer {
  background: #1a1a1a;
  padding: 2rem 0 100px 0;
  border-top: 2px solid var(--w859d-primary);
}
.w859d-footer .w859d-footer-intro {
  color: var(--w859d-muted);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}
.w859d-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.w859d-footer-links a {
  font-size: 1.2rem;
  color: var(--w859d-text);
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.w859d-footer-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1rem 0;
}
.w859d-footer-copy {
  text-align: center;
  color: var(--w859d-muted);
  font-size: 1.15rem;
  margin-top: 1rem;
}

/* ============================================================
   Mobile bottom navigation
   ============================================================ */
.w859d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--w859d-nav-h);
  background: linear-gradient(180deg, #1f1f1f 0%, #111 100%);
  border-top: 2px solid var(--w859d-primary);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0;
}
.w859d-bottom-nav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--w859d-text);
  font-size: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.w859d-bottom-nav-item i { font-size: 22px; }
.w859d-bottom-nav-item .material-icons { font-size: 24px; }
.w859d-bottom-nav-item:active { transform: scale(0.92); }
.w859d-bottom-nav-item.w859d-active {
  color: var(--w859d-accent);
}
.w859d-bottom-nav-item.w859d-active i { color: var(--w859d-accent); }

/* Back to top */
.w859d-back-top {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--w859d-nav-h) + 1rem);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--w859d-accent);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
}
.w859d-back-top.w859d-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   Desktop adjustments
   ============================================================ */
@media (min-width: 769px) {
  body { background: #1f1f1f; }
  .w859d-container { max-width: 960px; }
  .w859d-menu-toggle { display: none; }
  .w859d-nav { display: flex; }
  .w859d-bottom-nav { display: none; }
  .w859d-footer { padding-bottom: 2rem; }
  .w859d-carousel { height: 340px; }
  .w859d-grid { grid-template-columns: repeat(6, 1fr); }
  .w859d-card-grid-4 { grid-template-columns: repeat(8, 1fr); }
  .w859d-features { grid-template-columns: 1fr 1fr; }
  .w859d-promo-grid { grid-template-columns: 1fr 1fr; }
  .w859d-payments { grid-template-columns: repeat(6, 1fr); }
  .w859d-footer-links { grid-template-columns: repeat(4, 1fr); }
  .w859d-footer-promo { grid-template-columns: repeat(4, 1fr); }
  main { padding-bottom: 0 !important; }
}

/* Mobile bottom padding */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .w859d-hero { margin-top: var(--w859d-header-h); }
}

/* Touch target safety */
button, a.w859d-card, .w859d-faq-q, .w859d-bottom-nav-item {
  min-height: 44px;
}
