/* hi882 - core base stylesheet
   All custom classes use prefix "sf11-" to avoid collisions. */

:root {
  --sf11-primary: #FF1493;
  --sf11-secondary: #FF69B4;
  --sf11-teal: #20B2AA;
  --sf11-dark: #34495E;
  --sf11-coral: #FF8A80;
  --sf11-muted: #BBBBBB;
  --sf11-bg: #1a1226;
  --sf11-bg-2: #241634;
  --sf11-card: #2a1d3d;
  --sf11-text: #ffffff;
  --sf11-gold: #ffd86b;
  --sf11-radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; }

body {
  font-family: "Segoe UI", "Inter", "Roboto", system-ui, -apple-system, sans-serif;
  background: linear-gradient(160deg, var(--sf11-bg) 0%, var(--sf11-bg-2) 100%);
  color: var(--sf11-text);
  font-size: 1.5rem;
  line-height: calc(1.5rem * 1.6);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--sf11-secondary); text-decoration: none; }

.sf11-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* Header */
.sf11-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, rgba(52,73,94,0.96), rgba(255,20,147,0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sf11-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.6rem;
}
.sf11-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.sf11-brand img { width: 30px; height: 30px; border-radius: 8px; }
.sf11-brand-text {
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.sf11-brand-text span { color: var(--sf11-gold); }

.sf11-header-actions { display: flex; align-items: center; gap: 0.45rem; }

.sf11-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 34px;
}
.sf11-btn:active { transform: scale(0.94); }
.sf11-btn-login {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.55rem 1rem;
}
.sf11-btn-register {
  background: linear-gradient(90deg, #ffd86b, #ff8a3d);
  color: #2a1d3d;
  box-shadow: 0 4px 14px rgba(255,216,107,0.35);
}

.sf11-menu-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

/* Expandable mobile menu */
.sf11-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  background: rgba(26,18,38,0.98);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sf11-mobile-menu.sf11-menu-open { max-height: 520px; }
.sf11-mobile-menu nav {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.sf11-mobile-menu a {
  display: block;
  padding: 0.7rem 0.8rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
}
.sf11-mobile-menu a:active { background: rgba(255,105,180,0.18); }

/* Main content */
.sf11-main { padding-top: 60px; }
@media (max-width: 768px) {
  .sf11-main { padding-bottom: 84px; }
}

.sf11-section {
  padding: 1.6rem 1rem;
}
.sf11-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
}
.sf11-section-title i { color: var(--sf11-secondary); }
.sf11-section-sub {
  color: var(--sf11-muted);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Hero */
.sf11-hero {
  position: relative;
  padding: 1rem;
  text-align: center;
}
.sf11-hero h1 {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  background: linear-gradient(90deg, #ffd86b, #FF69B4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sf11-hero p { color: #f0e6f5; font-size: 1.35rem; margin-bottom: 1rem; }
.sf11-cta-row { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.sf11-cta-primary {
  background: linear-gradient(90deg, #FF1493, #FF69B4);
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.4rem;
  border: none;
  box-shadow: 0 6px 18px rgba(255,20,147,0.4);
}
.sf11-cta-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 1.4rem;
}

/* Carousel */
.sf11-carousel {
  position: relative;
  border-radius: var(--sf11-radius);
  overflow: hidden;
  margin: 0 1rem 1rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}
.sf11-carousel-track { position: relative; }
.sf11-carousel-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.sf11-carousel-slide.sf11-slide-active { display: block; }
.sf11-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.sf11-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}
.sf11-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}
.sf11-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.sf11-carousel-dot.sf11-dot-active { background: var(--sf11-gold); }

/* Game grid */
.sf11-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
@media (min-width: 480px) { .sf11-grid { grid-template-columns: repeat(4, 1fr); } }
.sf11-game-card {
  background: var(--sf11-card);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(255,255,255,0.05);
}
.sf11-game-card:active { transform: scale(0.95); }
.sf11-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #0f0a1a;
}
.sf11-game-card .sf11-game-name {
  padding: 0.4rem 0.35rem 0.55rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 28px;
}
.sf11-game-card.hot::after {
  content: "HOT";
  position: absolute;
  top: 4px; left: 4px;
  background: var(--sf11-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}
.sf11-game-card { position: relative; }

/* Category header */
.sf11-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.4rem 0 0.8rem;
  padding: 0 1rem;
}
.sf11-cat-head h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  display: flex; align-items: center; gap: 0.4rem;
}
.sf11-cat-head h2 i { color: var(--sf11-gold); }
.sf11-cat-head .sf11-cat-more {
  font-size: 1.2rem;
  color: var(--sf11-secondary);
  font-weight: 600;
}

/* Info cards */
.sf11-info-card {
  background: var(--sf11-card);
  border-radius: 12px;
  padding: 1.1rem;
  margin: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.sf11-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--sf11-gold);
}
.sf11-info-card p {
  color: #d8cce0;
  font-size: 1.3rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.sf11-info-card a { color: var(--sf11-secondary); font-weight: 700; }

/* Featured */
.sf11-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0 1rem;
}
.sf11-feature-pill {
  background: linear-gradient(135deg, rgba(255,20,147,0.18), rgba(32,178,170,0.14));
  border-radius: 12px;
  padding: 0.9rem;
  border: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.sf11-feature-pill i { font-size: 2.2rem; color: var(--sf11-gold); margin-bottom: 0.4rem; }
.sf11-feature-pill strong { display: block; color: #fff; font-size: 1.3rem; }
.sf11-feature-pill span { color: var(--sf11-muted); font-size: 1.1rem; }

/* Testimonials */
.sf11-testimonials { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0 1rem; scroll-snap-type: x mandatory; }
.sf11-testimonials::-webkit-scrollbar { display: none; }
.sf11-testimonial {
  min-width: 260px;
  background: var(--sf11-card);
  border-radius: 12px;
  padding: 1rem;
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,0.06);
}
.sf11-testimonial .sf11-stars { color: var(--sf11-gold); margin-bottom: 0.4rem; font-size: 1.2rem; }
.sf11-testimonial p { font-size: 1.25rem; color: #e6dcef; line-height: 1.55; margin-bottom: 0.5rem; }
.sf11-testimonial .sf11-author { font-size: 1.15rem; color: var(--sf11-secondary); font-weight: 700; }

/* Payment methods */
.sf11-pay-row { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0 1rem; }
.sf11-pay-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 1.15rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* FAQ */
.sf11-faq details {
  background: var(--sf11-card);
  border-radius: 10px;
  margin: 0.5rem 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.sf11-faq summary {
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.sf11-faq summary::-webkit-details-marker { display: none; }
.sf11-faq details[open] summary { color: var(--sf11-gold); }
.sf11-faq p { margin-top: 0.5rem; color: #d8cce0; font-size: 1.25rem; line-height: 1.55; }

/* Footer */
.sf11-footer {
  background: #0f0a1a;
  padding: 1.4rem 1rem 2.4rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sf11-footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 0.4rem; }
.sf11-footer-brand span { color: var(--sf11-gold); }
.sf11-footer-desc { color: var(--sf11-muted); font-size: 1.2rem; line-height: 1.55; margin-bottom: 0.8rem; }
.sf11-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.8rem;
  margin: 0.6rem 0;
}
.sf11-footer-links a { color: #cfc2da; font-size: 1.2rem; }
.sf11-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0.6rem 0;
}
.sf11-footer-promo button {
  flex: 1 1 auto;
  min-width: 90px;
  background: linear-gradient(90deg, #FF1493, #FF69B4);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}
.sf11-footer-copy {
  margin-top: 1rem;
  text-align: center;
  color: var(--sf11-muted);
  font-size: 1.1rem;
}

/* Bottom navigation */
.sf11-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(36,22,52,0.98), rgba(15,10,26,0.99));
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.4);
}
.sf11-bottom-nav a, .sf11-bottom-nav button {
  flex: 1;
  background: transparent;
  border: none;
  color: #cfc2da;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}
.sf11-bottom-nav a:active, .sf11-bottom-nav button:active { transform: scale(0.9); }
.sf11-bottom-nav .material-icons,
.sf11-bottom-nav ion-icon,
.sf11-bottom-nav i { font-size: 22px; }
.sf11-bottom-nav a.active, .sf11-bottom-nav button.active { color: var(--sf11-gold); }
.sf11-bottom-nav .sf11-nav-badge {
  position: absolute;
  top: 4px;
  transform: translateX(14px);
  background: var(--sf11-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0 4px;
  border-radius: 8px;
  min-width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
}
@media (min-width: 769px) {
  .sf11-bottom-nav { display: none; }
  .sf11-header { max-width: 100%; }
}

/* Toast */
.sf11-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15,10,26,0.95);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--sf11-secondary);
  font-size: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2000;
}
.sf11-toast.sf11-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Back to top */
.sf11-to-top {
  position: fixed;
  right: 14px;
  bottom: 78px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sf11-secondary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  opacity: 0;
  pointer-events: none;
  z-index: 900;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.sf11-to-top.sf11-to-top-show { opacity: 0.92; pointer-events: auto; }

/* Helper text colors */
.sf11-text-gold { color: var(--sf11-gold); font-weight: 700; }
.sf11-text-pink { color: var(--sf11-secondary); font-weight: 700; }

/* Bold promo text link (opened via JS click handler, no hardcoded URL) */
.sf11-promo-link {
  color: var(--sf11-gold);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.sf11-promo-link:hover { color: #ffffff; }

@media (min-width: 769px) {
  .sf11-wrapper { max-width: 760px; }
  .sf11-grid { grid-template-columns: repeat(6, 1fr); }
}
