/* king ph link core stylesheet
   Class prefix: g883-
   Palette: #7FFF00 (primary accent) | #262626 (deep background) | #66CDAA (secondary text)
   Mobile-first, max-width 430px. Root font 62.5% for rem-based spacing. */

:root {
  --g883-primary: #7FFF00;      /* bright lime - accent / CTA */
  --g883-bg: #262626;           /* deep charcoal - background */
  --g883-text: #66CDAA;         /* medium aquamarine - secondary text */
  --g883-light: #f4fff0;        /* near-white for primary text */
  --g883-surface: #303030;      /* slightly lighter surface */
  --g883-surface-2: #1c1c1c;    /* darker surface for depth */
  --g883-border: rgba(127, 255, 0, 0.22);
  --g883-muted: #9aa39a;
  --g883-gold: #ffd76b;
  --g883-danger: #ff5d6c;
  --g883-radius: 1.2rem;
  --g883-shadow: 0 0.4rem 1.4rem rgba(0, 0, 0, 0.45);
}

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

html {
  font-size: 62.5%;            /* rem baseline: 1rem = 10px */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, system-ui, sans-serif;
  background: var(--g883-bg);
  color: var(--g883-light);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-top: 6.4rem;
}

img { max-width: 100%; display: block; }
a { color: var(--g883-primary); text-decoration: none; }

/* ===== Header ===== */
.g883-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: var(--g883-surface-2);
  border-bottom: 0.2rem solid var(--g883-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.g883-header-scrolled {
  background: rgba(28, 28, 28, 0.96);
  box-shadow: var(--g883-shadow);
}
.g883-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.g883-brand img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.g883-brand-name {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--g883-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.g883-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.g883-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 0.8rem;
  padding: 0.7rem 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  min-height: 3.4rem;
}
.g883-btn:active { transform: scale(0.96); }
.g883-btn-register {
  background: var(--g883-primary);
  color: #10200a;
}
.g883-btn-login {
  background: transparent;
  color: var(--g883-primary);
  border: 0.2rem solid var(--g883-primary);
}
.g883-nav-toggle {
  background: transparent;
  border: 0.2rem solid var(--g883-border);
  color: var(--g883-primary);
  width: 3.6rem; height: 3.6rem;
  border-radius: 0.8rem;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Navigation Menu (expandable) ===== */
.g883-nav-menu {
  position: fixed;
  top: 6.4rem; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--g883-surface);
  border-bottom: 0.2rem solid var(--g883-border);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  transform: translateY(-150%);
  transition: transform 0.3s ease;
  z-index: 9999;
  box-shadow: var(--g883-shadow);
}
.g883-nav-menu.g883-nav-open { transform: translateY(0); }
.g883-nav-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 0.8rem;
  border-radius: 0.7rem;
  background: var(--g883-surface-2);
  color: var(--g883-light);
  font-size: 1.3rem;
  font-weight: 600;
}
.g883-nav-menu a .material-icons,
.g883-nav-menu a i { font-size: 1.8rem; color: var(--g883-primary); }
.g883-nav-menu a:active { background: var(--g883-primary); color: #10200a; }

/* ===== Layout helpers ===== */
.g883-container { padding: 1.2rem; }
.g883-section { margin-bottom: 2.4rem; }
.g883-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--g883-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 0.4rem solid var(--g883-primary);
  padding-left: 0.8rem;
}
.g883-section-title .material-icons,
.g883-section-title i { font-size: 2rem; }
.g883-h1 {
  font-size: 2rem;
  line-height: 2.4rem;
  color: var(--g883-primary);
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
}
.g883-text { color: var(--g883-light); font-size: 1.4rem; line-height: 2.2rem; }
.g883-muted { color: var(--g883-muted); }
.g883-promo-text { color: var(--g883-primary); font-weight: 700; }

/* ===== Carousel ===== */
.g883-carousel {
  position: relative;
  border-radius: var(--g883-radius);
  overflow: hidden;
  margin-bottom: 1.6rem;
  box-shadow: var(--g883-shadow);
  aspect-ratio: 16 / 9;
}
.g883-carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.g883-carousel-slide.g883-slide-active { opacity: 1; }
.g883-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.g883-carousel-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1rem 1.6rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.g883-carousel-overlay h2 { color: var(--g883-primary); font-size: 1.6rem; }
.g883-carousel-overlay p { color: var(--g883-light); font-size: 1.2rem; }
.g883-carousel-dots {
  position: absolute; bottom: 0.6rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.5rem;
}
.g883-carousel-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer;
}
.g883-carousel-dot.g883-dot-active { background: var(--g883-primary); }

/* ===== Game grid (compact icon layout) ===== */
.g883-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.g883-game-card {
  background: var(--g883-surface);
  border-radius: 0.9rem;
  overflow: hidden;
  border: 0.15rem solid var(--g883-border);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex; flex-direction: column;
}
.g883-game-card:active {
  transform: scale(0.95);
  border-color: var(--g883-primary);
}
.g883-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--g883-surface-2);
}
.g883-game-name {
  font-size: 1.1rem;
  padding: 0.4rem 0.3rem 0.6rem;
  text-align: center;
  color: var(--g883-light);
  line-height: 1.3rem;
  min-height: 2.6rem;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Cards / feature blocks ===== */
.g883-card {
  background: var(--g883-surface);
  border-radius: var(--g883-radius);
  padding: 1.4rem;
  border: 0.15rem solid var(--g883-border);
  margin-bottom: 1rem;
}
.g883-card h3 {
  color: var(--g883-primary);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.g883-card p { color: var(--g883-light); font-size: 1.3rem; line-height: 2rem; }
.g883-card .material-icons, .g883-card i { font-size: 1.8rem; }

.g883-list { list-style: none; padding: 0; }
.g883-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2rem;
  color: var(--g883-light);
  font-size: 1.3rem;
  line-height: 2rem;
  border-bottom: 0.1rem dashed rgba(127,255,0,0.15);
}
.g883-list li:last-child { border-bottom: none; }
.g883-list li::before {
  content: '\f005';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0; top: 0.8rem;
  color: var(--g883-primary);
  font-size: 1.1rem;
}

/* ===== Stats / RTP mini blocks ===== */
.g883-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.g883-stat {
  background: var(--g883-surface-2);
  border-radius: 0.8rem;
  padding: 0.8rem;
  text-align: center;
  border: 0.15rem solid var(--g883-border);
}
.g883-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--g883-primary);
}
.g883-stat-label { font-size: 1.1rem; color: var(--g883-muted); }

/* ===== CTA banner ===== */
.g883-cta {
  background: linear-gradient(135deg, var(--g883-primary), var(--g883-text));
  border-radius: var(--g883-radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  color: #10200a;
  margin-bottom: 1.4rem;
  cursor: pointer;
}
.g883-cta:active { transform: scale(0.98); }
.g883-cta h3 { font-size: 1.7rem; color: #10200a; margin-bottom: 0.4rem; }
.g883-cta p { font-size: 1.3rem; color: #1c2c12; }

/* ===== Testimonials ===== */
.g883-testimonial {
  background: var(--g883-surface);
  border-left: 0.4rem solid var(--g883-primary);
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
}
.g883-testimonial p { font-size: 1.3rem; color: var(--g883-light); font-style: italic; }
.g883-testimonial .g883-author {
  margin-top: 0.6rem;
  font-size: 1.2rem;
  color: var(--g883-text);
  font-weight: 700;
  font-style: normal;
}

/* ===== Footer ===== */
.g883-footer {
  background: var(--g883-surface-2);
  border-top: 0.2rem solid var(--g883-border);
  padding: 2rem 1.2rem 1.4rem;
  margin-top: 2rem;
}
.g883-footer-about { font-size: 1.3rem; color: var(--g883-text); line-height: 2rem; margin-bottom: 1rem; }
.g883-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.g883-footer-links a {
  font-size: 1.2rem;
  color: var(--g883-light);
  text-decoration: underline;
}
.g883-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1rem;
}
.g883-footer-promos button {
  background: var(--g883-primary);
  color: #10200a;
  border: none;
  border-radius: 0.7rem;
  padding: 0.5rem 0.9rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.g883-copyright {
  font-size: 1.1rem;
  color: var(--g883-muted);
  text-align: center;
  border-top: 0.1rem solid rgba(127,255,0,0.12);
  padding-top: 1rem;
}

/* ===== Mobile Bottom Nav (5 buttons, fixed) ===== */
.g883-bottomnav { position: fixed; bottom: 0; left: 0; right: 0; max-width: 430px; margin: 0 auto; height: 6rem; background: var(--g883-surface-2); border-top: 0.2rem solid var(--g883-border); display: flex; justify-content: space-around; align-items: stretch; z-index: 1000; box-shadow: 0 -0.4rem 1rem rgba(0,0,0,0.4); }
.g883-bottomnav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; background: transparent; border: none; color: var(--g883-muted); font-size: 1.1rem; cursor: pointer; padding: 0.3rem; min-width: 6rem; min-height: 6rem; transition: color 0.2s ease, transform 0.15s ease; text-decoration: none; }
.g883-bottomnav-btn:active { transform: scale(0.9); }
.g883-bottomnav-btn .material-icons, .g883-bottomnav-btn i, .g883-bottomnav-btn ion-icon { font-size: 2.2rem; }
.g883-bottomnav-btn .bi { font-size: 2.1rem; }
.g883-bottomnav-active, .g883-bottomnav-btn.g883-bottomnav-active .material-icons, .g883-bottomnav-btn.g883-bottomnav-active i, .g883-bottomnav-btn.g883-bottomnav-active ion-icon { color: var(--g883-primary); }
.g883-bottomnav-promo { background: var(--g883-primary); color: #10200a; border-radius: 1rem; margin: 0.4rem; }

@media (min-width: 769px) { .g883-bottomnav { display: none; } }
@media (max-width: 768px) { main, .g883-main { padding-bottom: 8rem; } }

/* Utility classes */
.g883-center { text-align: center; }
.g883-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.g883-tag { display: inline-block; background: rgba(127,255,0,0.12); color: var(--g883-primary); padding: 0.2rem 0.6rem; border-radius: 0.5rem; font-size: 1.1rem; font-weight: 700; }
