/**
 * luckystarz Layout Stylesheet
 * All classes use prefix "v1b2-" for namespace isolation
 * Color palette: #1E90FF, #0D1117, #CD853F, #E65100, #BC8F8F
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --v1b2-primary: #1E90FF;
  --v1b2-bg: #0D1117;
  --v1b2-gold: #CD853F;
  --v1b2-accent: #E65100;
  --v1b2-rose: #BC8F8F;
  --v1b2-text: #E8E8E8;
  --v1b2-text-muted: #8B949E;
  --v1b2-card-bg: #161B22;
  --v1b2-card-border: #21262D;
  --v1b2-header-bg: rgba(13, 17, 23, 0.95);
  --v1b2-radius: 10px;
  --v1b2-radius-sm: 6px;
  font-size: 62.5%;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--v1b2-primary);
  text-decoration: none;
}

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

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

/* Header */
.v1b2-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: var(--v1b2-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 1px solid var(--v1b2-card-border);
}

.v1b2-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.v1b2-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.v1b2-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v1b2-primary);
  letter-spacing: 0.5px;
}

.v1b2-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v1b2-btn-register {
  background: linear-gradient(135deg, var(--v1b2-primary), #4169E1);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--v1b2-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 34px;
  min-width: 64px;
  transition: opacity 0.2s, transform 0.15s;
}

.v1b2-btn-register:hover {
  opacity: 0.9;
}

.v1b2-btn-login {
  background: transparent;
  color: var(--v1b2-primary);
  border: 1px solid var(--v1b2-primary);
  padding: 6px 14px;
  border-radius: var(--v1b2-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 34px;
  min-width: 64px;
  transition: opacity 0.2s;
}

.v1b2-btn-login:hover {
  background: rgba(30, 144, 255, 0.1);
}

/* Menu Toggle */
.v1b2-menu-toggle {
  background: none;
  border: none;
  color: var(--v1b2-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.v1b2-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--v1b2-bg);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 20px;
  overflow-y: auto;
  border-left: 1px solid var(--v1b2-card-border);
}

.v1b2-menu-active {
  right: 0;
}

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

.v1b2-overlay-active {
  display: block;
}

.v1b2-menu-close {
  background: none;
  border: none;
  color: var(--v1b2-text);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 16px;
}

.v1b2-menu-links {
  margin-top: 40px;
  list-style: none;
}

.v1b2-menu-links li {
  margin-bottom: 4px;
}

.v1b2-menu-links a {
  display: block;
  padding: 12px 16px;
  color: var(--v1b2-text);
  font-size: 1.4rem;
  border-radius: var(--v1b2-radius-sm);
  transition: background 0.2s;
}

.v1b2-menu-links a:hover {
  background: var(--v1b2-card-bg);
  color: var(--v1b2-primary);
}

/* Carousel */
.v1b2-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--v1b2-radius);
  margin-top: 56px;
  aspect-ratio: 16/9;
}

.v1b2-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.v1b2-slide-active {
  opacity: 1;
}

.v1b2-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v1b2-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.v1b2-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
}

.v1b2-dot-active {
  background: var(--v1b2-primary);
}

/* Sections */
.v1b2-section {
  padding: 20px 0;
}

.v1b2-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v1b2-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v1b2-section-title i {
  color: var(--v1b2-primary);
}

/* Game Grid */
.v1b2-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.v1b2-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--v1b2-radius-sm);
  padding: 4px;
}

.v1b2-game-item:hover {
  transform: scale(1.04);
}

.v1b2-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--v1b2-radius-sm);
  border: 1px solid var(--v1b2-card-border);
}

.v1b2-game-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--v1b2-text-muted);
  margin-top: 4px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category header */
.v1b2-cat-header {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v1b2-gold);
  margin: 18px 0 10px;
  padding-left: 8px;
  border-left: 3px solid var(--v1b2-primary);
}

/* Content Cards */
.v1b2-card {
  background: var(--v1b2-card-bg);
  border: 1px solid var(--v1b2-card-border);
  border-radius: var(--v1b2-radius);
  padding: 16px;
  margin-bottom: 14px;
}

.v1b2-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v1b2-primary);
  margin-bottom: 8px;
}

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

/* Promo Button */
.v1b2-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--v1b2-accent), var(--v1b2-primary));
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, opacity 0.2s;
  min-height: 44px;
}

.v1b2-promo-btn:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

/* Promo text link */
.v1b2-promo-link {
  color: var(--v1b2-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Footer */
.v1b2-footer {
  background: var(--v1b2-card-bg);
  border-top: 1px solid var(--v1b2-card-border);
  padding: 24px 12px 80px;
  text-align: center;
}

.v1b2-footer-desc {
  font-size: 1.2rem;
  color: var(--v1b2-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.v1b2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.v1b2-footer-links a {
  color: var(--v1b2-primary);
  font-size: 1.2rem;
  padding: 4px 10px;
  border: 1px solid var(--v1b2-card-border);
  border-radius: 20px;
  transition: background 0.2s;
}

.v1b2-footer-links a:hover {
  background: rgba(30, 144, 255, 0.1);
}

.v1b2-footer-copy {
  font-size: 1.1rem;
  color: var(--v1b2-text-muted);
  margin-top: 10px;
}

/* Bottom Navigation */
.v1b2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--v1b2-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid var(--v1b2-card-border);
}

.v1b2-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--v1b2-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  gap: 2px;
}

.v1b2-nav-btn:hover,
.v1b2-nav-btn:focus {
  color: var(--v1b2-primary);
}

.v1b2-nav-btn-active {
  color: var(--v1b2-primary);
}

.v1b2-nav-btn .material-icons,
.v1b2-nav-btn .v1b2-nav-icon {
  font-size: 22px;
}

.v1b2-nav-btn span {
  font-size: 1rem;
  line-height: 1.2;
}

/* Testimonials */
.v1b2-testimonial {
  background: var(--v1b2-card-bg);
  border: 1px solid var(--v1b2-card-border);
  border-radius: var(--v1b2-radius);
  padding: 14px;
  margin-bottom: 10px;
}

.v1b2-testimonial-name {
  font-weight: 600;
  color: var(--v1b2-primary);
  font-size: 1.3rem;
}

.v1b2-testimonial-text {
  color: var(--v1b2-text-muted);
  font-size: 1.2rem;
  margin-top: 6px;
  line-height: 1.5;
}

.v1b2-testimonial-stars {
  color: var(--v1b2-gold);
  margin: 4px 0;
  font-size: 1.2rem;
}

/* Winners table */
.v1b2-winners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.v1b2-winner-item {
  background: var(--v1b2-card-bg);
  border: 1px solid var(--v1b2-card-border);
  border-radius: var(--v1b2-radius-sm);
  padding: 10px 8px;
  text-align: center;
}

.v1b2-winner-name {
  font-size: 1.1rem;
  color: var(--v1b2-primary);
  font-weight: 600;
}

.v1b2-winner-amount {
  font-size: 1.3rem;
  color: var(--v1b2-gold);
  font-weight: 700;
  margin-top: 2px;
}

.v1b2-winner-game {
  font-size: 1rem;
  color: var(--v1b2-text-muted);
  margin-top: 2px;
}

/* Payment methods */
.v1b2-payment-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.v1b2-payment-item {
  background: var(--v1b2-card-bg);
  border: 1px solid var(--v1b2-card-border);
  border-radius: var(--v1b2-radius-sm);
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--v1b2-text-muted);
}

/* RTP bar */
.v1b2-rtp-bar {
  margin-bottom: 8px;
}

.v1b2-rtp-label {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.v1b2-rtp-label span:first-child {
  color: var(--v1b2-text);
}

.v1b2-rtp-label span:last-child {
  color: var(--v1b2-gold);
  font-weight: 600;
}

.v1b2-rtp-track {
  height: 8px;
  background: var(--v1b2-card-border);
  border-radius: 4px;
  overflow: hidden;
}

.v1b2-rtp-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--v1b2-primary), var(--v1b2-gold));
  transition: width 0.6s ease;
}

/* Category Highlights */
.v1b2-cat-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--v1b2-card-bg);
  border: 1px solid var(--v1b2-card-border);
  border-radius: var(--v1b2-radius);
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.v1b2-cat-highlight:hover {
  border-color: var(--v1b2-primary);
}

.v1b2-cat-highlight-icon {
  font-size: 2.4rem;
  color: var(--v1b2-primary);
  min-width: 36px;
  text-align: center;
}

.v1b2-cat-highlight-info h4 {
  font-size: 1.3rem;
  color: var(--v1b2-text);
  font-weight: 600;
}

.v1b2-cat-highlight-info p {
  font-size: 1.1rem;
  color: var(--v1b2-text-muted);
}

/* App download CTA */
.v1b2-app-cta {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.15), rgba(205, 133, 63, 0.1));
  border: 1px solid var(--v1b2-primary);
  border-radius: var(--v1b2-radius);
  padding: 20px;
  text-align: center;
}

.v1b2-app-cta h3 {
  font-size: 1.6rem;
  color: var(--v1b2-primary);
  margin-bottom: 8px;
}

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

/* Main content padding */
main {
  padding-top: 56px;
}

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

/* Mobile: add bottom padding for nav */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* Utility */
.v1b2-text-center {
  text-align: center;
}

.v1b2-mt-10 {
  margin-top: 10px;
}

.v1b2-mb-10 {
  margin-bottom: 10px;
}

.v1b2-mb-20 {
  margin-bottom: 20px;
}
