/* ============================================================
 * okada-play.cfd stylesheet
 * Prefix: w52ae-   |   Mobile-first, max-width 430px
 * Palette: #2E4057 (deep slate) / #A0522D (sienna accent)
 * ============================================================ */

:root {
  --w52ae-primary: #2E4057;
  --w52ae-primary-dark: #1d2c3c;
  --w52ae-primary-light: #3b5269;
  --w52ae-accent: #A0522D;
  --w52ae-accent-light: #c46a3a;
  --w52ae-gold: #E8B96A;
  --w52ae-bg: #11181f;
  --w52ae-bg-soft: #18212a;
  --w52ae-bg-card: #1f2a36;
  --w52ae-text: #f1ece4;
  --w52ae-text-muted: #a7b0bc;
  --w52ae-border: rgba(255,255,255,0.08);
  --w52ae-shadow: 0 6px 22px rgba(0,0,0,0.35);
  --w52ae-radius: 14px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, sans-serif;
  background: var(--w52ae-bg);
  color: var(--w52ae-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html, body { width: 100%; }
html { font-size: 62.5%; }   /* rem = 10px */

a { color: var(--w52ae-gold); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--w52ae-gold); outline-offset: 2px; }
img { max-width: 100%; display: block; }

/* ---------- Mobile-first container (hard 430px cap) ---------- */
.w52ae-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
  position: relative;
}
.w52ae-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--w52ae-bg-soft);
  box-shadow: var(--w52ae-shadow);
  min-height: 100vh;
}

/* ---------- Header ---------- */
.w52ae-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--w52ae-primary-dark) 0%, var(--w52ae-primary) 100%);
  border-bottom: 2px solid var(--w52ae-accent);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.w52ae-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 56px;
}
.w52ae-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.w52ae-brand img {
  width: 28px; height: 28px;
  border-radius: 6px;
}
.w52ae-brand-name {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.3px;
  color: var(--w52ae-gold);
  text-transform: uppercase;
  white-space: nowrap;
}
.w52ae-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.w52ae-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, background .2s;
  min-height: 36px;
  line-height: 1;
}
.w52ae-btn:active { transform: scale(0.94); }
.w52ae-btn-login {
  background: transparent;
  color: var(--w52ae-text);
  border: 1px solid var(--w52ae-border);
}
.w52ae-btn-register {
  background: linear-gradient(135deg, var(--w52ae-accent) 0%, var(--w52ae-accent-light) 100%);
  color: #fff;
  box-shadow: 0 3px 8px rgba(160,82,45,0.45);
}
.w52ae-menu-btn {
  background: transparent;
  border: 1px solid var(--w52ae-border);
  border-radius: 8px;
  width: 36px; height: 36px;
  color: var(--w52ae-text);
  font-size: 1.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.w52ae-menu-btn.w52ae-active { background: var(--w52ae-accent); }

/* ---------- Mobile slide-in menu ---------- */
.w52ae-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 78%; max-width: 320px;
  height: 100vh;
  background: var(--w52ae-primary-dark);
  z-index: 9999;
  padding: 70px 18px 30px;
  transition: right .28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--w52ae-border);
}
.w52ae-mobile-menu.w52ae-menu-open { right: 0; }
.w52ae-mobile-menu h4 {
  font-size: 1.3rem;
  color: var(--w52ae-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 14px 0 6px;
}
.w52ae-mobile-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--w52ae-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--w52ae-border);
}
.w52ae-mobile-menu a:active { background: var(--w52ae-primary-light); }
.w52ae-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  display: none;
}
.w52ae-menu-overlay.w52ae-menu-open { display: block; }

/* ---------- Main ---------- */
main { padding-top: 64px; padding-bottom: 30px; }
@media (max-width: 768px) {
  main { padding-bottom: 90px; }   /* clearance for bottom nav */
}

/* ---------- Carousel ---------- */
.w52ae-carousel {
  position: relative;
  margin: 12px 0 4px;
  border-radius: var(--w52ae-radius);
  overflow: hidden;
  box-shadow: var(--w52ae-shadow);
}
.w52ae-slide {
  position: relative;
  display: none;
}
.w52ae-slide.w52ae-active { display: block; }
.w52ae-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.w52ae-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0) 100%);
}
.w52ae-slide-caption h3 {
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 4px;
}
.w52ae-slide-caption p {
  font-size: 1.25rem;
  color: #ddd;
}
.w52ae-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}
.w52ae-carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
}
.w52ae-carousel-dot.w52ae-active { background: var(--w52ae-gold); width: 16px; border-radius: 4px; }

/* ---------- Headings ---------- */
.w52ae-section {
  padding: 22px 0 6px;
}
.w52ae-h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  color: #fff;
  font-weight: 800;
  margin-bottom: 8px;
}
.w52ae-h1 span { color: var(--w52ae-gold); }
.w52ae-section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.w52ae-section-title::before {
  content: "";
  width: 4px;
  height: 22px;
  background: var(--w52ae-accent);
  border-radius: 3px;
  display: inline-block;
}
.w52ae-subtitle {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--w52ae-gold);
  margin: 16px 0 8px;
}
.w52ae-text-muted { color: var(--w52ae-text-muted); font-size: 1.35rem; }

/* ---------- Category chips ---------- */
.w52ae-cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.w52ae-cat-chips::-webkit-scrollbar { display: none; }
.w52ae-cat-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--w52ae-bg-card);
  color: var(--w52ae-text-muted);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--w52ae-border);
  white-space: nowrap;
}
.w52ae-cat-chip.w52ae-active {
  background: var(--w52ae-accent);
  color: #fff;
  border-color: var(--w52ae-accent-light);
}

/* ---------- Game grid ---------- */
.w52ae-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
@media (min-width: 380px) {
  .w52ae-grid { gap: 10px; }
}
.w52ae-game-card {
  background: var(--w52ae-bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--w52ae-border);
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  text-align: center;
}
.w52ae-game-card:active {
  transform: scale(0.96);
  box-shadow: 0 0 0 2px var(--w52ae-gold);
}
.w52ae-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.w52ae-game-card .w52ae-game-name {
  font-size: 1.1rem;
  color: var(--w52ae-text);
  padding: 5px 4px 7px;
  line-height: 1.25;
  min-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Cards / panels ---------- */
.w52ae-card {
  background: var(--w52ae-bg-card);
  border-radius: var(--w52ae-radius);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--w52ae-border);
  box-shadow: var(--w52ae-shadow);
}
.w52ae-card h3 {
  font-size: 1.7rem;
  color: var(--w52ae-gold);
  margin-bottom: 8px;
}
.w52ae-card p {
  font-size: 1.35rem;
  color: var(--w52ae-text);
  margin-bottom: 8px;
}

/* ---------- Steps list (How to Play) ---------- */
.w52ae-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}
.w52ae-steps li {
  position: relative;
  padding: 10px 12px 10px 50px;
  margin-bottom: 8px;
  background: var(--w52ae-bg-card);
  border-radius: 10px;
  border-left: 3px solid var(--w52ae-accent);
  counter-increment: step;
  font-size: 1.35rem;
}
.w52ae-steps li::before {
  content: counter(step);
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--w52ae-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
}
.w52ae-steps li strong { color: var(--w52ae-gold); }

/* ---------- Feature grid ---------- */
.w52ae-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.w52ae-feature {
  background: var(--w52ae-bg-card);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--w52ae-border);
}
.w52ae-feature .material-icons,
.w52ae-feature .bi,
.w52ae-feature ion-icon { font-size: 26px; color: var(--w52ae-gold); }
.w52ae-feature h4 {
  font-size: 1.35rem;
  color: #fff;
  margin: 6px 0 3px;
}
.w52ae-feature p { font-size: 1.15rem; color: var(--w52ae-text-muted); line-height: 1.35; }

/* ---------- Promo CTA ---------- */
.w52ae-cta {
  background: linear-gradient(135deg, var(--w52ae-accent) 0%, var(--w52ae-primary) 100%);
  border-radius: var(--w52ae-radius);
  padding: 18px;
  text-align: center;
  color: #fff;
  margin: 16px 0;
  box-shadow: var(--w52ae-shadow);
}
.w52ae-cta h3 {
  font-size: 1.9rem;
  color: #fff;
  margin-bottom: 6px;
}
.w52ae-cta p { font-size: 1.3rem; color: #f4e4d4; margin-bottom: 12px; }
.w52ae-cta-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: var(--w52ae-accent);
  font-weight: 800;
  border-radius: 30px;
  font-size: 1.4rem;
  cursor: pointer;
}
.w52ae-cta-btn:active { transform: scale(0.95); }

/* ---------- Inline affiliate text link ---------- */
.w52ae-promo-text {
  color: var(--w52ae-gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- Testimonials ---------- */
.w52ae-testimonial {
  background: var(--w52ae-bg-card);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--w52ae-gold);
}
.w52ae-testimonial .w52ae-stars { color: var(--w52ae-gold); font-size: 1.3rem; }
.w52ae-testimonial p { font-size: 1.3rem; margin: 5px 0; }
.w52ae-testimonial .w52ae-author { font-size: 1.2rem; color: var(--w52ae-text-muted); }

/* ---------- RTP table ---------- */
.w52ae-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
  background: var(--w52ae-bg-card);
  border-radius: 10px;
  overflow: hidden;
}
.w52ae-rtp-table th, .w52ae-rtp-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid var(--w52ae-border);
}
.w52ae-rtp-table th {
  background: var(--w52ae-primary);
  color: var(--w52ae-gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.15rem;
}
.w52ae-rtp-table td.w52ae-rtp-high { color: #6dd47e; font-weight: 700; }

/* ---------- Winners list ---------- */
.w52ae-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--w52ae-bg-card);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.25rem;
}
.w52ae-winner .w52ae-amount { color: var(--w52ae-gold); font-weight: 700; }

/* ---------- Payment methods ---------- */
.w52ae-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.w52ae-pay-item {
  background: var(--w52ae-bg-card);
  padding: 10px 4px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.15rem;
  color: var(--w52ae-text);
  border: 1px solid var(--w52ae-border);
}
.w52ae-pay-item .w52ae-pay-icon { font-size: 22px; color: var(--w52ae-gold); }

/* ---------- FAQ ---------- */
.w52ae-faq-item {
  background: var(--w52ae-bg-card);
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--w52ae-border);
  overflow: hidden;
}
.w52ae-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 13px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.w52ae-faq-q .w52ae-faq-icon { transition: transform .2s; color: var(--w52ae-gold); }
.w52ae-faq-item.w52ae-open .w52ae-faq-icon { transform: rotate(45deg); }
.w52ae-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 14px;
  font-size: 1.3rem;
  color: var(--w52ae-text-muted);
}
.w52ae-faq-item.w52ae-open .w52ae-faq-a {
  max-height: 320px;
  padding: 0 14px 12px;
}

/* ---------- Footer ---------- */
.w52ae-footer {
  background: var(--w52ae-primary-dark);
  padding: 24px 12px 20px;
  margin-top: 18px;
  border-top: 2px solid var(--w52ae-accent);
}
.w52ae-footer-brand {
  color: var(--w52ae-text-muted);
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.5;
}
.w52ae-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.w52ae-footer-promos button {
  background: var(--w52ae-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.w52ae-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.w52ae-footer-links a { font-size: 1.2rem; color: var(--w52ae-text-muted); }
.w52ae-footer-links a:hover { color: var(--w52ae-gold); }
.w52ae-copyright {
  font-size: 1.15rem;
  color: var(--w52ae-text-muted);
  border-top: 1px solid var(--w52ae-border);
  padding-top: 12px;
  text-align: center;
}

/* ---------- Mobile bottom navigation ---------- */
.w52ae-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, var(--w52ae-primary) 0%, var(--w52ae-primary-dark) 100%);
  border-top: 2px solid var(--w52ae-accent);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.45);
}
.w52ae-bottom-nav a,
.w52ae-bottom-nav button {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--w52ae-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 2px;
  position: relative;
  text-decoration: none;
}
.w52ae-bottom-nav a:active,
.w52ae-bottom-nav button:active { color: var(--w52ae-gold); transform: scale(0.92); }
.w52ae-bottom-nav .material-icons,
.w52ae-bottom-nav .bi,
.w52ae-bottom-nav ion-icon,
.w52ae-bottom-nav .fas,
.w52ae-bottom-nav .far { font-size: 22px; }
.w52ae-bottom-nav .w52ae-bn-current { color: var(--w52ae-gold); }
.w52ae-bottom-nav .w52ae-bn-current::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  background: var(--w52ae-gold);
  border-radius: 0 0 4px 4px;
}
.w52ae-bn-promo {
  position: relative;
}
.w52ae-bn-promo::after {
  content: "HOT";
  position: absolute;
  top: 4px; right: 8px;
  background: #d33;
  color: #fff;
  font-size: 0.85rem;
  padding: 1px 4px;
  border-radius: 6px;
  font-weight: 700;
}

@media (min-width: 769px) {
  .w52ae-bottom-nav { display: none; }
}

/* ---------- Back to top ---------- */
.w52ae-back-top {
  position: fixed;
  right: 14px;
  bottom: 76px;
  z-index: 900;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--w52ae-accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s, transform .15s;
  box-shadow: var(--w52ae-shadow);
}
.w52ae-back-top.w52ae-show { opacity: 1; visibility: visible; }
.w52ae-back-top:active { transform: scale(0.9); }

/* ---------- Desktop tweaks ---------- */
@media (min-width: 769px) {
  body { background: #0a1016; }
  .w52ae-wrapper { box-shadow: 0 0 40px rgba(0,0,0,0.6); }
}
