/*!
 * 5699cc.click - Core base stylesheet
 * All custom classes/variables use the "gfa8-" prefix.
 * Mobile-first design, max-width 430px container, dark theme.
 * Comments in English per project convention.
 */

:root {
  --gfa8-bg-dark: #1A1A2E;
  --gfa8-green-deep: #006400;
  --gfa8-mint: #AFEEEE;
  --gfa8-light-green: #E8F5E8;
  --gfa8-soft-gray: #E0E0E0;
  --gfa8-neon-green: #9AFF9A;
  --gfa8-text-light: #F5FFF5;
  --gfa8-text-muted: #B8D6B8;
  --gfa8-accent-gold: #FFD24A;
  --gfa8-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --gfa8-radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Inter", sans-serif;
  background: var(--gfa8-bg-dark);
  color: var(--gfa8-text-light);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gfa8-neon-green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.gfa8-container {
  width: 100%;
  padding: 0 1.2rem;
}

.gfa8-wrapper {
  padding-top: 5.4rem;
}

/* ============ Header ============ */
.gfa8-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #11122a 0%, #1A1A2E 100%);
  border-bottom: 2px solid var(--gfa8-green-deep);
  box-shadow: var(--gfa8-shadow);
}

.gfa8-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  gap: 0.6rem;
}

.gfa8-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gfa8-neon-green);
  font-weight: 700;
  font-size: 1.7rem;
}

.gfa8-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.gfa8-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gfa8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  min-height: 36px;
  text-decoration: none;
}

.gfa8-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  text-decoration: none;
}

.gfa8-btn-register {
  background: linear-gradient(135deg, #006400, #00b347);
  color: #fff;
}

.gfa8-btn-login {
  background: linear-gradient(135deg, #AFEEEE, #9AFF9A);
  color: #1A1A2E;
}

.gfa8-menu-btn {
  background: transparent;
  border: 1px solid var(--gfa8-neon-green);
  color: var(--gfa8-neon-green);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ============ Mobile Menu ============ */
.gfa8-mobile-menu {
  display: none;
  background: #11122a;
  border-bottom: 1px solid var(--gfa8-green-deep);
  padding: 0.5rem 1rem 1rem;
}

.gfa8-mobile-menu.gfa8-open {
  display: block;
}

.gfa8-mobile-menu a {
  display: block;
  padding: 0.9rem 0.6rem;
  color: var(--gfa8-text-light);
  border-bottom: 1px solid rgba(154, 255, 154, 0.12);
  font-size: 1.4rem;
}

.gfa8-mobile-menu a:hover {
  color: var(--gfa8-neon-green);
  background: rgba(0, 100, 0, 0.18);
  text-decoration: none;
}

/* ============ Carousel ============ */
.gfa8-carousel {
  position: relative;
  margin: 1rem 0;
  border-radius: var(--gfa8-radius);
  overflow: hidden;
  box-shadow: var(--gfa8-shadow);
}

.gfa8-slide {
  display: none;
  position: relative;
  cursor: pointer;
}

.gfa8-slide.gfa8-active {
  display: block;
}

.gfa8-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gfa8-slide-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
}

.gfa8-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  display: flex;
  gap: 0.4rem;
}

.gfa8-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
}

.gfa8-dot.gfa8-active {
  background: var(--gfa8-neon-green);
}

/* ============ Sections ============ */
.gfa8-section {
  margin: 1.6rem 0;
}

.gfa8-section-title {
  font-size: 1.7rem;
  color: var(--gfa8-neon-green);
  margin-bottom: 0.8rem;
  padding-left: 0.6rem;
  border-left: 4px solid var(--gfa8-green-deep);
}

.gfa8-hero {
  background: linear-gradient(135deg, #0b3d0b 0%, #1A1A2E 100%);
  padding: 1.4rem;
  border-radius: var(--gfa8-radius);
  margin: 1rem 0;
  border: 1px solid rgba(154, 255, 154, 0.2);
}

.gfa8-hero h1 {
  font-size: 2rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.gfa8-hero p {
  color: var(--gfa8-text-muted);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.gfa8-hero .gfa8-btn {
  font-size: 1.5rem;
  padding: 0.9rem 1.6rem;
}

.gfa8-category-label {
  display: inline-block;
  background: var(--gfa8-green-deep);
  color: var(--gfa8-neon-green);
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 1.25rem;
  margin: 1rem 0 0.6rem;
}

/* ============ Game Grid ============ */
.gfa8-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.gfa8-card {
  background: linear-gradient(160deg, #20223f 0%, #15162c 100%);
  border: 1px solid rgba(154, 255, 154, 0.15);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: center;
  padding: 0.4rem;
}

.gfa8-card:hover {
  transform: translateY(-2px);
  border-color: var(--gfa8-neon-green);
}

.gfa8-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #0b0c1e;
}

.gfa8-card-name {
  font-size: 1.15rem;
  color: var(--gfa8-text-light);
  margin-top: 0.4rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2rem;
}

/* ============ Promo Banner ============ */
.gfa8-promo-banner {
  background: linear-gradient(135deg, #006400, #9AFF9A);
  color: #1A1A2E;
  border-radius: var(--gfa8-radius);
  padding: 1.2rem;
  margin: 1.4rem 0;
  text-align: center;
  font-weight: 700;
}

.gfa8-promo-banner p {
  margin-bottom: 0.7rem;
  font-size: 1.4rem;
}

.gfa8-promo-banner .gfa8-btn {
  background: #1A1A2E;
  color: var(--gfa8-neon-green);
}

/* ============ SEO Text ============ */
.gfa8-seo-text {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--gfa8-radius);
  padding: 1.2rem;
  margin: 1.2rem 0;
  color: var(--gfa8-text-muted);
  font-size: 1.35rem;
}

.gfa8-seo-text h2 {
  color: var(--gfa8-neon-green);
  font-size: 1.55rem;
  margin: 0.8rem 0 0.5rem;
}

.gfa8-seo-text h2:first-child {
  margin-top: 0;
}

.gfa8-seo-text h3 {
  color: var(--gfa8-mint);
  font-size: 1.4rem;
  margin: 0.6rem 0 0.4rem;
}

.gfa8-seo-text p {
  margin-bottom: 0.6rem;
}

.gfa8-seo-text strong {
  color: var(--gfa8-neon-green);
}

/* ============ Footer ============ */
.gfa8-footer {
  background: #0e0f24;
  border-top: 2px solid var(--gfa8-green-deep);
  padding: 1.6rem 1.2rem 9rem;
  margin-top: 2rem;
  color: var(--gfa8-text-muted);
  font-size: 1.25rem;
}

.gfa8-footer-brand {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.gfa8-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.gfa8-footer-promos .gfa8-btn {
  background: var(--gfa8-green-deep);
  color: #fff;
  font-size: 1.2rem;
  padding: 0.5rem 0.9rem;
}

.gfa8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0.8rem 0;
}

.gfa8-footer-links a {
  color: var(--gfa8-mint);
  font-size: 1.2rem;
}

.gfa8-footer-copy {
  border-top: 1px solid rgba(154, 255, 154, 0.15);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
  font-size: 1.15rem;
  color: #7d9b7d;
}

/* ============ Mobile Bottom Nav ============ */
.gfa8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #11122a 0%, #0b0c1e 100%);
  border-top: 2px solid var(--gfa8-green-deep);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.45);
}

.gfa8-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--gfa8-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  padding: 0.3rem 0;
}

.gfa8-bottom-nav-btn .gfa8-nav-icon {
  font-size: 22px;
  line-height: 1;
}

.gfa8-bottom-nav-btn:hover {
  color: var(--gfa8-neon-green);
  transform: translateY(-1px);
  text-decoration: none;
}

.gfa8-bottom-nav-btn.gfa8-current {
  color: var(--gfa8-neon-green);
}

.gfa8-bottom-nav-btn.gfa8-current .gfa8-nav-icon {
  transform: scale(1.12);
}

/* Mobile content clearance for fixed bottom nav */
@media (max-width: 768px) {
  main,
  .gfa8-wrapper {
    padding-bottom: 80px;
  }
}

/* Hide bottom nav on desktop, show a slim desktop top utility nav */
@media (min-width: 769px) {
  .gfa8-bottom-nav {
    display: none;
  }
  body {
    max-width: 960px;
  }
  .gfa8-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
