/* 6777bd Layout Styles */
/* Prefix: sfb5- | Colors: #1E1E1E #FAFAFA #4682B4 */

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #1E1E1E;
  color: #FAFAFA;
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #4682B4;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #5a9fd4;
}

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

/* === Header === */
.sfb5-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #1a1a1a 0%, #1E1E1E 100%);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(70, 130, 180, 0.3);
  backdrop-filter: blur(10px);
}

.sfb5-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sfb5-header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.sfb5-header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: #4682B4;
  letter-spacing: 0.5px;
}

.sfb5-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sfb5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sfb5-btn-login {
  background: transparent;
  color: #4682B4;
  border: 1px solid #4682B4;
}

.sfb5-btn-login:hover {
  background: rgba(70, 130, 180, 0.15);
}

.sfb5-btn-register {
  background: linear-gradient(135deg, #4682B4, #3a6d96);
  color: #FAFAFA;
  box-shadow: 0 2px 8px rgba(70, 130, 180, 0.4);
}

.sfb5-btn-register:hover {
  background: linear-gradient(135deg, #5a9fd4, #4682B4);
  transform: translateY(-1px);
}

.sfb5-btn-promo {
  background: linear-gradient(135deg, #4682B4, #2d5f85);
  color: #FAFAFA;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  display: block;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(70, 130, 180, 0.3);
  margin: 1.5rem 0;
  cursor: pointer;
  border: none;
}

.sfb5-btn-promo:hover {
  background: linear-gradient(135deg, #5a9fd4, #4682B4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(70, 130, 180, 0.4);
}

/* Menu toggle button */
.sfb5-menu-toggle {
  background: none;
  border: none;
  color: #FAFAFA;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Mobile Menu Overlay === */
.sfb5-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.sfb5-overlay-active {
  display: block;
}

/* === Mobile Side Menu === */
.sfb5-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #1a1a1a;
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
  border-left: 1px solid rgba(70, 130, 180, 0.2);
}

.sfb5-menu-active {
  right: 0;
}

.sfb5-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(70, 130, 180, 0.2);
  margin-bottom: 1rem;
}

.sfb5-mobile-menu-header span {
  font-size: 1.6rem;
  font-weight: 700;
  color: #4682B4;
}

.sfb5-menu-close {
  background: none;
  border: none;
  color: #FAFAFA;
  font-size: 2rem;
  cursor: pointer;
}

.sfb5-mobile-menu nav {
  padding: 0.5rem 0;
}

.sfb5-mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  color: #FAFAFA;
  font-size: 1.4rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sfb5-mobile-menu nav a:hover,
.sfb5-mobile-menu nav a.sfb5-menu-current {
  background: rgba(70, 130, 180, 0.1);
  border-left-color: #4682B4;
  color: #4682B4;
}

.sfb5-mobile-menu nav a .material-icons-outlined,
.sfb5-mobile-menu nav a i {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

/* === Main Content === */
.sfb5-main {
  padding-top: 5.6rem;
  min-height: 100vh;
}

/* === Carousel === */
.sfb5-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 0 0 12px 12px;
}

.sfb5-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.sfb5-carousel-slide {
  min-width: 100%;
  position: relative;
}

.sfb5-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.sfb5-carousel-slide a {
  display: block;
}

.sfb5-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.sfb5-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sfb5-dot-active {
  background: #4682B4;
  width: 20px;
  border-radius: 4px;
}

/* === Category Tabs === */
.sfb5-cat-tabs {
  display: flex;
  overflow-x: auto;
  gap: 0.6rem;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sfb5-cat-tabs::-webkit-scrollbar {
  display: none;
}

.sfb5-cat-tab {
  flex-shrink: 0;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  background: rgba(70, 130, 180, 0.12);
  color: #FAFAFA;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(70, 130, 180, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sfb5-cat-tab-active,
.sfb5-cat-tab:hover {
  background: #4682B4;
  color: #FAFAFA;
  border-color: #4682B4;
}

/* === Game Grid === */
.sfb5-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FAFAFA;
  padding: 1.2rem 1rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sfb5-section-title i {
  color: #4682B4;
}

.sfb5-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 1rem 1rem;
}

.sfb5-game-card {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(70, 130, 180, 0.08);
  border: 1px solid rgba(70, 130, 180, 0.15);
  transition: all 0.2s ease;
}

.sfb5-game-card:hover {
  border-color: #4682B4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(70, 130, 180, 0.2);
}

.sfb5-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.sfb5-game-card .sfb5-game-name {
  padding: 0.4rem 0.3rem;
  font-size: 1rem;
  color: #FAFAFA;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* === Content Sections === */
.sfb5-content-section {
  padding: 1.5rem 1rem;
}

.sfb5-content-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4682B4;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(70, 130, 180, 0.3);
}

.sfb5-content-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #FAFAFA;
  margin: 1.2rem 0 0.6rem;
}

.sfb5-content-section p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgba(250, 250, 250, 0.85);
  margin-bottom: 1rem;
}

.sfb5-content-section ul {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.sfb5-content-section li {
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgba(250, 250, 250, 0.85);
  margin-bottom: 0.5rem;
}

.sfb5-promo-text {
  color: #4682B4;
  font-weight: 600;
  cursor: pointer;
}

.sfb5-promo-text:hover {
  text-decoration: underline;
}

/* === Footer === */
.sfb5-footer {
  background: #141414;
  padding: 2rem 1rem 1rem;
  border-top: 1px solid rgba(70, 130, 180, 0.2);
}

.sfb5-footer-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(70, 130, 180, 0.15);
}

.sfb5-footer-partners span {
  font-size: 1.1rem;
  color: rgba(250, 250, 250, 0.5);
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(70, 130, 180, 0.2);
  border-radius: 4px;
}

.sfb5-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.2rem;
  margin-bottom: 1.5rem;
}

.sfb5-footer-links a {
  font-size: 1.1rem;
  color: rgba(250, 250, 250, 0.6);
  transition: color 0.2s;
}

.sfb5-footer-links a:hover {
  color: #4682B4;
}

.sfb5-footer-copy {
  text-align: center;
  font-size: 1rem;
  color: rgba(250, 250, 250, 0.4);
  margin-top: 1rem;
}

/* === Bottom Navigation === */
.sfb5-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #1a1a1a, #111111);
  border-top: 1px solid rgba(70, 130, 180, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.sfb5-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: rgba(250, 250, 250, 0.55);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.4rem;
  position: relative;
}

.sfb5-bottom-nav-btn i,
.sfb5-bottom-nav-btn .material-icons-outlined,
.sfb5-bottom-nav-btn ion-icon {
  font-size: 22px;
}

.sfb5-bottom-nav-btn span {
  font-size: 1rem;
  margin-top: 0.2rem;
  white-space: nowrap;
}

.sfb5-bottom-nav-btn:hover {
  color: #FAFAFA;
}

.sfb5-bottom-nav-btn.sfb5-nav-active {
  color: #4682B4;
}

.sfb5-bottom-nav-btn.sfb5-nav-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: #4682B4;
  border-radius: 0 0 2px 2px;
}

/* Center bonus button special styling */
.sfb5-bonus-btn {
  background: linear-gradient(135deg, #4682B4, #2d5f85);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin-top: -16px;
  box-shadow: 0 2px 10px rgba(70, 130, 180, 0.4);
}

.sfb5-bonus-btn i {
  color: #FAFAFA !important;
}

.sfb5-bonus-btn span {
  display: none;
}

/* === Help Page Styles === */
.sfb5-help-hero {
  background: linear-gradient(135deg, rgba(70, 130, 180, 0.2), rgba(30, 30, 30, 0.9));
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 2px solid rgba(70, 130, 180, 0.2);
}

.sfb5-help-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #4682B4;
  margin-bottom: 0.5rem;
}

.sfb5-help-hero p {
  font-size: 1.3rem;
  color: rgba(250, 250, 250, 0.75);
}

.sfb5-help-content {
  padding: 1.5rem 1rem 2rem;
}

.sfb5-help-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #4682B4;
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.8rem;
  border-left: 3px solid #4682B4;
}

.sfb5-help-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #FAFAFA;
  margin: 1.2rem 0 0.5rem;
}

.sfb5-help-content p {
  font-size: 1.3rem;
  line-height: 1.7;
  color: rgba(250, 250, 250, 0.85);
  margin-bottom: 1rem;
}

.sfb5-help-content ul,
.sfb5-help-content ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.sfb5-help-content li {
  font-size: 1.3rem;
  line-height: 1.7;
  color: rgba(250, 250, 250, 0.85);
  margin-bottom: 0.5rem;
}

.sfb5-faq-item {
  background: rgba(70, 130, 180, 0.06);
  border: 1px solid rgba(70, 130, 180, 0.15);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.sfb5-faq-item strong {
  color: #4682B4;
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.sfb5-faq-item p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
  .sfb5-main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .sfb5-bottom-nav {
    display: none;
  }
}

/* === Utility === */
.sfb5-text-center {
  text-align: center;
}

.sfb5-text-accent {
  color: #4682B4;
}

.sfb5-mt-1 {
  margin-top: 1rem;
}

.sfb5-mb-1 {
  margin-bottom: 1rem;
}

.sfb5-hidden-desktop {
  display: block;
}

@media (min-width: 769px) {
  .sfb5-hidden-desktop {
    display: none;
  }
}

/* Inline promo link style */
a.sfb5-inline-link {
  color: #4682B4;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

a.sfb5-inline-link:hover {
  color: #5a9fd4;
  text-decoration: underline;
}
