/* ===========================================================
   gamezone app download - theme.css
   Mobile-first styling. All custom classes use the v3fa- prefix.
   Palette: #E0F2F1 (light) | #2C3E50 (dark bg) + accent gold.
   Comments are in English only.
   =========================================================== */

:root {
  --v3fa-bg: #2C3E50;
  --v3fa-bg-deep: #1d2b3a;
  --v3fa-bg-soft: #34495e;
  --v3fa-text: #E0F2F1;
  --v3fa-text-muted: #9fb3c8;
  --v3fa-primary: #E0F2F1;
  --v3fa-accent: #f5c451;
  --v3fa-accent-2: #36c2a8;
  --v3fa-danger: #e57373;
  --v3fa-card: #3a4f63;
  --v3fa-border: rgba(224, 242, 241, 0.12);
  --v3fa-radius: 1.2rem;
  --v3fa-radius-sm: 0.8rem;
  --v3fa-shadow: 0 0.4rem 1.4rem rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
}

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

a {
  color: var(--v3fa-accent);
  text-decoration: none;
}

a:hover {
  color: var(--v3fa-primary);
}

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

h1, h2, h3, h4 {
  line-height: 1.35;
  margin: 0 0 1rem;
  color: var(--v3fa-primary);
}

p {
  line-height: 1.5rem;
  margin: 0 0 1.2rem;
  color: var(--v3fa-text);
}

/* ---------- Layout ---------- */
.v3fa-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--v3fa-bg);
  min-height: 100vh;
}

.v3fa-container {
  width: 100%;
  padding: 0 1.4rem;
}

main.v3fa-main {
  padding-bottom: 80px; /* reserve room for fixed bottom nav */
}

/* ---------- Top Header ---------- */
.v3fa-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v3fa-bg-deep), var(--v3fa-bg-soft));
  border-bottom: 1px solid var(--v3fa-border);
}

.v3fa-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  gap: 0.8rem;
}

.v3fa-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.v3fa-brand-logo {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  object-fit: cover;
  border: 1px solid var(--v3fa-accent);
}

.v3fa-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v3fa-accent);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.v3fa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: var(--v3fa-radius-sm);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.v3fa-btn:active {
  transform: scale(0.96);
}

.v3fa-btn-register {
  background: linear-gradient(135deg, var(--v3fa-accent), #ffcf6b);
  color: var(--v3fa-bg-deep);
}

.v3fa-btn-login {
  background: transparent;
  color: var(--v3fa-primary);
  border-color: var(--v3fa-accent-2);
}

.v3fa-icon-btn {
  background: transparent;
  border: none;
  color: var(--v3fa-primary);
  font-size: 2rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Mobile expandable menu ---------- */
.v3fa-mobile-menu {
  display: none;
  background: var(--v3fa-bg-deep);
  border-top: 1px solid var(--v3fa-border);
  padding: 0.6rem 1.2rem 1rem;
}

.v3fa-mobile-menu.v3fa-menu-open {
  display: block;
}

.v3fa-mobile-menu a {
  display: block;
  padding: 1rem 0.6rem;
  font-size: 1.4rem;
  color: var(--v3fa-text);
  border-bottom: 1px dashed var(--v3fa-border);
}

.v3fa-mobile-menu a:last-child {
  border-bottom: none;
}

/* ---------- Hero / Carousel ---------- */
.v3fa-carousel {
  position: relative;
  width: 100%;
  margin: 1.4rem 0;
  border-radius: var(--v3fa-radius);
  overflow: hidden;
  box-shadow: var(--v3fa-shadow);
}

.v3fa-slide {
  display: none;
  position: relative;
  cursor: pointer;
}

.v3fa-slide.v3fa-slide-active {
  display: block;
}

.v3fa-slide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.v3fa-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(29, 43, 58, 0.92));
  padding: 1.4rem 1.2rem 1rem;
}

.v3fa-slide-caption h2 {
  margin: 0 0 0.3rem;
  font-size: 1.7rem;
  color: var(--v3fa-accent);
}

.v3fa-slide-caption p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--v3fa-text);
}

.v3fa-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
}

.v3fa-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: rgba(224, 242, 241, 0.35);
  border: none;
  cursor: pointer;
}

.v3fa-dot.v3fa-dot-active {
  background: var(--v3fa-accent);
}

/* ---------- Section ---------- */
.v3fa-section {
  margin: 2.2rem 0;
  padding: 1.4rem;
  background: var(--v3fa-card);
  border-radius: var(--v3fa-radius);
  border: 1px solid var(--v3fa-border);
}

.v3fa-section-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.7rem;
  color: var(--v3fa-accent);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--v3fa-border);
}

.v3fa-section-title i,
.v3fa-section-title span.material-icons {
  font-size: 2.2rem;
  color: var(--v3fa-accent-2);
}

.v3fa-subtitle {
  font-size: 1.5rem;
  color: var(--v3fa-primary);
  margin: 1.2rem 0 0.8rem;
}

/* ---------- Game grid ---------- */
.v3fa-game-block {
  margin-bottom: 1.6rem;
}

.v3fa-game-block-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  color: var(--v3fa-accent);
  margin: 1rem 0 0.8rem;
  text-transform: capitalize;
}

.v3fa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.v3fa-card {
  background: var(--v3fa-bg-deep);
  border-radius: var(--v3fa-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--v3fa-border);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  text-align: center;
}

.v3fa-card:active {
  transform: scale(0.96);
  box-shadow: 0 0 0 2px var(--v3fa-accent);
}

.v3fa-card img {
  width: 100%;
  height: 8.5rem;
  object-fit: cover;
}

.v3fa-card-name {
  font-size: 1.1rem;
  color: var(--v3fa-text);
  padding: 0.5rem 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Promo buttons / inline links ---------- */
.v3fa-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.v3fa-cta-row .v3fa-btn {
  flex: 1 1 auto;
}

.v3fa-promo-text {
  color: var(--v3fa-accent);
  font-weight: 700;
}

.v3fa-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(54, 194, 168, 0.15);
  color: var(--v3fa-accent-2);
  font-size: 1.2rem;
  font-weight: 600;
}

/* ---------- Feature / RTP list ---------- */
.v3fa-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.v3fa-feature-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--v3fa-border);
}

.v3fa-feature-list li:last-child {
  border-bottom: none;
}

.v3fa-feature-list i,
.v3fa-feature-list span.material-icons {
  color: var(--v3fa-accent);
  font-size: 1.7rem;
  margin-top: 0.2rem;
}

.v3fa-rtp-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--v3fa-border);
  font-size: 1.3rem;
}

.v3fa-rtp-row:last-child {
  border-bottom: none;
}

.v3fa-rtp-bar {
  background: rgba(245, 196, 81, 0.15);
  height: 0.6rem;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.3rem;
}

.v3fa-rtp-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--v3fa-accent-2), var(--v3fa-accent));
}

/* ---------- Testimonials / winners ---------- */
.v3fa-testimonial {
  background: var(--v3fa-bg-deep);
  border-radius: var(--v3fa-radius-sm);
  padding: 1rem;
  margin-bottom: 0.9rem;
  border-left: 3px solid var(--v3fa-accent);
}

.v3fa-testimonial-name {
  color: var(--v3fa-accent);
  font-weight: 700;
  font-size: 1.3rem;
}

/* ---------- Payment methods ---------- */
.v3fa-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  text-align: center;
}

.v3fa-pay-grid div {
  background: var(--v3fa-bg-deep);
  border-radius: 0.6rem;
  padding: 0.8rem 0.3rem;
  font-size: 1.1rem;
  color: var(--v3fa-text);
  border: 1px solid var(--v3fa-border);
}

/* ---------- App download CTA ---------- */
.v3fa-app-cta {
  background: linear-gradient(135deg, var(--v3fa-bg-deep), var(--v3fa-bg-soft));
  border-radius: var(--v3fa-radius);
  padding: 1.4rem;
  text-align: center;
  border: 1px solid var(--v3fa-accent-2);
}

.v3fa-app-cta img {
  margin: 0 auto 1rem;
  border-radius: var(--v3fa-radius-sm);
}

/* ---------- Footer ---------- */
.v3fa-footer {
  background: var(--v3fa-bg-deep);
  border-top: 1px solid var(--v3fa-border);
  padding: 2rem 1.4rem;
  margin-top: 1.6rem;
}

.v3fa-footer-brand {
  color: var(--v3fa-text-muted);
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}

.v3fa-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin: 1rem 0;
}

.v3fa-footer-links a {
  font-size: 1.2rem;
  color: var(--v3fa-text);
}

.v3fa-footer-copy {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--v3fa-text-muted);
  text-align: center;
}

/* ---------- Mobile bottom navigation ---------- */
.v3fa-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  background: linear-gradient(180deg, var(--v3fa-bg-soft), var(--v3fa-bg-deep));
  border-top: 1px solid var(--v3fa-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -0.4rem 1rem rgba(0, 0, 0, 0.35);
}

.v3fa-bottomnav-btn {
  flex: 1 1 0;
  min-width: 6rem;
  min-height: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--v3fa-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}

.v3fa-bottomnav-btn i,
.v3fa-bottomnav-btn span.material-icons,
.v3fa-bottomnav-btn ion-icon {
  font-size: 2.4rem;
}

.v3fa-bottomnav-btn:active {
  transform: scale(0.92);
}

.v3fa-bottomnav-btn:hover {
  color: var(--v3fa-accent);
}

.v3fa-bottomnav-active {
  color: var(--v3fa-accent) !important;
}

.v3fa-bottomnav-active::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 0.25rem;
  border-radius: 999px;
  background: var(--v3fa-accent);
  margin-top: 0.2rem;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .v3fa-bottomnav {
    display: none;
  }
  main.v3fa-main {
    padding-bottom: 0;
  }
}

/* ---------- Utility ---------- */
.v3fa-text-center { text-align: center; }
.v3fa-mt-1 { margin-top: 0.8rem; }
.v3fa-mt-2 { margin-top: 1.6rem; }
.v3fa-hidden { display: none !important; }
