/* ============================================================
 * f68.homes - layout stylesheet (mobile-first casino homepage)
 * CSS class prefix : g103-
 * Layout container: max-width: 430px
 * All comments in English per project convention.
 * ============================================================ */

:root {
  --g103-primary: #FFCC02;   /* brand gold */
  --g103-deep:    #2C3E50;   /* deep slate */
  --g103-bg:      #0E1621;   /* dark background */
  --g103-bg-2:    #142033;   /* card background */
  --g103-soft:    #FFCCCB;   /* soft pink accent */
  --g103-muted:   #708090;   /* slate gray */
  --g103-text:    #F5F7FA;   /* primary text */
  --g103-text-dim:#B8C2CC;   /* secondary text */
  --g103-success: #21C77E;
  --g103-danger:  #FF5C5C;
  --g103-radius:  14px;
  --g103-shadow:  0 6px 22px rgba(0,0,0,.35);
}

/* ---------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: var(--g103-bg);
  color: var(--g103-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(--g103-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------------- Layout core ----------------------------- */
.g103-wrapper {
  width: 100%;
  max-width: 430px;        /* mobile-first hard cap */
  margin: 0 auto;
  position: relative;
  background: var(--g103-bg);
  min-height: 100vh;
}
.g103-container {
  width: 100%;
  max-width: 430px;
  padding: 0 1.4rem;
  margin: 0 auto;
}
main.g103-main {
  padding-top: 6.4rem;
  padding-bottom: 8.4rem;  /* clearance for fixed bottom nav */
}

/* ---------------- Header ---------------------------------- */
.g103-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0E1621 0%, #142033 100%);
  border-bottom: 1px solid rgba(255,204,2,.18);
}
.g103-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 6.2rem;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.g103-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1;
  min-width: 0;
}
.g103-logo img { width: 3rem; height: 3rem; border-radius: 8px; }
.g103-logo-text {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--g103-primary);
  letter-spacing: .5px;
  white-space: nowrap;
}
.g103-logo-text span { color: var(--g103-text); }

.g103-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform .15s ease, filter .15s ease;
}
.g103-btn:active { transform: scale(.96); }
.g103-btn-primary {
  background: linear-gradient(135deg, #FFCC02, #FFA000);
  color: #0E1621;
  box-shadow: 0 4px 14px rgba(255,204,2,.35);
}
.g103-btn-ghost {
  background: transparent;
  color: var(--g103-text);
  border: 1px solid rgba(255,255,255,.18);
}

.g103-menu-toggle {
  width: 3.6rem; height: 3.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: var(--g103-text);
  font-size: 1.8rem;
}

/* ---------------- Dropdown menu --------------------------- */
.g103-mobile-menu {
  position: fixed;
  top: 6.2rem; left: 0; right: 0;
  background: #0E1621;
  border-bottom: 1px solid rgba(255,204,2,.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.g103-mobile-menu.g103-menu-open { max-height: 480px; }
.g103-mobile-menu ul { list-style: none; padding: .8rem 1.4rem 1.4rem; }
.g103-mobile-menu li a {
  display: block;
  padding: 1.1rem 1rem;
  color: var(--g103-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; gap: .8rem;
}
.g103-mobile-menu li a:hover { color: var(--g103-primary); }

/* ---------------- Carousel -------------------------------- */
.g103-carousel {
  position: relative;
  border-radius: var(--g103-radius);
  overflow: hidden;
  margin: 1.4rem 0;
  box-shadow: var(--g103-shadow);
}
.g103-carousel-track { position: relative; }
.g103-carousel-slide {
  display: none;
  position: relative;
}
.g103-carousel-slide.g103-active { display: block; }
.g103-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.g103-carousel-caption {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: rgba(14,22,33,.65);
  padding: .9rem 1.1rem;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}
.g103-carousel-caption strong { color: var(--g103-primary); font-size: 1.5rem; }
.g103-carousel-caption p { color: var(--g103-text-dim); font-size: 1.2rem; margin-top: .3rem; }
.g103-carousel-dots {
  position: absolute;
  bottom: .8rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: .6rem;
  z-index: 2;
}
.g103-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4);
}
.g103-carousel-dot.g103-active { background: var(--g103-primary); width: 22px; border-radius: 5px; }

/* ---------------- Section titles -------------------------- */
.g103-section { margin: 2.2rem 0; }
.g103-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--g103-text);
  margin-bottom: 1.2rem;
  padding-left: .8rem;
  border-left: 4px solid var(--g103-primary);
  display: flex; align-items: center; gap: .6rem;
}
.g103-section-title i { color: var(--g103-primary); }

/* ---------------- Game grid ------------------------------- */
.g103-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.g103-game-card {
  background: var(--g103-bg-2);
  border-radius: 12px;
  padding: .8rem;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid rgba(255,255,255,.04);
}
.g103-game-card:active { transform: scale(.96); }
.g103-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: .6rem;
}
.g103-game-card span {
  display: block;
  font-size: 1.25rem;
  color: var(--g103-text-dim);
  line-height: 1.3rem;
  height: 2.6rem;
  overflow: hidden;
}
.g103-cat-label {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--g103-primary);
  background: rgba(255,204,2,.12);
  padding: .3rem .9rem;
  border-radius: 6px;
  margin: 1.4rem 0 .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ---------------- Cards / panels -------------------------- */
.g103-card {
  background: var(--g103-bg-2);
  border-radius: var(--g103-radius);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(255,255,255,.05);
}
.g103-card h3 { font-size: 1.6rem; color: var(--g103-primary); margin-bottom: .8rem; }
.g103-card p { font-size: 1.4rem; color: var(--g103-text-dim); line-height: 1.7rem; }
.g103-card a { color: var(--g103-primary); font-weight: 700; }

/* ---------------- CTA banner ------------------------------ */
.g103-cta {
  background: linear-gradient(135deg, #2C3E50, #FFCC02);
  border-radius: var(--g103-radius);
  padding: 2rem 1.6rem;
  text-align: center;
  color: #0E1621;
  margin: 1.6rem 0;
}
.g103-cta h2 { font-size: 2rem; color: #0E1621; margin-bottom: .6rem; }
.g103-cta p { font-size: 1.3rem; color: #2C3E50; margin-bottom: 1.2rem; }

/* ---------------- Testimonial ----------------------------- */
.g103-testi {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem; background: var(--g103-bg-2);
  border-radius: 12px; margin-bottom: 1rem;
  border-left: 3px solid var(--g103-primary);
}
.g103-testi-avatar {
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--g103-primary); color: #0E1621;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.6rem; flex-shrink: 0;
}
.g103-testi-text { font-size: 1.35rem; color: var(--g103-text-dim); line-height: 1.6rem; }
.g103-testi-text b { color: var(--g103-text); display: block; margin-bottom: .2rem; }

/* ---------------- Footer ---------------------------------- */
.g103-footer {
  background: #08111B;
  padding: 2.4rem 1.4rem 3rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,204,2,.15);
}
.g103-footer-brand { font-size: 1.4rem; color: var(--g103-text-dim); line-height: 1.7rem; margin-bottom: 1.4rem; }
.g103-footer-brand b { color: var(--g103-primary); }
.g103-footer-links {
  display: flex; flex-wrap: wrap; gap: .8rem 1.2rem;
  margin-bottom: 1.4rem;
}
.g103-footer-links a {
  font-size: 1.3rem; color: var(--g103-text-dim);
  padding: .3rem 0;
}
.g103-footer-links a:hover { color: var(--g103-primary); }
.g103-footer-copy {
  font-size: 1.2rem; color: var(--g103-muted);
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 1.2rem;
}

/* ---------------- Bottom nav (mobile only) ---------------- */
.g103-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #142033, #0E1621);
  border-top: 1px solid rgba(255,204,2,.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,.4);
}
.g103-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(--g103-text-dim);
  font-size: 1.1rem;
  transition: color .15s ease, transform .15s ease;
  position: relative;
}
.g103-bottomnav-btn i,
.g103-bottomnav-btn span.material-icons-outlined,
.g103-bottomnav-btn ion-icon { font-size: 24px; }
.g103-bottomnav-btn ion-icon { font-size: 26px; }
.g103-bottomnav-btn:active { transform: scale(.9); }
.g103-bottomnav-btn.g103-current { color: var(--g103-primary); }
.g103-bottomnav-btn.g103-current::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px;
  background: var(--g103-primary);
  border-radius: 0 0 4px 4px;
}
.g103-bottomnav-btn.g103-promo {
  color: var(--g103-soft);
}
.g103-bottomnav-btn.g103-promo i { color: var(--g103-primary); }

/* ---------------- Utilities ------------------------------- */
.g103-text-gold { color: var(--g103-primary); font-weight: 700; }
.g103-text-center { text-align: center; }
.g103-mt-1 { margin-top: 1rem; } .g103-mt-2 { margin-top: 2rem; }
.g103-flex { display: flex; gap: 1rem; align-items: center; }
.g103-chip {
  display: inline-block;
  font-size: 1.2rem;
  padding: .3rem .9rem;
  border-radius: 6px;
  background: rgba(33,199,126,.12);
  color: var(--g103-success);
  margin: .3rem .3rem 0 0;
}
.g103-rtp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  font-size: 1.35rem;
}
.g103-rtp-row:last-child { border-bottom: none; }
.g103-rtp-row b { color: var(--g103-success); }
.g103-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1rem; background: var(--g103-bg-2);
  border-radius: 8px; margin-bottom: .6rem;
  font-size: 1.3rem;
}
.g103-winner b { color: var(--g103-primary); }

/* ---------------- Desktop --------------------------------- */
@media (min-width: 769px) {
  .g103-bottomnav { display: none; }
  main.g103-main { padding-bottom: 3rem; }
}
@media (max-width: 768px) {
  main.g103-main { padding-bottom: 84px; }
}
