/* Homepage — CosmoCheats landing layout */
.home-page {
  --cc-pink: #e040fb;
  --cc-pink-hot: #f472b6;
  background: #08080e;
}

.home-page.cc-site {
  background: var(--cc-bg);
}

.home-page .site-header {
  background: rgba(8, 8, 14, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header-top {
  background: #0c0c14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--muted);
}

.site-header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  flex-wrap: wrap;
}

.header-top-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.header-top-links a {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.header-top-links a:hover {
  color: var(--text);
}

.header-top-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.header-online {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
}

.header-online::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-2);
  margin-right: 6px;
  vertical-align: 1px;
}

.header-signin {
  font-size: 12px;
}

.header-signin a {
  color: var(--cc-pink-hot);
  font-weight: 700;
}

.site-nav-bar {
  background: rgba(18, 18, 28, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav-bar .container {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  flex-wrap: wrap;
}

.site-nav-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}

.site-nav-bar a:hover,
.site-nav-bar a.is-active {
  color: var(--text);
  background: rgba(217, 70, 239, 0.12);
  border: 1px solid rgba(217, 70, 239, 0.25);
}

.site-nav-bar .nav-spacer {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

/* ---- Hero ---- */
.home-hero {
  position: relative;
  overflow: hidden;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  background: #08080e url("../assets/hero-bg-v3.jpg") center top / cover no-repeat;
  pointer-events: none;
}

.home-hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 14, 0.35);
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 20px 28px;
  text-align: center;
}

.home-hero__h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-hero__h1-accent {
  display: block;
  margin-top: 4px;
  color: var(--cc-pink-hot);
  font-size: clamp(30px, 5.5vw, 52px);
}

.home-hero__ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.home-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}

.home-hero__btn--pri {
  background: #9333ea;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.home-hero__btn--pri:hover {
  background: #7e22ce;
}

.home-hero__btn--ghost {
  background: rgba(12, 12, 20, 0.8);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.home-hero__btn--ghost:hover {
  border-color: rgba(217, 70, 239, 0.4);
}

.home-hero__search {
  max-width: 560px;
  margin: 24px auto 0;
  position: relative;
}

.home-hero__search input {
  width: 100%;
  padding: 15px 20px 15px 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.home-hero__search input:focus {
  border-color: rgba(217, 70, 239, 0.45);
}

.home-hero__search img {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.55;
  pointer-events: none;
}

.home-stat-card {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 28px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--card);
  overflow: hidden;
}

.home-stat {
  flex: 1 1 180px;
  padding: 16px 18px;
  text-align: center;
}

.home-stat + .home-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.home-stat__val {
  display: block;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.home-stat__val--pink {
  color: var(--cc-pink);
}

.home-stat__val--green {
  color: var(--accent-2);
}

.home-stat__lbl {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.home-stat__stars {
  color: #00b67a;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 2px;
}

/* ---- Video stage ---- */
.home-stage {
  position: relative;
  z-index: 3;
  padding: 8px 20px 36px;
  max-width: 1060px;
  margin: 0 auto;
}

.home-stage__frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.home-stage__video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: top;
}

.home-stage__pill {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(14, 14, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.home-stage__pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cc-pink);
}

.home-stage__tags {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  background: rgba(8, 8, 14, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-stage__tags b {
  color: var(--cc-pink-hot);
  font-weight: 900;
}

.home-stage__tags span {
  color: rgba(255, 255, 255, 0.75);
}

/* ---- Strip ---- */
.home-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: rgba(12, 12, 20, 0.6);
}

.home-strip__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.home-strip__line {
  flex: 1 1 40px;
  height: 1px;
  background: var(--line);
  min-width: 24px;
  max-width: 120px;
}

.home-strip__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.home-strip__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--card);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

/* ---- Marquee game rows ---- */
.home-marquee {
  padding: 48px 0 36px;
  overflow: hidden;
}

.home-games__head {
  text-align: center;
  margin-bottom: 28px;
}

.home-games__head h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.home-games__head h2 em {
  font-style: normal;
  color: var(--cc-pink-hot);
}

.home-marquee__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-marquee__row {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.home-marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

.home-marquee__row--a .home-marquee__track {
  animation: mq-scroll-a 55s linear infinite;
}

.home-marquee__row--b .home-marquee__track {
  animation: mq-scroll-b 62s linear infinite;
}

.home-marquee__row:hover .home-marquee__track {
  animation-play-state: paused;
}

@keyframes mq-scroll-a {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes mq-scroll-b {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.mq-tile {
  position: relative;
  flex: 0 0 min(300px, 78vw);
  width: min(300px, 78vw);
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(217, 70, 239, 0.22);
  background: linear-gradient(115deg, #3d1a6e 0%, #120818 55%, #0b0d12 100%) center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 14px;
  transition: border-color 0.15s, transform 0.15s;
}

.mq-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 14, 0.88) 0%, rgba(8, 8, 14, 0.35) 55%, transparent 100%);
  pointer-events: none;
}

.mq-tile--art::after {
  background: transparent;
}

.tile-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mq-tile:hover {
  border-color: rgba(217, 70, 239, 0.5);
  transform: translateY(-2px);
}

.mq-tile__brand,
.mq-tile__name {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.mq-tile__brand {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--cc-pink);
  font-weight: 700;
  margin-bottom: 2px;
}

.mq-tile__name {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.mq-tile--fallback {
  background: linear-gradient(135deg, #4a2088, #1a0a28 50%, #0e1018);
}

.home-games__more {
  text-align: center;
  margin-top: 28px;
}

@media (max-width: 780px) {
  .site-header-top .container,
  .site-nav-bar .container {
    justify-content: center;
  }

  .home-stat + .home-stat {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .home-stage__tags {
    flex-wrap: wrap;
    gap: 8px;
  }

  .mq-tile {
    flex: 0 0 240px;
    width: 240px;
    height: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-marquee__track {
    animation: none !important;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    padding: 0 16px;
  }

  .home-marquee__row {
    mask-image: none;
  }
}

.home-page .section {
  padding-top: 56px;
}

.home-page .section-head h2 {
  font-weight: 900;
}
