/*!
 * Lucky Calico - design-a2ed.css
 * Mobile-first stylesheet for lucky-calico.cyou
 * All custom classes use the "sa2e-" prefix.
 * Comments are written in English.
 */

:root {
  /* Brand palette from project brief */
  --sa2e-bg: #0D1117;          /* deep charcoal background */
  --sa2e-bg-2: #131A22;        /* surface tone */
  --sa2e-primary: #A0522D;     /* sienna brand */
  --sa2e-accent: #48D1CC;      /* turquoise accent */
  --sa2e-light: #E0FFFF;       /* light cyan text */
  --sa2e-gold: #F0E68C;        /* khaki gold */
  --sa2e-muted: #CCCCCC;       /* neutral grey */
  --sa2e-border: rgba(72, 209, 204, 0.18);
  --sa2e-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
  --sa2e-radius: 14px;
  --sa2e-radius-sm: 10px;
  --sa2e-max: 430px;
  --sa2e-header-h: 58px;
  --sa2e-bottomnav-h: 62px;
}

/* Base reset scoped to brand classes */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: radial-gradient(120% 80% at 50% 0%, #1a2330 0%, var(--sa2e-bg) 60%);
  color: var(--sa2e-light);
  font-size: 15px;
  line-height: 1.55rem;
  min-height: 100vh;
  overflow-x: hidden;
}

.sa2e-skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.sa2e-skip:focus {
  left: 8px;
  top: 8px;
  z-index: 10000;
  background: var(--sa2e-gold);
  color: #111;
  padding: 6px 10px;
  border-radius: 8px;
}

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

.sa2e-wrapper {
  width: 100%;
  max-width: var(--sa2e-max);
  margin: 0 auto;
  padding: 0 14px;
}

main { padding-bottom: 84px; }

/* ---------- Header ---------- */
.sa2e-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--sa2e-header-h);
  background: linear-gradient(180deg, #11161d 0%, #0b1017 100%);
  border-bottom: 1px solid var(--sa2e-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.sa2e-header-inner {
  width: 100%;
  max-width: var(--sa2e-max);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa2e-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.sa2e-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--sa2e-border);
}
.sa2e-brand-name {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  color: var(--sa2e-gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa2e-brand-name span { color: var(--sa2e-accent); }

.sa2e-menu-btn {
  background: transparent;
  border: 1px solid var(--sa2e-border);
  color: var(--sa2e-light);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sa2e-menu-btn:hover { background: rgba(72, 209, 204, 0.10); }

.sa2e-auth { display: flex; gap: 6px; align-items: center; }
.sa2e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.sa2e-btn:active { transform: scale(0.96); }
.sa2e-btn-primary {
  background: linear-gradient(135deg, #C56A33 0%, var(--sa2e-primary) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(160, 82, 45, 0.45);
}
.sa2e-btn-ghost {
  background: transparent;
  color: var(--sa2e-light);
  border: 1px solid var(--sa2e-accent);
}
.sa2e-btn-gold {
  background: linear-gradient(135deg, #fff2a8 0%, var(--sa2e-gold) 100%);
  color: #1a1405;
  box-shadow: 0 4px 14px rgba(240, 230, 140, 0.30);
}

/* ---------- Mobile menu ---------- */
.sa2e-mobile-menu {
  position: fixed;
  top: var(--sa2e-header-h);
  left: 0; right: 0;
  background: #0b1017;
  border-bottom: 1px solid var(--sa2e-border);
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.sa2e-mobile-menu.sa2e-is-open { max-height: 460px; }
.sa2e-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 14px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sa2e-mobile-menu a {
  display: block;
  padding: 10px 12px;
  background: #131a22;
  border: 1px solid var(--sa2e-border);
  border-radius: 10px;
  color: var(--sa2e-light);
  font-size: 0.88rem;
}
.sa2e-mobile-menu a:hover { background: rgba(72,209,204,0.08); text-decoration: none; }

/* ---------- Hero / carousel ---------- */
.sa2e-hero {
  margin-top: calc(var(--sa2e-header-h) + 8px);
  position: relative;
  border-radius: var(--sa2e-radius);
  overflow: hidden;
  box-shadow: var(--sa2e-shadow);
}
.sa2e-slides { position: relative; }
.sa2e-slide {
  display: none;
  position: relative;
}
.sa2e-slide.sa2e-is-active { display: block; }
.sa2e-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.sa2e-slide-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.78) 100%);
  padding: 18px 14px 12px;
  border-radius: 12px;
}
.sa2e-slide-caption h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: var(--sa2e-gold);
}
.sa2e-slide-caption p {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--sa2e-light);
}
.sa2e-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 8px 0;
}
.sa2e-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(204,204,204,0.35);
  border: none;
  cursor: pointer;
}
.sa2e-dot.sa2e-is-active { background: var(--sa2e-accent); }

/* ---------- Section blocks ---------- */
.sa2e-section { margin: 22px 0; }
.sa2e-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.sa2e-section-head h2 {
  margin: 0;
  font-size: 1.18rem;
  color: var(--sa2e-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa2e-section-head .sa2e-more {
  font-size: 0.8rem;
  color: var(--sa2e-accent);
}
.sa2e-tagline {
  font-size: 0.85rem;
  color: var(--sa2e-muted);
  margin: 0 0 12px;
}
.sa2e-intro {
  background: var(--sa2e-bg-2);
  border: 1px solid var(--sa2e-border);
  border-radius: var(--sa2e-radius);
  padding: 14px;
  color: var(--sa2e-muted);
  font-size: 0.92rem;
}
.sa2e-intro p { margin: 0 0 10px; }
.sa2e-intro p:last-child { margin: 0; }
.sa2e-intro strong { color: var(--sa2e-gold); }

/* ---------- Game grid ---------- */
.sa2e-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sa2e-card {
  background: var(--sa2e-bg-2);
  border: 1px solid var(--sa2e-border);
  border-radius: var(--sa2e-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  text-align: center;
}
.sa2e-card:hover { transform: translateY(-2px); border-color: var(--sa2e-accent); }
.sa2e-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0a0f15;
}
.sa2e-card-name {
  font-size: 0.74rem;
  color: var(--sa2e-light);
  padding: 6px 4px 8px;
  line-height: 1.1rem;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sa2e-card-badge {
  position: relative;
}
.sa2e-card-badge::after {
  content: "HOT";
  position: absolute;
  top: 6px; right: 6px;
  background: var(--sa2e-primary);
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- Features / cards layout ---------- */
.sa2e-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sa2e-feature {
  background: var(--sa2e-bg-2);
  border: 1px solid var(--sa2e-border);
  border-radius: var(--sa2e-radius-sm);
  padding: 12px;
  text-align: center;
}
.sa2e-feature .material-icons,
.sa2e-feature ion-icon,
.sa2e-feature i {
  font-size: 26px;
  color: var(--sa2e-accent);
}
.sa2e-feature h3 {
  margin: 6px 0 4px;
  font-size: 0.95rem;
  color: var(--sa2e-gold);
}
.sa2e-feature p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--sa2e-muted);
}

/* ---------- RTP / data ---------- */
.sa2e-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--sa2e-bg-2);
  border-radius: var(--sa2e-radius-sm);
  overflow: hidden;
  border: 1px solid var(--sa2e-border);
  font-size: 0.85rem;
}
.sa2e-rtp-table th,
.sa2e-rtp-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(72,209,204,0.10);
  text-align: left;
}
.sa2e-rtp-table th { background: rgba(72,209,204,0.10); color: var(--sa2e-gold); }
.sa2e-rtp-table td:last-child { color: var(--sa2e-accent); font-weight: 700; text-align: right; }

/* ---------- Testimonials ---------- */
.sa2e-testimonial {
  background: var(--sa2e-bg-2);
  border-left: 3px solid var(--sa2e-gold);
  border-radius: var(--sa2e-radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.sa2e-testimonial p { margin: 0 0 6px; font-size: 0.88rem; color: var(--sa2e-muted); }
.sa2e-testimonial span { font-size: 0.78rem; color: var(--sa2e-accent); font-weight: 700; }

/* ---------- Payment icons ---------- */
.sa2e-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: var(--sa2e-bg-2);
  border: 1px solid var(--sa2e-border);
  border-radius: var(--sa2e-radius-sm);
}
.sa2e-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(72,209,204,0.08);
  color: var(--sa2e-light);
  font-size: 0.78rem;
  border: 1px solid var(--sa2e-border);
}

/* ---------- Winners ---------- */
.sa2e-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--sa2e-bg-2);
  border: 1px solid var(--sa2e-border);
  border-radius: var(--sa2e-radius-sm);
  margin-bottom: 6px;
  font-size: 0.84rem;
}
.sa2e-winner strong { color: var(--sa2e-gold); }

/* ---------- FAQ ---------- */
.sa2e-faq-item {
  background: var(--sa2e-bg-2);
  border: 1px solid var(--sa2e-border);
  border-radius: var(--sa2e-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.sa2e-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--sa2e-gold);
  font-size: 0.92rem;
}
.sa2e-faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 12px;
  transition: max-height .25s ease, padding .25s ease;
  color: var(--sa2e-muted);
  font-size: 0.85rem;
}
.sa2e-faq-item.sa2e-is-open .sa2e-faq-a {
  max-height: 320px;
  padding: 0 12px 12px;
}

/* ---------- CTA band ---------- */
.sa2e-cta {
  background: linear-gradient(135deg, rgba(160,82,45,0.25) 0%, rgba(72,209,204,0.18) 100%);
  border: 1px solid var(--sa2e-border);
  border-radius: var(--sa2e-radius);
  padding: 18px 14px;
  text-align: center;
  margin: 22px 0;
}
.sa2e-cta h3 {
  margin: 0 0 8px;
  color: var(--sa2e-gold);
  font-size: 1.15rem;
}
.sa2e-cta p { margin: 0 0 14px; color: var(--sa2e-muted); font-size: 0.88rem; }
.sa2e-cta .sa2e-btn { margin: 0 auto; }

/* ---------- Footer ---------- */
.sa2e-footer {
  margin-top: 28px;
  padding: 22px 0 0;
  background: #0a0e13;
  border-top: 1px solid var(--sa2e-border);
}
.sa2e-footer-brand {
  font-size: 0.85rem;
  color: var(--sa2e-muted);
  margin-bottom: 12px;
}
.sa2e-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.sa2e-footer-links a {
  font-size: 0.8rem;
  color: var(--sa2e-light);
  padding: 4px 0;
}
.sa2e-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.sa2e-footer-promo .sa2e-btn { flex: 1 1 auto; min-height: 38px; font-size: 0.82rem; }
.sa2e-footer-copy {
  font-size: 0.74rem;
  color: #6b7280;
  text-align: center;
  padding: 12px 0;
  border-top: 1px solid rgba(204,204,204,0.08);
}

/* ---------- Bottom nav ---------- */
.sa2e-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--sa2e-bottomnav-h);
  background: linear-gradient(180deg, #11161d 0%, #080c11 100%);
  border-top: 1px solid var(--sa2e-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.sa2e-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--sa2e-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 0.66rem;
  position: relative;
  transition: color .15s ease, transform .15s ease;
}
.sa2e-bottomnav-btn .material-icons,
.sa2e-bottomnav-btn ion-icon,
.sa2e-bottomnav-btn i { font-size: 22px; }
.sa2e-bottomnav-btn:active { transform: scale(0.92); color: var(--sa2e-gold); }
.sa2e-bottomnav-btn.sa2e-is-current { color: var(--sa2e-gold); }
.sa2e-bottomnav-btn.sa2e-is-current::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  background: var(--sa2e-gold);
  border-radius: 0 0 4px 4px;
}
.sa2e-bottomnav-badge {
  position: absolute;
  top: 6px; right: 18px;
  background: var(--sa2e-primary);
  color: #fff;
  font-size: 0.55rem;
  padding: 1px 5px;
  border-radius: 999px;
}

/* ---------- Back to top ---------- */
.sa2e-top-btn {
  position: fixed;
  right: 14px;
  bottom: calc(var(--sa2e-bottomnav-h) + 14px);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--sa2e-accent);
  background: var(--sa2e-bg-2);
  color: var(--sa2e-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 999;
}
.sa2e-top-btn.sa2e-is-visible { opacity: 1; pointer-events: auto; }
.sa2e-top-btn:active { transform: scale(0.92); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { background: radial-gradient(80% 60% at 50% 0%, #1a2330 0%, var(--sa2e-bg) 70%); }
  .sa2e-wrapper { max-width: 720px; }
  .sa2e-header-inner { max-width: 720px; }
  .sa2e-grid { grid-template-columns: repeat(5, 1fr); }
  .sa2e-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .sa2e-footer-links { grid-template-columns: repeat(3, 1fr); }
  .sa2e-bottomnav { display: none; }
  main { padding-bottom: 30px; }
  .sa2e-menu-btn { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
