*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: default;
}

body {
  background: #000;
  color: #888;
  font-family: 'Courier New', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a, a *, button, button *, [role="button"] {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: #888;
  font-weight: 600;
}

a:hover {
  color: #aaa;
}

/* ── Main page nav ── */
.nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 18px 0;
  border-top: 1px solid #1a1a1a;
  margin-top: auto;
}

.nav a {
  font-size: 18px;
  letter-spacing: 2px;
}

/* ── Page heading (GAMES, INFORMATION) ── */
.page-heading {
  text-align: center;
  padding: 32px 0 24px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #888;
}

/* ── Games grid ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.game-card {
  background: #0a0a0a;
  border: 1px solid #333;
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.game-card-art {
  background: #120000;
  border: 1px solid transparent;
  height: 160px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #500;
  font-size: 10px;
}

.game-card-title {
  color: #aaa;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.game-card-desc {
  color: #888;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.game-card-play,
.game-card-coming-label,
.game-card-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #333;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  background: transparent;
  color: #888;
  flex: 1;
  line-height: 1;
  text-align: center;
}

.game-card-play {
  color: #888;
}

.game-card-play:hover {
  color: #aaa;
  border-color: #666;
}

.game-card-soon {
  background: #050505;
  border: 1px dashed #1a1a1a;
  padding: 14px;
  text-align: center;
  opacity: 0.5;
  display: flex;
  flex-direction: column;
}

.game-card-soon-art {
  background: #0a0a0a;
  border: 1px solid transparent;
  height: 160px;
  margin-bottom: 12px;
}

.game-card-soon-label {
  margin-top: auto;
}

.game-card-soon-label {
  color: #888;
  font-size: 11px;
  letter-spacing: 2px;
}

/* ── Information page ── */
.info-body {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.info-section {
  padding: 20px 0;
  border-top: 1px solid #1a1a1a;
  font-size: 13px;
  line-height: 1.9;
  color: #888;
}

.info-section p + p {
  margin-top: 16px;
}

.info-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: #666;
  margin-bottom: 10px;
}

/* ── Footer home link ── */
.site-footer {
  margin-top: auto;
  text-align: center;
  border-top: 1px solid #1a1a1a;
  padding: 18px 0;
}

.site-footer a {
  color: #888;
  font-size: 18px;
  letter-spacing: 2px;
}

.site-footer a:hover {
  color: #aaa;
}

/* ── Game card image ── */
.game-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Card buttons row ── */
.game-card-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: auto;
}

/* ── COMING SOON (replaces PLAY for unreleased games) ── */
.game-card-coming-label {
  color: #666;
  cursor: default;
}

/* ── INFO button (secondary action) ── */
.game-card-info {
  color: #888;
  cursor: pointer;
}

.game-card-info:hover {
  color: #aaa;
  border-color: #666;
}

/* ── Modal overlay and box ── */
.game-info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.game-info-overlay.visible {
  display: flex;
}

.game-info-modal {
  background: #0a0a0a;
  border: 1px solid #888;
  max-width: 480px;
  width: 90%;
  padding: 24px;
  position: relative;
  font-family: 'Courier New', monospace;
  color: #aaa;
}

.game-info-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
}

.game-info-modal-close:hover {
  color: #aaa;
}

.game-info-modal-title {
  color: #ccc;
  font-size: 16px;
  letter-spacing: 4px;
  margin: 0 0 12px;
}

.game-info-modal-divider {
  border-top: 1px solid #333;
  margin-bottom: 16px;
}

.game-info-modal-desc {
  color: #888;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.game-info-modal-field {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.game-info-modal-field .label {
  color: #888;
  display: inline-block;
  width: 80px;
}

.game-info-modal-field .value {
  color: #aaa;
}

.game-info-modal-action {
  margin-top: 20px;
}

/* ── Contact page ── */
.contact-body {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px 40px;
  text-align: center;
}

.contact-section {
  padding: 20px 0;
  border-top: 1px solid #1a1a1a;
  font-size: 13px;
  line-height: 1.9;
  color: #888;
}

.contact-section p + p {
  margin-top: 16px;
}

.pink-rat-wrap {
  position: relative;
  display: inline-block;
  margin: 32px auto 8px;
  line-height: 0;
}

.pink-rat {
  display: block;
  width: 160px;
  height: auto;
}

.pink-rat-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 38%,
    rgba(255, 180, 220, 0.55) 47%,
    rgba(245, 245, 250, 0.55) 50%,
    rgba(140, 230, 220, 0.55) 53%,
    transparent 62%);
  background-size: 250% 100%;
  background-position: 130% 0;
  -webkit-mask: url("./PinkRat.png") center / contain no-repeat;
          mask: url("./PinkRat.png") center / contain no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: pinkRatShimmer 11s ease-in-out infinite;
}

@keyframes pinkRatShimmer {
  0%, 65% { background-position: 130% 0; }
  100% { background-position: -30% 0; }
}

/* ── Mobile / narrow viewports ── */
@media (max-width: 720px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
    gap: 16px;
  }

  .nav {
    gap: 24px;
  }

  .nav a {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .site-footer a {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .page-heading {
    font-size: 20px;
    letter-spacing: 3px;
    padding: 24px 0 18px;
  }
}

@media (max-width: 460px) {
  .games-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    padding: 0 16px 32px;
  }

  .nav {
    gap: 14px;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .site-footer {
    padding: 14px 0;
  }

  .site-footer a {
    font-size: 14px;
  }

  .info-body,
  .contact-body {
    padding: 0 16px 32px;
  }
}
