/*!
 * Fairplay Casino - design-8986.css
 * Mobile-first responsive stylesheet (max-width: 430px target).
 * All custom classes use the w8986- prefix for namespace isolation.
 * Palette: #BDB76B | #F4A460 | #FFA500 | #3A3A3A | #20B2AA
 * Code comments are in English per project convention.
 */

:root {
  --w8986-primary: #FFA500;
  --w8986-secondary: #F4A460;
  --w8986-accent: #BDB76B;
  --w8986-teal: #20B2AA;
  --w8986-bg: #3A3A3A;
  --w8986-bg-deep: #2a2a2a;
  --w8986-bg-soft: #4a4a4a;
  --w8986-text: #FFFFFF;
  --w8986-text-muted: #E6E0CB;
  --w8986-border: rgba(189, 183, 107, 0.32);
  --w8986-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --w8986-radius: 14px;
  --w8986-radius-sm: 10px;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; display: block; }

a { color: var(--w8986-secondary); text-decoration: none; }

.w8986-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.w8986-wrapper { padding-top: 6.4rem; padding-bottom: 8rem; }

/* ---------- Header ---------- */
.w8986-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2a2a2a 0%, #3A3A3A 100%);
  border-bottom: 1px solid var(--w8986-border);
  transition: box-shadow .25s ease;
}
.w8986-header-shadow { box-shadow: 0 4px 16px rgba(0,0,0,0.45); }

.w8986-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.w8986-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.w8986-brand img { width: 30px; height: 30px; border-radius: 8px; }
.w8986-brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--w8986-primary);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.w8986-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.w8986-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--w8986-radius-sm);
  padding: 0.7rem 1.1rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  min-height: 40px;
  color: #fff;
}
.w8986-btn:active { transform: scale(0.96); }
.w8986-btn-login {
  background: transparent;
  border: 1.5px solid var(--w8986-accent);
  color: var(--w8986-text);
}
.w8986-btn-register {
  background: linear-gradient(135deg, var(--w8986-primary), var(--w8986-secondary));
  box-shadow: 0 4px 12px rgba(255,165,0,0.35);
}

.w8986-menu-btn {
  background: transparent;
  border: none;
  color: var(--w8986-text);
  font-size: 2.0rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}

/* ---------- Mobile menu ---------- */
.w8986-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--w8986-bg-deep);
  z-index: 9999;
  padding: 6.4rem 1.6rem 2rem;
  transition: right .3s ease;
  border-left: 1px solid var(--w8986-border);
  overflow-y: auto;
}
.w8986-mobile-menu.w8986-menu-open { right: 0; }
.w8986-mobile-menu a {
  display: block;
  padding: 1rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--w8986-text);
  font-size: 1.5rem;
  font-weight: 600;
}
.w8986-mobile-menu a:active { color: var(--w8986-primary); }

.w8986-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.w8986-overlay.w8986-menu-open { opacity: 1; visibility: visible; }

/* ---------- Hero carousel ---------- */
.w8986-carousel {
  position: relative;
  border-radius: var(--w8986-radius);
  overflow: hidden;
  box-shadow: var(--w8986-shadow);
  margin-bottom: 1.6rem;
}
.w8986-carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.w8986-carousel-slide {
  min-width: 100%;
  position: relative;
}
.w8986-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.w8986-carousel-caption {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem;
  background: rgba(0,0,0,0.55);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 600;
}
.w8986-carousel-dots {
  position: absolute;
  bottom: 0.8rem; right: 1rem;
  display: flex; gap: 0.4rem;
}
.w8986-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none; padding: 0; cursor: pointer;
}
.w8986-carousel-dot-active { background: var(--w8986-primary); }

/* ---------- Sections ---------- */
.w8986-section { margin: 2.2rem 0; }
.w8986-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  color: var(--w8986-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w8986-section-subtitle {
  font-size: 1.4rem;
  color: var(--w8986-text-muted);
  margin: 0 0 1rem 0;
}

.w8986-h1 {
  font-size: 2.2rem;
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, var(--w8986-primary), var(--w8986-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w8986-lead {
  font-size: 1.45rem;
  color: var(--w8986-text-muted);
  margin-bottom: 1.2rem;
}

.w8986-text-link {
  color: var(--w8986-secondary);
  font-weight: 700;
  border-bottom: 1px dashed var(--w8986-accent);
}

/* ---------- Game grid ---------- */
.w8986-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.w8986-game-card {
  background: var(--w8986-bg-soft);
  border-radius: var(--w8986-radius-sm);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--w8986-border);
  transition: transform .15s ease, box-shadow .2s ease;
}
.w8986-game-card:active { transform: scale(0.96); }
.w8986-game-card img {
  width: 100%;
  height: 88px;
  object-fit: cover;
}
.w8986-game-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--w8986-text);
  padding: 0.4rem 0.3rem 0.55rem;
  line-height: 1.25;
  min-height: 36px;
}

/* ---------- Cards ---------- */
.w8986-card {
  background: var(--w8986-bg-soft);
  border-radius: var(--w8986-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--w8986-border);
  box-shadow: var(--w8986-shadow);
}
.w8986-card h3 {
  margin: 0 0 0.6rem 0;
  font-size: 1.6rem;
  color: var(--w8986-primary);
}

.w8986-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.w8986-feature {
  background: rgba(32,178,170,0.12);
  padding: 1rem;
  border-radius: var(--w8986-radius-sm);
  border-left: 3px solid var(--w8986-teal);
}
.w8986-feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--w8986-teal);
  margin-bottom: 0.3rem;
}
.w8986-feature-text { font-size: 1.2rem; color: var(--w8986-text-muted); }

/* ---------- Promo CTA ---------- */
.w8986-cta {
  background: linear-gradient(135deg, var(--w8986-primary), var(--w8986-secondary));
  color: #2a2a2a;
  border-radius: var(--w8986-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1.6rem 0;
  box-shadow: var(--w8986-shadow);
}
.w8986-cta-title { font-size: 1.9rem; font-weight: 800; margin: 0 0 0.4rem; }
.w8986-cta-text { font-size: 1.3rem; margin: 0 0 1rem; }
.w8986-cta .w8986-btn {
  background: #2a2a2a;
  color: var(--w8986-primary);
  padding: 0.9rem 1.6rem;
}

/* ---------- Stats ---------- */
.w8986-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.w8986-stat {
  background: var(--w8986-bg-deep);
  border-radius: var(--w8986-radius-sm);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--w8986-border);
}
.w8986-stat-num {
  font-size: 2.0rem;
  font-weight: 800;
  color: var(--w8986-primary);
}
.w8986-stat-label { font-size: 1.2rem; color: var(--w8986-text-muted); }

/* ---------- Testimonials ---------- */
.w8986-testimonial {
  background: var(--w8986-bg-soft);
  border-left: 4px solid var(--w8986-accent);
  border-radius: var(--w8986-radius-sm);
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.8rem;
}
.w8986-testimonial p { margin: 0 0 0.4rem; font-size: 1.3rem; }
.w8986-testimonial-author {
  font-size: 1.2rem;
  color: var(--w8986-teal);
  font-weight: 700;
}

/* ---------- Payment / app ---------- */
.w8986-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.w8986-pay-chip {
  background: var(--w8986-bg-deep);
  border: 1px solid var(--w8986-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--w8986-text-muted);
}

.w8986-app-cta {
  background: linear-gradient(135deg, #20B2AA, #BDB76B);
  border-radius: var(--w8986-radius);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #1a1a1a;
}
.w8986-app-cta .w8986-app-icon { font-size: 3.4rem; }
.w8986-app-cta-title { font-size: 1.5rem; font-weight: 800; margin: 0; }
.w8986-app-cta-text { font-size: 1.2rem; margin: 0.2rem 0 0.6rem; }

/* ---------- FAQ ---------- */
.w8986-faq-item {
  background: var(--w8986-bg-soft);
  border-radius: var(--w8986-radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--w8986-border);
}
.w8986-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--w8986-text);
  padding: 1rem 1.1rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.w8986-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 1.1rem;
  color: var(--w8986-text-muted);
  font-size: 1.25rem;
}
.w8986-faq-open .w8986-faq-a { max-height: 320px; padding: 0 1.1rem 1rem; }
.w8986-faq-icon { color: var(--w8986-primary); transition: transform .2s ease; }
.w8986-faq-open .w8986-faq-icon { transform: rotate(45deg); }

/* ---------- Footer ---------- */
.w8986-footer {
  background: var(--w8986-bg-deep);
  border-top: 1px solid var(--w8986-border);
  padding: 2rem 1.4rem;
  margin-top: 2rem;
}
.w8986-footer-brand {
  font-size: 1.35rem;
  color: var(--w8986-text-muted);
  margin-bottom: 1rem;
}
.w8986-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.w8986-footer-links a {
  font-size: 1.2rem;
  color: var(--w8986-text-muted);
}
.w8986-footer-links a:active { color: var(--w8986-primary); }
.w8986-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.w8986-footer-promos .w8986-btn {
  padding: 0.5rem 0.9rem;
  font-size: 1.15rem;
  min-height: 34px;
}
.w8986-copyright {
  font-size: 1.15rem;
  color: var(--w8986-text-muted);
  text-align: center;
  margin-top: 1rem;
  opacity: 0.85;
}

/* ---------- Bottom navigation ---------- */
.w8986-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #3A3A3A, #2a2a2a);
  border-top: 1px solid var(--w8986-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.35);
}
.w8986-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--w8986-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 2px;
  font-size: 1.05rem;
  transition: color .2s ease, transform .15s ease;
}
.w8986-bottom-nav-btn .material-icons,
.w8986-bottom-nav-btn ion-icon,
.w8986-bottom-nav-btn i { font-size: 24px; }
.w8986-bottom-nav-btn:active { transform: scale(0.92); }
.w8986-bottom-nav-btn span { font-size: 1.05rem; }
.w8986-bottom-nav-active { color: var(--w8986-primary); }
.w8986-bottom-nav-promo { color: var(--w8986-secondary); }

/* ---------- Back to top ---------- */
.w8986-back-top {
  position: fixed;
  right: 1.2rem; bottom: 76px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--w8986-primary);
  color: #2a2a2a;
  border: none;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 999;
}
.w8986-back-top-show { opacity: 0.95; visibility: visible; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .w8986-bottom-nav { display: none; }
  .w8986-wrapper { padding-bottom: 2rem; }
  .w8986-container { max-width: 760px; }
}

/* ---------- Small mobile tuning ---------- */
@media (max-width: 430px) {
  body { font-size: 1.4rem; }
  .w8986-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .w8986-game-card img { height: 78px; }
  .w8986-game-name { font-size: 1.1rem; }
  .w8986-h1 { font-size: 1.95rem; }
  .w8986-section-title { font-size: 1.7rem; }
  .w8986-carousel-slide img { height: 170px; }
  .w8986-brand-name { font-size: 1.35rem; }
  .w8986-btn { padding: 0.6rem 0.9rem; font-size: 1.2rem; }
  .w8986-header-inner { padding: 0.6rem 0.9rem; gap: 0.4rem; }
}

@media (max-width: 360px) {
  .w8986-grid { grid-template-columns: repeat(2, 1fr); }
  .w8986-features { grid-template-columns: 1fr; }
  .w8986-stats { grid-template-columns: 1fr; }
}
