/* d9d9 game apk - Core base stylesheet (mobile-first) */
/* All custom classes use the w46d9- prefix */

:root {
  --w46d9-primary: #20B2AA;
  --w46d9-secondary: #0097A7;
  --w46d9-bg: #0F0F23;
  --w46d9-bg-soft: #15163a;
  --w46d9-text: #E8F6F6;
  --w46d9-muted: #9AA8C0;
  --w46d9-accent: #FFD166;
  --w46d9-danger: #FF5C7C;
  --w46d9-card: #181a3a;
  --w46d9-border: rgba(32, 178, 170, 0.25);
  --w46d9-radius: 14px;
  --w46d9-gap: 1rem;
}

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

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--w46d9-bg);
  color: var(--w46d9-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

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

.w46d9-container { max-width: 430px; margin: 0 auto; padding: 0 1rem; position: relative; }
.w46d9-wrapper { width: 100%; }

/* ===== Header ===== */
.w46d9-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, rgba(15,15,35,0.96), rgba(0,151,167,0.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w46d9-border);
}
.w46d9-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0.6rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.w46d9-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--w46d9-text); }
.w46d9-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w46d9-logo b { font-size: 1.5rem; color: var(--w46d9-accent); letter-spacing: 0.3px; }
.w46d9-logo span { font-size: 1.05rem; color: var(--w46d9-muted); }
.w46d9-head-actions { display: flex; align-items: center; gap: 0.5rem; }
.w46d9-menu-btn {
  background: transparent; border: 1px solid var(--w46d9-border);
  color: var(--w46d9-text); width: 38px; height: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.w46d9-btn {
  border: none; border-radius: 20px; padding: 0.6rem 1.1rem; font-size: 1.25rem;
  font-weight: 700; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 38px;
}
.w46d9-btn-primary {
  background: linear-gradient(135deg, var(--w46d9-accent), #ff9f1c);
  color: #1a1a2e; box-shadow: 0 4px 12px rgba(255, 209, 102, 0.35);
}
.w46d9-btn-ghost {
  background: rgba(232, 246, 246, 0.08); color: var(--w46d9-text);
  border: 1px solid var(--w46d9-border);
}
.w46d9-btn:active { transform: scale(0.95); }

/* ===== Mobile Menu ===== */
.w46d9-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px;
  height: 100vh; z-index: 9999;
  background: linear-gradient(160deg, #0F0F23, #15163a);
  border-left: 1px solid var(--w46d9-border);
  padding: 5rem 1.4rem 2rem; transition: right 0.3s ease;
  overflow-y: auto;
}
.w46d9-mobile-menu.w46d9-open { right: 0; }
.w46d9-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9998;
  display: none;
}
.w46d9-overlay.w46d9-open { display: block; }
.w46d9-menu-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: transparent; border: none; color: var(--w46d9-text); font-size: 2rem; cursor: pointer;
}
.w46d9-menu-title { color: var(--w46d9-accent); font-size: 1.5rem; margin-bottom: 1rem; font-weight: 700; }
.w46d9-menu-list { list-style: none; }
.w46d9-menu-list li { margin-bottom: 0.7rem; }
.w46d9-menu-list a {
  display: block; padding: 0.8rem 1rem; border-radius: 10px;
  background: rgba(32,178,170,0.08); color: var(--w46d9-text); font-size: 1.3rem;
  border: 1px solid transparent;
}
.w46d9-menu-list a:active { border-color: var(--w46d9-border); }
.w46d9-menu-list a span { color: var(--w46d9-muted); display: block; font-size: 1.05rem; margin-top: 2px; }

/* ===== Hero / Carousel ===== */
.w46d9-main { padding-top: 60px; }
.w46d9-hero {
  position: relative; margin: 1rem 0; border-radius: var(--w46d9-radius); overflow: hidden;
  border: 1px solid var(--w46d9-border);
}
.w46d9-carousel { position: relative; overflow: hidden; }
.w46d9-slides { display: flex; transition: transform 0.4s ease; }
.w46d9-slide {
  flex: 0 0 100%; position: relative; cursor: pointer;
}
.w46d9-slide img { width: 100%; height: 200px; object-fit: cover; }
.w46d9-slide-cap {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: linear-gradient(transparent, rgba(15,15,35,0.85)); padding-top: 2rem; border-radius: 8px;
}
.w46d9-slide-cap b { color: var(--w46d9-accent); font-size: 1.5rem; display: block; }
.w46d9-slide-cap span { color: var(--w46d9-text); font-size: 1.15rem; }
.w46d9-carousel-dots {
  position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.4rem; z-index: 2;
}
.w46d9-carousel-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer;
}
.w46d9-carousel-dots span.w46d9-active { background: var(--w46d9-accent); width: 18px; border-radius: 4px; }

/* ===== Section ===== */
.w46d9-section { margin: 1.5rem 0; }
.w46d9-section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem;
}
.w46d9-section-head h2 { font-size: 1.6rem; color: var(--w46d9-text); }
.w46d9-section-head h2 i { color: var(--w46d9-primary); margin-right: 0.4rem; }
.w46d9-section-head a { font-size: 1.15rem; color: var(--w46d9-accent); }
.w46d9-intro { color: var(--w46d9-muted); font-size: 1.2rem; line-height: 1.7rem; margin-bottom: 1rem; }
.w46d9-intro b { color: var(--w46d9-text); }

/* ===== Game Grid ===== */
.w46d9-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.w46d9-game-card {
  background: var(--w46d9-card); border: 1px solid var(--w46d9-border);
  border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform 0.15s ease;
}
.w46d9-game-card:active { transform: scale(0.96); }
.w46d9-game-card img { width: 100%; height: 88px; object-fit: cover; }
.w46d9-game-card .w46d9-game-name {
  padding: 0.4rem 0.5rem; font-size: 1rem; text-align: center;
  color: var(--w46d9-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w46d9-game-cat-label {
  display: inline-block; padding: 0.2rem 0.7rem; border-radius: 12px;
  background: rgba(32,178,170,0.15); color: var(--w46d9-primary); font-size: 1rem; margin-bottom: 0.6rem;
}

/* ===== Feature / Promo / Cards ===== */
.w46d9-card {
  background: var(--w46d9-card); border: 1px solid var(--w46d9-border);
  border-radius: var(--w46d9-radius); padding: 1rem; margin-bottom: 0.8rem;
}
.w46d9-card h3 { color: var(--w46d9-accent); font-size: 1.35rem; margin-bottom: 0.5rem; }
.w46d9-card p { color: var(--w46d9-muted); font-size: 1.2rem; line-height: 1.7rem; }
.w46d9-card p b { color: var(--w46d9-text); }

.w46d9-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.w46d9-mini-card {
  background: rgba(32,178,170,0.06); border: 1px solid var(--w46d9-border);
  border-radius: 10px; padding: 0.8rem; text-align: center;
}
.w46d9-mini-card i { font-size: 2.2rem; color: var(--w46d9-primary); }
.w46d9-mini-card b { display: block; margin-top: 0.3rem; color: var(--w46d9-text); font-size: 1.2rem; }
.w46d9-mini-card span { color: var(--w46d9-muted); font-size: 1rem; }

/* ===== RTP table ===== */
.w46d9-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.w46d9-rtp-table th, .w46d9-rtp-table td {
  padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--w46d9-border); text-align: left;
}
.w46d9-rtp-table th { color: var(--w46d9-accent); }
.w46d9-rtp-table td { color: var(--w46d9-muted); }
.w46d9-rtp-table td b { color: var(--w46d9-text); }

/* ===== Testimonials ===== */
.w46d9-testi {
  background: var(--w46d9-card); border-left: 3px solid var(--w46d9-primary);
  border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 0.7rem;
}
.w46d9-testi p { color: var(--w46d9-text); font-size: 1.2rem; line-height: 1.6rem; font-style: italic; }
.w46d9-testi b { color: var(--w46d9-accent); font-size: 1.1rem; display: block; margin-top: 0.4rem; }
.w46d9-stars { color: var(--w46d9-accent); font-size: 1.1rem; }

/* ===== Winners ===== */
.w46d9-winners { display: flex; flex-direction: column; gap: 0.5rem; }
.w46d9-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(32,178,170,0.06); border: 1px solid var(--w46d9-border);
  border-radius: 8px; padding: 0.6rem 0.8rem;
}
.w46d9-winner b { color: var(--w46d9-text); font-size: 1.2rem; }
.w46d9-winner span { color: var(--w46d9-accent); font-size: 1.2rem; font-weight: 700; }
.w46d9-winner small { color: var(--w46d9-muted); font-size: 1rem; }

/* ===== Payments ===== */
.w46d9-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.w46d9-pay {
  background: var(--w46d9-card); border: 1px solid var(--w46d9-border); border-radius: 8px;
  padding: 0.5rem; text-align: center; font-size: 0.95rem; color: var(--w46d9-muted);
}
.w46d9-pay i { display: block; font-size: 1.8rem; color: var(--w46d9-primary); margin-bottom: 0.2rem; }

/* ===== App CTA ===== */
.w46d9-app-cta {
  background: linear-gradient(135deg, rgba(0,151,167,0.3), rgba(32,178,170,0.2));
  border: 1px solid var(--w46d9-border); border-radius: var(--w46d9-radius);
  padding: 1.2rem; text-align: center;
}
.w46d9-app-cta h3 { color: var(--w46d9-accent); font-size: 1.5rem; margin-bottom: 0.4rem; }
.w46d9-app-cta p { color: var(--w46d9-text); font-size: 1.2rem; margin-bottom: 0.8rem; }
.w46d9-app-cta .w46d9-btn { display: inline-block; margin: 0 0.3rem; }

/* ===== Inline promo links ===== */
.w46d9-promo-link {
  color: var(--w46d9-accent); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--w46d9-accent);
}

/* ===== Footer ===== */
.w46d9-footer {
  background: #0a0b1e; border-top: 1px solid var(--w46d9-border);
  padding: 1.5rem 1rem 7rem; margin-top: 1.5rem;
}
.w46d9-footer-inner { max-width: 430px; margin: 0 auto; }
.w46d9-footer-brand { color: var(--w46d9-text); font-size: 1.3rem; margin-bottom: 0.4rem; }
.w46d9-footer-brand b { color: var(--w46d9-accent); }
.w46d9-footer-desc { color: var(--w46d9-muted); font-size: 1.1rem; line-height: 1.6rem; margin-bottom: 1rem; }
.w46d9-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1rem; }
.w46d9-footer-links a { color: var(--w46d9-primary); font-size: 1.1rem; }
.w46d9-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.w46d9-footer-promos button {
  background: var(--w46d9-card); border: 1px solid var(--w46d9-border); color: var(--w46d9-text);
  border-radius: 16px; padding: 0.4rem 0.9rem; font-size: 1.1rem; cursor: pointer;
}
.w46d9-footer-promos button:active { background: var(--w46d9-primary); color: #0F0F23; }
.w46d9-copy { color: var(--w46d9-muted); font-size: 1rem; text-align: center; margin-top: 1rem; }

/* ===== Bottom Nav ===== */
.w46d9-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, rgba(15,15,35,0.98), rgba(0,151,167,0.95));
  border-top: 1px solid var(--w46d9-border);
  display: flex; justify-content: space-around; align-items: stretch;
}
.w46d9-bottom-nav button {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--w46d9-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; transition: transform 0.15s ease, color 0.15s ease;
}
.w46d9-bottom-nav button i { font-size: 22px; }
.w46d9-bottom-nav button span { font-size: 10px; }
.w46d9-bottom-nav button:active { transform: scale(0.9); color: var(--w46d9-accent); }
.w46d9-bottom-nav button.w46d9-active { color: var(--w46d9-accent); }
.w46d9-bottom-nav .w46d9-badge {
  position: absolute; top: 6px; background: var(--w46d9-danger); color: #fff;
  font-size: 9px; padding: 1px 5px; border-radius: 8px;
}

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .w46d9-bottom-nav { display: none; }
  .w46d9-menu-btn { display: none; }
  .w46d9-container { max-width: 760px; }
  .w46d9-header-inner { max-width: 760px; }
  .w46d9-game-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 768px) {
  .w46d9-main { padding-bottom: 80px; }
  .w46d9-footer { padding-bottom: 7rem; }
}