/* Social Games page */
.sg-page {
  background: #f8f6f0;
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
}

.sg-hero {
  background: linear-gradient(135deg, #1a2e3b 0%, #3d1a2e 50%, #2d5a3d 100%);
  color: white;
  padding: 120px 24px 70px;
  text-align: center;
}

.sg-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 12px;
  font-weight: 800;
}

.sg-hero p {
  opacity: 0.85;
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

.sg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.sg-notice {
  max-width: 900px;
  margin: -30px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.sg-notice-inner {
  background: #fff8e6;
  border: 1px solid #f0d080;
  border-left: 4px solid #e8705a;
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 14px;
  color: #5a4a2a;
  line-height: 1.65;
}

.sg-notice-inner strong {
  color: #c0392b;
}

.sg-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.sg-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.sg-section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #1a2e3b;
  font-weight: 800;
  margin-bottom: 10px;
}

.sg-section-header p {
  color: #6b7c6b;
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Game cards */
.sg-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.sg-game-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}

.sg-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.sg-game-thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.sg-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #c0392b;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.sg-game-body {
  padding: 22px;
}

.sg-game-body h3 {
  font-size: 1.15rem;
  color: #1a2e3b;
  margin-bottom: 8px;
}

.sg-game-body p {
  font-size: 0.88rem;
  color: #6b7c6b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.sg-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #00a86b;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.sg-play-btn:hover {
  background: #007a4d;
  transform: translateY(-1px);
}

/* Game iframe modal */
.sg-game-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  flex-direction: column;
}

.sg-game-modal.open {
  display: flex;
}

.sg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #1a2e3b;
  color: white;
  flex-shrink: 0;
}

.sg-modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.sg-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.sg-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sg-modal-frame-wrap {
  flex: 1;
  position: relative;
  min-height: 0;
}

.sg-modal-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* FAQ */
.sg-faq {
  background: white;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.sg-faq-item {
  border-bottom: 1px solid #eee;
}

.sg-faq-item:last-child {
  border-bottom: none;
}

.sg-faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a2e3b;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.sg-faq-q::after {
  content: '+';
  font-size: 20px;
  color: #00a86b;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.sg-faq-item.open .sg-faq-q::after {
  transform: rotate(45deg);
}

.sg-faq-a {
  display: none;
  padding: 0 0 18px;
  font-size: 14px;
  color: #3a3a4a;
  line-height: 1.75;
}

.sg-faq-item.open .sg-faq-a {
  display: block;
}

/* Contact form on social games */
.sg-form-section {
  background: linear-gradient(135deg, #f0faf5 0%, #e8f4fd 100%);
  padding: 60px 24px;
}

.sg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* Age gate */
.sg-age-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sg-age-gate.show {
  display: flex;
}

.sg-age-box {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.sg-age-box h2 {
  font-size: 1.5rem;
  color: #1a2e3b;
  margin-bottom: 12px;
}

.sg-age-box p {
  font-size: 14px;
  color: #6b7c6b;
  line-height: 1.65;
  margin-bottom: 24px;
}

.sg-age-btns {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.sg-age-yes {
  padding: 14px;
  background: #00a86b;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.sg-age-no {
  padding: 12px;
  background: transparent;
  color: #999;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

/* Unique social games footer */
.sg-footer {
  background: #0f1923;
  color: white;
  padding: 50px 24px 30px;
}

.sg-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.sg-footer-disclaimer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 36px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}

.sg-footer-disclaimer strong {
  color: #e8705a;
}

.sg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.sg-footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 14px;
}

.sg-footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.sg-footer-col a:hover {
  color: #6ee7b7;
}

.sg-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.sg-footer-badges a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 16px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.sg-footer-badges a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sg-age-badge,
.sg-18-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #c0392b;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.sg-rg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 16px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.sg-footer-links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
}

.sg-footer-links-inline a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 13px;
}

.sg-footer-links-inline a:hover {
  color: #6ee7b7;
}

.sg-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  line-height: 1.7;
}

/* Intro section */
.sg-intro-section {
  background: white;
  border-radius: 0;
}

.sg-intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.sg-intro-text,
.sg-intro-stats {
  min-width: 0;
}

.sg-intro-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #1a2e3b;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}

.sg-intro-text p {
  color: #6b7c6b;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.sg-intro-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.sg-intro-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #3a3a4a;
}

.sg-intro-list li::before {
  content: '✓';
  color: #00a86b;
  font-weight: 700;
  flex-shrink: 0;
}

.sg-intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sg-stat-card {
  background: #f0faf5;
  border: 1px solid rgba(0, 168, 107, 0.15);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
}

.sg-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #00a86b;
  line-height: 1;
  margin-bottom: 6px;
}

.sg-stat-label {
  font-size: 12px;
  color: #6b7c6b;
  line-height: 1.4;
}

/* How it works */
.sg-how-section {
  background: var(--cream, #fafaf7);
}

.sg-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.sg-step {
  background: white;
  border-radius: 16px;
  padding: 28px 22px;
  border: 1px solid #eee;
  position: relative;
}

.sg-step-num {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #00a86b, #007a4d);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}

.sg-step h3 {
  font-size: 1rem;
  color: #1a2e3b;
  font-weight: 700;
  margin-bottom: 8px;
}

.sg-step p {
  font-size: 13px;
  color: #6b7c6b;
  line-height: 1.65;
}

/* Game tags */
.sg-game-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sg-game-tags li {
  font-size: 11px;
  font-weight: 600;
  color: #007a4d;
  background: #e8faf2;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Features */
.sg-features-section {
  background: linear-gradient(135deg, #f0faf5 0%, #e8f4fd 100%);
}

.sg-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.sg-feature {
  background: white;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.sg-feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.sg-feature h3 {
  font-size: 1rem;
  color: #1a2e3b;
  font-weight: 700;
  margin-bottom: 8px;
}

.sg-feature p {
  font-size: 13px;
  color: #6b7c6b;
  line-height: 1.65;
}

/* ── Mobile & tablet ── */
@media (max-width: 991px) {
  .sg-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sg-intro-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sg-hero {
    padding: 100px 20px 50px;
  }

  .sg-hero p {
    font-size: 15px;
  }

  .sg-notice {
    padding: 0 16px;
    margin-top: -20px;
  }

  .sg-notice-inner {
    padding: 14px 16px;
    font-size: 13px;
  }

  .sg-section {
    padding: 40px 16px;
  }

  .sg-form-section {
    padding: 40px 16px;
  }

  .sg-form-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sg-games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sg-features-grid {
    grid-template-columns: 1fr;
  }

  .sg-steps {
    grid-template-columns: 1fr;
  }

  .sg-faq {
    padding: 20px 16px;
  }

  .sg-faq-q {
    font-size: 14px;
    padding: 14px 0;
  }

  .sg-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sg-footer-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .sg-footer-badges a {
    justify-content: center;
    text-align: center;
  }

  .sg-footer-disclaimer {
    padding: 16px;
    font-size: 12px;
  }

  .sg-age-box {
    padding: 28px 20px;
  }

  .sg-page .form-row {
    grid-template-columns: 1fr;
  }

  .sg-page .form-card {
    padding: 24px 18px;
  }
}

@media (max-width: 480px) {
  .sg-intro-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .sg-stat-card {
    padding: 16px 10px;
  }

  .sg-stat-num {
    font-size: 1.6rem;
  }

  .sg-stat-label {
    font-size: 11px;
  }

  .sg-game-body p {
    font-size: 0.85rem;
  }
}
