/* =========================================================
   jilicrown-apk.homes - Core Base Stylesheet
   Prefix: g1fd-
   Palette: #FF8C00 / #FF9800 / #0A0A0A
   Mobile-first, max 430px container
   ========================================================= */

:root {
  --g1fd-orange: #FF8C00;
  --g1fd-orange-2: #FF9800;
  --g1fd-dark: #0A0A0A;
  --g1fd-dark-2: #161616;
  --g1fd-dark-3: #1f1a12;
  --g1fd-cream: #FFF6E6;
  --g1fd-amber: #FFD27A;
  --g1fd-muted: #b9a98c;
  --g1fd-line: rgba(255, 140, 0, 0.22);
  --g1fd-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --g1fd-radius: 14px;
  --g1fd-header-h: 60px;
  --g1fd-nav-h: 64px;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: radial-gradient(circle at top, #1a1408 0%, var(--g1fd-dark) 60%);
  color: var(--g1fd-cream);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--g1fd-amber); text-decoration: none; }
a:hover { color: var(--g1fd-orange); }

.g1fd-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ---------- Header ---------- */
.g1fd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--g1fd-header-h);
  background: linear-gradient(180deg, rgba(10,10,10,0.98), rgba(20,14,4,0.96));
  border-bottom: 1px solid var(--g1fd-line);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.g1fd-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.g1fd-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.g1fd-logo img {
  width: 30px; height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(255,140,0,0.5);
}
.g1fd-logo b {
  color: var(--g1fd-cream);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g1fd-logo b span { color: var(--g1fd-orange); }

.g1fd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 30px;
  padding: 8px 14px;
  font-size: 1.25rem;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s;
}
.g1fd-btn:active { transform: scale(0.95); }
.g1fd-btn-register {
  background: linear-gradient(135deg, var(--g1fd-orange), var(--g1fd-orange-2));
  color: #1a0f00;
  box-shadow: 0 6px 16px rgba(255,140,0,0.45);
}
.g1fd-btn-register:hover { filter: brightness(1.08); color: #1a0f00; }
.g1fd-btn-login {
  background: transparent;
  color: var(--g1fd-cream);
  border: 1px solid var(--g1fd-orange);
}
.g1fd-btn-login:hover { background: rgba(255,140,0,0.12); color: var(--g1fd-cream); }

.g1fd-menu-btn {
  background: transparent;
  border: none;
  color: var(--g1fd-cream);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}

/* ---------- Mobile slide menu ---------- */
.g1fd-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.g1fd-menu-backdrop.g1fd-open {
  opacity: 1;
  visibility: visible;
}
.g1fd-side-menu {
  position: fixed;
  top: 0; right: -78%;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(180deg, #15100a, #0a0a0a);
  border-left: 1px solid var(--g1fd-line);
  z-index: 9999;
  transition: right .28s ease;
  overflow-y: auto;
  padding: 20px 18px;
}
.g1fd-side-menu.g1fd-open { right: 0; }
.g1fd-side-menu h4 {
  font-size: 1.3rem;
  color: var(--g1fd-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 4px 8px;
}
.g1fd-side-menu a {
  display: block;
  padding: 11px 12px;
  color: var(--g1fd-cream);
  border-radius: 10px;
  font-size: 1.35rem;
  border-bottom: 1px solid rgba(255,140,0,0.08);
}
.g1fd-side-menu a:hover {
  background: rgba(255,140,0,0.1);
  color: var(--g1fd-orange);
}
.g1fd-side-menu .g1fd-cta {
  margin-top: 18px;
  background: linear-gradient(135deg, var(--g1fd-orange), var(--g1fd-orange-2));
  color: #1a0f00;
  text-align: center;
  font-weight: 800;
  border: none;
}
.g1fd-menu-close {
  background: transparent;
  border: none;
  color: var(--g1fd-cream);
  font-size: 2.2rem;
  cursor: pointer;
  float: right;
  margin-top: -6px;
}

/* ---------- Main / sections ---------- */
main.g1fd-main {
  padding-top: calc(var(--g1fd-header-h) + 10px);
  padding-bottom: 90px;
}
.g1fd-section {
  padding: 18px 12px;
}
.g1fd-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
}
.g1fd-section-title h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--g1fd-cream);
}
.g1fd-section-title .g1fd-bar {
  width: 4px; height: 20px;
  background: linear-gradient(180deg, var(--g1fd-orange), var(--g1fd-orange-2));
  border-radius: 4px;
}
.g1fd-section-title .g1fd-more {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--g1fd-amber);
}

/* ---------- Hero ---------- */
.g1fd-hero {
  position: relative;
  border-radius: var(--g1fd-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #2a1c08 0%, #0a0a0a 100%);
  border: 1px solid var(--g1fd-line);
  box-shadow: var(--g1fd-shadow);
}
.g1fd-hero-slides { position: relative; }
.g1fd-hero-slide {
  display: none;
  padding: 22px 18px;
  min-height: 180px;
  position: relative;
}
.g1fd-hero-slide.g1fd-active { display: block; animation: g1fdFade .6s ease; }
@keyframes g1fdFade { from { opacity: 0; transform: translateY(8px);} to {opacity:1; transform: none;} }
.g1fd-hero-slide h1 {
  font-size: 2.3rem;
  line-height: 1.35;
  color: var(--g1fd-amber);
  font-weight: 900;
  margin-bottom: 8px;
}
.g1fd-hero-slide p {
  font-size: 1.3rem;
  color: var(--g1fd-cream);
  margin-bottom: 14px;
  opacity: 0.92;
}
.g1fd-hero-slide .g1fd-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--g1fd-orange), var(--g1fd-orange-2));
  color: #1a0f00;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.35rem;
  box-shadow: 0 8px 22px rgba(255,140,0,0.4);
}
.g1fd-hero-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.g1fd-hero-dots span {
  width: 7px; height: 7px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  cursor: pointer;
}
.g1fd-hero-dots span.g1fd-active {
  background: var(--g1fd-orange);
  width: 18px;
  border-radius: 4px;
}

/* ---------- Quick stats ---------- */
.g1fd-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.g1fd-stat {
  background: linear-gradient(180deg, #1c150a, #100b06);
  border: 1px solid var(--g1fd-line);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
}
.g1fd-stat b {
  display: block;
  font-size: 1.7rem;
  color: var(--g1fd-orange);
  font-weight: 900;
}
.g1fd-stat span {
  display: block;
  font-size: 1.1rem;
  color: var(--g1fd-muted);
  margin-top: 2px;
}

/* ---------- Category chips ---------- */
.g1fd-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}
.g1fd-chips::-webkit-scrollbar { display: none; }
.g1fd-chip {
  flex: 0 0 auto;
  background: #181208;
  border: 1px solid var(--g1fd-line);
  color: var(--g1fd-cream);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.g1fd-chip.g1fd-active,
.g1fd-chip:hover {
  background: linear-gradient(135deg, var(--g1fd-orange), var(--g1fd-orange-2));
  color: #1a0f00;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.g1fd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.g1fd-card {
  background: #161008;
  border: 1px solid var(--g1fd-line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .18s, box-shadow .2s, border-color .2s;
  position: relative;
  cursor: pointer;
}
.g1fd-card:hover {
  transform: translateY(-3px);
  border-color: var(--g1fd-orange);
  box-shadow: 0 10px 22px rgba(255,140,0,0.25);
}
.g1fd-card .g1fd-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0a0a0a;
  overflow: hidden;
}
.g1fd-card .g1fd-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.g1fd-card .g1fd-card-tag {
  position: absolute;
  top: 6px; left: 6px;
  background: linear-gradient(135deg, var(--g1fd-orange), var(--g1fd-orange-2));
  color: #1a0f00;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}
.g1fd-card .g1fd-card-body {
  padding: 8px 8px 10px;
}
.g1fd-card .g1fd-card-body b {
  display: block;
  color: var(--g1fd-cream);
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g1fd-card .g1fd-card-play {
  margin-top: 6px;
  font-size: 1.05rem;
  color: var(--g1fd-amber);
  font-weight: 700;
}

/* Featured wide card */
.g1fd-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}
.g1fd-feature-card {
  display: flex;
  gap: 12px;
  background: linear-gradient(135deg, #20180c, #0c0a06);
  border: 1px solid var(--g1fd-line);
  border-radius: var(--g1fd-radius);
  overflow: hidden;
  padding: 10px;
  align-items: center;
  cursor: pointer;
}
.g1fd-feature-card:hover { border-color: var(--g1fd-orange); }
.g1fd-feature-card img {
  width: 92px; height: 92px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}
.g1fd-feature-card .g1fd-feature-body { flex: 1; min-width: 0; }
.g1fd-feature-card h3 {
  font-size: 1.45rem;
  color: var(--g1fd-amber);
  margin-bottom: 4px;
  font-weight: 800;
}
.g1fd-feature-card p {
  font-size: 1.15rem;
  color: var(--g1fd-muted);
  margin-bottom: 6px;
}
.g1fd-feature-card .g1fd-feature-link {
  color: var(--g1fd-orange);
  font-weight: 800;
  font-size: 1.15rem;
}

/* ---------- Promo banner CTA ---------- */
.g1fd-promo {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,140,0,0.45), transparent 60%),
    linear-gradient(135deg, #2a1a06, #0a0a0a);
  border: 1px solid var(--g1fd-line);
  border-radius: var(--g1fd-radius);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--g1fd-shadow);
}
.g1fd-promo h3 {
  font-size: 1.7rem;
  color: var(--g1fd-amber);
  font-weight: 900;
  margin-bottom: 6px;
}
.g1fd-promo p {
  font-size: 1.25rem;
  color: var(--g1fd-cream);
  margin-bottom: 14px;
  opacity: 0.9;
}
.g1fd-promo a, .g1fd-promo button {
  display: inline-block;
  margin: 4px auto;
  background: linear-gradient(135deg, var(--g1fd-orange), var(--g1fd-orange-2));
  color: #1a0f00;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255,140,0,0.4);
}

/* ---------- SEO long content ---------- */
.g1fd-content {
  background: #100b06;
  border: 1px solid var(--g1fd-line);
  border-radius: var(--g1fd-radius);
  padding: 18px 16px;
}
.g1fd-content h2 {
  color: var(--g1fd-amber);
  font-size: 1.7rem;
  font-weight: 800;
  margin: 16px 0 8px;
}
.g1fd-content h2:first-child { margin-top: 0; }
.g1fd-content h3 {
  color: var(--g1fd-orange);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 12px 0 6px;
}
.g1fd-content p {
  color: var(--g1fd-cream);
  font-size: 1.3rem;
  margin-bottom: 10px;
  opacity: 0.95;
}
.g1fd-content ul { padding-left: 18px; margin-bottom: 10px; }
.g1fd-content li {
  color: var(--g1fd-cream);
  font-size: 1.3rem;
  margin-bottom: 6px;
  opacity: 0.92;
}
.g1fd-content a { color: var(--g1fd-orange); font-weight: 700; }

/* ---------- FAQ ---------- */
.g1fd-faq-item {
  border: 1px solid var(--g1fd-line);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #15100a;
}
.g1fd-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: var(--g1fd-cream);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.g1fd-faq-q .g1fd-icon { color: var(--g1fd-orange); transition: transform .2s; }
.g1fd-faq-item.g1fd-open .g1fd-icon { transform: rotate(45deg); }
.g1fd-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 14px;
  color: var(--g1fd-muted);
  font-size: 1.2rem;
}
.g1fd-faq-item.g1fd-open .g1fd-faq-a {
  max-height: 400px;
  padding: 0 14px 12px;
}

/* ---------- Footer ---------- */
.g1fd-footer {
  background: #060606;
  border-top: 1px solid var(--g1fd-line);
  padding: 22px 14px 30px;
  margin-top: 8px;
}
.g1fd-footer h4 {
  color: var(--g1fd-amber);
  font-size: 1.35rem;
  margin: 14px 0 8px;
}
.g1fd-footer p, .g1fd-footer li {
  color: var(--g1fd-muted);
  font-size: 1.2rem;
  line-height: 1.7rem;
}
.g1fd-footer ul { list-style: none; }
.g1fd-footer ul li { margin-bottom: 6px; }
.g1fd-footer a { color: var(--g1fd-cream); }
.g1fd-footer a:hover { color: var(--g1fd-orange); }
.g1fd-footer-bottom {
  text-align: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,140,0,0.12);
  color: #6f6253;
  font-size: 1.1rem;
}

/* ---------- Mobile bottom nav ---------- */
.g1fd-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--g1fd-nav-h);
  background: linear-gradient(180deg, rgba(20,14,4,0.98), rgba(8,8,8,0.99));
  border-top: 1px solid var(--g1fd-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.g1fd-bottomnav a, .g1fd-bottomnav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--g1fd-muted);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 2px;
  min-width: 60px;
  min-height: 60px;
  transition: color .2s, transform .15s;
}
.g1fd-bottomnav a .g1fd-ico,
.g1fd-bottomnav button .g1fd-ico {
  font-size: 2.2rem;
  line-height: 1;
}
.g1fd-bottomnav a:hover, .g1fd-bottomnav button:hover,
.g1fd-bottomnav .g1fd-active {
  color: var(--g1fd-orange);
}
.g1fd-bottomnav .g1fd-promo-cta {
  position: relative;
}
.g1fd-bottomnav .g1fd-promo-cta::before {
  content: "";
  position: absolute;
  top: -10px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--g1fd-orange), var(--g1fd-orange-2));
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(255,140,0,0.45);
}
.g1fd-bottomnav .g1fd-promo-cta .g1fd-ico {
  position: relative;
  color: #1a0f00;
  z-index: 2;
  font-size: 2.2rem;
}

/* ---------- Back to top ---------- */
.g1fd-totop {
  position: fixed;
  right: 14px;
  bottom: calc(var(--g1fd-nav-h) + 14px);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g1fd-orange), var(--g1fd-orange-2));
  color: #1a0f00;
  border: none;
  font-size: 1.8rem;
  font-weight: 800;
  cursor: pointer;
  display: none;
  z-index: 900;
  box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}
.g1fd-totop.g1fd-show { display: block; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .g1fd-bottomnav { display: none; }
  .g1fd-menu-btn { display: none; }
  .g1fd-wrap { max-width: 960px; }
  .g1fd-header-inner { max-width: 960px; }
  main.g1fd-main { padding-bottom: 40px; }
  .g1fd-grid { grid-template-columns: repeat(5, 1fr); }
  .g1fd-feature { grid-template-columns: repeat(2, 1fr); }
  .g1fd-stats { grid-template-columns: repeat(4, 1fr); }
}

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