/**
 * kkkk ph - Core Stylesheet
 * All classes use v900- prefix for namespace isolation
 * Color palette: #1C2833 | #808080 | #F5F5F5 | #D3D3D3
 * Mobile-first design, max-width: 430px
 */

/* === CSS Variables === */
:root {
  --v900-primary: #1C2833;
  --v900-secondary: #808080;
  --v900-light: #F5F5F5;
  --v900-border: #D3D3D3;
  --v900-accent: #FF6B35;
  --v900-accent2: #FFD700;
  --v900-bg: #0F1923;
  --v900-card: #1A2634;
  --v900-text: #E8E8E8;
  --v900-text-muted: #A0A0A0;
  --v900-success: #28A745;
  --v900-danger: #DC3545;
  font-size: 62.5%;
}

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--v900-bg);
  color: var(--v900-text);
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.v900-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(180deg, var(--v900-primary) 0%, #0D1B2A 100%);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--v900-accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.v900-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.v900-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.v900-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v900-accent2);
  letter-spacing: 0.5px;
}
.v900-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.v900-btn-register {
  background: linear-gradient(135deg, var(--v900-accent), #E85D26);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.v900-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255,107,53,0.4);
}
.v900-btn-login {
  background: transparent;
  color: var(--v900-accent2);
  border: 1.5px solid var(--v900-accent2);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.v900-btn-login:hover {
  background: rgba(255,215,0,0.1);
}
.v900-menu-toggle {
  background: none;
  border: none;
  color: var(--v900-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* === Mobile Menu === */
.v900-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}
.v900-overlay-active { display: block; }
.v900-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--v900-primary);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.v900-menu-active { right: 0; }
.v900-mobile-menu .v900-menu-close {
  background: none;
  border: none;
  color: var(--v900-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}
.v900-mobile-menu .v900-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v900-accent2);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--v900-accent);
}
.v900-menu-link {
  display: block;
  padding: 1rem 0;
  color: var(--v900-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s, padding-left 0.2s;
}
.v900-menu-link:hover {
  color: var(--v900-accent);
  padding-left: 0.8rem;
}

/* === Main Content === */
.v900-main {
  padding-top: 60px;
  min-height: 100vh;
}

/* === Carousel === */
.v900-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}
.v900-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.v900-slide-active { display: block; }
.v900-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.v900-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.v900-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}
.v900-dot-active { background: var(--v900-accent); }

/* === Sections === */
.v900-section {
  padding: 2rem 1.2rem;
}
.v900-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v900-accent2);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--v900-accent);
}
.v900-section-title i {
  margin-right: 0.5rem;
  color: var(--v900-accent);
}

/* === Game Grid === */
.v900-game-category-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--v900-accent);
  margin: 1.5rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--v900-accent2);
}
.v900-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.v900-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 8px;
  padding: 0.5rem;
  background: var(--v900-card);
  border: 1px solid rgba(255,255,255,0.05);
}
.v900-game-item:hover {
  transform: translateY(-2px);
  border-color: var(--v900-accent);
}
.v900-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}
.v900-game-item span {
  font-size: 1.1rem;
  color: var(--v900-text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Content Cards === */
.v900-card {
  background: var(--v900-card);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.v900-card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v900-accent2);
  margin-bottom: 1rem;
}
.v900-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v900-accent);
  margin: 1rem 0 0.5rem;
}
.v900-card p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--v900-text-muted);
  margin-bottom: 0.8rem;
}

/* === Promo Buttons & Links === */
.v900-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--v900-accent), #E85D26);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.v900-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}
.v900-promo-link {
  color: var(--v900-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.v900-promo-link:hover {
  color: var(--v900-accent2);
}

/* === FAQ === */
.v900-faq-item {
  margin-bottom: 1.2rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border-left: 3px solid var(--v900-accent);
}
.v900-faq-item strong {
  color: var(--v900-accent2);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.4rem;
}
.v900-faq-item p {
  color: var(--v900-text-muted);
  font-size: 1.3rem;
  line-height: 1.5;
}

/* === Testimonials === */
.v900-testimonial {
  background: var(--v900-card);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,215,0,0.15);
}
.v900-testimonial-name {
  color: var(--v900-accent2);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.v900-testimonial-text {
  color: var(--v900-text-muted);
  font-size: 1.3rem;
  line-height: 1.5;
  font-style: italic;
}

/* === Footer === */
.v900-footer {
  background: var(--v900-primary);
  padding: 2rem 1.2rem;
  border-top: 2px solid var(--v900-accent);
}
.v900-footer-brand {
  color: var(--v900-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.v900-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.v900-footer-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255,107,53,0.15);
  color: var(--v900-accent);
  border-radius: 16px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}
.v900-footer-link:hover {
  background: var(--v900-accent);
  color: #fff;
}
.v900-footer-copy {
  color: var(--v900-secondary);
  font-size: 1.2rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* === Bottom Navigation === */
.v900-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #162333 0%, var(--v900-primary) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--v900-accent);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.5);
}
.v900-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--v900-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.3rem;
}
.v900-bottom-btn i,
.v900-bottom-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
  transition: color 0.2s, transform 0.2s;
}
.v900-bottom-btn span {
  font-size: 1rem;
  letter-spacing: 0.3px;
}
.v900-bottom-btn:hover,
.v900-bottom-btn.v900-btn-active {
  color: var(--v900-accent2);
}
.v900-bottom-btn:hover i,
.v900-bottom-btn:hover .material-icons,
.v900-bottom-btn.v900-btn-active i,
.v900-bottom-btn.v900-btn-active .material-icons {
  transform: scale(1.15);
  color: var(--v900-accent2);
}
.v900-bottom-btn:active {
  transform: scale(0.92);
}

/* === Utilities === */
.v900-text-center { text-align: center; }
.v900-mt-1 { margin-top: 0.8rem; }
.v900-mt-2 { margin-top: 1.6rem; }
.v900-mb-1 { margin-bottom: 0.8rem; }
.v900-mb-2 { margin-bottom: 1.6rem; }
.v900-py-1 { padding-top: 0.8rem; padding-bottom: 0.8rem; }
.v900-hidden { display: none; }

/* === Payment Icons === */
.v900-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.v900-payment-item {
  background: var(--v900-card);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 1.2rem;
  color: var(--v900-text);
  border: 1px solid rgba(255,255,255,0.08);
}

/* === Winner List === */
.v900-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--v900-card);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  border-left: 3px solid var(--v900-success);
}
.v900-winner-name { color: var(--v900-accent2); font-weight: 600; font-size: 1.3rem; }
.v900-winner-game { color: var(--v900-text-muted); font-size: 1.2rem; }
.v900-winner-amount { color: var(--v900-success); font-weight: 700; font-size: 1.4rem; }

/* === Responsive === */
@media (min-width: 769px) {
  .v900-bottom-nav { display: none; }
  .v900-menu-toggle { display: none; }
}
@media (max-width: 768px) {
  .v900-main { padding-bottom: 80px; }
}
