body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tile:hover img {
  transform: scale(1.05);
}

.nav-tile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background-color: #191919;
}

.nav-tile a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #999;
  font-family: "Black Ops One", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  border: solid 1px #000;
  transition: color 0.3s ease;
}

.nav-tile a.active {
  background: #000;
  color: #fff;
}

.nav-tile a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to top, #000, #222);
  transition: height 0.1s ease;
  z-index: 0;
  opacity: 0.5;
}

.nav-tile a:hover::before {
  height: 100%;
}

.nav-tile a .numba {
  position: relative;
  z-index: 100;
}

/* Tablet */
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-tile a {
    font-size: 26px;
  }
}

/* Phone */
@media (max-width: 700px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-tile a {
    font-size: 22px;
  }
}

/* Very small phone */
@media (max-width: 420px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .nav-tile a {
    font-size: 18px;
  }
}

/* Optional: disable hover zoom on touch/small screens */
@media (hover: none) {
  .tile:hover img {
    transform: none;
  }

  .nav-tile a:hover::before {
    height: 0;
  }
}