/**
 * 88 Lucky PH - Core Stylesheet
 * All classes use prefix "se03-" for namespace isolation
 * Colors: #36454F (charcoal), #212F3D (dark navy), #2F2F2F (dark gray)
 * Mobile-first design, max-width: 430px
 */

/* CSS Variables */
:root {
  --se03-primary: #36454F;
  --se03-secondary: #212F3D;
  --se03-dark: #2F2F2F;
  --se03-accent: #D4AF37;
  --se03-accent-light: #E8C547;
  --se03-text: #F0F0F0;
  --se03-text-muted: #A0B0C0;
  --se03-bg: #1A1A2E;
  --se03-card-bg: #2A3A4A;
  --se03-border: #3A4A5A;
  --se03-success: #2ECC71;
  --se03-danger: #E74C3C;
  --se03-radius: 8px;
  --se03-header-h: 56px;
  --se03-bottom-nav-h: 62px;
  --se03-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--se03-font);
  background: var(--se03-bg);
  color: var(--se03-text);
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--se03-accent); text-decoration: none; }
a:hover { color: var(--se03-accent-light); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.se03-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--se03-header-h);
  background: var(--se03-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 2px solid var(--se03-accent);
}
.se03-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.se03-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.se03-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--se03-accent);
  white-space: nowrap;
}
.se03-header-btns {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.se03-btn-register {
  background: var(--se03-accent);
  color: var(--se03-dark);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--se03-radius);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.se03-btn-register:hover { background: var(--se03-accent-light); transform: scale(1.05); }
.se03-btn-login {
  background: transparent;
  color: var(--se03-accent);
  border: 1.5px solid var(--se03-accent);
  padding: 0.5rem 1.2rem;
  border-radius: var(--se03-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.se03-btn-login:hover { background: rgba(212,175,55,0.15); }
.se03-menu-toggle {
  background: none;
  border: none;
  color: var(--se03-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* Mobile Menu */
.se03-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}
.se03-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background: var(--se03-secondary);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.se03-mobile-menu h3 {
  color: var(--se03-accent);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--se03-border);
}
.se03-mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--se03-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.se03-mobile-menu a:hover { color: var(--se03-accent); }

/* Carousel */
.se03-carousel {
  position: relative;
  margin-top: var(--se03-header-h);
  width: 100%;
  overflow: hidden;
  background: var(--se03-dark);
}
.se03-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.se03-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.se03-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.se03-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}
.se03-dot-active { background: var(--se03-accent); }

/* Main Content */
main {
  padding: 1.2rem;
  min-height: 60vh;
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Section Titles */
.se03-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--se03-accent);
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--se03-accent);
}
.se03-section-title i {
  margin-right: 0.6rem;
}

/* Game Grid */
.se03-game-section { margin-bottom: 2rem; }
.se03-game-section h2 {
  font-size: 1.7rem;
  color: var(--se03-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.se03-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.se03-game-card {
  background: var(--se03-card-bg);
  border-radius: var(--se03-radius);
  padding: 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.se03-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.25);
  border-color: var(--se03-accent);
}
.se03-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}
.se03-game-card span {
  font-size: 1.1rem;
  color: var(--se03-text-muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Modules */
.se03-module {
  background: var(--se03-card-bg);
  border-radius: var(--se03-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--se03-border);
}
.se03-module h2 {
  font-size: 1.8rem;
  color: var(--se03-accent);
  margin-bottom: 1rem;
}
.se03-module h3 {
  font-size: 1.5rem;
  color: var(--se03-text);
  margin: 1rem 0 0.6rem;
}
.se03-module p {
  color: var(--se03-text-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.se03-module ul {
  list-style: none;
  padding: 0;
}
.se03-module ul li {
  padding: 0.6rem 0;
  color: var(--se03-text-muted);
  padding-left: 1.5rem;
  position: relative;
}
.se03-module ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--se03-success);
  font-size: 1.2rem;
}

/* Promo CTA */
.se03-cta-box {
  background: linear-gradient(135deg, var(--se03-secondary), var(--se03-dark));
  border: 2px solid var(--se03-accent);
  border-radius: var(--se03-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
.se03-cta-box h3 {
  color: var(--se03-accent);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.se03-cta-box p {
  color: var(--se03-text-muted);
  margin-bottom: 1.5rem;
}
.se03-cta-btn {
  display: inline-block;
  background: var(--se03-accent);
  color: var(--se03-dark);
  padding: 1rem 3rem;
  border-radius: var(--se03-radius);
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.se03-cta-btn:hover {
  background: var(--se03-accent-light);
  transform: scale(1.05);
}

/* Footer */
.se03-footer {
  background: var(--se03-secondary);
  padding: 2rem 1.2rem 6rem;
  border-top: 2px solid var(--se03-accent);
}
.se03-footer-desc {
  color: var(--se03-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.se03-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.se03-footer-links a {
  background: var(--se03-card-bg);
  color: var(--se03-text);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1.2rem;
  border: 1px solid var(--se03-border);
  transition: all 0.2s;
}
.se03-footer-links a:hover {
  border-color: var(--se03-accent);
  color: var(--se03-accent);
}
.se03-footer-copy {
  text-align: center;
  color: var(--se03-text-muted);
  font-size: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--se03-border);
}

/* Bottom Navigation */
.se03-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--se03-bottom-nav-h);
  background: var(--se03-secondary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--se03-accent);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.se03-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--se03-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  gap: 0.2rem;
  position: relative;
}
.se03-bottom-nav-btn .se03-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.se03-bottom-nav-btn .se03-nav-label {
  font-size: 1rem;
  font-weight: 500;
}
.se03-bottom-nav-btn:hover,
.se03-bottom-nav-btn.se03-nav-active {
  color: var(--se03-accent);
}
.se03-bottom-nav-btn.se03-nav-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 25%;
  width: 50%;
  height: 3px;
  background: var(--se03-accent);
  border-radius: 0 0 2px 2px;
}
.se03-bottom-nav-btn:active {
  transform: scale(0.9);
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .se03-bottom-nav { display: none; }
  .se03-footer { padding-bottom: 2rem; }
}

/* Testimonials */
.se03-testimonial {
  background: var(--se03-card-bg);
  border-radius: var(--se03-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--se03-accent);
}
.se03-testimonial p { font-size: 1.3rem; font-style: italic; }
.se03-testimonial cite {
  display: block;
  margin-top: 0.5rem;
  color: var(--se03-accent);
  font-size: 1.2rem;
}

/* Winner ticker */
.se03-winner-list { list-style: none; }
.se03-winner-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.3rem;
}
.se03-winner-list li span:first-child { color: var(--se03-text); }
.se03-winner-list li span:last-child { color: var(--se03-success); font-weight: 600; }

/* Payment icons row */
.se03-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}
.se03-payment-item {
  background: var(--se03-card-bg);
  border: 1px solid var(--se03-border);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--se03-text-muted);
}

/* RTP Table */
.se03-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.se03-rtp-table th,
.se03-rtp-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--se03-border);
  font-size: 1.3rem;
}
.se03-rtp-table th {
  color: var(--se03-accent);
  font-weight: 600;
}
.se03-rtp-table td { color: var(--se03-text-muted); }

/* Achievement badges */
.se03-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.se03-badge {
  background: var(--se03-card-bg);
  border: 1px solid var(--se03-border);
  border-radius: var(--se03-radius);
  padding: 1rem;
  text-align: center;
}
.se03-badge i {
  font-size: 2.4rem;
  color: var(--se03-accent);
  margin-bottom: 0.4rem;
}
.se03-badge span {
  display: block;
  font-size: 1.1rem;
  color: var(--se03-text-muted);
}

/* Internal link styling */
.se03-internal-link {
  color: var(--se03-accent);
  text-decoration: underline;
  font-weight: 500;
}
.se03-internal-link:hover {
  color: var(--se03-accent-light);
}

/* Promo text link */
.se03-promo-link {
  color: var(--se03-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.se03-promo-link:hover { color: var(--se03-accent-light); }

/* App download section */
.se03-app-section {
  background: linear-gradient(135deg, var(--se03-primary), var(--se03-dark));
  border-radius: var(--se03-radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
.se03-app-section h3 {
  color: var(--se03-accent);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}
