@font-face {
  font-family: "Minecraftia";
  src: url("/fonts/Minecraftia.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #ffffff;
  --accent: #2f7d32;
  --accent-warm: #f2e48b;
  --accent-red: #d94a3c;
  --accent-green: #4caf50;
  --max-width: 900px;
  --nav-width: 400px;
  --nav-width-compact: 300px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Minecraftia", monospace;
  text-align: center;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 20px 60px;
}

.header {
  margin-bottom: 10px;
}

.logo {
  width: 300px;
  margin: 0 auto 20px;
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--nav-width);
  margin: 0 auto 60px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  letter-spacing: 0.5px;
}

.nav-link .underline {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--ink);
  width: 0;
  transition: width 0.3s ease;
}

.nav-link:hover .underline,
.nav-link.is-active .underline {
  width: 100%;
}

.game {
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.game-view {
  position: relative;
  width: 100%;
  height: 256px;
  overflow: hidden;
  image-rendering: pixelated;
}

.game-ground {
  position: absolute;
  bottom: 0;
  display: flex;
  will-change: transform;
}

.ground-segment {
  background-image: url("/ground-line.png");
  background-repeat: repeat-x;
  background-position: left bottom;
}

.player {
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 16px;
  background-image: url("/sprite-sheet.png");
  background-size: 64px 16px;
  transform-origin: bottom center;
}

.social-links {
  margin-top: 60px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-links span {
  opacity: 0.6;
}

.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--ink);
  width: 0;
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

.content-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.content-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 6px 8px;
  margin-bottom: 24px;
  text-decoration: none;
}

.content-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--highlight, var(--accent-green));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 0;
}

.content-item > span {
  position: relative;
  z-index: 1;
}

.content-item:hover::before {
  opacity: 0.8;
  transform: scaleX(1);
}

.content-right {
  color: #9aa0a6;
  transition: color 0.2s ease;
}

.content-item:hover .content-right {
  color: #ffffff;
}

.notify-link {
  margin-top: 60px;
  display: inline-block;
  font-size: 14px;
}

.pixel-card {
  position: relative;
  background: #ffffff;
  border: 2px solid var(--ink);
  padding: 28px 24px;
  text-align: left;
}

.pixel-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--ink);
  pointer-events: none;
}

.pixel-card .corner {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 2px solid var(--ink);
  z-index: 2;
}

.pixel-card .corner::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--ink);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pixel-card .corner.tl {
  top: -7px;
  left: -7px;
}

.pixel-card .corner.tr {
  top: -7px;
  right: -7px;
}

.pixel-card .corner.bl {
  bottom: -7px;
  left: -7px;
}

.pixel-card .corner.br {
  bottom: -7px;
  right: -7px;
}

.pixel-card h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.pixel-card p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.4;
}

.pixel-card .read-more {
  font-size: 12px;
  color: var(--accent);
}

@media (max-width: 600px) {
  .page {
    padding-top: 60px;
  }

  .logo {
    width: 240px;
  }

  .nav {
    max-width: var(--nav-width-compact);
  }

  .pixel-card {
    padding: 20px 16px;
  }

  .pixel-card h3 {
    font-size: 12px;
  }

  .pixel-card p {
    font-size: 11px;
  }

  .pixel-card .read-more {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link .underline,
  .link-underline::after,
  .content-item::before {
    transition: none;
  }
}
