/*!
 * Sunwim (sunwim.click) core stylesheet
 * All custom classes use the s424- prefix for namespace isolation.
 * Palette: #DEE2E6 (light text) | #DDA0DD (plum) | #6A5ACD (slate blue)
 *          #273746 (deep background) | #CC99FF (lavender accent)
 * Code comments in English only.
 */

:root {
  --s424-primary: #6A5ACD;
  --s424-secondary: #DDA0DD;
  --s424-accent: #CC99FF;
  --s424-bg: #273746;
  --s424-bg-deep: #1c2833;
  --s424-text: #DEE2E6;
  --s424-text-muted: rgba(222, 226, 230, 0.72);
  --s424-card: rgba(255, 255, 255, 0.06);
  --s424-border: rgba(204, 153, 255, 0.22);
  --s424-gold: #f3d27a;
  --s424-radius: 14px;
  --s424-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --s424-header-h: 5.6rem;
  --s424-nav-h: 6.4rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Segoe UI', 'Roboto', 'Noto Sans', system-ui, sans-serif;
  background: radial-gradient(circle at top, #2c4255 0%, var(--s424-bg) 45%, var(--s424-bg-deep) 100%);
  color: var(--s424-text);
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--s424-accent); text-decoration: none; }

.s424-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.4rem; position: relative; }

/* ===== Header ===== */
.s424-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, rgba(39, 55, 70, 0.96), rgba(106, 90, 205, 0.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s424-border);
  box-shadow: var(--s424-shadow);
}
.s424-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0.6rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
}
.s424-logo {
  display: flex; align-items: center; gap: 0.6rem; color: var(--s424-text);
  font-weight: 700; font-size: 1.5rem; letter-spacing: 0.04em;
}
.s424-logo img { width: 2.8rem; height: 2.8rem; border-radius: 8px; }
.s424-logo span { background: linear-gradient(90deg, var(--s424-accent), var(--s424-secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s424-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s424-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 3.4rem; padding: 0 1.1rem; border: none; border-radius: 10px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
}
.s424-btn:active { transform: scale(0.96); }
.s424-btn-login { background: rgba(222, 226, 230, 0.14); color: var(--s424-text); border: 1px solid var(--s424-border); }
.s424-btn-register { background: linear-gradient(135deg, var(--s424-primary), var(--s424-accent)); color: #fff; box-shadow: 0 4px 14px rgba(204, 153, 255, 0.4); }
.s424-icon-btn {
  width: 3.4rem; height: 3.4rem; border-radius: 10px; border: 1px solid var(--s424-border);
  background: rgba(255,255,255,0.06); color: var(--s424-text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.s424-icon-btn:active { transform: scale(0.94); }

/* ===== Mobile slide-down menu ===== */
.s424-mobile-menu {
  position: fixed; top: var(--s424-header-h); left: 0; right: 0; z-index: 9999;
  max-width: 430px; margin: 0 auto;
  background: rgba(28, 40, 51, 0.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--s424-border);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.s424-mobile-menu.s424-menu-open { max-height: 520px; box-shadow: var(--s424-shadow); }
.s424-menu-list { list-style: none; margin: 0; padding: 0.6rem 0; }
.s424-menu-list li { border-bottom: 1px solid rgba(204, 153, 255, 0.1); }
.s424-menu-list a {
  display: flex; align-items: center; gap: 0.8rem; padding: 1.1rem 1.6rem;
  color: var(--s424-text); font-size: 1.3rem; font-weight: 600;
}
.s424-menu-list a:active { background: rgba(106, 90, 205, 0.18); }
.s424-menu-list .material-icons-outlined, .s424-menu-list .bi, .s424-menu-list .fas { font-size: 1.8rem; color: var(--s424-accent); }

/* ===== Main / Hero ===== */
.s424-main { padding-top: calc(var(--s424-header-h) + 1rem); }
.s424-carousel { position: relative; width: 100%; border-radius: var(--s424-radius); overflow: hidden; box-shadow: var(--s424-shadow); }
.s424-slide {
  position: relative; display: none; width: 100%; aspect-ratio: 16 / 9; cursor: pointer;
}
.s424-slide-active { display: block; }
.s424-slide img { width: 100%; height: 100%; object-fit: cover; }
.s424-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem 1.2rem;
  background: linear-gradient(to top, rgba(28,40,51,0.92), transparent);
  font-size: 1.3rem; font-weight: 700; color: var(--s424-text);
}
.s424-dots { position: absolute; bottom: 0.6rem; right: 1rem; display: flex; gap: 0.4rem; }
.s424-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(222,226,230,0.5); cursor: pointer; }
.s424-dot-active { background: var(--s424-accent); transform: scale(1.25); }

/* ===== Section base ===== */
.s424-section { margin: 2.2rem 0; }
.s424-section-title {
  font-size: 1.7rem; font-weight: 800; margin: 0 0 1rem;
  display: flex; align-items: center; gap: 0.6rem; color: var(--s424-text);
}
.s424-section-title::before { content: ''; width: 0.35rem; height: 1.6rem; border-radius: 4px; background: linear-gradient(var(--s424-primary), var(--s424-accent)); }
.s424-lead { color: var(--s424-text-muted); font-size: 1.3rem; line-height: 1.7rem; margin: 0 0 1rem; }
.s424-h1 {
  font-size: 2rem; font-weight: 900; line-height: 2.4rem; margin: 0 0 1rem;
  background: linear-gradient(120deg, #fff, var(--s424-accent) 60%, var(--s424-secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.s424-h2 { font-size: 1.6rem; font-weight: 800; margin: 1.4rem 0 0.8rem; color: var(--s424-text); }
.s424-h3 { font-size: 1.4rem; font-weight: 700; margin: 1rem 0 0.5rem; color: var(--s424-secondary); }
.s424-p { font-size: 1.3rem; line-height: 1.7rem; color: var(--s424-text-muted); margin: 0 0 0.8rem; }

/* Promo text link */
.s424-promo-link {
  color: var(--s424-gold); font-weight: 800; cursor: pointer;
  border-bottom: 2px solid rgba(243, 210, 122, 0.4);
}
.s424-promo-link:active { opacity: 0.8; }

/* CTA banner */
.s424-cta {
  margin: 1.6rem 0; padding: 1.4rem; border-radius: var(--s424-radius);
  background: linear-gradient(135deg, rgba(106,90,205,0.35), rgba(204,153,255,0.25));
  border: 1px solid var(--s424-border); text-align: center;
}
.s424-cta .s424-btn { min-width: 60%; margin-top: 0.6rem; }

/* ===== Game groups ===== */
.s424-game-group { margin: 1.4rem 0; }
.s424-group-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 1.3rem; font-weight: 800; color: var(--s424-text);
  padding: 0.3rem 0.9rem; border-radius: 999px;
  background: linear-gradient(135deg, rgba(106,90,205,0.5), rgba(204,153,255,0.4));
  border: 1px solid var(--s424-border); margin-bottom: 0.8rem;
}
.s424-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.s424-game-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.3rem; border-radius: 10px; background: var(--s424-card);
  border: 1px solid var(--s424-border); cursor: pointer; transition: transform .15s ease, border-color .2s ease;
  text-align: center;
}
.s424-game-card:active { transform: scale(0.94); border-color: var(--s424-accent); }
.s424-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
.s424-game-name { font-size: 1rem; font-weight: 600; color: var(--s424-text); line-height: 1.2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Quick filter chips */
.s424-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.4rem 0 1rem; scrollbar-width: none; }
.s424-chips::-webkit-scrollbar { display: none; }
.s424-chip {
  flex: 0 0 auto; padding: 0.5rem 1rem; border-radius: 999px; font-size: 1.2rem; font-weight: 700;
  background: rgba(255,255,255,0.08); color: var(--s424-text); border: 1px solid var(--s424-border); cursor: pointer;
}
.s424-chip:active { background: linear-gradient(135deg, var(--s424-primary), var(--s424-accent)); }

/* ===== Features / cards ===== */
.s424-card {
  background: var(--s424-card); border: 1px solid var(--s424-border);
  border-radius: var(--s424-radius); padding: 1.2rem; margin: 0.8rem 0; box-shadow: var(--s424-shadow);
}
.s424-feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.s424-feature-item {
  background: rgba(255,255,255,0.05); border: 1px solid var(--s424-border);
  border-radius: 12px; padding: 1rem; text-align: center;
}
.s424-feature-item .material-icons-round, .s424-feature-item .ionicon, .s424-feature-item .fas { font-size: 2.2rem; color: var(--s424-accent); }
.s424-feature-item h4 { margin: 0.4rem 0 0.2rem; font-size: 1.25rem; color: var(--s424-text); }
.s424-feature-item p { margin: 0; font-size: 1.1rem; color: var(--s424-text-muted); line-height: 1.4rem; }

/* RTP compact table */
.s424-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.s424-rtp-table th, .s424-rtp-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--s424-border); text-align: left; }
.s424-rtp-table th { color: var(--s424-secondary); font-weight: 700; }
.s424-rtp-table td.s424-rtp-val { color: var(--s424-gold); font-weight: 800; text-align: right; }

/* Winners / testimonials */
.s424-winner-list, .s424-testi-list { display: flex; flex-direction: column; gap: 0.6rem; }
.s424-winner-row, .s424-testi-row {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.8rem;
  background: rgba(255,255,255,0.05); border: 1px solid var(--s424-border); border-radius: 10px;
}
.s424-winner-row .s424-amount { margin-left: auto; color: var(--s424-gold); font-weight: 800; font-size: 1.3rem; }
.s424-winner-row .s424-user, .s424-testi-row .s424-user { font-size: 1.15rem; color: var(--s424-text); font-weight: 700; }
.s424-winner-row .s424-game, .s424-testi-row .s424-role { font-size: 1.05rem; color: var(--s424-text-muted); }
.s424-avatar { width: 3rem; height: 3rem; border-radius: 50%; background: linear-gradient(135deg, var(--s424-primary), var(--s424-secondary)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.2rem; }

/* Payment chips */
.s424-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.s424-pay {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.9rem;
  background: rgba(255,255,255,0.06); border: 1px solid var(--s424-border); border-radius: 999px;
  font-size: 1.15rem; color: var(--s424-text);
}
.s424-pay .fab, .s424-pay .bi, .s424-pay .material-icons { font-size: 1.4rem; color: var(--s424-accent); }

/* App download CTA */
.s424-app-cta {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border-radius: var(--s424-radius);
  background: linear-gradient(135deg, rgba(221,160,221,0.3), rgba(106,90,205,0.3));
  border: 1px solid var(--s424-border);
}
.s424-app-cta img { width: 7rem; height: 7rem; border-radius: 12px; object-fit: cover; }
.s424-app-cta .s424-btn { margin-top: 0.4rem; }

/* FAQ */
.s424-faq-item { background: rgba(255,255,255,0.05); border: 1px solid var(--s424-border); border-radius: 10px; margin: 0.5rem 0; overflow: hidden; }
.s424-faq-q { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; cursor: pointer; font-size: 1.25rem; font-weight: 700; color: var(--s424-text); }
.s424-faq-icon { transition: transform .25s ease; color: var(--s424-accent); font-size: 1.4rem; }
.s424-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 1.1rem; color: var(--s424-text-muted); font-size: 1.15rem; line-height: 1.6rem; }
.s424-faq-open .s424-faq-a { max-height: 240px; padding: 0 1.1rem 1rem; }

/* Footer */
.s424-footer { margin-top: 2.4rem; padding: 1.8rem 1.4rem calc(var(--s424-nav-h) + 1.4rem); background: rgba(28,40,51,0.7); border-top: 1px solid var(--s424-border); }
.s424-footer .s424-container { padding: 0; }
.s424-footer p { color: var(--s424-text-muted); font-size: 1.15rem; line-height: 1.6rem; margin: 0 0 1rem; }
.s424-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.8rem 0; }
.s424-footer-links a { color: var(--s424-text); font-size: 1.15rem; font-weight: 600; }
.s424-footer-links a:active { color: var(--s424-accent); }
.s424-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 1rem; }
.s424-footer-promo .s424-btn { min-height: 3rem; padding: 0 0.9rem; font-size: 1.15rem; }
.s424-copy { font-size: 1.05rem; color: var(--s424-text-muted); margin-top: 0.8rem; }

/* ===== Mobile bottom nav ===== */
.s424-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto; height: var(--s424-nav-h);
  display: flex; justify-content: space-around; align-items: stretch;
  background: linear-gradient(180deg, rgba(39,55,70,0.96), rgba(28,40,51,0.99));
  border-top: 1px solid var(--s424-border); box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.s424-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px; border: none; background: transparent;
  color: var(--s424-text-muted); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; transition: color .2s ease, transform .15s ease;
}
.s424-bottom-nav-btn .fas, .s424-bottom-nav-btn .far, .s424-bottom-nav-btn .material-icons, .s424-bottom-nav-btn .material-icons-round, .s424-bottom-nav-btn .bi, .s424-bottom-nav-btn .ionicon { font-size: 2.2rem; }
.s424-bottom-nav-btn .s424-nav-label { font-size: 1.05rem; font-weight: 700; }
.s424-bottom-nav-btn:active { transform: scale(0.92); }
.s424-bottom-nav-btn.s424-nav-active { color: var(--s424-accent); }
.s424-bottom-nav-btn.s424-nav-active::before { content: ''; position: absolute; top: 0; width: 2.2rem; height: 3px; border-radius: 0 0 4px 4px; background: var(--s424-accent); }
.s424-nav-badge { position: absolute; top: 0.4rem; right: 1.2rem; min-width: 1.4rem; height: 1.4rem; padding: 0 0.3rem; border-radius: 999px; background: #ff5a5f; color: #fff; font-size: 0.9rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Desktop: hide bottom nav + menu button */
@media (min-width: 769px) {
  .s424-bottom-nav { display: none; }
  #s424MenuBtn { display: none; }
  .s424-mobile-menu { display: none; }
  .s424-footer { padding-bottom: 1.8rem; }
  .s424-container { max-width: 760px; }
  .s424-game-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Mobile: ensure content clears bottom nav */
@media (max-width: 768px) {
  .s424-main { padding-bottom: calc(var(--s424-nav-h) + 1.2rem); }
}

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