/* kingph apk - theme-c1fc.css
 * All custom classes use the gfcc- prefix to isolate the namespace.
 * Mobile-first design: max-width 430px layout, scaled up for tablet/desktop.
 * Color palette: #212F3D | #5F9EA0 | #0000CD | #FAF0E6 | #B0E0E6
 * Dark shades are backgrounds, light shades are text colors.
 */

:root {
  /* Prefixed CSS variables for the design system */
  --gfcc-primary: #5F9EA0;
  --gfcc-primary-dark: #3d6c6e;
  --gfcc-bg: #212F3D;
  --gfcc-bg-alt: #18222d;
  --gfcc-bg-card: #2a3a4a;
  --gfcc-accent: #0000CD;
  --gfcc-text: #FAF0E6;
  --gfcc-text-muted: #B0E0E6;
  --gfcc-border: #3a4a5a;
  --gfcc-gold: #f0c040;
  --gfcc-success: #2ecc71;
  --gfcc-danger: #e74c3c;
  --gfcc-radius: 0.8rem;
  --gfcc-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.35);
  --gfcc-header-h: 6rem;
  --gfcc-bottom-nav-h: 6.2rem;
}

/* Root font 62.5% => 1rem = 10px for predictable rem sizing */
html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

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

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

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

a {
  color: var(--gfcc-primary);
  text-decoration: none;
}

/* Layout containers ----------------------------------------------------- */
.gfcc-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.gfcc-wrapper {
  width: 100%;
  min-height: 100vh;
  padding-top: var(--gfcc-header-h);
  padding-bottom: calc(var(--gfcc-bottom-nav-h) + 1rem);
}

/* Header ---------------------------------------------------------------- */
.gfcc-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--gfcc-header-h);
  background: linear-gradient(135deg, var(--gfcc-bg-alt), var(--gfcc-bg));
  border-bottom: 0.1rem solid var(--gfcc-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  box-shadow: var(--gfcc-shadow);
}

.gfcc-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.gfcc-logo img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
}

.gfcc-logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gfcc-text);
  letter-spacing: 0.05rem;
}

.gfcc-logo-text span {
  color: var(--gfcc-primary);
}

.gfcc-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gfcc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: var(--gfcc-radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  min-height: 4rem;
  min-width: 4rem;
}

.gfcc-btn:active {
  transform: scale(0.96);
}

.gfcc-btn-login {
  background: transparent;
  color: var(--gfcc-text);
  border: 0.15rem solid var(--gfcc-primary);
}

.gfcc-btn-login:hover {
  background: rgba(95, 158, 160, 0.15);
}

.gfcc-btn-register {
  background: linear-gradient(135deg, var(--gfcc-accent), #0040ff);
  color: var(--gfcc-text);
  box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 205, 0.45);
}

.gfcc-btn-register:hover {
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 205, 0.6);
}

.gfcc-menu-toggle {
  background: transparent;
  border: 0.15rem solid var(--gfcc-primary);
  color: var(--gfcc-text);
  width: 4rem;
  height: 4rem;
  border-radius: 0.6rem;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Navigation dropdown --------------------------------------------------- */
.gfcc-nav {
  position: fixed;
  top: var(--gfcc-header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--gfcc-bg-alt);
  border-bottom: 0.1rem solid var(--gfcc-primary);
  border-top: 0.1rem solid var(--gfcc-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}

.gfcc-menu-open .gfcc-nav {
  max-height: 50rem;
}

.gfcc-nav-list {
  list-style: none;
  padding: 1rem 1.2rem;
}

.gfcc-nav-list li {
  border-bottom: 0.1rem solid var(--gfcc-border);
}

.gfcc-nav-list li:last-child {
  border-bottom: none;
}

.gfcc-nav-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0.5rem;
  color: var(--gfcc-text);
  font-size: 1.4rem;
  font-weight: 600;
}

.gfcc-nav-list a:hover {
  color: var(--gfcc-primary);
}

.gfcc-nav-list i,
.gfcc-nav-list .material-icons-outlined {
  color: var(--gfcc-primary);
  font-size: 2rem;
}

/* Hero carousel --------------------------------------------------------- */
.gfcc-hero {
  position: relative;
  width: 100%;
  border-radius: var(--gfcc-radius);
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: var(--gfcc-shadow);
}

.gfcc-slides {
  position: relative;
  width: 100%;
  height: 18rem;
}

.gfcc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.gfcc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gfcc-slide-active {
  opacity: 1;
}

.gfcc-slide-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: rgba(33, 47, 61, 0.85);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  color: var(--gfcc-text);
  font-weight: 700;
  font-size: 1.3rem;
}

.gfcc-dots {
  position: absolute;
  bottom: 0.8rem;
  right: 1.2rem;
  display: flex;
  gap: 0.5rem;
}

.gfcc-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(250, 240, 230, 0.5);
  cursor: pointer;
  border: none;
}

.gfcc-dot-active {
  background: var(--gfcc-primary);
}

/* Headings -------------------------------------------------------------- */
.gfcc-h1 {
  font-size: 2.4rem;
  line-height: 2.8rem;
  font-weight: 800;
  color: var(--gfcc-text);
  margin: 1.5rem 0 1rem;
  text-align: center;
}

.gfcc-h1 span {
  color: var(--gfcc-primary);
}

.gfcc-h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gfcc-text);
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 0.4rem solid var(--gfcc-primary);
}

.gfcc-h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gfcc-text-muted);
  margin: 1.5rem 0 0.8rem;
}

.gfcc-section {
  margin: 1.5rem 0;
  padding: 1.2rem;
  background: var(--gfcc-bg-card);
  border-radius: var(--gfcc-radius);
  border: 0.1rem solid var(--gfcc-border);
}

.gfcc-lead {
  color: var(--gfcc-text-muted);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Promo text links ------------------------------------------------------ */
.gfcc-promo-link {
  color: var(--gfcc-primary);
  font-weight: 800;
  border-bottom: 0.15rem solid var(--gfcc-primary);
  cursor: pointer;
}

.gfcc-promo-link:hover {
  color: var(--gfcc-gold);
  border-bottom-color: var(--gfcc-gold);
}

.gfcc-cta {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.gfcc-btn-cta {
  background: linear-gradient(135deg, var(--gfcc-accent), var(--gfcc-primary));
  color: var(--gfcc-text);
  padding: 1.3rem 2.5rem;
  font-size: 1.6rem;
  font-weight: 800;
  border-radius: var(--gfcc-radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 205, 0.5);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.gfcc-btn-cta:active {
  transform: scale(0.96);
}

/* Game grid ------------------------------------------------------------- */
.gfcc-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.gfcc-filter-btn {
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 2rem;
  border: 0.1rem solid var(--gfcc-primary);
  background: transparent;
  color: var(--gfcc-text);
  cursor: pointer;
}

.gfcc-filter-btn-active {
  background: var(--gfcc-primary);
  color: var(--gfcc-bg);
}

.gfcc-game-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gfcc-gold);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gfcc-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.gfcc-game-card {
  background: var(--gfcc-bg-alt);
  border-radius: 0.8rem;
  overflow: hidden;
  border: 0.1rem solid var(--gfcc-border);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.gfcc-game-card:hover {
  transform: translateY(-0.3rem);
  border-color: var(--gfcc-primary);
}

.gfcc-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gfcc-game-card-name {
  padding: 0.4rem 0.3rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gfcc-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Feature / info cards -------------------------------------------------- */
.gfcc-card {
  background: var(--gfcc-bg-card);
  border-radius: var(--gfcc-radius);
  padding: 1.2rem;
  margin: 1rem 0;
  border: 0.1rem solid var(--gfcc-border);
}

.gfcc-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gfcc-primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gfcc-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.gfcc-feature-item {
  background: var(--gfcc-bg-alt);
  border-radius: 0.6rem;
  padding: 1rem;
  text-align: center;
  border: 0.1rem solid var(--gfcc-border);
}

.gfcc-feature-item i,
.gfcc-feature-item .material-icons-outlined {
  font-size: 2.4rem;
  color: var(--gfcc-primary);
  margin-bottom: 0.4rem;
}

.gfcc-feature-item h4 {
  font-size: 1.2rem;
  color: var(--gfcc-text);
  margin-bottom: 0.3rem;
}

.gfcc-feature-item p {
  font-size: 1.1rem;
  color: var(--gfcc-text-muted);
}

/* RTP table ------------------------------------------------------------- */
.gfcc-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.gfcc-rtp-table th,
.gfcc-rtp-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 0.1rem solid var(--gfcc-border);
  font-size: 1.2rem;
}

.gfcc-rtp-table th {
  color: var(--gfcc-primary);
  font-weight: 700;
}

.gfcc-rtp-table td.gfcc-rtp-value {
  color: var(--gfcc-gold);
  font-weight: 700;
}

/* Testimonials ---------------------------------------------------------- */
.gfcc-testimonial {
  background: var(--gfcc-bg-alt);
  border-radius: 0.8rem;
  padding: 1rem;
  margin: 0.8rem 0;
  border-left: 0.3rem solid var(--gfcc-primary);
}

.gfcc-testimonial-name {
  font-weight: 700;
  color: var(--gfcc-primary);
  font-size: 1.3rem;
}

.gfcc-testimonial-stars {
  color: var(--gfcc-gold);
  font-size: 1.2rem;
  margin: 0.3rem 0;
}

.gfcc-testimonial-text {
  font-size: 1.3rem;
  color: var(--gfcc-text-muted);
}

/* Winners showcase ------------------------------------------------------ */
.gfcc-winner-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gfcc-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gfcc-bg-alt);
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  border: 0.1rem solid var(--gfcc-border);
  font-size: 1.2rem;
}

.gfcc-winner-amount {
  color: var(--gfcc-gold);
  font-weight: 800;
}

/* Payment methods ------------------------------------------------------- */
.gfcc-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.gfcc-pay-item {
  background: var(--gfcc-bg-alt);
  border-radius: 0.6rem;
  padding: 0.8rem;
  text-align: center;
  border: 0.1rem solid var(--gfcc-border);
  font-size: 1.1rem;
  color: var(--gfcc-text-muted);
}

.gfcc-pay-item i,
.gfcc-pay-item .bi,
.gfcc-pay-item .material-icons {
  font-size: 2rem;
  color: var(--gfcc-primary);
  margin-bottom: 0.3rem;
}

/* Mobile app download CTA ---------------------------------------------- */
.gfcc-app-cta {
  background: linear-gradient(135deg, var(--gfcc-accent), var(--gfcc-primary-dark));
  border-radius: var(--gfcc-radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.gfcc-app-cta h3 {
  color: var(--gfcc-text);
  margin-bottom: 0.5rem;
}

.gfcc-app-cta p {
  color: var(--gfcc-text-muted);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Footer ---------------------------------------------------------------- */
.gfcc-footer {
  background: var(--gfcc-bg-alt);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
  border-top: 0.1rem solid var(--gfcc-primary);
}

.gfcc-footer-brand {
  color: var(--gfcc-text-muted);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

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

.gfcc-footer-links a {
  color: var(--gfcc-text);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: var(--gfcc-bg-card);
  border-radius: 0.5rem;
  border: 0.1rem solid var(--gfcc-border);
}

.gfcc-footer-links a:hover {
  color: var(--gfcc-primary);
  border-color: var(--gfcc-primary);
}

.gfcc-footer-copy {
  color: var(--gfcc-text-muted);
  font-size: 1.1rem;
  text-align: center;
  margin-top: 1rem;
  border-top: 0.1rem solid var(--gfcc-border);
  padding-top: 1rem;
}

/* Mobile bottom navigation --------------------------------------------- */
.gfcc-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--gfcc-bottom-nav-h);
  background: linear-gradient(180deg, var(--gfcc-bg-alt), var(--gfcc-bg));
  border-top: 0.1rem solid var(--gfcc-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.2rem 1rem rgba(0, 0, 0, 0.4);
}

.gfcc-bottom-nav-btn {
  flex: 1;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--gfcc-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  position: relative;
}

.gfcc-bottom-nav-btn i,
.gfcc-bottom-nav-btn .material-icons,
.gfcc-bottom-nav-btn .bi {
  font-size: 2.4rem;
}

.gfcc-bottom-nav-btn span {
  font-size: 1rem;
  font-weight: 600;
}

.gfcc-bottom-nav-btn:active {
  transform: scale(0.92);
  color: var(--gfcc-primary);
}

.gfcc-bottom-nav-btn-active {
  color: var(--gfcc-primary);
}

.gfcc-bottom-nav-btn-active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 0.3rem;
  background: var(--gfcc-primary);
  border-radius: 0 0 0.3rem 0.3rem;
}

.gfcc-bottom-nav-btn-promo {
  color: var(--gfcc-gold);
}

/* Desktop layout -------------------------------------------------------- */
@media (min-width: 769px) {
  body {
    max-width: 100%;
  }
  .gfcc-bottom-nav {
    display: none;
  }
  .gfcc-wrapper {
    padding-bottom: 2rem;
  }
  .gfcc-menu-toggle {
    display: none;
  }
  .gfcc-nav {
    position: static;
    transform: none;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: none;
  }
  .gfcc-nav-list {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
  }
  .gfcc-nav-list li {
    border-bottom: none;
  }
  .gfcc-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .gfcc-feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet sizing --------------------------------------------------------- */
@media (min-width: 431px) and (max-width: 768px) {
  body {
    max-width: 768px;
  }
  .gfcc-game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .gfcc-pay-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile clearance so content is never hidden behind the bottom nav ----- */
@media (max-width: 768px) {
  .gfcc-wrapper {
    padding-bottom: calc(var(--gfcc-bottom-nav-h) + 1.5rem);
  }
}
