:root {
  --bg: #111217;
  --bg-strong: #08090d;
  --panel: #191c22;
  --panel-raised: #20242c;
  --paper: #f4efe4;
  --muted: #b9bcc5;
  --dim: #858a96;
  --line: #343945;
  --line-strong: #4a505f;
  --red: #e35345;
  --cyan: #4bb7c9;
  --gold: #d8b84e;
  --green: #64b272;
  --blue: #6d83d8;
  --shadow: rgba(0, 0, 0, .38);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: var(--paper);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .03) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--gold);
  color: #15130d;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 12px 28px;
  background: rgba(8, 9, 13, .84);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions,
.card-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-size: .95rem;
}

.brand-text {
  font-size: 1rem;
}

.nav-links {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .88rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--paper);
  background: rgba(255, 255, 255, .08);
}

.hero {
  min-height: min(720px, 82svh);
  display: flex;
  align-items: end;
  padding: 120px 28px 72px;
  background-image:
    linear-gradient(90deg, rgba(8, 9, 13, .94) 0%, rgba(8, 9, 13, .72) 42%, rgba(8, 9, 13, .36) 100%),
    linear-gradient(0deg, rgba(17, 18, 23, 1) 0%, rgba(17, 18, 23, 0) 36%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-inner,
.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-inner {
  padding-bottom: 16px;
}

.eyebrow,
.section-kicker,
.game-ruby,
.game-kind,
.status-pill,
.card-meta {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--cyan);
}

.hero h1 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: 4rem;
  line-height: 1;
}

.hero-lead {
  max-width: 650px;
  margin: 20px 0 0;
  color: #ece8dd;
  font-size: 1.16rem;
  line-height: 1.75;
}

.hero-actions,
.card-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--red);
  color: #fff8f4;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #f06554;
}

.button-secondary {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(0, 0, 0, .28);
  color: var(--paper);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-quiet:hover,
.button-quiet:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.button-quiet {
  border-color: var(--line-strong);
  color: var(--muted);
}

.section {
  padding: 64px 28px;
  scroll-margin-top: 84px;
}

.section-live {
  background: var(--bg);
}

.section-legacy {
  background: #151820;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-works {
  background: #101319;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.25;
}

.section-kicker {
  color: var(--gold);
}

.featured-grid,
.legacy-grid,
.work-grid {
  display: grid;
  gap: 16px;
}

.featured-card,
.legacy-card,
.work-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 38px var(--shadow);
  overflow: hidden;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr);
}

.featured-media,
.work-media {
  min-width: 0;
  background: var(--bg-strong);
  overflow: hidden;
}

.featured-media img,
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.featured-media {
  aspect-ratio: 16 / 9;
}

.featured-media:hover img,
.featured-media:focus-visible img,
.work-media:hover img,
.work-media:focus-visible img {
  transform: scale(1.025);
}

.featured-body,
.work-body,
.legacy-card {
  padding: 22px;
}

.card-meta,
.legacy-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.card-meta span:last-child,
.status-pill {
  padding: 4px 8px;
  border: 1px solid rgba(216, 184, 78, .5);
  border-radius: 6px;
  color: var(--gold);
}

.featured-body h3,
.legacy-card h3,
.work-body h3 {
  margin: 12px 0 0;
  font-size: 1.45rem;
  line-height: 1.3;
}

.featured-body p,
.legacy-card p,
.work-body p {
  color: var(--muted);
  line-height: 1.75;
}

.game-ruby {
  margin-top: 2px;
  color: var(--cyan);
}

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

.legacy-card {
  box-shadow: none;
  color: inherit;
  text-decoration: none;
}

.legacy-card:hover,
.legacy-card:focus-visible {
  border-color: var(--gold);
  background: var(--panel-raised);
}

.game-kind {
  color: var(--cyan);
}

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

.work-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 188px;
}

.work-media {
  aspect-ratio: 4 / 3;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: #f0d071;
}

.join-page {
  min-height: 100svh;
  padding-top: 64px;
}

.join-hero {
  min-height: min(560px, 70svh);
  display: flex;
  flex-direction: column;
  justify-content: end;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 96px 28px 56px;
}

.join-hero h1 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: 3.4rem;
  line-height: 1;
}

.join-hero p {
  max-width: 680px;
  color: #ece8dd;
  font-size: 1.1rem;
  line-height: 1.8;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.join-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}

.join-grid h2 {
  margin: 12px 0 0;
  font-size: 1.25rem;
}

.join-grid p {
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .hero {
    min-height: 84svh;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .featured-card,
  .work-card {
    grid-template-columns: 1fr;
  }

  .work-media {
    aspect-ratio: 16 / 9;
  }

  .legacy-grid,
  .join-grid,
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 86svh;
    padding: 168px 18px 56px;
    background-image:
      linear-gradient(180deg, rgba(8, 9, 13, .9) 0%, rgba(8, 9, 13, .62) 42%, rgba(8, 9, 13, .96) 100%),
      var(--hero-image);
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .join-hero h1 {
    font-size: 2.35rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .section {
    padding: 48px 18px;
  }

  .section-heading h2 {
    font-size: 1.6rem;
  }

  .legacy-grid,
  .join-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .featured-body,
  .work-body,
  .legacy-card {
    padding: 18px;
  }

  .button {
    width: 100%;
  }
}
