/**
 * Legend Link PH - design.css
 * All custom classes use the prefix "w1e05-" for namespace isolation.
 * CSS custom properties use the "--w1e05-" prefix.
 * Mobile-first HTML5 design, capped at 430px viewport width.
 */

:root {
  --w1e05-bg: #1A1A1A;
  --w1e05-bg-deep: #0b0b2a;
  --w1e05-primary: #000080;
  --w1e05-accent: #1E90FF;
  --w1e05-accent-light: #00BFFF;
  --w1e05-text: #CED4DA;
  --w1e05-text-muted: #A9A9A9;
  --w1e05-card: #232347;
  --w1e05-card-border: #2c2c5a;
  --w1e05-success: #2ecc71;
  --w1e05-warning: #f39c12;
  --w1e05-danger: #e74c3c;
  --w1e05-gold: #f1c40f;
  --w1e05-radius: 1.2rem;
  --w1e05-gradient: linear-gradient(135deg, #000080 0%, #1E90FF 100%);
  --w1e05-gradient-hot: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
  --w1e05-shadow: 0 0.4rem 1.5rem rgba(0, 0, 128, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  background: var(--w1e05-bg);
  color: var(--w1e05-text);
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--w1e05-accent-light); text-decoration: none; }
button { font-family: inherit; }

/* ============================= HEADER ============================= */
.w1e05-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, rgba(0,0,40,0.96), rgba(26,26,26,0.92));
  backdrop-filter: blur(0.8rem); -webkit-backdrop-filter: blur(0.8rem);
  padding: 0.7rem 1rem;
  border-bottom: 0.1rem solid rgba(30,144,255,0.3);
}
.w1e05-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.w1e05-logo { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.w1e05-logo img { width: 3rem; height: 3rem; border-radius: 0.6rem; flex-shrink: 0; }
.w1e05-logo-text { font-size: 1.55rem; font-weight: 800; color: var(--w1e05-accent-light); white-space: nowrap; }
.w1e05-logo-text span { color: #fff; }

.w1e05-header-actions { display: flex; align-items: center; gap: 0.45rem; }
.w1e05-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 1.1rem; border: none; cursor: pointer;
  border-radius: 0.8rem; font-weight: 700; font-size: 1.25rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  min-height: 3.4rem; line-height: 1;
}
.w1e05-btn:active { transform: scale(0.95); }
.w1e05-btn-primary { background: var(--w1e05-gradient); color: #fff; box-shadow: 0 0.3rem 0.8rem rgba(30,144,255,0.45); }
.w1e05-btn-secondary { background: transparent; color: var(--w1e05-accent-light); border: 0.15rem solid var(--w1e05-accent); }
.w1e05-btn-warning { background: var(--w1e05-gradient-hot); color: #fff; }
.w1e05-btn-block { display: flex; width: 100%; padding: 1rem; font-size: 1.4rem; }

.w1e05-menu-btn {
  background: transparent; border: 0.15rem solid var(--w1e05-accent); color: var(--w1e05-accent-light);
  width: 3.4rem; height: 3.4rem; border-radius: 0.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.w1e05-menu-btn i { font-size: 1.7rem; }

/* ============================= MOBILE MENU ============================= */
.w1e05-mobile-menu {
  position: fixed; top: 0; right: -110%; width: 80%; max-width: 32rem; height: 100vh;
  background: linear-gradient(180deg, #0b0b2a, #1A1A1A); z-index: 9999;
  padding: 6.5rem 1.4rem 2rem; overflow-y: auto;
  transition: right 0.3s ease;
  border-left: 0.1rem solid rgba(30,144,255,0.3);
}
.w1e05-mobile-menu.w1e05-menu-open { right: 0; }
.w1e05-menu-section-title {
  font-size: 1.15rem; color: var(--w1e05-accent-light); text-transform: uppercase;
  letter-spacing: 0.1rem; margin: 1.3rem 0 0.5rem; padding-left: 0.4rem;
}
.w1e05-nav-link {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1rem;
  color: var(--w1e05-text); font-size: 1.35rem; font-weight: 600;
  border-radius: 0.7rem; margin-bottom: 0.35rem;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.w1e05-nav-link i { font-size: 1.5rem; color: var(--w1e05-accent-light); width: 2rem; text-align: center; }
.w1e05-nav-link:hover, .w1e05-nav-active {
  background: rgba(30,144,255,0.16); color: var(--w1e05-accent-light); padding-left: 1.3rem;
}

.w1e05-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
.w1e05-overlay.w1e05-menu-open { opacity: 1; visibility: visible; }

/* ============================= MAIN ============================= */
main { padding: 5.8rem 0 8rem; }
.w1e05-section { padding: 1.3rem 1rem 0.5rem; }
.w1e05-section-title {
  font-size: 1.75rem; font-weight: 800; margin-bottom: 0.9rem; color: #fff;
  display: flex; align-items: center; gap: 0.6rem;
  border-left: 0.4rem solid var(--w1e05-accent-light); padding-left: 0.8rem;
}
.w1e05-section-title i, .w1e05-section-title .material-icons-outlined { color: var(--w1e05-accent-light); font-size: 1.9rem; }
.w1e05-section-subtitle { font-size: 1.25rem; color: var(--w1e05-text-muted); margin-bottom: 1rem; line-height: 1.5; }

/* ============================= CAROUSEL ============================= */
.w1e05-carousel { position: relative; border-radius: var(--w1e05-radius); overflow: hidden; margin-bottom: 0.5rem; }
.w1e05-slide { position: relative; display: none; cursor: pointer; }
.w1e05-slide-active { display: block; }
.w1e05-slide img { width: 100%; height: 17rem; object-fit: cover; }
.w1e05-slide-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,40,0.88));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem; color: #fff;
}
.w1e05-slide-tag {
  display: inline-block; padding: 0.2rem 0.7rem; border-radius: 0.4rem;
  background: var(--w1e05-gradient-hot); color: #fff; font-size: 1rem; font-weight: 700;
  width: fit-content; margin-bottom: 0.4rem;
}
.w1e05-slide-title { font-size: 1.6rem; font-weight: 800; color: var(--w1e05-accent-light); }
.w1e05-slide-desc { font-size: 1.15rem; color: #fff; margin-top: 0.25rem; }
.w1e05-dots { position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.w1e05-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; }
.w1e05-dot-active { background: var(--w1e05-accent-light); }

/* ============================= GAME GRID ============================= */
.w1e05-cat-header {
  display: flex; align-items: center; gap: 0.6rem; margin: 1.5rem 0 0.9rem;
  font-size: 1.45rem; font-weight: 700; color: #fff;
}
.w1e05-cat-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.8rem; border-radius: 1rem;
  font-size: 1rem; font-weight: 700; color: #fff;
}
.w1e05-cat-cards { background: var(--w1e05-primary); }
.w1e05-cat-slot { background: var(--w1e05-gradient-hot); }
.w1e05-cat-live { background: linear-gradient(135deg,#8e44ad,#c0392b); }
.w1e05-cat-hot { background: linear-gradient(135deg,#e67e22,#e74c3c); }
.w1e05-cat-fishing { background: linear-gradient(135deg,#16a085,#1E90FF); }

.w1e05-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
.w1e05-game-card {
  background: var(--w1e05-card); border: 0.1rem solid var(--w1e05-card-border);
  border-radius: 1rem; padding: 0.45rem; text-align: center; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; overflow: hidden;
}
.w1e05-game-card:hover, .w1e05-game-card:active {
  transform: translateY(-0.3rem); box-shadow: 0 0.4rem 1rem rgba(30,144,255,0.4); border-color: var(--w1e05-accent);
}
.w1e05-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.75rem; margin-bottom: 0.35rem; }
.w1e05-game-name {
  font-size: 1.05rem; color: var(--w1e05-text); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================= CONTENT CARDS ============================= */
.w1e05-card {
  background: var(--w1e05-card); border-radius: var(--w1e05-radius);
  padding: 1.2rem; margin-bottom: 1rem; border: 0.1rem solid var(--w1e05-card-border);
}
.w1e05-card h2, .w1e05-card h3 { color: #fff; margin-bottom: 0.6rem; }
.w1e05-card p { margin-bottom: 0.55rem; color: var(--w1e05-text); }
.w1e05-card ul { padding-left: 1.6rem; margin: 0.5rem 0; }
.w1e05-card li { margin-bottom: 0.4rem; color: var(--w1e05-text); }

.w1e05-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.w1e05-feature {
  background: var(--w1e05-card); padding: 1rem 0.6rem; border-radius: 1rem;
  text-align: center; border: 0.1rem solid var(--w1e05-card-border);
}
.w1e05-feature i, .w1e05-feature .material-icons-outlined, .w1e05-feature ion-icon {
  font-size: 2.2rem; color: var(--w1e05-accent-light); margin-bottom: 0.4rem;
}
.w1e05-feature h4 { color: #fff; font-size: 1.25rem; margin-bottom: 0.3rem; }
.w1e05-feature p { font-size: 1.1rem; color: var(--w1e05-text-muted); margin: 0; }

/* ============================= RTP TABLE ============================= */
.w1e05-rpt-wrap { overflow-x: auto; }
.w1e05-rtp-table { width: 100%; border-collapse: collapse; min-width: 26rem; }
.w1e05-rtp-table th, .w1e05-rtp-table td {
  padding: 0.7rem 0.5rem; font-size: 1.2rem; text-align: left;
  border-bottom: 0.1rem solid var(--w1e05-card-border);
}
.w1e05-rtp-table th { color: var(--w1e05-accent-light); font-weight: 700; background: rgba(0,0,128,0.25); }
.w1e05-rtp-high { color: var(--w1e05-success); font-weight: 800; }
.w1e05-rtp-mid { color: var(--w1e05-warning); font-weight: 700; }

/* ============================= FAQ ============================= */
.w1e05-faq-item {
  background: var(--w1e05-card); border-radius: 0.8rem; margin-bottom: 0.55rem;
  overflow: hidden; border: 0.1rem solid var(--w1e05-card-border);
}
.w1e05-faq-q {
  padding: 1rem 1.1rem; cursor: pointer; font-weight: 700; color: #fff;
  display: flex; justify-content: space-between; align-items: center; font-size: 1.3rem; gap: 0.5rem;
}
.w1e05-faq-q i { color: var(--w1e05-accent-light); transition: transform 0.3s; flex-shrink: 0; }
.w1e05-faq-open .w1e05-faq-q i { transform: rotate(180deg); }
.w1e05-faq-a { max-height: 0; overflow: hidden; padding: 0 1.1rem; transition: max-height 0.3s, padding 0.3s; color: var(--w1e05-text-muted); }
.w1e05-faq-open .w1e05-faq-a { max-height: 40rem; padding: 0 1.1rem 1rem; }

/* ============================= TESTIMONIALS ============================= */
.w1e05-testimonials { display: grid; gap: 0.7rem; }
.w1e05-testimonial {
  background: var(--w1e05-card); padding: 1rem; border-radius: 1rem;
  border-left: 0.35rem solid var(--w1e05-accent-light);
}
.w1e05-testimonial-header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; }
.w1e05-avatar {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--w1e05-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; flex-shrink: 0;
}
.w1e05-testimonial-name { font-weight: 700; color: #fff; font-size: 1.25rem; }
.w1e05-stars { color: var(--w1e05-gold); font-size: 1.05rem; }
.w1e05-testimonial-text { font-size: 1.18rem; color: var(--w1e05-text); }

/* ============================= PAYMENTS ============================= */
.w1e05-payment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.w1e05-payment {
  background: #fff; border-radius: 0.7rem; padding: 0.7rem 0.3rem; text-align: center;
  font-size: 0.95rem; font-weight: 700; color: #000080; min-height: 3.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* ============================= WINNERS ============================= */
.w1e05-winners { background: var(--w1e05-card); border-radius: 1rem; padding: 0.4rem 0.6rem; }
.w1e05-winner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 0.3rem; border-bottom: 0.1rem solid var(--w1e05-card-border); font-size: 1.18rem; gap: 0.5rem;
}
.w1e05-winner:last-child { border: none; }
.w1e05-winner-user { color: var(--w1e05-text); display: flex; align-items: center; gap: 0.4rem; }
.w1e05-winner-game { color: var(--w1e05-text-muted); font-size: 1.05rem; }
.w1e05-winner-amount { color: var(--w1e05-success); font-weight: 800; white-space: nowrap; }

/* ============================= CTA ============================= */
.w1e05-cta {
  background: var(--w1e05-gradient); border-radius: var(--w1e05-radius);
  padding: 1.4rem 1.2rem; text-align: center; margin: 1rem 0; color: #fff;
  box-shadow: var(--w1e05-shadow);
}
.w1e05-cta h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.w1e05-cta p { font-size: 1.2rem; margin-bottom: 1rem; opacity: 0.95; }

.w1e05-promo-banner {
  display: flex; align-items: center; gap: 0.8rem; padding: 1rem;
  background: var(--w1e05-gradient-hot); border-radius: var(--w1e05-radius);
  color: #fff; margin: 1rem 0; cursor: pointer;
}
.w1e05-promo-banner i { font-size: 2.4rem; flex-shrink: 0; }
.w1e05-promo-banner h4 { font-size: 1.35rem; margin-bottom: 0.2rem; }
.w1e05-promo-banner p { font-size: 1.1rem; opacity: 0.95; margin: 0; }

/* ============================= TEXT LINKS / TAGS ============================= */
.w1e05-text-link { color: var(--w1e05-accent-light); font-weight: 700; cursor: pointer; }
.w1e05-text-link:hover { text-decoration: underline; }
.w1e05-tag {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 0.4rem;
  background: rgba(30,144,255,0.2); color: var(--w1e05-accent-light);
  font-size: 1rem; font-weight: 700;
}

/* ============================= FOOTER ============================= */
.w1e05-footer {
  background: var(--w1e05-bg-deep); padding: 2rem 1rem 8.5rem;
  border-top: 0.2rem solid var(--w1e05-primary);
}
.w1e05-footer h4 { color: #fff; font-size: 1.35rem; margin: 0.8rem 0 0.5rem; }
.w1e05-footer p { color: var(--w1e05-text-muted); font-size: 1.18rem; margin-bottom: 0.5rem; line-height: 1.5; }
.w1e05-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.7rem 0; }
.w1e05-footer-links a {
  display: inline-block; padding: 0.5rem 0.9rem; background: var(--w1e05-card);
  color: var(--w1e05-text); border-radius: 0.6rem; font-size: 1.1rem;
  border: 0.1rem solid var(--w1e05-card-border); transition: background 0.15s, color 0.15s;
}
.w1e05-footer-links a:hover { background: rgba(30,144,255,0.2); color: var(--w1e05-accent-light); }
.w1e05-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.7rem 0; }
.w1e05-copyright {
  text-align: center; color: var(--w1e05-text-muted); font-size: 1.08rem;
  padding-top: 1rem; border-top: 0.1rem solid var(--w1e05-card-border); margin-top: 1rem;
}

/* ============================= BOTTOM NAV ============================= */
.w1e05-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(180deg, rgba(0,0,40,0.98), rgba(20,20,42,1));
  display: flex; justify-content: space-around; align-items: flex-start;
  padding: 0.4rem 0.2rem 0.5rem; z-index: 1000;
  border-top: 0.15rem solid var(--w1e05-accent);
  box-shadow: 0 -0.3rem 1rem rgba(0,0,0,0.45);
}
.w1e05-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--w1e05-text-muted);
  font-size: 1rem; min-width: 6rem; min-height: 6rem; cursor: pointer;
  padding: 0.3rem; gap: 0.15rem; transition: color 0.15s, transform 0.15s;
  position: relative; flex: 1; text-decoration: none;
}
.w1e05-bottom-btn i, .w1e05-bottom-btn .material-icons-outlined { font-size: 2.1rem; }
.w1e05-bottom-btn ion-icon { font-size: 2.3rem; }
.w1e05-bottom-btn:active { transform: scale(0.9); }
.w1e05-bottom-btn:hover { color: var(--w1e05-accent-light); }
.w1e05-bottom-btn.w1e05-active { color: var(--w1e05-accent-light); }
.w1e05-bottom-btn.w1e05-active::before {
  content: ''; position: absolute; top: -0.4rem; width: 2.5rem; height: 0.25rem;
  border-radius: 0.2rem; background: var(--w1e05-accent-light);
}
.w1e05-bottom-promo {
  background: var(--w1e05-gradient-hot); color: #fff; border-radius: 50%;
  width: 3.6rem; height: 3.6rem; margin-top: -1.3rem;
  box-shadow: 0 0.3rem 0.8rem rgba(231,76,60,0.55);
  display: flex; align-items: center; justify-content: center;
  border: 0.2rem solid rgba(255,255,255,0.85);
}
.w1e05-bottom-promo i { font-size: 1.7rem; }
.w1e05-bottom-label { font-size: 0.95rem; font-weight: 600; line-height: 1; }

/* Hide bottom nav when the menu overlay is open */
.w1e05-mobile-menu.w1e05-menu-open ~ .w1e05-bottom-nav,
.w1e05-overlay.w1e05-menu-open ~ .w1e05-bottom-nav { z-index: 900; }

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

@media (min-width: 769px) {
  .w1e05-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
  .w1e05-footer { padding-bottom: 2rem; }
}
