/* ES TRAINERS — FF MAX page styles (ffmax.css). Self-contained: only the rules the BGMI page uses.
   Shared design tokens, navbar, buttons, tournament cards, WhatsApp block and footer match the homepage. */
:root {
  
  --white: #ffffff;
  --surface: #f5f7fb;
  --surface-alt: #eceff5;
  --ink: #0b0f17;
  --ink-soft: #565e6d;
  --ink-faint: #8891a0;
  --line: #e1e5ed;

  --blue: #1652f0;
  --blue-deep: #09267a;
  --blue-bright: #5a8dff;
  --blue-wash: #eaf0ff;
  --ffmax: #e6572b;
  --ffmax-deep: #2b1208;

  --success: #1f8a4c;

  
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  
  --space-1: 0.4rem;
  --space-2: 0.8rem;
  --space-3: 1.2rem;
  --space-4: 1.6rem;
  --space-5: 2.4rem;
  --space-6: 3.2rem;
  --space-7: 4.8rem;
  --space-8: 6.4rem;
  --space-9: 9.6rem;

  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 15, 23, 0.06), 0 1px 1px rgba(11, 15, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 15, 23, 0.08);
  --shadow-lg: 0 20px 48px rgba(11, 15, 23, 0.14);
  --shadow-blue: 0 12px 32px rgba(22, 82, 240, 0.22);

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 16px;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.no-scroll { overflow: hidden; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.section {
  padding: var(--space-8) 0;
}
.section--tight { padding: var(--space-7) 0; }
.section-head {
  max-width: 620px;
  margin-bottom: var(--space-6);
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.section-head p {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  min-height: 48px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[hidden] { display: none; }
.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover { background: #0f45d6; box-shadow: 0 16px 36px rgba(22, 82, 240, 0.3); }
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-3) 0;
  background: rgba(255, 255, 255, 0.85);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: var(--space-2) 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}
.brand__name { line-height: 1; }
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
.nav__links a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: var(--space-3); }
.nav__actions .btn--primary { display: none; padding: 0.65rem 1.3rem; min-height: 42px; }
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
}
.nav__toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(11, 15, 23, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
}
.mobile-menu--open { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(86vw, 360px);
  background: var(--white);
  padding: var(--space-8) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 48px rgba(11,15,23,0.18);
}
.mobile-menu--open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__links { display: flex; flex-direction: column; gap: var(--space-2); }
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
}
.tournaments { background: var(--surface); }
.tournaments__grid {
  display: grid;
  gap: var(--space-4);
}
.tcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.tcard:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #c9d3e6; }
.tcard--ffmax { border-top: 3px solid var(--ffmax); }
.tcard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.tcard__badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
  background: var(--blue-wash);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}
.tcard__status {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
  text-transform: capitalize;
}
.tcard__status--live {
  color: #c2122b;
  background: #ffe9ec;
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
}
.tcard__title { font-size: 1.25rem; margin-bottom: var(--space-3); }
.tcard__meta { display: grid; gap: var(--space-2); margin: 0 0 var(--space-4); }
.tcard__meta > div { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.tcard__meta dt { display: flex; align-items: center; gap: 0.4rem; color: var(--ink-faint); font-size: 0.85rem; }
.tcard__meta dt svg { width: 14px; height: 14px; flex-shrink: 0; }
.tcard__meta dd { margin: 0; font-weight: 600; font-size: 0.92rem; }
.tcard__cta {
  display: block;
  text-align: center;
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-weight: 600;
  font-size: 0.92rem;
}
.tcard__cta[hidden] { display: none; }
.tempty {
  grid-column: 1 / -1;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  color: var(--ink-faint);
  background: var(--white);
}
.tempty__icon { width: 40px; height: 40px; margin: 0 auto var(--space-3); color: var(--ink-faint); }
.tempty--error { color: #a3402b; border-color: #f0cdbf; background: #fff6f2; }
.tnotice {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--ink-faint);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
}
.whatsapp {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.whatsapp__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: #e9fbf1;
  color: #1f8a4c;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}
.whatsapp h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
.whatsapp p { margin-top: var(--space-3); color: var(--ink-soft); max-width: 52ch; }
.whatsapp__actions { margin-top: var(--space-5); }
.whatsapp__stack {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
  overflow: hidden;
}
.wa-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  width: fit-content;
  max-width: 90%;
  white-space: nowrap;
}
.wa-chip--in { margin-left: 8%; }
.wa-chip--in-2 { margin-left: 14%; }
.wa-chip--in-3 { margin-left: 4%; }
.wa-chip__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1f8a4c;
  flex-shrink: 0;
}
.footer { padding: var(--space-7) 0 var(--space-5); border-top: 1px solid var(--line); }
.footer__top {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
}
.footer__desc { margin-top: var(--space-3); color: var(--ink-soft); max-width: 34ch; font-size: 0.95rem; }
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: var(--space-3);
}
.footer__col ul { display: grid; gap: var(--space-2); }
.footer__col a { color: var(--ink-soft); font-size: 0.95rem; transition: color var(--transition); }
.footer__col a:hover { color: var(--blue); }
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -60px;
  background: var(--blue);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition);
}
.skip-link:focus { top: var(--space-3); }
@media (min-width: 480px) {
  .btn-row { flex-wrap: nowrap; }
}
@media (min-width: 768px) {
  .container { padding: 0 var(--space-5); }
  .tournaments__grid { grid-template-columns: repeat(2, 1fr); }
  .whatsapp { grid-template-columns: 1.3fr 0.7fr; text-align: left; }
  .footer__top { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__actions .btn--primary { display: inline-flex; }
  .nav__toggle { display: none; }
  .mobile-menu { display: none; }
  .section { padding: var(--space-9) 0; }
  .tournaments__grid { grid-template-columns: repeat(3, 1fr); }
}
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 640ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.btn { will-change: transform; }
.tournaments__grid > [data-reveal]:nth-child(2) { transition-delay: 100ms; }
.tournaments__grid > [data-reveal]:nth-child(3) { transition-delay: 200ms; }
.whatsapp__icon { position: relative; }
.whatsapp__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid rgba(31, 138, 76, 0.45);
  animation: attentionPulse 2.6s ease-out infinite;
}
@keyframes attentionPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp__icon::after { animation: none; display: none; }
}
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { width: 100%; }
.ffmax-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(520px, 82vh, 700px);
  padding: calc(var(--space-8) + 48px) 0 var(--space-7);
  color: var(--white);
  background: #0a0201;
}
.ffmax-hero__atmosphere {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(120% 90% at 78% 62%, rgba(230,87,43,0.48), transparent 58%),
    linear-gradient(200deg, var(--ffmax-deep), #0a0201 72%);
}
.ffmax-hero__art {
  position: absolute; top: 0; right: 0; z-index: -2;
  height: 100%; width: 100%;
  pointer-events: none;
}
.ffmax-hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(10,2,1,0.94) 0%, rgba(10,2,1,0.66) 34%, rgba(10,2,1,0.2) 66%, transparent 90%);
}
.ffmax-hero__inner { position: relative; }
.ffmax-hero h1 { font-size: clamp(3.2rem, 11vw, 5.6rem); color: var(--white); line-height: 1; }
.ffmax-hero__lead { margin-top: var(--space-3); color: rgba(255,255,255,0.75); max-width: 44ch; font-size: 1.1rem; }
.ffmax-hero .btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.ffmax-hero__badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.75rem 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
  width: fit-content;
}
.ffmax-hero__badge svg { width: 15px; height: 15px; flex-shrink: 0; }
@media (min-width: 900px) {
  .ffmax-hero__art {
    width: auto; aspect-ratio: 1 / 1;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%);
            mask-image: linear-gradient(to right, transparent 0%, #000 34%);
  }
  .ffmax-hero__overlay {
    background:
      linear-gradient(to right, rgba(10,2,1,0.9) 0%, rgba(10,2,1,0.5) 42%, transparent 70%),
      linear-gradient(to top, rgba(10,2,1,0.85) 0%, transparent 45%);
  }
}
.binfo { background: var(--white); }
.binfo__grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.binfo__item {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ffmax);
  border-radius: var(--radius-md);
  background: var(--white);
}
.binfo__item h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.binfo__item p { color: var(--ink-soft); font-size: 0.95rem; }
.binfo__item a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.whatsapp > * { min-width: 0; }
@media (max-width: 719px) {
  .whatsapp { grid-template-columns: minmax(0, 1fr); padding: var(--space-5) var(--space-4); }
}
@keyframes chuteDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5px, 8px); }
}
.ffmax-hero__chute { animation: chuteDrift 9s ease-in-out infinite; }
.ffmax-hero__chute:nth-of-type(2) { animation-duration: 11s; animation-delay: 1.5s; }
.ffmax-hero__chute:nth-of-type(3) { animation-duration: 13s; animation-delay: 3s; }
@keyframes dropDash { from { stroke-dashoffset: 26; } to { stroke-dashoffset: 0; } }
.ffmax-hero__dropline { animation: dropDash 3s linear infinite; }
@keyframes emberDrift {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-10px); opacity: 0.7; }
}
.ffmax-hero__ember { animation: emberDrift 5s ease-in-out infinite; }
.ffmax-hero__ember:nth-of-type(2) { animation-delay: 1.2s; }
.ffmax-hero__ember:nth-of-type(3) { animation-delay: 2.4s; }
.ffmax-hero__ember:nth-of-type(4) { animation-delay: 3.6s; }
@keyframes streakBreathe {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 0.85; transform: translateX(-6px); }
}
.ffmax-hero__streaks { animation: streakBreathe 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .ffmax-hero__chute, .ffmax-hero__dropline, .ffmax-hero__ember, .ffmax-hero__streaks { animation: none; }
}
.tcard__meta > div[hidden] { display: none; }
