:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --soft: #f5f5f5;
  --live: #16a34a;
  --dev: #2563eb;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

/* Small monospace labels, the one "game UI" touch */
.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.tagline {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-weight: 400;
}

/* Keep pixel art crisp when scaled */
.pixel { image-rendering: pixelated; }

nav { display: flex; align-items: center; gap: 28px; }

nav a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

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

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.icon-button:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

#games { padding-top: 64px; }

/* Sections */

.section-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--text);
}

/* Games */
.game {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.game-art {
  display: block;
  aspect-ratio: 460 / 215;
  overflow: hidden;
  border-radius: 4px;
  background: var(--soft);
}

.game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-art:hover img { transform: scale(1.03); }

.game-info h3 {
  margin: 10px 0 10px;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.game-info p:not(.label) {
  margin: 0 0 22px;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 1px;
}

.dot-live { background: var(--live); }
.dot-dev { background: var(--dev); }

.link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.link span {
  display: inline-block;
  transition: transform 0.15s;
}

.link:hover span { transform: translateX(4px); }

/* Footer: pinned to the bottom of the window, holds the contact info */
main.wrap { padding-bottom: 96px; }

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .game { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  #games { padding-top: 40px; }
}

@media (max-width: 480px) {
  .header { flex-wrap: wrap; row-gap: 14px; padding-top: 20px; padding-bottom: 20px; }
  .wrap { padding: 0 20px; }
  .footer-inner { padding-top: 12px; padding-bottom: 12px; }
  nav { gap: 18px; }
}
