/**
 * lodi646 Main Stylesheet
 * All classes use v280- prefix for namespace isolation
 * Color palette: #0097A7 | #0D1117 | #FF9800 | #E65100 | #80CBC4
 * Mobile-first responsive design, max-width: 430px
 */

/* CSS Variables */
:root {
  --v280-primary: #0097A7;
  --v280-bg: #0D1117;
  --v280-accent: #FF9800;
  --v280-deep: #E65100;
  --v280-light: #80CBC4;
  --v280-text: #E8EAED;
  --v280-text-muted: #8B949E;
  --v280-card-bg: #161B22;
  --v280-card-border: #21262D;
  --v280-radius: 8px;
  --v280-radius-lg: 12px;
  --v280-shadow: 0 4px 16px rgba(0,0,0,0.3);
  --v280-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--v280-bg);
  color: var(--v280-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== HEADER ===== */
.v280-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(135deg, var(--v280-bg) 0%, #1a2332 100%);
  border-bottom: 2px solid var(--v280-primary);
  z-index: 1000;
  transition: var(--v280-transition);
}
.v280-header-scrolled {
  background: rgba(13,17,23,0.97);
  box-shadow: 0 2px 12px rgba(0,151,167,0.2);
}
.v280-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; height: 56px;
}
.v280-logo-area { display: flex; align-items: center; gap: 0.8rem; }
.v280-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.v280-logo-area span { font-size: 1.6rem; font-weight: 700; color: var(--v280-accent); letter-spacing: 0.5px; }

.v280-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v280-btn-register, .v280-btn-login {
  padding: 0.5rem 1.4rem; border-radius: 20px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; transition: var(--v280-transition);
  min-height: 34px;
}
.v280-btn-register {
  background: linear-gradient(135deg, var(--v280-accent), var(--v280-deep));
  color: #fff;
}
.v280-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(255,152,0,0.4); }
.v280-btn-login {
  background: transparent; color: var(--v280-light);
  border: 1.5px solid var(--v280-light);
}
.v280-btn-login:hover { background: var(--v280-light); color: var(--v280-bg); }

/* Menu Toggle */
.v280-menu-toggle {
  background: none; border: none; color: var(--v280-text); cursor: pointer;
  padding: 0.6rem; font-size: 2rem; line-height: 1; display: flex; align-items: center;
}
.v280-toggle-active .v280-bar1 { transform: rotate(45deg) translate(4px, 4px); }
.v280-toggle-active .v280-bar2 { opacity: 0; }
.v280-toggle-active .v280-bar3 { transform: rotate(-45deg) translate(4px, -4px); }
.v280-bar1, .v280-bar2, .v280-bar3 {
  display: block; width: 20px; height: 2px; background: var(--v280-text);
  margin: 3px 0; transition: var(--v280-transition); border-radius: 1px;
}

/* Mobile Menu Panel */
.v280-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--v280-bg); z-index: 9999; transition: right 0.35s ease;
  border-left: 2px solid var(--v280-primary); overflow-y: auto; padding: 2rem 0;
}
.v280-menu-active { right: 0; }
.v280-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998; display: none;
}
.v280-overlay-active { display: block; }
.v280-mobile-nav-link {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 2rem;
  color: var(--v280-text); text-decoration: none; font-size: 1.4rem;
  transition: var(--v280-transition); border-bottom: 1px solid var(--v280-card-border);
}
.v280-mobile-nav-link:hover { background: var(--v280-card-bg); color: var(--v280-accent); }

/* ===== CAROUSEL ===== */
.v280-carousel { position: relative; overflow: hidden; margin-top: 56px; border-radius: 0; }
.v280-slide {
  display: none; width: 100%; cursor: pointer;
}
.v280-slide-active { display: block; }
.v280-slide img { width: 100%; height: auto; display: block; }
.v280-slide-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.v280-slide-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; border: none; transition: var(--v280-transition);
}
.v280-dot-active { background: var(--v280-accent); width: 20px; border-radius: 4px; }

/* ===== SECTIONS ===== */
.v280-section { padding: 2rem 0; }
.v280-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v280-accent);
  margin-bottom: 1.2rem; padding: 0 1.2rem; position: relative;
}
.v280-section-title::after {
  content: ''; display: block; width: 40px; height: 3px;
  background: var(--v280-primary); margin-top: 0.4rem; border-radius: 2px;
}

/* ===== GAME GRID ===== */
.v280-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0 1.2rem;
}
.v280-game-item {
  text-align: center; cursor: pointer; transition: var(--v280-transition);
  background: var(--v280-card-bg); border-radius: var(--v280-radius);
  padding: 0.6rem; border: 1px solid var(--v280-card-border);
}
.v280-game-item:hover { transform: translateY(-2px); border-color: var(--v280-primary); }
.v280-game-item img { width: 100%; aspect-ratio: 1; border-radius: 6px; object-fit: cover; }
.v280-game-item span {
  display: block; font-size: 1.1rem; color: var(--v280-text-muted);
  margin-top: 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Category Label */
.v280-cat-label {
  font-size: 1.5rem; font-weight: 600; color: var(--v280-primary);
  margin: 1.6rem 0 0.8rem 1.2rem; display: flex; align-items: center; gap: 0.6rem;
}
.v280-cat-label i { font-size: 1.6rem; }

/* ===== CONTENT CARDS ===== */
.v280-card {
  background: var(--v280-card-bg); border: 1px solid var(--v280-card-border);
  border-radius: var(--v280-radius-lg); padding: 1.6rem; margin: 1rem 1.2rem;
}
.v280-card h3 { font-size: 1.5rem; color: var(--v280-accent); margin-bottom: 0.8rem; }
.v280-card p { font-size: 1.3rem; color: var(--v280-text-muted); line-height: 1.8rem; }

/* Promo Link Text */
.v280-promo-text {
  color: var(--v280-accent); font-weight: 600; cursor: pointer;
  text-decoration: none; transition: var(--v280-transition);
}
.v280-promo-text:hover { color: var(--v280-deep); text-decoration: underline; }

/* CTA Button */
.v280-cta {
  display: inline-block; padding: 1rem 2.4rem; border-radius: 24px;
  background: linear-gradient(135deg, var(--v280-accent), var(--v280-deep));
  color: #fff; font-size: 1.4rem; font-weight: 700; cursor: pointer;
  border: none; text-decoration: none; transition: var(--v280-transition);
  text-align: center;
}
.v280-cta:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(255,152,0,0.4); }

.v280-cta-secondary {
  background: linear-gradient(135deg, var(--v280-primary), #007B8A);
}
.v280-cta-secondary:hover { box-shadow: 0 4px 16px rgba(0,151,167,0.4); }

/* ===== FEATURES LIST ===== */
.v280-features { display: flex; flex-direction: column; gap: 1rem; padding: 0 1.2rem; }
.v280-feature-item {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1rem;
  background: var(--v280-card-bg); border-radius: var(--v280-radius);
  border-left: 3px solid var(--v280-primary);
}
.v280-feature-item i { font-size: 2rem; color: var(--v280-accent); flex-shrink: 0; margin-top: 2px; }
.v280-feature-item h4 { font-size: 1.3rem; color: var(--v280-text); margin-bottom: 0.3rem; }
.v280-feature-item p { font-size: 1.2rem; color: var(--v280-text-muted); }

/* ===== TESTIMONIALS ===== */
.v280-testimonials { display: flex; flex-direction: column; gap: 1rem; padding: 0 1.2rem; }
.v280-testimonial {
  background: var(--v280-card-bg); border-radius: var(--v280-radius-lg);
  padding: 1.4rem; border: 1px solid var(--v280-card-border);
}
.v280-testimonial-text { font-size: 1.3rem; color: var(--v280-text); font-style: italic; margin-bottom: 0.8rem; }
.v280-testimonial-author { font-size: 1.2rem; color: var(--v280-primary); font-weight: 600; }

/* ===== FOOTER ===== */
.v280-footer {
  background: var(--v280-card-bg); border-top: 2px solid var(--v280-primary);
  padding: 2rem 1.2rem 8rem; text-align: center;
}
.v280-footer-brand { font-size: 1.3rem; color: var(--v280-text-muted); line-height: 1.8rem; margin-bottom: 1.4rem; }
.v280-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 1.4rem; }
.v280-footer-link {
  padding: 0.5rem 1rem; border-radius: 16px; background: rgba(0,151,167,0.15);
  color: var(--v280-light); font-size: 1.1rem; cursor: pointer;
  text-decoration: none; transition: var(--v280-transition); border: 1px solid transparent;
}
.v280-footer-link:hover { border-color: var(--v280-primary); background: rgba(0,151,167,0.25); }
.v280-copyright { font-size: 1.1rem; color: var(--v280-text-muted); margin-top: 1rem; }

/* ===== BOTTOM NAV ===== */
.v280-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px;
  background: linear-gradient(180deg, #1a2332 0%, var(--v280-bg) 100%);
  border-top: 2px solid var(--v280-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 0 0.4rem;
}
.v280-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 48px; background: none; border: none;
  color: var(--v280-text-muted); cursor: pointer; transition: var(--v280-transition);
  padding: 0.4rem; border-radius: 8px; position: relative;
}
.v280-bottom-btn i, .v280-bottom-btn .material-icons { font-size: 22px; transition: var(--v280-transition); }
.v280-bottom-btn span { font-size: 1rem; margin-top: 2px; }
.v280-bottom-btn:hover, .v280-bottom-active {
  color: var(--v280-accent); background: rgba(255,152,0,0.1);
}
.v280-bottom-btn:hover i, .v280-bottom-active i,
.v280-bottom-btn:hover .material-icons, .v280-bottom-active .material-icons {
  transform: scale(1.15);
}
.v280-bottom-active::after {
  content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: var(--v280-accent); border-radius: 0 0 3px 3px;
}

/* ===== WINNERS TICKER ===== */
.v280-winners { padding: 0 1.2rem; }
.v280-winner-row {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0;
  border-bottom: 1px solid var(--v280-card-border);
}
.v280-winner-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--v280-primary); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 1.2rem; font-weight: 600; flex-shrink: 0;
}
.v280-winner-info { flex: 1; }
.v280-winner-name { font-size: 1.2rem; color: var(--v280-text); font-weight: 500; }
.v280-winner-game { font-size: 1.1rem; color: var(--v280-text-muted); }
.v280-winner-amount { font-size: 1.3rem; color: var(--v280-accent); font-weight: 700; }

/* ===== PAYMENT ICONS ===== */
.v280-payments { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; padding: 0 1.2rem; }
.v280-payment-icon {
  padding: 0.6rem 1.2rem; background: var(--v280-card-bg); border-radius: 20px;
  font-size: 1.2rem; color: var(--v280-light); border: 1px solid var(--v280-card-border);
}

/* ===== RTP TABLE ===== */
.v280-rtp-table { width: 100%; border-collapse: collapse; padding: 0 1.2rem; }
.v280-rtp-table th {
  background: var(--v280-primary); color: #fff; padding: 0.8rem;
  font-size: 1.2rem; text-align: left;
}
.v280-rtp-table td {
  padding: 0.8rem; border-bottom: 1px solid var(--v280-card-border);
  font-size: 1.2rem; color: var(--v280-text);
}
.v280-rtp-table tr:hover td { background: rgba(0,151,167,0.08); }
.v280-rtp-high { color: #4CAF50; font-weight: 600; }
.v280-rtp-mid { color: var(--v280-accent); font-weight: 600; }

/* ===== HELPER CLASSES ===== */
.v280-text-center { text-align: center; }
.v280-mt-1 { margin-top: 1rem; }
.v280-mt-2 { margin-top: 2rem; }
.v280-mb-1 { margin-bottom: 1rem; }
.v280-mb-2 { margin-bottom: 2rem; }
.v280-py-2 { padding: 2rem 0; }
.v280-hidden { display: none; }
.v280-promo-btn-row {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.2rem;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .v280-bottom-nav { display: none; }
  body { max-width: 430px; }
}
@media (max-width: 768px) {
  .v280-main-content { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .v280-game-grid { grid-template-columns: repeat(3, 1fr); }
}
