/* 777ph Core Stylesheet - sfd0- prefix */
/* Root variables and reset */
:root {
  --sfd0-primary: #F4A460;
  --sfd0-bg: #1E1E1E;
  --sfd0-text: #FFFFBA;
  --sfd0-accent: #FFB6C1;
  --sfd0-dark: #1E1E1E;
  --sfd0-card-bg: #2A2A2A;
  --sfd0-border: #3A3A3A;
  --sfd0-hover: #E8944F;
  --sfd0-radius: 8px;
  --sfd0-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

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

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

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--sfd0-bg);
  color: var(--sfd0-text);
  font-size: 1.5rem;
  line-height: 1.6;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sfd0-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--sfd0-hover);
}

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

/* ===== HEADER ===== */
.sfd0-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #1E1E1E 0%, #252525 100%);
  border-bottom: 2px solid var(--sfd0-primary);
  z-index: 1000;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sfd0-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.sfd0-logo img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.sfd0-logo-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--sfd0-primary);
  letter-spacing: 1px;
}

.sfd0-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sfd0-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sfd0-btn-register {
  background: linear-gradient(135deg, var(--sfd0-primary), #E8944F);
  color: #1E1E1E;
}

.sfd0-btn-register:hover {
  background: linear-gradient(135deg, #E8944F, var(--sfd0-primary));
  transform: scale(1.03);
}

.sfd0-btn-login {
  background: transparent;
  color: var(--sfd0-primary);
  border: 2px solid var(--sfd0-primary);
}

.sfd0-btn-login:hover {
  background: rgba(244, 164, 96, 0.1);
}

.sfd0-menu-btn {
  background: none;
  border: none;
  color: var(--sfd0-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ===== MOBILE MENU ===== */
.sfd0-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #222;
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 60px 16px 20px;
}

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

.sfd0-mobile-menu .sfd0-menu-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--sfd0-text);
  font-size: 2.6rem;
  cursor: pointer;
}

.sfd0-mobile-menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--sfd0-border);
  color: var(--sfd0-text);
  font-size: 1.5rem;
  transition: color 0.2s;
}

.sfd0-mobile-menu a:hover {
  color: var(--sfd0-primary);
}

/* ===== OVERLAY ===== */
.sfd0-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;
}

.sfd0-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* ===== MAIN CONTENT ===== */
.sfd0-main {
  padding-top: 58px;
  min-height: 100vh;
}

/* ===== CAROUSEL ===== */
.sfd0-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--sfd0-radius) var(--sfd0-radius);
}

.sfd0-carousel-track {
  display: flex;
  transition: none;
}

.sfd0-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.sfd0-slide-active {
  display: block;
}

.sfd0-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 430/200;
  object-fit: cover;
}

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

.sfd0-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.sfd0-dot-active {
  background: var(--sfd0-primary);
}

/* ===== SECTION ===== */
.sfd0-section {
  padding: 20px 12px;
}

.sfd0-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--sfd0-primary);
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 4px solid var(--sfd0-accent);
  line-height: 1.3;
}

/* ===== GAME GRID ===== */
.sfd0-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sfd0-game-item {
  background: var(--sfd0-card-bg);
  border-radius: var(--sfd0-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--sfd0-border);
}

.sfd0-game-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--sfd0-shadow);
}

.sfd0-game-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #333;
}

.sfd0-game-name {
  padding: 4px 4px 6px;
  font-size: 1.1rem;
  text-align: center;
  color: var(--sfd0-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* ===== CATEGORY TABS ===== */
.sfd0-cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 12px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.sfd0-cat-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  background: var(--sfd0-card-bg);
  color: var(--sfd0-text);
  border: 1px solid var(--sfd0-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sfd0-cat-tab.sfd0-tab-active,
.sfd0-cat-tab:hover {
  background: var(--sfd0-primary);
  color: var(--sfd0-dark);
  border-color: var(--sfd0-primary);
}

/* ===== CONTENT BLOCKS ===== */
.sfd0-content-block {
  background: var(--sfd0-card-bg);
  border-radius: var(--sfd0-radius);
  padding: 20px 16px;
  margin: 16px 12px;
  border: 1px solid var(--sfd0-border);
}

.sfd0-content-block h2 {
  font-size: 1.8rem;
  color: var(--sfd0-primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.sfd0-content-block h3 {
  font-size: 1.6rem;
  color: var(--sfd0-accent);
  margin: 14px 0 8px;
  font-weight: 600;
}

.sfd0-content-block p {
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--sfd0-text);
}

.sfd0-content-block ul,
.sfd0-content-block ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.sfd0-content-block li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.sfd0-content-block a {
  color: var(--sfd0-primary);
  text-decoration: underline;
  text-decoration-color: rgba(244, 164, 96, 0.3);
}

.sfd0-content-block a:hover {
  text-decoration-color: var(--sfd0-primary);
}

/* ===== BOTTOM NAVIGATION ===== */
.sfd0-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #252525 0%, #1A1A1A 100%);
  border-top: 2px solid var(--sfd0-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 4px 0;
}

.sfd0-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--sfd0-text);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px 2px;
  border-radius: 8px;
}

.sfd0-bottom-btn:hover,
.sfd0-bottom-btn:active {
  color: var(--sfd0-primary);
  background: rgba(244, 164, 96, 0.08);
}

.sfd0-bottom-btn .sfd0-bnav-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 3px;
}

.sfd0-bottom-btn .sfd0-bnav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.sfd0-bottom-btn.sfd0-btn-active {
  color: var(--sfd0-primary);
}

.sfd0-bottom-btn.sfd0-btn-active .sfd0-bnav-label {
  color: var(--sfd0-primary);
}

/* ===== FOOTER ===== */
.sfd0-footer {
  background: #1A1A1A;
  padding: 24px 12px 16px;
  border-top: 1px solid var(--sfd0-border);
  margin-top: 24px;
}

.sfd0-footer-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sfd0-border);
}

.sfd0-footer-partners img {
  height: 30px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.sfd0-footer-partners img:hover {
  opacity: 1;
}

.sfd0-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.sfd0-footer-links a {
  font-size: 1.3rem;
  color: var(--sfd0-text);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.sfd0-footer-links a:hover {
  opacity: 1;
  color: var(--sfd0-primary);
}

.sfd0-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: var(--sfd0-text);
  opacity: 0.5;
  margin-top: 8px;
}

.sfd0-footer-disclaimer {
  text-align: center;
  font-size: 1.1rem;
  color: var(--sfd0-text);
  opacity: 0.4;
  margin-top: 8px;
  line-height: 1.5;
}

/* ===== CTA STRIP ===== */
.sfd0-cta-strip {
  background: linear-gradient(135deg, var(--sfd0-primary), #E8944F);
  padding: 16px;
  text-align: center;
  margin: 16px 12px;
  border-radius: var(--sfd0-radius);
  cursor: pointer;
  transition: transform 0.2s;
}

.sfd0-cta-strip:hover {
  transform: scale(1.01);
}

.sfd0-cta-strip h3 {
  font-size: 1.8rem;
  color: var(--sfd0-dark);
  margin-bottom: 4px;
  font-weight: 800;
}

.sfd0-cta-strip p {
  font-size: 1.3rem;
  color: #3A2A1A;
}

/* ===== HELPER / UTILITY ===== */
.sfd0-hidden {
  display: none !important;
}

.sfd0-text-center {
  text-align: center;
}

.sfd0-mt-16 {
  margin-top: 16px;
}

.sfd0-mb-16 {
  margin-bottom: 16px;
}

/* ===== FAQ STYLES ===== */
.sfd0-faq-item {
  background: var(--sfd0-card-bg);
  border: 1px solid var(--sfd0-border);
  border-radius: var(--sfd0-radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.sfd0-faq-q {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--sfd0-primary);
  cursor: default;
}

.sfd0-faq-a {
  padding: 0 16px 14px;
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--sfd0-text);
}

/* ===== GUIDE LIST ===== */
.sfd0-guide-step {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.sfd0-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sfd0-primary);
  color: var(--sfd0-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
}

.sfd0-step-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--sfd0-text);
}

/* ===== DESKTOP BOTTOM NAV HIDE ===== */
@media (min-width: 769px) {
  .sfd0-bottom-nav {
    display: none;
  }
}

/* ===== MOBILE BOTTOM PADDING ===== */
@media (max-width: 768px) {
  .sfd0-main {
    padding-bottom: 80px;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--sfd0-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--sfd0-border);
  border-radius: 2px;
}

/* Selection color */
::selection {
  background: var(--sfd0-primary);
  color: var(--sfd0-dark);
}
