@font-face {
  font-family: 'The Brook';
  src: url(Brook-FREE.otf) format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Liberation Sans';
  src: url(LiberationSans-Rg.otf) format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Liberation Sans';
  src: url(LiberationSans-Bd.otf) format('opentype');
  font-weight: bold;
  font-display: swap;
}

:root {
  --bg: #050505;
  --white: #f4f4f4;
  --text: #cfcfcf;
  --dim: #8a8a8a;
  --hair: rgba(255, 255, 255, .12);
  --hover: #3fe03f;
  --yellow: #f5f557;
  --red: #c51111;
  --wrap: 1200px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--white);
  background: var(--bg) url('/assets/png/bg.png') repeat;
  background-size: 700px auto;
  font-family: 'Liberation Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.display {
  font-family: 'The Brook', 'Liberation Sans', sans-serif;
  font-weight: normal;
  line-height: .92;
  margin: 0;
}

.eyebrow {
  font-size: 18px;
  color: var(--yellow);
  margin: 0 0 14px;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  background: rgba(5, 5, 5, .55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
  transition: background .2s;
}

.nav.scrolled {
  background: rgba(5, 5, 5, .8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--hair);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: 'The Brook', sans-serif;
  font-size: 40px;
  line-height: 1;
  text-decoration: none;
  padding-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  position: relative;
  font-family: 'The Brook', sans-serif;
  font-size: 26px;
  line-height: 1;
  padding-top: 4px;
  text-decoration: none;
  color: var(--text);
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--hover); outline: none; }

.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.nav-links .btn {
  margin-left: 4px;
  padding: 4px 16px 2px;
  font-size: 24px;
  color: var(--white);
}
.nav-links .btn:hover { color: var(--hover); }

.nav .nav-toggle {
  display: none;
  padding: 4px 14px 2px;
  font-size: 22px;
  border-width: 3px;
  border-radius: 10px;
}

/* phones and small tablets: links move into a full-screen sheet */
@media (max-width: 820px) {
  .nav .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - 100%);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 28px var(--gutter) 40px;
    background: var(--bg);
    border-top: 1px solid var(--hair);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .18s, transform .18s, visibility 0s .18s;
  }

  .menu-open .nav-links {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .18s, transform .18s;
  }

  .menu-open { overflow: hidden; }

  .nav-links a { font-size: 54px; padding: 6px 0 2px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--hover); }
  .nav-links .btn { margin: 22px 0 0; font-size: 30px; padding: 6px 22px 4px; }
}

/* ---------- buttons (game menu style) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 28px 5px;
  border: 4px solid var(--white);
  border-radius: 12px;
  background: rgba(0, 0, 0, .55);
  color: var(--white);
  font-family: 'The Brook', sans-serif;
  font-size: 34px;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--hover);
  color: var(--hover);
  outline: none;
}

.btn:active { transform: scale(.96); }

.btn-solid { background: var(--white); color: #000; }
.btn-solid:hover { background: var(--hover); border-color: var(--hover); color: #000; }

.btn-sm {
  font-size: 22px;
  padding: 4px 16px 2px;
  border-width: 3px;
  border-radius: 10px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 68px;
  left: 0;
  width: 100%;
  height: calc(100% - 68px);
  object-fit: cover;
  object-position: center top;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(5,5,5,.75) 32%, rgba(5,5,5,0) 62%),
    linear-gradient(to bottom, rgba(5,5,5,.6), rgba(5,5,5,0) 18%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.hero h1 { font-size: clamp(64px, 10vw, 148px); }

.hero .lead {
  max-width: 33em;
  font-size: 19px;
  color: var(--text);
  margin: 22px 0 32px;
}

.lobby {
  font-size: 17px;
  line-height: 1.6;
  text-shadow: 0 1px 2px #000;
  min-width: 230px;
}

.lobby .tag { color: var(--yellow); }
.lobby dl { margin: 0; }
.lobby dt, .lobby dd { display: inline; margin: 0; }
.lobby dt::after { content: ': '; }
.lobby dd::after { content: ''; display: block; }
.lobby .red { color: #ff4040; }

/* ---------- platforms strip ---------- */

.platforms {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--bg);
}

.platforms ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.platforms li + li { border-left: 1px solid var(--hair); }

.platforms a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 26px 28px;
  text-decoration: none;
}

.platforms .name {
  font-family: 'The Brook', sans-serif;
  font-size: 38px;
  line-height: 1;
}

.platforms .arrow { color: var(--dim); transition: transform .15s, color .15s; }
.platforms a:hover .name,
.platforms a:hover .arrow { color: var(--hover); }
.platforms a:hover .arrow { transform: translate(3px, -3px); }

/* ---------- sections ---------- */

.section { padding: 140px 0 0; }

.split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: center;
}

.section h2 { font-size: clamp(52px, 6.5vw, 92px); margin-bottom: 30px; }

.section p { color: var(--text); margin: 0 0 16px; max-width: 36em; }

.qa { border-top: 1px solid var(--hair); padding: 22px 0 8px; font-family: 'Liberation Sans', sans-serif; }
.qa h3 { font-size: 15px; text-transform: uppercase; margin: 0 0 8px; color: var(--white); }

.frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: #000;
}

.mascot { aspect-ratio: 1; }
.mascot img { width: 100%; height: 100%; object-fit: cover; }

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.gallery-head h2 { margin: 0; }
.gallery-head p { margin: 0; max-width: 24em; }

.caption { margin-top: 12px; font-size: 14px; color: var(--dim); }

/* ---------- join band ---------- */

.join {
  margin-top: 140px;
  background: var(--red);
  color: #fff;
}

.join .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.join h2 { font-size: clamp(56px, 8vw, 120px); }
.join p { margin: 14px 0 0; color: rgba(255,255,255,.85); }
.join .btn { background: transparent; border-color: #fff; color: #fff; }
.join .btn:hover { background: #fff; color: var(--red); border-color: #fff; }

/* ---------- footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--dim);
}

.footer a:hover { color: var(--white); }
.footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer .links a { text-decoration: none; }

/* ---------- terms page ---------- */

.page-head {
  padding-top: 150px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--hair);
}

.page-head h1 { font-size: clamp(64px, 9vw, 130px); }
.page-head .lead { color: var(--text); font-size: 19px; max-width: 40em; margin: 24px 0 0; }

.doc {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 80px;
  padding-top: 50px;
  padding-bottom: 60px;
  align-items: start;
}

.doc-nav { position: sticky; top: 100px; font-size: 15px; }
.doc-nav a { display: block; padding: 6px 0; color: var(--dim); text-decoration: none; }
.doc-nav a:hover { color: var(--hover); }

.doc article { max-width: 720px; }
.doc section { border-top: 1px solid var(--hair); padding: 34px 0 20px; scroll-margin-top: 80px; }
.doc section:first-child { border-top: 0; padding-top: 0; }
.doc h2 { font-family: 'The Brook', sans-serif; font-weight: normal; font-size: 50px; line-height: 1; margin: 0 0 14px; }
.doc h3 { font-size: 17px; margin: 24px 0 4px; }
.doc p, .doc li { color: var(--text); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc code { font-family: Consolas, 'Courier New', monospace; font-size: 15px; color: var(--yellow); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .lobby { display: none; }
  .platforms ul { grid-template-columns: repeat(2, 1fr); }
  .platforms li:nth-child(3) { border-left: 0; }
  .platforms li:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .split, .doc { grid-template-columns: 1fr; gap: 48px; }
  .mascot { max-width: 420px; }
  .gallery-head { flex-direction: column; align-items: start; }
  .join .wrap { flex-direction: column; align-items: start; }
  .doc-nav { display: none; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .logo { font-size: 34px; }
  .hero { min-height: 92svh; }
  .hero-inner { padding-bottom: 44px; }
  .hero .lead { font-size: 17px; }
  .btn { font-size: 28px; padding: 6px 20px 4px; }
  .btn-row .btn { flex: 1 1 auto; }
  .platforms a { padding: 20px 16px; }
  .platforms .name { font-size: 30px; }
  .section { padding-top: 96px; }
  .join { margin-top: 96px; }
  .join .wrap { padding-top: 52px; padding-bottom: 52px; }
  .page-head { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
