/**
 * GK444 - Core CSS Stylesheet
 * Prefix: gdf8-
 * Palette: #262626 | #FFF8DC | #D4AF37 | #FFD700
 */

:root {
  --gdf8-bg: #262626;
  --gdf8-bg-light: #1e1e1e;
  --gdf8-bg-card: #2d2d2d;
  --gdf8-text: #FFF8DC;
  --gdf8-text-muted: #c9b97a;
  --gdf8-accent: #D4AF37;
  --gdf8-gold: #FFD700;
  --gdf8-accent-dark: #b8942e;
  --gdf8-border: #3a3a3a;
  --gdf8-shadow: rgba(212,175,55,0.15);
  --gdf8-radius: 8px;
  --gdf8-radius-lg: 12px;
  --gdf8-header-h: 56px;
  --gdf8-bottom-nav-h: 60px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gdf8-bg);
  color: var(--gdf8-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gdf8-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gdf8-accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== HEADER ===== */
.gdf8-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--gdf8-header-h);
  background: var(--gdf8-bg-light);
  border-bottom: 1px solid var(--gdf8-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
}
.gdf8-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.gdf8-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.gdf8-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gdf8-gold);
  letter-spacing: 0.5px;
}
.gdf8-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.gdf8-btn-register, .gdf8-btn-login {
  border: none;
  border-radius: var(--gdf8-radius);
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 36px;
}
.gdf8-btn-register {
  background: linear-gradient(135deg, var(--gdf8-gold), var(--gdf8-accent));
  color: #1a1a1a;
}
.gdf8-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px var(--gdf8-shadow);
}
.gdf8-btn-login {
  background: transparent;
  color: var(--gdf8-text);
  border: 1px solid var(--gdf8-accent);
}
.gdf8-btn-login:hover {
  background: rgba(212,175,55,0.1);
}
.gdf8-menu-btn {
  background: none;
  border: none;
  color: var(--gdf8-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.gdf8-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--gdf8-bg-light);
  border-left: 1px solid var(--gdf8-border);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.gdf8-menu-active { right: 0; }
.gdf8-mobile-menu .gdf8-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gdf8-gold);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gdf8-border);
}
.gdf8-mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.4rem;
  color: var(--gdf8-text);
  border-bottom: 1px solid var(--gdf8-border);
  transition: color 0.2s;
}
.gdf8-mobile-menu a:hover { color: var(--gdf8-gold); }
.gdf8-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--gdf8-text);
  font-size: 2.2rem;
  cursor: pointer;
}
.gdf8-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}
.gdf8-overlay-active { display: block; }

/* ===== MAIN CONTENT ===== */
.gdf8-main {
  margin-top: var(--gdf8-header-h);
  padding: 1rem;
  padding-bottom: calc(var(--gdf8-bottom-nav-h) + 2rem);
}

/* ===== CAROUSEL ===== */
.gdf8-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--gdf8-radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  cursor: pointer;
}
.gdf8-carousel-slide {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  display: none;
}
.gdf8-carousel-slide:first-child { display: block; }
.gdf8-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.gdf8-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.gdf8-dot-active { background: var(--gdf8-gold); }

/* ===== SECTION HEADINGS ===== */
.gdf8-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gdf8-gold);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gdf8-accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.gdf8-section-title .material-symbols-outlined,
.gdf8-section-title i {
  font-size: 2rem;
}

/* ===== GAME GRID ===== */
.gdf8-category-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gdf8-accent);
  margin: 1.2rem 0 0.8rem;
  padding-left: 0.4rem;
}
.gdf8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.gdf8-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.gdf8-game-item:hover { transform: translateY(-2px); }
.gdf8-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--gdf8-radius);
  object-fit: cover;
  border: 1px solid var(--gdf8-border);
  margin-bottom: 0.3rem;
}
.gdf8-game-name {
  font-size: 1rem;
  color: var(--gdf8-text-muted);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CONTENT CARDS ===== */
.gdf8-card {
  background: var(--gdf8-bg-card);
  border-radius: var(--gdf8-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--gdf8-border);
}
.gdf8-card h2 {
  font-size: 1.6rem;
  color: var(--gdf8-gold);
  margin-bottom: 0.8rem;
}
.gdf8-card h3 {
  font-size: 1.4rem;
  color: var(--gdf8-accent);
  margin: 1rem 0 0.5rem;
}
.gdf8-card p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--gdf8-text);
  margin-bottom: 0.8rem;
}
.gdf8-card ul, .gdf8-card ol {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}
.gdf8-card li {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--gdf8-text);
  margin-bottom: 0.4rem;
}

/* ===== PROMO LINKS ===== */
.gdf8-promo-link {
  display: inline-block;
  color: var(--gdf8-gold);
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.gdf8-promo-link:hover { color: #fff; }
.gdf8-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gdf8-gold), var(--gdf8-accent));
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.8rem 2rem;
  border-radius: var(--gdf8-radius);
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s;
}
.gdf8-promo-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px var(--gdf8-shadow);
}

/* ===== FOOTER ===== */
.gdf8-footer {
  background: var(--gdf8-bg-light);
  border-top: 1px solid var(--gdf8-border);
  padding: 2rem 1rem;
  text-align: center;
}
.gdf8-footer-desc {
  font-size: 1.2rem;
  color: var(--gdf8-text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6rem;
}
.gdf8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.gdf8-footer-links a {
  font-size: 1.1rem;
  color: var(--gdf8-text-muted);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--gdf8-border);
  border-radius: 4px;
  transition: all 0.2s;
}
.gdf8-footer-links a:hover {
  color: var(--gdf8-gold);
  border-color: var(--gdf8-accent);
}
.gdf8-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.gdf8-footer-promo button {
  background: linear-gradient(135deg, var(--gdf8-accent-dark), var(--gdf8-accent));
  color: #1a1a1a;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--gdf8-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.gdf8-footer-promo button:hover { transform: scale(1.05); }
.gdf8-copyright {
  font-size: 1.1rem;
  color: var(--gdf8-text-muted);
  margin-top: 1rem;
}

/* ===== BOTTOM NAV ===== */
.gdf8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--gdf8-bottom-nav-h);
  background: var(--gdf8-bg-light);
  border-top: 1px solid var(--gdf8-accent-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.gdf8-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--gdf8-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  gap: 2px;
}
.gdf8-bottom-nav-btn i,
.gdf8-bottom-nav-btn .material-symbols-outlined,
.gdf8-bottom-nav-btn ion-icon {
  font-size: 22px;
}
.gdf8-bottom-nav-btn span {
  font-size: 1rem;
}
.gdf8-bottom-nav-btn:hover,
.gdf8-bottom-nav-btn.gdf8-nav-active {
  color: var(--gdf8-gold);
  transform: scale(1.1);
}
.gdf8-bottom-nav-btn:active {
  transform: scale(0.95);
}

/* ===== HELP PAGE ===== */
.gdf8-help-content {
  padding: 0 0.5rem;
}
.gdf8-help-content h2 {
  font-size: 1.6rem;
  color: var(--gdf8-gold);
  margin: 1.5rem 0 0.8rem;
  border-bottom: 1px solid var(--gdf8-border);
  padding-bottom: 0.5rem;
}
.gdf8-help-content h3 {
  font-size: 1.4rem;
  color: var(--gdf8-accent);
  margin: 1.2rem 0 0.5rem;
}
.gdf8-help-content p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  margin-bottom: 0.8rem;
}
.gdf8-faq-item {
  background: var(--gdf8-bg-card);
  border-radius: var(--gdf8-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--gdf8-accent);
}
.gdf8-faq-item strong {
  color: var(--gdf8-gold);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}
.gdf8-faq-item p {
  font-size: 1.2rem;
  color: var(--gdf8-text-muted);
  margin: 0;
}

/* ===== UTILITY ===== */
.gdf8-text-center { text-align: center; }
.gdf8-mt-1 { margin-top: 1rem; }
.gdf8-mb-1 { margin-bottom: 1rem; }
.gdf8-hidden { display: none; }
.gdf8-highlight {
  color: var(--gdf8-gold);
  font-weight: 700;
}

/* ===== WINNER TABLE ===== */
.gdf8-winner-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gdf8-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gdf8-bg-card);
  padding: 0.8rem 1rem;
  border-radius: var(--gdf8-radius);
  border: 1px solid var(--gdf8-border);
}
.gdf8-winner-name {
  font-size: 1.2rem;
  color: var(--gdf8-text);
}
.gdf8-winner-amount {
  font-size: 1.3rem;
  color: var(--gdf8-gold);
  font-weight: 700;
}

/* ===== DESKTOP ===== */
@media (min-width: 769px) {
  .gdf8-bottom-nav { display: none; }
  .gdf8-main { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  .gdf8-main { padding-bottom: calc(var(--gdf8-bottom-nav-h) + 2rem); }
}
