/* =========================================================
 * King Casino - theme-62f3.css
 * Mobile-first theme. All custom classes use the gf37- prefix.
 * Palette: #0000FF | #F08080 | #FFCCCB | #34495E | #E8F5E8
 * =======================================================*/

:root {
  --gf37-primary: #0000ff;
  --gf37-accent: #f08080;
  --gf37-soft: #ffcccb;
  --gf37-ink: #34495e;
  --gf37-mint: #e8f5e8;
  --gf37-bg: #0b1226;
  --gf37-bg2: #131c39;
  --gf37-card: #18224a;
  --gf37-card2: #1f2b5c;
  --gf37-line: rgba(255, 255, 255, 0.08);
  --gf37-text: #f5f7ff;
  --gf37-muted: #b9c2e6;
  --gf37-gold: #ffd479;
  --gf37-green: #36d399;
  --gf37-radius: 14px;
  --gf37-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  --gf37-max: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1a246a 0%, var(--gf37-bg) 55%, #07091a 100%);
  color: var(--gf37-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gf37-soft); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 { margin: 0 0 0.5rem; line-height: 1.25; font-weight: 800; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1rem; }

/* ---------- Layout shells ---------- */
.gf37-wrapper {
  width: 100%;
  max-width: var(--gf37-max);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.gf37-section { padding: 2.4rem 0 1.2rem; }
.gf37-section--alt { background: linear-gradient(180deg, rgba(0,0,255,0.10), rgba(240,128,128,0.06)); }

.gf37-eyebrow {
  display: inline-block;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gf37-gold);
  margin-bottom: 0.4rem;
}

.gf37-title { color: #fff; }
.gf37-title span { color: var(--gf37-accent); }
.gf37-lead { color: var(--gf37-muted); font-size: 1.35rem; }

/* ---------- Header ---------- */
.gf37-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(7,9,26,0.96), rgba(7,9,26,0.82));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gf37-line);
}
.gf37-header-inner {
  width: 100%; max-width: var(--gf37-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; min-height: 56px;
}
.gf37-brand { display: flex; align-items: center; gap: 0.6rem; }
.gf37-brand img { width: 30px; height: 30px; border-radius: 8px; }
.gf37-brand b { font-size: 1.45rem; color: #fff; letter-spacing: 0.02em; }
.gf37-brand small { color: var(--gf37-gold); font-weight: 700; }

.gf37-actions { display: flex; gap: 0.5rem; align-items: center; }
.gf37-btn {
  border: none; cursor: pointer; border-radius: 999px;
  font-weight: 800; font-size: 1.25rem; padding: 0.7rem 1.2rem;
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.gf37-btn:active { transform: scale(0.96); }
.gf37-btn--login {
  background: transparent; color: #fff; border: 2px solid var(--gf37-primary);
}
.gf37-btn--login:hover { background: var(--gf37-primary); }
.gf37-btn--register {
  background: linear-gradient(135deg, var(--gf37-primary), #4f6bff);
  color: #fff; box-shadow: 0 6px 18px rgba(0,0,255,0.45);
}
.gf37-btn--register:hover { filter: brightness(1.08); }
.gf37-btn--ghost {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid var(--gf37-line);
}

.gf37-hamburger {
  background: transparent; border: none; color: #fff;
  width: 44px; height: 44px; font-size: 1.6rem; cursor: pointer;
}

/* ---------- Mobile slide menu ---------- */
.gf37-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 82%; max-width: 340px;
  background: linear-gradient(180deg, #101a3f, #0a1130);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  z-index: 9999; padding: 1.4rem 1.2rem; overflow-y: auto;
  box-shadow: -20px 0 40px rgba(0,0,0,0.5);
}
.gf37-menu--open { transform: translateX(0); }
.gf37-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 9998;
}
.gf37-menu--open + .gf37-menu-overlay { opacity: 1; pointer-events: auto; }
.gf37-menu h4 { color: var(--gf37-gold); margin: 1.2rem 0 0.6rem; text-transform: uppercase; font-size: 1.2rem; letter-spacing: 0.12em; }
.gf37-menu a {
  display: block; padding: 0.8rem 0.6rem; color: #fff;
  border-bottom: 1px solid var(--gf37-line); font-weight: 600;
}
.gf37-menu a:hover { background: rgba(255,255,255,0.05); color: var(--gf37-soft); }
.gf37-menu-close { background: transparent; border: none; color: #fff; font-size: 1.8rem; float: right; cursor: pointer; }

/* ---------- Hero / Carousel ---------- */
.gf37-hero { padding-top: 5.4rem; }
.gf37-carousel {
  position: relative; overflow: hidden; border-radius: 18px;
  box-shadow: var(--gf37-shadow); background: #050818;
}
.gf37-carousel-track { display: flex; transition: transform 0.5s ease; }
.gf37-carousel-slide {
  position: relative; flex: 0 0 100%; min-height: 200px;
}
.gf37-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.gf37-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
}
.gf37-carousel-cap b { color: var(--gf37-gold); font-size: 1.45rem; display: block; }
.gf37-carousel-cap span { color: var(--gf37-soft); }
.gf37-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.45); border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.4rem;
}
.gf37-carousel-arrow.prev { left: 8px; }
.gf37-carousel-arrow.next { right: 8px; }
.gf37-carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.gf37-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45); border: none; cursor: pointer; padding: 0;
}
.gf37-carousel-dot--active { background: var(--gf37-gold); width: 22px; border-radius: 4px; }

/* ---------- Hero CTA strip ---------- */
.gf37-hero-cta {
  margin-top: 1rem; display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.gf37-hero-cta .gf37-btn { flex: 1; justify-content: center; }

/* ---------- Game sections ---------- */
.gf37-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.gf37-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gf37-card {
  background: var(--gf37-card); border: 1px solid var(--gf37-line);
  border-radius: var(--gf37-radius); overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer; text-align: center;
}
.gf37-card:hover { transform: translateY(-3px); box-shadow: var(--gf37-shadow); }
.gf37-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gf37-card-name {
  font-size: 1.05rem; color: #fff; padding: 0.4rem 0.3rem 0.6rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600;
}
.gf37-card-tag {
  position: absolute; top: 6px; left: 6px; background: var(--gf37-primary);
  color: #fff; font-size: 0.95rem; padding: 0.1rem 0.5rem; border-radius: 999px;
}
.gf37-card { position: relative; }

.gf37-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.gf37-section-head h2 { font-size: 1.7rem; }
.gf37-section-head a { color: var(--gf37-gold); font-size: 1.1rem; font-weight: 700; }

/* ---------- Promo banners ---------- */
.gf37-banner {
  background: linear-gradient(135deg, var(--gf37-primary), #6a3dfb);
  border-radius: 18px; padding: 1.4rem; color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--gf37-shadow);
}
.gf37-banner--rose { background: linear-gradient(135deg, var(--gf37-accent), #c2185b); }
.gf37-banner--ink { background: linear-gradient(135deg, var(--gf37-ink), #1a2540); }
.gf37-banner h3 { color: #fff; }
.gf37-banner p { color: rgba(255,255,255,0.92); }
.gf37-banner .gf37-amount { font-size: 2.4rem; color: var(--gf37-gold); font-weight: 900; }

/* ---------- Feature list ---------- */
.gf37-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.gf37-feature {
  background: var(--gf37-card); padding: 1.1rem; border-radius: var(--gf37-radius);
  border: 1px solid var(--gf37-line);
}
.gf37-feature .ic { font-size: 2rem; color: var(--gf37-gold); }
.gf37-feature h4 { color: #fff; margin: 0.4rem 0 0.2rem; }
.gf37-feature p { color: var(--gf37-muted); margin: 0; font-size: 1.15rem; }

/* ---------- RTP table ---------- */
.gf37-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.gf37-rtp-table th, .gf37-rtp-table td {
  padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--gf37-line); text-align: left;
}
.gf37-rtp-table th { color: var(--gf37-gold); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; }
.gf37-rtp-bar { background: rgba(54,211,153,0.18); border-radius: 6px; height: 8px; overflow: hidden; }
.gf37-rtp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gf37-green), var(--gf37-gold)); }

/* ---------- Testimonials ---------- */
.gf37-testi { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.gf37-testi-card {
  background: var(--gf37-card); border-radius: var(--gf37-radius); padding: 1.1rem;
  border-left: 4px solid var(--gf37-accent);
}
.gf37-testi-card .stars { color: var(--gf37-gold); }
.gf37-testi-card p { color: var(--gf37-text); font-style: italic; }
.gf37-testi-card .who { color: var(--gf37-muted); font-size: 1.1rem; }

/* ---------- Winners ticker ---------- */
.gf37-winners { background: rgba(0,0,0,0.25); border-radius: 12px; padding: 0.6rem; border: 1px solid var(--gf37-line); }
.gf37-winner {
  display: flex; justify-content: space-between; padding: 0.5rem 0.2rem;
  border-bottom: 1px dashed var(--gf37-line); font-size: 1.1rem;
}
.gf37-winner:last-child { border-bottom: none; }
.gf37-winner b { color: var(--gf37-green); }

/* ---------- Payment ---------- */
.gf37-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.gf37-pay span {
  background: #fff; color: #111; padding: 0.5rem 0.9rem; border-radius: 10px;
  font-weight: 700; font-size: 1.1rem;
}

/* ---------- FAQ ---------- */
.gf37-faq { border: 1px solid var(--gf37-line); border-radius: 12px; margin-bottom: 0.7rem; overflow: hidden; background: var(--gf37-card); }
.gf37-faq-q {
  width: 100%; text-align: left; background: transparent; color: #fff; border: none;
  padding: 1rem; font-weight: 700; font-size: 1.25rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.gf37-faq-q .ic { color: var(--gf37-gold); transition: transform 0.2s ease; }
.gf37-faq--open .gf37-faq-q .ic { transform: rotate(45deg); }
.gf37-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 1rem; color: var(--gf37-muted); }
.gf37-faq--open .gf37-faq-a { max-height: 600px; padding-bottom: 1rem; }

/* ---------- Tricks / Steps ---------- */
.gf37-steps { counter-reset: step; }
.gf37-step {
  position: relative; padding: 0.8rem 0.8rem 0.8rem 3.2rem; margin-bottom: 0.7rem;
  background: var(--gf37-card); border-radius: 12px; border-left: 4px solid var(--gf37-primary);
}
.gf37-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0.8rem; top: 0.8rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--gf37-gold); color: #1a1a1a; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.gf37-step h4 { margin: 0 0 0.2rem; color: #fff; }
.gf37-step p { margin: 0; color: var(--gf37-muted); }

/* ---------- Footer ---------- */
.gf37-footer {
  margin-top: 2.4rem; padding: 2rem 0 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
  border-top: 1px solid var(--gf37-line);
}
.gf37-footer p { color: var(--gf37-muted); font-size: 1.15rem; }
.gf37-footer h4 { color: var(--gf37-gold); margin-bottom: 0.6rem; }
.gf37-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 0.8rem; margin: 0.6rem 0; }
.gf37-footer-links a { color: var(--gf37-muted); font-size: 1.1rem; }
.gf37-footer-links a:hover { color: #fff; }
.gf37-promo-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.gf37-copyright { color: var(--gf37-muted); font-size: 1.05rem; margin-top: 1rem; }

/* ---------- Mobile bottom navigation ---------- */
.gf37-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
  background: linear-gradient(180deg, rgba(8,11,32,0.96), rgba(4,6,20,0.98));
  border-top: 1px solid var(--gf37-line);
  height: 62px;
}
.gf37-bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gf37-muted); font-size: 1rem; gap: 2px; padding: 4px 2px; min-width: 60px; min-height: 60px;
  position: relative; transition: color 0.15s ease, transform 0.15s ease;
}
.gf37-bottomnav a .ic { font-size: 22px; line-height: 1; }
.gf37-bottomnav a:hover, .gf37-bottomnav a.is-active { color: var(--gf37-gold); transform: translateY(-2px); }
.gf37-bottomnav a.is-active::before {
  content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--gf37-accent), var(--gf37-gold));
}
.gf37-bottomnav .badge {
  position: absolute; top: 4px; right: 18px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--gf37-accent); color: #fff; font-size: 0.85rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ---------- Back to top ---------- */
.gf37-backtop {
  position: fixed; right: 14px; bottom: 78px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--gf37-primary); color: #fff; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--gf37-shadow);
}
.gf37-backtop--show { opacity: 1; pointer-events: auto; }
.gf37-backtop:hover { transform: translateY(-3px); }

/* ---------- Mobile bottom clearance ---------- */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  body.gf37-no-scroll { overflow: hidden; }
}

/* ---------- Desktop: hide bottom nav, widen shell ---------- */
@media (min-width: 769px) {
  .gf37-bottomnav { display: none; }
  .gf37-wrapper { max-width: 960px; }
  .gf37-grid { grid-template-columns: repeat(6, 1fr); }
  .gf37-grid--4 { grid-template-columns: repeat(8, 1fr); }
  .gf37-features { grid-template-columns: repeat(4, 1fr); }
  .gf37-testi { grid-template-columns: repeat(3, 1fr); }
}

/* Utility */
.gf37-text-soft { color: var(--gf37-soft); }
.gf37-text-gold { color: var(--gf37-gold); }
.gf37-text-green { color: var(--gf37-green); }
.gf37-mt-1 { margin-top: 0.6rem; }
.gf37-mt-2 { margin-top: 1.2rem; }
.gf37-center { text-align: center; }
.gf37-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.gf37-pill {
  display: inline-block; background: rgba(0,0,255,0.25); color: #cfe0ff;
  padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 1.05rem; margin: 0.1rem;
}
.gf37-divider { height: 1px; background: var(--gf37-line); margin: 1.2rem 0; }
