/* ============================================================
 * playtime app store - layout.css
 * Mobile-first casino/gaming layout. Max content width 430px.
 * Palette: #2C2C2C background | #00FF7F accent/text.
 * All custom classes use the gfef- prefix per project rule.
 * ========================================================== */

:root {
  --gfef-bg: #2C2C2C;
  --gfef-bg-soft: #1f1f1f;
  --gfef-bg-card: #3a3a3a;
  --gfef-bg-deep: #161616;
  --gfef-primary: #00FF7F;
  --gfef-primary-dark: #00cc66;
  --gfef-text: #f4fff9;
  --gfef-text-muted: #b8c4bd;
  --gfef-border: rgba(0, 255, 127, 0.22);
  --gfef-gold: #ffd76a;
  --gfef-danger: #ff5d6c;
  --gfef-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --gfef-radius: 14px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--gfef-bg);
  color: var(--gfef-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gfef-primary); text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

/* ---------- Layout ---------- */
.gfef-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.gfef-wrapper { padding: 1rem 0; }
.gfef-section { padding: 2.4rem 0; }
.gfef-section-title {
  font-size: 2.1rem;
  margin-bottom: 1.4rem;
  color: var(--gfef-text);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.gfef-section-title i { color: var(--gfef-primary); }
.gfef-section-title::before {
  content: "";
  width: 5px;
  height: 22px;
  background: var(--gfef-primary);
  border-radius: 3px;
}
.gfef-lead { color: var(--gfef-text-muted); font-size: 1.5rem; margin-bottom: 1.2rem; }
.gfef-text-muted { color: var(--gfef-text-muted); }
.gfef-divider { height: 1px; background: var(--gfef-border); margin: 2rem 0; }

/* ---------- Header ---------- */
.gfef-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1a1a1a 0%, #2C2C2C 100%);
  border-bottom: 2px solid var(--gfef-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.gfef-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  gap: 0.6rem;
}
.gfef-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.gfef-logo img { width: 30px; height: 30px; border-radius: 8px; }
.gfef-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gfef-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gfef-logo-text span { color: var(--gfef-text); }

.gfef-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.gfef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 38px;
}
.gfef-btn:active { transform: scale(0.96); }
.gfef-btn-primary { background: var(--gfef-primary); color: #0d2a1a; box-shadow: 0 4px 14px rgba(0, 255, 127, 0.35); }
.gfef-btn-primary:hover { background: var(--gfef-primary-dark); }
.gfef-btn-outline { background: transparent; color: var(--gfef-primary); border: 1.5px solid var(--gfef-primary); }
.gfef-btn-outline:hover { background: rgba(0, 255, 127, 0.12); }
.gfef-btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--gfef-text); }
.gfef-btn-block { display: flex; width: 100%; }
.gfef-btn-lg { padding: 1.1rem 1.6rem; font-size: 1.6rem; }
.gfef-btn-hamburger {
  background: transparent;
  border: none;
  color: var(--gfef-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
}

/* ---------- Mobile menu drawer ---------- */
.gfef-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  background: var(--gfef-bg-deep);
  z-index: 9999;
  padding: 2rem 1.6rem;
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--gfef-border);
}
.gfef-mobile-menu.gfef-menu-open { right: 0; box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5); }
.gfef-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}
.gfef-menu-backdrop.gfef-menu-open { display: block; }
.gfef-menu-close {
  background: transparent;
  border: none;
  color: var(--gfef-primary);
  font-size: 2.4rem;
  float: right;
  cursor: pointer;
}
.gfef-menu-title { font-size: 1.7rem; margin: 1.4rem 0 1rem; color: var(--gfef-primary); }
.gfef-menu-list li { margin-bottom: 0.4rem; }
.gfef-menu-list a {
  display: block;
  padding: 1rem 0.8rem;
  color: var(--gfef-text);
  border-radius: 8px;
  font-size: 1.5rem;
  border-left: 3px solid transparent;
}
.gfef-menu-list a:hover, .gfef-menu-list a:focus {
  background: rgba(0, 255, 127, 0.08);
  border-left-color: var(--gfef-primary);
}

/* ---------- Carousel ---------- */
.gfef-carousel {
  position: relative;
  border-radius: var(--gfef-radius);
  overflow: hidden;
  margin: 1.4rem 0;
  box-shadow: var(--gfef-shadow);
}
.gfef-carousel-slide { display: none; cursor: pointer; position: relative; }
.gfef-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.gfef-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--gfef-text);
}
.gfef-carousel-caption strong { color: var(--gfef-primary); font-size: 1.6rem; display: block; }
.gfef-carousel-caption span { font-size: 1.3rem; color: var(--gfef-text-muted); }
.gfef-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.gfef-carousel-dot {
  width: 8px; height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
}
.gfef-carousel-dot.gfef-dot-active { background: var(--gfef-primary); width: 22px; border-radius: 4px; }
.gfef-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: var(--gfef-primary);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
}
.gfef-carousel-arrow.gfef-prev { left: 8px; }
.gfef-carousel-arrow.gfef-next { right: 8px; }

/* ---------- Hero CTA ---------- */
.gfef-hero { padding: 1.4rem 0 0.4rem; }
.gfef-hero-cta {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.12), rgba(0, 255, 127, 0.02));
  border: 1px solid var(--gfef-border);
  border-radius: var(--gfef-radius);
  padding: 1.6rem;
  margin: 1.4rem 0;
}
.gfef-hero-cta h1 { font-size: 2rem; margin-bottom: 0.8rem; }
.gfef-hero-cta h1 span { color: var(--gfef-primary); }
.gfef-hero-cta p { color: var(--gfef-text-muted); margin-bottom: 1.2rem; }
.gfef-hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Filter chips ---------- */
.gfef-chips {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.6rem 0 1.2rem;
  -webkit-overflow-scrolling: touch;
}
.gfef-chips::-webkit-scrollbar { display: none; }
.gfef-chip {
  flex: 0 0 auto;
  padding: 0.6rem 1.2rem;
  background: var(--gfef-bg-card);
  color: var(--gfef-text-muted);
  border-radius: 999px;
  font-size: 1.3rem;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.gfef-chip.gfef-chip-active {
  background: var(--gfef-primary);
  color: #0d2a1a;
  font-weight: 700;
}

/* ---------- Game grid ---------- */
.gfef-game-block { margin-bottom: 2.4rem; }
.gfef-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gfef-game-card {
  background: var(--gfef-bg-card);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
  display: block;
  text-align: center;
}
.gfef-game-card:hover, .gfef-game-card:active {
  transform: translateY(-3px);
  border-color: var(--gfef-primary);
  box-shadow: 0 6px 16px rgba(0, 255, 127, 0.2);
}
.gfef-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #222;
}
.gfef-game-card .gfef-game-name {
  font-size: 1.2rem;
  color: var(--gfef-text);
  padding: 0.6rem 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ---------- Card / panel ---------- */
.gfef-card {
  background: var(--gfef-bg-card);
  border-radius: var(--gfef-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.gfef-card-accent { border-left: 4px solid var(--gfef-primary); }
.gfef-card h3 { color: var(--gfef-primary); margin-bottom: 0.6rem; font-size: 1.7rem; }
.gfef-card p { color: var(--gfef-text-muted); margin-bottom: 0.8rem; }
.gfef-card ul { padding-left: 1.4rem; }
.gfef-card li { color: var(--gfef-text-muted); margin-bottom: 0.4rem; list-style: disc; }

/* ---------- Feature list ---------- */
.gfef-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.gfef-feature-item {
  background: var(--gfef-bg-soft);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.gfef-feature-item .gfef-feature-icon {
  font-size: 2.6rem;
  color: var(--gfef-primary);
  margin-bottom: 0.6rem;
}
.gfef-feature-item h4 { font-size: 1.4rem; margin-bottom: 0.4rem; color: var(--gfef-text); }
.gfef-feature-item p { font-size: 1.2rem; color: var(--gfef-text-muted); }

/* ---------- RTP compact table ---------- */
.gfef-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.gfef-rtp-table th, .gfef-rtp-table td {
  padding: 0.8rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gfef-rtp-table th { color: var(--gfef-primary); font-size: 1.2rem; text-transform: uppercase; }
.gfef-rtp-table td.gfef-rtp-high { color: var(--gfef-primary); font-weight: 700; }

/* ---------- Testimonials ---------- */
.gfef-testimonial {
  background: var(--gfef-bg-soft);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--gfef-primary);
}
.gfef-testimonial .gfef-stars { color: var(--gfef-gold); margin-bottom: 0.4rem; font-size: 1.2rem; }
.gfef-testimonial p { color: var(--gfef-text); font-style: italic; margin-bottom: 0.6rem; }
.gfef-testimonial .gfef-author { color: var(--gfef-primary); font-size: 1.2rem; font-weight: 700; }

/* ---------- Payment methods ---------- */
.gfef-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.gfef-pay-item {
  background: var(--gfef-bg-soft);
  border-radius: 10px;
  padding: 1rem 0.6rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--gfef-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.gfef-pay-item i { display: block; font-size: 2rem; color: var(--gfef-primary); margin-bottom: 0.4rem; }

/* ---------- Winners ---------- */
.gfef-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--gfef-bg-soft);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}
.gfef-winner .gfef-winner-name { color: var(--gfef-text); }
.gfef-winner .gfef-winner-amount { color: var(--gfef-gold); font-weight: 700; }
.gfef-winner .gfef-winner-game { color: var(--gfef-text-muted); font-size: 1.2rem; }

/* ---------- FAQ ---------- */
.gfef-faq-item {
  background: var(--gfef-bg-card);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.gfef-faq-q {
  padding: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gfef-text);
  font-size: 1.4rem;
}
.gfef-faq-q .gfef-faq-icon { color: var(--gfef-primary); transition: transform 0.2s; }
.gfef-faq-item.gfef-faq-open .gfef-faq-icon { transform: rotate(45deg); }
.gfef-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 1.2rem;
  color: var(--gfef-text-muted);
}
.gfef-faq-item.gfef-faq-open .gfef-faq-a { max-height: 400px; padding: 0 1.2rem 1.2rem; }

/* ---------- Steps ---------- */
.gfef-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.gfef-step-num {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  background: var(--gfef-primary);
  color: #0d2a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
}
.gfef-step-body h4 { color: var(--gfef-text); font-size: 1.5rem; margin-bottom: 0.2rem; }
.gfef-step-body p { color: var(--gfef-text-muted); font-size: 1.3rem; }

/* ---------- Inline internal links (SEO) ---------- */
.gfef-inline-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.gfef-inline-links a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(0, 255, 127, 0.08);
  border: 1px solid var(--gfef-border);
  border-radius: 999px;
  font-size: 1.2rem;
  color: var(--gfef-primary);
}
.gfef-inline-links a:hover { background: rgba(0, 255, 127, 0.18); }

.gfef-content-text { color: var(--gfef-text-muted); font-size: 1.45rem; margin-bottom: 1rem; }
.gfef-content-text strong { color: var(--gfef-primary); }
.gfef-content-text a { color: var(--gfef-primary); text-decoration: underline; }

/* ---------- Promotional text link inside content ---------- */
.gfef-text-link {
  color: var(--gfef-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.gfef-footer {
  background: var(--gfef-bg-deep);
  border-top: 2px solid var(--gfef-primary);
  padding: 2.4rem 1.2rem 9rem;
  margin-top: 2rem;
}
.gfef-footer-brand { font-size: 1.7rem; font-weight: 800; color: var(--gfef-primary); margin-bottom: 0.6rem; }
.gfef-footer-desc { color: var(--gfef-text-muted); font-size: 1.3rem; margin-bottom: 1.2rem; }
.gfef-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
  justify-content: center;
}
.gfef-footer-promos .gfef-btn { flex: 1 1 auto; min-width: 110px; font-size: 1.2rem; padding: 0.6rem 0.8rem; }
.gfef-footer-links-title { color: var(--gfef-primary); font-size: 1.4rem; margin: 1.4rem 0 0.6rem; font-weight: 700; }
.gfef-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1rem; }
.gfef-footer-links a { color: var(--gfef-text-muted); font-size: 1.2rem; padding: 0.3rem 0; }
.gfef-footer-links a:hover { color: var(--gfef-primary); }
.gfef-footer-copy {
  text-align: center;
  color: var(--gfef-text-muted);
  font-size: 1.2rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- Mobile bottom nav ---------- */
.gfef-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #1f1f1f, #161616);
  border-top: 2px solid var(--gfef-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}
.gfef-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--gfef-text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.4rem 0;
  min-width: 60px;
  min-height: 60px;
  transition: color 0.18s, transform 0.18s;
}
.gfef-bottom-nav-item i,
.gfef-bottom-nav-item .material-icons-outlined,
.gfef-bottom-nav-item ion-icon { font-size: 22px; }
.gfef-bottom-nav-item ion-icon { width: 22px; height: 22px; }
.gfef-bottom-nav-item:hover { color: var(--gfef-primary); transform: translateY(-2px); }
.gfef-bottom-nav-item:active { transform: scale(0.92); }
.gfef-bottom-nav-active { color: var(--gfef-primary); }
.gfef-bottom-nav-active::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  background: var(--gfef-primary);
  border-radius: 3px;
  margin-top: 2px;
}

/* ---------- Utility ---------- */
.gfef-text-center { text-align: center; }
.gfef-mt-1 { margin-top: 0.6rem; }
.gfef-mt-2 { margin-top: 1.2rem; }
.gfef-mb-2 { margin-bottom: 1.2rem; }
.gfef-hidden-mobile { display: none; }

/* ---------- Desktop behavior ---------- */
@media (min-width: 769px) {
  body { max-width: 480px; box-shadow: 0 0 40px rgba(0, 0, 0, 0.4); }
  .gfef-bottom-nav { display: none; }
  .gfef-footer { padding-bottom: 2.4rem; }
}

/* Desktop top nav variant (hidden on mobile, simple) */
@media (min-width: 769px) {
  .gfef-desktop-nav { display: flex !important; gap: 1.4rem; align-items: center; }
  .gfef-desktop-nav a { color: var(--gfef-text-muted); font-size: 1.4rem; }
  .gfef-desktop-nav a:hover { color: var(--gfef-primary); }
}

/* ---------- Mobile bottom padding so content isn't hidden by bottom nav ---------- */
@media (max-width: 768px) {
  main.gfef-main, .gfef-wrapper { padding-bottom: 80px; }
}
