@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/yba-knockout/fonts/font-5.ttf') format('truetype');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/yba-knockout/fonts/font-6.ttf') format('truetype');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/yba-knockout/fonts/font-2.ttf') format('truetype');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/geist-semibold.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --ink: #05090f;
  --paper: #f7f8f5;
  --aqua: #00fdff;
  --muted: #b2bbc7;
  --line: #ffffff24;
  --gutter: clamp(1.5rem, 5vw, 5.5rem);
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-synthesis: none;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
::selection { color: var(--ink); background: var(--aqua); }
a:focus-visible { outline: 2px solid var(--aqua); outline-offset: 6px; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: var(--gutter);
  padding: 1rem 1.5rem;
  color: var(--ink);
  background: var(--aqua);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  padding: 1.5rem var(--gutter);
}

.brand { display: inline-flex; align-items: center; gap: 1.25rem; }
.brand img { width: 105px; height: auto; }
.brand-divider { width: 1px; height: 28px; background: #ffffff45; }
.brand-label { font-size: .75rem; letter-spacing: .18em; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(48rem, 100svh);
  background: var(--ink);
}

.hero-art { position: absolute; inset: -2% 0 -2% 30%; z-index: -3; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-shade {
  position: absolute;
  z-index: -2;
  inset: -5% 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #05090f 0%, #05090ff7 20%, #05090fe0 32%, #05090f75 49%, #05090f08 74%),
    linear-gradient(0deg, #05090fe0 0%, #05090f00 35%, #05090f00 80%, #05090f6b 100%);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: inherit;
  gap: 2.5rem;
  padding: clamp(8.5rem, 16svh, 11rem) var(--gutter) 6.75rem;
}

.eyebrow { margin: 0; font-size: .65rem; line-height: 1.6; letter-spacing: .17em; }
h1 {
  margin: 0 0 0 -.015em;
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(7rem, 11.4vw, 12rem);
  font-weight: 800;
  line-height: .78;
  letter-spacing: -.015em;
}
h1 > span { display: block; }
h1 > span + span { margin-top: .09em; }
.title-dot { color: var(--aqua); }

.featured-game { max-width: 29rem; }
.featured-game h2 { margin: 0 0 1rem; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.featured-logo { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; width: 320px; max-width: 100%; margin-bottom: 1.25rem; }
.featured-logo-brand { width: 62.5%; height: auto; }
.featured-logo-wordmark { position: relative; display: block; width: 100%; aspect-ratio: 2120 / 459; overflow: hidden; }
/* Use the same transparent-margin crop as the game's title screen. */
.featured-logo-wordmark img { position: absolute; width: 102.453%; max-width: none; height: auto; left: -1.226%; top: -32.026%; }
.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: .625rem 1.25rem;
  border-radius: 9999px;
  color: oklch(0.12 0.02 264);
  background: var(--aqua);
  font-family: 'Geist', sans-serif;
  font-style: normal;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25rem;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: 0 0 24px rgb(0 253 255 / .35);
  transition: transform 200ms ease;
}
.cta-pill:hover { transform: translateY(-2px) scale(1.02); }
.cta-pill:active { transform: translateY(0); }
.cta-pill:focus-visible { outline-color: var(--aqua); outline-offset: 4px; }
.explore-link {
  position: absolute;
  bottom: 1.75rem;
  left: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  min-height: 44px;
  color: #d4dae3;
  font-size: .7rem;
}
.explore-link svg { width: 16px; height: 16px; transition: transform 200ms ease; }
.explore-link:hover svg { transform: translateY(3px); }
.hero-caption { position: absolute; right: var(--gutter); bottom: 2.65rem; color: #ffffff70; font-size: .55rem; letter-spacing: .14em; }

.game-directory { padding: clamp(4.5rem, 7vw, 7rem) var(--gutter) 0; scroll-margin-top: 2rem; }
.directory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3.5rem; }
.directory-heading .eyebrow { margin-bottom: 1.25rem; color: var(--aqua); }
.directory-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.75rem); font-weight: 500; line-height: 1.08; letter-spacing: -.055em; }
.directory-heading > p { margin: 0 0 .25rem; max-width: 22rem; color: var(--muted); font-size: .85rem; line-height: 1.8; }
.game-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.game-list li { border-bottom: 1px solid var(--line); }
.game-row { display: grid; grid-template-columns: 160px minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 2rem; min-height: 132px; padding-block: 1rem; transition: color 200ms ease, padding 200ms ease; }
.game-row:focus-visible { outline-offset: -3px; }
.game-thumb { display: block; width: 100%; aspect-ratio: 8 / 5; overflow: hidden; border-radius: 6px; background: #07152f; }
.game-thumb--light { background: #f6f5f1; }
.game-thumb--doublets { background: #0b1220; }
.game-thumb img { width: 100%; height: 100%; object-fit: contain; padding: .85rem; transition: transform 250ms ease; }
.game-thumb--square img { padding: .25rem; }
.game-name { min-width: 0; font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 500; line-height: 1.2; letter-spacing: -.04em; }
.game-category { color: var(--muted); font-size: .8rem; }
.game-action { display: inline-flex; align-items: center; gap: 1rem; font-size: .75rem; }
.game-action svg { width: 20px; height: 20px; transition: transform 200ms ease; }
.game-row:hover { color: var(--aqua); padding-left: .75rem; }
.game-row:hover .game-thumb img { transform: scale(1.035); }
.game-row:hover .game-action svg { transform: translate(2px, -2px); }
.directory-footer { display: flex; align-items: center; justify-content: center; padding-block: 2.25rem; }

.site-footer { display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--line); margin-inline: var(--gutter); padding-block: 2rem; }
.footer-brand { display: flex; align-items: center; min-height: 44px; }
.footer-brand img { width: 81px; height: auto; }

@keyframes enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-intro { animation: enter 700ms 60ms cubic-bezier(.2,.7,.3,1) both; }
  .featured-game { animation: enter 700ms 210ms cubic-bezier(.2,.7,.3,1) both; }
  .hero-art { transform: translateY(var(--hero-depth, 0px)); will-change: transform; }
  .motion-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
  .motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1800px) {
  .hero-art { left: 35%; }
}

@media (max-width: 960px) {
  .hero-art { left: 12%; }
  .hero-shade { background: linear-gradient(90deg, #05090ff5 0%, #05090fd1 26%, #05090f55 62%, #05090f05 100%), linear-gradient(0deg, #05090fe6 0%, transparent 55%, #05090f80 100%); }
  .hero-caption { display: none; }
  .directory-heading > p { font-size: .75rem; }
  .game-row { grid-template-columns: 128px minmax(0, 1fr) auto; gap: .45rem 1.5rem; min-height: 116px; }
  .game-thumb { grid-column: 1; grid-row: 1 / 3; }
  .game-name { grid-column: 2; grid-row: 1; align-self: end; }
  .game-category { grid-column: 2; grid-row: 2; align-self: start; line-height: 1.5; }
  .game-action { grid-column: 3; grid-row: 1 / 3; }
}

@media (max-width: 600px) {
  :root { --gutter: 1.5rem; }
  .site-header { min-height: 88px; padding-block: 1.25rem; }
  .brand { gap: .8rem; }
  .brand img { width: 84px; }
  .brand-divider { height: 21px; }
  .brand-label { font-size: .6rem; letter-spacing: .15em; }
  .hero { min-height: max(45.5rem, 100svh); }
  .hero-art { inset: -1.5% -1.5%; }
  .hero-art img { object-position: 50% 35%; }
  .hero-shade { background: linear-gradient(0deg, #05090ffa 0%, #05090fe3 21%, #05090f5b 55%, #05090f4d 100%), linear-gradient(90deg, #05090f65 0%, #05090f00 100%); }
  .hero-content { padding-top: 7.25rem; padding-bottom: 5.5rem; gap: 7rem; }
  h1 { font-size: clamp(5.65rem, 25.2vw, 9rem); }
  .featured-game { max-width: 100%; }
  .featured-logo { width: 260px; gap: 1rem; }
  .explore-link { bottom: 1.4rem; font-size: .65rem; }
  .game-directory { padding-top: 4.25rem; }
  .directory-heading { display: block; margin-bottom: 2.5rem; }
  .directory-heading .eyebrow { margin-bottom: 1rem; font-size: .58rem; }
  .directory-heading h2 { font-size: 2.3rem; }
  .directory-heading > p { margin-top: 1.5rem; line-height: 1.7; }
  .game-row { grid-template-columns: 96px minmax(0, 1fr) auto; gap: .35rem .85rem; min-height: 101px; padding-block: 1rem; }
  .game-thumb img { padding: .45rem; }
  .game-thumb--square img { padding: .15rem; }
  .game-name { font-size: 1.3rem; }
  .game-category { font-size: .68rem; }
  .game-action { font-size: .65rem; gap: .5rem; }
  .game-action svg { width: 18px; height: 18px; }
  .game-row:hover { padding-left: .4rem; }
  .directory-footer { padding-block: 1.8rem; }
  .site-footer { padding-block: 1.5rem; }
  .footer-brand img { width: 72px; }
}

@media (max-width: 359px) {
  :root { --gutter: 1.25rem; }
  .brand-divider, .brand-label { display: none; }
  .game-row { grid-template-columns: 80px minmax(0, 1fr) auto; column-gap: .65rem; }
  .game-name { font-size: 1.15rem; }
  .game-category { font-size: .62rem; }
  .game-action { gap: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-art { transform: none !important; }
  .game-row:hover { padding-left: 0; }
  .cta-pill:hover, .explore-link:hover svg, .game-row:hover svg, .game-row:hover .game-thumb img { transform: none; }
}
