/**
 * PHLWin APK - Theme Stylesheet
 * All classes use prefix "wb290-" for namespace isolation
 * Color palette: #FF8C00 | #2C2C2C | #C0C0C0 | #FFCC02 | #FF6347 | #8FBC8F
 * Mobile-first design, max-width 430px
 */

/* ========== CSS Variables ========== */
:root {
  --wb290-primary: #FF8C00;
  --wb290-secondary: #FF6347;
  --wb290-accent: #FFCC02;
  --wb290-bg: #1A1A2E;
  --wb290-bg-light: #16213E;
  --wb290-bg-card: #0F3460;
  --wb290-text: #E8E8E8;
  --wb290-text-muted: #C0C0C0;
  --wb290-text-dark: #2C2C2C;
  --wb290-green: #8FBC8F;
  --wb290-gold: #FFCC02;
  --wb290-orange: #FF8C00;
  --wb290-red: #FF6347;
  --wb290-border: rgba(255,140,0,0.15);
  --wb290-radius: 10px;
  --wb290-radius-sm: 6px;
  --wb290-radius-lg: 16px;
  --wb290-shadow: 0 4px 15px rgba(0,0,0,0.3);
  --wb290-shadow-glow: 0 0 20px rgba(255,140,0,0.2);
  --wb290-header-h: 56px;
  --wb290-bottom-h: 60px;
  --wb290-max-w: 430px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--wb290-bg);
  color: var(--wb290-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ========== Layout ========== */
.wb290-container {
  max-width: var(--wb290-max-w);
  margin: 0 auto;
  padding: 0 12px;
  width: 100%;
}

.wb290-wrapper {
  max-width: var(--wb290-max-w);
  margin: 0 auto;
  width: 100%;
}

/* ========== Header ========== */
.wb290-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1A1A2E 0%, #0F3460 100%);
  border-bottom: 2px solid var(--wb290-primary);
  height: var(--wb290-header-h);
}

.wb290-header-inner {
  max-width: var(--wb290-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 100%;
}

.wb290-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wb290-logo-area img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.wb290-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wb290-primary);
  white-space: nowrap;
}

.wb290-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wb290-btn-register {
  background: linear-gradient(135deg, var(--wb290-primary), var(--wb290-secondary));
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: var(--wb290-radius-sm);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wb290-btn-register:hover {
  transform: scale(1.05);
  box-shadow: var(--wb290-shadow-glow);
}

.wb290-btn-login {
  background: transparent;
  color: var(--wb290-accent);
  border: 1.5px solid var(--wb290-accent);
  padding: 6px 12px;
  border-radius: var(--wb290-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.wb290-btn-login:hover {
  background: rgba(255,204,2,0.1);
}

.wb290-menu-toggle {
  background: none;
  border: none;
  color: var(--wb290-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* ========== Mobile Menu ========== */
.wb290-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #1A1A2E, #0F3460);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 70px 20px 20px;
  overflow-y: auto;
}

.wb290-mobile-menu.wb290-menu-active {
  right: 0;
}

.wb290-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wb290-menu-overlay.wb290-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

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

.wb290-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wb290-menu-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--wb290-text);
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: var(--wb290-radius-sm);
  transition: background 0.2s, color 0.2s;
}

.wb290-menu-nav a:hover,
.wb290-menu-nav a:focus {
  background: rgba(255,140,0,0.15);
  color: var(--wb290-primary);
}

.wb290-menu-nav a .material-icons {
  font-size: 2rem;
  color: var(--wb290-primary);
}

/* ========== Main Content ========== */
.wb290-main {
  padding-top: calc(var(--wb290-header-h) + 8px);
  min-height: 100vh;
}

/* ========== Carousel ========== */
.wb290-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--wb290-radius);
  margin: 10px 0;
}

.wb290-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.wb290-carousel-slide {
  min-width: 100%;
  cursor: pointer;
  position: relative;
}

.wb290-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/8;
  object-fit: cover;
  border-radius: var(--wb290-radius);
}

.wb290-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
}

.wb290-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wb290-text-muted);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  opacity: 0.5;
}

.wb290-carousel-dot.wb290-dot-active {
  background: var(--wb290-primary);
  opacity: 1;
  transform: scale(1.3);
}

/* ========== Section Titles ========== */
.wb290-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wb290-accent);
  margin: 18px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--wb290-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wb290-section-title .material-icons {
  font-size: 2rem;
  color: var(--wb290-primary);
}

/* ========== Game Grid ========== */
.wb290-game-section {
  margin: 16px 0;
}

.wb290-game-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wb290-primary);
  margin-bottom: 10px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wb290-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.wb290-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border-radius: var(--wb290-radius-sm);
  overflow: hidden;
  background: var(--wb290-bg-light);
  padding: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wb290-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--wb290-shadow-glow);
}

.wb290-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--wb290-radius-sm);
  margin-bottom: 4px;
}

.wb290-game-card span {
  font-size: 1rem;
  color: var(--wb290-text-muted);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

/* ========== Content Modules ========== */
.wb290-content-block {
  background: var(--wb290-bg-light);
  border-radius: var(--wb290-radius);
  padding: 16px;
  margin: 14px 0;
  border: 1px solid var(--wb290-border);
}

.wb290-content-block h2 {
  font-size: 1.7rem;
  color: var(--wb290-accent);
  margin-bottom: 10px;
}

.wb290-content-block h3 {
  font-size: 1.5rem;
  color: var(--wb290-primary);
  margin: 10px 0 6px;
}

.wb290-content-block p {
  color: var(--wb290-text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.wb290-content-block ul {
  padding-left: 16px;
  margin-bottom: 8px;
}

.wb290-content-block li {
  color: var(--wb290-text-muted);
  line-height: 1.6;
  margin-bottom: 4px;
  font-size: 1.3rem;
  list-style: disc;
}

.wb290-promo-text {
  color: var(--wb290-primary);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}

.wb290-promo-text:hover {
  color: var(--wb290-accent);
}

.wb290-highlight-box {
  background: linear-gradient(135deg, rgba(255,140,0,0.1), rgba(255,99,71,0.1));
  border: 1px solid var(--wb290-primary);
  border-radius: var(--wb290-radius);
  padding: 14px;
  margin: 10px 0;
}

.wb290-btn-promo {
  display: inline-block;
  background: linear-gradient(135deg, var(--wb290-primary), var(--wb290-secondary));
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--wb290-radius-sm);
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wb290-btn-promo:hover {
  transform: scale(1.05);
  box-shadow: var(--wb290-shadow-glow);
}

/* ========== Testimonials ========== */
.wb290-testimonial {
  background: var(--wb290-bg-card);
  border-radius: var(--wb290-radius);
  padding: 12px;
  margin: 8px 0;
  border-left: 3px solid var(--wb290-primary);
}

.wb290-testimonial-name {
  font-weight: 700;
  color: var(--wb290-accent);
  font-size: 1.2rem;
}

.wb290-testimonial-text {
  color: var(--wb290-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
  margin-top: 4px;
}

/* ========== Winners Showcase ========== */
.wb290-winner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--wb290-border);
}

.wb290-winner-item:last-child { border-bottom: none; }

.wb290-winner-name {
  font-weight: 600;
  color: var(--wb290-accent);
  font-size: 1.2rem;
  min-width: 70px;
}

.wb290-winner-game {
  color: var(--wb290-text-muted);
  font-size: 1.1rem;
  flex: 1;
}

.wb290-winner-amount {
  font-weight: 700;
  color: var(--wb290-green);
  font-size: 1.2rem;
}

/* ========== Payment Methods ========== */
.wb290-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.wb290-payment-item {
  background: var(--wb290-bg-card);
  border-radius: var(--wb290-radius-sm);
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--wb290-text);
  border: 1px solid var(--wb290-border);
}

/* ========== Footer ========== */
.wb290-footer {
  background: linear-gradient(180deg, #1A1A2E, #0a0a1a);
  padding: 24px 12px;
  margin-top: 24px;
  border-top: 2px solid var(--wb290-primary);
}

.wb290-footer-inner {
  max-width: var(--wb290-max-w);
  margin: 0 auto;
}

.wb290-footer-brand {
  font-size: 1.3rem;
  color: var(--wb290-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.wb290-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.wb290-footer-promo-btn {
  background: linear-gradient(135deg, var(--wb290-primary), var(--wb290-secondary));
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--wb290-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}

.wb290-footer-promo-btn:hover { transform: scale(1.05); }

.wb290-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 16px;
}

.wb290-footer-links a {
  color: var(--wb290-text-muted);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.wb290-footer-links a:hover { color: var(--wb290-primary); }

.wb290-footer-copy {
  font-size: 1.1rem;
  color: var(--wb290-text-muted);
  opacity: 0.7;
  text-align: center;
  margin-top: 12px;
}

/* ========== Bottom Navigation ========== */
.wb290-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1A1A2E, #0a0a1a);
  border-top: 2px solid var(--wb290-primary);
  height: var(--wb290-bottom-h);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.wb290-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--wb290-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  gap: 2px;
  padding: 4px;
  border-radius: var(--wb290-radius-sm);
}

.wb290-bottom-btn:hover,
.wb290-bottom-btn:focus {
  color: var(--wb290-primary);
  transform: scale(1.08);
}

.wb290-bottom-btn.wb290-bottom-active {
  color: var(--wb290-primary);
}

.wb290-bottom-btn .wb290-bnav-icon {
  font-size: 22px;
  line-height: 1;
}

.wb290-bottom-btn .wb290-bnav-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

/* ========== Responsive ========== */
@media (min-width: 769px) {
  .wb290-bottom-nav { display: none; }
  .wb290-header-inner,
  .wb290-footer-inner,
  .wb290-container { max-width: 768px; }
}

@media (max-width: 768px) {
  .wb290-main { padding-bottom: calc(var(--wb290-bottom-h) + 12px); }
}

/* ========== Utility ========== */
.wb290-text-center { text-align: center; }
.wb290-mt-8 { margin-top: 8px; }
.wb290-mt-16 { margin-top: 16px; }
.wb290-mb-8 { margin-bottom: 8px; }
.wb290-mb-16 { margin-bottom: 16px; }
.wb290-hidden { display: none; }

/* ========== Animation ========== */
@keyframes wb290-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.wb290-animate-pulse { animation: wb290-pulse 2s infinite; }
