/* ============================================================
 * Super Ace App - Core base stylesheet
 * All custom classes use the gec4- prefix.
 * Palette: chocolate #D2691E / near-black #0C0C0C / sienna #A0522D
 *          deep pink #FF1493 / wheat #F5DEB3
 * ============================================================ */

:root {
  --gec4-primary: #D2691E;
  --gec4-bg: #0C0C0C;
  --gec4-bg-2: #161016;
  --gec4-sienna: #A0522D;
  --gec4-pink: #FF1493;
  --gec4-wheat: #F5DEB3;
  --gec4-text: #F5DEB3;
  --gec4-muted: #c7a98a;
  --gec4-card: #1b1419;
  --gec4-border: rgba(245, 222, 179, 0.14);
  --gec4-gold: #f5b94a;
  --gec4-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --gec4-radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: radial-gradient(120% 80% at 50% 0%, #221621 0%, var(--gec4-bg) 60%);
  color: var(--gec4-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gec4-gold); text-decoration: none; }
a:hover { color: var(--gec4-pink); }

.gec4-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

main.gec4-main {
  padding-top: 64px;
  padding-bottom: 80px;
}

/* ---------- Header ---------- */
.gec4-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(12,12,12,0.96), rgba(12,12,12,0.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gec4-border);
}
.gec4-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.gec4-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gec4-wheat);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.3px;
}
.gec4-brand img { width: 28px; height: 28px; border-radius: 6px; }
.gec4-brand small { color: var(--gec4-primary); font-weight: 700; font-size: 1rem; }

.gec4-header-actions { display: flex; align-items: center; gap: 0.45rem; }
.gec4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.gec4-btn:active { transform: scale(0.94); }
.gec4-btn-register {
  background: linear-gradient(135deg, var(--gec4-primary), var(--gec4-pink));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 20, 147, 0.35);
}
.gec4-btn-login {
  background: transparent;
  color: var(--gec4-wheat);
  border: 1px solid var(--gec4-border);
}
.gec4-menu-toggle {
  background: transparent;
  border: 1px solid var(--gec4-border);
  color: var(--gec4-wheat);
  width: 38px; height: 38px;
  border-radius: 10px;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Mobile slide menu ---------- */
.gec4-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  z-index: 9999;
  background: linear-gradient(180deg, #1a1117, #0c0c0c);
  padding: 70px 1.2rem 2rem;
  border-left: 1px solid var(--gec4-border);
  transition: right .25s ease;
  overflow-y: auto;
}
.gec4-mobile-menu.gec4-menu-open { right: 0; }
.gec4-mobile-menu h4 {
  font-size: 1.25rem;
  color: var(--gec4-primary);
  margin: 1.4rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.gec4-mobile-menu a {
  display: block;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--gec4-border);
  color: var(--gec4-wheat);
  font-size: 1.3rem;
}
.gec4-mobile-menu a:hover { color: var(--gec4-pink); }
.gec4-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.gec4-overlay.gec4-menu-open { opacity: 1; pointer-events: auto; }

/* ---------- Carousel ---------- */
.gec4-carousel {
  position: relative;
  border-radius: var(--gec4-radius);
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: var(--gec4-shadow);
}
.gec4-carousel-track { position: relative; }
.gec4-carousel-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.gec4-carousel-slide.gec4-slide-active { display: block; }
.gec4-carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.gec4-carousel-caption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.78), transparent);
  padding: 1.5rem 0.8rem 0.6rem;
  color: #fff;
}
.gec4-carousel-caption h2 { margin: 0 0 0.3rem; font-size: 1.7rem; color: var(--gec4-wheat); }
.gec4-carousel-caption p { margin: 0; font-size: 1.2rem; color: var(--gec4-muted); }
.gec4-carousel-dots {
  position: absolute;
  bottom: 0.8rem; right: 1rem;
  display: flex; gap: 0.4rem;
}
.gec4-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(245, 222, 179, 0.4);
  border: none; cursor: pointer; padding: 0;
}
.gec4-carousel-dot.gec4-dot-active { background: var(--gec4-pink); }

/* ---------- Section / headings ---------- */
.gec4-section { margin: 1.6rem 0; }
.gec4-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.gec4-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gec4-wheat);
  display: flex; align-items: center; gap: 0.5rem;
}
.gec4-section-title i { color: var(--gec4-primary); }
.gec4-h1 {
  font-size: 2rem;
  line-height: 2.6rem;
  color: var(--gec4-wheat);
  margin: 1rem 0 0.6rem;
  font-weight: 800;
}
.gec4-lead {
  font-size: 1.35rem;
  color: var(--gec4-muted);
  margin-bottom: 1rem;
}

/* ---------- Category tabs ---------- */
.gec4-cat-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
}
.gec4-cat-tab {
  background: var(--gec4-card);
  border: 1px solid var(--gec4-border);
  color: var(--gec4-wheat);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 1.15rem;
  white-space: nowrap;
  cursor: pointer;
}
.gec4-cat-tab-active {
  background: linear-gradient(135deg, var(--gec4-primary), var(--gec4-pink));
  color: #fff;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.gec4-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.gec4-game-card {
  background: var(--gec4-card);
  border: 1px solid var(--gec4-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.gec4-game-card:hover { transform: translateY(-2px); box-shadow: var(--gec4-shadow); }
.gec4-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.gec4-game-name {
  font-size: 1.05rem;
  color: var(--gec4-wheat);
  padding: 0.35rem 0.25rem 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Feature / promo cards ---------- */
.gec4-card {
  background: var(--gec4-card);
  border: 1px solid var(--gec4-border);
  border-radius: var(--gec4-radius);
  padding: 1rem;
  box-shadow: var(--gec4-shadow);
}
.gec4-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  color: var(--gec4-primary);
}
.gec4-card p { margin: 0; font-size: 1.2rem; color: var(--gec4-muted); }

.gec4-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.gec4-feature-item {
  background: var(--gec4-card);
  border: 1px solid var(--gec4-border);
  border-radius: 12px;
  padding: 0.85rem;
}
.gec4-feature-item i { font-size: 1.8rem; color: var(--gec4-pink); margin-bottom: 0.3rem; }
.gec4-feature-item h4 { margin: 0 0 0.3rem; font-size: 1.2rem; color: var(--gec4-wheat); }
.gec4-feature-item p { margin: 0; font-size: 1.1rem; color: var(--gec4-muted); }

/* ---------- Promo CTA banner ---------- */
.gec4-cta {
  background: linear-gradient(135deg, var(--gec4-sienna), var(--gec4-pink));
  border-radius: var(--gec4-radius);
  padding: 1.2rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--gec4-shadow);
  margin: 1.4rem 0;
}
.gec4-cta h3 { margin: 0 0 0.4rem; font-size: 1.6rem; color: #fff; }
.gec4-cta p { margin: 0 0 0.8rem; font-size: 1.2rem; color: #fff8ee; }
.gec4-cta .gec4-btn { background: #fff; color: var(--gec4-pink); }

/* ---------- FAQ ---------- */
.gec4-faq-item {
  background: var(--gec4-card);
  border: 1px solid var(--gec4-border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.gec4-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--gec4-wheat);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.gec4-faq-q .gec4-faq-icon { color: var(--gec4-primary); transition: transform .2s ease; }
.gec4-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  padding: 0 1rem;
  color: var(--gec4-muted);
  font-size: 1.15rem;
}
.gec4-faq-item.gec4-faq-open .gec4-faq-a { max-height: 320px; padding: 0 1rem 0.85rem; }
.gec4-faq-item.gec4-faq-open .gec4-faq-icon { transform: rotate(45deg); }

/* ---------- Testimonial ---------- */
.gec4-testimonial {
  background: var(--gec4-card);
  border-left: 3px solid var(--gec4-pink);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.55rem;
}
.gec4-testimonial p { margin: 0 0 0.35rem; font-size: 1.15rem; color: var(--gec4-text); }
.gec4-testimonial .gec4-stars { color: var(--gec4-gold); font-size: 1.1rem; }
.gec4-testimonial .gec4-author { font-size: 1.05rem; color: var(--gec4-muted); }

/* ---------- Winners ---------- */
.gec4-winner-row {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--gec4-border);
  font-size: 1.1rem;
}
.gec4-winner-row:last-child { border-bottom: none; }
.gec4-winner-name { color: var(--gec4-wheat); font-weight: 700; }
.gec4-winner-amount { color: var(--gec4-gold); font-weight: 800; }

/* ---------- Payment ---------- */
.gec4-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.gec4-pay-item {
  background: var(--gec4-card);
  border: 1px solid var(--gec4-border);
  border-radius: 10px;
  padding: 0.6rem 0.2rem;
  text-align: center;
}
.gec4-pay-item i { font-size: 1.6rem; color: var(--gec4-primary); }
.gec4-pay-item span { display: block; font-size: 1rem; color: var(--gec4-muted); margin-top: 0.2rem; }

/* ---------- Footer ---------- */
.gec4-footer {
  background: #050505;
  border-top: 1px solid var(--gec4-border);
  padding: 1.6rem 1.2rem 2rem;
  margin-top: 1.4rem;
}
.gec4-footer p { font-size: 1.15rem; color: var(--gec4-muted); }
.gec4-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem;
  margin: 0.8rem 0;
}
.gec4-footer-links a {
  color: var(--gec4-wheat);
  font-size: 1.1rem;
  text-decoration: underline;
}
.gec4-footer-copy {
  font-size: 1.05rem;
  color: #6f5c4a;
  margin-top: 0.8rem;
}

/* ---------- Back to top ---------- */
.gec4-top-btn {
  position: fixed;
  right: 1rem; bottom: 76px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gec4-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  font-size: 1.5rem;
}
.gec4-top-btn.gec4-top-visible { opacity: 1; pointer-events: auto; }

/* ---------- Bottom navigation ---------- */
.gec4-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 62px;
  z-index: 1000;
  background: linear-gradient(180deg, #141014, #050505);
  border-top: 1px solid var(--gec4-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.3rem 0.2rem;
}
.gec4-bottom-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--gec4-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  font-size: 1rem;
  cursor: pointer;
  gap: 0.15rem;
  transition: color .15s ease, transform .15s ease;
}
.gec4-bottom-btn:active { transform: scale(0.92); }
.gec4-bottom-btn i, .gec4-bottom-btn .material-icons-outlined,
.gec4-bottom-btn ion-icon { font-size: 22px; }
.gec4-bottom-btn.gec4-bottom-active { color: var(--gec4-pink); }
.gec4-bottom-btn.gec4-bottom-active i { color: var(--gec4-pink); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { background: radial-gradient(60% 60% at 50% 0%, #221621 0%, var(--gec4-bg) 60%); }
  .gec4-wrapper { max-width: 960px; }
  .gec4-header-inner { max-width: 960px; }
  .gec4-bottom-nav { display: none; }
  main.gec4-main { padding-bottom: 40px; }
  .gec4-game-grid { grid-template-columns: repeat(6, 1fr); }
  .gec4-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .gec4-pay-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {
  main.gec4-main { padding-bottom: 80px; }
}

/* ---------- Helpers ---------- */
.gec4-text-pink { color: var(--gec4-pink); font-weight: 700; }
.gec4-text-gold { color: var(--gec4-gold); font-weight: 700; }
.gec4-divider { height: 1px; background: var(--gec4-border); margin: 1.2rem 0; border: none; }
.gec4-pill {
  display: inline-block;
  background: rgba(255, 20, 147, 0.15);
  color: var(--gec4-pink);
  font-size: 1.05rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-right: 0.3rem;
}
.gec4-rtp-row {
  display: flex; justify-content: space-between;
  font-size: 1.1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--gec4-border);
}
.gec4-rtp-row:last-child { border-bottom: none; }
.gec4-prose p { font-size: 1.2rem; color: var(--gec4-muted); margin: 0 0 0.6rem; }
.gec4-prose h3 { font-size: 1.35rem; color: var(--gec4-primary); margin: 1rem 0 0.4rem; }
.gec4-link-list { list-style: none; padding: 0; margin: 0; }
.gec4-link-list li { padding: 0.35rem 0; font-size: 1.15rem; }
