/* ==========================================================================
   68win com app - theme stylesheet
   All custom classes use the g113- prefix to avoid collisions.
   Color palette: #48D1CC | #FFF8DC | #D4AF37 | #B0E0E6 | #212F3D
   ========================================================================== */

:root {
  --g113-primary: #48D1CC;
  --g113-accent: #D4AF37;
  --g113-soft: #FFF8DC;
  --g113-light: #B0E0E6;
  --g113-bg: #212F3D;
  --g113-bg-2: #1c2733;
  --g113-text: #FFF8DC;
  --g113-text-muted: #B0E0E6;
  --g113-card: #2a3848;
  --g113-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --g113-radius: 14px;
}

/* Root font sizing: 62.5% -> 1rem = 10px */
html { font-size: 62.5%; scroll-behavior: smooth; }

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--g113-bg);
  color: var(--g113-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.g113-container { width: 100%; padding: 0 1.2rem; }
.g113-wrapper { padding: 1.6rem 0; }

/* ===================== Header ===================== */
.g113-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1c2733 0%, #212F3D 100%);
  border-bottom: 2px solid var(--g113-accent);
  z-index: 1000;
  box-shadow: var(--g113-shadow);
}
.g113-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.6rem;
  padding: 0 1.2rem;
}
.g113-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--g113-soft);
  font-weight: 800;
  font-size: 1.6rem;
}
.g113-brand img { width: 2.8rem; height: 2.8rem; border-radius: 6px; }
.g113-brand span b { color: var(--g113-accent); }

.g113-head-actions { display: flex; align-items: center; gap: 0.6rem; }
.g113-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.7rem 1.3rem;
  border-radius: 30px;
  min-height: 36px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
  color: #fff;
}
.g113-btn:active { transform: scale(0.96); }
.g113-btn-register {
  background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
  color: #212F3D;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.35);
}
.g113-btn-login {
  background: linear-gradient(135deg, #48D1CC 0%, #2fa8a3 100%);
  box-shadow: 0 3px 10px rgba(72, 209, 204, 0.35);
}
.g113-icon-btn {
  background: transparent;
  border: none;
  color: var(--g113-soft);
  font-size: 2rem;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.g113-icon-btn:active { background: rgba(255, 255, 255, 0.08); }

/* ===================== Mobile menu drawer ===================== */
.g113-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--g113-bg-2);
  padding: 7rem 1.6rem 2rem;
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--g113-accent);
}
.g113-mobile-menu.g113-menu-open { right: 0; }
.g113-mobile-menu h3 {
  color: var(--g113-accent);
  font-size: 1.3rem;
  margin: 1rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.g113-mobile-menu a {
  display: block;
  padding: 0.9rem 0.6rem;
  color: var(--g113-soft);
  border-bottom: 1px solid rgba(176, 224, 230, 0.12);
  font-size: 1.35rem;
}
.g113-mobile-menu a:active { background: rgba(72, 209, 204, 0.1); }
.g113-menu-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  font-size: 2.2rem;
  color: var(--g113-soft);
  background: none; border: none; cursor: pointer;
}
.g113-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
}
.g113-mobile-menu.g113-menu-open ~ .g113-overlay { display: block; }

/* ===================== Hero slider ===================== */
main { padding-top: 6rem; }
.g113-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--g113-radius) var(--g113-radius);
  margin-bottom: 1.4rem;
}
.g113-hero-slide {
  display: none;
  position: relative;
  padding: 2.4rem 1.6rem 2rem;
  background: linear-gradient(135deg, #48D1CC 0%, #B0E0E6 60%, #FFF8DC 100%);
  color: #212F3D;
  min-height: 180px;
}
.g113-hero-slide.g113-slide-active { display: block; }
.g113-hero-slide h2 { font-size: 1.9rem; margin-bottom: 0.6rem; color: #212F3D; }
.g113-hero-slide p { font-size: 1.25rem; margin-bottom: 1.2rem; color: #1c2733; }
.g113-hero-cta {
  display: inline-block;
  background: var(--g113-accent);
  color: #212F3D;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.3rem;
}
.g113-hero-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
}
.g113-hero-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(33,47,61,0.4);
  margin: 0 3px;
  border: none; cursor: pointer;
}
.g113-hero-dot.g113-dot-active { background: #D4AF37; width: 20px; border-radius: 4px; }

/* ===================== Section / titles ===================== */
.g113-section { padding: 1.6rem 1.2rem; }
.g113-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.7rem;
  color: var(--g113-accent);
  margin-bottom: 1rem;
  border-left: 4px solid var(--g113-primary);
  padding-left: 0.8rem;
}

/* ===================== Filter tabs ===================== */
.g113-filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.g113-filter-btn {
  flex: 0 0 auto;
  background: var(--g113-card);
  color: var(--g113-soft);
  border: 1px solid rgba(72,209,204,0.2);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}
.g113-filter-btn.g113-filter-active {
  background: linear-gradient(135deg, #48D1CC, #D4AF37);
  color: #212F3D;
  border-color: transparent;
}

/* ===================== Game grid ===================== */
.g113-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.g113-game-card {
  background: var(--g113-card);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(176,224,230,0.1);
  box-shadow: var(--g113-shadow);
  transition: transform 0.15s;
  cursor: pointer;
}
.g113-game-card:active { transform: scale(0.97); }
.g113-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0f1620;
}
.g113-game-name {
  font-size: 1.05rem;
  padding: 0.4rem 0.3rem 0.6rem;
  color: var(--g113-soft);
  line-height: 1.25rem;
  min-height: 36px;
}
.g113-game-tag {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--g113-accent);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

/* ===================== Promo banner ===================== */
.g113-promo {
  background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
  border-radius: var(--g113-radius);
  padding: 1.6rem;
  margin: 1.2rem;
  color: #212F3D;
  text-align: center;
  box-shadow: var(--g113-shadow);
}
.g113-promo h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.g113-promo p { font-size: 1.2rem; margin-bottom: 1rem; color: #1c2733; }
.g113-promo .g113-btn { background: #212F3D; color: #D4AF37; }

/* ===================== SEO content ===================== */
.g113-seo {
  padding: 1.6rem 1.2rem;
  font-size: 1.25rem;
  color: var(--g113-text-muted);
}
.g113-seo h2 { color: var(--g113-soft); font-size: 1.7rem; margin: 1.2rem 0 0.6rem; }
.g113-seo h3 { color: var(--g113-primary); font-size: 1.35rem; margin: 1rem 0 0.4rem; }
.g113-seo p { margin-bottom: 0.8rem; }
.g113-seo a { color: var(--g113-accent); font-weight: 600; }
.g113-seo strong, .g113-seo b { color: var(--g113-soft); }

/* ===================== Footer ===================== */
.g113-footer {
  background: var(--g113-bg-2);
  border-top: 2px solid var(--g113-accent);
  padding: 2rem 1.2rem 9rem;
  color: var(--g113-text-muted);
  font-size: 1.15rem;
}
.g113-footer h4 { color: var(--g113-accent); font-size: 1.3rem; margin-bottom: 0.6rem; }
.g113-footer p { margin-bottom: 0.8rem; }
.g113-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.8rem;
  margin: 1rem 0;
}
.g113-footer-links a {
  color: var(--g113-soft);
  font-size: 1.1rem;
  padding: 0.3rem 0;
}
.g113-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: 1rem 0;
}
.g113-footer-promos .g113-btn { font-size: 1.15rem; padding: 0.6rem 1rem; }
.g113-footer-copy {
  border-top: 1px solid rgba(176,224,230,0.15);
  padding-top: 1rem;
  font-size: 1.05rem;
  color: var(--g113-text-muted);
  text-align: center;
}

/* ===================== Mobile bottom nav ===================== */
.g113-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: linear-gradient(180deg, #2a3848 0%, #1c2733 100%);
  border-top: 2px solid var(--g113-accent);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.4);
}
.g113-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--g113-text-muted);
  font-size: 1rem;
  text-decoration: none;
  min-width: 60px;
  min-height: 60px;
  gap: 2px;
  transition: color 0.15s;
}
.g113-bottom-nav a .g113-bn-icon { font-size: 2.1rem; line-height: 1; }
.g113-bottom-nav a.active { color: var(--g113-accent); }
.g113-bottom-nav a:active { color: var(--g113-primary); }
.g113-bottom-nav a span { font-size: 1rem; }

/* Back to top */
.g113-top-btn {
  position: fixed;
  right: 14px; bottom: 76px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--g113-accent);
  color: #212F3D;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--g113-shadow);
}

/* ===================== Desktop ===================== */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .g113-bottom-nav { display: none; }
  .g113-footer { padding-bottom: 2rem; }
}

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