/* =========================================================
 * xx8a.click - Shared stylesheet (basefiles)
 * Color palette: #141414 | #2F2F2F | #FF8000 | #F8F8FF | #CCCCCC | #708090
 * All custom classes use the "gac4-" prefix
 * Mobile-first, root font-size 62.5% -> 1rem = 10px
 * =======================================================*/

:root {
  --gac4-primary: #FF8000;
  --gac4-primary-dark: #cc6600;
  --gac4-bg: #141414;
  --gac4-bg-alt: #2F2F2F;
  --gac4-text: #F8F8FF;
  --gac4-text-muted: #CCCCCC;
  --gac4-slate: #708090;
  --gac4-card-bg: #1f1f1f;
  --gac4-border: #3a3a3a;
  --gac4-radius: 8px;
  --gac4-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --gac4-gradient: linear-gradient(135deg, #FF8000 0%, #cc6600 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: var(--gac4-bg);
  color: var(--gac4-text);
  font-size: 1.4rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gac4-primary); text-decoration: none; }
button { font-family: inherit; }

.gac4-container { width: 100%; padding: 0 1.2rem; }
.gac4-wrapper { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.gac4-grid { display: grid; gap: 0.8rem; }
.gac4-hidden { display: none !important; }

/* ---------------- Header ---------------- */
.gac4-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gac4-border);
  max-width: 430px;
  margin: 0 auto;
}
.gac4-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  gap: 0.6rem;
}
.gac4-logo {
  display: flex; align-items: center; gap: 0.5rem;
  flex-shrink: 0;
}
.gac4-logo img {
  width: 30px; height: 30px; border-radius: 6px;
  border: 1px solid var(--gac4-primary);
}
.gac4-logo-text {
  font-size: 1.7rem; font-weight: 800; color: var(--gac4-primary);
  letter-spacing: 0.4px;
}
.gac4-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.gac4-menu-toggle {
  background: transparent; border: none; color: var(--gac4-text);
  font-size: 1.9rem; cursor: pointer; padding: 0.3rem;
  min-width: 44px; min-height: 44px; line-height: 1;
}

.gac4-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.1rem; font-size: 1.25rem; font-weight: 700;
  border-radius: 6px; border: none; cursor: pointer;
  min-height: 36px; transition: transform .15s, filter .15s;
  text-transform: uppercase; letter-spacing: 0.3px;
  font-family: inherit;
}
.gac4-btn-primary {
  background: var(--gac4-gradient); color: #fff;
  box-shadow: 0 2px 10px rgba(255, 128, 0, 0.45);
}
.gac4-btn-secondary {
  background: transparent; color: var(--gac4-text);
  border: 1px solid var(--gac4-border);
}
.gac4-btn-primary:active { transform: translateY(1px) scale(0.98); filter: brightness(1.1); }
.gac4-btn-secondary:active { transform: translateY(1px) scale(0.98); }
.gac4-btn-block { width: 100%; padding: 0.9rem 1rem; font-size: 1.35rem; }

/* ---------------- Mobile side menu ---------------- */
.gac4-mobile-menu {
  position: fixed; top: 0; right: -82%; width: 82%; height: 100vh;
  background: var(--gac4-bg-alt); z-index: 9999;
  padding: 5.5rem 1.4rem 2rem; transition: right .3s ease;
  overflow-y: auto;
}
.gac4-mobile-menu.gac4-open { right: 0; }
.gac4-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  z-index: 9998; opacity: 0; visibility: hidden; transition: opacity .3s;
}
.gac4-menu-overlay.gac4-active { opacity: 1; visibility: visible; }
.gac4-mobile-menu a {
  display: block; padding: 1rem 0; color: var(--gac4-text);
  border-bottom: 1px solid var(--gac4-border); font-size: 1.35rem;
}
.gac4-mobile-menu a:active { color: var(--gac4-primary); }
.gac4-mobile-menu .gac4-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: none; color: var(--gac4-text);
  font-size: 2rem; cursor: pointer; min-width: 44px; min-height: 44px;
}

/* ---------------- Main / sections ---------------- */
.gac4-main { padding-top: 5.4rem; padding-bottom: 8rem; }
.gac4-section { padding: 1.6rem 1.2rem; }
.gac4-section-title {
  font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem;
  color: var(--gac4-text); position: relative; padding-left: 1rem;
  line-height: 1.3;
}
.gac4-section-title::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 4px; height: 75%;
  background: var(--gac4-primary); border-radius: 2px;
}
.gac4-section-title .gac4-accent { color: var(--gac4-primary); }
.gac4-lead {
  font-size: 1.35rem; color: var(--gac4-text-muted); margin-bottom: 1rem;
}
.gac4-accent { color: var(--gac4-primary); font-weight: 700; }

/* ---------------- Carousel ---------------- */
.gac4-carousel {
  position: relative; width: 100%; border-radius: 12px; overflow: hidden;
  margin-bottom: 0.5rem; box-shadow: var(--gac4-shadow);
}
.gac4-carousel-track { position: relative; width: 100%; padding-top: 46%; }
.gac4-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  cursor: pointer;
}
.gac4-carousel-slide.gac4-active { opacity: 1; }
.gac4-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.gac4-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5); color: #fff; border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.4rem;
  z-index: 5; display: flex; align-items: center; justify-content: center;
}
.gac4-carousel-arrow.gac4-prev { left: 8px; }
.gac4-carousel-arrow.gac4-next { right: 8px; }
.gac4-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.gac4-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.5);
  cursor: pointer; border: none; padding: 0;
}
.gac4-carousel-dot.gac4-active { background: var(--gac4-primary); }

/* ---------------- H1 ---------------- */
.gac4-h1 {
  font-size: 2rem; font-weight: 800; line-height: 1.3;
  margin: 1.2rem 0; text-align: center; padding: 0 0.5rem;
}

/* ---------------- Game grid ---------------- */
.gac4-game-section { margin-bottom: 1.5rem; }
.gac4-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.gac4-game-card {
  background: var(--gac4-card-bg); border-radius: 8px; overflow: hidden;
  cursor: pointer; transition: transform .15s; border: 1px solid var(--gac4-border);
  display: block; text-align: center;
}
.gac4-game-card:active { transform: scale(0.96); }
.gac4-game-card-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0a0a0a;
}
.gac4-game-card-name {
  font-size: 1.05rem; padding: 0.35rem 0.25rem; color: var(--gac4-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------- Category badge ---------------- */
.gac4-cat-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--gac4-gradient); color: #fff;
  padding: 0.35rem 0.9rem; border-radius: 14px; font-size: 1.1rem;
  font-weight: 700; margin-bottom: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ---------------- Generic content card ---------------- */
.gac4-card {
  background: var(--gac4-card-bg); border-radius: 10px; padding: 1.1rem;
  margin-bottom: 0.9rem; border: 1px solid var(--gac4-border);
}
.gac4-card h3 {
  font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--gac4-primary);
  display: flex; align-items: center; gap: 0.5rem;
}
.gac4-card p {
  font-size: 1.3rem; color: var(--gac4-text-muted); margin-bottom: 0.5rem;
}
.gac4-card ul { padding-left: 1.4rem; margin: 0.4rem 0; }
.gac4-card li { font-size: 1.25rem; color: var(--gac4-text-muted); margin-bottom: 0.35rem; }

.gac4-promo-text {
  color: var(--gac4-primary); font-weight: 700; cursor: pointer;
  text-decoration: underline; display: inline;
}

/* ---------------- RTP table ---------------- */
.gac4-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.gac4-rpt-wrap { overflow-x: auto; }
.gac4-rtp-table th, .gac4-rtp-table td {
  padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--gac4-border); text-align: left;
}
.gac4-rtp-table th { color: var(--gac4-primary); background: var(--gac4-bg-alt); font-size: 1.15rem; }
.gac4-rtp-bar {
  height: 6px; background: var(--gac4-bg-alt); border-radius: 3px; overflow: hidden; min-width: 60px;
}
.gac4-rtp-fill { height: 100%; background: var(--gac4-gradient); }

/* ---------------- Testimonials ---------------- */
.gac4-testimonial {
  background: var(--gac4-card-bg); border-radius: 10px; padding: 1rem;
  margin-bottom: 0.7rem; border-left: 3px solid var(--gac4-primary);
}
.gac4-testimonial-head { display: flex; align-items: center; gap: 0.6rem; }
.gac4-testimonial-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gac4-gradient); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.gac4-testimonial-name { font-weight: 700; color: var(--gac4-text); font-size: 1.25rem; }
.gac4-testimonial-text { font-size: 1.2rem; color: var(--gac4-text-muted); margin-top: 0.4rem; }
.gac4-stars { color: #FFD700; font-size: 1.1rem; letter-spacing: 1px; }

/* ---------------- Winners ---------------- */
.gac4-winner {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--gac4-card-bg); padding: 0.7rem 0.9rem; border-radius: 8px;
  margin-bottom: 0.5rem; border: 1px solid var(--gac4-border);
}
.gac4-winner-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gac4-gradient); display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
}
.gac4-winner-info { flex: 1; min-width: 0; }
.gac4-winner-name { font-size: 1.2rem; font-weight: 600; color: var(--gac4-text); }
.gac4-winner-game { font-size: 1.05rem; color: var(--gac4-slate); }
.gac4-winner-amount { color: var(--gac4-primary); font-weight: 700; font-size: 1.3rem; }

/* ---------------- Payment ---------------- */
.gac4-payment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.gac4-payment-item {
  background: var(--gac4-card-bg); border-radius: 6px; padding: 0.6rem 0.3rem;
  text-align: center; border: 1px solid var(--gac4-border);
  font-size: 1rem; color: var(--gac4-text-muted);
}
.gac4-payment-item .gac4-icon { font-size: 1.6rem; color: var(--gac4-primary); }

/* ---------------- App download CTA ---------------- */
.gac4-app-cta {
  background: linear-gradient(135deg, #2F2F2F 0%, #141414 100%);
  border-radius: 12px; padding: 1.3rem; text-align: center;
  border: 1px solid var(--gac4-primary); margin-top: 0.5rem;
}
.gac4-app-cta h3 { color: var(--gac4-primary); margin-bottom: 0.4rem; font-size: 1.6rem; }
.gac4-app-cta p { color: var(--gac4-text-muted); margin-bottom: 0.9rem; font-size: 1.2rem; }

/* ---------------- FAQ ---------------- */
.gac4-faq-item {
  background: var(--gac4-card-bg); border-radius: 8px; padding: 0.9rem 1rem;
  margin-bottom: 0.55rem; border: 1px solid var(--gac4-border);
}
.gac4-faq-q { font-weight: 700; color: var(--gac4-primary); font-size: 1.25rem; margin-bottom: 0.3rem; }
.gac4-faq-a { color: var(--gac4-text-muted); font-size: 1.2rem; line-height: 1.5; }

/* ---------------- Features grid ---------------- */
.gac4-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.gac4-feature-item {
  background: var(--gac4-card-bg); border-radius: 8px; padding: 1rem 0.7rem;
  text-align: center; border: 1px solid var(--gac4-border);
}
.gac4-feature-item .gac4-icon { font-size: 2.4rem; color: var(--gac4-primary); margin-bottom: 0.4rem; }
.gac4-feature-item h4 { font-size: 1.2rem; color: var(--gac4-text); margin-bottom: 0.3rem; }
.gac4-feature-item p { font-size: 1.1rem; color: var(--gac4-text-muted); }

/* ---------------- Security ---------------- */
.gac4-security-row {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0;
  border-bottom: 1px dashed var(--gac4-border);
}
.gac4-security-row:last-child { border-bottom: none; }
.gac4-security-row .gac4-icon { font-size: 2rem; color: var(--gac4-primary); flex-shrink: 0; }
.gac4-security-row h4 { font-size: 1.25rem; color: var(--gac4-text); }
.gac4-security-row p { font-size: 1.15rem; color: var(--gac4-text-muted); margin: 0; }

/* ---------------- Footer ---------------- */
.gac4-footer {
  background: #0a0a0a; padding: 1.8rem 1.2rem 9rem;
  border-top: 1px solid var(--gac4-border);
}
.gac4-footer-brand { font-size: 1.25rem; color: var(--gac4-text-muted); margin-bottom: 1rem; line-height: 1.5; }
.gac4-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.gac4-footer-links a {
  color: var(--gac4-text-muted); font-size: 1.1rem; padding: 0.3rem 0.6rem;
  border: 1px solid var(--gac4-border); border-radius: 4px;
}
.gac4-footer-links a:active { color: var(--gac4-primary); border-color: var(--gac4-primary); }
.gac4-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.gac4-footer-copy {
  font-size: 1.1rem; color: var(--gac4-slate); text-align: center;
  padding-top: 1rem; border-top: 1px solid var(--gac4-border);
}

/* ---------------- Bottom nav ---------------- */
.gac4-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 60px;
  background: rgba(20, 20, 20, 0.98); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--gac4-border); z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
  max-width: 430px; margin: 0 auto;
}
.gac4-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: none; border: none; color: var(--gac4-text-muted);
  font-size: 1rem; cursor: pointer; min-width: 60px; min-height: 60px;
  padding: 0.35rem 0.2rem; transition: color .15s, transform .15s; flex: 1;
}
.gac4-bottom-nav-btn:active { transform: scale(0.92); }
.gac4-bottom-nav-btn .gac4-icon { font-size: 2.1rem; line-height: 1; margin-bottom: 2px; }
.gac4-bottom-nav-btn.gac4-current { color: var(--gac4-primary); }
.gac4-bottom-nav-btn.gac4-promo { color: var(--gac4-primary); }
.gac4-bottom-nav-btn .material-icons,
.gac4-bottom-nav-btn .material-symbols-outlined { font-size: 2.2rem; }

/* ---------------- Back to top ---------------- */
.gac4-back-top {
  position: fixed; right: 1rem; bottom: 7.4rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gac4-primary); color: #fff; border: none;
  cursor: pointer; z-index: 999; font-size: 1.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--gac4-shadow);
}

/* ---------------- Toast ---------------- */
.gac4-toast {
  position: fixed; bottom: 8rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--gac4-bg-alt); color: var(--gac4-text);
  padding: 0.9rem 1.4rem; border-radius: 8px; z-index: 10000;
  font-size: 1.25rem; opacity: 0; visibility: hidden; transition: all .3s;
  border: 1px solid var(--gac4-primary); max-width: 90%; text-align: center;
}
.gac4-toast.gac4-show {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

/* ---------------- Desktop behaviour ---------------- */
@media (min-width: 769px) {
  .gac4-bottom-nav { display: none; }
  .gac4-back-top { bottom: 2rem; }
  .gac4-footer { padding-bottom: 2rem; }
  .gac4-main { padding-bottom: 2rem; }
}
