*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  touch-action: manipulation;
}

html {
  touch-action: manipulation;
}

body {
  background: #0a0a0f;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', Courier, monospace;
  -webkit-tap-highlight-color: transparent;
  /* dodatkowe zabezpieczenie przed zoomem */
  -ms-touch-action: manipulation;
}

.menu-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem;
  width: 100%;
  max-width: 700px;
}

.menu-title {
  color: #fff;
  font-size: clamp(14px, 3vw, 20px);
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
  padding: 6px 24px;
  white-space: nowrap;
}

.cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.card {
  width: clamp(130px, 28vw, 190px);
  border: 1px solid #222;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #111;
  text-decoration: none;
  display: block;
  transition: border-color 0.3s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
  }
  .card:hover img,
  .card:hover .card-img-wrap .img-placeholder {
    filter: grayscale(0%);
  }

  .card-1:hover { border-color: #e02a2a; }
  .card-1:hover .card-name { color: #f05050; }
  .card-1:hover .card-play { color: #f05050; border-color: #e02a2a; }

  .card-2:hover { border-color: #2a7ae0; }
  .card-2:hover .card-name { color: #5a9af0; }
  .card-2:hover .card-play { color: #5a9af0; border-color: #2a7ae0; }

  .card-3:hover { border-color: #2ae05c; }
  .card-3:hover .card-name { color: #50f07a; }
  .card-3:hover .card-play { color: #50f07a; border-color: #2ae05c; }
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #151515;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.4s;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #151515;
  filter: grayscale(100%);
  transition: filter 0.4s;
}
.card-1 .img-placeholder { color: #e02a2a; }
.card-2 .img-placeholder { color: #2a7ae0; }
.card-3 .img-placeholder { color: #2ae05c; }
.img-placeholder svg { opacity: 0.25; }

.card-info {
  padding: 10px 12px 12px;
  background: #0d0d0d;
  border-top: 1px solid #1c1c1c;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-number {
  font-size: 10px;
  color: #444;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.card-name {
  font-size: clamp(11px, 2vw, 13px);
  color: #e0e0e0;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s;
  line-height: 1.3;
}

.card-play {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #444;
  border: 1px solid #2a2a2a;
  padding: 4px 10px;
  border-radius: 2px;
  transition: color 0.3s, border-color 0.3s;
  align-self: flex-start;
}

@media (max-width: 480px) {
  .cards {
    gap: 12px;
  }
  .card {
    width: calc(50% - 6px);
    min-width: 130px;
  }
  .menu-title {
    letter-spacing: 4px;
    padding: 6px 16px;
  }
}

@media (max-width: 320px) {
  .card {
    width: 100%;
    max-width: 280px;
  }
}