/* Orion Gameplay - Core Stylesheet */
/* All classes use w291e- prefix for namespace isolation */
/* Color palette: #8470FF | #FFB3BA | #273746 | #FFB3FF | #DDA0DD */

:root {
  --w291e-primary: #8470FF;
  --w291e-secondary: #FFB3BA;
  --w291e-bg: #273746;
  --w291e-accent: #FFB3FF;
  --w291e-light: #DDA0DD;
  --w291e-bg-dark: #1a2530;
  --w291e-bg-card: #2f4556;
  --w291e-text: #f0f0f5;
  --w291e-text-muted: #b0b8c8;
  --w291e-radius: 8px;
  --w291e-radius-lg: 14px;
  --w291e-shadow: 0 2px 12px rgba(0,0,0,0.25);
  --w291e-header-h: 56px;
  --w291e-bnav-h: 60px;
}

html { font-size: 62.5%; scroll-behavior: smooth; }

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

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

a { color: var(--w291e-secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--w291e-accent); }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.w291e-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--w291e-header-h);
  background: linear-gradient(135deg, var(--w291e-bg-dark) 0%, var(--w291e-bg) 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(132,112,255,0.2);
}

.w291e-header-left {
  display: flex; align-items: center; gap: 0.8rem;
}
.w291e-logo {
  width: 28px; height: 28px; border-radius: 50%;
}
.w291e-site-name {
  font-size: 1.7rem; font-weight: 700; color: #fff;
  letter-spacing: 0.3px;
}
.w291e-site-name span { color: var(--w291e-primary); }

.w291e-header-right {
  display: flex; align-items: center; gap: 0.6rem;
}
.w291e-btn-register, .w291e-btn-login {
  border: none; border-radius: var(--w291e-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  padding: 0.5rem 1.2rem; transition: all .2s;
}
.w291e-btn-register {
  background: linear-gradient(135deg, var(--w291e-primary), #6a50e0);
  color: #fff;
}
.w291e-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 10px rgba(132,112,255,0.5); }
.w291e-btn-login {
  background: transparent;
  color: var(--w291e-secondary);
  border: 1px solid var(--w291e-secondary);
}
.w291e-btn-login:hover { background: rgba(255,179,186,0.1); }

.w291e-menu-toggle {
  background: none; border: none; color: #fff; font-size: 2rem;
  cursor: pointer; padding: 0.4rem; line-height: 1;
}

/* ===== MOBILE MENU ===== */
.w291e-menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.6);
}
.w291e-mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 9999;
  width: 260px; background: var(--w291e-bg-dark);
  transform: translateX(-100%); transition: transform .3s ease;
  padding: 2rem 0; overflow-y: auto;
  border-right: 1px solid rgba(132,112,255,0.15);
}
.w291e-mobile-menu-header {
  padding: 0 1.6rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.w291e-mobile-menu-header h3 {
  font-size: 1.8rem; color: #fff; font-weight: 700;
}
.w291e-mobile-menu-header p {
  font-size: 1.2rem; color: var(--w291e-text-muted); margin-top: 0.3rem;
}
.w291e-mobile-menu nav { padding: 1rem 0; }
.w291e-mobile-menu a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.6rem; color: var(--w291e-text);
  font-size: 1.4rem; transition: all .2s;
  border-left: 3px solid transparent;
}
.w291e-mobile-menu a:hover, .w291e-mobile-menu a:focus {
  background: rgba(132,112,255,0.1);
  border-left-color: var(--w291e-primary);
  color: #fff;
}
.w291e-mobile-menu a .w291e-menu-icon {
  font-size: 1.8rem; width: 24px; text-align: center;
}

/* ===== MAIN CONTENT ===== */
.w291e-main {
  margin-top: var(--w291e-header-h);
  min-height: calc(100vh - var(--w291e-header-h));
}

/* ===== CAROUSEL ===== */
.w291e-carousel {
  position: relative; overflow: hidden; width: 100%;
  border-radius: 0 0 var(--w291e-radius-lg) var(--w291e-radius-lg);
}
.w291e-carousel-track {
  display: flex; transition: transform .5s ease;
}
.w291e-slide {
  min-width: 100%; cursor: pointer; position: relative;
}
.w291e-slide img {
  width: 100%; height: auto; aspect-ratio: 16/8;
  object-fit: cover;
}
.w291e-dots {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px;
}
.w291e-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: all .3s;
}
.w291e-dot-active { background: #fff; transform: scale(1.3); }

/* ===== SECTIONS ===== */
.w291e-section {
  padding: 2.5rem 1.4rem;
}
.w291e-section-title {
  font-size: 2rem; font-weight: 700; color: #fff;
  margin-bottom: 1.5rem; padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--w291e-primary);
  display: flex; align-items: center; gap: 0.8rem;
}
.w291e-section-title i { color: var(--w291e-primary); }

/* ===== GAME GRID ===== */
.w291e-cat-title {
  font-size: 1.6rem; font-weight: 600; color: var(--w291e-secondary);
  margin: 1.8rem 0 1rem; padding-left: 0.4rem;
  border-left: 3px solid var(--w291e-primary);
}
.w291e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.w291e-game-item {
  text-align: center; cursor: pointer;
  border-radius: var(--w291e-radius);
  padding: 0.6rem 0.3rem;
  transition: all .2s;
  background: var(--w291e-bg-card);
}
.w291e-game-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(132,112,255,0.3);
}
.w291e-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--w291e-radius); margin-bottom: 0.4rem;
}
.w291e-game-item span {
  font-size: 1.1rem; color: var(--w291e-text-muted);
  display: block; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CONTENT CARDS ===== */
.w291e-card {
  background: var(--w291e-bg-card);
  border-radius: var(--w291e-radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--w291e-shadow);
  border: 1px solid rgba(132,112,255,0.1);
}
.w291e-card h2 {
  font-size: 1.8rem; color: #fff; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.w291e-card h3 {
  font-size: 1.5rem; color: var(--w291e-secondary); margin: 1.2rem 0 0.6rem;
}
.w291e-card p {
  color: var(--w291e-text-muted); margin-bottom: 0.8rem;
  line-height: 1.6;
}
.w291e-card ul {
  list-style: none; padding: 0;
}
.w291e-card ul li {
  padding: 0.5rem 0; color: var(--w291e-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.w291e-card ul li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free';
  font-weight: 900; color: var(--w291e-primary); font-size: 1.2rem;
  margin-top: 0.2rem;
}

/* ===== PROMO LINK STYLES ===== */
.w291e-promo-text {
  color: var(--w291e-primary); font-weight: 600;
  cursor: pointer; border-bottom: 1px dashed var(--w291e-primary);
  transition: all .2s;
}
.w291e-promo-text:hover { color: var(--w291e-accent); border-bottom-color: var(--w291e-accent); }

.w291e-promo-btn {
  display: inline-block; padding: 1rem 2.4rem;
  background: linear-gradient(135deg, var(--w291e-primary), #6a50e0);
  color: #fff; font-size: 1.5rem; font-weight: 700;
  border-radius: var(--w291e-radius-lg); cursor: pointer;
  border: none; transition: all .2s; text-align: center;
}
.w291e-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132,112,255,0.4);
}

.w291e-promo-btn-secondary {
  display: inline-block; padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--w291e-secondary), #ff9aa2);
  color: var(--w291e-bg-dark); font-size: 1.4rem; font-weight: 700;
  border-radius: var(--w291e-radius); cursor: pointer;
  border: none; transition: all .2s;
}
.w291e-promo-btn-secondary:hover {
  transform: scale(1.03);
}

/* ===== BOTTOM NAV ===== */
.w291e-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--w291e-bnav-h);
  background: linear-gradient(180deg, var(--w291e-bg-dark), #121d28);
  display: flex; justify-content: space-around; align-items: center;
  border-top: 1px solid rgba(132,112,255,0.2);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}
.w291e-bnav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px;
  min-width: 60px; min-height: 50px;
  background: none; border: none; cursor: pointer;
  color: var(--w291e-text-muted); transition: all .2s;
  border-radius: 8px; padding: 0.3rem;
}
.w291e-bnav-btn:hover, .w291e-bnav-btn:focus {
  color: var(--w291e-primary);
}
.w291e-bnav-btn.active {
  color: var(--w291e-primary);
}
.w291e-bnav-btn.active::after {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--w291e-primary); border-radius: 2px;
  margin-top: 1px;
}
.w291e-bnav-btn i, .w291e-bnav-btn .material-symbols-outlined {
  font-size: 2.2rem;
}
.w291e-bnav-btn span {
  font-size: 1rem; font-weight: 500;
}

/* ===== FOOTER ===== */
.w291e-footer {
  background: var(--w291e-bg-dark);
  padding: 2.5rem 1.4rem 1.5rem;
  border-top: 1px solid rgba(132,112,255,0.15);
}
.w291e-footer-brand {
  text-align: center; margin-bottom: 2rem;
}
.w291e-footer-brand p {
  font-size: 1.3rem; color: var(--w291e-text-muted); line-height: 1.6;
}
.w291e-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem; margin-bottom: 1.5rem;
}
.w291e-footer-links a {
  padding: 0.5rem 1rem; background: var(--w291e-bg-card);
  border-radius: var(--w291e-radius); font-size: 1.2rem;
  color: var(--w291e-text); transition: all .2s;
}
.w291e-footer-links a:hover {
  background: var(--w291e-primary); color: #fff;
}
.w291e-footer-copy {
  text-align: center; font-size: 1.2rem;
  color: rgba(255,255,255,0.35); padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== FAQ ACCORDION ===== */
.w291e-faq-item {
  background: var(--w291e-bg-card);
  border-radius: var(--w291e-radius);
  margin-bottom: 0.8rem; overflow: hidden;
  border: 1px solid rgba(132,112,255,0.08);
}
.w291e-faq-q {
  padding: 1.2rem 1.4rem; cursor: pointer;
  font-weight: 600; color: #fff; font-size: 1.4rem;
  display: flex; justify-content: space-between; align-items: center;
}
.w291e-faq-q .w291e-faq-icon { transition: transform .3s; font-size: 1.2rem; color: var(--w291e-primary); }
.w291e-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  padding: 0 1.4rem; color: var(--w291e-text-muted); font-size: 1.3rem;
}
.w291e-faq-item.open .w291e-faq-a { max-height: 300px; padding-bottom: 1.2rem; }
.w291e-faq-item.open .w291e-faq-icon { transform: rotate(180deg); }

/* ===== WINNER MARQUEE ===== */
.w291e-winners {
  overflow: hidden; padding: 1rem 0;
  background: rgba(132,112,255,0.06);
  border-radius: var(--w291e-radius);
}
.w291e-winners-track {
  display: flex; gap: 2rem;
  animation: w291emarquee 20s linear infinite;
}
.w291e-winner-item {
  white-space: nowrap; font-size: 1.2rem;
  color: var(--w291e-text-muted);
}
.w291e-winner-item strong { color: var(--w291e-secondary); }

@keyframes w291emarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== TESTIMONIALS ===== */
.w291e-testimonial {
  background: var(--w291e-bg-card);
  border-radius: var(--w291e-radius-lg);
  padding: 1.5rem; margin-bottom: 1rem;
  border-left: 3px solid var(--w291e-primary);
}
.w291e-testimonial p { font-style: italic; margin-bottom: 0.5rem; }
.w291e-testimonial cite { color: var(--w291e-light); font-size: 1.2rem; }

/* ===== PAYMENT ICONS ===== */
.w291e-payment-row {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin: 1rem 0;
}
.w291e-payment-icon {
  background: rgba(255,255,255,0.08); border-radius: var(--w291e-radius);
  padding: 0.8rem 1.2rem; font-size: 1.2rem; color: var(--w291e-text-muted);
  font-weight: 600;
}

/* ===== UTILITY ===== */
.w291e-text-center { text-align: center; }
.w291e-mt-1 { margin-top: 1rem; }
.w291e-mt-2 { margin-top: 2rem; }
.w291e-mb-1 { margin-bottom: 1rem; }
.w291e-mb-2 { margin-bottom: 2rem; }
.w291e-hidden { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .w291e-main { padding-bottom: 75px; }
  .w291e-game-grid { grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
  .w291e-section { padding: 2rem 1rem; }
}

@media (min-width: 769px) {
  .w291e-bnav { display: none; }
  .w291e-menu-toggle { display: none; }
  .w291e-header { padding: 0 2rem; }
  .w291e-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w291e-section { padding: 3rem 2rem; max-width: 800px; margin: 0 auto; }
  .w291e-footer { max-width: 800px; margin: 0 auto; }
}
