/**
 * layout-775f.css - Core stylesheet for ppssppgames.cfd
 * All classes use "vffd-" prefix for namespace isolation
 * Color palette: #0000FF | #B0E0E6 | #D3D3D3 | #1E1E1E | #191970 | #FFD700
 */

/* CSS Variables */
:root {
  --vffd-primary: #0000FF;
  --vffd-accent: #FFD700;
  --vffd-bg-dark: #1E1E1E;
  --vffd-bg-deep: #191970;
  --vffd-text-light: #B0E0E6;
  --vffd-text-muted: #D3D3D3;
  --vffd-white: #FFFFFF;
  --vffd-gold: #FFD700;
  --vffd-radius: 0.8rem;
  --vffd-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.4);
  --vffd-transition: all 0.3s ease;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--vffd-bg-dark);
  color: var(--vffd-text-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

a {
  color: var(--vffd-accent);
  text-decoration: none;
}

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

/* Container */
.vffd-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.vffd-wrapper {
  padding: 1.6rem 0;
}

/* Header */
.vffd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--vffd-bg-deep) 0%, #0a0a3e 100%);
  border-bottom: 0.2rem solid var(--vffd-primary);
  max-width: 430px;
  margin: 0 auto;
}

.vffd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  max-width: 430px;
  margin: 0 auto;
}

.vffd-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vffd-logo-area img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.4rem;
}

.vffd-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vffd-white);
  letter-spacing: 0.05rem;
}

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

.vffd-btn-register {
  background: linear-gradient(135deg, var(--vffd-primary), #0044cc);
  color: var(--vffd-white);
  padding: 0.6rem 1.4rem;
  border-radius: var(--vffd-radius);
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--vffd-transition);
  min-height: 3.6rem;
}

.vffd-btn-register:hover {
  background: linear-gradient(135deg, #0044cc, var(--vffd-primary));
  transform: scale(1.05);
}

.vffd-btn-login {
  background: transparent;
  color: var(--vffd-accent);
  padding: 0.6rem 1.2rem;
  border-radius: var(--vffd-radius);
  font-size: 1.3rem;
  font-weight: 600;
  border: 0.15rem solid var(--vffd-accent);
  cursor: pointer;
  transition: var(--vffd-transition);
  min-height: 3.6rem;
}

.vffd-btn-login:hover {
  background: rgba(255, 215, 0, 0.15);
}

.vffd-menu-btn {
  background: none;
  border: none;
  color: var(--vffd-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.vffd-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--vffd-bg-deep) 0%, #0a0a3e 100%);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem 0;
  overflow-y: auto;
}

.vffd-menu-active {
  right: 0 !important;
}

.vffd-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9998;
  display: none;
}

.vffd-overlay-active {
  display: block !important;
}

.vffd-menu-close {
  background: none;
  border: none;
  color: var(--vffd-white);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vffd-menu-links {
  list-style: none;
  padding: 3rem 0 1rem;
}

.vffd-menu-links li {
  border-bottom: 0.1rem solid rgba(0, 0, 255, 0.2);
}

.vffd-menu-links a {
  display: block;
  padding: 1.4rem 2rem;
  color: var(--vffd-text-light);
  font-size: 1.5rem;
  font-weight: 500;
  transition: var(--vffd-transition);
}

.vffd-menu-links a:hover {
  color: var(--vffd-accent);
  background: rgba(0, 0, 255, 0.1);
  padding-left: 2.5rem;
}

/* Main Content */
.vffd-main {
  padding-top: 5.6rem;
}

/* Carousel / Slider */
.vffd-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 1rem 1rem;
}

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

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

.vffd-slide img {
  width: 100%;
  height: auto;
  min-height: 16rem;
  object-fit: cover;
}

.vffd-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.vffd-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--vffd-transition);
  border: none;
}

.vffd-dot-active {
  background: var(--vffd-accent);
  transform: scale(1.3);
}

/* Section Headings */
.vffd-section {
  padding: 2rem 1.2rem;
}

.vffd-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vffd-white);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 0.2rem solid var(--vffd-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vffd-section-title .material-icons {
  font-size: 2rem;
  color: var(--vffd-accent);
}

/* Game Grid */
.vffd-category-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vffd-accent);
  margin: 1.6rem 0 1rem;
  padding-left: 0.6rem;
  border-left: 0.3rem solid var(--vffd-primary);
}

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

.vffd-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--vffd-transition);
  border-radius: 0.6rem;
  padding: 0.4rem;
}

.vffd-game-item:hover {
  transform: translateY(-0.2rem);
  background: rgba(0, 0, 255, 0.1);
}

.vffd-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.6rem;
  object-fit: cover;
  border: 0.15rem solid rgba(0, 0, 255, 0.3);
}

.vffd-game-name {
  font-size: 1.1rem;
  color: var(--vffd-text-muted);
  margin-top: 0.3rem;
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Cards */
.vffd-card {
  background: linear-gradient(135deg, rgba(25, 25, 112, 0.5) 0%, rgba(30, 30, 30, 0.8) 100%);
  border: 0.1rem solid rgba(0, 0, 255, 0.2);
  border-radius: var(--vffd-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
}

.vffd-card h3 {
  font-size: 1.5rem;
  color: var(--vffd-accent);
  margin-bottom: 0.8rem;
}

.vffd-card p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--vffd-text-muted);
}

/* Promo CTA */
.vffd-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--vffd-primary), #0044cc);
  color: var(--vffd-white);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1.2rem;
  border-radius: var(--vffd-radius);
  cursor: pointer;
  transition: var(--vffd-transition);
  margin: 1.6rem 0;
}

.vffd-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 0 1.5rem rgba(0, 0, 255, 0.5);
}

.vffd-cta-gold {
  background: linear-gradient(135deg, var(--vffd-accent), #ffaa00);
  color: var(--vffd-bg-dark);
}

.vffd-cta-gold:hover {
  box-shadow: 0 0 1.5rem rgba(255, 215, 0, 0.5);
}

/* Text Link */
.vffd-text-link {
  color: var(--vffd-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--vffd-transition);
}

.vffd-text-link:hover {
  color: var(--vffd-primary);
}

/* Bottom Navigation */
.vffd-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--vffd-bg-deep) 0%, #0a0a3e 100%);
  border-top: 0.2rem solid var(--vffd-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  max-width: 430px;
  margin: 0 auto;
}

.vffd-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5.6rem;
  cursor: pointer;
  transition: var(--vffd-transition);
  color: var(--vffd-text-muted);
  background: none;
  border: none;
  padding: 0.4rem;
  gap: 0.2rem;
}

.vffd-bottom-nav-item:hover,
.vffd-bottom-active {
  color: var(--vffd-accent);
  transform: scale(1.1);
}

.vffd-bottom-nav-item i,
.vffd-bottom-nav-item .material-icons {
  font-size: 2.2rem;
}

.vffd-bottom-nav-item span {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.vffd-footer {
  background: linear-gradient(180deg, var(--vffd-bg-dark) 0%, #111 100%);
  border-top: 0.2rem solid var(--vffd-primary);
  padding: 2rem 1.2rem 8rem;
}

.vffd-footer-brand {
  font-size: 1.3rem;
  color: var(--vffd-text-muted);
  line-height: 1.8rem;
  margin-bottom: 1.6rem;
}

.vffd-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.vffd-footer-promo a {
  background: linear-gradient(135deg, var(--vffd-primary), #0044cc);
  color: var(--vffd-white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--vffd-radius);
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--vffd-transition);
}

.vffd-footer-promo a:hover {
  transform: scale(1.05);
}

.vffd-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-bottom: 1.6rem;
}

.vffd-footer-links a {
  color: var(--vffd-text-light);
  font-size: 1.2rem;
  transition: var(--vffd-transition);
}

.vffd-footer-links a:hover {
  color: var(--vffd-accent);
}

.vffd-copyright {
  font-size: 1.1rem;
  color: rgba(211, 211, 211, 0.5);
  text-align: center;
  padding-top: 1rem;
  border-top: 0.1rem solid rgba(0, 0, 255, 0.15);
}

/* FAQ Section */
.vffd-faq-item {
  background: rgba(25, 25, 112, 0.3);
  border: 0.1rem solid rgba(0, 0, 255, 0.15);
  border-radius: var(--vffd-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.vffd-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--vffd-accent);
  margin-bottom: 0.5rem;
}

.vffd-faq-a {
  font-size: 1.2rem;
  color: var(--vffd-text-muted);
  line-height: 1.7rem;
}

/* Winner Showcase */
.vffd-winner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 215, 0, 0.08);
  border: 0.1rem solid rgba(255, 215, 0, 0.2);
  border-radius: var(--vffd-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.vffd-winner-name {
  font-size: 1.3rem;
  color: var(--vffd-white);
  font-weight: 600;
}

.vffd-winner-amount {
  font-size: 1.4rem;
  color: var(--vffd-accent);
  font-weight: 700;
}

.vffd-winner-game {
  font-size: 1.1rem;
  color: var(--vffd-text-muted);
}

/* Responsive */
@media (min-width: 769px) {
  .vffd-bottom-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .vffd-main {
    padding-bottom: 8rem;
  }
  .vffd-footer {
    padding-bottom: 8rem;
  }
}

/* Utility Classes */
.vffd-text-center { text-align: center; }
.vffd-text-gold { color: var(--vffd-accent); }
.vffd-text-primary { color: var(--vffd-primary); }
.vffd-mt-1 { margin-top: 1rem; }
.vffd-mb-1 { margin-bottom: 1rem; }
.vffd-hidden { display: none; }

/* RTP Table */
.vffd-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.vffd-rtp-table th {
  background: var(--vffd-bg-deep);
  color: var(--vffd-accent);
  padding: 0.8rem;
  text-align: left;
  font-weight: 600;
}

.vffd-rtp-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 0.1rem solid rgba(0, 0, 255, 0.15);
  color: var(--vffd-text-muted);
}

.vffd-rtp-bar {
  height: 0.6rem;
  background: rgba(0, 0, 255, 0.2);
  border-radius: 0.3rem;
  overflow: hidden;
}

.vffd-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vffd-primary), var(--vffd-accent));
  border-radius: 0.3rem;
}

/* Payment Icons */
.vffd-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.vffd-payment-item {
  background: rgba(255, 255, 255, 0.08);
  border: 0.1rem solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--vffd-text-light);
}

/* Testimonial */
.vffd-testimonial {
  background: rgba(25, 25, 112, 0.3);
  border-left: 0.3rem solid var(--vffd-accent);
  border-radius: 0 var(--vffd-radius) var(--vffd-radius) 0;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.vffd-testimonial-text {
  font-size: 1.3rem;
  color: var(--vffd-text-muted);
  font-style: italic;
  line-height: 1.7rem;
}

.vffd-testimonial-author {
  font-size: 1.1rem;
  color: var(--vffd-accent);
  margin-top: 0.6rem;
  font-weight: 600;
}

/* App Download */
.vffd-app-cta {
  background: linear-gradient(135deg, var(--vffd-bg-deep), #0a0a3e);
  border: 0.2rem solid var(--vffd-primary);
  border-radius: var(--vffd-radius);
  padding: 2rem;
  text-align: center;
}

.vffd-app-cta h3 {
  font-size: 1.6rem;
  color: var(--vffd-white);
  margin-bottom: 1rem;
}

.vffd-app-cta p {
  font-size: 1.3rem;
  color: var(--vffd-text-muted);
  margin-bottom: 1.2rem;
}
