/* =========================================================
   Scatter Game - style.css
   All custom classes use the g2c4- prefix.
   Palette: #FA8072 (salmon) | #FFEF94 (light gold)
            #E9967A (dark salmon) | #2E4057 (deep navy bg)
            #FF0000 (accent red)
   Mobile-first: max-width 430px primary layout.
   ========================================================= */

:root {
  --g2c4-bg: #2E4057;
  --g2c4-bg-2: #243345;
  --g2c4-bg-3: #1a2735;
  --g2c4-salmon: #FA8072;
  --g2c4-salmon-dark: #E9967A;
  --g2c4-gold: #FFEF94;
  --g2c4-red: #FF0000;
  --g2c4-text: #FFF6EE;
  --g2c4-text-dim: #c7d2df;
  --g2c4-card: #34506b;
  --g2c4-card-2: #3d5c7a;
  --g2c4-border: rgba(255, 239, 148, 0.18);
  --g2c4-radius: 14px;
  --g2c4-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
  --g2c4-header-h: 60px;
  --g2c4-nav-h: 62px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, system-ui, sans-serif;
  background: var(--g2c4-bg);
  background:
    radial-gradient(1100px 540px at 50% -10%, #3a526e 0%, var(--g2c4-bg) 60%),
    var(--g2c4-bg);
  color: var(--g2c4-text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--g2c4-gold); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.g2c4-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ============== Header ============== */
.g2c4-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--g2c4-header-h);
  z-index: 1000;
  background: linear-gradient(180deg, rgba(36,51,69,0.97) 0%, rgba(36,51,69,0.92) 100%);
  border-bottom: 1px solid var(--g2c4-border);
  backdrop-filter: blur(6px);
  transition: box-shadow .25s ease, background .25s ease;
}
.g2c4-header-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.g2c4-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.g2c4-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .3px;
}
.g2c4-logo img { width: 34px; height: 34px; border-radius: 8px; }
.g2c4-logo .g2c4-logo-mark {
  color: var(--g2c4-gold);
}
.g2c4-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.g2c4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  text-decoration: none;
  line-height: 1;
}
.g2c4-btn:hover { text-decoration: none; transform: translateY(-1px); }
.g2c4-btn:active { transform: translateY(0); }
.g2c4-btn-login {
  background: transparent;
  color: var(--g2c4-text);
  border: 1.5px solid var(--g2c4-salmon);
}
.g2c4-btn-login:hover { background: rgba(250,128,114,.15); color:#fff; }
.g2c4-btn-register {
  background: linear-gradient(135deg, var(--g2c4-salmon) 0%, var(--g2c4-red) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,0,0,.32);
}
.g2c4-btn-register:hover { filter: brightness(1.08); color:#fff; }
.g2c4-icon-btn {
  background: transparent;
  border: none;
  color: var(--g2c4-text);
  font-size: 22px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.g2c4-icon-btn:hover { background: rgba(255,255,255,.08); }

/* ============== Mobile slide-in menu ============== */
.g2c4-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.g2c4-overlay-show { opacity: 1; visibility: visible; }
.g2c4-mobile-menu {
  position: fixed;
  top: 0; left: -82%;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: var(--g2c4-bg-2);
  z-index: 9999;
  padding: 76px 18px 30px;
  overflow-y: auto;
  transition: left .28s ease;
  box-shadow: var(--g2c4-shadow);
}
.g2c4-menu-open { left: 0; }
.g2c4-menu-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.g2c4-mobile-menu h4 {
  color: var(--g2c4-gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 6px 8px;
}
.g2c4-mobile-menu a {
  display: block;
  padding: 11px 12px;
  color: var(--g2c4-text);
  border-radius: 10px;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.g2c4-mobile-menu a:hover {
  background: rgba(250,128,114,.15);
  text-decoration: none;
  color: #fff;
}

/* ============== Main / Hero ============== */
main { padding-top: calc(var(--g2c4-header-h) + 8px); }
@media (max-width: 768px) {
  main { padding-bottom: 82px; }
}
.g2c4-section { padding: 26px 0 8px; }
.g2c4-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.g2c4-section-title i { color: var(--g2c4-gold); }
.g2c4-section-sub {
  color: var(--g2c4-text-dim);
  font-size: 13px;
  margin-bottom: 14px;
}

.g2c4-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--g2c4-shadow);
  margin-top: 6px;
}
.g2c4-hero-slides { position: relative; }
.g2c4-hero-slide {
  display: none;
  position: relative;
  min-height: 200px;
  padding: 22px 18px 28px;
  background-size: cover;
  background-position: center;
}
.g2c4-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,30,42,.88) 0%, rgba(20,30,42,.45) 70%, rgba(20,30,42,.15) 100%);
}
.g2c4-slide-active { display: block; animation: g2c4-fade .6s ease; }
@keyframes g2c4-fade { from { opacity: .4; } to { opacity: 1; } }
.g2c4-hero-content { position: relative; z-index: 2; max-width: 86%; }
.g2c4-hero-tag {
  display: inline-block;
  background: var(--g2c4-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: .5px;
}
.g2c4-hero-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}
.g2c4-hero-title span { color: var(--g2c4-gold); }
.g2c4-hero-desc {
  font-size: 13px;
  color: var(--g2c4-text-dim);
  margin-bottom: 14px;
}
.g2c4-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--g2c4-gold), var(--g2c4-salmon-dark));
  color: #2a1d10;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}
.g2c4-hero-cta:hover { text-decoration: none; filter: brightness(1.05); color:#2a1d10; }
.g2c4-hero-dots {
  position: absolute;
  bottom: 10px; right: 14px;
  display: flex; gap: 6px;
  z-index: 3;
}
.g2c4-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer;
}
.g2c4-dot-active { background: var(--g2c4-gold); width: 22px; border-radius: 4px; }

/* ============== Stats strip ============== */
.g2c4-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.g2c4-stat {
  background: var(--g2c4-card);
  border: 1px solid var(--g2c4-border);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
}
.g2c4-stat-num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--g2c4-gold);
}
.g2c4-stat-label {
  display: block;
  font-size: 11px;
  color: var(--g2c4-text-dim);
  margin-top: 2px;
}

/* ============== Category filter ============== */
.g2c4-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.g2c4-filter::-webkit-scrollbar { display: none; }
.g2c4-filter-tab {
  flex: 0 0 auto;
  background: var(--g2c4-card);
  color: var(--g2c4-text);
  border: 1px solid var(--g2c4-border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.g2c4-filter-active {
  background: linear-gradient(135deg, var(--g2c4-salmon), var(--g2c4-red));
  color: #fff;
  border-color: transparent;
}

/* ============== Game grid / cards ============== */
.g2c4-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.g2c4-card {
  background: var(--g2c4-card);
  border: 1px solid var(--g2c4-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.g2c4-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--g2c4-shadow);
}
.g2c4-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0f1822;
}
.g2c4-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.g2c4-card-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--g2c4-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}
.g2c4-card-badge.hot { background: linear-gradient(135deg,#ff512f,#ff0000); }
.g2c4-card-badge.new { background: linear-gradient(135deg,#43e97b,#38f9d7); color:#063; }
.g2c4-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,24,34,.55);
  opacity: 0;
  transition: opacity .2s ease;
}
.g2c4-card:hover .g2c4-card-play { opacity: 1; }
.g2c4-card-play span {
  background: var(--g2c4-gold);
  color: #2a1d10;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
}
.g2c4-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--g2c4-text);
  padding: 7px 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Featured two-column highlight cards */
.g2c4-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.g2c4-feature-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 130px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  border: 1px solid var(--g2c4-border);
}
.g2c4-feature-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,24,34,.88) 10%, rgba(15,24,34,.15) 80%);
}
.g2c4-feature-card > div { position: relative; z-index: 2; }
.g2c4-feature-card h3 { font-size: 15px; color: #fff; margin-bottom: 4px; }
.g2c4-feature-card p { font-size: 11px; color: var(--g2c4-text-dim); margin-bottom: 8px; }
.g2c4-feature-card .g2c4-mini-btn {
  display: inline-block;
  background: var(--g2c4-salmon);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ============== Promo banner block ============== */
.g2c4-promo {
  background: linear-gradient(135deg, #3a1d1d 0%, #5a2424 100%);
  border: 1px solid var(--g2c4-red);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.g2c4-promo::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,239,148,.25), transparent 70%);
}
.g2c4-promo h3 { color: var(--g2c4-gold); font-size: 19px; margin-bottom: 6px; }
.g2c4-promo p { color: var(--g2c4-text-dim); font-size: 13px; margin-bottom: 14px; }
.g2c4-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g2c4-gold), var(--g2c4-salmon));
  color: #2a1d10;
  font-weight: 800;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 14px;
}
.g2c4-promo-btn:hover { text-decoration: none; filter: brightness(1.06); color:#2a1d10; }

/* ============== SEO article ============== */
.g2c4-article {
  background: var(--g2c4-bg-2);
  border: 1px solid var(--g2c4-border);
  border-radius: 14px;
  padding: 18px 16px;
  margin-top: 6px;
}
.g2c4-article h2 {
  color: var(--g2c4-gold);
  font-size: 18px;
  margin: 18px 0 8px;
}
.g2c4-article h2:first-child { margin-top: 0; }
.g2c4-article h3 {
  color: var(--g2c4-salmon-dark);
  font-size: 15px;
  margin: 14px 0 6px;
}
.g2c4-article p {
  color: var(--g2c4-text-dim);
  font-size: 14px;
  margin-bottom: 10px;
}
.g2c4-article ul { padding-left: 18px; margin-bottom: 12px; }
.g2c4-article ul li {
  color: var(--g2c4-text-dim);
  font-size: 13px;
  margin-bottom: 5px;
  list-style: disc;
}
.g2c4-article a { color: var(--g2c4-salmon-dark); text-decoration: underline; }

/* ============== FAQ ============== */
.g2c4-faq-item {
  background: var(--g2c4-card);
  border: 1px solid var(--g2c4-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.g2c4-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 13px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.g2c4-faq-q .g2c4-faq-icon { color: var(--g2c4-gold); transition: transform .2s ease; }
.g2c4-faq-open .g2c4-faq-icon { transform: rotate(45deg); }
.g2c4-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 14px;
  color: var(--g2c4-text-dim);
  font-size: 13px;
}
.g2c4-faq-open .g2c4-faq-a {
  max-height: 360px;
  padding: 0 14px 14px;
}

/* ============== Footer ============== */
.g2c4-footer {
  background: var(--g2c4-bg-3);
  border-top: 1px solid var(--g2c4-border);
  padding: 24px 0 12px;
  margin-top: 26px;
}
.g2c4-footer h4 {
  color: var(--g2c4-gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 16px 0 8px;
}
.g2c4-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.g2c4-footer-links a {
  color: var(--g2c4-text-dim);
  font-size: 13px;
}
.g2c4-footer-links a:hover { color: var(--g2c4-salmon); }
.g2c4-footer p {
  color: var(--g2c4-text-dim);
  font-size: 12px;
  margin-top: 6px;
}
.g2c4-footer-disclaimer {
  background: rgba(0,0,0,.22);
  border-radius: 10px;
  padding: 12px;
  margin-top: 14px;
  font-size: 11px;
  color: #8da0b3;
  line-height: 1.6;
}
.g2c4-footer-bottom {
  text-align: center;
  font-size: 11px;
  color: #6c8094;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ============== Back to top ============== */
.g2c4-top-btn {
  position: fixed;
  right: 14px;
  bottom: calc(var(--g2c4-nav-h) + 14px);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--g2c4-salmon);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 900;
  box-shadow: var(--g2c4-shadow);
}
.g2c4-top-show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============== Mobile bottom nav ============== */
.g2c4-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--g2c4-nav-h);
  background: linear-gradient(180deg, rgba(36,51,69,.98), rgba(26,39,53,.99));
  border-top: 1px solid var(--g2c4-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.g2c4-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--g2c4-text-dim);
  font-size: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
  position: relative;
}
.g2c4-nav-btn i { font-size: 22px; }
.g2c4-nav-btn:hover { color: #fff; text-decoration: none; transform: translateY(-1px); }
.g2c4-nav-current { color: var(--g2c4-gold); }
.g2c4-nav-current::before {
  content: "";
  position: absolute;
  top: 0;
  width: 26px; height: 3px;
  background: var(--g2c4-gold);
  border-radius: 0 0 4px 4px;
}
.g2c4-nav-promo {
  background: linear-gradient(135deg, var(--g2c4-salmon), var(--g2c4-red));
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  margin-top: -22px;
  box-shadow: 0 4px 12px rgba(255,0,0,.4);
  border: 3px solid var(--g2c4-bg-2);
}
.g2c4-nav-promo i { font-size: 22px; }
.g2c4-nav-promo span { display: none; }

/* ============== Desktop ============== */
@media (min-width: 769px) {
  .g2c4-bottom-nav { display: none; }
  .g2c4-wrap, .g2c4-header-inner { max-width: 960px; }
  .g2c4-grid { grid-template-columns: repeat(6, 1fr); }
  .g2c4-feature { grid-template-columns: repeat(4, 1fr); }
  .g2c4-stats { grid-template-columns: repeat(4, 1fr); max-width: 760px; }
}
