/* ============================================================
 * sv888.homes - shared site styles
 * All custom classes use the g7e4- prefix.
 * Palette: #2E4057 #5D5D5D #FFE4B5 #FFD700 #F8F8FF
 * Mobile-first; root font 62.5% so 1rem = 10px.
 * ============================================================ */

:root {
  --g7e4-primary: #FFD700;
  --g7e4-primary-soft: #FFE4B5;
  --g7e4-bg: #2E4057;
  --g7e4-bg-2: #243345;
  --g7e4-bg-3: #1a2632;
  --g7e4-muted: #5D5D5D;
  --g7e4-text: #F8F8FF;
  --g7e4-text-dim: #c7d0da;
  --g7e4-accent: #FFB300;
  --g7e4-danger: #e05260;
  --g7e4-success: #2ecc71;
  --g7e4-radius: 1.2rem;
  --g7e4-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.35);
  --g7e4-maxw: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Be Vietnam Pro", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  background: radial-gradient(circle at top, #34495e 0%, var(--g7e4-bg) 45%, var(--g7e4-bg-3) 100%);
  color: var(--g7e4-text); line-height: 1.5rem; font-size: 1.5rem; min-height: 100vh; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--g7e4-primary); text-decoration: none; }
ul { list-style: none; }
.g7e4-wrapper { width: 100%; max-width: var(--g7e4-maxw); margin: 0 auto; position: relative; }
.g7e4-container { width: 100%; padding: 0 1.2rem; }
main.g7e4-main { padding-top: 6.2rem; padding-bottom: 8.4rem; }

/* ---------- Header ---------- */
.g7e4-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(26,38,50,0.96), rgba(46,64,87,0.92));
  backdrop-filter: blur(8px);
  border-bottom: 0.2rem solid rgba(255,215,0,0.35);
  box-shadow: var(--g7e4-shadow);
}
.g7e4-header-inner {
  max-width: var(--g7e4-maxw); margin: 0 auto; height: 6rem;
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.2rem;
}
.g7e4-brand { display: flex; align-items: center; gap: 0.8rem; color: var(--g7e4-text); }
.g7e4-brand-logo {
  width: 3.2rem; height: 3.2rem; border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--g7e4-primary), var(--g7e4-accent));
  display: flex; align-items: center; justify-content: center;
  color: var(--g7e4-bg-3); font-weight: 900; font-size: 1.6rem;
  box-shadow: 0 0 1rem rgba(255,215,0,0.5);
}
.g7e4-brand-name {
  font-size: 2rem; font-weight: 800; letter-spacing: 0.05rem;
  background: linear-gradient(90deg, var(--g7e4-primary), var(--g7e4-primary-soft));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.g7e4-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g7e4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 4rem; padding: 0 1.4rem; border-radius: 1rem;
  font-weight: 700; font-size: 1.4rem; border: 0.2rem solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease; font-family: inherit;
}
.g7e4-btn:active { transform: scale(0.96); }
.g7e4-btn-primary {
  background: linear-gradient(135deg, var(--g7e4-primary), var(--g7e4-accent));
  color: var(--g7e4-bg-3); box-shadow: 0 0.4rem 1rem rgba(255,179,0,0.45);
}
.g7e4-btn-ghost { background: rgba(248,248,255,0.08); color: var(--g7e4-text); border-color: rgba(255,215,0,0.5); }
.g7e4-btn-block { width: 100%; }
.g7e4-menu-toggle {
  background: transparent; border: 0; color: var(--g7e4-text);
  width: 4rem; height: 4rem; font-size: 2.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 0.8rem;
}

/* ---------- Mobile slide-down menu ---------- */
.g7e4-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 9998;
}
.g7e4-overlay-show { opacity: 1; pointer-events: auto; }
.g7e4-mobile-menu {
  position: fixed; top: 6rem; left: 0; right: 0;
  background: linear-gradient(180deg, var(--g7e4-bg-2), var(--g7e4-bg-3));
  border-bottom: 0.2rem solid rgba(255,215,0,0.3);
  max-height: 0; overflow: hidden; transition: max-height 0.32s ease; z-index: 9999;
}
.g7e4-mobile-menu.g7e4-menu-open { max-height: 70vh; overflow-y: auto; }
.g7e4-mobile-menu ul { padding: 1rem 1.2rem 1.6rem; }
.g7e4-mobile-menu li { margin: 0.2rem 0; }
.g7e4-mobile-menu a {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1rem;
  color: var(--g7e4-text); border-radius: 0.9rem; font-size: 1.5rem; font-weight: 600;
  border: 0.1rem solid transparent;
}
.g7e4-mobile-menu a:active, .g7e4-mobile-menu a:hover { background: rgba(255,215,0,0.1); border-color: rgba(255,215,0,0.25); }
.g7e4-mobile-menu a i { width: 2.4rem; text-align: center; color: var(--g7e4-primary); }

/* ---------- Hero carousel ---------- */
.g7e4-carousel { position: relative; border-radius: var(--g7e4-radius); overflow: hidden; box-shadow: var(--g7e4-shadow); margin: 1.6rem 0; }
.g7e4-slides { position: relative; aspect-ratio: 16/9; }
.g7e4-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.g7e4-slide img { width: 100%; height: 100%; object-fit: cover; }
.g7e4-slide-active { opacity: 1; }
.g7e4-slide-caption {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  padding: 1.4rem 1rem 0.6rem; border-radius: 0 0 var(--g7e4-radius) var(--g7e4-radius);
}
.g7e4-slide-caption h2 { font-size: 1.7rem; color: var(--g7e4-primary-soft); margin-bottom: 0.3rem; }
.g7e4-slide-caption p { font-size: 1.3rem; color: var(--g7e4-text); }
.g7e4-carousel-dots { position: absolute; bottom: 1rem; right: 1.2rem; display: flex; gap: 0.5rem; z-index: 2; }
.g7e4-carousel-dot {
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: rgba(248,248,255,0.5); cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.g7e4-carousel-dot:active { transform: scale(1.2); }
.g7e4-dot-active { background: var(--g7e4-primary); }

/* ---------- Section / heading ---------- */
.g7e4-section { margin: 2.4rem 0; }
.g7e4-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.g7e4-section-title { font-size: 1.9rem; font-weight: 800; display: flex; align-items: center; gap: 0.7rem; color: var(--g7e4-primary-soft); }
.g7e4-section-title i { color: var(--g7e4-primary); }
.g7e4-section-more { font-size: 1.3rem; color: var(--g7e4-primary); }
.g7e4-h1 {
  font-size: 2.4rem; line-height: 1.25; margin: 0.4rem 0 1rem;
  background: linear-gradient(90deg, var(--g7e4-primary), var(--g7e4-primary-soft));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.g7e4-subtitle { color: var(--g7e4-text-dim); font-size: 1.4rem; margin-bottom: 1.4rem; }

/* ---------- Game shelves ---------- */
.g7e4-shelf { margin-bottom: 2rem; }
.g7e4-shelf-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.g7e4-shelf-badge {
  font-size: 1.2rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 0.7rem;
  background: rgba(255,215,0,0.16); color: var(--g7e4-primary); border: 0.1rem solid rgba(255,215,0,0.35);
}
.g7e4-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.g7e4-tile {
  background: linear-gradient(180deg, rgba(248,248,255,0.06), rgba(248,248,255,0.02));
  border: 0.1rem solid rgba(255,215,0,0.15); border-radius: 1rem;
  padding: 0.8rem 0.5rem; text-align: center; cursor: pointer; min-height: 4.4rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.g7e4-tile:hover, .g7e4-tile:focus {
  transform: translateY(-0.2rem); border-color: var(--g7e4-primary);
  box-shadow: 0 0.4rem 1rem rgba(255,215,0,0.18);
}
.g7e4-tile-img {
  width: 5.4rem; height: 5.4rem; border-radius: 0.9rem; object-fit: cover;
  margin: 0 auto 0.5rem; border: 0.15rem solid rgba(255,215,0,0.3);
}
.g7e4-tile-name {
  font-size: 1.15rem; line-height: 1.25; color: var(--g7e4-text); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.9rem;
}

/* ---------- Generic cards / panels ---------- */
.g7e4-card {
  background: linear-gradient(180deg, rgba(248,248,255,0.07), rgba(248,248,255,0.03));
  border: 0.1rem solid rgba(255,215,0,0.18); border-radius: var(--g7e4-radius);
  padding: 1.6rem; box-shadow: var(--g7e4-shadow); margin-bottom: 1.4rem;
}
.g7e4-card h2, .g7e4-card h3 { color: var(--g7e4-primary-soft); margin-bottom: 0.6rem; }
.g7e4-card h2 { font-size: 1.8rem; }
.g7e4-card h3 { font-size: 1.55rem; }
.g7e4-card p { margin-bottom: 0.8rem; color: var(--g7e4-text); }
.g7e4-card ul { padding-left: 1.4rem; }
.g7e4-card li { margin-bottom: 0.5rem; list-style: disc; color: var(--g7e4-text-dim); }

/* ---------- Promo CTA banner ---------- */
.g7e4-cta {
  background: linear-gradient(135deg, var(--g7e4-bg-2), var(--g7e4-bg-3));
  border: 0.15rem solid var(--g7e4-primary); border-radius: var(--g7e4-radius);
  padding: 2rem 1.6rem; text-align: center; margin: 2rem 0;
  box-shadow: 0 0 1.4rem rgba(255,215,0,0.22);
}
.g7e4-cta h2 { color: var(--g7e4-primary); font-size: 2rem; margin-bottom: 0.6rem; }
.g7e4-cta p { color: var(--g7e4-text-dim); margin-bottom: 1.4rem; }

/* ---------- Feature grid ---------- */
.g7e4-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.g7e4-feature {
  background: rgba(248,248,255,0.05); border: 0.1rem solid rgba(255,215,0,0.15);
  border-radius: 1rem; padding: 1.3rem; text-align: center;
}
.g7e4-feature .material-icons, .g7e4-feature i { font-size: 2.6rem; color: var(--g7e4-primary); margin-bottom: 0.5rem; }
.g7e4-feature h3 { font-size: 1.4rem; color: var(--g7e4-text); margin-bottom: 0.3rem; }
.g7e4-feature p { font-size: 1.2rem; color: var(--g7e4-text-dim); margin: 0; }

/* ---------- Testimonials ---------- */
.g7e4-testi {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(248,248,255,0.05); border-left: 0.3rem solid var(--g7e4-primary);
  border-radius: 0.8rem; padding: 1.1rem; margin-bottom: 1rem;
}
.g7e4-testi-avatar {
  width: 3.6rem; height: 3.6rem; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--g7e4-primary), var(--g7e4-accent));
  color: var(--g7e4-bg-3); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.g7e4-testi-name { font-weight: 700; color: var(--g7e4-primary-soft); font-size: 1.35rem; }
.g7e4-testi-text { color: var(--g7e4-text-dim); font-size: 1.25rem; margin-top: 0.2rem; }

/* ---------- Payment / winners rows ---------- */
.g7e4-chips { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.g7e4-chip {
  background: rgba(248,248,255,0.06); border: 0.1rem solid rgba(255,215,0,0.2);
  border-radius: 0.8rem; padding: 0.7rem 1rem; font-size: 1.25rem;
  color: var(--g7e4-text); display: flex; align-items: center; gap: 0.5rem;
}
.g7e4-winner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; background: rgba(248,248,255,0.04);
  border-radius: 0.7rem; margin-bottom: 0.6rem;
}
.g7e4-winner-name { font-weight: 700; color: var(--g7e4-text); font-size: 1.3rem; }
.g7e4-winner-amount { color: var(--g7e4-primary); font-weight: 800; font-size: 1.35rem; }
.g7e4-winner-game { font-size: 1.1rem; color: var(--g7e4-text-dim); }

/* ---------- App download ---------- */
.g7e4-app-cta {
  display: flex; align-items: center; gap: 1.2rem;
  background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(46,64,87,0.5));
  border: 0.1rem solid rgba(255,215,0,0.3); border-radius: var(--g7e4-radius); padding: 1.4rem;
}
.g7e4-app-icon { font-size: 3.4rem; color: var(--g7e4-primary); }
.g7e4-app-body h3 { color: var(--g7e4-primary-soft); font-size: 1.5rem; margin-bottom: 0.3rem; }
.g7e4-app-body p { color: var(--g7e4-text-dim); font-size: 1.25rem; margin: 0 0 0.8rem; }
.g7e4-app-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.g7e4-app-btns .g7e4-btn { min-height: 3.6rem; padding: 0 1.1rem; font-size: 1.25rem; }

/* ---------- Inline promo link ---------- */
.g7e4-link-promo { color: var(--g7e4-primary); font-weight: 700; border-bottom: 0.15rem dashed rgba(255,215,0,0.6); cursor: pointer; }

/* ---------- Reveal animation ---------- */
.g7e4-reveal { opacity: 0; transform: translateY(1.6rem); transition: opacity 0.5s ease, transform 0.5s ease; }
.g7e4-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.g7e4-footer {
  background: linear-gradient(180deg, var(--g7e4-bg-3), #0e1620);
  border-top: 0.2rem solid rgba(255,215,0,0.3);
  padding: 2.4rem 1.2rem 9rem; margin-top: 2.4rem;
}
.g7e4-footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.g7e4-footer-desc { color: var(--g7e4-text-dim); font-size: 1.3rem; margin-bottom: 1.4rem; line-height: 1.6; }
.g7e4-footer-promos { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.6rem; }
.g7e4-footer-promos .g7e4-btn { flex: 1 1 calc(50% - 0.7rem); min-height: 3.6rem; font-size: 1.3rem; }
.g7e4-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1rem; margin-bottom: 1.4rem; }
.g7e4-footer-links a {
  color: var(--g7e4-text-dim); font-size: 1.25rem; padding: 0.4rem 0;
  display: flex; align-items: center; gap: 0.5rem;
}
.g7e4-footer-links a:active, .g7e4-footer-links a:hover { color: var(--g7e4-primary); }
.g7e4-footer-copy { border-top: 0.1rem solid rgba(248,248,255,0.1); padding-top: 1.2rem; font-size: 1.15rem; color: var(--g7e4-text-dim); text-align: center; }

/* ---------- Bottom navigation (mobile) ---------- */
.g7e4-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 6.4rem; z-index: 1000;
  background: linear-gradient(180deg, rgba(26,38,50,0.98), rgba(14,22,32,0.99));
  border-top: 0.15rem solid rgba(255,215,0,0.4);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -0.4rem 1.2rem rgba(0,0,0,0.4); backdrop-filter: blur(10px);
}
.g7e4-bottom-nav-btn {
  flex: 1; min-width: 6rem; min-height: 6rem; background: transparent; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  color: var(--g7e4-text-dim); cursor: pointer; font-family: inherit; position: relative;
  transition: color 0.2s ease, transform 0.15s ease;
}
.g7e4-bottom-nav-btn:active { transform: scale(0.92); }
.g7e4-bottom-nav-btn .g7e4-nav-icon { font-size: 2.4rem; line-height: 1; }
.g7e4-bottom-nav-btn .g7e4-nav-label { font-size: 1.05rem; font-weight: 600; }
.g7e4-bottom-nav-btn.g7e4-nav-active { color: var(--g7e4-primary); }
.g7e4-bottom-nav-btn.g7e4-nav-active::before {
  content: ''; position: absolute; top: 0; left: 30%; right: 30%;
  height: 0.25rem; border-radius: 0 0 0.5rem 0.5rem; background: var(--g7e4-primary);
}
.g7e4-nav-promo {
  background: linear-gradient(135deg, var(--g7e4-primary), var(--g7e4-accent));
  color: var(--g7e4-bg-3) !important; width: 4.8rem; height: 4.8rem; border-radius: 50%;
  margin-top: -1.6rem; box-shadow: 0 0.4rem 1rem rgba(255,179,0,0.5);
}
.g7e4-nav-promo .g7e4-nav-icon { font-size: 2.2rem; }
.g7e4-nav-promo .g7e4-nav-label { font-size: 1rem; margin-top: 0.1rem; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .g7e4-bottom-nav { display: none; }
  .g7e4-menu-toggle { display: none; }
  main.g7e4-main { padding-bottom: 3rem; }
  .g7e4-footer { padding-bottom: 3rem; }
}

/* ---------- Small screens fine-tune ---------- */
@media (max-width: 360px) {
  .g7e4-grid { grid-template-columns: repeat(2, 1fr); }
  .g7e4-h1 { font-size: 2.1rem; }
  .g7e4-footer-promos .g7e4-btn { flex: 1 1 100%; }
}
