/*!
 * EsportNow.gg design kit: design-kit.css
 * =======================================
 * Everything needed to render header.html (main bar, mobile menu, optional sub-navs) and
 * footer.html as plain HTML: no Tailwind, no build step. Values come from the production
 * site (Tailwind v4 build of components/Navbar.tsx, Footer.tsx, HomeSubNav.tsx,
 * GameSubNav.tsx, GameLogoIcon.tsx and app/globals.css) and were checked against
 * measurements of https://esportnow.gg in Chrome.
 *
 * How to load it
 *   <link rel="stylesheet" href="design-kit.css">  AFTER your theme stylesheet(s).
 *   Fonts (Rajdhani, Orbitron, Space Grotesk) are self-hosted, as on the live site: fonts/
 *   holds the exact woff2 files esportnow.gg serves, declared with @font-face below. Keep
 *   the fonts/ folder next to this file (the URLs are relative to it). The kit makes no
 *   requests to Google or any other font service. Optional: preload the four latin files,
 *   as the live site does (style-guide.md, section 3).
 *
 * Scope
 *   Every rule is scoped to the kit roots .esn-header, .esn-mobile-menu, .esn-subnav and
 *   .esn-footer (plus :root tokens and the optional .esn-page body class), so nothing here
 *   restyles your theme. Lengths are px (the site's rem values at a 16px root), so a theme
 *   that changes the root font size cannot shrink the header or footer. Breakpoints are the
 *   site's: 40rem (640px), 48rem (768px) and 1400px.
 *
 * Theming API
 *   - Tokens: --esn-* custom properties on :root. Colours are HSL triplets like on the
 *     site, so use them as hsl(var(--esn-primary)) or with alpha hsl(var(--esn-primary) / .5).
 *   - Page accent: data-esn-theme="cs2" | "lol" | "valorant" | "dota2" | "games" on
 *     .esn-header, .esn-subnav and .esn-footer. No attribute = home accent. The resolved
 *     accent is available inside each root as --esn-theme-accent.
 *   - Current page: class "is-active" (plus aria-current="page") on a link.
 *   - Game items carry data-esn-game="cs2|lol|valorant|dota2|games" (icon size, accent).
 *
 * "Live quirk" comments mark places where the kit deliberately reproduces what the live
 * site renders, even where its source code asks for something else (for example glow
 * effects written as invalid CSS, which browsers drop).
 */

/* Self-hosted web fonts: the exact files esportnow.gg serves (its next/font build), with the
   same descriptors and unicode-range subsets, so the browser only downloads a subset when the
   page uses its characters. Licence: SIL Open Font License 1.1, see fonts/OFL-*.txt (keep
   those files with the fonts). */
/* Rajdhani */
@font-face {
  font-family: Rajdhani;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/rajdhani-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; /* latin */
}
@font-face {
  font-family: Rajdhani;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/rajdhani-600-latin-ext.woff2") format("woff2");
  unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; /* latin-ext */
}
@font-face {
  font-family: Rajdhani;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/rajdhani-600-devanagari.woff2") format("woff2");
  unicode-range: U+900-97F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09; /* devanagari */
}
@font-face {
  font-family: Rajdhani;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/rajdhani-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; /* latin */
}
@font-face {
  font-family: Rajdhani;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/rajdhani-700-latin-ext.woff2") format("woff2");
  unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; /* latin-ext */
}
@font-face {
  font-family: Rajdhani;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/rajdhani-700-devanagari.woff2") format("woff2");
  unicode-range: U+900-97F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09; /* devanagari */
}
/* Orbitron */
@font-face {
  font-family: Orbitron;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/orbitron-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; /* latin */
}
/* Space Grotesk */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-300-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; /* latin */
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-300-700-latin-ext.woff2") format("woff2");
  unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; /* latin-ext */
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-300-700-vietnamese.woff2") format("woff2");
  unicode-range: U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB; /* vietnamese */
}

/* Metric-adjusted local fallbacks (same values as the live site's next/font build), used
   until the web fonts have loaded so the layout does not jump. */
@font-face {
  font-family: "Rajdhani Fallback";
  src: local(Arial);
  ascent-override: 102.12%;
  descent-override: 37.99%;
  line-gap-override: 0%;
  size-adjust: 91.07%;
}
@font-face {
  font-family: "Orbitron Fallback";
  src: local(Arial);
  ascent-override: 81.5%;
  descent-override: 19.59%;
  line-gap-override: 0%;
  size-adjust: 124.05%;
}
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local(Arial);
  ascent-override: 89.71%;
  descent-override: 26.62%;
  line-gap-override: 0%;
  size-adjust: 109.69%;
}


/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* Site tokens from app/globals.css (HSL triplets) */
  --esn-background: 220 20% 6%;              /* #0c0e12 */
  --esn-foreground: 180 10% 92%;             /* #e9eded */
  --esn-card: 220 18% 10%;                   /* #15181e */
  --esn-card-foreground: 180 10% 92%;        /* #e9eded */
  --esn-popover: 220 18% 10%;                /* #15181e */
  --esn-popover-foreground: 180 10% 92%;     /* #e9eded */
  --esn-primary: 170 90% 50%;                /* #0df2cc */
  --esn-primary-foreground: 220 20% 6%;      /* #0c0e12 */
  --esn-secondary: 220 15% 16%;              /* #23272f */
  --esn-secondary-foreground: 180 10% 85%;   /* #d5dddd */
  --esn-muted: 220 15% 14%;                  /* #1e2229 */
  --esn-muted-foreground: 215 12% 55%;       /* #7e8a9a */
  --esn-accent: 145 80% 48%;                 /* #18dc6a */
  --esn-accent-foreground: 220 20% 6%;       /* #0c0e12 */
  --esn-destructive: 0 72% 51%;              /* #dc2828 */
  --esn-destructive-foreground: 0 0% 98%;    /* #fafafa */
  --esn-border: 220 15% 18%;                 /* #272c35 */
  --esn-input: 220 15% 18%;                  /* #272c35 */
  --esn-ring: 170 90% 50%;                   /* #0df2cc */
  --esn-radius: 6px;                         /* site: 0.375rem */
  --esn-glow-primary: 170 90% 50%;           /* #0df2cc */
  --esn-glow-accent: 145 80% 48%;            /* #18dc6a */
  --esn-surface-elevated: 220 16% 12%;       /* #1a1d23 */
  --esn-surface-overlay: 220 20% 8%;         /* #101318 */
  --esn-neon-cyan: 170 90% 50%;              /* #0df2cc */
  --esn-neon-green: 145 80% 48%;             /* #18dc6a */
  --esn-live-red: 0 85% 55%;                 /* #ee2b2b */

  /* Page-context accents (Navbar.tsx, Footer.tsx, data/gameConfig.ts accentColor) */
  --esn-accent-home: 160 70% 84%;            /* #baf3e0  header + sub-nav, non-game pages */
  --esn-accent-home-footer: 160 65% 70%;     /* #81e4c3  footer, non-game pages */
  --esn-accent-games: 145 60% 45%;           /* #2eb867  /games page and the "Games" link */
  --esn-accent-cs2: 26 82% 51%;              /* #e9741c */
  --esn-accent-lol: 270 65% 55%;             /* #8c42d7 */
  --esn-accent-valorant: 355 100% 64%;       /* #ff4757 */
  --esn-accent-dota2: 7 64% 46%;             /* #c03c2a */

  /* Font stacks (same family names and fallbacks as the live site) */
  --esn-font-display: Rajdhani, "Rajdhani Fallback", sans-serif;        /* headings, nav: 600, 700 */
  --esn-font-logo: Orbitron, "Orbitron Fallback", sans-serif;           /* wordmark: 700 */
  --esn-font-body: "Space Grotesk", "Space Grotesk Fallback", sans-serif; /* body: 300-700 */
}


/* ==========================================================================
   2. Optional page wrapper: <body class="esn-page">
   ========================================================================== */

.esn-page {
  margin: 0;
  background-color: hsl(var(--esn-background));
  color: hsl(var(--esn-foreground));
  font-family: var(--esn-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* as on the site; clip (not hidden) keeps position: sticky working */
}


/* ==========================================================================
   3. Scoped mini-preflight (Tailwind's reset, limited to the kit roots)
   ========================================================================== */

.esn-header, .esn-header *, .esn-header ::before, .esn-header ::after,
.esn-mobile-menu, .esn-mobile-menu *, .esn-mobile-menu ::before, .esn-mobile-menu ::after,
.esn-subnav, .esn-subnav *, .esn-subnav ::before, .esn-subnav ::after,
.esn-footer, .esn-footer *, .esn-footer ::before, .esn-footer ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid hsl(var(--esn-border));
}
/* The same reset one specificity step higher for the elements themes like to style with
   element or class-qualified selectors ("nav a", "li", ".entry-content img"); text styles
   are re-inherited from the kit root. Component rules below are two classes deep, so they
   still win. */
.esn-header :is(div, span, p, a, img, svg, button, input),
.esn-mobile-menu :is(div, span, p, a, img),
.esn-subnav :is(div, span, a, img),
.esn-footer :is(div, span, p, a, img, svg, ul, li, h4) {
  margin: 0;
  padding: 0;
  border: 0 solid hsl(var(--esn-border));
  font: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
  text-transform: inherit;
  text-align: inherit;
  color: inherit;
}

/* Base typography of each root (the site sets these on <html>/<body>) */
.esn-header, .esn-mobile-menu, .esn-subnav, .esn-footer {
  font-family: var(--esn-font-body);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: normal;
  word-spacing: normal;
  text-align: start;
  text-indent: 0;
  text-transform: none;
  text-shadow: none;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  tab-size: 4;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-variant: normal;
  font-kerning: auto;
  text-rendering: auto;
  color: hsl(var(--esn-foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

.esn-header a, .esn-mobile-menu a, .esn-subnav a, .esn-footer a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}
.esn-header a:is(:hover, :focus, :active, :visited),
.esn-mobile-menu a:is(:hover, :focus, :active, :visited),
.esn-subnav a:is(:hover, :focus, :active, :visited),
.esn-footer a:is(:hover, :focus, :active, :visited) {
  text-decoration: none;
  outline: none; /* keyboard focus rings are re-added below with :focus-visible */
}
.esn-header ul, .esn-header ol, .esn-mobile-menu ul, .esn-subnav ul, .esn-footer ul, .esn-footer ol {
  list-style: none;
}
.esn-header img, .esn-header svg, .esn-mobile-menu img, .esn-mobile-menu svg,
.esn-subnav img, .esn-subnav svg, .esn-footer img, .esn-footer svg {
  display: block;
  vertical-align: middle;
}
.esn-header img, .esn-mobile-menu img, .esn-subnav img, .esn-footer img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}
.esn-header button, .esn-header input {
  font: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
  opacity: 1;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  text-shadow: none;
}
.esn-header button {
  -webkit-appearance: button;
  appearance: button;
}

/* Keyboard focus ring only; mouse clicks show none, as on the site (also overrides theme
   "a:focus { outline: ... }" rules for mouse focus). */
.esn-header :is(a, button):focus:not(:focus-visible),
.esn-mobile-menu a:focus:not(:focus-visible),
.esn-subnav a:focus:not(:focus-visible),
.esn-footer a:focus:not(:focus-visible) {
  outline: none;
}
.esn-header :is(a, button):focus-visible,
.esn-mobile-menu a:focus-visible,
.esn-subnav a:focus-visible,
.esn-footer a:focus-visible {
  outline: 2px solid hsl(var(--esn-ring));
  outline-offset: 2px;
}


/* ==========================================================================
   4. Page accents (data-esn-theme) and per-game accents (data-esn-game)
   ========================================================================== */

.esn-header, .esn-subnav { --esn-theme-accent: var(--esn-accent-home); }
.esn-footer { --esn-theme-accent: var(--esn-accent-home-footer); }

.esn-header[data-esn-theme="games"], .esn-subnav[data-esn-theme="games"], .esn-footer[data-esn-theme="games"] { --esn-theme-accent: var(--esn-accent-games); }
.esn-header[data-esn-theme="cs2"], .esn-subnav[data-esn-theme="cs2"], .esn-footer[data-esn-theme="cs2"] { --esn-theme-accent: var(--esn-accent-cs2); }
.esn-header[data-esn-theme="lol"], .esn-subnav[data-esn-theme="lol"], .esn-footer[data-esn-theme="lol"] { --esn-theme-accent: var(--esn-accent-lol); }
.esn-header[data-esn-theme="valorant"], .esn-subnav[data-esn-theme="valorant"], .esn-footer[data-esn-theme="valorant"] { --esn-theme-accent: var(--esn-accent-valorant); }
.esn-header[data-esn-theme="dota2"], .esn-subnav[data-esn-theme="dota2"], .esn-footer[data-esn-theme="dota2"] { --esn-theme-accent: var(--esn-accent-dota2); }

.esn-header [data-esn-game="games"], .esn-mobile-menu [data-esn-game="games"] { --esn-game-accent: var(--esn-accent-games); }
.esn-header [data-esn-game="cs2"], .esn-mobile-menu [data-esn-game="cs2"] { --esn-game-accent: var(--esn-accent-cs2); }
.esn-header [data-esn-game="lol"], .esn-mobile-menu [data-esn-game="lol"] { --esn-game-accent: var(--esn-accent-lol); }
.esn-header [data-esn-game="valorant"], .esn-mobile-menu [data-esn-game="valorant"] { --esn-game-accent: var(--esn-accent-valorant); }
.esn-header [data-esn-game="dota2"], .esn-mobile-menu [data-esn-game="dota2"] { --esn-game-accent: var(--esn-accent-dota2); }

/* Logo marks (header + footer): strokes, fills and "NOW" follow the page accent */
.esn-header .esn-logo-stroke, .esn-footer .esn-logo-stroke { stroke: hsl(var(--esn-theme-accent)); fill: none; }
.esn-header .esn-logo-fill, .esn-footer .esn-logo-fill { fill: hsl(var(--esn-theme-accent)); }


/* ==========================================================================
   5. Header main bar: <nav class="esn-header">          (Navbar.tsx)
   ========================================================================== */

.esn-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: block;
  background: linear-gradient(180deg, #14171b 0%, #0e1114 50%, #0a0c0f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
  /* The site clips horizontal overflow on <body>: between 768px and ~840px the search
     button runs past the viewport edge and is cut off. Clipping here keeps that look
     without a horizontal scrollbar on pages whose <body> does not clip. */
  overflow-x: clip;
  animation: esn-enter-down 0.35s ease-out backwards;
}

/* Subtle noise overlay */
.esn-header .esn-header__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

.esn-header .esn-header__container {
  position: relative;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 28px;
}

.esn-header .esn-header__bar {
  display: flex;
  align-items: center;
  height: 76px;
}

/* Logo */
.esn-header .esn-header__logo {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  height: 76px;
  color: hsl(var(--esn-foreground));
}
.esn-header .esn-header__logo-mark {
  position: relative;
  width: 48px;
  height: 48px;
}
.esn-header .esn-header__logo-svg {
  width: 48px;
  height: 48px;
  overflow: hidden;
  fill: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  transition-property: transform, translate, scale, rotate;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) {
  .esn-header .esn-header__logo:hover .esn-header__logo-svg { scale: 1.1; }
}
.esn-header .esn-header__wordmark {
  font-family: var(--esn-font-logo);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: none;
  white-space: normal;
  color: hsl(var(--esn-foreground));
}
.esn-header .esn-header__wordmark-accent {
  color: hsl(var(--esn-theme-accent));
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo / nav divider (desktop only) */
.esn-header .esn-header__divider {
  display: none;
  flex-shrink: 0;
  align-self: center;
  width: 1px;
  height: 16px;
  margin-left: 18px;
  margin-right: 4px;
  background: rgba(255, 255, 255, 0.08);
}

/* Desktop game links (desktop only) */
.esn-header .esn-header__links {
  display: none;
  align-items: center;
  gap: 0;
}
.esn-header .esn-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 76px;
  padding: 0 12px;
  font-family: var(--esn-font-display);
  font-size: 12px;
  font-weight: 800; /* Rajdhani ships 600/700 only, so this renders with the 700 face, as on the site */
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: normal;
  color: rgba(255, 255, 255, 0.8);
  background: none;
  box-shadow: none;
  /* Live quirk: the active link's text-shadow glow and its "subtle tint" background are
     invalid CSS on the site and never render, so the kit has neither. */
  text-shadow: none;
  transition: color 150ms ease;
}
.esn-header .esn-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 1.5px;
  border-radius: 2px 2px 0 0;
  background: hsl(var(--esn-game-accent, var(--esn-accent-home)));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 180ms ease, transform 220ms ease;
}
.esn-header .esn-nav-link.is-active { color: #fff; }
.esn-header .esn-nav-link.is-active::after { opacity: 0.45; transform: scaleX(1); }
.esn-header .esn-nav-link:hover { color: #fff; }
.esn-header .esn-nav-link:hover::after { opacity: 0.15; transform: scaleX(0.6); }
.esn-header .esn-nav-link:focus-visible { outline-offset: -2px; }

.esn-header .esn-nav-link__icon {
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.82;
  /* Live quirk: no filter here. The site asks for brightness(1.4) on the CS2 icon and a
     drop-shadow glow on the active icon, but combines them into an invalid filter value,
     so desktop nav icons render unfiltered. */
  filter: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.esn-header .esn-nav-link[data-esn-game="valorant"] .esn-nav-link__icon { width: 18px; }
.esn-header .esn-nav-link[data-esn-game="games"] .esn-nav-link__icon { width: 24px; opacity: 0.6; }
.esn-header .esn-nav-link.is-active .esn-nav-link__icon { opacity: 1; }

/* Search (desktop only). Visual only, as on the live site: it opens, takes focus and
   closes, but there is no search page, so Enter does nothing. */
.esn-header .esn-header__search {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
/* Closed: zero width and a -8px margin that cancels the flex gap, so the closed field
   takes no space at all. Opening/closing animates width 0 <-> 180px and opacity over
   0.25s ease-in-out, like the site's framer-motion animation. */
.esn-header .esn-header__search-field {
  width: 0;
  margin-right: -8px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: width 0.25s ease-in-out, opacity 0.25s ease-in-out, margin-right 0s linear 0.25s, visibility 0s linear 0.25s;
}
.esn-header .esn-header__search.is-open .esn-header__search-field {
  width: 180px;
  margin-right: 0;
  opacity: 1;
  visibility: visible;
  transition: width 0.25s ease-in-out, opacity 0.25s ease-in-out, margin-right 0s, visibility 0s;
}
.esn-header .esn-header__search .esn-search-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 6px 12px;
  font-family: var(--esn-font-body);
  font-size: 11px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  color: hsl(var(--esn-foreground));
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: text;
}
.esn-header .esn-header__search .esn-search-input:focus,
.esn-header .esn-header__search .esn-search-input:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
}
.esn-header .esn-header__search .esn-search-input::placeholder {
  color: hsl(var(--esn-muted-foreground));
  opacity: 1;
}
.esn-header .esn-search-button {
  display: block;
  width: 36px;
  height: 36px;
  min-width: auto;
  min-height: auto;
  margin: 0;
  padding: 8px;
  font-family: var(--esn-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.35);
  background: transparent;
  border-width: 0; /* width only: keeps the kit border colour */
  border-radius: 9999px;
  box-shadow: none;
  text-shadow: none;
  cursor: default;
  transition: all 0.2s ease;
}
.esn-header .esn-search-button:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.07);
  transform: scale(1.05);
}
.esn-header .esn-search-button__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile menu toggle (below 768px only) */
.esn-header .esn-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: auto;
  min-height: auto;
  margin: 0 0 0 auto;
  padding: 0;
  font-family: var(--esn-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border-width: 0; /* width only: keeps the kit border colour */
  border-radius: 6px;
  box-shadow: none;
  text-shadow: none;
  cursor: default;
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.esn-header .esn-menu-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
}
.esn-header .esn-menu-toggle__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==========================================================================
   6. Mobile menu: <div class="esn-mobile-menu" id="esn-mobile-menu" hidden>
   ========================================================================== */

.esn-mobile-menu {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 49;
  display: block;
  overflow-y: auto;
  background: rgba(7, 9, 12, 0.97);
  animation: esn-fade-in 0.18s ease-in-out both;
}
.esn-mobile-menu[hidden] { display: none; }
.esn-mobile-menu.is-closing { animation: esn-fade-out 0.18s ease-in-out both; }

.esn-mobile-menu .esn-mobile-menu__inner {
  padding: 24px 20px 40px;
}
.esn-mobile-menu .esn-mobile-menu__label {
  margin: 0 0 12px;
  font-family: var(--esn-font-display);
  font-size: 10px;
  font-weight: 400; /* no 400 face is loaded, so this renders with Rajdhani 600, as on the site */
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--esn-muted-foreground) / 0.4);
  color: color-mix(in oklab, hsl(var(--esn-muted-foreground)) 40%, transparent);
}
.esn-mobile-menu .esn-mobile-menu__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.esn-mobile-menu .esn-menu-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: hsl(var(--esn-foreground));
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  box-shadow: none;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.esn-mobile-menu .esn-menu-tile--wide {
  grid-column: span 2 / span 2;
  padding: 12px 16px;
}
.esn-mobile-menu .esn-menu-tile.is-active {
  border-color: hsl(var(--esn-game-accent, var(--esn-accent-home)) / 0.5);
  background: hsl(var(--esn-game-accent, var(--esn-accent-home)) / 0.08);
  box-shadow: 0 0 16px hsl(var(--esn-game-accent, var(--esn-accent-home)) / 0.12);
}
.esn-mobile-menu .esn-menu-tile--wide.is-active {
  border-color: rgba(100, 255, 150, 0.4);
  background: rgba(100, 255, 150, 0.06);
  box-shadow: none;
}
.esn-mobile-menu .esn-menu-tile__icon {
  display: inline-block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.esn-mobile-menu .esn-menu-tile[data-esn-game="valorant"] .esn-menu-tile__icon { width: 25px; }
.esn-mobile-menu .esn-menu-tile[data-esn-game="dota2"] .esn-menu-tile__icon { width: 23px; }
.esn-mobile-menu .esn-menu-tile[data-esn-game="cs2"] .esn-menu-tile__icon { filter: brightness(1.4); }
/* Live quirk: the active tile's icon glow is invalid CSS on the site and also cancels the
   CS2 brightness, so an active tile's icon renders unfiltered. */
.esn-mobile-menu .esn-menu-tile.is-active .esn-menu-tile__icon { filter: none; }
.esn-mobile-menu .esn-menu-tile--wide .esn-menu-tile__icon { opacity: 0.7; }
.esn-mobile-menu .esn-menu-tile__label {
  font-family: var(--esn-font-display);
  font-size: 13px;
  font-weight: 800; /* renders with the 700 face */
  line-height: 1.5;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.esn-mobile-menu .esn-menu-tile.is-active .esn-menu-tile__label { color: #fff; }
/* As on the site, the "All Games" label keeps its 70% white when active. */
.esn-mobile-menu .esn-menu-tile--wide.is-active .esn-menu-tile__label { color: rgba(255, 255, 255, 0.7); }

.esn-mobile-menu .esn-mobile-menu__divider {
  height: 1px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.06);
}
.esn-mobile-menu .esn-mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.esn-mobile-menu .esn-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-family: var(--esn-font-display);
  font-size: 15px;
  font-weight: 800; /* renders with the 700 face */
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border-style: solid;
  border-width: 0 0 1px;
  border-color: rgba(255, 255, 255, 0.05);
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.esn-mobile-menu .esn-menu-row.is-active { color: #fff; }
.esn-mobile-menu .esn-menu-row__chevron {
  font-size: 12px;
  line-height: 16px;
  opacity: 0.3;
}


/* ==========================================================================
   7. Sub-navs (optional): .esn-subnav--home (HomeSubNav.tsx), .esn-subnav--game (GameSubNav.tsx)
   ========================================================================== */

.esn-subnav {
  position: sticky;
  top: 76px;
  z-index: 40;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.esn-subnav--home {
  background: linear-gradient(180deg, #0e1013 0%, #090a0c 100%);
  animation: esn-enter-down 0.35s ease-out 0.1s backwards;
}
.esn-subnav--game {
  background: linear-gradient(180deg, #0c0f12 0%, #080a0d 100%);
  animation: esn-fade-in 0.35s ease-out 0.1s backwards;
}

.esn-subnav .esn-subnav__container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}
.esn-subnav--game .esn-subnav__container {
  padding: 0 16px;
  overflow-x: hidden;
}
.esn-subnav .esn-subnav__track {
  display: flex;
  align-items: center;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.esn-subnav .esn-subnav__track::-webkit-scrollbar { display: none; }
.esn-subnav--game .esn-subnav__track { padding-inline-end: 16px; }

.esn-subnav .esn-subnav__item {
  position: relative;
  display: flex;
  align-items: center;
  font-family: var(--esn-font-display);
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  /* Live quirk: the active item's text-shadow glow is invalid CSS on the site and never renders. */
  text-shadow: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.esn-subnav .esn-subnav__item:hover { color: #fff; }
.esn-subnav .esn-subnav__item:focus-visible { outline-offset: -2px; }
.esn-subnav .esn-subnav__underline,
.esn-subnav .esn-subnav__hover-line {
  position: absolute;
  bottom: 0;
  pointer-events: none;
}
/* Live quirk: the active underline's glow (box-shadow) is invalid CSS on the site and never renders. */

/* Home sub-nav */
.esn-subnav--home .esn-subnav__item {
  height: 46px;
  padding: 0 16px;
  letter-spacing: 0.13em;
}
.esn-subnav--home .esn-subnav__item.is-active {
  color: #fff;
  font-weight: 900; /* renders with the 700 face */
  letter-spacing: 0.14em;
}
.esn-subnav--home .esn-subnav__underline {
  display: none;
  left: 16px;
  right: 16px;
  height: 1.5px;
  border-radius: 9999px;
  background-color: hsl(var(--esn-theme-accent));
}
.esn-subnav--home .esn-subnav__item.is-active .esn-subnav__underline { display: block; }
.esn-subnav--home .esn-subnav__hover-line {
  left: 16px;
  right: 16px;
  height: 1px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.12);
  transform-origin: left;
  scale: 0 1;
  transition-property: transform, translate, scale, rotate;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Game sub-nav */
.esn-subnav--game .esn-subnav__item {
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  letter-spacing: 0.12em;
}
.esn-subnav--game .esn-subnav__item.is-active {
  color: #fff;
  font-weight: 800; /* renders with the 700 face */
  letter-spacing: 0.13em;
}
.esn-subnav--game .esn-subnav__underline {
  left: 8px;
  right: 8px;
  height: 1.5px;
  border-radius: 2px 2px 0 0;
  background-color: hsl(var(--esn-theme-accent));
  transform: scaleX(0);
  transform-origin: center;
  transition-property: transform, translate, scale, rotate;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.esn-subnav--game .esn-subnav__item.is-active .esn-subnav__underline { transform: scaleX(1); }
.esn-subnav--game .esn-subnav__hover-line {
  left: 8px;
  right: 8px;
  height: 1px;
  border-radius: 2px 2px 0 0;
  background-color: rgba(255, 255, 255, 0.12);
  transform-origin: center;
  scale: 0 1;
  transition-property: transform, translate, scale, rotate;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.esn-subnav .esn-subnav__item.is-active .esn-subnav__hover-line { display: none; }
@media (hover: hover) {
  .esn-subnav .esn-subnav__item:hover .esn-subnav__hover-line { scale: 1 1; }
}

.esn-subnav--game .esn-subnav__game-icon {
  display: none;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 12px;
  object-fit: contain;
  opacity: 0.9;
}
.esn-subnav--game[data-esn-theme="cs2"] .esn-subnav__game-icon { filter: brightness(1.4); }
.esn-subnav--game[data-esn-theme="valorant"] .esn-subnav__game-icon { width: 18px; }


/* ==========================================================================
   8. Footer: <footer class="esn-footer">                (Footer.tsx)
   ========================================================================== */

.esn-footer {
  position: relative;
  display: block;
  margin-top: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #14171b 0%, #0e1114 50%, #0a0c0f 100%);
}
/* Live quirks: the 2px top accent line and the glow orb behind the logo use invalid
   colours on the site and render nothing. The line is kept as a transparent 2px spacer
   (it shifts the content), the orb is omitted. */
.esn-footer .esn-footer__accent-line {
  width: 100%;
  height: 2px;
}
.esn-footer .esn-footer__container {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 56px 28px 0;
}
.esn-footer .esn-footer__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

/* Brand column */
.esn-footer .esn-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: hsl(var(--esn-foreground));
}
.esn-footer .esn-footer__logo-mark {
  position: relative;
  width: 32px;
  height: 32px;
}
.esn-footer .esn-footer__logo-svg {
  width: 32px;
  height: 32px;
  overflow: hidden;
  fill: none;
  transition-property: transform, translate, scale, rotate;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) {
  .esn-footer .esn-footer__logo:hover .esn-footer__logo-svg { scale: 1.1; }
}
.esn-footer .esn-footer__wordmark {
  font-family: var(--esn-font-logo);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: none;
  color: hsl(var(--esn-foreground));
}
.esn-footer .esn-footer__wordmark-accent { color: hsl(var(--esn-theme-accent)); }
.esn-footer .esn-footer__wordmark-tld {
  margin-left: 2px;
  font-size: 12px;
  line-height: 16px;
  color: hsl(var(--esn-muted-foreground) / 0.5);
  color: color-mix(in oklab, hsl(var(--esn-muted-foreground)) 50%, transparent);
}
.esn-footer .esn-footer__description {
  max-width: 300px;
  margin: 0;
  font-family: var(--esn-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: normal;
  color: hsl(var(--esn-muted-foreground) / 0.6);
  color: color-mix(in oklab, hsl(var(--esn-muted-foreground)) 60%, transparent);
}
.esn-footer .esn-footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.esn-footer .esn-footer__social-link {
  color: rgba(255, 255, 255, 0.3);
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.esn-footer .esn-footer__social-link:hover { color: rgba(255, 255, 255, 0.75); }
.esn-footer .esn-footer__social-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Link columns */
.esn-footer .esn-footer__heading {
  margin: 0 0 20px;
  font-family: var(--esn-font-display);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.esn-footer .esn-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.esn-footer .esn-footer__item {
  margin: 0;
  padding: 0;
  list-style: none;
}
.esn-footer .esn-footer__item:not(:last-child) { margin-bottom: 12px; }
.esn-footer .esn-footer__game-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--esn-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.esn-footer .esn-footer__game-link:hover {
  color: rgba(255, 255, 255, 0.95);
  transform: translateX(3px);
}
.esn-footer .esn-footer__game-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.5;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.esn-footer .esn-footer__game-link[data-esn-game="valorant"] .esn-footer__game-icon { width: 16px; }
.esn-footer .esn-footer__game-link[data-esn-game="cs2"] .esn-footer__game-icon { filter: brightness(1.4); }
@media (hover: hover) {
  .esn-footer .esn-footer__game-link:hover .esn-footer__game-icon { opacity: 1; }
}
.esn-footer .esn-footer__link {
  display: inline-block;
  font-family: var(--esn-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.esn-footer .esn-footer__link:hover {
  color: rgba(255, 255, 255, 0.95);
  transform: translateX(3px);
}

/* Divider + bottom bar */
.esn-footer .esn-footer__divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.07) 20%, rgba(255, 255, 255, 0.07) 80%, transparent 100%);
}
.esn-footer .esn-footer__bottom {
  padding: 20px 0;
}
.esn-footer .esn-footer__bottom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.esn-footer .esn-footer__copyright {
  margin: 0;
  font-family: var(--esn-font-body);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.28);
}
.esn-footer .esn-footer__legal {
  display: flex;
  align-items: center;
  gap: 20px;
}
.esn-footer .esn-footer__legal-link {
  font-family: var(--esn-font-body);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.25);
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.esn-footer .esn-footer__legal-link:hover { color: rgba(255, 255, 255, 0.7); }


/* ==========================================================================
   9. Responsive (same breakpoints as the site)
   ========================================================================== */

/* sm: 40rem / 640px */
@media (min-width: 40rem) {
  .esn-subnav--game .esn-subnav__container { padding: 0 32px; }
  .esn-footer .esn-footer__bottom-row { flex-direction: row; }
}

/* md: 48rem / 768px: desktop header, 12-column footer */
@media (min-width: 48rem) {
  .esn-header .esn-header__divider { display: block; }
  .esn-header .esn-header__links { display: flex; }
  .esn-header .esn-header__search { display: flex; }
  .esn-header .esn-menu-toggle { display: none; }
  .esn-mobile-menu, .esn-mobile-menu[hidden] { display: none; }
  .esn-subnav--game .esn-subnav__game-icon { display: inline-block; }
  .esn-footer .esn-footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .esn-footer .esn-footer__brand { grid-column: span 5 / span 5; }
  .esn-footer .esn-footer__col--games { grid-column: span 4 / span 4; }
  .esn-footer .esn-footer__col--company { grid-column: span 3 / span 3; }
}

/* Container: full width with no max-width until 1400px, then 1400px centred */
@media (min-width: 1400px) {
  .esn-header .esn-header__container,
  .esn-subnav .esn-subnav__container,
  .esn-footer .esn-footer__container { max-width: 1400px; }
}


/* ==========================================================================
   10. Animations (replace the site's framer-motion entrance animations)
   ========================================================================== */

@keyframes esn-enter-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes esn-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes esn-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .esn-header,
  .esn-subnav--home,
  .esn-subnav--game,
  .esn-mobile-menu,
  .esn-mobile-menu.is-closing { animation: none; }
  .esn-header .esn-header__search-field,
  .esn-header .esn-header__search.is-open .esn-header__search-field { transition: none; }
}
