/* ===========================================================
   188c.homes - common stylesheet (theme.css)
   Class prefix: v3a3-
   Mobile-first, max wrapper width 430px.
   Palette: #1B263B (deep bg) | #778899 (muted) | #D3D3D3 (text)
           #F0E68C (accent) | #FAFAD2 (soft accent)
   =========================================================== */

:root {
  --v3a3-bg:        #1B263B;
  --v3a3-bg-2:      #243349;
  --v3a3-bg-3:      #0F1827;
  --v3a3-muted:     #778899;
  --v3a3-text:      #D3D3D3;
  --v3a3-light:     #FAFAD2;
  --v3a3-primary:   #F0E68C;
  --v3a3-accent:    #FFB300;
  --v3a3-danger:    #E5484D;
  --v3a3-success:   #3DD68C;
  --v3a3-radius:    1.2rem;
  --v3a3-radius-sm: 0.8rem;
  --v3a3-shadow:    0 4px 16px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;            /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

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

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

/* ---------- Layout primitives ---------- */
.v3a3-wrapper {
  width: 100%;
  max-width: 430px;            /* explicit mobile wrapper width */
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}

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

.v3a3-main {
  padding-top: 6.2rem;
  padding-bottom: 9rem;        /* room for fixed bottom nav */
}

.v3a3-section {
  margin: 2rem 0;
  padding: 1.6rem;
  background: var(--v3a3-bg-2);
  border-radius: var(--v3a3-radius);
  box-shadow: var(--v3a3-shadow);
}

.v3a3-section--alt { background: var(--v3a3-bg-3); }

/* ---------- Typography ---------- */
.v3a3-h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  color: var(--v3a3-light);
  margin: 1.4rem 0 .8rem;
  font-weight: 700;
}
.v3a3-h2 {
  font-size: 2rem;
  color: var(--v3a3-primary);
  margin: 2rem 0 1rem;
  font-weight: 700;
}
.v3a3-h3 {
  font-size: 1.7rem;
  color: var(--v3a3-primary);
  margin: 1.4rem 0 .8rem;
  font-weight: 600;
}
.v3a3-lead { color: var(--v3a3-light); margin: 1rem 0 1.4rem; }
.v3a3-muted { color: var(--v3a3-muted); }
.v3a3-text-accent { color: var(--v3a3-primary); font-weight: 700; }

/* ---------- Header ---------- */
.v3a3-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0F1827 0%, #1B263B 100%);
  border-bottom: 1px solid rgba(240,230,140,.15);
}
.v3a3-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: .8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.v3a3-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
}
.v3a3-brand img {
  width: 28px; height: 28px;
  border-radius: .4rem;
}
.v3a3-brand-name {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--v3a3-primary);
  white-space: nowrap;
}
.v3a3-header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.v3a3-menu-toggle {
  background: transparent;
  border: 1px solid rgba(240,230,140,.4);
  color: var(--v3a3-primary);
  width: 36px; height: 36px;
  border-radius: .6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.v3a3-menu-toggle:hover { background: rgba(240,230,140,.1); }

/* ---------- Buttons ---------- */
.v3a3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 40px;
  padding: 0 1.2rem;
  border-radius: var(--v3a3-radius-sm);
  border: none;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background .2s ease;
  line-height: 1;
}
.v3a3-btn:active { transform: scale(.96); }
.v3a3-btn--register {
  background: linear-gradient(135deg, #F0E68C 0%, #FFB300 100%);
  color: #1B263B;
}
.v3a3-btn--login {
  background: transparent;
  color: var(--v3a3-primary);
  border: 1px solid var(--v3a3-primary);
}
.v3a3-btn--ghost {
  background: rgba(240,230,140,.08);
  color: var(--v3a3-primary);
  border: 1px solid rgba(240,230,140,.3);
}
.v3a3-btn--block {
  display: flex;
  width: 100%;
}

/* ---------- Nav drawer ---------- */
.v3a3-nav-drawer {
  max-height: 0;
  overflow: hidden;
  background: var(--v3a3-bg-3);
  transition: max-height .28s ease;
}
.v3a3-nav-drawer.v3a3-nav-open { max-height: 460px; }
.v3a3-nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: .4rem 1.2rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}
.v3a3-nav-drawer li { border-bottom: 1px solid rgba(255,255,255,.05); }
.v3a3-nav-drawer a {
  display: block;
  padding: 1rem .4rem;
  color: var(--v3a3-text);
  font-size: 1.5rem;
}
.v3a3-nav-drawer a:hover { color: var(--v3a3-primary); }

/* ---------- Carousel ---------- */
.v3a3-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--v3a3-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 1.2rem 0;
  background: #000;
}
.v3a3-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.v3a3-carousel-slide.v3a3-slide-active { opacity: 1; }
.v3a3-carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- Game grid ---------- */
.v3a3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.v3a3-game-card {
  background: var(--v3a3-bg-3);
  border-radius: var(--v3a3-radius-sm);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.05);
  transition: transform .15s ease, border-color .2s ease;
}
.v3a3-game-card:hover { transform: translateY(-2px); border-color: var(--v3a3-primary); }
.v3a3-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.v3a3-game-card .v3a3-game-name {
  display: block;
  font-size: 1.15rem;
  color: var(--v3a3-text);
  padding: .4rem .3rem .6rem;
  min-height: 36px;
  line-height: 1.2;
}

/* ---------- Card / feature ---------- */
.v3a3-card {
  background: var(--v3a3-bg-3);
  border-radius: var(--v3a3-radius-sm);
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,.05);
}
.v3a3-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.v3a3-feature-item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: var(--v3a3-bg-2);
  padding: 1rem;
  border-radius: var(--v3a3-radius-sm);
}
.v3a3-feature-item .material-icons,
.v3a3-feature-item i { color: var(--v3a3-primary); font-size: 22px; }

/* ---------- List ---------- */
.v3a3-list {
  list-style: none;
  padding: 0; margin: 0;
}
.v3a3-list li {
  padding: .6rem 0;
  border-bottom: 1px dashed rgba(255,255,255,.07);
  position: relative;
  padding-left: 1.4rem;
}
.v3a3-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.1rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--v3a3-primary);
}

/* ---------- FAQ ---------- */
.v3a3-faq-item {
  background: var(--v3a3-bg-3);
  border-radius: var(--v3a3-radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: .8rem;
}
.v3a3-faq-q { font-weight: 700; color: var(--v3a3-primary); margin-bottom: .4rem; }
.v3a3-faq-a { color: var(--v3a3-text); font-size: 1.4rem; }

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

/* ---------- Testimonials ---------- */
.v3a3-testimonial {
  background: var(--v3a3-bg-3);
  border-left: 3px solid var(--v3a3-primary);
  padding: 1rem 1.2rem;
  border-radius: .6rem;
  margin-bottom: .8rem;
}
.v3a3-testimonial p { margin: 0 0 .4rem; }
.v3a3-testimonial cite { color: var(--v3a3-muted); font-style: normal; font-size: 1.3rem; }

/* ---------- Winners ---------- */
.v3a3-winner {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem .2rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 1.35rem;
}
.v3a3-winner-amount { margin-left: auto; color: var(--v3a3-success); font-weight: 700; }

/* ---------- Payment icons ---------- */
.v3a3-payment {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.v3a3-payment span {
  background: var(--v3a3-bg-3);
  color: var(--v3a3-text);
  border: 1px solid rgba(255,255,255,.08);
  padding: .5rem 1rem;
  border-radius: 2rem;
  font-size: 1.3rem;
}

/* ---------- Promo text link (in-content SEO links) ---------- */
.v3a3-promo-link {
  color: var(--v3a3-primary);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.v3a3-footer {
  background: var(--v3a3-bg-3);
  padding: 2.4rem 1.2rem 6.5rem;
  border-top: 1px solid rgba(240,230,140,.15);
}
.v3a3-footer-inner {
  max-width: 430px;
  margin: 0 auto;
}
.v3a3-footer-brand { color: var(--v3a3-text); font-size: 1.35rem; margin-bottom: 1rem; }
.v3a3-footer-links {
  display: flex; flex-wrap: wrap;
  gap: .6rem .9rem;
  margin: 1rem 0;
}
.v3a3-footer-links a {
  font-size: 1.3rem;
  color: var(--v3a3-text);
  padding: .3rem .6rem;
  border-radius: .4rem;
  background: rgba(255,255,255,.04);
}
.v3a3-footer-copy { color: var(--v3a3-muted); font-size: 1.2rem; margin-top: 1rem; }

/* ---------- Bottom navigation (mobile) ---------- */
.v3a3-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: var(--v3a3-bg-3);
  border-top: 1px solid rgba(240,230,140,.25);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.v3a3-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  color: var(--v3a3-text);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color .2s ease, transform .12s ease;
  position: relative;
}
.v3a3-bottomnav-btn:active { transform: scale(.9); }
.v3a3-bottomnav-btn .material-icons,
.v3a3-bottomnav-btn i { font-size: 24px; }
.v3a3-bottomnav-btn span { font-size: 1.1rem; }
.v3a3-bottomnav-btn.v3a3-bottomnav-active { color: var(--v3a3-primary); }
.v3a3-bottomnav-btn.v3a3-bottomnav-active::before {
  content: "";
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--v3a3-primary);
}
.v3a3-bottomnav-promo { color: var(--v3a3-primary); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .v3a3-bottomnav { display: none; }
  .v3a3-main { padding-bottom: 3rem; }
  .v3a3-footer { padding-bottom: 2.4rem; }
}

/* ---------- Small phones fine-tune ---------- */
@media (max-width: 360px) {
  .v3a3-grid { grid-template-columns: repeat(2, 1fr); }
  .v3a3-h1 { font-size: 2rem; }
}
