:root {
  --bg: #050505;
  --surface: #0b0b0b;
  --text: #b8ff89;
  --muted: #7ddb4d;
  --border: #57b932;
  --accent: #c9ff9d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  max-width: 980px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(125, 219, 77, 0.08) 0%, transparent 42%),
    var(--bg);
  font-family: "Courier New", Courier, monospace;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  opacity: 1;
  text-shadow: 0 0 8px rgba(184, 255, 137, 0.65);
}

img {
  border: none;
  border-radius: 8px;
  box-shadow: none;
}

h1 {
  text-align: center;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

header {
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  background: rgba(87, 185, 50, 0.08);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(125, 219, 77, 0.24);
}

header h1 a {
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(184, 255, 137, 0.35);
}

header nav {
  display: flex;
  gap: 0.8rem;
}

header nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
}

header nav a:hover {
  border-color: var(--border);
  color: var(--text);
  background: rgba(87, 185, 50, 0.12);
}

main {
  width: 100%;
}

.center {
  text-align: center;
  color: var(--muted);
  margin: 0.5rem 0 1.25rem;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  width: 100%;
}

.container .game {
  display: block;
  background: rgba(87, 185, 50, 0.08);
  border: 2px solid rgba(125, 219, 77, 0.24);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.container .game:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(184, 255, 137, 0.25);
}

.container .game img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}

.container .game .name {
  padding: 0.75rem 0.85rem;
  font-weight: 600;
  background: #0f0f0f;
}

.image-slider {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto 1.25rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid rgba(125, 219, 77, 0.24);
  border-radius: 8px;
  background: rgba(87, 185, 50, 0.08);
}

.image-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
  opacity: 0;
  animation: image-cycle var(--slider-duration, 12s) linear infinite;
  animation-delay: calc(var(--slide-index, 0) * -1 * var(--slide-step, 3s));
}

@keyframes image-cycle {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  28% {
    opacity: 1;
  }
  36% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.shell {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  text-align: left;
  padding: 0.8rem;
}

.icon-link {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.icon-link img {
  max-width: 20px;
  max-height: 20px;
  background-color: transparent;
}

.icon-link a {
  text-decoration: none;
}

.icon-link a:hover {
  text-decoration: underline;
}

.spacer {
  flex-grow: 1;
}

.footer {
  width: 100%;
  margin-top: auto;
  padding: 0.8rem 0.85rem;
  background: rgba(87, 185, 50, 0.07);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(125, 219, 77, 0.2);
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 650px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-links {
    gap: 0.6rem;
    flex-direction: column;
  }
}
