/* Social Games — Brain Accord */
.social-top-notice {
  background: linear-gradient(90deg, #5538c8, #2ec4b6);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.social-top-notice a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.social-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.social-badge--accent {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.social-badge--warn {
  background: #fff4e5;
  border-color: #ffd39a;
  color: #9a5b00;
}

.social-notice {
  background: #fff8e6;
  border-bottom: 1px solid #f0d78c;
  padding: 16px 0;
}

.social-notice-inner {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.social-notice-inner strong { color: var(--ink); }

.social-charter {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-charter li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.social-charter li:hover {
  border-color: #d4cdf0;
  box-shadow: var(--shadow);
}

.social-charter h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.social-charter p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.social-home-band {
  background: linear-gradient(135deg, #ede9fe 0%, #e0f7f5 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.social-home-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.social-home-band > article p {
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 620px;
}

.social-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-home-rg {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.social-home-rg .btn {
  border-radius: 50px;
  font-weight: 700;
}

/* —— Game cards (hub) —— */
.social-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-games-grid > li {
  list-style: none;
  min-width: 0;
}

.social-game-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(30, 27, 46, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.social-game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(85, 56, 200, 0.16);
}

.social-game-card .game-card-img {
  position: relative;
  aspect-ratio: 16 / 11;
  margin: 0;
  overflow: hidden;
  background: #1e1b2e;
}

.social-game-card .game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.social-game-card:hover .game-card-img img {
  transform: scale(1.05);
}

.social-game-card .game-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(30, 27, 46, 0.55) 100%);
  pointer-events: none;
}

.game-tag-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(30, 27, 46, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}

.game-cost-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 50px;
}

.social-game-card .game-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.social-game-card .game-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.social-game-card .game-card-body > p:not(.game-tag):not(.social-game-meta) {
  flex: 1;
  margin-bottom: 16px;
}

.social-game-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--teal-dark);
  font-weight: 600;
  background: var(--teal-light);
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.social-game-card .btn {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
}

/* —— Play pages —— */
.social-game-layout {
  padding: 36px 0 64px;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(107, 78, 230, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(46, 196, 182, 0.08), transparent),
    var(--bg);
}

.social-game-layout .game-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.social-game-layout .game-header h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin-top: 4px;
}

.social-game-layout .game-lead {
  color: var(--ink-soft);
  max-width: 540px;
  margin-top: 8px;
  line-height: 1.55;
}

.credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fff, #f3efff);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.credits-chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9f1c, #6b4ee6);
  box-shadow: 0 0 0 3px rgba(107, 78, 230, 0.15);
}

.credits-chip b {
  color: var(--purple);
  font-variant-numeric: tabular-nums;
}

.social-play-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(30, 27, 46, 0.08);
  max-width: 720px;
  margin: 0 auto;
}

.social-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.social-toolbar .stat-pill {
  background: var(--purple-light);
  border-radius: 50px;
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.social-toolbar .stat-pill b { color: var(--purple); }

.social-toolbar .btn {
  border-radius: 12px;
}

.social-toolbar .social-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.social-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(107, 78, 230, 0.35), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(46, 196, 182, 0.25), transparent 45%),
    #16132a;
  border-radius: 16px;
  padding: clamp(12px, 3vw, 24px);
  min-height: min(58vw, 380px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.25);
}

.social-canvas-wrap canvas {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.social-history {
  margin-top: 16px;
  background: var(--bg);
  border-radius: 14px;
  padding: 14px 16px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border);
}

.social-history h3 {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.social-history ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.social-history li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.social-history li:last-child { border-bottom: 0; }

.social-history .win { color: #b8860b; font-weight: 600; }

.social-game-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
  min-height: 1.4em;
  font-weight: 500;
}

.responsible-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}

.responsible-box h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.responsible-box p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.responsible-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.helpline-card {
  background: linear-gradient(160deg, #ede9fe, #e0f7f5);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}

.helpline-card .helpline-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
  margin-bottom: 8px;
}

.helpline-card .helpline-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.helpline-card .helpline-num a {
  color: inherit;
}

.helpline-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.social-disclaimer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 20px 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

.social-disclaimer .container {
  max-width: var(--max);
}

.social-disclaimer strong { color: #fff; }

.social-disclaimer a {
  color: var(--teal);
}

.footer-rg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}

.age-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(30, 27, 46, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.age-gate-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.age-gate-box .age-pill {
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
  font-size: 1.1rem;
}

.age-gate-box h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.age-gate-box p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.55;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.age-locked { overflow: hidden; }

@media (max-width: 980px) {
  .social-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-games-grid > li:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 860px) {
  .responsible-box,
  .social-charter {
    grid-template-columns: 1fr;
  }

  .social-home-band {
    padding: 28px 22px;
  }

  .social-toolbar .social-toolbar-actions {
    margin-left: 0;
    width: 100%;
  }

  .social-toolbar .social-toolbar-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .credits-chip {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .social-games-grid,
  .social-games-grid > li:last-child {
    grid-template-columns: 1fr;
    max-width: none;
    grid-column: auto;
  }

  .social-play-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .social-canvas-wrap {
    min-height: 280px;
    padding: 12px;
  }

  .page-hero {
    padding: 40px 0 32px;
  }

  .social-badge {
    font-size: 0.74rem;
    padding: 5px 10px;
  }

  .responsible-box {
    padding: 22px;
  }

  .helpline-card .helpline-num {
    font-size: 1.35rem;
  }
}
