@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@1,800&display=swap');

/*
  Venture Games — Esports Partner / Event page
  Everything is scoped under .ev-page / .ev-* so navbar + footer are untouched.

  Design reference : Venture_Games_Event_Page_v2.jpg  (1278px wide frame)
  Fonts            : Poppins (all text), Exo 2 Italic 800 (PLAY BEYOND!)
  Gold             : #FFBB46
*/

/* =========================================================
   0. TOKENS + BASE
   ========================================================= */
.ev-page {
  --ev-black: #000000;
  --ev-white: #ffffff;
  --ev-gold: #ffbb46;
  --ev-gold-hover: #ffc965;
  --ev-ink: #161616;

  /* thin gold divider lines (they fade, exactly like the design) */
  --ev-line-left:  linear-gradient(90deg, rgba(255, 240, 184, .38) 0%, rgba(255, 240, 184, .22) 50%, rgba(255, 240, 184, 0) 100%);
  --ev-line-right: linear-gradient(90deg, rgba(255, 214, 130, 0) 0%, rgba(255, 214, 130, .26) 45%, rgba(255, 214, 130, .48) 100%);
  --ev-line-both:  linear-gradient(90deg, rgba(255, 214, 120, .50) 0%, rgba(255, 235, 190, .28) 50%, rgba(255, 214, 120, .46) 100%);
  --ev-line-flat:  linear-gradient(90deg, rgba(255, 235, 150, .42), rgba(255, 235, 150, .38));

  --ev-ease: cubic-bezier(.2, .8, .2, 1);

  position: relative;
  width: 100%;
  background: var(--ev-black);
  color: var(--ev-white);
  overflow: hidden;
  line-height: 1.4;
}

/* global.css sets font-family on every element (*), so we must set it on every element too */
.ev-page,
.ev-page * {
  font-family: 'Poppins', Arial, sans-serif;
  box-sizing: border-box;
}

.ev-page img { display: block; max-width: 100%; }
.ev-page ul  { list-style: none; margin: 0; padding: 0; }

.ev-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

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

/* shared big heading (Esports Partner / Console Arrangement) */
.ev-title {
  margin: 0;
  font-size: clamp(2.5rem, 4.2vw + 1rem, 4.3rem);   /* 68.8px on desktop */
  font-weight: 700;
  line-height: 1.1;
  color: var(--ev-white);
  letter-spacing: 0;
}

/* =========================================================
   1. HERO — Esports Partner      (450px tall, lines at 50px)
   ========================================================= */
.ev-hero {
  position: relative;
  isolation: isolate;
  padding: 50px 0;
  /* fallback colour field (used when no hero photo exists):
     pure black on the left -> warm gold on the right */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 35%, rgba(90, 60, 10, .22) 100%),
    linear-gradient(100deg, #000000 0%, #000000 30%, #070503 44%, #15100a 62%, #271b08 80%, #46320d 100%);
}

/* with a photo the base is pure black, so the photo's left edge fades into black */
.ev-hero.has-img { background: #000; }

/* hero photo (hero-bg.jpg): only the right 50%, left edge fades into the black background */
.ev-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  z-index: -2;
  background: var(--ev-hero-img, none) 50% 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 30%, #000 65%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 30%, #000 65%);
}

/* soft top/bottom shade + gold tint on the photo (no dark block on the left any more) */
.ev-hero.has-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 35%, rgba(120, 82, 12, .30) 100%);
  pointer-events: none;
}

.ev-hero__band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 350px;
  padding-bottom: 17px;           /* text block sits ~9px above the exact centre */
}

.ev-hero__band::before,
.ev-hero__band::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ev-line-left);
  pointer-events: none;
}
.ev-hero__band::before { top: 0; }
.ev-hero__band::after  { bottom: 0; }

.ev-hero__content { width: 100%; }

.ev-hero .ev-title { margin-bottom: 1.1rem; }

.ev-hero__text {
  max-width: 738px;
  margin: 0;
  padding-left: 4px;
  font-size: 1.1rem;              /* 17.6px */
  font-weight: 400;
  line-height: 1.35;
  color: var(--ev-white);
}

/* =========================================================
   2. STAGE — Console Arrangement + "Event Highlights" heading
      (PS5 photo sits behind both)
   ========================================================= */
.ev-stage {
  position: relative;
  background: #090602;
}

.ev-stage__top {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 560px 640px at 0% 38%, rgba(255, 205, 120, .20) 0%, rgba(255, 205, 120, 0) 70%),
    linear-gradient(270deg, rgba(251, 184, 59, .07) 0%, rgba(251, 184, 59, 0) 38%),
    linear-gradient(180deg, #0c0803 0%, #070502 100%);
}

/* PS5 visual (static/img/event/PS5-visual.png) */
.ev-stage__top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: clamp(280px, 34.5vw, 520px);
  z-index: -1;
  background: url('/static/img/event/PS5-visual.png') left top / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 58%, rgba(0, 0, 0, 0) 100%);
          mask-image: linear-gradient(90deg, #000 58%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

/* ---- Console Arrangement ---- */
.ev-console {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 350px;
  padding-bottom: 42px;
}

.ev-console::before {              /* top line (y = 544 in the design) */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ev-line-right);
  pointer-events: none;
}

.ev-wrap--console { padding-right: 56px; }

.ev-console__content {
  width: min(100%, 792px);
  margin-left: auto;
}

.ev-console .ev-title { margin-bottom: .8rem; }

.ev-console__text {
  max-width: 780px;
  margin: 0;
  padding-left: 12px;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ev-white);
}

/* ---- "Event Highlights" sliding heading area (146px) ---- */
.ev-stage__head {
  position: relative;
  padding: 77px 0 34px;
}

.ev-stage__head::before {          /* bottom line of the console block (y = 894) */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ev-line-right);
  pointer-events: none;
}

/* =========================================================
   3. SLIDING TICKERS (Event Highlights + PLAY BEYOND!)
   ========================================================= */
.ev-ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ev-ticker__track {
  position: relative;
  left: 50%;
  display: flex;
  align-items: center;
  width: max-content;
  transform: translateX(-50%);     /* the middle item is always at the exact centre */
  will-change: transform;
}

.ev-ticker__item {
  flex: 0 0 auto;
  white-space: nowrap;
  user-select: none;
  color: rgba(255, 255, 255, .05);
  -webkit-text-stroke: 1px rgba(255, 255, 255, .42);
  transition: color .7s ease, -webkit-text-stroke-color .7s ease, text-shadow .7s ease;
}

.ev-ticker__item.is-active {
  color: var(--ev-white);
  -webkit-text-stroke-color: transparent;
}

/* Event Highlights */
.ev-ticker--head .ev-ticker__track { gap: 40px; }
.ev-ticker--head .ev-ticker__item {
  font-size: 1.8rem;               /* 28.8px */
  font-weight: 700;
  line-height: 1.2;
}

/* =========================================================
   4. PHOTO GRID — 6 columns, rows = images, Load more button
      (tile size fixed per breakpoint, no scroll, no gaps)
   ========================================================= */
.ev-hl { width: 100%; background: #000; }

.ev-hl__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  width: 100%;
  background: #000;
}

.ev-hl__item {
  position: relative;
  overflow: hidden;
  background: #0b0b0b;
  aspect-ratio: 4 / 3;            /* same tile shape on every screen */
}

.ev-hl__link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.ev-hl__link:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--ev-gold);
  outline-offset: -3px;
}

.ev-hl__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ev-ease), filter .6s var(--ev-ease);
}

.ev-hl__item::after {              /* subtle gold wash on hover */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 187, 70, 0) 40%, rgba(255, 187, 70, .28) 100%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.ev-hl__item:hover .ev-hl__img { transform: scale(1.07); filter: saturate(1.12); }
.ev-hl__item:hover::after      { opacity: 1; }

/* extra images hidden only when JS is running */
.ev-js .ev-hl__item.is-hidden { display: none; }

.ev-hl__more {
  display: flex;
  justify-content: center;
  padding: 36px 16px 40px;
  background: #000;
}
.ev-hl__more[hidden] { display: none; }

.ev-hl__empty {
  margin: 0;
  padding: 32px 16px;
  color: rgba(255, 255, 255, .75);
  text-align: center;
}

.ev-hl__btn {
  font-size: 1.1rem;
  padding: 12px 40px;
}

/* =========================================================
   5. BAND: STATS + CTA (one shared arena photo behind both)
   ========================================================= */
.ev-band {
  position: relative;
  isolation: isolate;
  background: #0a0703;
}

/* bottom-left-visual.png (drawn twice = stronger, like the design) */
.ev-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    url('/static/img/event/bottom-left-visual.png') center top / cover no-repeat,
    url('/static/img/event/bottom-left-visual.png') center top / cover no-repeat;
  pointer-events: none;
}

/* ---- Stats (225px) ---- */
.ev-stats {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 225px;
  padding: 0 24px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(120, 80, 10, .20) 100%),
    linear-gradient(90deg,
      rgba(52, 35, 7, .84) 0%,
      rgba(16, 11, 4, .82) 22%,
      rgba(2, 2, 1, .88) 50%,
      rgba(12, 8, 2, .84) 74%,
      rgba(52, 34, 5, .84) 100%);
}

.ev-stats::after {                 /* bottom line (y = 1665) */
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ev-line-both);
  pointer-events: none;
}

.ev-stats__list {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ev-stat__top {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ev-stat__icon {
  flex: 0 0 auto;
  display: block;
  color: var(--ev-white);
}
.ev-stat__icon--pad     { width: 42px; height: 28px; }
.ev-stat__icon--console { width: 23px; height: 40px; }
.ev-stat__icon--thumb   { width: 41px; height: 38px; }
.ev-stat__icon--bump    { width: 42px; height: 40px; }

.ev-stat__num {
  font-size: 2.4rem;               /* 38.4px */
  font-weight: 700;
  line-height: 1;
  color: var(--ev-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.ev-stat__label {
  margin-top: 3px;
  font-size: .78rem;               /* 12.5px */
  font-weight: 400;
  line-height: 1.4;
  color: var(--ev-white);
}

.ev-stats__divider {
  flex: 0 0 auto;
  width: 1px;
  height: 50px;
  margin: 0 49px;
  background: rgba(255, 255, 255, .58);
}

/* ---- CTA (256px) ---- */
.ev-cta {
  position: relative;
  padding: 49px 24px 58px;
  text-align: center;
  background: linear-gradient(90deg,
    rgba(30, 20, 3, .86) 0%,
    rgba(14, 10, 3, .84) 22%,
    rgba(2, 2, 1, .90) 50%,
    rgba(10, 6, 1, .86) 80%,
    rgba(22, 14, 2, .86) 100%);
}

.ev-cta::after {                   /* bottom line (y = 1922) */
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ev-line-flat);
  pointer-events: none;
}

.ev-cta__title {
  margin: 0;
  font-size: 2.19rem;              /* 35px */
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ev-white);
}

.ev-cta__text {
  margin: 4px 0 20px;
  font-size: 1.03rem;              /* 16.5px */
  font-weight: 500;
  line-height: 1.5;
  color: var(--ev-white);
}

.ev-btn {
  display: inline-block;
  padding: 13px 44px;
  border: 0;
  border-radius: 999px;
  background: var(--ev-gold);
  color: var(--ev-ink);
  font-size: 1.75rem;              /* 28px */
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ev-ease), box-shadow .3s var(--ev-ease), background-color .3s ease;
}

.ev-btn:hover,
.ev-btn:focus-visible {
  background: var(--ev-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 187, 70, .35);
}
.ev-btn:active { transform: translateY(-1px); }
.ev-btn:focus-visible { outline: 2px solid var(--ev-white); outline-offset: 3px; }

/* =========================================================
   6. PLAY BEYOND! band (196px)
   ========================================================= */
.ev-beyond {
  position: relative;
  isolation: isolate;
  padding: 103px 0 51px;
  background:
    radial-gradient(ellipse 520px 200px at 0% 18%, rgba(88, 60, 14, .85) 0%, rgba(88, 60, 14, 0) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(14, 14, 14, .95) 100%),
    linear-gradient(90deg, #120c03 0%, #060504 40%, #030302 100%);
}

/* optional faint team photo (beyond-bg.jpg) */
.ev-beyond::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ev-beyond-img, none) center / cover no-repeat;
  opacity: .22;
  pointer-events: none;
}

.ev-ticker--beyond .ev-ticker__track { gap: 24px; }
.ev-ticker--beyond .ev-ticker__item {
  font-family: 'Exo 2', 'Poppins', Arial, sans-serif;
  font-size: 2.375rem;             /* 38px */
  font-weight: 800;
  font-style: italic;
  line-height: 1.1;
  text-transform: uppercase;
  -webkit-text-stroke-color: rgba(255, 255, 255, .30);
}
.ev-ticker--beyond .ev-ticker__item.is-active {
  -webkit-text-stroke-color: transparent;
}

/* =========================================================
   7. REVEAL ANIMATION (only when JS is running)
   ========================================================= */
.ev-js .ev-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ev-ease), transform .8s var(--ev-ease);
}
.ev-js .ev-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ev-js .ev-reveal { opacity: 1; transform: none; transition: none; }
  .ev-hl__img, .ev-btn, .ev-ticker__item { transition: none; }
}

/* =========================================================
   8. RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
  .ev-stats__divider { margin: 0 32px; }
  .ev-hl__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
  .ev-wrap { padding: 0 40px; }
  .ev-wrap--console { padding-right: 40px; }
  .ev-stage__top::before { width: 46vw; opacity: .8; }
  .ev-console__content { width: min(100%, 640px); }
  .ev-console__text { padding-left: 0; }
  .ev-hero__text { padding-left: 0; }

  .ev-stats { padding: 40px 24px; }
  .ev-stats__list {
    flex-wrap: wrap;
    row-gap: 32px;
    max-width: 640px;
  }
  .ev-stats__divider { display: none; }
  .ev-stat { width: 50%; align-items: center; }
  .ev-stat__top { justify-content: center; }
  .ev-stat__label { text-align: center; }

  .ev-cta__title { font-size: 1.9rem; }
  .ev-btn { font-size: 1.4rem; padding: 12px 36px; }
}

@media (max-width: 767px) {
  .ev-wrap, .ev-wrap--console { padding: 0 20px; }

  .ev-hero { padding: 32px 0; }
  .ev-hero__band { min-height: 300px; padding-bottom: 0; }
  .ev-hero__text,
  .ev-console__text { font-size: 1rem; }

  .ev-console { min-height: 320px; padding: 40px 0; }
  .ev-console__content { margin-left: 0; width: 100%; }
  .ev-stage__top::before { width: 70vw; opacity: .55; }

  .ev-stage__head { padding: 52px 0 24px; }
  .ev-ticker--head .ev-ticker__track { gap: 24px; }
  .ev-ticker--head .ev-ticker__item { font-size: 1.35rem; }

  .ev-hl__grid { grid-template-columns: repeat(2, 1fr); }
  .ev-hl__more { padding: 28px 16px 32px; }

  .ev-stat__num { font-size: 2rem; }
  .ev-cta { padding: 44px 20px 48px; }
  .ev-cta__title { font-size: 1.5rem; }
  .ev-cta__text { font-size: .95rem; }

  .ev-beyond { padding: 64px 0 36px; }
  .ev-ticker--beyond .ev-ticker__item { font-size: 1.6rem; }
}

@media (max-width: 479px) {
  .ev-hl__btn { font-size: 1rem; padding: 11px 32px; }
  .ev-stat { width: 100%; }
  .ev-btn { font-size: 1.15rem; padding: 12px 28px; }
}

/* Hero photo on phones: photo is dimmer so the text stays readable */
@media (max-width: 767px) {
  .ev-hero::before {
    width: 70%;
    opacity: .55;
  }
}