/* MegaPerya stylesheet - class prefix: g98d- */
/* Palette: #FFB74D orange | #FF69B4 hot pink | #1C2833 deep ink | #C71585 magenta | #FFB6C1 soft pink */

:root {
  --g98d-primary: #FFB74D;
  --g98d-accent: #FF69B4;
  --g98d-deep: #C71585;
  --g98d-soft: #FFB6C1;
  --g98d-bg: #1C2833;
  --g98d-bg-alt: #243447;
  --g98d-card: #2a3b4f;
  --g98d-text: #fff5ea;
  --g98d-muted: #b8c4d2;
  --g98d-line: rgba(255, 182, 193, 0.18);
  --g98d-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --g98d-radius: 1.4rem;
  --g98d-header-h: 6rem;
  --g98d-bottom-h: 6.4rem;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px for predictable rem scaling */
  -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 20% 0%, #2b3d52 0%, var(--g98d-bg) 55%);
  color: var(--g98d-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.g98d-wrapper {
  width: 100%;
  padding: 0 1.2rem;
}

/* ===== Header ===== */
.g98d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(100deg, rgba(28,40,51,0.96), rgba(199,21,133,0.78));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g98d-line);
}

.g98d-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  gap: 1rem;
}

.g98d-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}
.g98d-brand img {
  width: 3rem; height: 3rem; border-radius: 0.8rem;
  box-shadow: 0 0 0 2px rgba(255,183,77,0.5);
}
.g98d-brand-text {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, var(--g98d-primary), var(--g98d-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.g98d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: 2rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.g98d-btn:active { transform: scale(0.94); }
.g98d-btn-login {
  background: transparent;
  color: var(--g98d-text);
  border: 1px solid rgba(255,255,255,0.35);
}
.g98d-btn-register {
  background: linear-gradient(90deg, var(--g98d-primary), var(--g98d-deep));
  color: #1a0f1e;
  box-shadow: 0 4px 12px rgba(255,183,77,0.35);
}

.g98d-menu-toggle {
  background: transparent;
  border: none;
  color: var(--g98d-text);
  font-size: 2.2rem;
  cursor: pointer;
  width: 3.6rem; height: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  transition: background 0.2s ease;
}
.g98d-menu-toggle:hover, .g98d-toggle-active { background: rgba(255,255,255,0.12); }

/* ===== Mobile expandable menu ===== */
.g98d-mobile-menu {
  position: fixed;
  top: var(--g98d-header-h);
  left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(20,30,42,0.985);
  border-bottom: 1px solid var(--g98d-line);
  padding: 1rem 1.2rem 1.6rem;
  transform: translateY(-130%);
  transition: transform 0.28s ease;
  z-index: 9999;
  max-height: 70vh;
  overflow-y: auto;
}
.g98d-menu-open { transform: translateY(0); }
.g98d-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1rem;
  border-radius: 1rem;
  color: var(--g98d-text);
  font-weight: 600;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--g98d-line);
}
.g98d-mobile-menu a:active { background: rgba(255,183,77,0.12); }
.g98d-mobile-menu .material-icons,
.g98d-mobile-menu i { font-size: 2rem; color: var(--g98d-primary); }

/* ===== Main / sections ===== */
main { padding-top: calc(var(--g98d-header-h) + 1rem); }
.g98d-section { margin: 2.4rem 0; }
.g98d-section-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.g98d-section-head h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--g98d-primary);
  letter-spacing: 0.3px;
}
.g98d-section-head .material-icons,
.g98d-section-head i { font-size: 2.2rem; color: var(--g98d-accent); }
.g98d-section-desc {
  color: var(--g98d-muted);
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.g98d-card {
  background: linear-gradient(160deg, var(--g98d-card), var(--g98d-bg-alt));
  border: 1px solid var(--g98d-line);
  border-radius: var(--g98d-radius);
  padding: 1.4rem;
  box-shadow: var(--g98d-shadow);
}

/* ===== Carousel ===== */
.g98d-carousel {
  position: relative;
  border-radius: var(--g98d-radius);
  overflow: hidden;
  box-shadow: var(--g98d-shadow);
  margin: 1.4rem 0;
}
.g98d-carousel-track { position: relative; width: 100%; aspect-ratio: 16/7; }
.g98d-carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.g98d-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.g98d-slide-active { opacity: 1; }
.g98d-carousel-caption {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  padding: 1.2rem 0.6rem 0.4rem;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.g98d-carousel-dots {
  position: absolute; bottom: 0.8rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.5rem;
}
.g98d-carousel-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
}
.g98d-dot-active { background: var(--g98d-primary); width: 2rem; border-radius: 0.6rem; }

/* ===== Category chips ===== */
.g98d-chips {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.g98d-chips::-webkit-scrollbar { display: none; }
.g98d-chip {
  flex: 0 0 auto;
  padding: 0.7rem 1.2rem;
  border-radius: 2rem;
  background: var(--g98d-bg-alt);
  color: var(--g98d-muted);
  font-size: 1.25rem;
  font-weight: 600;
  border: 1px solid var(--g98d-line);
  cursor: pointer;
  white-space: nowrap;
}
.g98d-chip-active {
  background: linear-gradient(90deg, var(--g98d-primary), var(--g98d-deep));
  color: #1a0f1e;
  border-color: transparent;
}

/* ===== Game grid ===== */
.g98d-game-section { margin-bottom: 2rem; }
.g98d-game-section h3 {
  font-size: 1.6rem;
  color: var(--g98d-soft);
  margin: 1rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.g98d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.g98d-game-card {
  background: var(--g98d-bg-alt);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--g98d-line);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.g98d-game-card:active { transform: scale(0.95); box-shadow: 0 0 0 2px var(--g98d-primary); }
.g98d-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: #0f1822;
}
.g98d-game-name {
  display: block;
  padding: 0.4rem 0.3rem 0.6rem;
  font-size: 1.1rem;
  color: var(--g98d-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Features / steps ===== */
.g98d-features { display: grid; gap: 0.9rem; }
.g98d-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--g98d-card);
  border-radius: 1.2rem;
  border-left: 4px solid var(--g98d-primary);
}
.g98d-feature .g98d-ico {
  font-size: 2.4rem;
  color: var(--g98d-accent);
  flex: 0 0 auto;
}
.g98d-feature h4 { font-size: 1.45rem; margin-bottom: 0.3rem; color: var(--g98d-primary); }
.g98d-feature p { font-size: 1.25rem; color: var(--g98d-muted); line-height: 1.5; }

.g98d-steps { counter-reset: step; display: grid; gap: 0.8rem; }
.g98d-step {
  position: relative;
  padding: 1rem 1rem 1rem 3.6rem;
  background: var(--g98d-bg-alt);
  border-radius: 1rem;
  border: 1px solid var(--g98d-line);
}
.g98d-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.9rem; top: 0.9rem;
  width: 2.2rem; height: 2.2rem;
  background: linear-gradient(135deg, var(--g98d-primary), var(--g98d-deep));
  color: #1a0f1e;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
}
.g98d-step h4 { font-size: 1.35rem; color: var(--g98d-soft); margin-bottom: 0.2rem; }
.g98d-step p { font-size: 1.2rem; color: var(--g98d-muted); line-height: 1.5; }

/* ===== RTP table ===== */
.g98d-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.g98d-rtp-table th, .g98d-rtp-table td {
  padding: 0.7rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--g98d-line);
}
.g98d-rtp-table th { color: var(--g98d-primary); font-size: 1.15rem; }
.g98d-rtp-table td.g98d-rt-num { color: var(--g98d-soft); font-weight: 700; }

/* ===== Testimonials / winners ===== */
.g98d-list { display: grid; gap: 0.8rem; }
.g98d-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--g98d-card);
  border-radius: 1.2rem;
  border: 1px solid var(--g98d-line);
}
.g98d-avatar {
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g98d-accent), var(--g98d-deep));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; flex: 0 0 auto;
}
.g98d-list-item h4 { font-size: 1.3rem; color: var(--g98d-text); }
.g98d-list-item p { font-size: 1.15rem; color: var(--g98d-muted); }
.g98d-win-amount { color: var(--g98d-primary); font-weight: 700; }

/* ===== Payment logos ===== */
.g98d-pay-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  text-align: center;
}
.g98d-pay {
  background: var(--g98d-card);
  border-radius: 1rem;
  padding: 0.8rem 0.3rem;
  font-size: 1.05rem;
  color: var(--g98d-soft);
  font-weight: 600;
  border: 1px solid var(--g98d-line);
}

/* ===== FAQ ===== */
.g98d-faq-item {
  background: var(--g98d-card);
  border: 1px solid var(--g98d-line);
  border-radius: 1rem;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.g98d-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--g98d-primary);
}
.g98d-faq-q .g98d-faq-icon { transition: transform 0.25s ease; color: var(--g98d-accent); }
.g98d-faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.2rem;
  color: var(--g98d-muted);
  font-size: 1.25rem;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.g98d-faq-open .g98d-faq-a { max-height: 320px; padding: 0 1.2rem 1rem; }
.g98d-faq-open .g98d-faq-icon { transform: rotate(45deg); }

/* ===== Big CTA ===== */
.g98d-cta {
  background: linear-gradient(120deg, var(--g98d-deep), var(--g98d-primary));
  border-radius: var(--g98d-radius);
  padding: 2rem 1.4rem;
  text-align: center;
  box-shadow: var(--g98d-shadow);
  margin: 2rem 0;
}
.g98d-cta h3 { font-size: 1.9rem; color: #1a0f1e; margin-bottom: 0.6rem; }
.g98d-cta p { color: #2a1530; font-size: 1.3rem; margin-bottom: 1.2rem; }
.g98d-cta .g98d-btn {
  background: #1C2833;
  color: var(--g98d-primary);
  font-size: 1.5rem;
  padding: 1rem 2rem;
}

/* ===== Footer ===== */
.g98d-footer {
  background: #141d28;
  border-top: 1px solid var(--g98d-line);
  padding: 2rem 1.2rem 9rem;
  margin-top: 2rem;
  font-size: 1.25rem;
  color: var(--g98d-muted);
}
.g98d-footer h4 {
  color: var(--g98d-primary);
  font-size: 1.5rem;
  margin: 1.4rem 0 0.8rem;
}
.g98d-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.g98d-footer-links a {
  color: var(--g98d-muted);
  font-size: 1.2rem;
  padding: 0.3rem 0;
}
.g98d-footer-links a:active { color: var(--g98d-primary); }
.g98d-footer-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1rem 0;
}
.g98d-footer-promos .g98d-btn {
  font-size: 1.2rem;
  padding: 0.8rem;
  min-height: 3.2rem;
}
.g98d-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: #6f7c8c;
  margin-top: 1.6rem;
  border-top: 1px solid var(--g98d-line);
  padding-top: 1.2rem;
}

/* ===== Mobile bottom nav ===== */
.g98d-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--g98d-bottom-h);
  background: linear-gradient(180deg, rgba(28,40,51,0.98), rgba(15,22,32,0.99));
  border-top: 1px solid var(--g98d-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.35);
}
.g98d-navbtn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--g98d-muted);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
  min-width: 60px;
  min-height: 60px;
  transition: color 0.18s ease, transform 0.18s ease;
}
.g98d-navbtn .material-icons,
.g98d-navbtn i { font-size: 2.4rem; }
.g98d-navbtn:active { transform: scale(0.9); }
.g98d-navbtn-active { color: var(--g98d-primary); }
.g98d-navbtn-promo {
  position: relative;
  color: var(--g98d-soft);
}
.g98d-navbtn-promo .material-icons,
.g98d-navbtn-promo i { color: var(--g98d-accent); }
.g98d-nav-badge {
  position: absolute;
  top: 0.4rem; right: 1rem;
  background: var(--g98d-deep);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.8rem;
}

/* ===== Desktop: hide bottom nav ===== */
@media (min-width: 769px) {
  .g98d-bottom-nav { display: none; }
  body { max-width: 430px; }
}

/* ===== Mobile: padding for bottom nav clearance ===== */
@media (max-width: 768px) {
  main { padding-bottom: 8rem; }
}

/* ===== Utility ===== */
.g98d-text-link {
  color: var(--g98d-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--g98d-soft);
}
.g98d-text-link:active { color: var(--g98d-soft); }
.g98d-center { text-align: center; }
.g98d-muted { color: var(--g98d-muted); }
