/* ------------------------------------------------------------------ */
/*  PivitSix — design tokens                                           */
/*  HSL channels kept separate (shadcn convention) so they can be      */
/*  composed with alpha: hsl(var(--foreground) / 0.5)                  */
/* ------------------------------------------------------------------ */
:root {
  --background: 0 0% 5%;
  --foreground: 0 0% 95%;
  --muted-foreground: 0 0% 55%;
  --border: 0 0% 15%;
  --club-green: 134 50% 56%;
  --club-blue: 220 91% 55%;
  --radius: 0.5rem;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

/* ---- reset ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: hsl(var(--border));
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  line-height: 1.5;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---- nav --------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.nav__link {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__link:hover {
  color: hsl(var(--foreground));
}

/* ---- hero -------------------------------------------------------- */
.hero-wrap {
  position: relative;
  overflow: hidden;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 56rem;
  padding: 6rem 1.5rem 8rem;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
}

/* Wireframe soccer ball — hidden-line lattice, panels ignite as it spins */
.hero__ball {
  position: absolute;
  top: 50%;
  right: clamp(-4rem, 4vw, 8rem);
  width: clamp(300px, 44vw, 600px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.9;
}

@media (max-width: 767px) {
  .hero__ball {
    width: 78vw;
    right: -26vw;
    opacity: 0.5;
  }
}

.hero__pattern svg {
  width: 100%;
  height: 100%;
}

.hero__title {
  position: relative;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero__lede {
  position: relative;
  font-size: 1.125rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsl(var(--club-green));
  color: hsl(0 0% 5%);
  padding: 0.75rem 1.5rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  opacity: 0.9;
}

.btn__icon {
  width: 1rem;
  height: 1rem;
}

/* ---- section divider --------------------------------------------- */
.rule {
  border-top-width: 1px;
}

/* ---- about ------------------------------------------------------- */
.about {
  padding: 5rem 1.5rem;
}

.about__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.about__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 2rem;
  max-width: 32rem;
  margin-bottom: 3rem;
}

/* ---- team grid ---------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

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

.team__photo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  object-fit: cover;
  margin-bottom: 0.75rem;
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

/* pressed feedback while tapping out the hidden left-to-right sequence */
.team__photo--tap {
  transform: scale(0.92);
}

.team__name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.team__role {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.125rem;
}

.team__email {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.team__email:hover {
  color: hsl(var(--foreground));
}

/* ---- footer ------------------------------------------------------- */
.footer {
  border-top-width: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1.5rem;
}

.footer__text {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ---- responsive: sm (640px) --------------------------------------- */
@media (min-width: 640px) {
  .team {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- responsive: md (768px) --------------------------------------- */
@media (min-width: 768px) {
  .nav {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .hero {
    padding: 10rem 3rem 11rem;
  }

  .hero__title {
    font-size: 3.75rem;
  }

  .hero__lede {
    font-size: 1.25rem;
  }

  .about {
    padding: 7rem 3rem;
  }

  .about__title {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .team {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .footer {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* ---- responsive: lg (1024px) --------------------------------------- */
@media (min-width: 1024px) {
  .nav {
    padding-left: 5rem;
    padding-right: 5rem;
  }

  .hero {
    padding-left: 5rem;
    padding-right: 5rem;
  }

  .hero__title {
    font-size: 4.5rem;
  }

  .about {
    padding-left: 5rem;
    padding-right: 5rem;
  }

  .footer {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

/* ------------------------------------------------------------------ */
/*  PIVITSIX FC — hidden mini-game overlay (↑ ↑ ↓ ↓ ← → A B)           */
/* ------------------------------------------------------------------ */
.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(8, 8, 8, 0.95);
}

.game-canvas {
  width: min(94vw, 1080px, calc(72vh * 1.6));
  aspect-ratio: 8 / 5;
  image-rendering: pixelated;
}

.game-hud {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  font-family: var(--font-display);
}

.game-hud__team {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.game-hud__team--home {
  color: hsl(var(--club-green));
}

.game-hud__score {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.game-hint {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.game-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  padding: 0.25rem;
  font-size: 1.75rem;
  line-height: 1;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-close:hover {
  color: hsl(var(--foreground));
}

.game-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: hsl(var(--club-green));
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.7);
  opacity: 0;
}

.game-flash.show {
  animation: game-pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

.game-flash--bad {
  color: hsl(0 0% 70%);
}

@keyframes game-pop {
  from {
    transform: scale(0.55);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
