/* css/theme.css - kuwin02 core styles. All classes use v9d0- prefix. */
/* Color palette: #0E1621 deep bg | #FF9500 primary | #FFAA00 accent */

:root {
  --v9d0-bg: #0E1621;
  --v9d0-bg-2: #142033;
  --v9d0-bg-3: #1b2a44;
  --v9d0-primary: #FF9500;
  --v9d0-accent: #FFAA00;
  --v9d0-text: #ffffff;
  --v9d0-text-dim: #b8c2d0;
  --v9d0-text-mute: #7a8699;
  --v9d0-border: #243756;
  --v9d0-green: #2ecc71;
  --v9d0-red: #ff4d4f;
}

html { font-size: 62.5%; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--v9d0-bg);
  color: var(--v9d0-text);
  line-height: 1.6rem;
  font-size: 1.4rem;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

a { color: var(--v9d0-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Layout */
.v9d0-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v9d0-wrapper { padding-bottom: 2rem; }
.v9d0-section { margin: 1.6rem 0; padding: 1.4rem; background: var(--v9d0-bg-2); border-radius: 1rem; }
.v9d0-grid { display: grid; gap: 1rem; }

/* Header */
.v9d0-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #0E1621 0%, #142033 100%);
  border-bottom: 1px solid var(--v9d0-border);
  max-width: 430px; margin: 0 auto;
}
.v9d0-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; height: 5.2rem;
}
.v9d0-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--v9d0-accent); font-weight: 800; font-size: 1.8rem; }
.v9d0-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.5rem; }
.v9d0-header-btns { display: flex; gap: 0.5rem; }
.v9d0-btn {
  border: none; border-radius: 1.4rem; padding: 0.6rem 1.2rem;
  font-weight: 700; font-size: 1.3rem; cursor: pointer;
  min-height: 3.2rem; display: inline-flex; align-items: center; gap: 0.3rem;
}
.v9d0-btn-register { background: var(--v9d0-primary); color: #1a1300; }
.v9d0-btn-login { background: transparent; color: var(--v9d0-accent); border: 1.5px solid var(--v9d0-accent); }
.v9d0-btn:hover { opacity: 0.9; }

/* Expandable nav menu */
.v9d0-nav-toggle {
  background: transparent; border: none; color: var(--v9d0-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem; min-width: 4.4rem; min-height: 4.4rem;
}
.v9d0-nav {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  background: var(--v9d0-bg-2); border-top: 1px solid var(--v9d0-border);
}
.v9d0-nav-open { max-height: 38rem; }
.v9d0-nav-list { display: flex; flex-direction: column; padding: 0.6rem 1rem; }
.v9d0-nav-item {
  padding: 0.8rem 0.4rem; color: var(--v9d0-text-dim); font-size: 1.4rem;
  border-bottom: 1px solid rgba(36,55,86,0.5); display: flex; align-items: center; gap: 0.6rem;
}
.v9d0-nav-item:last-child { border-bottom: none; }
.v9d0-nav-item:hover { color: var(--v9d0-accent); background: var(--v9d0-bg-3); text-decoration: none; border-radius: 0.6rem; }

/* Hero / Carousel */
.v9d0-hero { position: relative; width: 100%; overflow: hidden; border-radius: 0; }
.v9d0-slide { display: none; width: 100%; }
.v9d0-slide img { width: 100%; height: auto; border-radius: 0.8rem; }
.v9d0-slide-dots { position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 5; }
.v9d0-slide-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.v9d0-slide-dot-active { background: var(--v9d0-primary); }

/* Headings */
.v9d0-h1 { font-size: 2rem; font-weight: 800; margin: 1.4rem 0 0.8rem; color: var(--v9d0-accent); line-height: 1.3; }
.v9d0-h2 { font-size: 1.6rem; font-weight: 700; margin: 1.2rem 0 0.6rem; color: var(--v9d0-accent); }
.v9d0-h3 { font-size: 1.4rem; font-weight: 700; margin: 1rem 0 0.4rem; color: var(--v9d0-primary); }
.v9d0-p { margin: 0.5rem 0; color: var(--v9d0-text-dim); }
.v9d0-text-link { color: var(--v9d0-accent); font-weight: 700; }

/* Game categories */
.v9d0-cat-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.5rem; font-weight: 800; color: var(--v9d0-accent);
  margin: 1.4rem 0 0.6rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--v9d0-border);
}
.v9d0-cat-title .bi, .v9d0-cat-title .material-icons { font-size: 1.6rem; }

/* Game grid */
.v9d0-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0.6rem 0; }
.v9d0-game-card { background: var(--v9d0-bg-3); border-radius: 0.8rem; overflow: hidden; cursor: pointer; transition: transform 0.2s; border: 1px solid var(--v9d0-border); }
.v9d0-game-card:hover { transform: translateY(-2px); border-color: var(--v9d0-primary); }
.v9d0-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.v9d0-game-name { font-size: 1.1rem; text-align: center; padding: 0.4rem 0.3rem; color: var(--v9d0-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--v9d0-bg-2); }

/* Promo CTA banner */
.v9d0-cta { display: block; margin: 1.2rem 0; padding: 1.2rem; background: linear-gradient(135deg, var(--v9d0-primary), var(--v9d0-accent)); border-radius: 1rem; color: #1a1300; font-weight: 800; text-align: center; font-size: 1.4rem; cursor: pointer; border: none; }
.v9d0-cta:hover { opacity: 0.92; text-decoration: none; }

/* Info modules */
.v9d0-card { background: var(--v9d0-bg-2); border: 1px solid var(--v9d0-border); border-radius: 1rem; padding: 1.2rem; margin: 1rem 0; }
.v9d0-card-title { font-size: 1.5rem; font-weight: 700; color: var(--v9d0-accent); margin-bottom: 0.6rem; }
.v9d0-feature-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(36,55,86,0.5); }
.v9d0-feature-row:last-child { border-bottom: none; }
.v9d0-feature-icon { width: 3.2rem; height: 3.2rem; border-radius: 0.6rem; background: var(--v9d0-bg-3); display: flex; align-items: center; justify-content: center; color: var(--v9d0-primary); flex-shrink: 0; }

/* Testimonial */
.v9d0-testimonial { background: var(--v9d0-bg-2); border-left: 3px solid var(--v9d0-primary); padding: 1rem; border-radius: 0.6rem; margin: 0.8rem 0; }
.v9d0-testimonial-name { font-weight: 700; color: var(--v9d0-accent); margin-bottom: 0.3rem; font-size: 1.3rem; }
.v9d0-stars { color: var(--v9d0-accent); }

/* Payment chips */
.v9d0-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.v9d0-pay-chip { background: var(--v9d0-bg-3); border: 1px solid var(--v9d0-border); border-radius: 2rem; padding: 0.5rem 1rem; font-size: 1.2rem; color: var(--v9d0-text-dim); }

/* Winners list */
.v9d0-winner { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(36,55,86,0.5); font-size: 1.2rem; }
.v9d0-winner-amount { color: var(--v9d0-green); font-weight: 700; }

/* Footer */
.v9d0-footer { background: var(--v9d0-bg-2); border-top: 1px solid var(--v9d0-border); padding: 1.4rem 1.2rem 7.6rem; margin-top: 1.6rem; }
.v9d0-footer-intro { color: var(--v9d0-text-dim); font-size: 1.2rem; line-height: 1.6; margin-bottom: 1rem; }
.v9d0-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.v9d0-footer-link { background: var(--v9d0-bg-3); border: 1px solid var(--v9d0-border); color: var(--v9d0-text-dim); padding: 0.5rem 0.9rem; border-radius: 0.6rem; font-size: 1.2rem; }
.v9d0-footer-link:hover { color: var(--v9d0-accent); text-decoration: none; border-color: var(--v9d0-primary); }
.v9d0-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.v9d0-footer-promo { background: var(--v9d0-primary); color: #1a1300; font-weight: 700; padding: 0.5rem 1rem; border-radius: 1.2rem; font-size: 1.2rem; cursor: pointer; border: none; }
.v9d0-copyright { color: var(--v9d0-text-mute); font-size: 1.1rem; margin-top: 1rem; }

/* Mobile bottom nav */
.v9d0-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: 6rem; background: linear-gradient(180deg, #142033 0%, #0E1621 100%);
  border-top: 1px solid var(--v9d0-border);
  display: flex; justify-content: space-around; align-items: center;
}
.v9d0-navbtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 6rem; background: transparent; border: none;
  color: var(--v9d0-text-mute); cursor: pointer; gap: 0.2rem; flex: 1;
  transition: transform 0.2s, color 0.2s; padding: 0;
}
.v9d0-navbtn .fa, .v9d0-navbtn .fas, .v9d0-navbtn .far, .v9d0-navbtn .fad { font-size: 2.2rem; }
.v9d0-navbtn .material-icons { font-size: 2.4rem; }
.v9d0-navbtn-label { font-size: 1rem; font-weight: 600; }
.v9d0-navbtn:hover, .v9d0-navbtn-active { color: var(--v9d0-accent); transform: scale(1.06); }
.v9d0-navbtn-active .v9d0-navbtn-label { color: var(--v9d0-primary); }

/* Responsive */
@media (max-width: 768px) {
  .v9d0-main { padding-bottom: 80px; }
}
@media (min-width: 769px) {
  .v9d0-bottomnav { display: none; }
  .v9d0-header { max-width: 430px; }
  .v9d0-footer { padding-bottom: 1.4rem; }
}
@media (max-width: 360px) {
  html { font-size: 55%; }
  .v9d0-game-grid { grid-template-columns: repeat(2, 1fr); }
}