/**
 * 1plus - Main Stylesheet
 * All classes use v559- prefix for namespace isolation
 * Color palette: #0A0A0A | #FF6347 | #B0E0E6 | #00BFFF | #B22222
 * Mobile-first design, max-width 430px viewport
 */

/* CSS Variables */
:root {
  --v559-primary: #FF6347;
  --v559-secondary: #00BFFF;
  --v559-accent: #B0E0E6;
  --v559-dark: #0A0A0A;
  --v559-danger: #B22222;
  --v559-bg: #0A0A0A;
  --v559-text: #E8E8E8;
  --v559-text-muted: #9A9A9A;
  --v559-card-bg: #141414;
  --v559-card-border: #222222;
  --v559-header-bg: #0D0D0D;
  --v559-footer-bg: #0A0A0A;
  --v559-nav-bg: #111111;
  --v559-radius: 8px;
  --v559-radius-lg: 12px;
  --v559-transition: 0.3s ease;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--v559-bg);
  color: var(--v559-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--v559-secondary); text-decoration: none; transition: color var(--v559-transition); }
a:hover { color: var(--v559-primary); }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.v559-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--v559-header-bg);
  border-bottom: 1px solid var(--v559-card-border);
  height: 52px; display: flex; align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.v559-header-inner {
  max-width: 430px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; height: 100%;
}
.v559-logo-area { display: flex; align-items: center; gap: 0.6rem; }
.v559-logo-area img { width: 28px; height: 28px; border-radius: 6px; }
.v559-logo-area span { font-size: 1.6rem; font-weight: 700; color: var(--v559-primary); letter-spacing: -0.5px; }
.v559-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v559-btn-register {
  background: linear-gradient(135deg, var(--v559-primary), #E5533A);
  color: #fff; border: none; padding: 0.5rem 1.2rem; border-radius: 20px;
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: transform var(--v559-transition), box-shadow var(--v559-transition);
  min-height: 32px;
}
.v559-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(255,99,71,0.4); }
.v559-btn-login {
  background: transparent; color: var(--v559-secondary);
  border: 1.5px solid var(--v559-secondary); padding: 0.4rem 1rem;
  border-radius: 20px; font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: all var(--v559-transition); min-height: 32px;
}
.v559-btn-login:hover { background: var(--v559-secondary); color: var(--v559-dark); }
.v559-menu-toggle {
  background: none; border: none; color: var(--v559-text);
  font-size: 2.2rem; cursor: pointer; padding: 0 0.3rem; line-height: 1;
  display: flex; align-items: center;
}

/* Mobile Menu */
.v559-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); z-index: 9998;
}
.v559-overlay-active { display: block; }
.v559-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--v559-nav-bg); z-index: 9999;
  transition: right var(--v559-transition); padding: 1.5rem 0;
  overflow-y: auto; border-left: 1px solid var(--v559-card-border);
}
.v559-menu-active { right: 0; }
.v559-mobile-menu .v559-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 1.2rem 1.2rem; border-bottom: 1px solid var(--v559-card-border);
}
.v559-mobile-menu .v559-menu-header span { font-size: 1.6rem; font-weight: 700; color: var(--v559-primary); }
.v559-menu-close { background: none; border: none; color: var(--v559-text-muted); font-size: 2rem; cursor: pointer; }
.v559-menu-list { list-style: none; padding: 0.8rem 0; }
.v559-menu-list li a {
  display: block; padding: 1rem 1.5rem; color: var(--v559-text);
  font-size: 1.4rem; border-bottom: 1px solid var(--v559-card-border);
  transition: background var(--v559-transition);
}
.v559-menu-list li a:hover { background: rgba(255,99,71,0.1); color: var(--v559-primary); }

/* Main Content */
.v559-main { padding-top: 60px; }

/* Carousel */
.v559-carousel { position: relative; overflow: hidden; border-radius: var(--v559-radius-lg); margin-bottom: 1.5rem; }
.v559-slide {
  display: none; width: 100%; cursor: pointer; position: relative;
}
.v559-slide-active { display: block; animation: v559fadeIn 0.6s ease; }
.v559-slide img { width: 100%; height: auto; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--v559-radius-lg); }
.v559-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.v559-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: background var(--v559-transition);
}
.v559-dot-active { background: var(--v559-primary); width: 20px; border-radius: 4px; }

@keyframes v559fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Section Titles */
.v559-section-title {
  font-size: 1.8rem; font-weight: 700; margin: 1.8rem 0 1rem;
  color: var(--v559-text); display: flex; align-items: center; gap: 0.6rem;
}
.v559-section-title::before {
  content: ''; display: inline-block; width: 4px; height: 1.8rem;
  background: var(--v559-primary); border-radius: 2px;
}

/* Game Grid */
.v559-game-section { margin-bottom: 2rem; }
.v559-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin-top: 0.5rem;
}
.v559-game-card {
  text-align: center; cursor: pointer;
  transition: transform var(--v559-transition);
  border-radius: var(--v559-radius); overflow: hidden;
}
.v559-game-card:hover { transform: translateY(-2px); }
.v559-game-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--v559-radius); border: 1.5px solid var(--v559-card-border);
  transition: border-color var(--v559-transition);
}
.v559-game-card:hover img { border-color: var(--v559-primary); }
.v559-game-card span {
  display: block; font-size: 1.1rem; color: var(--v559-text-muted);
  margin-top: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Content Modules */
.v559-card {
  background: var(--v559-card-bg); border: 1px solid var(--v559-card-border);
  border-radius: var(--v559-radius-lg); padding: 1.5rem; margin-bottom: 1.5rem;
}
.v559-card h3 {
  font-size: 1.6rem; color: var(--v559-primary); margin-bottom: 0.8rem;
}
.v559-card p { color: var(--v559-text-muted); font-size: 1.3rem; line-height: 1.8rem; margin-bottom: 0.6rem; }
.v559-card ul { padding-left: 1.5rem; }
.v559-card li { color: var(--v559-text-muted); font-size: 1.3rem; line-height: 2rem; }

/* Promo Button */
.v559-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--v559-primary), #E5533A);
  color: #fff; padding: 0.8rem 2rem; border-radius: 24px;
  font-size: 1.3rem; font-weight: 600; cursor: pointer; border: none;
  transition: transform var(--v559-transition), box-shadow var(--v559-transition);
}
.v559-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(255,99,71,0.4); }
.v559-promo-text {
  color: var(--v559-primary); font-weight: 700; cursor: pointer;
  text-decoration: underline; transition: color var(--v559-transition);
}
.v559-promo-text:hover { color: #FF8C73; }

/* Testimonials */
.v559-testimonial {
  background: var(--v559-card-bg); border-left: 3px solid var(--v559-primary);
  border-radius: 0 var(--v559-radius) var(--v559-radius) 0;
  padding: 1rem 1.2rem; margin-bottom: 0.8rem;
}
.v559-testimonial p { font-style: italic; font-size: 1.2rem; color: var(--v559-text-muted); }
.v559-testimonial cite { color: var(--v559-secondary); font-size: 1.1rem; font-style: normal; }

/* Winner Showcase */
.v559-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0; border-bottom: 1px solid var(--v559-card-border);
}
.v559-winner-row:last-child { border-bottom: none; }
.v559-winner-name { color: var(--v559-secondary); font-weight: 600; font-size: 1.2rem; }
.v559-winner-game { color: var(--v559-text-muted); font-size: 1.1rem; }
.v559-winner-amount { color: var(--v559-primary); font-weight: 700; font-size: 1.3rem; }

/* Payment Methods */
.v559-payment-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v559-payment-item {
  background: var(--v559-card-bg); border: 1px solid var(--v559-card-border);
  border-radius: var(--v559-radius); padding: 0.5rem 1rem;
  font-size: 1.1rem; color: var(--v559-text-muted);
}

/* App Download CTA */
.v559-app-cta {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid var(--v559-primary);
  border-radius: var(--v559-radius-lg); padding: 1.5rem; text-align: center;
}
.v559-app-cta h3 { color: var(--v559-primary); font-size: 1.6rem; margin-bottom: 0.6rem; }
.v559-app-cta p { color: var(--v559-text-muted); font-size: 1.2rem; margin-bottom: 1rem; }

/* Footer */
.v559-footer {
  background: var(--v559-footer-bg); border-top: 1px solid var(--v559-card-border);
  padding: 2rem 0 3rem;
}
.v559-footer-brand { font-size: 1.2rem; color: var(--v559-text-muted); line-height: 1.8rem; margin-bottom: 1rem; }
.v559-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.v559-footer-link {
  background: var(--v559-card-bg); border: 1px solid var(--v559-card-border);
  color: var(--v559-text-muted); padding: 0.4rem 1rem; border-radius: 16px;
  font-size: 1.1rem; cursor: pointer; transition: all var(--v559-transition);
}
.v559-footer-link:hover { border-color: var(--v559-primary); color: var(--v559-primary); }
.v559-footer-site-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.2rem; }
.v559-footer-site-links a { color: var(--v559-text-muted); font-size: 1.1rem; }
.v559-footer-site-links a:hover { color: var(--v559-primary); }
.v559-copyright { font-size: 1rem; color: var(--v559-text-muted); text-align: center; opacity: 0.6; }

/* Bottom Navigation */
.v559-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; background: var(--v559-nav-bg);
  border-top: 1px solid var(--v559-card-border);
  height: 60px; box-shadow: 0 -2px 12px rgba(0,0,0,0.5);
}
.v559-bottom-nav-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; justify-content: space-around; align-items: center;
}
.v559-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: none; border: none; color: var(--v559-text-muted);
  cursor: pointer; min-width: 60px; min-height: 54px; gap: 2px;
  transition: all var(--v559-transition); border-radius: var(--v559-radius);
  -webkit-tap-highlight-color: transparent;
}
.v559-nav-btn .v559-nav-icon { font-size: 22px; line-height: 1; }
.v559-nav-btn .v559-nav-label { font-size: 1rem; line-height: 1; }
.v559-nav-btn:hover, .v559-nav-active {
  color: var(--v559-primary); background: rgba(255,99,71,0.08);
}
.v559-nav-btn:active { transform: scale(0.92); }

/* Help page styles */
.v559-help-content { padding-bottom: 2rem; }
.v559-help-content h2 {
  font-size: 1.6rem; color: var(--v559-primary); margin: 1.5rem 0 0.8rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--v559-card-border);
}
.v559-help-content p { color: var(--v559-text-muted); font-size: 1.3rem; line-height: 1.8rem; margin-bottom: 0.8rem; }
.v559-faq-item { margin-bottom: 1rem; }
.v559-faq-q { font-weight: 600; color: var(--v559-secondary); font-size: 1.3rem; margin-bottom: 0.3rem; }
.v559-faq-a { color: var(--v559-text-muted); font-size: 1.2rem; line-height: 1.7rem; padding-left: 1rem; }

/* Mobile responsive */
@media (max-width: 768px) {
  .v559-main { padding-bottom: 80px; }
  .v559-bottom-nav { display: block; }
}
@media (min-width: 769px) {
  .v559-bottom-nav { display: none; }
  .v559-main { padding-bottom: 0; }
}
