.games-hub {
  padding-bottom: clamp(34px, 6vw, 88px);
}
.games-heading {
  border-bottom: 2px solid var(--blue);
  margin: clamp(26px, 5vw, 62px) 0 22px;
  padding-bottom: 20px;
}
.games-heading h1 {
  font: 400 clamp(48px, 7vw, 90px) / 1 var(--serif);
  letter-spacing: -0.055em;
  margin: 0 0 10px;
}
.games-heading p {
  font: 400 clamp(17px, 2vw, 23px) / 1.4 var(--sans);
  margin: 0;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(18px, 3vw, 38px);
}
.game-card {
  border: 1px solid #b3b9ab;
  color: var(--ink);
  display: block;
  text-decoration: none;
  background: #fffef9;
  border-radius: 3px;
  overflow: hidden;
}
.game-card:hover h2,
.game-card:focus-visible h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.game-art {
  height: clamp(140px, 14vw, 205px);
  display: grid;
  place-items: center;
  border-bottom: 1px solid #a9b097;
}
.kata .game-art {
  background: #dde8a6;
}
.mana .game-art {
  background: #dae8ec;
}
.kumpul .game-art {
  background: #e9e1f1;
}
.game-card {
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
}
.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 -2px #d6d9cc;
}
.game-art > * {
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.kata:hover .shelf-letters,
.kata:focus-visible .shelf-letters {
  transform: rotate(-2deg) scale(1.04);
}
.mana:hover .shelf-compass b,
.mana:focus-visible .shelf-compass b {
  transform: rotate(394deg);
}
.shelf-compass b {
  transition: transform .9s cubic-bezier(.34, 1.3, .64, 1);
}
.kumpul:hover .shelf-groups,
.kumpul:focus-visible .shelf-groups {
  transform: rotate(0deg) scale(1.04);
}
.shelf-groups {
  display: grid;
  grid-template-columns: repeat(4, clamp(30px, 3.6vw, 44px));
  gap: 6px;
  transform: rotate(-5deg);
}
.shelf-groups i {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid rgb(36 27 51 / .25);
  background: #fffdf9;
}
.shelf-groups i:nth-child(-n + 4) {
  background: #f2cf5b;
}
.shelf-groups i:nth-child(5) { background: #c5a3e6; }
.shelf-groups i:nth-child(6) { background: #93c2ea; }
.shelf-groups i:nth-child(7) { background: #9fd08f; }
.game-detail {
  padding: clamp(17px, 2.4vw, 33px);
}
.game-detail > span {
  color: #3e514a;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font: 700 0.77rem/1.4 var(--sans);
}
.game-detail h2 {
  font: 400 clamp(32px, 4vw, 52px) / 1.1 var(--serif);
  letter-spacing: -0.04em;
  margin: 6px 0;
}
.game-detail p {
  margin: 0;
  font: 400 1rem/1.55 var(--sans);
}
.game-detail strong {
  display: inline-block;
  color: var(--blue);
  margin-top: 18px;
}
.game-detail i {
  font-style: normal;
}
.shelf-letters {
  display: flex;
  gap: 4px;
  transform: rotate(-6deg);
}
.shelf-letters b {
  width: clamp(42px, 5vw, 63px);
  aspect-ratio: 0.91;
  background: #fffdef;
  border: 1px solid #365946;
  border-radius: 4px;
  box-shadow: 0 3px #70845c;
  display: grid;
  place-items: center;
  font: 400 clamp(32px, 4vw, 52px) / 1 var(--serif);
  color: #214b3d;
}
.shelf-letters b:nth-child(even) {
  transform: translateY(6px);
}
.shelf-compass {
  width: 98px;
  aspect-ratio: 1;
  border: 2px solid #466b74;
  box-shadow:
    inset 0 0 0 5px #f7f8ec,
    inset 0 0 0 6px #879f9c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fffdf4;
  position: relative;
}
.shelf-compass i {
  position: absolute;
  top: 6px;
  font: bold 11px var(--sans);
  color: #324f54;
}
.shelf-compass b {
  width: 18px;
  height: 52px;
  transform: rotate(34deg);
  background: linear-gradient(#9c3a2f 50%, #26485a 50%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
@media (prefers-reduced-motion: reduce) {
  .game-card, .game-art > *, .shelf-compass b { transition: none; }
}
@media (max-width: 620px) {
  .game-art {
    height: 135px;
  }
  .games-heading {
    margin-top: 21px;
  }
}
.itk .game-art {
  background: #1c1630;
}
.shelf-blank {
  position: relative;
  width: min(82%, 300px);
  transform: rotate(-3deg);
}
.shelf-blank p {
  padding: 12px 14px 14px 26px;
  border-radius: 6px;
  background: #fffef8 linear-gradient(90deg, transparent 16px, #d6332a 16px 18px, transparent 0);
  color: #1d2433;
  font: 400 clamp(.95rem, 1.6vw, 1.15rem)/1.3 "DM Serif Text", Georgia, serif;
  box-shadow: 0 0 0 1px rgb(62 240 196 / .4), 0 0 24px -4px rgb(62 240 196 / .5);
}
.shelf-blank i {
  display: inline-block;
  width: 3.4em;
  height: .9em;
  border-bottom: 2px solid #1d2433;
  vertical-align: -.1em;
}
.shelf-blank b {
  position: absolute;
  right: -6%;
  bottom: -26%;
  width: 56%;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ff4fa3;
  color: #1a1328;
  font: 700 clamp(.66rem, 1.1vw, .8rem)/1.25 "DM Sans", Arial, sans-serif;
  transform: rotate(7deg);
  box-shadow: 0 8px 18px -8px #000;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.itk:hover .shelf-blank,
.itk:focus-visible .shelf-blank {
  transform: rotate(0deg) scale(1.03);
}
.itk:hover .shelf-blank b,
.itk:focus-visible .shelf-blank b {
  transform: rotate(-2deg) translate(-8%, -18%);
}
@media (prefers-reduced-motion: reduce) {
  .shelf-blank, .shelf-blank b { transition: none; }
}
