:root {
  --paper: #fbf7ec;
  --ink: #17211d;
  --accent: #007f5f;
  --accent-2: #f4a259;
  --card: #fffaf0;
  --line: #d6c6a2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #ffe29d 0%, transparent 32%),
    radial-gradient(circle at 90% 8%, #ffd6a5 0%, transparent 28%),
    linear-gradient(160deg, #f8f4e8 0%, #f0f6e8 48%, #e7f3f1 100%);
  padding: 28px 18px 48px;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.orb-1 {
  width: 220px;
  height: 220px;
  background: #ffd166;
  top: -70px;
  left: -40px;
}

.orb-2 {
  width: 260px;
  height: 260px;
  background: #54c2a7;
  right: -80px;
  bottom: -80px;
}

.hero {
  max-width: 920px;
  margin: 0 auto 18px;
  animation: slide-in 500ms ease-out;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #2f5e51;
}

h1 {
  margin: 8px 0 10px;
  font-family: "Bungee", "Impact", sans-serif;
  font-size: clamp(2rem, 6vw, 4.3rem);
  line-height: 1;
  color: #143a2f;
}

.hero-video {
  width: min(360px, 100%);
  aspect-ratio: 9 / 16;
  margin: 8px 0 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid #d7c39b;
  box-shadow: 0 16px 32px rgba(22, 27, 24, 0.2);
  background: #0f1118;
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.subtitle {
  max-width: 64ch;
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
}

main {
  max-width: 920px;
  margin: 0 auto;
}

.panel {
  border: 2px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--card), #ffffff 35%);
  box-shadow: 0 18px 55px rgba(40, 53, 48, 0.12);
  padding: 20px;
  animation: rise-in 650ms ease-out;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

h2 {
  margin: 0;
  font-size: 1.35rem;
}

.count {
  font-size: 0.95rem;
  font-weight: 700;
  color: #345f53;
}

.game-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.game-item {
  animation: pop-in 280ms ease both;
}

.game-link {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(246, 238, 220, 0.95));
  box-shadow: 0 8px 24px rgba(18, 24, 22, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.game-link:hover,
.game-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(18, 24, 22, 0.16);
  outline: none;
}

.game-name {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 700;
}

.game-body {
  display: flex;
  flex-direction: column;
}

.game-thumb {
  position: relative;
  border-radius: 12px;
  min-height: 112px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.game-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  opacity: 0.95;
}

.thumb-platformer::before {
  background:
    linear-gradient(180deg, #80d4ff 0%, #5ec0ff 48%, #4da84f 49%, #2f7733 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.2) 0,
      rgba(255, 255, 255, 0.2) 8px,
      transparent 8px,
      transparent 16px
    );
}

.thumb-movement::before {
  background:
    radial-gradient(circle at 22% 30%, #ffec99 0, #ffcc5c 16%, transparent 17%),
    linear-gradient(170deg, #1f2f52 0%, #253c75 46%, #2d8b57 47%, #1f6d43 100%);
}

.tag-list {
  list-style: none;
  margin: 10px 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid #a8d3c7;
  background: #eef8f4;
  color: #20594a;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-list {
  list-style: none;
  margin: 2px 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.01em;
}

.status-broken {
  background: #ffe4e4;
  color: #7f1d1d;
  border: 1px solid #f3a6a6;
}

.status-under-development {
  background: #fff3d1;
  color: #7b4d10;
  border: 1px solid #efcc7f;
}

.game-meta {
  margin: 0;
  opacity: 0.9;
}

.route {
  margin-top: auto;
  display: inline-block;
  color: #17644e;
  font-weight: 700;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 700px) {
  body {
    padding: 20px 14px 34px;
  }

  .panel {
    padding: 16px;
  }

  .hero-video {
    margin-bottom: 12px;
  }

  .game-link {
    padding: 14px;
    grid-template-columns: 1fr;
  }

  .game-thumb {
    min-height: 108px;
  }
}
