:root {
  /* Lakeside Games ground + surfaces (see lakesidegames.net) */
  --bg: #0a0f14;
  --bg-2: #0d141c;
  --panel: #111b26;
  --panel-2: #16222e;
  --panel-border: rgba(234, 240, 246, 0.08);
  --border-bright: rgba(234, 240, 246, 0.16);
  --text: #eaf0f6;
  --text-dim: rgba(234, 240, 246, 0.64);
  --text-faint: rgba(234, 240, 246, 0.38);
  --shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.6);
  /* MetroForge identity */
  --accent: #21c8a0;
  --green: #7ef29a;
  --blue: #54d0ff;
  --orange: #ffb63d;
  --red: #ff5d6c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

body {
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.kicker {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 10px;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 15, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.brand svg { width: 28px; height: 28px; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

/* hero */
.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.hero .kicker { margin-bottom: 18px; }

.hero-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  display: block;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 18px;
  text-wrap: balance;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.badge-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* download section */
.download {
  padding: 40px 0 72px;
}

.download h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.download .sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 36px;
  font-size: 0.98rem;
}

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

@media (max-width: 720px) {
  .dl-grid { grid-template-columns: 1fr; }
}

.dl-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.dl-card:hover {
  border-color: var(--card-accent, var(--accent));
  transform: translateY(-3px);
}

.dl-card .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
}

.dl-card .platform {
  font-weight: 700;
  font-size: 1.05rem;
}

.dl-card .detail {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.dl-card.win { --card-accent: var(--blue); }
.dl-card.mac { --card-accent: var(--green); }
.dl-card.linux { --card-accent: var(--orange); }

.dl-fallback {
  text-align: center;
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.dl-fallback a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* browser toy teaser */
.toy {
  padding: 64px 0;
  border-top: 1px solid var(--panel-border);
  text-align: center;
}

.toy h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.toy .sub {
  color: var(--text-dim);
  margin: 0 auto 28px;
  max-width: 560px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.toy-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.toy-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 9px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.toy-play:hover { filter: brightness(1.1); }

.toy-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 9px;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.toy-dl:hover { border-color: var(--accent); }

/* features */
.features {
  padding: 64px 0;
  border-top: 1px solid var(--panel-border);
}

.features h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature { padding: 4px; }

.feature .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* screenshots */
.shots h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.shots .sub {
  text-align: center;
  color: var(--text-dim);
  margin: 0 0 32px;
}

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

@media (max-width: 860px) {
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .shot-grid { grid-template-columns: 1fr; }
}

.shot {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  line-height: 0;
}

.shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.shot:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

.shot .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text);
  background: linear-gradient(to top, rgba(10, 15, 20, 0.88), rgba(10, 15, 20, 0));
}

.feature p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* requirements */
.reqs {
  padding: 64px 0 88px;
  border-top: 1px solid var(--panel-border);
}

.reqs h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 36px;
}

.reqs-table {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}

.reqs-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.9rem;
}

.reqs-row:last-child { border-bottom: none; }

.reqs-row .label {
  color: var(--text-dim);
  font-weight: 600;
}

/* changelog */
.changelog-page {
  padding: 56px 0 96px;
}

.changelog-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.changelog-page .sub {
  color: var(--text-dim);
  margin-bottom: 44px;
}

.release {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 20px;
}

.release-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.release-head .tag {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.release-head .date {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.release-body {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.release-body ul { padding-left: 20px; margin: 8px 0; }
.release-body li { margin-bottom: 4px; }

.release-links { margin-top: 14px; font-size: 0.85rem; }

.release-links a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 16px;
}

.release-links a:hover { text-decoration: underline; }

.loading, .load-error {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0;
  font-size: 0.9rem;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover { color: var(--text); }

.studio-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--text-faint);
  text-decoration: none !important;
  font-size: 0.82rem;
}

.studio-credit img { width: 20px; height: 20px; display: block; }
.studio-credit:hover { color: var(--text-dim); }
