/* CSS for pin77.click - Prefix: v40b- */
/* Color Palette: #FFC0CB | #1E1E1E | #880E4F | #BAFFC9 */

/* CSS Variables */
:root {
  --v40b-primary: #FFC0CB;
  --v40b-primary-dark: #FFB6C1;
  --v40b-primary-light: #FFD1DC;
  --v40b-secondary: #880E4F;
  --v40b-secondary-dark: #6A0D42;
  --v40b-secondary-light: #AA205E;
  --v40b-accent: #BAFFC9;
  --v40b-accent-dark: #99FFB4;
  --v40b-accent-light: #CCFFD4;
  --v40b-bg-dark: #1E1E1E;
  --v40b-bg-light: #2D2D2D;
  --v40b-bg-medium: #3D3D3D;
  --v40b-text-primary: #FFC0CB;
  --v40b-text-secondary: #FFB6C1;
  --v40b-text-tertiary: #FFD1DC;
  --v40b-text-dark: #FFFFFF;
  --v40b-border: #4A4A4A;
  --v40b-shadow: rgba(0, 0, 0, 0.5);
  --v40b-gradient: linear-gradient(135deg, var(--v40b-primary) 0%, var(--v40b-secondary) 100%);
  --v40b-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  background-color: var(--v40b-bg-dark);
  color: var(--v40b-text-dark);
  overflow-x: hidden;
}

/* Font Size Root */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

/* Header Styles */
.v40b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--v40b-bg-dark);
  border-bottom: 2px solid var(--v40b-border);
  z-index: 1000;
  box-shadow: var(--v40b-shadow);
}

.v40b-header-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.v40b-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--v40b-primary);
  text-decoration: none;
}

.v40b-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.v40b-nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.v40b-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.v40b-btn-primary {
  background: var(--v40b-gradient);
  color: var(--v40b-text-dark);
}

.v40b-btn-secondary {
  background: transparent;
  color: var(--v40b-primary);
  border: 2px solid var(--v40b-primary);
}

.v40b-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--v40b-shadow);
}

.v40b-btn:active {
  transform: translateY(0);
}

/* Mobile Menu */
.v40b-mobile-menu {
  position: fixed;
  top: 60px;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--v40b-bg-dark);
  border-left: 2px solid var(--v40b-border);
  z-index: 9999;
  display: none;
  overflow-y: auto;
}

.v40b-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--v40b-primary);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

.v40b-mobile-nav {
  padding: 1rem;
}

.v40b-mobile-nav-item {
  display: block;
  padding: 1rem;
  color: var(--v40b-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--v40b-border);
  transition: all 0.3s ease;
}

.v40b-mobile-nav-item:hover {
  background: var(--v40b-bg-medium);
  color: var(--v40b-primary);
}

.v40b-mobile-nav-item i {
  width: 20px;
  margin-right: 0.5rem;
}

/* Navigation Links */
.v40b-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.v40b-nav-link {
  color: var(--v40b-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.v40b-nav-link:hover {
  color: var(--v40b-primary);
}

.v40b-nav-link.v40b-active {
  color: var(--v40b-primary);
  font-weight: bold;
}

/* Main Container */
.v40b-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 2rem 1rem 6rem;
}

/* Grid System */
.v40b-grid {
  display: grid;
  gap: 1.5rem;
}

.v40b-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.v40b-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.v40b-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.v40b-card {
  background: var(--v40b-bg-medium);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px var(--v40b-shadow);
  transition: all 0.3s ease;
}

.v40b-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--v40b-shadow-lg);
}

/* Carousel */
.v40b-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.v40b-carousel-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.v40b-carousel-slide.active {
  display: block;
}

.v40b-carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

.v40b-carousel-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.v40b-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Games Section */
.v40b-games-section {
  margin-bottom: 2rem;
}

.v40b-games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.v40b-games-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--v40b-primary);
}

.v40b-games-count {
  color: var(--v40b-text-secondary);
  font-size: 0.9rem;
}

.v40b-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.v40b-game-item {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.v40b-game-item:hover {
  transform: scale(1.05);
}

.v40b-game-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  object-fit: cover;
  box-shadow: 0 4px 6px var(--v40b-shadow);
}

.v40b-game-name {
  font-size: 0.8rem;
  color: var(--v40b-text-secondary);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Promo Section */
.v40b-promo-section {
  background: var(--v40b-gradient);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.v40b-promo-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--v40b-text-dark);
  margin-bottom: 1rem;
}

.v40b-promo-text {
  font-size: 1.1rem;
  color: var(--v40b-text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.v40b-promo-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Stats Section */
.v40b-stats-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.v40b-stat-card {
  background: var(--v40b-bg-medium);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid var(--v40b-border);
}

.v40b-stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--v40b-primary);
}

.v40b-stat-label {
  font-size: 0.9rem;
  color: var(--v40b-text-secondary);
}

/* Feature Cards */
.v40b-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.v40b-feature-card {
  background: var(--v40b-bg-medium);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--v40b-border);
  transition: all 0.3s ease;
}

.v40b-feature-card:hover {
  border-color: var(--v40b-primary);
  transform: translateY(-2px);
}

.v40b-feature-icon {
  font-size: 2.5rem;
  color: var(--v40b-primary);
  margin-bottom: 1rem;
}

.v40b-feature-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--v40b-primary);
  margin-bottom: 0.5rem;
}

.v40b-feature-text {
  font-size: 0.9rem;
  color: var(--v40b-text-secondary);
  line-height: 1.4;
}

/* FAQ Section */
.v40b-faq-section {
  margin-bottom: 2rem;
}

.v40b-faq-item {
  background: var(--v40b-bg-medium);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--v40b-border);
}

.v40b-faq-question {
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--v40b-text-secondary);
  font-weight: 600;
}

.v40b-faq-question:hover {
  background: var(--v40b-bg-light);
  color: var(--v40b-primary);
}

.v40b-faq-answer {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--v40b-text-tertiary);
  line-height: 1.5;
}

.v40b-faq-item.active .v40b-faq-answer {
  max-height: 200px;
  padding: 1rem;
}

.v40b-faq-toggle {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.v40b-faq-item.active .v40b-faq-toggle {
  transform: rotate(180deg);
}

/* Bottom Navigation */
.v40b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--v40b-bg-dark);
  border-top: 2px solid var(--v40b-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  padding: 0 1rem;
}

@media (min-width: 769px) {
  .v40b-bottom-nav {
    display: none;
  }
}

.v40b-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--v40b-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
}

.v40b-nav-item:hover {
  color: var(--v40b-primary);
  transform: scale(1.1);
}

.v40b-nav-item.active {
  color: var(--v40b-primary);
}

.v40b-nav-item i {
  font-size: 24px;
}

.v40b-nav-item span {
  font-size: 0.8rem;
}

.v40b-nav-item .fa-home {
  color: #FF6B6B;
}

.v40b-nav-item .fa-dice {
  color: #4ECDC4;
}

.v40b-nav-item .fa-gift {
  color: #FFE66D;
}

.v40b-nav-item .fa-crown {
  color: #FFD93D;
}

.v40b-nav-item .fa-question-circle {
  color: #6BCF7F;
}

/* Bottom Padding for Main Content */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* Footer */
.v40b-footer {
  background: var(--v40b-bg-dark);
  border-top: 2px solid var(--v40b-border);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.v40b-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.v40b-footer-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.v40b-footer-section h3 {
  font-size: 1.2rem;
  color: var(--v40b-primary);
  margin-bottom: 1rem;
}

.v40b-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.v40b-footer-link {
  color: var(--v40b-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.v40b-footer-link:hover {
  color: var(--v40b-primary);
}

.v40b-partners {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.v40b-partner-logo {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.v40b-partner-logo:hover {
  opacity: 1;
}

.v40b-footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--v40b-border);
  color: var(--v40b-text-secondary);
  font-size: 0.9rem;
}

.v40b-copyright {
  margin-bottom: 0.5rem;
}

/* Typography */
.v40b-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--v40b-primary);
  text-align: center;
  margin-bottom: 2rem;
}

.v40b-subtitle {
  font-size: 1.5rem;
  color: var(--v40b-text-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
}

.v40b-text {
  font-size: 1rem;
  color: var(--v40b-text-tertiary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.v40b-text-center {
  text-align: center;
}

.v40b-text-left {
  text-align: left;
}

/* Icons from multiple libraries */
/* Font Awesome */
.v40b-icon-fa {
  font-family: 'Font Awesome 6 Free';
}

/* Material Icons */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Ionicons */
@import url('https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js');
@import url('https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js');

/* Bootstrap Icons */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css');

/* Tabler Icons */
@import url('https://unpkg.com/@tabler/icons@latest/iconfont/tabler-icons.min.css');

/* Responsive */
@media (max-width: 375px) {
  html {
    font-size: 56.25%;
  }

  .v40b-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .v40b-stats-section,
  .v40b-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 431px) {
  .v40b-container {
    max-width: 430px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.v40b-animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

.v40b-animate-slideIn {
  animation: slideIn 0.3s ease-out;
}

.v40b-animate-pulse {
  animation: pulse 2s infinite;
}

/* Loading State */
.v40b-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--v40b-border);
  border-top-color: var(--v40b-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tooltip */
.v40b-tooltip {
  background: var(--v40b-bg-dark);
  color: var(--v40b-text-primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

/* Utility Classes */
.v40b-mt-1 { margin-top: 1rem; }
.v40b-mt-2 { margin-top: 2rem; }
.v40b-mb-1 { margin-bottom: 1rem; }
.v40b-mb-2 { margin-bottom: 2rem; }
.v40b-p-1 { padding: 1rem; }
.v40b-p-2 { padding: 2rem; }
.v40b-text-center { text-align: center; }
.v40b-text-left { text-align: left; }
.v40b-text-right { text-align: right; }
.v40b-hidden { display: none; }
.v40b-visible { display: block; }
.v40b-opacity-0 { opacity: 0; }
.v40b-opacity-1 { opacity: 1; }

/* Promo Button Styles */
.v40b-promo-btn {
  background: linear-gradient(135deg, var(--v40b-primary) 0%, var(--v40b-secondary) 100%);
  color: var(--v40b-text-dark);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(136, 14, 79, 0.4);
}

.v40b-promo-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(136, 14, 79, 0.6);
}

.v40b-promo-btn:active {
  transform: translateY(0) scale(0.98);
}