/* gamezone online games - core base stylesheet
   All custom classes use the g4ed- prefix for namespace isolation.
   Palette: #B8860B | #FF8C00 | #4B0082 | #CCCCCC | #2C3E50 | #DDA0DD */

:root {
  --g4ed-primary: #B8860B;     /* dark goldenrod - brand accent */
  --g4ed-secondary: #FF8C00;   /* dark orange - CTA */
  --g4ed-deep: #4B0082;        /* indigo - highlights */
  --g4ed-muted: #CCCCCC;       /* light gray - borders/muted */
  --g4ed-bg: #2C3E50;          /* dark slate - backgrounds */
  --g4ed-soft: #DDA0DD;        /* plum - secondary accents */
  --g4ed-text: #FFFFFF;
  --g4ed-text-dim: #E8E8F0;
  --g4ed-bg-alt: #1F2A38;
  --g4ed-radius: 12px;
  --g4ed-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: linear-gradient(160deg, var(--g4ed-bg) 0%, var(--g4ed-bg-alt) 100%);
  color: var(--g4ed-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
}

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

a { color: var(--g4ed-soft); text-decoration: none; }
a:hover { color: var(--g4ed-secondary); }

.g4ed-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.g4ed-wrapper { padding-top: 6.4rem; padding-bottom: 2rem; }

/* ---------- Header ---------- */
.g4ed-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(31, 42, 56, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--g4ed-primary);
  box-shadow: var(--g4ed-shadow);
}

.g4ed-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.g4ed-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.g4ed-brand img {
  width: 28px; height: 28px;
  border-radius: 6px;
}

.g4ed-brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--g4ed-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g4ed-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g4ed-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  min-height: 36px;
}

.g4ed-btn:hover { transform: translateY(-1px); opacity: 0.95; }
.g4ed-btn:active { transform: scale(0.97); }

.g4ed-btn-primary {
  background: linear-gradient(135deg, var(--g4ed-secondary), var(--g4ed-primary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.35);
}

.g4ed-btn-outline {
  background: transparent;
  color: var(--g4ed-text);
  border: 1.5px solid var(--g4ed-soft);
}

.g4ed-btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1.4rem;
}

.g4ed-icon-btn {
  background: transparent;
  border: none;
  color: var(--g4ed-text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
}

/* ---------- Mobile menu ---------- */
.g4ed-mobile-menu {
  display: none;
  position: fixed;
  top: 6rem; left: 0; right: 0;
  z-index: 9999;
  background: var(--g4ed-bg-alt);
  border-bottom: 2px solid var(--g4ed-deep);
  padding: 1rem 1.2rem;
  box-shadow: var(--g4ed-shadow);
}

.g4ed-mobile-menu.g4ed-menu-open { display: block; }

.g4ed-mobile-menu a {
  display: block;
  padding: 0.9rem 0.5rem;
  color: var(--g4ed-text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.35rem;
}
.g4ed-mobile-menu a:last-child { border-bottom: none; }

/* ---------- Carousel ---------- */
.g4ed-carousel {
  position: relative;
  border-radius: var(--g4ed-radius);
  overflow: hidden;
  box-shadow: var(--g4ed-shadow);
  margin: 1.2rem 0;
}

.g4ed-slide {
  display: none;
  position: relative;
  cursor: pointer;
}

.g4ed-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.g4ed-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  font-size: 1.4rem;
  font-weight: 600;
}

.g4ed-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.g4ed-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
}

.g4ed-dot.g4ed-dot-active { background: var(--g4ed-secondary); }

/* ---------- Section / headings ---------- */
.g4ed-section {
  margin: 2rem 0;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--g4ed-radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.g4ed-section-title {
  font-size: 1.7rem;
  margin: 0 0 1rem 0;
  color: var(--g4ed-secondary);
  border-left: 4px solid var(--g4ed-primary);
  padding-left: 0.8rem;
}

.g4ed-h1 {
  font-size: 2.1rem;
  line-height: 1.3;
  margin: 1.4rem 0;
  color: var(--g4ed-text);
}

.g4ed-text p {
  margin: 0 0 1rem;
  color: var(--g4ed-text-dim);
}

.g4ed-text strong { color: var(--g4ed-primary); }

.g4ed-text-link {
  color: var(--g4ed-secondary);
  font-weight: 600;
  text-decoration: underline;
}
.g4ed-text-link:hover { color: var(--g4ed-soft); }

/* ---------- Game grid ---------- */
.g4ed-cat-title {
  font-size: 1.5rem;
  margin: 1.6rem 0 0.8rem;
  color: var(--g4ed-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g4ed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.g4ed-game-card {
  background: var(--g4ed-bg-alt);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.g4ed-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.3);
}

.g4ed-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.g4ed-game-name {
  font-size: 1.1rem;
  color: var(--g4ed-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Feature / promo cards ---------- */
.g4ed-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.g4ed-card {
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.25), rgba(255, 140, 0, 0.08));
  border: 1px solid rgba(221, 160, 221, 0.25);
  border-radius: var(--g4ed-radius);
  padding: 1.2rem;
}

.g4ed-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--g4ed-primary);
}

.g4ed-card p {
  margin: 0;
  font-size: 1.3rem;
  color: var(--g4ed-text-dim);
}

/* ---------- Testimonial ---------- */
.g4ed-quote {
  border-left: 3px solid var(--g4ed-secondary);
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.8rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  font-size: 1.3rem;
  font-style: italic;
}

.g4ed-quote span { display: block; margin-top: 0.4rem; font-size: 1.15rem; color: var(--g4ed-soft); }

/* ---------- RTP table ---------- */
.g4ed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
}

.g4ed-table th, .g4ed-table td {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.g4ed-table th { color: var(--g4ed-primary); }

/* ---------- Winners ---------- */
.g4ed-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  font-size: 1.3rem;
}
.g4ed-winner b { color: var(--g4ed-secondary); }

/* ---------- Payment icons ---------- */
.g4ed-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.g4ed-pay {
  background: #fff;
  color: var(--g4ed-bg);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 1.15rem;
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.g4ed-faq-item {
  margin-bottom: 0.8rem;
  padding: 0.8rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}
.g4ed-faq-item h4 { margin: 0 0 0.4rem; font-size: 1.3rem; color: var(--g4ed-soft); }
.g4ed-faq-item p { margin: 0; font-size: 1.25rem; color: var(--g4ed-text-dim); }

/* ---------- CTA band ---------- */
.g4ed-cta {
  background: linear-gradient(135deg, var(--g4ed-deep), var(--g4ed-secondary));
  padding: 1.4rem;
  border-radius: var(--g4ed-radius);
  text-align: center;
  margin: 1.5rem 0;
}
.g4ed-cta h3 { margin: 0 0 0.5rem; color: #fff; font-size: 1.6rem; }
.g4ed-cta p { margin: 0 0 1rem; color: #fff; font-size: 1.3rem; }

/* ---------- Footer ---------- */
.g4ed-footer {
  background: var(--g4ed-bg-alt);
  border-top: 2px solid var(--g4ed-primary);
  padding: 2rem 1.2rem 9rem;
  margin-top: 2rem;
}

.g4ed-footer-brand {
  font-size: 1.3rem;
  color: var(--g4ed-text-dim);
  margin-bottom: 1rem;
}

.g4ed-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-bottom: 1.2rem;
}
.g4ed-footer-links a {
  color: var(--g4ed-text-dim);
  font-size: 1.2rem;
}
.g4ed-footer-links a:hover { color: var(--g4ed-secondary); }

.g4ed-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.g4ed-copyright {
  font-size: 1.1rem;
  color: var(--g4ed-muted);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
}

/* ---------- Mobile bottom navigation ---------- */
.g4ed-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(31, 42, 56, 0.98);
  border-top: 2px solid var(--g4ed-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.4);
}

.g4ed-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g4ed-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.g4ed-bottom-nav-btn .material-icons,
.g4ed-bottom-nav-btn ion-icon,
.g4ed-bottom-nav-btn i { font-size: 24px; }

.g4ed-bottom-nav-btn:active { transform: scale(0.92); }

.g4ed-bottom-nav-btn.g4ed-nav-active {
  color: var(--g4ed-secondary);
}

/* Desktop: hide bottom nav, expand content width */
@media (min-width: 769px) {
  .g4ed-bottom-nav { display: none; }
  .g4ed-container { max-width: 960px; }
  .g4ed-grid { grid-template-columns: repeat(6, 1fr); }
  .g4ed-cards { grid-template-columns: repeat(2, 1fr); }
  .g4ed-footer { padding-bottom: 2rem; }
}

/* Small phones */
@media (max-width: 430px) {
  .g4ed-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .g4ed-brand-name { font-size: 1.2rem; }
  .g4ed-h1 { font-size: 1.9rem; }
  body { font-size: 1.4rem; }
}

@media (max-width: 360px) {
  .g4ed-grid { grid-template-columns: repeat(2, 1fr); }
  .g4ed-btn { padding: 0.5rem 0.8rem; font-size: 1.15rem; }
}

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