@font-face {
  font-family: Manrope;
  src: url(assets/manrope.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Manrope, Arial, sans-serif;
  margin: 0;
  background: #f5f6f8;
  color: #20232b;
  letter-spacing: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
header,
main,
footer {
  max-width: 1220px;
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 32px;
  border-bottom: 1px solid #dde0e7;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: #20232b;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 5px;
  font-size: 24px;
}
.personal {
  font-size: 13px;
  color: #5d6270;
}
.intro {
  padding: 44px 32px 42px;
  border-bottom: 1px solid #dde0e7;
}
.intro-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}
.edition {
  font-size: 12px;
  color: #5d6270;
}
h1 {
  font-size: 84px;
  line-height: 1.1;
  margin: 24px 0;
  font-weight: 800;
}
h1 span {
  color: #cb3d50;
}
.intro-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.intro-bottom p {
  margin: 0;
  color: #5d6270;
  line-height: 1.7;
  font-size: 15px;
}
.jump {
  display: flex;
  align-items: center;
  gap: 40px;
  font-weight: 800;
  font-size: 14px;
  border-bottom: 2px solid #20232b;
  padding: 12px 0;
}
.jump span {
  font-size: 23px;
}
#catalog {
  padding: 34px 32px 70px;
}
.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.catalog-heading h2 {
  font-size: 20px;
  margin: 0;
}
.filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.filters button {
  background: transparent;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  padding: 10px 14px;
  color: #5d6270;
  cursor: pointer;
  min-height: 44px;
}
.filters button.active {
  background: #20232b;
  color: #fff;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}
.game-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 18px;
  border-bottom: 1px solid #dde0e7;
  min-width: 0;
}
.game-art {
  border-radius: 6px;
  overflow: hidden;
  background: #f4d5da;
  aspect-ratio: 1.4;
}
.impostor .game-art {
  background: #e7daf5;
}
.wavelength .game-art {
  background: #d5eee8;
}
.lobo .game-art {
  background: #dfe5f5;
}
.probable .game-art {
  background: #f5ddd1;
}
.quiz .game-art {
  background: #f4e9b9;
}
.stop .game-art {
  background: #dcebd7;
}
.dibujo .game-art {
  background: #d8eaf3;
}
.game-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.game-card:hover .game-art img {
  transform: translateY(-4px) rotate(-2deg);
}
.game-card:hover .play-link {
  color: #bc3045;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #5d6270;
  margin: 18px 0 10px;
}
.game-card h2 {
  font-size: 23px;
  margin: 0 0 8px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.game-card p {
  font-size: 13px;
  line-height: 1.65;
  color: #5d6270;
  margin: 0;
  min-height: 44px;
  flex: 1;
}
.play-link {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 800;
}
.play-link span {
  font-size: 20px;
}
footer {
  padding: 28px 32px 35px;
  border-top: 1px solid #dde0e7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #5d6270;
}
footer .brand {
  font-size: 15px;
  color: #20232b;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #126f74;
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: -80px;
  background: #fff;
  padding: 10px;
  z-index: 10;
}
.skip-link:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .catalog-heading {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 1000px) {
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }
  .game-art {
    aspect-ratio: 1.6;
  }
  h1 {
    font-size: 68px;
  }
}
@media (max-width: 600px) {
  header {
    padding: 20px;
  }
  .brand {
    font-size: 18px;
  }
  .personal {
    font-size: 10px;
    max-width: 100px;
    text-align: right;
  }
  .intro {
    padding: 30px 20px 28px;
  }
  .edition {
    font-size: 10px;
    max-width: 90px;
    text-align: right;
  }
  h1 {
    font-size: 42px;
    margin: 24px 0;
  }
  .intro-bottom {
    display: block;
  }
  .intro-bottom p {
    font-size: 13px;
  }
  .jump {
    width: max-content;
    margin-top: 16px;
    gap: 42px;
  }
  .catalog-heading {
    gap: 14px;
  }
  .catalog-heading h2 {
    font-size: 18px;
  }
  .filters {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding: 4px 0;
  }
  .filters button {
    padding: 9px 12px;
    flex-shrink: 0;
  }
  #catalog {
    padding: 24px 20px 50px;
  }
  .catalog {
    gap: 26px 14px;
  }
  .game-art {
    aspect-ratio: 1.15;
  }
  .card-meta {
    font-size: 10px;
    display: block;
    margin: 12px 0 8px;
  }
  .card-meta span {
    display: block;
    line-height: 1.7;
  }
  .game-card h2 {
    font-size: 18px;
  }
  .game-card p {
    font-size: 12px;
    min-height: 60px;
  }
  .play-link {
    margin-top: 12px;
  }
  footer {
    padding: 25px 20px;
    flex-wrap: wrap;
  }
  footer > span {
    display: none;
  }
}
@media (max-width: 350px) {
  h1 {
    font-size: 36px;
  }
  .game-card h2 {
    font-size: 17px;
  }
  .catalog {
    gap: 24px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
