/* BlueByte Games — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0F1024;
  --surface: #171938;
  --surface-2: #1F2247;
  --teal: #5EEAD4;
  --coral: #FF7A59;
  --ink: #F5F3EC;
  --muted: #9C9BC4;
  --border: #34366B;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; }

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 16, 36, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  color: var(--ink);
}
.brand .mark {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  border-radius: 6px 6px 6px 0;
  transform: rotate(-6deg);
}
.navlinks { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.navlinks a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color .15s ease;
}
.navlinks a:hover, .navlinks a.active { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--teal);
  color: #0F1024;
}
.btn-primary:hover { background: #7FF2E0; }
.btn-outline {
  border-color: var(--border);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--teal); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 120px;
}
footer .wrap {
  padding: 40px 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .brand { font-size: 16px; }
.foot-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--ink); }
.copyright { color: var(--muted); font-size: 13px; }

/* Cartridge shape used across pages */
.cartridge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px 4px 16px 4px;
  position: relative;
}
.cartridge::before {
  content: "";
  position: absolute;
  top: -1px; left: 18px;
  width: 46px; height: 10px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 4px 4px;
}

@media (max-width: 720px) {
  .navlinks { display: none; }
}
