/* ace super - common stylesheet (basefiles) */
/* All class names use g3ec- prefix to avoid collisions */
:root {
  --g3ec-bg: #141414;
  --g3ec-bg-2: #1c1f26;
  --g3ec-bg-3: #232834;
  --g3ec-primary: #4169E1;
  --g3ec-orange: #FF4500;
  --g3ec-amber: #FF9500;
  --g3ec-sky: #00BFFF;
  --g3ec-muted: #999999;
  --g3ec-text: #f3f5fb;
  --g3ec-border: rgba(255, 255, 255, 0.08);
  --g3ec-radius: 14px;
  --g3ec-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--g3ec-bg);
  color: var(--g3ec-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--g3ec-sky); text-decoration: none; }

.g3ec-container { width: 100%; padding: 0 14px; }
.g3ec-wrapper { max-width: 430px; margin: 0 auto; }

/* ===== Header ===== */
.g3ec-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0f1116 0%, #1b2236 100%);
  border-bottom: 1px solid var(--g3ec-border);
  box-shadow: var(--g3ec-shadow);
}
.g3ec-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 12px;
}
.g3ec-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1.8rem;
}
.g3ec-logo img { width: 30px; height: 30px; border-radius: 6px; }
.g3ec-logo .g3ec-logo-accent { color: var(--g3ec-amber); }
.g3ec-header-actions { display: flex; align-items: center; gap: 8px; }
.g3ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.g3ec-btn:active { transform: scale(.96); }
.g3ec-btn-login { background: #fff; color: var(--g3ec-bg); }
.g3ec-btn-register { background: linear-gradient(135deg, var(--g3ec-orange), var(--g3ec-amber)); color: #fff; }
.g3ec-menu-btn {
  background: transparent;
  border: 1px solid var(--g3ec-border);
  color: #fff;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

/* ===== Mobile expandable menu ===== */
.g3ec-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 12, 18, .96);
  z-index: 9999;
  padding: 70px 18px 30px;
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
}
.g3ec-mobile-menu.g3ec-open { transform: translateX(0); }
.g3ec-mobile-menu .g3ec-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--g3ec-border);
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
}
.g3ec-mobile-menu h3 { color: var(--g3ec-amber); margin: 16px 0 8px; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .08em; }
.g3ec-mobile-menu ul { list-style: none; }
.g3ec-mobile-menu li a {
  display: block;
  padding: 12px 8px;
  border-bottom: 1px solid var(--g3ec-border);
  color: #eef2f8;
  font-size: 1.5rem;
}
.g3ec-mobile-menu li a:active { color: var(--g3ec-amber); }

/* ===== Hero / Carousel ===== */
.g3ec-hero { padding: 14px 0 6px; }
.g3ec-carousel {
  position: relative;
  border-radius: var(--g3ec-radius);
  overflow: hidden;
  box-shadow: var(--g3ec-shadow);
}
.g3ec-carousel-track { position: relative; height: 190px; }
.g3ec-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  cursor: pointer;
}
.g3ec-carousel-slide img { width: 100%; height: 190px; object-fit: cover; }
.g3ec-carousel-slide.g3ec-active { opacity: 1; }
.g3ec-carousel-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  color: #fff;
}
.g3ec-carousel-overlay span { font-size: 1.3rem; color: var(--g3ec-amber); font-weight: 700; }
.g3ec-carousel-overlay p { font-size: 1.6rem; font-weight: 700; }
.g3ec-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.g3ec-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.4);
}
.g3ec-carousel-dot.g3ec-active { background: var(--g3ec-amber); }

/* ===== Section titles ===== */
.g3ec-section { padding: 18px 0 4px; }
.g3ec-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.g3ec-section-head h2 {
  font-size: 1.8rem;
  color: #fff;
  position: relative;
  padding-left: 12px;
}
.g3ec-section-head h2::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 1.6rem;
  background: linear-gradient(var(--g3ec-orange), var(--g3ec-amber));
  border-radius: 4px;
  transform: translateY(-50%);
}
.g3ec-more { color: var(--g3ec-sky); font-size: 1.3rem; }

/* ===== Game grid ===== */
.g3ec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.g3ec-card {
  background: var(--g3ec-bg-2);
  border: 1px solid var(--g3ec-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.g3ec-card:active { transform: scale(.97); box-shadow: 0 0 0 2px var(--g3ec-amber); }
.g3ec-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0d1018;
}
.g3ec-card .g3ec-card-title {
  padding: 6px 8px;
  font-size: 1.15rem;
  color: #eef2f8;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Promo CTA banner ===== */
.g3ec-promo {
  background: linear-gradient(135deg, #2a1a3e 0%, #14324d 100%);
  border: 1px solid var(--g3ec-border);
  border-radius: var(--g3ec-radius);
  padding: 16px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.g3ec-promo .g3ec-promo-icon { font-size: 2.6rem; color: var(--g3ec-amber); }
.g3ec-promo-text { flex: 1; }
.g3ec-promo-text h3 { font-size: 1.6rem; color: #fff; margin-bottom: 4px; }
.g3ec-promo-text p { font-size: 1.25rem; color: var(--g3ec-muted); }
.g3ec-promo .g3ec-btn { white-space: nowrap; }

/* ===== Text content blocks ===== */
.g3ec-prose { font-size: 1.35rem; color: #d7dce6; line-height: 1.7; }
.g3ec-prose h2 { font-size: 1.7rem; color: #fff; margin: 14px 0 6px; }
.g3ec-prose h3 { font-size: 1.45rem; color: var(--g3ec-amber); margin: 12px 0 4px; }
.g3ec-prose p { margin-bottom: 10px; }
.g3ec-prose a { color: var(--g3ec-sky); border-bottom: 1px dashed rgba(0,191,255,.4); }
.g3ec-prose ul { padding-left: 18px; margin-bottom: 10px; }
.g3ec-prose li { margin-bottom: 4px; }

/* ===== Compact info cards / highlights ===== */
.g3ec-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.g3ec-info {
  background: var(--g3ec-bg-2);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--g3ec-border);
}
.g3ec-info .g3ec-info-icon { font-size: 2rem; color: var(--g3ec-sky); margin-bottom: 6px; }
.g3ec-info h3 { font-size: 1.35rem; color: #fff; margin-bottom: 4px; }
.g3ec-info p { font-size: 1.2rem; color: var(--g3ec-muted); line-height: 1.5; }

/* ===== Reveal animation ===== */
.g3ec-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.g3ec-reveal.g3ec-visible { opacity: 1; transform: none; }

/* ===== Footer ===== */
.g3ec-footer {
  background: #0b0d13;
  border-top: 1px solid var(--g3ec-border);
  padding: 22px 14px 92px;
  margin-top: 18px;
  font-size: 1.2rem;
  color: var(--g3ec-muted);
}
.g3ec-footer h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.g3ec-footer p { margin-bottom: 8px; line-height: 1.6; }
.g3ec-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  margin: 10px 0;
}
.g3ec-footer-links a { color: #cdd4e0; font-size: 1.25rem; padding: 4px 0; }
.g3ec-footer-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.g3ec-footer-btns .g3ec-btn { flex: 1 1 40%; }
.g3ec-footer-copy { border-top: 1px solid var(--g3ec-border); padding-top: 12px; margin-top: 10px; color: #6f7686; }

/* ===== Bottom nav ===== */
.g3ec-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #14181f, #0c0e14);
  border-top: 1px solid var(--g3ec-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
}
.g3ec-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: #9aa3b2;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  transition: color .15s ease, transform .15s ease;
}
.g3ec-nav-btn .g3ec-icon { font-size: 2.2rem; line-height: 1; }
.g3ec-nav-btn .g3ec-label { font-size: 1.05rem; }
.g3ec-nav-btn.g3ec-active { color: var(--g3ec-amber); }
.g3ec-nav-btn:active { transform: scale(.9); }
.g3ec-nav-btn.g3ec-promo-btn { color: var(--g3ec-sky); }

/* ===== Desktop: hide bottom nav ===== */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .g3ec-bottom-nav { display: none; }
  .g3ec-footer { padding-bottom: 28px; }
}
@media (min-width: 431px) and (max-width: 768px) {
  .g3ec-bottom-nav { display: flex; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
