/**
 * Takabe Core Stylesheet
 * Class prefix: w3e5a-
 * Color palette: #FFBF00 | #2C3E50 | #AFEEEE | #FFAA00 | #FFCC02
 */

:root {
  --w3e5a-primary: #FFBF00;
  --w3e5a-secondary: #2C3E50;
  --w3e5a-accent: #AFEEEE;
  --w3e5a-gold: #FFAA00;
  --w3e5a-bright: #FFCC02;
  --w3e5a-bg: #1a2332;
  --w3e5a-bg-dark: #0f1721;
  --w3e5a-bg-card: #243447;
  --w3e5a-text: #f0f4f8;
  --w3e5a-text-muted: #a0b4c8;
  --w3e5a-border: #2d4a5e;
  --w3e5a-danger: #e74c3c;
  --w3e5a-success: #27ae60;
  --w3e5a-radius: 8px;
  --w3e5a-radius-lg: 16px;
  --w3e5a-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--w3e5a-bg);
  color: var(--w3e5a-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--w3e5a-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--w3e5a-bright); }
img { max-width: 100%; height: auto; display: block; }

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

/* ===== HEADER ===== */
.w3e5a-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--w3e5a-bg-dark);
  border-bottom: 2px solid var(--w3e5a-primary);
  padding: 0.6rem 0;
}
.w3e5a-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.w3e5a-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w3e5a-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.w3e5a-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w3e5a-primary);
  letter-spacing: 0.5px;
}
.w3e5a-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w3e5a-btn-register {
  background: var(--w3e5a-primary);
  color: var(--w3e5a-bg-dark);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: var(--w3e5a-radius);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 32px;
}
.w3e5a-btn-register:hover { background: var(--w3e5a-bright); transform: scale(1.03); }
.w3e5a-btn-login {
  background: transparent;
  color: var(--w3e5a-primary);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--w3e5a-primary);
  border-radius: var(--w3e5a-radius);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 32px;
}
.w3e5a-btn-login:hover { background: var(--w3e5a-primary); color: var(--w3e5a-bg-dark); }
.w3e5a-menu-toggle {
  background: none;
  border: none;
  color: var(--w3e5a-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.w3e5a-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}
.w3e5a-overlay-active { display: block; }
.w3e5a-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--w3e5a-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
}
.w3e5a-menu-active { right: 0; }
.w3e5a-mobile-menu .w3e5a-menu-close {
  background: none;
  border: none;
  color: var(--w3e5a-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.w3e5a-mobile-menu ul { list-style: none; margin-top: 1rem; }
.w3e5a-mobile-menu li { border-bottom: 1px solid var(--w3e5a-border); }
.w3e5a-mobile-menu a {
  display: block;
  padding: 1.2rem 0;
  color: var(--w3e5a-text);
  font-size: 1.4rem;
  transition: color 0.2s;
}
.w3e5a-mobile-menu a:hover { color: var(--w3e5a-primary); }

/* ===== CAROUSEL ===== */
.w3e5a-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--w3e5a-radius-lg);
  margin-top: 0.8rem;
}
.w3e5a-carousel-slide {
  display: none;
  cursor: pointer;
}
.w3e5a-slide-active { display: block; }
.w3e5a-carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--w3e5a-radius-lg);
}
.w3e5a-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
}
.w3e5a-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--w3e5a-border);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.w3e5a-dot-active { background: var(--w3e5a-primary); width: 20px; border-radius: 4px; }

/* ===== SECTION HEADINGS ===== */
.w3e5a-section {
  margin: 1.6rem 0;
}
.w3e5a-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w3e5a-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--w3e5a-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w3e5a-section-title i { font-size: 2rem; }

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

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

/* ===== PROMO BUTTON ===== */
.w3e5a-btn-promo {
  display: inline-block;
  background: linear-gradient(135deg, var(--w3e5a-primary), var(--w3e5a-gold));
  color: var(--w3e5a-bg-dark);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 1rem 2.4rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 191, 0, 0.3);
}
.w3e5a-btn-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 191, 0, 0.4);
}
.w3e5a-promo-text {
  color: var(--w3e5a-primary);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--w3e5a-primary);
}
.w3e5a-promo-text:hover { color: var(--w3e5a-bright); }

/* ===== CATEGORY TAB ===== */
.w3e5a-cat-label {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--w3e5a-accent);
  margin: 1.6rem 0 0.8rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--w3e5a-primary);
}

/* ===== FOOTER ===== */
.w3e5a-footer {
  background: var(--w3e5a-bg-dark);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
  border-top: 2px solid var(--w3e5a-primary);
}
.w3e5a-footer-brand {
  text-align: center;
  margin-bottom: 1.4rem;
}
.w3e5a-footer-brand p {
  color: var(--w3e5a-text-muted);
  font-size: 1.2rem;
  line-height: 1.5rem;
}
.w3e5a-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0;
}
.w3e5a-footer-links a {
  background: var(--w3e5a-bg-card);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 1.1rem;
  color: var(--w3e5a-text-muted);
  border: 1px solid var(--w3e5a-border);
  transition: all 0.2s;
}
.w3e5a-footer-links a:hover {
  color: var(--w3e5a-primary);
  border-color: var(--w3e5a-primary);
}
.w3e5a-footer-copy {
  text-align: center;
  color: var(--w3e5a-text-muted);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--w3e5a-border);
}

/* ===== BOTTOM NAV ===== */
.w3e5a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--w3e5a-bg-dark);
  border-top: 2px solid var(--w3e5a-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.4rem;
}
.w3e5a-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--w3e5a-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem;
  border-radius: 8px;
}
.w3e5a-bottom-nav-btn:hover,
.w3e5a-btn-active {
  color: var(--w3e5a-primary);
  background: rgba(255, 191, 0, 0.08);
}
.w3e5a-bottom-nav-btn i,
.w3e5a-bottom-nav-btn span.material-symbols-outlined {
  font-size: 22px;
  margin-bottom: 2px;
}
.w3e5a-bottom-nav-label {
  font-size: 1rem;
  line-height: 1.2rem;
}

/* ===== MAIN CONTENT SPACING ===== */
main {
  padding-top: 52px;
}
@media (max-width: 768px) {
  main { padding-bottom: 72px; }
}

/* ===== DESKTOP: HIDE BOTTOM NAV ===== */
@media (min-width: 769px) {
  .w3e5a-bottom-nav { display: none; }
}

/* ===== TEXT STYLES ===== */
.w3e5a-text-center { text-align: center; }
.w3e5a-text-gold { color: var(--w3e5a-primary); }
.w3e5a-text-accent { color: var(--w3e5a-accent); }
.w3e5a-text-muted { color: var(--w3e5a-text-muted); }
.w3e5a-mt-1 { margin-top: 1rem; }
.w3e5a-mb-1 { margin-bottom: 1rem; }
.w3e5a-p-1 { padding: 1rem; }

/* ===== TESTIMONIAL ===== */
.w3e5a-testimonial {
  background: var(--w3e5a-bg-card);
  border-radius: var(--w3e5a-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--w3e5a-primary);
}
.w3e5a-testimonial p { font-size: 1.3rem; color: var(--w3e5a-text); }
.w3e5a-testimonial cite { color: var(--w3e5a-primary); font-style: normal; font-size: 1.2rem; }

/* ===== WINNER SHOWCASE ===== */
.w3e5a-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--w3e5a-border);
}
.w3e5a-winner-name { color: var(--w3e5a-accent); font-size: 1.2rem; }
.w3e5a-winner-amount { color: var(--w3e5a-primary); font-weight: 700; font-size: 1.3rem; }
.w3e5a-winner-game { color: var(--w3e5a-text-muted); font-size: 1.1rem; }

/* ===== PAYMENT METHODS ===== */
.w3e5a-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.w3e5a-payment-item {
  background: var(--w3e5a-bg-card);
  padding: 0.6rem 1.2rem;
  border-radius: var(--w3e5a-radius);
  font-size: 1.2rem;
  color: var(--w3e5a-text);
  border: 1px solid var(--w3e5a-border);
}

/* ===== FAQ ===== */
.w3e5a-faq-item {
  margin-bottom: 1rem;
}
.w3e5a-faq-q {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--w3e5a-primary);
  margin-bottom: 0.4rem;
}
.w3e5a-faq-a {
  font-size: 1.2rem;
  color: var(--w3e5a-text-muted);
  line-height: 1.6rem;
  padding-left: 1rem;
  border-left: 2px solid var(--w3e5a-border);
}

/* ===== FEATURES LIST ===== */
.w3e5a-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.w3e5a-feature-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(255, 191, 0, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w3e5a-primary);
  font-size: 1.6rem;
}

/* ===== CTA SECTION ===== */
.w3e5a-cta {
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.1), rgba(255, 170, 0, 0.05));
  border: 1px solid var(--w3e5a-primary);
  border-radius: var(--w3e5a-radius-lg);
  padding: 2rem 1.4rem;
  text-align: center;
  margin: 1.6rem 0;
}
.w3e5a-cta h3 {
  font-size: 1.6rem;
  color: var(--w3e5a-primary);
  margin-bottom: 0.8rem;
}
.w3e5a-cta p {
  color: var(--w3e5a-text-muted);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

/* ===== RESPONSIVE GRID HELPERS ===== */
.w3e5a-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.w3e5a-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

/* ===== H TAGS ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--w3e5a-text);
  line-height: 1.4;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.5rem; }

/* ===== APP DOWNLOAD ===== */
.w3e5a-app-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--w3e5a-bg-card);
  padding: 1.2rem;
  border-radius: var(--w3e5a-radius-lg);
  border: 1px solid var(--w3e5a-primary);
}
.w3e5a-app-box img { width: 60px; height: 60px; border-radius: 12px; }
.w3e5a-app-info h4 { color: var(--w3e5a-primary); font-size: 1.3rem; }
.w3e5a-app-info p { color: var(--w3e5a-text-muted); font-size: 1.1rem; }
