/* Social Casino (NO) — page-scoped styles, loaded only on /social-casino */

[hidden] {
  display: none !important;
}

h1, h2, h3, h4, h5, h6, a {
  overflow-wrap: break-word;
  word-break: break-word;
}

.sc-hero .btn,
.sc-game-card .btn,
.sc-modal button,
.sc-guide-card .btn {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* HERO */
.section-sc-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 480px;
  padding: 110px 0 90px;
  overflow: hidden;
  isolation: isolate;
  background: #0c0c12 url("/assets/games/aqua-slot/images/page.webp") center/cover no-repeat;
}

.section-sc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(115deg, rgba(8, 10, 24, .88) 0%, rgba(8, 10, 24, .62) 55%, rgba(20, 6, 18, .4) 100%);
}

.section-sc-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.sc-hero-inner {
  max-width: 720px;
  animation: scHeroIn .7s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes scHeroIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.sc-hero-inner h1 {
  color: #fff;
  font: 800 clamp(34px, 5vw, 62px)/1.08 "Manrope", "Inter", sans-serif;
  letter-spacing: -.02em;
}

.sc-hero-inner h1 .accent {
  color: var(--c-brand);
}

.sc-hero-lead {
  margin-top: 20px;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
}

.sc-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

/* Round 18+ badge */
.sc-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--c-brand);
  color: var(--c-brand);
  background: rgba(250, 42, 72, .1);
  font: 800 17px/1 "Manrope", "Inter", sans-serif;
}

.sc-age--lg {
  width: 72px;
  height: 72px;
  font-size: 23px;
  background: var(--c-accent-bg);
}

.sc-hero-cta .sc-age {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

/* INTRO */
.sc-intro-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: start;
}

.sc-intro-text p {
  margin-bottom: 16px;
  color: var(--c-text);
  line-height: 1.7;
}

.sc-intro-text p:last-child {
  margin-bottom: 0;
}

.sc-intro-aside {
  padding: 30px 28px;
  background: var(--c-bg-2);
  border-radius: var(--r-md);
}

.sc-intro-aside h3 {
  margin-bottom: 18px;
  font-size: 19px;
  font-weight: 700;
}

.sc-steps {
  list-style: none;
  display: grid;
  gap: 16px;
  counter-reset: scstep;
}

.sc-steps li {
  position: relative;
  padding-left: 46px;
  counter-increment: scstep;
  color: var(--c-text-2);
  font-size: 15px;
  line-height: 1.6;
}

.sc-steps li strong {
  display: block;
  color: var(--c-text);
}

.sc-steps li::before {
  content: counter(scstep);
  position: absolute;
  top: 2px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  font: 700 15px/1 "Manrope", "Inter", sans-serif;
}

/* GAMES */
.sc-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.sc-game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-md);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}

.sc-game-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.sc-game-cover {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--c-bg-2);
}

.sc-game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

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

.sc-game-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(12, 12, 18, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.sc-game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.sc-game-body h3 {
  font-size: 19px;
  font-weight: 700;
}

.sc-game-body p {
  flex: 1;
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.6;
}

/* GAME MODAL */
.sc-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 18, .78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sc-modal-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(820px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 20px;
  overflow: auto;
  background: #14141c;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  color: #fff;
}

.sc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sc-modal-head h3 {
  color: #fff;
  font: 700 19px/1.2 "Manrope", "Inter", sans-serif;
}

.sc-modal-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 18px;
  transition: background var(--t-fast);
}

.sc-modal-x:hover {
  background: rgba(255, 255, 255, .22);
}

.sc-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(58vh, 520px);
  overflow: hidden;
  background: #000;
  border-radius: var(--r-sm);
}

.sc-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* WHY / PARTNERS — 6 cards: 3 → 2 → 1 */
.sc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* GUIDES — 4 cards: 2 → 1 */
.sc-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.sc-guide-card .blog-cover {
  aspect-ratio: 16/8;
}

.sc-guide-excerpt {
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.6;
}

.sc-guide-card .blog-meta {
  align-items: center;
  justify-content: space-between;
}

/* Guide reader modal */
.sc-reader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sc-reader-box {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 34px 30px;
  overflow: auto;
  background: #fff;
  border-radius: var(--r-md);
}

.sc-reader-box h3 {
  margin-bottom: 18px;
  padding-right: 44px;
  font: 800 24px/1.25 "Manrope", "Inter", sans-serif;
}

.sc-reader-box .sc-modal-x {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--c-ctrl-sec);
  color: var(--c-text);
}

.sc-reader-body p {
  margin-bottom: 14px;
  color: var(--c-text);
  line-height: 1.7;
}

.sc-reader-body p:last-child {
  margin-bottom: 0;
}

/* SAFETY / RG */
.sc-safety-top {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 810px;
  margin-bottom: 40px;
}

.sc-safety-top p {
  color: var(--c-text-2);
  line-height: 1.65;
}

.sc-plates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sc-plate {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-md);
}

.sc-plate-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 74px;
  padding: 14px 18px;
  background: #191a23;
  border-radius: var(--r-sm);
}

.sc-plate-logo img {
  max-height: 42px;
  width: auto;
}

.sc-plate-logo .sc-plate-word {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font: 700 20px/1 "Manrope", "Inter", sans-serif;
}

.sc-plate-logo .sc-plate-word svg {
  width: 26px;
  height: 26px;
}

.sc-plate h3 {
  font-size: 17px;
  font-weight: 700;
}

.sc-plate p {
  flex: 1;
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.6;
}

.sc-plate-link {
  color: var(--c-brand);
  font-size: 14px;
  font-weight: 600;
}

.sc-plate-link:hover {
  text-decoration: underline;
}

.sc-disclaimer {
  margin-top: 40px;
  padding: 26px 28px;
  background: var(--c-bg-2);
  border-left: 4px solid var(--c-brand);
  border-radius: var(--r-sm);
}

.sc-disclaimer p {
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.65;
}

.sc-disclaimer p+p {
  margin-top: 10px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .sc-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sc-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sc-plates {
    grid-template-columns: 1fr;
  }

  .sc-intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 820px) {
  .sc-guides-grid {
    grid-template-columns: 1fr;
  }

  .sc-frame {
    height: min(52vh, 420px);
  }
}

@media (max-width: 640px) {
  .sc-games-grid,
  .sc-grid-3 {
    grid-template-columns: 1fr;
  }

  .sc-safety-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .sc-modal,
  .sc-reader {
    padding: 10px;
  }

  .sc-modal-box {
    padding: 14px;
    max-height: calc(100dvh - 20px);
  }

  .sc-reader-box {
    padding: 26px 20px;
  }

  .sc-frame {
    height: min(46vh, 340px);
  }
}
