/* ==========================================================
   SHAZ ESPORTS — GAMING PAGE STYLESHEET
   Loaded IN ADDITION to style.css. Uses the same tokens
   (colors / fonts / buttons) from style.css so both pages
   stay visually identical in DNA. Everything here is scoped
   with an .esp- prefix so it never touches the main site.
   ========================================================== */

/* ---------- Navbar: slides away on scroll-down, slides back on scroll-up ---------- */
#site-header {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
#site-header.esp-nav-hidden {
  transform: translateY(-100%);
}

/* ---------- Arena hero ---------- */
.esp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

/* ---------- Intro panel (title/tagline/stats), sits below the hero video ---------- */
.esp-intro {
  position: relative;
  padding: 90px 8% 110px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(164,255,0,0.07), transparent 70%);
}
/* Top/bottom fade so the panel blends softly into the sections around it */
.esp-intro::before,
.esp-intro::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 130px;
  z-index: 1;
  pointer-events: none;
}
.esp-intro::before {
  top: 0;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.esp-intro::after {
  bottom: 0;
  background: linear-gradient(to top, #000 0%, transparent 100%);
}
.esp-intro-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero background video — replace the <source> URL in esports.html with your own clip */
.esp-hero-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* fills the entire hero edge-to-edge, no empty/black space on the sides */
  object-position: center center;
  background: #000;
  pointer-events: none;
}

.esp-eyebrow {
  color: var(--shaz-muted-2);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.esp-title {
  font-size: clamp(38px, 9vw, 92px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 1px;
}
.esp-title .accent { color: var(--shaz-green); }
.esp-title .brand-red { color: var(--shaz-orange); }
.esp-tagline {
  margin-top: 20px;
  opacity: 0.7;
  letter-spacing: 3px;
  font-size: 14px;
}
.esp-tagline .dot { color: var(--shaz-orange); margin: 0 4px; }

.esp-cta-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 38px; }

/* Browse Games — green fill, red glow/edge on hover for a red+green combo */
.esp-cta-row .btn.btn-solid {
  background: linear-gradient(135deg, var(--shaz-green) 0%, #8ee600 100%);
  border: 1px solid rgba(255,60,48,0.45);
  color: #000;
  transition: 0.3s ease;
}
.esp-cta-row .btn.btn-solid:hover {
  border-color: var(--shaz-orange);
  box-shadow: 0 10px 26px rgba(255,60,48,0.35);
  transform: translateY(-2px);
}

/* Enter A Tournament — red outline that flips to green glow on hover */
.esp-cta-row .btn.btn-outline {
  border: 1.5px solid var(--shaz-orange);
  color: var(--shaz-orange);
  background: transparent;
  transition: 0.3s ease;
}
.esp-cta-row .btn.btn-outline:hover {
  background: var(--shaz-orange);
  color: #000;
  border-color: var(--shaz-green);
  box-shadow: 0 10px 26px rgba(164,255,0,0.3);
  transform: translateY(-2px);
}

.esp-stat-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 54px;
}
.esp-stat {
  border-radius: 12px;
  padding: 16px 26px;
  min-width: 130px;
  transition: 0.3s ease;
}
.esp-stat:hover { transform: translateY(-4px); }

/* Alternating green / red / green combo across the 3 stat cards,
   each tied together with an opposite-color underline for the red+green mix */
.esp-stat:nth-child(1),
.esp-stat:nth-child(3) {
  background: rgba(164,255,0,0.05);
  border: 1px solid rgba(164,255,0,0.22);
  border-bottom: 3px solid var(--shaz-orange);
}
.esp-stat:nth-child(1):hover,
.esp-stat:nth-child(3):hover {
  border-color: rgba(164,255,0,0.5);
  border-bottom-color: var(--shaz-orange);
  box-shadow: 0 10px 24px rgba(255,60,48,0.2);
}
.esp-stat:nth-child(2) {
  background: rgba(255,60,48,0.06);
  border: 1px solid rgba(255,60,48,0.3);
  border-bottom: 3px solid var(--shaz-green);
}
.esp-stat:nth-child(2):hover {
  border-color: rgba(255,60,48,0.6);
  border-bottom-color: var(--shaz-green);
  box-shadow: 0 10px 24px rgba(164,255,0,0.2);
}

/* Slide-in reveal: side cards glide in from left/right, middle card rises up */
.esp-stat.esp-reveal { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.esp-stat:nth-child(1).esp-reveal { transform: translate(-55px, 12px); }
.esp-stat:nth-child(2).esp-reveal { transform: translate(0, 34px) scale(0.92); }
.esp-stat:nth-child(3).esp-reveal { transform: translate(55px, 12px); }
.esp-stat.esp-reveal.in-view { transform: translate(0, 0) scale(1); }

.esp-stat strong { display: block; font-size: 22px; }
.esp-stat:nth-child(1) strong,
.esp-stat:nth-child(3) strong { color: var(--shaz-green); }
.esp-stat:nth-child(2) strong { color: var(--shaz-orange); }
.esp-stat span { color: var(--shaz-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Ambient background orbs ---------- */
.esp-bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.esp-orb {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--shaz-green);
  box-shadow: 0 0 10px 3px rgba(164,255,0,0.55);
  opacity: 0.55;
}
.esp-orb-1  { top: 5%;  left: 4%;  animation: espOrbA 12s ease-in-out infinite; }
.esp-orb-2  { top: 70%; left: 10%; width: 4px; height: 4px; animation: espOrbB 10s ease-in-out infinite; }
.esp-orb-3  { top: 18%; left: 85%; width: 7px; height: 7px; animation: espOrbC 14s ease-in-out infinite; }
.esp-orb-4  { top: 55%; left: 45%; animation: espOrbD 11s ease-in-out infinite; }
.esp-orb-5  { top: 85%; left: 70%; width: 4px; height: 4px; animation: espOrbA 16s ease-in-out infinite reverse; }
.esp-orb-6  { top: 35%; left: 20%; width: 6px; height: 6px; animation: espOrbC 13s ease-in-out infinite reverse; }
.esp-orb-7  { top: 10%; left: 55%; width: 4px; height: 4px; animation: espOrbB 9s  ease-in-out infinite reverse; }
.esp-orb-8  { top: 65%; left: 92%; animation: espOrbD 15s ease-in-out infinite reverse; }
.esp-orb-9  { top: 92%; left: 30%; width: 4px; height: 4px; animation: espOrbA 10s ease-in-out infinite; }
.esp-orb-10 { top: 45%; left: 5%;  width: 6px; height: 6px; animation: espOrbB 17s ease-in-out infinite; }
.esp-orb-11 { top: 25%; left: 65%; width: 5px; height: 5px; animation: espOrbD 12s ease-in-out infinite reverse; }
.esp-orb-12 { top: 78%; left: 50%; width: 4px; height: 4px; animation: espOrbC 9s  ease-in-out infinite; }
.esp-orb-13 { top: 3%;  left: 30%; width: 5px; height: 5px; animation: espOrbB 15s ease-in-out infinite reverse; }
.esp-orb-14 { top: 60%; left: 80%; width: 4px; height: 4px; animation: espOrbA 13s ease-in-out infinite reverse; }
.esp-orb-15 { top: 40%; left: 92%; width: 6px; height: 6px; animation: espOrbD 18s ease-in-out infinite; }
.esp-orb-16 { top: 95%; left: 8%;  width: 4px; height: 4px; animation: espOrbC 11s ease-in-out infinite reverse; }
.esp-orb-17 { top: 15%; left: 15%; width: 5px; height: 5px; animation: espOrbB 14s ease-in-out infinite; }
.esp-orb-18 { top: 50%; left: 60%; width: 4px; height: 4px; animation: espOrbA 19s ease-in-out infinite; }

@keyframes espOrbA {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(28vw, 18vh); }
  45% { transform: translate(8vw, 50vh); }
  70% { transform: translate(42vw, 8vh); }
  90% { transform: translate(15vw, -10vh); }
}
@keyframes espOrbB {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-22vw, 14vh); }
  50% { transform: translate(14vw, 32vh); }
  75% { transform: translate(-8vw, -14vh); }
}
@keyframes espOrbC {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-16vw, -12vh); }
  50% { transform: translate(-32vw, 22vh); }
  80% { transform: translate(-6vw, 38vh); }
}
@keyframes espOrbD {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(22vw, -16vh); }
  60% { transform: translate(-12vw, 12vh); }
  85% { transform: translate(18vw, 20vh); }
}

/* ---------- Shared section helpers (page-local) ---------- */
.esp-section { padding: 100px 8%; position: relative; z-index: 10; }

/* ---------- Games — tab toggle ---------- */
.esp-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 46px 0 40px;
}
.esp-tab {
  background: none;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.6);
  padding: 10px 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.25s;
}
.esp-tab:hover { border-color: rgba(164,255,0,0.4); color: var(--shaz-white); }
.esp-tab.active { background: var(--shaz-green); color: #000; border-color: var(--shaz-green); }

.esp-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.esp-game-panel { display: none; }
.esp-game-panel.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.esp-game-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.esp-game-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-accent, var(--shaz-green));
  box-shadow: 0 16px 34px rgba(0,0,0,0.5);
}
.esp-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--card-accent, #a4ff00) 22%, #000) 0%, #000 70%);
  overflow: hidden;
}
.esp-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px);
}
/* Video / GIF media inside a game thumb — replace src in esports.html with your own clips/GIFs */
.esp-game-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.85;
}
.esp-game-card:hover .esp-game-media { opacity: 1; }
.esp-game-body { padding: 20px 20px 24px; }
.esp-game-btn {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--card-accent, var(--shaz-green));
  border: 1.5px solid var(--card-accent, var(--shaz-green));
  border-radius: 50px;
  padding: 10px 22px;
  text-decoration: none;
  transition: 0.25s;
}
.esp-game-btn:hover {
  background: var(--card-accent, var(--shaz-green));
  color: #000;
}
.esp-genre {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--card-accent, var(--shaz-green));
  border: 1px solid var(--card-accent, var(--shaz-green));
  border-radius: 50px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.esp-game-body h4 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.esp-game-body p { font-size: 12.5px; color: var(--shaz-muted); line-height: 1.6; }

/* ---------- Arena / tournament CTA panel ---------- */
.esp-arena-panel {
  border: 1px solid rgba(255,60,48,0.2);
  background: linear-gradient(180deg, rgba(164,255,0,0.06), transparent 60%);
  border-radius: 20px;
  padding: 64px 8%;
  text-align: center;
}
.esp-arena-panel h2 { font-size: clamp(24px, 5vw, 36px); text-transform: uppercase; margin-bottom: 14px; }
.esp-arena-panel p { color: var(--shaz-muted); max-width: 520px; margin: 0 auto; font-size: 14px; line-height: 1.7; }
.esp-arena-panel .email-btn { margin-top: 30px; }
.esp-arena-chips { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.esp-arena-chips span {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px; padding: 8px 16px;
}

/* ---------- Tournament info row (plain columns, intentionally NOT card-styled) ---------- */
.esp-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}
.esp-info-item {
  border-top: 2px solid var(--shaz-green);
  padding-top: 18px;
}
.esp-info-item .esp-info-num {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--shaz-orange);
  margin-bottom: 8px;
}
.esp-info-item h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}
.esp-info-item p {
  font-size: 13px;
  color: var(--shaz-muted);
  line-height: 1.7;
}
@media (max-width: 700px) {
  .esp-info-row { grid-template-columns: 1fr; }
}

/* ---------- Squad perks ---------- */
.esp-perk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 50px;
}
.esp-perk-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 30px 24px;
  transition: 0.3s;
}
.esp-perk-card:hover { border-color: rgba(164,255,0,0.25); transform: translateY(-6px); }
.esp-perk-icon { width: 42px; height: 42px; margin-bottom: 18px; color: var(--shaz-green); }
.esp-perk-icon svg { width: 100%; height: 100%; }
.esp-perk-card h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.esp-perk-card p { font-size: 13px; color: var(--shaz-muted); line-height: 1.6; }

/* ---------- Gallery ---------- */
.esp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
  margin-top: 50px;
}
/* First tile stands taller, second tile runs wide — keeps the grid from feeling flat */
.esp-gallery-item:nth-child(1) { grid-row: span 2; }
.esp-gallery-item.esp-gallery-wide { grid-column: span 2; }

.esp-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.esp-gallery-item img,
.esp-gallery-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease;
  filter: saturate(0.92) brightness(0.88);
}
/* Shown on Facebook gallery tiles when no data-poster image was supplied —
   built by esports.js so the tile never shows a broken image. */
.esp-gallery-fb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--card-accent, #ff3c30) 22%, #000) 0%, #000 75%);
  color: rgba(255,255,255,0.85);
  transition: filter 0.4s ease;
}
.esp-gallery-item:hover .esp-gallery-fb-fallback { filter: brightness(1.1); }
.esp-gallery-fb-fallback svg { width: 34px; height: 34px; color: var(--card-accent, #ff3c30); }
.esp-gallery-fb-fallback span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
/* Diagonal red/green sheen sitting over every tile, brightens on hover */
.esp-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, color-mix(in srgb, var(--card-accent, #a4ff00) 28%, transparent) 0%, transparent 55%),
              linear-gradient(-20deg, rgba(255,60,48,0.16) 0%, transparent 45%);
  opacity: 0.55;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.esp-gallery-item:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent, var(--shaz-green));
  box-shadow: 0 16px 34px rgba(0,0,0,0.5), 0 0 0 1px rgba(164,255,0,0.12);
}
.esp-gallery-item:hover::after { opacity: 0.8; }
.esp-gallery-item:hover img,
.esp-gallery-item:hover video { transform: scale(1.08); filter: saturate(1) brightness(1); }

/* Center icon (play / zoom) — hidden until hover, pops in with a little bounce */
.esp-gallery-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent, #a4ff00) 88%, #000 12%);
  color: #000;
  box-shadow: 0 0 0 6px rgba(0,0,0,0.35), 0 10px 24px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.esp-gallery-play svg { width: 22px; height: 22px; }
.esp-gallery-play.esp-gallery-zoom svg { width: 20px; height: 20px; }
.esp-gallery-item:hover .esp-gallery-play,
.esp-gallery-item:focus-visible .esp-gallery-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Slide/fade reveal on scroll — same choreography as the stat cards */
.esp-gallery-item.esp-reveal { transform: translateY(30px); }
.esp-gallery-item.esp-reveal.in-view { transform: translateY(0); }
.esp-gallery-item:hover.esp-reveal.in-view { transform: translateY(-6px); }

@media (max-width: 900px) {
  .esp-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .esp-gallery-item:nth-child(1) { grid-row: span 1; }
}
@media (max-width: 560px) {
  .esp-gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .esp-gallery-item.esp-gallery-wide { grid-column: span 1; }
}

/* ---------- Gallery: "Upcoming" divider + badge ---------- */
.esp-gallery-subhead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.esp-gallery-subhead-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--shaz-orange);
  padding: 7px 16px;
  border-radius: 50px;
  animation: espBlogPulse 1.8s ease-in-out infinite;
}
.esp-gallery-subhead p { color: var(--shaz-muted); font-size: 13px; }

/* Upcoming tiles reuse the grid, just placed in their own row below */
.esp-gallery-grid-upcoming { margin-top: 26px; }

.esp-gallery-upcoming-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--shaz-orange);
  padding: 6px 14px;
  border-radius: 50px;
}

/* Clean fallback for a YouTube tile before a real link has been pasted in —
   built by esports.js, same treatment the Facebook tile already gets. */
.esp-gallery-yt-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--card-accent, #a4ff00) 22%, #000) 0%, #000 75%);
  color: rgba(255,255,255,0.85);
  transition: filter 0.4s ease;
}
.esp-gallery-item:hover .esp-gallery-yt-fallback { filter: brightness(1.1); }
.esp-gallery-yt-fallback svg { width: 34px; height: 34px; color: var(--card-accent, #a4ff00); }
.esp-gallery-yt-fallback span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .esp-gallery-subhead-badge { animation: none; }
}

/* ---------- Gallery lightbox ---------- */
.esp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}
.esp-lightbox.is-open { opacity: 1; visibility: visible; }
.esp-lightbox-notice {
  padding: 60px 40px;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  background: #0a0a0a;
  border-radius: 14px;
  min-width: min(600px, 80vw);
}
.esp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
}
.esp-lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(980px, 92vw);
  max-height: 88vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.35s ease;
}
.esp-lightbox.is-open .esp-lightbox-inner {
  transform: scale(1);
  opacity: 1;
}
.esp-lightbox-media {
  width: 100%;
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(164,255,0,0.25);
  box-shadow: 0 0 0 1px rgba(255,60,48,0.15), 0 30px 60px rgba(0,0,0,0.6);
  background: #000;
}
.esp-lightbox-media img,
.esp-lightbox-media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
}
/* YouTube / Facebook embeds get their own 16:9 box instead of the img/video sizing above */
.esp-lightbox-media.is-embed {
  width: min(980px, 92vw);
  aspect-ratio: 16 / 9;
  max-height: 76vh;
}
.esp-lightbox-media.is-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.esp-lightbox-caption {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--shaz-muted);
  text-align: center;
  max-width: 640px;
}
.esp-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--shaz-orange);
  background: rgba(0,0,0,0.6);
  color: var(--shaz-orange);
  cursor: pointer;
  transition: 0.25s ease;
}
.esp-lightbox-close:hover {
  background: var(--shaz-green);
  border-color: var(--shaz-green);
  color: #000;
  transform: rotate(90deg);
}
.esp-lightbox-close svg { width: 16px; height: 16px; }

@media (max-width: 560px) {
  .esp-lightbox-close { top: 8px; right: 8px; background: rgba(0,0,0,0.75); }
}

@media (prefers-reduced-motion: reduce) {
  .esp-gallery-item, .esp-gallery-item img, .esp-gallery-item video,
  .esp-gallery-play, .esp-lightbox, .esp-lightbox-inner { transition: none; }
}

/* ---------- Blog & Events feed ---------- */

/* Publish panel — a slow rotating green/red conic gradient sits behind it,
   masked down to a thin glowing ring around the panel edge. */
.esp-blog-upload {
  position: relative;
  max-width: 920px;
  margin: 46px auto 60px;
  padding: 36px 36px 40px;
  border-radius: 22px;
  background: #060606;
  overflow: hidden;
  isolation: isolate;
}
.esp-blog-upload-glow {
  position: absolute;
  inset: -3px;
  z-index: -2;
  border-radius: 24px;
  background: conic-gradient(from 0deg, var(--shaz-green), var(--shaz-orange), var(--shaz-green) 65%, var(--shaz-orange) 85%, var(--shaz-green));
  animation: espBlogSpin 7s linear infinite;
  opacity: 0.65;
}
.esp-blog-upload::before {
  content: '';
  position: absolute;
  inset: 2.5px;
  z-index: -1;
  border-radius: 19px;
  background: #060606;
}
@keyframes espBlogSpin {
  to { transform: rotate(360deg); }
}

.esp-blog-upload-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.esp-blog-upload-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #000;
  background: linear-gradient(135deg, var(--shaz-green), var(--shaz-orange));
}
.esp-blog-upload-icon svg { width: 22px; height: 22px; }
.esp-blog-upload-head h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.esp-blog-upload-head p {
  font-size: 12.5px;
  color: var(--shaz-muted);
  line-height: 1.6;
}

.esp-blog-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 32px 20px;
  border: 1.5px dashed rgba(164,255,0,0.35);
  border-radius: 14px;
  background: rgba(164,255,0,0.03);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.esp-blog-drop:hover {
  border-color: var(--shaz-green);
  background: rgba(164,255,0,0.07);
  transform: translateY(-2px);
}
.esp-blog-drop.has-file {
  border-style: solid;
  border-color: var(--shaz-orange);
  background: rgba(255,60,48,0.08);
}
.esp-blog-drop-icon { width: 32px; height: 32px; color: var(--shaz-green); }
.esp-blog-drop-icon svg { width: 100%; height: 100%; }
.esp-blog-drop-text { font-size: 12.5px; color: var(--shaz-muted); letter-spacing: 0.3px; }
.esp-blog-drop-file { font-size: 11px; font-weight: 600; color: var(--shaz-orange); word-break: break-all; }

.esp-blog-form-row { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.esp-blog-form input[type="text"],
.esp-blog-form textarea {
  flex: 1;
  min-width: 200px;
  font-family: inherit;
  font-size: 13px;
  color: #fff;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.esp-blog-form textarea { width: 100%; min-height: 84px; margin-top: 14px; resize: vertical; }
.esp-blog-form input::placeholder,
.esp-blog-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.esp-blog-form input:focus,
.esp-blog-form textarea:focus {
  outline: none;
  border-color: var(--shaz-green);
  box-shadow: 0 0 0 3px rgba(164,255,0,0.15);
}

.esp-blog-form-row-tags { gap: 10px; margin-top: 20px; }
.esp-blog-tag-choice { position: relative; cursor: pointer; }
.esp-blog-tag-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.esp-blog-tag-choice span {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50px;
  padding: 9px 18px;
  transition: 0.25s ease;
}
.esp-blog-tag-choice input:checked + span {
  background: var(--shaz-green);
  border-color: var(--shaz-green);
  color: #000;
}
.esp-blog-tag-choice:hover span { border-color: var(--shaz-orange); }

.esp-blog-publish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 26px;
  padding: 14px 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--shaz-orange) 0%, #ff6a52 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s ease;
}
.esp-blog-publish svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.esp-blog-publish:hover {
  background: linear-gradient(135deg, var(--shaz-green) 0%, #8ee600 100%);
  color: #000;
  box-shadow: 0 10px 26px rgba(164,255,0,0.3);
  transform: translateY(-2px);
}
.esp-blog-publish:hover svg { transform: translateX(4px); }

.esp-blog-storage-note {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--shaz-muted);
  text-align: center;
}

/* ---------- Blog feed grid ---------- */
.esp-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.esp-blog-featured { grid-column: span 2; }
@media (min-width: 720px) {
  .esp-blog-featured { display: flex; align-items: stretch; }
  .esp-blog-featured .esp-blog-media { width: 46%; aspect-ratio: auto; }
  .esp-blog-featured .esp-blog-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .esp-blog-featured .esp-blog-body h4 { font-size: 19px; }
}

.esp-blog-card {
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.esp-blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-accent, var(--shaz-green));
  box-shadow: 0 16px 34px rgba(0,0,0,0.5);
}
/* Diagonal shine that sweeps across the card on hover */
.esp-blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.16) 50%, transparent 60%);
  background-size: 250% 250%;
  background-position: -120% -120%;
  transition: background-position 0.9s ease;
  pointer-events: none;
}
.esp-blog-card:hover::before { background-position: 120% 120%; }

.esp-blog-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #000; }
.esp-blog-media img,
.esp-blog-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease;
  filter: saturate(0.92) brightness(0.88);
}
.esp-blog-card:hover .esp-blog-media img,
.esp-blog-card:hover .esp-blog-media video { transform: scale(1.08); filter: saturate(1) brightness(1); }
.esp-blog-media-empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, rgba(164,255,0,0.14), rgba(255,60,48,0.14));
}

/* Small "x" delete button, top-right of every blog card — click to remove that post */
.esp-blog-delete {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.esp-blog-delete svg { width: 14px; height: 14px; }
.esp-blog-card:hover .esp-blog-delete,
.esp-blog-delete:focus-visible {
  opacity: 1;
  transform: scale(1);
}
.esp-blog-delete:hover {
  background: var(--shaz-orange);
  border-color: var(--shaz-orange);
}
/* Card fade+collapse when removed */
.esp-blog-card.esp-blog-removing {
  animation: espBlogRemove 0.35s ease forwards;
  pointer-events: none;
}
@keyframes espBlogRemove {
  to { opacity: 0; transform: scale(0.9) translateY(-10px); }
}

.esp-blog-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
  background: var(--card-accent, var(--shaz-green));
  padding: 6px 14px;
  border-radius: 50px;
}
.esp-blog-badge-live {
  color: #fff;
  background: var(--shaz-orange);
  animation: espBlogPulse 1.8s ease-in-out infinite;
}
@keyframes espBlogPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,60,48,0.55); }
  50% { box-shadow: 0 0 0 9px rgba(255,60,48,0); }
}

.esp-blog-body { padding: 20px 22px 24px; }
.esp-blog-date {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--card-accent, var(--shaz-green));
  margin-bottom: 8px;
}
.esp-blog-body h4 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.esp-blog-body p { font-size: 12.5px; color: var(--shaz-muted); line-height: 1.6; }

/* Pop-in animation for a post just published through the form */
.esp-blog-new { animation: espBlogPop 0.6s cubic-bezier(0.22,1,0.36,1); }
@keyframes espBlogPop {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 900px) {
  .esp-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .esp-blog-featured { grid-column: span 2; }
}
@media (max-width: 560px) {
  .esp-blog-upload { padding: 26px 20px 30px; }
  .esp-blog-form-row { flex-direction: column; }
  .esp-blog-grid { grid-template-columns: 1fr; }
  .esp-blog-featured { grid-column: span 1; display: block; }
  .esp-blog-featured .esp-blog-media { width: 100%; }
  /* No hover on touch — keep the delete button visible so it's reachable */
  .esp-blog-delete { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .esp-blog-upload-glow { animation: none; }
  .esp-blog-badge-live { animation: none; }
  .esp-blog-card::before { transition: none; }
  .esp-blog-new { animation: none; }
  .esp-blog-card.esp-blog-removing { animation: none; opacity: 0; }
}

/* ---------- Reveal (mirrors main.js pattern, page-local elements) ---------- */
.esp-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.esp-reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .esp-game-grid, .esp-game-panel.active { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .esp-game-grid, .esp-game-panel.active { grid-template-columns: 1fr; }
  .esp-arena-panel { padding: 48px 6%; }
}

@media (prefers-reduced-motion: reduce) {
  .esp-orb { animation: none; }
  .esp-reveal, .esp-stat.esp-reveal { opacity: 1; transform: none; transition: none; }
  .esp-hero-video, .esp-game-media { display: none; }
}