/* theme-90fe.css - PH777 Plus main stylesheet
   Color palette: #F5DEB3 | #FFB74D | #2C3E50 | #FAF0E6 | #34495E
   All custom classes use the s90f- prefix for namespace isolation. */

:root {
  --s90f-primary: #FFB74D;
  --s90f-primary-dark: #FF9800;
  --s90f-secondary: #F5DEB3;
  --s90f-bg: #2C3E50;
  --s90f-bg-alt: #34495E;
  --s90f-bg-deep: #1a2533;
  --s90f-text: #FAF0E6;
  --s90f-text-muted: #F5DEB3;
  --s90f-success: #2ECC71;
  --s90f-danger: #E74C3C;
  --s90f-border: rgba(245, 222, 179, 0.15);
  --s90f-radius: 12px;
  --s90f-radius-sm: 8px;
  --s90f-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --s90f-header-h: 6rem;
  --s90f-bottom-nav-h: 6.4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; }
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  background: var(--s90f-bg);
  color: var(--s90f-text);
  line-height: 1.5;
  font-size: 1.6rem;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--s90f-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--s90f-secondary); }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; }

/* Layout helpers */
.s90f-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.s90f-wrapper { width: 100%; }
.s90f-grid { display: grid; gap: 1rem; }

/* Header */
.s90f-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(44, 62, 80, 0.98), rgba(52, 73, 94, 0.96));
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  transition: background .25s ease, box-shadow .25s ease;
}
.s90f-header-scrolled {
  background: rgba(44, 62, 80, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.s90f-header-inner {
  max-width: 430px; margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
}
.s90f-logo { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.s90f-logo img { width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1.5px solid var(--s90f-primary); }
.s90f-logo-text { font-size: 1.5rem; font-weight: 700; color: var(--s90f-primary); letter-spacing: 0.3px; }
.s90f-header-actions { display: flex; align-items: center; gap: 0.4rem; }

/* Buttons */
.s90f-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.3rem; border-radius: 999px;
  font-weight: 600; font-size: 1.3rem; cursor: pointer;
  border: none; transition: transform .15s ease, background .25s ease, box-shadow .2s ease;
  min-height: 3.6rem; text-decoration: none; line-height: 1;
}
.s90f-btn:active { transform: scale(0.96); }
.s90f-btn-primary {
  background: linear-gradient(135deg, var(--s90f-primary), var(--s90f-primary-dark));
  color: #2C3E50;
  box-shadow: 0 3px 10px rgba(255, 183, 77, 0.4);
}
.s90f-btn-primary:hover { color: #2C3E50; box-shadow: 0 5px 14px rgba(255, 183, 77, 0.55); }
.s90f-btn-secondary {
  background: transparent; color: var(--s90f-primary);
  border: 1.5px solid var(--s90f-primary);
}
.s90f-btn-secondary:hover { background: rgba(255, 183, 77, 0.12); color: var(--s90f-primary); }
.s90f-btn-ghost { background: rgba(245, 222, 179, 0.1); color: var(--s90f-text); }
.s90f-menu-btn {
  background: transparent; border: none; color: var(--s90f-primary);
  font-size: 2rem; cursor: pointer; padding: 0.5rem; min-width: 4rem; min-height: 4rem;
}

/* Mobile slide-out menu */
.s90f-mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 82%; max-width: 320px; height: 100vh;
  background: var(--s90f-bg-alt);
  padding: 6rem 1.5rem 2rem;
  z-index: 9999;
  transition: right .3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
}
.s90f-mobile-menu.s90f-menu-open { right: 0; }
.s90f-mobile-menu-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: transparent; border: none; color: var(--s90f-text);
  font-size: 2.4rem; cursor: pointer; min-width: 4rem; min-height: 4rem;
}
.s90f-mobile-menu h3 {
  color: var(--s90f-primary); font-size: 1.4rem;
  margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
}
.s90f-mobile-menu ul li { padding: 1rem 0; border-bottom: 1px solid var(--s90f-border); }
.s90f-mobile-menu ul li a { color: var(--s90f-text); font-size: 1.5rem; display: block; }
.s90f-mobile-menu ul li a i { color: var(--s90f-primary); margin-right: 0.6rem; width: 1.8rem; }
.s90f-menu-cta { margin-top: 1.5rem; }
.s90f-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  z-index: 9998; opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.s90f-menu-overlay.s90f-menu-open { opacity: 1; visibility: visible; }

/* Main content */
.s90f-main { padding-top: var(--s90f-header-h); }
@media (max-width: 768px) { .s90f-main { padding-bottom: 8rem; } }

/* Carousel */
.s90f-carousel {
  position: relative; overflow: hidden;
  border-radius: var(--s90f-radius);
  margin: 1rem 0; box-shadow: var(--s90f-shadow);
}
.s90f-slide { display: none; position: relative; cursor: pointer; }
.s90f-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.s90f-slide-active { display: block; }
.s90f-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(44, 62, 80, 0.95), transparent);
}
.s90f-slide-caption h2 { font-size: 1.8rem; color: var(--s90f-primary); margin-bottom: 0.3rem; }
.s90f-slide-caption p { font-size: 1.3rem; color: var(--s90f-text); }
.s90f-carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem; padding: 0.6rem;
}
.s90f-dot {
  width: 1rem; height: 1rem; border-radius: 50%;
  background: rgba(245, 222, 179, 0.4); cursor: pointer; border: none;
  transition: background .2s, transform .2s;
}
.s90f-dot.s90f-dot-active { background: var(--s90f-primary); transform: scale(1.2); }

/* Sections */
.s90f-section { padding: 1.5rem 0; }
.s90f-section-title {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--s90f-border);
}
.s90f-section-title h2 { font-size: 1.8rem; color: var(--s90f-primary); flex: 1; }
.s90f-section-title .s90f-section-icon { font-size: 2rem; color: var(--s90f-secondary); }
.s90f-section-desc { color: var(--s90f-text-muted); font-size: 1.4rem; margin-bottom: 1rem; }
.s90f-hero-text h1 { font-size: 2rem; color: var(--s90f-text); margin-bottom: 0.8rem; }
.s90f-hero-text strong { color: var(--s90f-primary); }

/* Game grid */
.s90f-game-group { margin-bottom: 2rem; }
.s90f-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.s90f-game-card {
  background: var(--s90f-bg-alt); border-radius: 10px; overflow: hidden;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid var(--s90f-border);
}
.s90f-game-card:hover, .s90f-game-card:active {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 183, 77, 0.25);
  border-color: var(--s90f-primary);
}
.s90f-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.s90f-game-name {
  font-size: 1.1rem; text-align: center; padding: 0.4rem 0.2rem;
  color: var(--s90f-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Generic card */
.s90f-card {
  background: var(--s90f-bg-alt); border-radius: var(--s90f-radius);
  padding: 1.2rem; margin-bottom: 1rem; border: 1px solid var(--s90f-border);
}
.s90f-card h3 { color: var(--s90f-primary); font-size: 1.6rem; margin-bottom: 0.6rem; }
.s90f-card p { color: var(--s90f-text); font-size: 1.4rem; margin-bottom: 0.6rem; }
.s90f-card ul { padding-left: 1.4rem; }
.s90f-card ul li { list-style: disc; margin-bottom: 0.3rem; font-size: 1.4rem; }

/* CTA banner */
.s90f-cta-banner {
  background: linear-gradient(135deg, var(--s90f-primary), var(--s90f-primary-dark));
  color: #2C3E50; padding: 1.5rem; border-radius: var(--s90f-radius);
  text-align: center; margin: 1.5rem 0;
  box-shadow: 0 4px 14px rgba(255, 183, 77, 0.3);
}
.s90f-cta-banner h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.s90f-cta-banner p { font-size: 1.3rem; margin-bottom: 1rem; }
.s90f-cta-banner a, .s90f-cta-banner button {
  display: inline-block; background: #2C3E50; color: var(--s90f-primary);
  padding: 0.8rem 2rem; border-radius: 999px; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none;
}

/* Feature grid */
.s90f-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.s90f-feature {
  background: var(--s90f-bg-alt); padding: 1rem; border-radius: 10px;
  text-align: center; border: 1px solid var(--s90f-border);
}
.s90f-feature-icon { font-size: 2.2rem; color: var(--s90f-primary); margin-bottom: 0.4rem; }
.s90f-feature-title { font-size: 1.3rem; color: var(--s90f-text); font-weight: 600; margin-bottom: 0.2rem; }
.s90f-feature-desc { font-size: 1.1rem; color: var(--s90f-text-muted); }

/* Steps */
.s90f-steps { counter-reset: step; padding-left: 0; }
.s90f-step {
  position: relative; padding: 0.8rem 0 0.8rem 3.5rem;
  border-left: 2px solid var(--s90f-border); margin-left: 1.2rem;
}
.s90f-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -1.4rem; top: 0.8rem;
  width: 2.6rem; height: 2.6rem; background: var(--s90f-primary);
  color: #2C3E50; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.3rem;
}
.s90f-step h4 { color: var(--s90f-secondary); font-size: 1.4rem; margin-bottom: 0.3rem; }
.s90f-step p { font-size: 1.3rem; color: var(--s90f-text); }

/* Testimonials */
.s90f-testimonials { display: grid; gap: 0.8rem; }
.s90f-testimonial {
  background: var(--s90f-bg-alt); padding: 1rem; border-radius: 10px;
  border-left: 3px solid var(--s90f-primary);
}
.s90f-testimonial p { font-style: italic; font-size: 1.3rem; }
.s90f-testimonial-author { margin-top: 0.5rem; color: var(--s90f-primary); font-size: 1.2rem; font-weight: 600; }

/* Payment */
.s90f-payments { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; padding: 1rem 0; }
.s90f-payment {
  background: var(--s90f-bg-alt); padding: 0.5rem 1rem; border-radius: 6px;
  border: 1px solid var(--s90f-border); color: var(--s90f-secondary);
  font-size: 1.2rem; display: inline-flex; align-items: center; gap: 0.4rem;
}

/* Winners showcase */
.s90f-winners { display: grid; gap: 0.6rem; }
.s90f-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--s90f-bg-alt); padding: 0.7rem 1rem;
  border-radius: 8px; border: 1px solid var(--s90f-border);
}
.s90f-winner-name { font-weight: 600; font-size: 1.3rem; }
.s90f-winner-game { font-size: 1.1rem; color: var(--s90f-text-muted); }
.s90f-winner-amount { color: var(--s90f-primary); font-weight: 700; font-size: 1.4rem; }

/* FAQ */
.s90f-faq-item { background: var(--s90f-bg-alt); border-radius: 8px; padding: 1rem; margin-bottom: 0.6rem; border: 1px solid var(--s90f-border); }
.s90f-faq-q { color: var(--s90f-primary); font-weight: 600; font-size: 1.4rem; margin-bottom: 0.3rem; }
.s90f-faq-a { color: var(--s90f-text); font-size: 1.3rem; }

/* Footer */
.s90f-footer { background: var(--s90f-bg-deep); padding: 2rem 1.2rem; margin-top: 2rem; border-top: 1px solid var(--s90f-border); }
.s90f-footer-inner { max-width: 430px; margin: 0 auto; }
.s90f-footer-brand { color: var(--s90f-text-muted); font-size: 1.3rem; line-height: 1.6; margin-bottom: 1rem; }
.s90f-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.s90f-footer-promo button, .s90f-footer-promo a.s90f-footer-link {
  background: linear-gradient(135deg, var(--s90f-primary), var(--s90f-primary-dark));
  color: #2C3E50; padding: 0.6rem 1.2rem; border-radius: 999px;
  font-size: 1.2rem; font-weight: 600; border: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.s90f-footer-promo button:hover, .s90f-footer-promo a.s90f-footer-link:hover { color: #2C3E50; opacity: 0.92; }
.s90f-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin: 1rem 0; }
.s90f-footer-links a { color: var(--s90f-text-muted); font-size: 1.2rem; text-decoration: none; }
.s90f-footer-links a:hover { color: var(--s90f-primary); }
.s90f-footer-copyright { text-align: center; padding-top: 1rem; border-top: 1px solid var(--s90f-border); color: var(--s90f-text-muted); font-size: 1.1rem; }

/* Bottom nav (mobile only) */
.s90f-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(52, 73, 94, 0.98), rgba(44, 62, 80, 1));
  display: flex; justify-content: space-around; align-items: center;
  padding: 0.4rem 0; z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--s90f-primary);
}
.s90f-bottom-nav-btn {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.2rem;
  background: transparent; border: none; color: var(--s90f-text-muted);
  font-size: 1.1rem; cursor: pointer; padding: 0.4rem 0.6rem;
  min-width: 60px; min-height: 56px;
  transition: color .2s ease, transform .15s ease;
  text-decoration: none;
}
.s90f-bottom-nav-btn:active { transform: scale(0.92); }
.s90f-bottom-nav-btn .s90f-nav-icon { font-size: 2.2rem; line-height: 1; }
.s90f-bottom-nav-btn:hover, .s90f-bottom-nav-btn.s90f-nav-active { color: var(--s90f-primary); }
.s90f-nav-badge {
  position: absolute; top: 4px; right: 14px;
  background: var(--s90f-danger); color: #fff; font-size: 0.95rem;
  border-radius: 999px; padding: 0 0.4rem; min-width: 1.5rem; height: 1.5rem;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* Desktop: hide bottom nav, widen layout */
@media (min-width: 769px) {
  .s90f-bottom-nav { display: none; }
  .s90f-container { max-width: 768px; }
  .s90f-header-inner { max-width: 768px; }
  .s90f-game-grid { grid-template-columns: repeat(5, 1fr); }
  .s90f-features { grid-template-columns: repeat(4, 1fr); }
  .s90f-footer-inner { max-width: 768px; }
}

/* Utilities */
.s90f-text-center { text-align: center; }
.s90f-mt-1 { margin-top: 0.5rem; }
.s90f-mt-2 { margin-top: 1rem; }
.s90f-hidden { display: none !important; }
.s90f-promo-text { color: var(--s90f-primary); font-weight: 700; }
.s90f-text-link { color: var(--s90f-primary); font-weight: 600; text-decoration: underline; }
.s90f-text-link:hover { color: var(--s90f-secondary); }
