/* =====================================================================
 * d9d9 game apk - layout-1c17.css
 * Palette: #F5DEB3 wheat | #141414 ink | #E6E6FA lavender
 *          #DDA0DD plum | #4B0082 indigo
 * Dark tones (#141414, #4B0082) anchor backgrounds.
 * Light tones (#F5DEB3, #E6E6FA, #DDA0DD) carry text and accents.
 * All custom classes share the g17c- prefix.
 * ===================================================================== */

:root {
  --g17c-ink: #141414;
  --g17c-indigo: #4B0082;
  --g17c-wheat: #F5DEB3;
  --g17c-lavender: #E6E6FA;
  --g17c-plum: #DDA0DD;
  --g17c-indigo-deep: #2d0050;
  --g17c-card: #1c1030;
  --g17c-card-2: #201445;
  --g17c-border: rgba(245, 222, 179, 0.18);
  --g17c-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --g17c-radius: 14px;
  --g17c-header-h: 60px;
  --g17c-bottomnav-h: 62px;
  --g17c-max: 430px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 20% 0%, #1f0c3a 0%, #141414 55%);
  color: var(--g17c-lavender);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
}

a {
  color: var(--g17c-wheat);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: var(--g17c-plum); }

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

h1, h2, h3, h4 {
  color: var(--g17c-wheat);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.8rem; }
p { margin: 0 0 1em; }

.g17c-wrap {
  width: 100%;
  max-width: var(--g17c-max);
  margin: 0 auto;
  padding: 0 14px;
}

/* ====================== Header ====================== */
.g17c-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.96), rgba(75, 0, 130, 0.96));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--g17c-border);
}
.g17c-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--g17c-header-h);
  padding: 0 14px;
  max-width: var(--g17c-max);
  margin: 0 auto;
}
.g17c-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--g17c-wheat);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.4px;
}
.g17c-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.g17c-brand small {
  display: block;
  font-size: 1.05rem;
  color: var(--g17c-plum);
  font-weight: 500;
  letter-spacing: 0;
}
.g17c-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.g17c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.g17c-btn:active { transform: scale(0.96); }
.g17c-btn-login {
  background: transparent;
  color: var(--g17c-wheat);
  border: 1px solid var(--g17c-wheat);
}
.g17c-btn-register {
  background: linear-gradient(135deg, var(--g17c-wheat), var(--g17c-plum));
  color: var(--g17c-ink);
  box-shadow: 0 4px 14px rgba(221, 160, 221, 0.35);
}
.g17c-menu-btn {
  background: transparent;
  border: 1px solid var(--g17c-border);
  color: var(--g17c-lavender);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ====================== Mobile menu drawer ====================== */
.g17c-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.g17c-backdrop-on {
  opacity: 1;
  pointer-events: auto;
}
.g17c-mobile-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(160deg, #1a0b33, #100719);
  border-left: 1px solid var(--g17c-border);
  z-index: 9999;
  padding: 22px 18px;
  transform: translateX(0);
  transition: right 0.3s ease;
  overflow-y: auto;
}
.g17c-menu-open { right: 0; }
.g17c-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.g17c-menu-title {
  color: var(--g17c-wheat);
  font-size: 1.7rem;
  font-weight: 700;
}
.g17c-menu-close {
  background: transparent;
  border: none;
  color: var(--g17c-plum);
  font-size: 1.8rem;
  cursor: pointer;
}
.g17c-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.g17c-menu-list li {
  border-bottom: 1px solid var(--g17c-border);
}
.g17c-menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 6px;
  color: var(--g17c-lavender);
  font-size: 1.5rem;
  font-weight: 600;
}
.g17c-menu-list a i { color: var(--g17c-plum); width: 22px; text-align: center; }
.g17c-menu-cta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ====================== Hero / Carousel ====================== */
.g17c-hero {
  position: relative;
  margin: 14px 0;
  border-radius: var(--g17c-radius);
  overflow: hidden;
  box-shadow: var(--g17c-shadow);
}
.g17c-hero-track { position: relative; }
.g17c-hero-slide {
  position: relative;
  display: none;
  min-height: 220px;
}
.g17c-slide-active { display: block; }
.g17c-hero-slide img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: brightness(0.7);
}
.g17c-hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px;
  background: linear-gradient(to top, rgba(20,20,20,0.95), rgba(20,20,20,0));
}
.g17c-hero-caption h2 {
  margin: 0 0 6px;
  color: var(--g17c-wheat);
  font-size: 2rem;
}
.g17c-hero-caption p {
  margin: 0 0 10px;
  color: var(--g17c-lavender);
  font-size: 1.3rem;
}
.g17c-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--g17c-plum), var(--g17c-indigo));
  color: var(--g17c-wheat);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
}
.g17c-hero-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 4;
}
.g17c-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 222, 179, 0.4);
  cursor: pointer;
}
.g17c-dot-active { background: var(--g17c-wheat); }

/* ====================== Marquee strip ====================== */
.g17c-marquee {
  background: linear-gradient(90deg, var(--g17c-indigo), var(--g17c-indigo-deep));
  color: var(--g17c-wheat);
  font-size: 1.25rem;
  padding: 7px 0;
  margin-bottom: 12px;
  overflow: hidden;
  white-space: nowrap;
  border-radius: 10px;
}
.g17c-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: g17c-marq 22s linear infinite;
}
@keyframes g17c-marq {
  to { transform: translateX(-100%); }
}

/* ====================== Stats row ====================== */
.g17c-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 18px;
}
.g17c-stat {
  background: var(--g17c-card);
  border: 1px solid var(--g17c-border);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
}
.g17c-stat-num {
  display: block;
  color: var(--g17c-wheat);
  font-size: 1.9rem;
  font-weight: 800;
}
.g17c-stat-label {
  display: block;
  color: var(--g17c-plum);
  font-size: 1.15rem;
  margin-top: 2px;
}

/* ====================== Section heading ====================== */
.g17c-section {
  margin: 22px 0;
}
.g17c-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.g17c-section-head h2 {
  margin: 0;
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.g17c-section-head h2 i { color: var(--g17c-plum); }
.g17c-section-link {
  font-size: 1.25rem;
  color: var(--g17c-plum);
  font-weight: 600;
}

/* ====================== Category tabs ====================== */
.g17c-cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.g17c-cat-tabs::-webkit-scrollbar { display: none; }
.g17c-cat-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--g17c-card);
  border: 1px solid var(--g17c-border);
  color: var(--g17c-lavender);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.g17c-cat-tab i { font-size: 1.4rem; color: var(--g17c-plum); }
.g17c-cat-tab-active {
  background: linear-gradient(135deg, var(--g17c-wheat), var(--g17c-plum));
  color: var(--g17c-ink);
  border-color: transparent;
}
.g17c-cat-tab-active i { color: var(--g17c-ink); }

/* ====================== Game grid ====================== */
.g17c-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.g17c-game-card {
  position: relative;
  background: var(--g17c-card);
  border: 1px solid var(--g17c-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.g17c-game-card:active {
  transform: scale(0.97);
}
.g17c-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.g17c-game-name {
  padding: 6px 8px;
  font-size: 1.15rem;
  color: var(--g17c-lavender);
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g17c-game-play {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(20, 20, 20, 0.7);
  color: var(--g17c-wheat);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.g17c-game-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, var(--g17c-plum), var(--g17c-indigo));
  color: var(--g17c-wheat);
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ====================== Featured / promo blocks ====================== */
.g17c-feature {
  background: linear-gradient(135deg, var(--g17c-card), var(--g17c-card-2));
  border: 1px solid var(--g17c-border);
  border-radius: var(--g17c-radius);
  padding: 16px;
  margin: 14px 0;
}
.g17c-feature h3 {
  color: var(--g17c-wheat);
  margin-top: 0;
}
.g17c-feature p {
  color: var(--g17c-lavender);
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.g17c-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--g17c-wheat), var(--g17c-plum));
  color: var(--g17c-ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.35rem;
}

.g17c-promo-banner {
  position: relative;
  border-radius: var(--g17c-radius);
  overflow: hidden;
  margin: 16px 0;
  box-shadow: var(--g17c-shadow);
}
.g17c-promo-banner img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.g17c-promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(75,0,130,0.7), rgba(20,20,20,0.4));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
}
.g17c-promo-overlay h3 {
  color: var(--g17c-wheat);
  margin: 0 0 6px;
}
.g17c-promo-overlay p {
  color: var(--g17c-lavender);
  margin: 0 0 10px;
  font-size: 1.25rem;
}

/* ====================== SEO content cards ====================== */
.g17c-content-card {
  background: var(--g17c-card);
  border: 1px solid var(--g17c-border);
  border-radius: var(--g17c-radius);
  padding: 16px;
  margin: 14px 0;
}
.g17c-content-card h2,
.g17c-content-card h3 {
  color: var(--g17c-wheat);
}
.g17c-content-card p,
.g17c-content-card li {
  color: var(--g17c-lavender);
  font-size: 1.38rem;
  line-height: 1.55;
}
.g17c-content-card ul,
.g17c-content-card ol {
  padding-left: 20px;
  margin: 0 0 1em;
}
.g17c-content-card a {
  color: var(--g17c-wheat);
  border-bottom: 1px dashed var(--g17c-plum);
}

/* ====================== Steps ====================== */
.g17c-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.g17c-steps li {
  position: relative;
  padding: 10px 10px 10px 44px;
  margin-bottom: 8px;
  background: var(--g17c-card-2);
  border: 1px solid var(--g17c-border);
  border-radius: 10px;
  color: var(--g17c-lavender);
  counter-increment: step;
  font-size: 1.35rem;
}
.g17c-steps li::before {
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g17c-wheat), var(--g17c-plum));
  color: var(--g17c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

/* ====================== FAQ ====================== */
.g17c-faq-item {
  background: var(--g17c-card);
  border: 1px solid var(--g17c-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.g17c-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: var(--g17c-wheat);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}
.g17c-faq-q .g17c-faq-icon {
  color: var(--g17c-plum);
  transition: transform 0.2s ease;
}
.g17c-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 16px;
  color: var(--g17c-lavender);
  font-size: 1.32rem;
}
.g17c-faq-open .g17c-faq-a {
  max-height: 360px;
  padding-bottom: 14px;
}
.g17c-faq-open .g17c-faq-icon { transform: rotate(45deg); }

/* ====================== Partners strip ====================== */
.g17c-partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 14px 0;
}
.g17c-partners img {
  width: 100%;
  background: var(--g17c-card);
  border-radius: 8px;
  padding: 4px;
  border: 1px solid var(--g17c-border);
}

/* ====================== Footer ====================== */
.g17c-footer {
  background: linear-gradient(180deg, #100719, #08030f);
  border-top: 1px solid var(--g17c-border);
  margin-top: 24px;
  padding: 24px 14px calc(var(--g17c-bottomnav-h) + 24px);
}
.g17c-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.g17c-footer h4 {
  color: var(--g17c-wheat);
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.g17c-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.g17c-footer li {
  margin-bottom: 5px;
}
.g17c-footer a {
  color: var(--g17c-lavender);
  font-size: 1.25rem;
}
.g17c-footer a:hover { color: var(--g17c-plum); }
.g17c-footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--g17c-border);
  text-align: center;
  color: var(--g17c-plum);
  font-size: 1.2rem;
}
.g17c-disclaimer {
  font-size: 1.15rem;
  color: rgba(230, 230, 250, 0.65);
  margin-top: 10px;
  line-height: 1.5;
}

/* ====================== Bottom nav ====================== */
.g17c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--g17c-bottomnav-h);
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(75, 0, 130, 0.98));
  border-top: 1px solid var(--g17c-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5);
}
.g17c-bottom-btn {
  flex: 1;
  min-width: 60px;
  min-height: var(--g17c-bottomnav-h);
  background: transparent;
  border: none;
  color: var(--g17c-lavender);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  font-family: inherit;
}
.g17c-bottom-btn i,
.g17c-bottom-btn span.material-icons-outlined {
  font-size: 22px;
}
.g17c-bottom-btn .ion {
  font-size: 22px;
}
.g17c-bottom-btn-active {
  color: var(--g17c-wheat);
}
.g17c-bottom-btn-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--g17c-wheat), var(--g17c-plum));
  border-radius: 0 0 6px 6px;
}
.g17c-bottom-promo {
  background: linear-gradient(135deg, var(--g17c-wheat), var(--g17c-plum));
  color: var(--g17c-ink);
  border-radius: 14px;
  padding: 4px 2px;
  margin-top: -18px;
  min-height: 50px;
  box-shadow: 0 4px 14px rgba(221, 160, 221, 0.4);
}

/* ====================== Back to top ====================== */
.g17c-to-top {
  position: fixed;
  right: 14px;
  bottom: calc(var(--g17c-bottomnav-h) + 14px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g17c-wheat), var(--g17c-plum));
  color: var(--g17c-ink);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
}
.g17c-to-top-show {
  opacity: 1;
  pointer-events: auto;
}

/* ====================== Main padding ====================== */
main {
  padding-bottom: 0;
}

/* ====================== Desktop / tablet ====================== */
@media (min-width: 768px) {
  body {
    background: radial-gradient(circle at 30% 0%, #2a1252 0%, #141414 60%);
  }
  .g17c-wrap,
  .g17c-header-row {
    max-width: 960px;
  }
  .g17c-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .g17c-partners {
    grid-template-columns: repeat(8, 1fr);
  }
  .g17c-footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }
  .g17c-bottom-nav {
    display: none;
  }
  .g17c-footer {
    padding-bottom: 24px;
  }
  .g17c-to-top {
    bottom: 22px;
  }
  .g17c-hero-slide img,
  .g17c-promo-banner img {
    height: 320px;
  }
}

@media (max-width: 768px) {
  main {
    padding-bottom: calc(var(--g17c-bottomnav-h) + 16px);
  }
}

/* Desktop header enrichment: keep the brand row aligned and balanced. */
@media (min-width: 430px) and (max-width: 767px) {
  .g17c-wrap,
  .g17c-header-row {
    max-width: 100%;
  }
}
