/**
 * YYPH Layout Stylesheet
 * All classes use prefix: s8ae-
 * Color palette: #CCCCCC, #DDA0DD, #2E4057, #E8F5E8, #7B68EE, #F0FDFF
 * @version 1.0.0
 */

/* === CSS Variables === */
:root {
  --s8ae-primary: #7B68EE;
  --s8ae-secondary: #DDA0DD;
  --s8ae-bg-dark: #2E4057;
  --s8ae-bg-light: #F0FDFF;
  --s8ae-text-light: #CCCCCC;
  --s8ae-text-green: #E8F5E8;
  --s8ae-accent: #7B68EE;
  --s8ae-gradient: linear-gradient(135deg, #2E4057 0%, #1a2a3a 100%);
  --s8ae-card-bg: #1e2d3d;
  --s8ae-border: rgba(123, 104, 238, 0.25);
  --s8ae-radius: 1.2rem;
  --s8ae-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.3);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--s8ae-gradient);
  color: var(--s8ae-text-light);
  line-height: 1.5rem;
  min-height: 100vh;
  max-width: 43rem;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === Header === */
.s8ae-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 43rem;
  height: 5.6rem;
  background: linear-gradient(180deg, #2E4057 0%, #1a2a3a 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 0.1rem solid var(--s8ae-border);
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.4);
}
.s8ae-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.s8ae-logo {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
}
.s8ae-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #F0FDFF;
  letter-spacing: 0.05rem;
}
.s8ae-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s8ae-btn-register, .s8ae-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.s8ae-btn-register {
  background: linear-gradient(135deg, #7B68EE, #9B88FF);
  color: #F0FDFF;
}
.s8ae-btn-register:hover { transform: scale(1.05); box-shadow: 0 0.3rem 0.8rem rgba(123, 104, 238, 0.5); }
.s8ae-btn-login {
  background: transparent;
  color: var(--s8ae-secondary);
  border: 0.1rem solid var(--s8ae-secondary);
}
.s8ae-btn-login:hover { background: rgba(221, 160, 221, 0.15); }
.s8ae-menu-toggle {
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--s8ae-text-light);
  font-size: 2rem;
  cursor: pointer;
}

/* === Mobile Menu === */
.s8ae-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.s8ae-overlay-active { opacity: 1; visibility: visible; }
.s8ae-mobile-menu {
  position: fixed;
  top: 0;
  right: -28rem;
  width: 28rem;
  height: 100%;
  background: linear-gradient(180deg, #1a2a3a, #2E4057);
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem;
  overflow-y: auto;
}
.s8ae-menu-active { right: 0; }
.s8ae-menu-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.6rem;
}
.s8ae-menu-close button {
  background: transparent;
  border: none;
  color: var(--s8ae-text-light);
  font-size: 2.4rem;
  cursor: pointer;
}
.s8ae-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.s8ae-menu-links li a {
  display: block;
  padding: 1.2rem 1rem;
  color: var(--s8ae-text-light);
  text-decoration: none;
  font-size: 1.5rem;
  border-radius: 0.8rem;
  transition: background 0.2s ease;
}
.s8ae-menu-links li a:hover {
  background: rgba(123, 104, 238, 0.2);
  color: var(--s8ae-primary);
}

/* === Main Content === */
.s8ae-main {
  padding-top: 6.4rem;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .s8ae-main { padding-bottom: 8rem; }
}

/* === Carousel === */
.s8ae-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 1.2rem 1.2rem;
}
.s8ae-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.s8ae-slide-active { display: block; }
.s8ae-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.s8ae-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.s8ae-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}
.s8ae-dot-active {
  background: var(--s8ae-primary);
  transform: scale(1.2);
}

/* === Section === */
.s8ae-section {
  padding: 2rem 1.2rem;
}
.s8ae-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #F0FDFF;
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 0.4rem solid var(--s8ae-primary);
}
.s8ae-section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--s8ae-secondary);
  margin-bottom: 1rem;
}

/* === Game Grid === */
.s8ae-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.s8ae-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.s8ae-game-item:hover { transform: translateY(-0.3rem); }
.s8ae-game-item img {
  width: 7rem;
  height: 7rem;
  border-radius: 1rem;
  object-fit: cover;
  border: 0.1rem solid var(--s8ae-border);
  margin-bottom: 0.4rem;
}
.s8ae-game-name {
  font-size: 1.1rem;
  color: var(--s8ae-text-light);
  line-height: 1.3rem;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Card === */
.s8ae-card {
  background: var(--s8ae-card-bg);
  border-radius: var(--s8ae-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 0.1rem solid var(--s8ae-border);
  box-shadow: var(--s8ae-shadow);
}
.s8ae-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #F0FDFF;
  margin-bottom: 1rem;
}

/* === Promo Button === */
.s8ae-promo-btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: linear-gradient(135deg, #7B68EE, #9B88FF);
  color: #F0FDFF;
  border: none;
  border-radius: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
}
.s8ae-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0.4rem 1.6rem rgba(123, 104, 238, 0.6);
}

/* === Promo Text Link === */
.s8ae-promo-link {
  color: var(--s8ae-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}
.s8ae-promo-link:hover { color: #9B88FF; }

/* === Text Content === */
.s8ae-text {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: var(--s8ae-text-light);
}
.s8ae-text p { margin-bottom: 1.2rem; }
.s8ae-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #F0FDFF;
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}
.s8ae-text ul {
  padding-left: 2rem;
  margin-bottom: 1rem;
}
.s8ae-text li {
  font-size: 1.3rem;
  line-height: 2rem;
  margin-bottom: 0.4rem;
}

/* === Footer === */
.s8ae-footer {
  background: linear-gradient(180deg, #1a2a3a, #0f1a25);
  padding: 2.4rem 1.2rem 3rem;
  border-top: 0.1rem solid var(--s8ae-border);
}
.s8ae-footer-brand {
  font-size: 1.4rem;
  color: var(--s8ae-text-light);
  line-height: 2rem;
  margin-bottom: 1.6rem;
}
.s8ae-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.s8ae-footer-links a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: rgba(123, 104, 238, 0.15);
  color: var(--s8ae-text-light);
  text-decoration: none;
  border-radius: 0.6rem;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}
.s8ae-footer-links a:hover { background: rgba(123, 104, 238, 0.35); }
.s8ae-footer-copy {
  font-size: 1.2rem;
  color: rgba(204, 204, 204, 0.5);
  text-align: center;
}

/* === Bottom Navigation === */
.s8ae-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 43rem;
  height: 6rem;
  background: linear-gradient(180deg, #1a2a3a, #0f1825);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 0.1rem solid var(--s8ae-border);
  box-shadow: 0 -0.2rem 0.8rem rgba(0, 0, 0, 0.4);
}
.s8ae-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  background: transparent;
  border: none;
  color: var(--s8ae-text-light);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.4rem;
}
.s8ae-bottom-btn:hover { color: var(--s8ae-primary); transform: scale(1.1); }
.s8ae-bottom-btn.active { color: var(--s8ae-primary); }
.s8ae-bottom-btn .s8ae-nav-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.s8ae-bottom-btn .s8ae-nav-label {
  font-size: 1rem;
  line-height: 1.2rem;
}

/* === Winner Ticker === */
.s8ae-winner-ticker {
  background: rgba(123, 104, 238, 0.1);
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  margin-bottom: 1.2rem;
  overflow: hidden;
}
.s8ae-winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 0.1rem solid rgba(123, 104, 238, 0.1);
}
.s8ae-winner-item:last-child { border-bottom: none; }
.s8ae-winner-name { font-size: 1.2rem; color: var(--s8ae-secondary); font-weight: 600; }
.s8ae-winner-game { font-size: 1.1rem; color: var(--s8ae-text-light); flex: 1; }
.s8ae-winner-amount { font-size: 1.3rem; color: #E8F5E8; font-weight: 700; }

/* === RTP Table === */
.s8ae-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.s8ae-rtp-table th {
  background: rgba(123, 104, 238, 0.2);
  padding: 0.8rem;
  text-align: left;
  color: #F0FDFF;
  font-weight: 600;
}
.s8ae-rtp-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 0.1rem solid rgba(123, 104, 238, 0.1);
  color: var(--s8ae-text-light);
}
.s8ae-rtp-bar {
  height: 0.6rem;
  background: rgba(123, 104, 238, 0.2);
  border-radius: 0.3rem;
  overflow: hidden;
}
.s8ae-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, #7B68EE, #DDA0DD);
  border-radius: 0.3rem;
}

/* === Testimonial === */
.s8ae-testimonial {
  background: rgba(123, 104, 238, 0.08);
  border-radius: 1rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 0.3rem solid var(--s8ae-primary);
}
.s8ae-testimonial-text { font-size: 1.3rem; line-height: 2rem; color: var(--s8ae-text-light); font-style: italic; }
.s8ae-testimonial-author { font-size: 1.1rem; color: var(--s8ae-secondary); margin-top: 0.6rem; }

/* === Payment Icons === */
.s8ae-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.s8ae-payment-item {
  background: rgba(123, 104, 238, 0.1);
  padding: 0.8rem 1.2rem;
  border-radius: 0.8rem;
  font-size: 1.2rem;
  color: var(--s8ae-text-light);
  font-weight: 600;
}

/* === CTA Block === */
.s8ae-cta-block {
  background: linear-gradient(135deg, rgba(123, 104, 238, 0.2), rgba(221, 160, 221, 0.15));
  border-radius: var(--s8ae-radius);
  padding: 2rem 1.2rem;
  text-align: center;
  margin: 1.6rem 0;
  border: 0.1rem solid var(--s8ae-border);
}
.s8ae-cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #F0FDFF;
  margin-bottom: 1rem;
}

/* === Category Highlight === */
.s8ae-cat-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--s8ae-card-bg);
  border-radius: 1rem;
  margin-bottom: 0.8rem;
  border: 0.1rem solid var(--s8ae-border);
}
.s8ae-cat-icon {
  font-size: 2.8rem;
  line-height: 1;
}
.s8ae-cat-info { flex: 1; }
.s8ae-cat-name { font-size: 1.4rem; font-weight: 700; color: #F0FDFF; }
.s8ae-cat-desc { font-size: 1.1rem; color: var(--s8ae-text-light); }

/* === Desktop responsive === */
@media (min-width: 769px) {
  .s8ae-bottom-nav { display: none; }
  .s8ae-menu-toggle { display: none; }
  .s8ae-game-grid { grid-template-columns: repeat(5, 1fr); }
}

/* === Utility === */
.s8ae-text-center { text-align: center; }
.s8ae-mb-1 { margin-bottom: 1rem; }
.s8ae-mb-2 { margin-bottom: 2rem; }
.s8ae-mt-1 { margin-top: 1rem; }
.s8ae-hidden { display: none; }
