/* =====================================
   RESET & THEME
===================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000;
  --ink: #fff;
  --muted: #cfcfcf;
  --line: #1a1a1a;

  /* Bingo card sizing (tweak these) */
  --mini-size: 150px; /* square side length */
  --mini-inset: 30px; /* inner padding so image appears smaller */
}

/* =====================================
   BASE
===================================== */
html,
body {
  height: 100%;
}
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Particles canvas — behind everything */
#bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: #000;
}

/* Content wrapper above particles */
.wrap {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vw, 40px);
}

/* =====================================
   5-WIDE CLUSTER ROW
   [L1] [L2] [BRAND] [R1] [R2]
===================================== */
.cluster {
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: clamp(12px, 2vw, 24px);
  width: min(1400px, 96vw);
  position: relative;
  z-index: 2; /* above background */
}

/* Center brand block */
.brand-block {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(8px, 1vw, 12px);
}
.brand-hero {
  width: min(360px, 70vw);
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

/* =====================================
   MINI-CARDS (square + label below)
===================================== */
.mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; /* spacing between card and text */
  position: relative;
  isolation: isolate; /* ensure each tile has its own stacking context */
  z-index: 1;
}

.mini-card {
  position: relative;
  display: block;
  width: var(--mini-size);
  height: var(--mini-size);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000000;
  /* image smaller via padding */
  padding: var(--mini-inset);
  /* important so padding doesn't change overall size */
  box-sizing: border-box;

  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
  transform: translateZ(0); /* own composite layer */
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  z-index: 0; /* baseline per tile */
}

/* Image fills the inner padded area */
.mini-card img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px; /* slightly smaller than card radius */
  display: block;
}

/* Hover overlay (doesn't capture events) */
.mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
  pointer-events: none;
}

/* Lift ONLY the hovered card above its siblings */
.mini-card:hover {
  z-index: 3;
  transform: translateY(-6px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.6);
  border-color: #2a2a2a;
}
.mini-card:hover::after {
  opacity: 0.15;
}

/* Text label under each card */
.mini-label {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* =====================================
   BRAND ACCENT GLOWS
   (keep these AFTER .mini-card to override base shadow)
===================================== */
.mini-card.tiktok {
  box-shadow: 0 24px 100px rgba(0, 255, 255, 0.18),
    0 18px 70px rgba(255, 0, 128, 0.12), 0 10px 36px rgba(0, 0, 0, 0.35);
}
.mini-card.reels {
  box-shadow: 0 24px 100px rgba(255, 0, 122, 0.18),
    0 10px 36px rgba(0, 0, 0, 0.35);
}
.mini-card.shorts {
  box-shadow: 0 24px 100px rgba(255, 0, 0, 0.18),
    0 10px 36px rgba(0, 0, 0, 0.35);
}
.mini-card.merch {
  box-shadow: 0 24px 100px rgba(255, 255, 255, 0.14),
    0 10px 36px rgba(0, 0, 0, 0.35);
}

/* =====================================
   STATS (stacked)
===================================== */
.stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3.6vw, 28px);
  text-align: center;
}
.big-number {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.08;
  white-space: nowrap;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.06);
}
.label {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
}

/* =====================================
   RESPONSIVE
===================================== */
@media (max-width: 1200px) {
  .brand-hero {
    width: min(420px, 70vw);
  }
}

@media (max-width: 1000px) {
  /* 3 columns:
     [L1 BRAND R1]
     [L2 BRAND R2] */
  .cluster {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "l1 brand r1"
      "l2 brand r2";
  }
  .cluster > .mini:nth-of-type(1) {
    grid-area: l1;
  }
  .cluster > .mini:nth-of-type(2) {
    grid-area: l2;
  }
  .brand-block {
    grid-area: brand;
  }
  .cluster > .mini:nth-of-type(3) {
    grid-area: r1;
  }
  .cluster > .mini:nth-of-type(4) {
    grid-area: r2;
  }
}

@media (max-width: 700px) {
  /* Stack: BRAND on top, then 2x2 minis */
  .cluster {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "l1    r1"
      "l2    r2";
    gap: 14px;
  }

  /* auto-scale squares for small screens */
  :root {
    --mini-size: 150px;
    --mini-inset: 30px;
  }

  .brand-hero {
    width: min(320px, 85vw);
  }
}
