/**
 * JLJL88 Link - Core Stylesheet
 * All classes use prefix: v164-
 * Color palette: #273746, #4169E1, #FFD700, #000080, #F0F8FF
 * Mobile-first design, max-width 430px, rem units with 62.5% root font
 */

/* === CSS Variables === */
:root {
  --v164-primary: #4169E1;
  --v164-secondary: #FFD700;
  --v164-bg-dark: #0a1628;
  --v164-bg-mid: #132238;
  --v164-bg-card: #1a2d47;
  --v164-text: #F0F8FF;
  --v164-text-muted: #8899aa;
  --v164-accent: #FFD700;
  --v164-danger: #e74c3c;
  --v164-success: #2ecc71;
  --v164-navy: #000080;
  --v164-slate: #273746;
  --v164-border: #2a3f5f;
  --v164-gradient-1: linear-gradient(135deg, #4169E1 0%, #273746 100%);
  --v164-gradient-2: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  --v164-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --v164-radius: 1.0rem;
  --v164-radius-sm: 0.6rem;
  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: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--v164-text);
  background: var(--v164-bg-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--v164-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--v164-primary);
}

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

ul, ol {
  list-style: none;
}

/* === Container === */
.v164-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v164-wrapper {
  width: 100%;
  min-height: 100vh;
}

/* === Header === */
.v164-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--v164-bg-dark);
  border-bottom: 1px solid var(--v164-border);
  height: 5.4rem;
  display: flex;
  align-items: center;
}

.v164-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.0rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.v164-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v164-logo-area img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.5rem;
}

.v164-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v164-secondary);
  letter-spacing: 0.03em;
}

.v164-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v164-btn-register,
.v164-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: var(--v164-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.v164-btn-register {
  background: var(--v164-gradient-2);
  color: #1a1a1a;
}

.v164-btn-login {
  background: transparent;
  color: var(--v164-text);
  border: 1.5px solid var(--v164-primary);
}

.v164-btn-register:hover,
.v164-btn-login:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(65,105,225,0.4);
}

.v164-menu-btn {
  background: none;
  border: none;
  color: var(--v164-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* === Mobile Menu === */
.v164-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--v164-bg-mid);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 6rem 0 2rem;
  overflow-y: auto;
}

.v164-menu-active {
  right: 0 !important;
}

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

.v164-overlay-active {
  display: block !important;
}

.v164-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--v164-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.v164-menu-links {
  padding: 0;
}

.v164-menu-links a {
  display: flex;
  align-items: center;
  gap: 1.0rem;
  padding: 1.2rem 1.6rem;
  color: var(--v164-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--v164-border);
  transition: background 0.2s;
}

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

.v164-menu-links a .material-icons {
  font-size: 2.0rem;
  color: var(--v164-primary);
}

/* === Main Content === */
.v164-main {
  padding-top: 5.4rem;
}

/* === Carousel === */
.v164-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--v164-radius) var(--v164-radius);
}

.v164-carousel-track {
  position: relative;
  width: 100%;
  padding-top: 50%;
  overflow: hidden;
  touch-action: pan-y;
}

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

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

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

.v164-carousel-dots {
  position: absolute;
  bottom: 1.0rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 5;
}

.v164-carousel-dot {
  width: 1.0rem;
  height: 1.0rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.v164-dot-active {
  background: var(--v164-secondary);
}

/* === Sections === */
.v164-section {
  padding: 2.0rem 0;
}

.v164-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--v164-secondary);
  margin-bottom: 1.4rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--v164-primary);
}

.v164-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--v164-text);
  margin-bottom: 1.0rem;
}

/* === Game Grid === */
.v164-category-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v164-text);
  margin: 1.6rem 0 1.0rem;
  padding: 0.6rem 1.0rem;
  background: var(--v164-bg-card);
  border-radius: var(--v164-radius-sm);
  border-left: 3px solid var(--v164-primary);
}

.v164-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0 0.4rem;
}

.v164-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s;
  padding: 0.4rem;
  border-radius: var(--v164-radius-sm);
  background: var(--v164-bg-card);
}

.v164-game-item:hover {
  transform: translateY(-2px);
}

.v164-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--v164-radius-sm);
  margin-bottom: 0.4rem;
}

.v164-game-item span {
  font-size: 1.1rem;
  color: var(--v164-text-muted);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* === Content Blocks === */
.v164-content-block {
  background: var(--v164-bg-mid);
  border-radius: var(--v164-radius);
  padding: 1.8rem;
  margin: 1.4rem 0;
  border: 1px solid var(--v164-border);
}

.v164-content-block h2 {
  font-size: 1.8rem;
  color: var(--v164-secondary);
  margin-bottom: 1.0rem;
}

.v164-content-block h3 {
  font-size: 1.5rem;
  color: var(--v164-primary);
  margin: 1.0rem 0 0.6rem;
}

.v164-content-block p {
  font-size: 1.4rem;
  color: var(--v164-text);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.v164-content-block ul {
  padding-left: 1.6rem;
  margin-bottom: 0.8rem;
}

.v164-content-block li {
  font-size: 1.4rem;
  color: var(--v164-text);
  line-height: 1.6;
  margin-bottom: 0.4rem;
  list-style: disc;
}

/* === Promo CTA Buttons === */
.v164-cta-btn {
  display: inline-block;
  background: var(--v164-gradient-2);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 1.0rem 2.4rem;
  border-radius: var(--v164-radius);
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.v164-cta-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(255,215,0,0.4);
}

.v164-promo-text {
  color: var(--v164-secondary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.v164-promo-text:hover {
  color: var(--v164-primary);
}

/* === Winner Showcase === */
.v164-winner-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.v164-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.0rem;
  background: var(--v164-bg-card);
  border-radius: var(--v164-radius-sm);
}

.v164-winner-name {
  color: var(--v164-text);
  font-size: 1.3rem;
}

.v164-winner-amount {
  color: var(--v164-secondary);
  font-weight: 700;
  font-size: 1.4rem;
}

/* === Testimonials === */
.v164-testimonial {
  background: var(--v164-bg-card);
  border-radius: var(--v164-radius);
  padding: 1.4rem;
  margin-bottom: 1.0rem;
  border-left: 3px solid var(--v164-primary);
}

.v164-testimonial-text {
  font-size: 1.3rem;
  color: var(--v164-text);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.v164-testimonial-author {
  font-size: 1.2rem;
  color: var(--v164-secondary);
  font-weight: 600;
}

/* === Payment Methods === */
.v164-payment-row {
  display: flex;
  gap: 1.0rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.0rem 0;
}

.v164-payment-item {
  background: var(--v164-bg-card);
  border: 1px solid var(--v164-border);
  border-radius: var(--v164-radius-sm);
  padding: 0.8rem 1.4rem;
  font-size: 1.3rem;
  color: var(--v164-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* === Features Grid === */
.v164-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.0rem;
}

.v164-feature-card {
  background: var(--v164-bg-card);
  border-radius: var(--v164-radius);
  padding: 1.4rem;
  text-align: center;
  border: 1px solid var(--v164-border);
  transition: transform 0.15s;
}

.v164-feature-card:hover {
  transform: translateY(-2px);
}

.v164-feature-icon {
  font-size: 2.8rem;
  color: var(--v164-primary);
  margin-bottom: 0.8rem;
}

.v164-feature-card h4 {
  font-size: 1.4rem;
  color: var(--v164-secondary);
  margin-bottom: 0.4rem;
}

.v164-feature-card p {
  font-size: 1.2rem;
  color: var(--v164-text-muted);
  line-height: 1.4;
}

/* === Footer === */
.v164-footer {
  background: var(--v164-bg-mid);
  padding: 2.0rem 0 3.0rem;
  border-top: 1px solid var(--v164-border);
  margin-top: 2.0rem;
}

.v164-footer-brand {
  text-align: center;
  margin-bottom: 1.6rem;
}

.v164-footer-brand p {
  font-size: 1.3rem;
  color: var(--v164-text-muted);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.v164-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.v164-footer-links a {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--v164-bg-card);
  border: 1px solid var(--v164-border);
  border-radius: var(--v164-radius-sm);
  color: var(--v164-text);
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
}

.v164-footer-links a:hover {
  background: var(--v164-primary);
  color: #fff;
}

.v164-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: var(--v164-text-muted);
}

/* === Bottom Navigation === */
.v164-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--v164-bg-dark);
  border-top: 1px solid var(--v164-border);
  height: 6.0rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.4rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}

.v164-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6.0rem;
  min-height: 5.0rem;
  background: none;
  border: none;
  color: var(--v164-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 0.4rem;
  border-radius: 0.8rem;
}

.v164-bottom-nav-btn:hover,
.v164-bottom-nav-btn:active {
  color: var(--v164-secondary);
  transform: scale(1.08);
}

.v164-bottom-nav-btn.active {
  color: var(--v164-secondary);
}

.v164-bottom-nav-btn i,
.v164-bottom-nav-btn .material-icons,
.v164-bottom-nav-btn ion-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.v164-bottom-nav-btn span {
  font-size: 1.0rem;
  line-height: 1.2;
}

/* === Mobile Bottom Padding === */
.v164-bottom-spacer {
  height: 7.0rem;
}

/* === RTP Table === */
.v164-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}

.v164-rtp-table th {
  background: var(--v164-primary);
  color: #fff;
  padding: 0.8rem 0.6rem;
  text-align: left;
  font-weight: 600;
}

.v164-rtp-table td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--v164-border);
  color: var(--v164-text);
}

.v164-rtp-table tr:nth-child(even) {
  background: rgba(65,105,225,0.05);
}

/* === App Download CTA === */
.v164-app-cta {
  background: var(--v164-gradient-1);
  border-radius: var(--v164-radius);
  padding: 2.0rem;
  text-align: center;
  margin: 1.4rem 0;
}

.v164-app-cta h3 {
  color: var(--v164-secondary);
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.v164-app-cta p {
  color: var(--v164-text);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

/* === Responsive === */
@media (min-width: 769px) {
  .v164-bottom-nav {
    display: none;
  }
  .v164-bottom-spacer {
    height: 0;
  }
}

@media (max-width: 768px) {
  .v164-main {
    padding-bottom: 7.0rem;
  }
}

/* === Utility Classes === */
.v164-text-center { text-align: center; }
.v164-text-gold { color: var(--v164-secondary); }
.v164-text-blue { color: var(--v164-primary); }
.v164-mt-1 { margin-top: 0.8rem; }
.v164-mt-2 { margin-top: 1.6rem; }
.v164-mb-1 { margin-bottom: 0.8rem; }
.v164-mb-2 { margin-bottom: 1.6rem; }
.v164-fw-bold { font-weight: 700; }
