/* ===========================================================
   luto gameplay - style-6460.css
   All custom classes use the s646- prefix.
   Palette: #0F0F23 bg / #E0FFFF text / #BDC3C7 muted / #6C757D deep
   =========================================================== */

:root {
  --s646-bg: #0F0F23;
  --s646-bg-2: #161635;
  --s646-bg-3: #1f1f47;
  --s646-text: #E0FFFF;
  --s646-muted: #BDC3C7;
  --s646-deep: #6C757D;
  --s646-accent: #E0FFFF;
  --s646-accent-2: #ffd86b;
  --s646-accent-3: #5ad1ff;
  --s646-danger: #ff5d73;
  --s646-success: #4fd28a;
  --s646-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --s646-radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--s646-bg);
  color: var(--s646-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow-x: hidden;
}

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

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

.s646-wrapper { padding-top: 64px; padding-bottom: 20px; }

/* ---------- Header ---------- */
.s646-header {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(180deg, #0c0c1d 0%, #14142e 100%);
  border-bottom: 1px solid rgba(224, 255, 255, 0.08);
  box-shadow: var(--s646-shadow);
}
.s646-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}
.s646-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.s646-brand img { width: 30px; height: 30px; border-radius: 8px; }
.s646-brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--s646-accent);
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.s646-brand-name span { color: var(--s646-accent-2); }
.s646-header-actions { display: flex; align-items: center; gap: 6px; }
.s646-btn {
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 8px 14px;
  min-height: 36px;
  transition: transform .15s ease, filter .15s ease;
}
.s646-btn:active { transform: scale(0.95); }
.s646-btn-register {
  background: linear-gradient(135deg, #ffd86b 0%, #ff9d2f 100%);
  color: #1a1300;
}
.s646-btn-login {
  background: transparent;
  color: var(--s646-accent);
  border: 1px solid rgba(224, 255, 255, 0.35);
}
.s646-btn:hover { filter: brightness(1.08); }

#s646MenuToggle {
  background: transparent;
  border: 1px solid rgba(224, 255, 255, 0.25);
  color: var(--s646-accent);
  width: 36px; height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Mobile expandable menu ---------- */
.s646-mobile-menu {
  position: fixed;
  top: 60px; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #10102a;
  border-bottom: 1px solid rgba(224, 255, 255, 0.08);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.s646-mobile-menu.s646-menu-open { max-height: 420px; }
.s646-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 12px;
}
.s646-mobile-menu li a {
  display: block;
  padding: 10px 8px;
  color: var(--s646-text);
  border-bottom: 1px solid rgba(224, 255, 255, 0.06);
  font-size: 1.35rem;
}
.s646-mobile-menu li a:hover { color: var(--s646-accent-2); }

/* ---------- Hero / Carousel ---------- */
.s646-hero { margin: 12px 0; }
.s646-carousel {
  position: relative;
  border-radius: var(--s646-radius);
  overflow: hidden;
  box-shadow: var(--s646-shadow);
}
.s646-slide {
  display: none;
  position: relative;
}
.s646-slide.s646-slide-active { display: block; }
.s646-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.s646-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
}
.s646-slide-overlay h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
  color: var(--s646-accent);
}
.s646-slide-overlay p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--s646-muted);
}
.s646-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}
.s646-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(224, 255, 255, 0.3);
  cursor: pointer;
}
.s646-dot.s646-dot-active { background: var(--s646-accent-2); }

/* ---------- Section ---------- */
.s646-section {
  margin: 18px 0;
  padding: 14px 12px;
  background: var(--s646-bg-2);
  border-radius: var(--s646-radius);
  border: 1px solid rgba(224, 255, 255, 0.05);
}
.s646-section h2 {
  font-size: 1.7rem;
  margin: 0 0 10px;
  color: var(--s646-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.s646-section h2 i { color: var(--s646-accent-2); }
.s646-section h3 {
  font-size: 1.4rem;
  margin: 12px 0 6px;
  color: var(--s646-accent-3);
}
.s646-section p {
  margin: 6px 0;
  color: var(--s646-muted);
}
.s646-lead {
  font-size: 1.35rem;
  color: var(--s646-text);
}
.s646-h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--s646-accent);
  margin: 14px 12px 6px;
  line-height: 1.3;
}
.s646-subtitle {
  margin: 0 12px 12px;
  color: var(--s646-muted);
  font-size: 1.3rem;
}

/* ---------- Game grid ---------- */
.s646-cat-title {
  font-size: 1.5rem;
  color: var(--s646-accent-2);
  margin: 14px 12px 8px;
  border-left: 4px solid var(--s646-accent-2);
  padding-left: 8px;
}
.s646-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 12px;
}
.s646-grid.s646-grid-4 { grid-template-columns: repeat(4, 1fr); }
.s646-card {
  background: var(--s646-bg-3);
  border-radius: 12px;
  padding: 6px;
  text-align: center;
  border: 1px solid rgba(224, 255, 255, 0.06);
  transition: transform .15s ease;
  cursor: pointer;
  overflow: hidden;
}
.s646-card:active { transform: scale(0.95); }
.s646-card img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
}
.s646-card-name {
  font-size: 1.05rem;
  color: var(--s646-text);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ---------- Promo CTA ---------- */
.s646-cta {
  display: inline-block;
  background: linear-gradient(135deg, #ffd86b 0%, #ff9d2f 100%);
  color: #1a1300;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.3rem;
  cursor: pointer;
  border: 0;
  margin: 6px 0;
  transition: transform .15s ease;
}
.s646-cta:active { transform: scale(0.95); }
.s646-link-bold {
  color: var(--s646-accent-2);
  font-weight: 800;
  text-decoration: underline;
}

/* ---------- Feature list ---------- */
.s646-feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 8px 0;
}
.s646-feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--s646-bg-3);
  padding: 10px;
  border-radius: 10px;
}
.s646-feature .s646-feature-ico {
  font-size: 1.8rem;
  color: var(--s646-accent-2);
  flex-shrink: 0;
}
.s646-feature h4 { margin: 0 0 4px; font-size: 1.3rem; color: var(--s646-accent); }
.s646-feature p { margin: 0; font-size: 1.2rem; color: var(--s646-muted); }

/* ---------- RTP / data ---------- */
.s646-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.s646-rtp-item {
  background: var(--s646-bg-3);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.s646-rtp-item .s646-rtp-name { font-size: 1.15rem; color: var(--s646-muted); }
.s646-rtp-item .s646-rtp-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--s646-success);
}

/* ---------- Testimonials ---------- */
.s646-testi {
  background: var(--s646-bg-3);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
.s646-testi-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.s646-testi-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--s646-accent-2);
  color: #1a1300;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
}
.s646-testi-name { font-weight: 700; color: var(--s646-accent); font-size: 1.2rem; }
.s646-testi-stars { color: var(--s646-accent-2); font-size: 1.1rem; }
.s646-testi p { margin: 0; color: var(--s646-muted); font-size: 1.2rem; }

/* ---------- Payment ---------- */
.s646-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.s646-pay-chip {
  background: var(--s646-bg-3);
  color: var(--s646-text);
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(224, 255, 255, 0.08);
}

/* ---------- Winners ---------- */
.s646-winner {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(224, 255, 255, 0.1);
  font-size: 1.2rem;
}
.s646-winner:last-child { border-bottom: 0; }
.s646-winner .s646-winner-amount { color: var(--s646-success); font-weight: 700; }

/* ---------- Footer ---------- */
.s646-footer {
  background: #0a0a1c;
  padding: 18px 12px 100px;
  margin-top: 20px;
  border-top: 1px solid rgba(224, 255, 255, 0.08);
}
.s646-footer-brand {
  color: var(--s646-muted);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.s646-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.s646-footer-links a {
  color: var(--s646-text);
  background: var(--s646-bg-3);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 1.15rem;
}
.s646-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.s646-copyright {
  color: var(--s646-deep);
  font-size: 1.1rem;
  text-align: center;
}

/* ---------- Bottom nav (mobile only) ---------- */
.s646-bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #14142e 0%, #0a0a1c 100%);
  border-top: 1px solid rgba(224, 255, 255, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.s646-navbtn {
  background: transparent;
  border: 0;
  color: var(--s646-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  transition: color .15s ease, transform .15s ease;
}
.s646-navbtn .material-icons,
.s646-navbtn .ion-icon,
.s646-navbtn i {
  font-size: 22px;
}
.s646-navbtn:active { transform: scale(0.9); }
.s646-navbtn.s646-navbtn-active { color: var(--s646-accent-2); }
.s646-navbtn-promo { color: var(--s646-accent-3); }
.s646-nav-badge {
  position: relative;
}
.s646-nav-badge::after {
  content: "1";
  position: absolute;
  top: 6px; right: 12px;
  background: var(--s646-danger);
  color: #fff;
  font-size: 0.9rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

main { padding-bottom: 80px; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .s646-bottom-nav { display: none; }
  main { padding-bottom: 20px; }
  .s646-footer { padding-bottom: 24px; }
}

/* ---------- Helpers ---------- */
.s646-text-center { text-align: center; }
.s646-mt-8 { margin-top: 8px; }
.s646-mt-12 { margin-top: 12px; }
.s646-divider {
  height: 1px;
  background: rgba(224, 255, 255, 0.08);
  margin: 12px 0;
}
.s646-pill {
  display: inline-block;
  background: rgba(90, 209, 255, 0.15);
  color: var(--s646-accent-3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 1.1rem;
  margin: 2px;
}
