/* ok986 basefiles CSS - prefix: w9773- */
/* Palette: #800020 purple | #CD853F peru | #2C3E50 deep blue | #1E90FF dodger | #48D1CC turquoise */

:root {
  --w9773-primary: #800020;
  --w9773-secondary: #CD853F;
  --w9773-bg: #2C3E50;
  --w9773-bg-dark: #1a242d;
  --w9773-accent: #1E90FF;
  --w9773-mint: #48D1CC;
  --w9773-text: #f5f5f7;
  --w9773-text-muted: #b9c2cc;
  --w9773-card: #34495e;
  --w9773-card-light: #3d556d;
  --w9773-border: #4a6178;
  --w9773-gold: #FFD700;
}

/* root font 62.5% -> 1rem = 10px */
html { font-size: 62.5%; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--w9773-bg);
  color: var(--w9773-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--w9773-mint); text-decoration: none; }

/* ===== Header ===== */
.w9773-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 56px;
  background: linear-gradient(135deg, var(--w9773-primary), #5a0017);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.w9773-logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--w9773-text);
  font-weight: 700;
  font-size: 1.6rem;
}
.w9773-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w9773-logo span { color: var(--w9773-gold); }

.w9773-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w9773-btn {
  border: none;
  border-radius: 20px;
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.w9773-btn:active { transform: scale(0.94); }
.w9773-btn-login {
  background: transparent;
  color: var(--w9773-text);
  border: 1px solid var(--w9773-mint);
}
.w9773-btn-register {
  background: linear-gradient(135deg, var(--w9773-secondary), #b8732f);
  color: #fff;
  box-shadow: 0 2px 6px rgba(205,133,63,0.5);
}
.w9773-menu-toggle {
  background: transparent;
  border: none;
  color: var(--w9773-text);
  font-size: 2rem;
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Mobile menu ===== */
.w9773-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--w9773-bg-dark);
  border-top: 1px solid var(--w9773-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}
.w9773-mobile-menu.w9773-menu-open { max-height: 480px; }
.w9773-mobile-menu ul { list-style: none; padding: 0.5rem 0; }
.w9773-mobile-menu li a {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--w9773-text);
  border-bottom: 1px solid rgba(74,97,120,0.3);
  font-size: 1.4rem;
}
.w9773-mobile-menu li a:hover { background: var(--w9773-card); color: var(--w9773-mint); }

/* ===== Main content ===== */
.w9773-main {
  padding-top: 56px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* ===== Carousel ===== */
.w9773-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin: 0 0 1.2rem 0;
}
.w9773-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.w9773-slide img { width: 100%; height: 100%; object-fit: cover; }
.w9773-slide-active { opacity: 1; }
.w9773-slide-overlay {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  background: rgba(0,0,0,0.5);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--w9773-gold);
}
.w9773-dots {
  position: absolute; bottom: 0.8rem; right: 1.2rem;
  display: flex; gap: 0.4rem;
}
.w9773-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.w9773-dot-active { background: var(--w9773-gold); }

/* ===== Sections ===== */
.w9773-section {
  padding: 1.6rem 1.2rem;
}
.w9773-section h1 {
  font-size: 1.8rem;
  color: var(--w9773-gold);
  margin-bottom: 0.6rem;
  line-height: 2.2rem;
}
.w9773-section h2 {
  font-size: 1.6rem;
  color: var(--w9773-mint);
  margin: 1.2rem 0 0.8rem;
  border-left: 4px solid var(--w9773-secondary);
  padding-left: 0.8rem;
}
.w9773-section h3 {
  font-size: 1.4rem;
  color: var(--w9773-accent);
  margin: 1rem 0 0.4rem;
}
.w9773-section p {
  font-size: 1.3rem;
  color: var(--w9773-text-muted);
  margin-bottom: 0.8rem;
}

/* ===== Promo CTA ===== */
.w9773-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--w9773-secondary), #b8732f);
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 24px;
  font-size: 1.3rem;
  margin: 0.6rem 0;
  cursor: pointer;
  border: none;
  box-shadow: 0 3px 8px rgba(205,133,63,0.5);
}
.w9773-cta:active { transform: scale(0.96); }
.w9773-text-link {
  color: var(--w9773-mint);
  font-weight: 700;
  text-decoration: underline;
}

/* ===== Game grid ===== */
.w9773-cat-title {
  font-size: 1.5rem;
  color: var(--w9773-gold);
  margin: 1.4rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.w9773-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.w9773-game-card {
  background: var(--w9773-card);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease;
  border: 1px solid var(--w9773-border);
}
.w9773-game-card:active { transform: scale(0.95); }
.w9773-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.w9773-game-name {
  font-size: 1rem;
  color: var(--w9773-text);
  text-align: center;
  padding: 0.4rem 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Feature cards ===== */
.w9773-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.w9773-card {
  background: var(--w9773-card);
  border-radius: 12px;
  padding: 1.2rem;
  border-left: 4px solid var(--w9773-mint);
}
.w9773-card-title {
  font-size: 1.4rem;
  color: var(--w9773-gold);
  margin-bottom: 0.4rem;
}
.w9773-card-text {
  font-size: 1.25rem;
  color: var(--w9773-text-muted);
  line-height: 1.7rem;
}

/* ===== Testimonials ===== */
.w9773-testimonial {
  background: var(--w9773-card-light);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-top: 3px solid var(--w9773-accent);
}
.w9773-testimonial-author {
  font-size: 1.2rem;
  color: var(--w9773-gold);
  font-weight: 700;
  margin-top: 0.4rem;
}

/* ===== Payment row ===== */
.w9773-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.w9773-pay-chip {
  background: var(--w9773-card);
  border: 1px solid var(--w9773-border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  color: var(--w9773-text);
}

/* ===== Winners ===== */
.w9773-winner {
  display: flex;
  justify-content: space-between;
  background: var(--w9773-card);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.w9773-winner-amount { color: var(--w9773-gold); font-weight: 700; }

/* ===== Footer ===== */
.w9773-footer {
  background: var(--w9773-bg-dark);
  padding: 1.6rem 1.2rem 2rem;
  border-top: 2px solid var(--w9773-primary);
}
.w9773-footer-brand {
  font-size: 1.3rem;
  color: var(--w9773-text-muted);
  margin-bottom: 1rem;
  line-height: 1.7rem;
}
.w9773-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1rem;
}
.w9773-footer-promos button {
  background: linear-gradient(135deg, var(--w9773-primary), #5a0017);
  border: none;
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 16px;
  font-size: 1.1rem;
  cursor: pointer;
}
.w9773-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
  margin-bottom: 1rem;
}
.w9773-footer-links a {
  font-size: 1.15rem;
  color: var(--w9773-mint);
}
.w9773-footer-copy {
  font-size: 1.1rem;
  color: var(--w9773-text-muted);
  border-top: 1px solid var(--w9773-border);
  padding-top: 0.8rem;
}

/* ===== Bottom nav ===== */
.w9773-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(135deg, var(--w9773-bg-dark), #11181f);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 2px solid var(--w9773-primary);
  z-index: 1000;
}
.w9773-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--w9773-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.w9773-bottomnav-btn i,
.w9773-bottomnav-btn .material-icons-outlined,
.w9773-bottomnav-btn ion-icon {
  font-size: 22px;
}
.w9773-bottomnav-btn:active { transform: scale(0.9); }
.w9773-bottomnav-active { color: var(--w9773-gold); }
.w9773-bottomnav-btn.w9773-bottomnav-active i { color: var(--w9773-gold); }
.w9773-nav-badge {
  position: absolute;
  top: 4px; right: 18px;
  background: var(--w9773-secondary);
  color: #fff;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 0 5px;
  min-width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
}

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .w9773-bottomnav { display: none; }
  .w9773-main { padding-bottom: 2rem; }
  .w9773-grid { grid-template-columns: repeat(6, 1fr); }
}
