:root {
  --fb-bg: #030806;
  --fb-panel: rgba(8, 20, 14, 0.88);
  --fb-green: #63c76a;
  --fb-green-strong: #35a853;
  --fb-text: #f4f7f4;
  --fb-muted: #b7c2b8;
  --fb-border: rgba(99, 199, 106, 0.35);
  --fb-shadow: rgba(0, 0, 0, 0.45);
  --fb-max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--fb-bg);
  color: var(--fb-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(99, 199, 106, 0.18), transparent 34rem),
    linear-gradient(135deg, rgba(3, 8, 6, 0.96), rgba(6, 18, 11, 0.96)),
    var(--fb-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(99, 199, 106, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 199, 106, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18), transparent 18%, rgba(0, 0, 0, 0.34)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 5px);
  opacity: 0.72;
}

a {
  color: var(--fb-green);
  text-decoration-color: rgba(99, 199, 106, 0.45);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: #90e897;
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(99, 199, 106, 0.75);
  outline-offset: 4px;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  width: min(var(--fb-max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  padding: 26px 0;
}

.home-splash-header {
  display: flex;
  justify-content: center;
  padding-top: clamp(72px, 14vh, 132px);
  padding-bottom: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(210px, 66vw);
  height: auto;
}

main {
  flex: 1;
  width: 100%;
}

.home-main,
.not-found-main,
.legal-main {
  display: grid;
  align-items: center;
  padding: 48px 20px 76px;
}

.home-hero,
.not-found-hero,
.legal-panel {
  width: min(var(--fb-max-width), 100%);
  margin: 0 auto;
}

.home-hero {
  max-width: 760px;
  padding: clamp(40px, 8vw, 84px) 0;
}

.home-coming-soon {
  position: relative;
  align-items: center;
  min-height: 0;
  padding-top: 0;
}

.home-coming-soon .home-hero {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 520px;
  padding: 0;
  text-align: center;
  transform: translate(-50%, -50%);
}

.home-coming-soon h1 {
  margin: 0;
  color: var(--fb-muted);
  font-size: clamp(2.1rem, 7vw, 4.25rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.splash-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(480px, 88vw);
  text-decoration: none;
}

.splash-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(99, 199, 106, 0.18));
}

.kicker {
  margin: 0 0 14px;
  color: var(--fb-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--fb-text);
  font-size: clamp(2.55rem, 8vw, 6.75rem);
  line-height: 0.95;
}

h2 {
  margin: 34px 0 10px;
  color: var(--fb-text);
  font-size: 1.18rem;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  margin-bottom: 12px;
  color: var(--fb-text);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.35;
}

.muted,
.status-note,
.last-updated,
.legal-panel p,
.legal-panel li {
  color: var(--fb-muted);
}

.status-note {
  margin-bottom: 34px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
}

.link-row a,
.site-footer a {
  font-weight: 700;
}

.not-found-shell {
  overflow: hidden;
}

.not-found-main {
  position: relative;
  min-height: 68vh;
}

.not-found-main::before {
  content: "";
  position: absolute;
  inset: -14% 0 auto;
  height: 62%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(99, 199, 106, 0.34), transparent 34%),
    linear-gradient(to bottom, rgba(99, 199, 106, 0.1), transparent);
  filter: blur(2px);
}

.not-found-main::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: 6%;
  width: min(52vw, 620px);
  aspect-ratio: 1.9;
  border: 1px solid rgba(99, 199, 106, 0.14);
  border-radius: 50% 50% 0 0;
  background:
    linear-gradient(to top, rgba(99, 199, 106, 0.12), transparent),
    repeating-linear-gradient(90deg, rgba(99, 199, 106, 0.18) 0 1px, transparent 1px 34px);
  opacity: 0.34;
  transform: perspective(520px) rotateX(58deg);
}

/* Future stadium/supporter background image can be layered on .not-found-main. */

.not-found-hero {
  position: relative;
  max-width: 820px;
  text-align: left;
}

.error-code {
  margin: 0 0 10px;
  color: var(--fb-green);
  font-size: clamp(6.2rem, 22vw, 15rem);
  font-weight: 900;
  line-height: 0.78;
  text-shadow: 0 0 34px rgba(99, 199, 106, 0.28), 0 10px 40px var(--fb-shadow);
}

.not-found-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 6vw, 5.15rem);
  letter-spacing: 0.03em;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 20px;
  padding: 12px 22px;
  border: 1px solid rgba(144, 232, 151, 0.65);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--fb-green), var(--fb-green-strong));
  color: #031007;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34), 0 0 28px rgba(99, 199, 106, 0.18);
}

.primary-action:hover,
.primary-action:focus-visible {
  color: #031007;
  transform: translateY(-1px);
}

.support-panel {
  width: min(520px, 100%);
  margin-top: 32px;
  padding: 18px 20px;
  border: 1px solid var(--fb-border);
  border-radius: 8px;
  background: rgba(3, 8, 6, 0.64);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.support-panel p {
  margin-bottom: 4px;
  color: var(--fb-muted);
}

.support-panel p:first-child {
  color: var(--fb-text);
  font-weight: 800;
}

.slogan {
  margin-top: 24px;
  color: var(--fb-muted);
  font-weight: 700;
}

.legal-main {
  align-items: start;
}

.legal-panel {
  max-width: 860px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--fb-border);
  border-radius: 8px;
  background: var(--fb-panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.legal-panel h1 {
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  line-height: 1.02;
}

.legal-panel ul {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-panel li + li {
  margin-top: 8px;
}

.last-updated {
  margin-bottom: 34px;
  font-size: 0.95rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(99, 199, 106, 0.16);
  color: var(--fb-muted);
  font-size: 0.94rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    width: min(100% - 28px, var(--fb-max-width));
  }

  .site-header {
    padding: 20px 0;
  }

  .home-main,
  .not-found-main,
  .legal-main {
    padding: 34px 14px 56px;
  }

  .not-found-main {
    align-items: start;
    min-height: auto;
  }

  .support-panel {
    padding: 16px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
