/*!
 * wk777 net login stylesheet
 * All custom classes use the g1d1- prefix to avoid collisions.
 * Mobile-first: target <= 430px viewports, then enhance for desktop.
 */

:root {
  --g1d1-bg: #0D1117;
  --g1d1-primary: #5F9EA0;
  --g1d1-accent: #4682B4;
  --g1d1-text: #E0FFFF;
  --g1d1-muted: #F5F5F5;
  --g1d1-gold: #FFD166;
  --g1d1-red: #EF476F;
  --g1d1-green: #06D6A0;
  --g1d1-card: #161B22;
  --g1d1-card-hover: #1F2630;
  --g1d1-border: rgba(95, 158, 160, 0.35);
  --g1d1-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --g1d1-radius: 12px;
  --g1d1-radius-lg: 18px;
}

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

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--g1d1-bg);
  background-image: radial-gradient(circle at 20% 10%, rgba(95, 158, 160, 0.18), transparent 55%),
                    radial-gradient(circle at 90% 30%, rgba(70, 130, 180, 0.16), transparent 60%);
  color: var(--g1d1-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--g1d1-text); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Layout containers */
.g1d1-wrapper { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; position: relative; }
.g1d1-container { padding: 2rem 0; }

/* Header */
.g1d1-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.96), rgba(13, 17, 23, 0.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g1d1-border);
  transition: transform 0.3s ease;
}
.g1d1-header-hidden { transform: translateY(-100%); }
.g1d1-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.g1d1-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--g1d1-text);
}
.g1d1-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g1d1-logo span { background: linear-gradient(90deg, var(--g1d1-primary), var(--g1d1-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.g1d1-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g1d1-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 36px;
}
.g1d1-btn:active { transform: scale(0.94); }
.g1d1-btn-login { background: transparent; border: 1.5px solid var(--g1d1-primary); color: var(--g1d1-primary); }
.g1d1-btn-register {
  background: linear-gradient(135deg, var(--g1d1-gold), var(--g1d1-accent));
  color: #0D1117;
  box-shadow: 0 4px 14px rgba(255, 209, 102, 0.4);
}

/* Mobile menu toggle */
.g1d1-menu-toggle {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(95, 158, 160, 0.18);
  font-size: 1.8rem; color: var(--g1d1-text);
}

/* Slide-in mobile menu */
.g1d1-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 85%; max-width: 320px;
  height: 100vh;
  background: var(--g1d1-card);
  z-index: 9999;
  padding: 6rem 1.6rem 2rem;
  overflow-y: auto;
  transition: right 0.32s cubic-bezier(0.2, 0.8, 0.3, 1);
  border-left: 1px solid var(--g1d1-border);
}
.g1d1-mobile-menu.g1d1-menu-open { right: 0; }
.g1d1-mobile-menu h3 {
  font-size: 1.3rem;
  color: var(--g1d1-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1.4rem 0 0.6rem;
}
.g1d1-mobile-menu a {
  display: block;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid rgba(95, 158, 160, 0.18);
  font-size: 1.35rem;
  color: var(--g1d1-text);
  transition: color 0.18s, padding-left 0.18s;
}
.g1d1-mobile-menu a:hover { color: var(--g1d1-gold); padding-left: 1.2rem; }

.g1d1-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 9998;
}
.g1d1-overlay-visible { opacity: 1; visibility: visible; }

/* Main */
.g1d1-main { padding-top: 6rem; padding-bottom: 90px; }

/* Carousel */
.g1d1-carousel {
  position: relative;
  border-radius: var(--g1d1-radius-lg);
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: var(--g1d1-shadow);
}
.g1d1-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.g1d1-slide.g1d1-slide-active { display: block; }
.g1d1-slide img { width: 100%; height: 180px; object-fit: cover; }
.g1d1-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(13, 17, 23, 0.95));
  color: var(--g1d1-text);
}
.g1d1-slide-caption h2 { font-size: 1.8rem; font-weight: 700; color: var(--g1d1-gold); }
.g1d1-slide-caption p { font-size: 1.25rem; margin-top: 0.2rem; color: var(--g1d1-muted); }
.g1d1-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.g1d1-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.g1d1-dot-active { background: var(--g1d1-gold); transform: scale(1.3); }

/* Section headings */
.g1d1-section { margin: 2.4rem 0; }
.g1d1-section-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.6rem; font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--g1d1-primary);
}
.g1d1-section-title i, .g1d1-section-title span.material-icons {
  color: var(--g1d1-gold); font-size: 1.8rem;
}
.g1d1-h1 {
  font-size: 2rem; font-weight: 800;
  margin: 1.5rem 0 1rem;
  background: linear-gradient(90deg, var(--g1d1-gold), var(--g1d1-text));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.g1d1-intro { color: var(--g1d1-muted); font-size: 1.35rem; line-height: 1.65rem; }

/* Game grid */
.g1d1-game-section { margin: 2rem 0; }
.g1d1-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.g1d1-game-card {
  background: var(--g1d1-card);
  border-radius: var(--g1d1-radius);
  padding: 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s, border 0.18s;
  border: 1px solid transparent;
}
.g1d1-game-card:hover, .g1d1-game-card:active {
  transform: translateY(-3px);
  background: var(--g1d1-card-hover);
  border-color: var(--g1d1-primary);
}
.g1d1-game-card img {
  width: 100%; height: 72px; object-fit: cover;
  border-radius: 8px; margin-bottom: 0.4rem;
}
.g1d1-game-card-name {
  font-size: 1.1rem; color: var(--g1d1-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Category tag */
.g1d1-category-tag {
  display: inline-flex;
  align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: rgba(95, 158, 160, 0.2);
  color: var(--g1d1-primary);
  border-radius: 999px;
  font-size: 1.15rem; font-weight: 600;
  margin-bottom: 0.8rem;
}

/* Content cards */
.g1d1-card {
  background: var(--g1d1-card);
  border-radius: var(--g1d1-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid var(--g1d1-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.g1d1-card h3 { font-size: 1.5rem; color: var(--g1d1-gold); margin-bottom: 0.6rem; }
.g1d1-card p { color: var(--g1d1-muted); margin-bottom: 0.6rem; }
.g1d1-card ul { padding-left: 1.6rem; }
.g1d1-card li { color: var(--g1d1-muted); margin-bottom: 0.4rem; }

/* Promo links */
.g1d1-promo-link {
  color: var(--g1d1-gold);
  font-weight: 700;
  border-bottom: 1px dashed var(--g1d1-gold);
  cursor: pointer;
}
.g1d1-promo-link:hover { color: var(--g1d1-red); border-bottom-color: var(--g1d1-red); }

.g1d1-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1.2rem;
  margin: 1.4rem 0;
  background: linear-gradient(135deg, var(--g1d1-gold), var(--g1d1-accent));
  color: #0D1117;
  border-radius: var(--g1d1-radius);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 209, 102, 0.35);
}
.g1d1-cta:active { transform: scale(0.97); }

/* RTP table */
.g1d1-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.g1d1-rtp-table th, .g1d1-rtp-table td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--g1d1-border);
  text-align: left;
}
.g1d1-rtp-table th { color: var(--g1d1-primary); }
.g1d1-rtp-table td.g1d1-rtp-high { color: var(--g1d1-green); font-weight: 700; }

/* FAQ accordion */
.g1d1-faq-question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
  padding: 1rem 0.4rem;
  font-size: 1.3rem; font-weight: 600;
  color: var(--g1d1-text);
  text-align: left;
}
.g1d1-faq-icon { transition: transform 0.3s; color: var(--g1d1-gold); }
.g1d1-faq-icon-open { transform: rotate(45deg); }
.g1d1-faq-answer { display: none; padding: 0.4rem 0.4rem 1rem; color: var(--g1d1-muted); }

/* Testimonials */
.g1d1-testimonial {
  background: var(--g1d1-card);
  padding: 1rem;
  border-radius: var(--g1d1-radius);
  border-left: 3px solid var(--g1d1-gold);
  margin-bottom: 0.8rem;
}
.g1d1-testimonial p { font-style: italic; color: var(--g1d1-muted); }
.g1d1-testimonial-author { display: block; margin-top: 0.4rem; color: var(--g1d1-primary); font-size: 1.2rem; font-weight: 600; }

/* Winner showcase */
.g1d1-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--g1d1-border);
  font-size: 1.25rem;
}
.g1d1-winner-name { color: var(--g1d1-text); font-weight: 600; }
.g1d1-winner-amount { color: var(--g1d1-green); font-weight: 700; }

/* Payment methods */
.g1d1-payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.g1d1-payment-item {
  background: var(--g1d1-card);
  padding: 0.8rem 0.4rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--g1d1-muted);
  border: 1px solid var(--g1d1-border);
}
.g1d1-payment-item i, .g1d1-payment-item span.material-icons { color: var(--g1d1-primary); font-size: 1.8rem; }

/* Achievement grid */
.g1d1-achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.g1d1-achievement {
  background: var(--g1d1-card);
  border-radius: var(--g1d1-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--g1d1-border);
}
.g1d1-achievement i, .g1d1-achievement span.material-icons { color: var(--g1d1-gold); font-size: 2.4rem; }
.g1d1-achievement h4 { color: var(--g1d1-text); margin: 0.4rem 0; font-size: 1.3rem; }
.g1d1-achievement p { color: var(--g1d1-muted); font-size: 1.15rem; }

/* Footer */
.g1d1-footer {
  background: linear-gradient(180deg, #0D1117, #060A10);
  padding: 2.4rem 1.2rem;
  border-top: 1px solid var(--g1d1-border);
  margin-top: 2rem;
}
.g1d1-footer-inner { max-width: 430px; margin: 0 auto; }
.g1d1-footer-brand { color: var(--g1d1-muted); font-size: 1.25rem; line-height: 1.6rem; margin-bottom: 1.2rem; }
.g1d1-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.g1d1-footer-promos button, .g1d1-footer-promos a {
  padding: 0.7rem;
  text-align: center;
  background: var(--g1d1-card);
  border-radius: 8px;
  font-size: 1.15rem; color: var(--g1d1-text);
  border: 1px solid var(--g1d1-border);
  transition: background 0.18s;
}
.g1d1-footer-promos button:hover, .g1d1-footer-promos a:hover { background: var(--g1d1-card-hover); color: var(--g1d1-gold); }
.g1d1-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  margin: 1rem 0;
}
.g1d1-footer-links a { color: var(--g1d1-primary); font-size: 1.15rem; }
.g1d1-footer-links a:hover { color: var(--g1d1-gold); text-decoration: underline; }
.g1d1-copyright {
  text-align: center;
  color: var(--g1d1-muted);
  font-size: 1.1rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--g1d1-border);
}

/* Mobile bottom navigation */
.g1d1-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.98), rgba(13, 17, 23, 1));
  border-top: 1px solid var(--g1d1-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
}
.g1d1-bottom-nav-btn {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px;
  font-size: 1.05rem;
  color: var(--g1d1-muted);
  position: relative;
  transition: color 0.2s, transform 0.2s;
}
.g1d1-bottom-nav-btn i,
.g1d1-bottom-nav-btn span.material-icons {
  font-size: 2.2rem;
  margin-bottom: 2px;
}
.g1d1-bottom-nav-btn:active { transform: scale(0.92); }
.g1d1-bottom-nav-btn.g1d1-nav-active { color: var(--g1d1-gold); }
.g1d1-bottom-nav-btn.g1d1-nav-active::after {
  content: "";
  position: absolute;
  top: -1px; left: 30%; right: 30%;
  height: 3px;
  background: var(--g1d1-gold);
  border-radius: 0 0 4px 4px;
}

/* Desktop: hide bottom nav, widen container */
@media (min-width: 769px) {
  .g1d1-bottom-nav { display: none; }
  .g1d1-wrapper { max-width: 760px; }
  .g1d1-header-inner { max-width: 760px; }
  .g1d1-footer-inner { max-width: 760px; }
  .g1d1-game-grid { grid-template-columns: repeat(5, 1fr); }
  .g1d1-slide img { height: 320px; }
  .g1d1-main { padding-bottom: 2rem; }
}

@media (max-width: 360px) {
  .g1d1-game-grid { grid-template-columns: repeat(2, 1fr); }
  .g1d1-h1 { font-size: 1.7rem; }
}
