/* milyon88 design system - prefix s9ae- | palette #F0FDFF #4DB6AC #2E4057 */
:root {
  --s9ae-bg: #2E4057;
  --s9ae-bg-deep: #1f2d3d;
  --s9ae-bg-card: #354a63;
  --s9ae-primary: #4DB6AC;
  --s9ae-primary-dark: #3a9e94;
  --s9ae-text: #F0FDFF;
  --s9ae-text-muted: #b8d4d8;
  --s9ae-accent: #7ed6cc;
  --s9ae-gold: #f0c45e;
  --s9ae-danger: #ef6b6b;
  --s9ae-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  --s9ae-radius: 0.8rem;
  --s9ae-header-h: 5.6rem;
  --s9ae-bottom-h: 6rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5rem;
  background: var(--s9ae-bg);
  color: var(--s9ae-text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--s9ae-primary); text-decoration: none; }
a:hover { color: var(--s9ae-accent); }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }

.s9ae-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.s9ae-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.s9ae-main {
  padding-top: calc(var(--s9ae-header-h) + 1rem);
  padding-bottom: 2rem;
  min-height: 60vh;
}

/* Header */
.s9ae-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #243447 0%, #2E4057 100%);
  border-bottom: 1px solid rgba(77, 182, 172, 0.35);
  box-shadow: var(--s9ae-shadow);
  transition: transform 0.25s ease;
}
.s9ae-header-hide { transform: translateY(-100%); }
.s9ae-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  min-height: var(--s9ae-header-h);
  gap: 0.6rem;
}
.s9ae-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s9ae-text);
  font-weight: 700;
  font-size: 1.5rem;
  min-width: 0;
}
.s9ae-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  object-fit: cover;
}
.s9ae-logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s9ae-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.s9ae-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 4.4rem;
  min-width: 4.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 2.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.s9ae-btn:active { transform: scale(0.96); }
.s9ae-btn-primary {
  background: linear-gradient(135deg, #4DB6AC, #2f8f86);
  color: #fff;
  box-shadow: 0 2px 8px rgba(77, 182, 172, 0.45);
}
.s9ae-btn-primary:hover { background: linear-gradient(135deg, #5ec7bd, #3a9e94); color: #fff; }
.s9ae-btn-outline {
  background: transparent;
  color: var(--s9ae-primary);
  border: 1.5px solid var(--s9ae-primary);
}
.s9ae-btn-outline:hover { background: rgba(77, 182, 172, 0.15); color: var(--s9ae-accent); }
.s9ae-btn-gold {
  background: linear-gradient(135deg, #e8c36a, #c9992e);
  color: #1f2d3d;
  font-weight: 800;
}
.s9ae-btn-block { width: 100%; }
.s9ae-btn-sm { min-height: 3.6rem; padding: 0.5rem 1rem; font-size: 1.1rem; }
.s9ae-menu-toggle {
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--s9ae-text);
  font-size: 2.2rem;
  border-radius: 0.8rem;
}
.s9ae-menu-toggle:hover { background: rgba(77, 182, 172, 0.15); color: var(--s9ae-primary); }

/* Mobile side menu */
.s9ae-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.s9ae-overlay-show { opacity: 1; visibility: visible; }
.s9ae-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(82vw, 300px);
  height: 100%;
  background: linear-gradient(180deg, #243447, #1f2d3d);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  padding: 2rem 1.6rem 8rem;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
}
.s9ae-menu-open { transform: translateX(0); }
.s9ae-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(77, 182, 172, 0.25);
}
.s9ae-menu-header h3 { font-size: 1.6rem; color: var(--s9ae-primary); }
.s9ae-menu-close {
  width: 4rem; height: 4rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: var(--s9ae-text);
  border-radius: 50%;
}
.s9ae-menu-list { display: flex; flex-direction: column; gap: 0.4rem; }
.s9ae-menu-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1rem;
  min-height: 4.4rem;
  border-radius: var(--s9ae-radius);
  color: var(--s9ae-text);
  font-size: 1.3rem;
  font-weight: 600;
  transition: background 0.2s;
}
.s9ae-menu-list a:hover,
.s9ae-menu-list a:active {
  background: rgba(77, 182, 172, 0.18);
  color: var(--s9ae-primary);
}
.s9ae-menu-list i, .s9ae-menu-list .material-icons, .s9ae-menu-list .ti {
  font-size: 2rem; width: 2.4rem; text-align: center; color: var(--s9ae-primary);
}
.s9ae-menu-group {
  margin: 1.4rem 0 0.6rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--s9ae-text-muted);
  padding-left: 0.4rem;
}

/* Carousel */
.s9ae-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--s9ae-radius);
  overflow: hidden;
  margin-bottom: 1.6rem;
  box-shadow: var(--s9ae-shadow);
  aspect-ratio: 16 / 9;
  background: var(--s9ae-bg-deep);
}
.s9ae-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  cursor: pointer;
}
.s9ae-slide-active { opacity: 1; z-index: 1; }
.s9ae-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s9ae-carousel-nav {
  position: absolute;
  bottom: 1rem;
  left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}
.s9ae-dot {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: rgba(240, 253, 255, 0.4);
  transition: all 0.2s;
}
.s9ae-dot-active {
  background: var(--s9ae-primary);
  width: 1.8rem;
  border-radius: 0.4rem;
}
.s9ae-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3.6rem; height: 3.6rem;
  border-radius: 50%;
  background: rgba(46, 64, 87, 0.7);
  color: var(--s9ae-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.s9ae-carousel-arrow:hover { background: var(--s9ae-primary); }
.s9ae-carousel-prev { left: 0.8rem; }
.s9ae-carousel-next { right: 0.8rem; }

/* Sections */
.s9ae-section { margin-bottom: 2.4rem; }
.s9ae-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--s9ae-text);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s9ae-section-title i,
.s9ae-section-title .material-icons,
.s9ae-section-title .bi {
  color: var(--s9ae-primary);
  font-size: 2rem;
}
.s9ae-h1 {
  font-size: 1.9rem;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--s9ae-text);
  text-align: center;
}
.s9ae-h1 span { color: var(--s9ae-primary); }
.s9ae-lead {
  font-size: 1.35rem;
  line-height: 1.65;
  color: var(--s9ae-text-muted);
  margin-bottom: 1.4rem;
  text-align: center;
}
.s9ae-text-block {
  font-size: 1.35rem;
  line-height: 1.7;
  color: var(--s9ae-text-muted);
  margin-bottom: 1.2rem;
}
.s9ae-text-block p { margin-bottom: 1rem; }
.s9ae-text-block strong, .s9ae-promo-text {
  color: var(--s9ae-primary);
  font-weight: 700;
  cursor: pointer;
}
.s9ae-text-block a {
  color: var(--s9ae-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Game grid */
.s9ae-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.s9ae-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  min-width: 0;
}
.s9ae-game-card:active { transform: scale(0.94); }
.s9ae-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1rem;
  object-fit: cover;
  background: var(--s9ae-bg-deep);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(77, 182, 172, 0.2);
}
.s9ae-game-card:hover img {
  border-color: var(--s9ae-primary);
  box-shadow: 0 0 0 2px rgba(77, 182, 172, 0.35);
}
.s9ae-game-card span {
  margin-top: 0.4rem;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  color: var(--s9ae-text);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

/* Cards / modules */
.s9ae-card {
  background: var(--s9ae-bg-card);
  border-radius: var(--s9ae-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(77, 182, 172, 0.18);
  box-shadow: var(--s9ae-shadow);
}
.s9ae-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
  color: var(--s9ae-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.s9ae-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.s9ae-feature-item {
  background: rgba(31, 45, 61, 0.65);
  border-radius: var(--s9ae-radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid rgba(77, 182, 172, 0.15);
}
.s9ae-feature-item i,
.s9ae-feature-item .material-icons,
.s9ae-feature-item .bi {
  font-size: 2.6rem;
  color: var(--s9ae-primary);
  margin-bottom: 0.6rem;
  display: block;
}
.s9ae-feature-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--s9ae-text);
}
.s9ae-feature-item p {
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--s9ae-text-muted);
}

/* FAQ */
.s9ae-faq-item {
  border-bottom: 1px solid rgba(77, 182, 172, 0.15);
  padding: 1.1rem 0;
}
.s9ae-faq-item:last-child { border-bottom: none; }
.s9ae-faq-item h3 {
  font-size: 1.35rem;
  color: var(--s9ae-text);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.s9ae-faq-item p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--s9ae-text-muted);
}

/* RTP / stats */
.s9ae-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1.2rem 0;
}
.s9ae-stat {
  background: rgba(31, 45, 61, 0.7);
  border-radius: var(--s9ae-radius);
  padding: 1rem 0.6rem;
  text-align: center;
  border: 1px solid rgba(77, 182, 172, 0.2);
}
.s9ae-stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--s9ae-primary);
  margin-bottom: 0.3rem;
}
.s9ae-stat span {
  font-size: 1.05rem;
  color: var(--s9ae-text-muted);
}

/* Testimonials */
.s9ae-testimonial {
  background: rgba(31, 45, 61, 0.55);
  border-left: 3px solid var(--s9ae-primary);
  border-radius: 0 0.8rem 0.8rem 0;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.s9ae-testimonial p {
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--s9ae-text-muted);
  font-style: italic;
  margin-bottom: 0.6rem;
}
.s9ae-testimonial cite {
  font-size: 1.15rem;
  color: var(--s9ae-primary);
  font-style: normal;
  font-weight: 700;
}

/* Payment / winners */
.s9ae-pay-row, .s9ae-winner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.s9ae-pay-badge, .s9ae-winner-chip {
  background: rgba(77, 182, 172, 0.12);
  border: 1px solid rgba(77, 182, 172, 0.3);
  border-radius: 2rem;
  padding: 0.6rem 1.1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--s9ae-text);
}
.s9ae-winner-chip strong { color: var(--s9ae-primary); }

/* CTA blocks */
.s9ae-cta {
  background: linear-gradient(135deg, #354a63, #243447);
  border: 1px solid rgba(77, 182, 172, 0.35);
  border-radius: 1.2rem;
  padding: 2rem 1.4rem;
  text-align: center;
  margin: 1.6rem 0;
}
.s9ae-cta h2 {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
  color: var(--s9ae-text);
}
.s9ae-cta p {
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--s9ae-text-muted);
  margin-bottom: 1.4rem;
}
.s9ae-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* Footer */
.s9ae-footer {
  background: var(--s9ae-bg-deep);
  border-top: 1px solid rgba(77, 182, 172, 0.25);
  padding: 2.4rem 0 2rem;
  margin-top: 2rem;
}
.s9ae-footer-brand {
  text-align: center;
  margin-bottom: 1.6rem;
}
.s9ae-footer-brand h3 {
  font-size: 1.6rem;
  color: var(--s9ae-primary);
  margin-bottom: 0.6rem;
}
.s9ae-footer-brand p {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--s9ae-text-muted);
  max-width: 36rem;
  margin: 0 auto;
}
.s9ae-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.6rem;
}
.s9ae-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.2rem;
  margin-bottom: 1.6rem;
  padding: 0 0.4rem;
}
.s9ae-footer-links a {
  font-size: 1.2rem;
  color: var(--s9ae-text-muted);
  padding: 0.4rem 0;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
}
.s9ae-footer-links a:hover { color: var(--s9ae-primary); }
.s9ae-copyright {
  text-align: center;
  font-size: 1.15rem;
  color: var(--s9ae-text-muted);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(77, 182, 172, 0.12);
}

/* Bottom navigation - unique teal pill design */
.s9ae-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--s9ae-bottom-h);
  background: linear-gradient(0deg, #1a2736 0%, #243447 100%);
  border-top: 2px solid var(--s9ae-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 0.3rem 0.4rem calc(0.3rem + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
}
.s9ae-bottom-nav a,
.s9ae-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 60px;
  min-height: 56px;
  color: var(--s9ae-text-muted);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 1rem;
  transition: color 0.2s, transform 0.15s, background 0.2s;
  position: relative;
}
.s9ae-bottom-nav a i,
.s9ae-bottom-nav a .material-icons,
.s9ae-bottom-nav a .bi,
.s9ae-bottom-nav button i,
.s9ae-bottom-nav button .material-icons,
.s9ae-bottom-nav button .bi {
  font-size: 2.2rem;
  line-height: 1;
}
.s9ae-bottom-nav a:active,
.s9ae-bottom-nav button:active {
  transform: scale(0.9);
  color: var(--s9ae-primary);
}
.s9ae-bottom-nav .s9ae-nav-active {
  color: var(--s9ae-primary);
  background: rgba(77, 182, 172, 0.12);
}
.s9ae-bottom-nav .s9ae-nav-active::before {
  content: '';
  position: absolute;
  top: 0.2rem;
  width: 1.6rem;
  height: 0.3rem;
  border-radius: 0.2rem;
  background: var(--s9ae-primary);
}

/* Utility */
.s9ae-mt-1 { margin-top: 1rem; }
.s9ae-mt-2 { margin-top: 1.6rem; }
.s9ae-mb-1 { margin-bottom: 1rem; }
.s9ae-mb-2 { margin-bottom: 1.6rem; }
.s9ae-center { text-align: center; }
.s9ae-flex-center {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.s9ae-list-check li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--s9ae-text-muted);
}
.s9ae-list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--s9ae-primary);
  font-weight: 800;
}

/* Desktop */
@media (min-width: 769px) {
  .s9ae-bottom-nav { display: none; }
  .s9ae-main { padding-bottom: 2rem; }
  body { background: #1a2736; }
  .s9ae-wrapper, .s9ae-container, .s9ae-header-inner {
    max-width: 430px;
  }
  .s9ae-header {
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .s9ae-header-inner {
    background: linear-gradient(180deg, #243447 0%, #2E4057 100%);
    border-bottom: 1px solid rgba(77, 182, 172, 0.35);
    border-radius: 0 0 1rem 1rem;
    box-shadow: var(--s9ae-shadow);
  }
}

@media (max-width: 768px) {
  .s9ae-main { padding-bottom: 8rem; }
  .s9ae-footer { padding-bottom: 8.5rem; }
}

@media (max-width: 360px) {
  .s9ae-game-grid { grid-template-columns: repeat(3, 1fr); }
  .s9ae-btn { padding: 0.6rem 0.9rem; font-size: 1.1rem; }
  .s9ae-feature-grid { grid-template-columns: 1fr; }
}
