:root {
  --ink: #111;
  --paper: #fffdf5;
  --hot-pink: #ff4fa3;
  --acid-yellow: #fff200;
  --electric-mint: #40f4d0;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background-color: #e9e9e9;
  background-image:
    linear-gradient(#d2d2d2 1px, transparent 1px),
    linear-gradient(90deg, #d2d2d2 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
}
.site-frame {
  padding: 1rem;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--ink);
}
.section-heading {
  position: relative;
  margin: 0 6px 1.25rem 0;
  padding: 1rem 1.25rem;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}
.section-heading:first-of-type {
  background: var(--acid-yellow);
}
.section-heading h1 {
  font-family: "Courier New", monospace;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}
.section-heading span {
  display: block;
  max-width: 42rem;
  margin-top: 0.5rem;
  color: var(--ink);
}
.game-grid {
  column-count: 1;
  column-gap: 1rem;
}
.game-grid > div {
  width: 100%;
  min-width: 0;
  margin-bottom: 1rem;
  break-inside: avoid;
  animation: card-in 350ms ease-out both;
}
.game-grid > div:nth-child(2) {
  animation-delay: 60ms;
}
.game-grid > div:nth-child(3) {
  animation-delay: 120ms;
}
.game-grid > div:nth-child(4) {
  animation-delay: 180ms;
}
.game-grid > div > div:not(.link-list) {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-right: 4px;
  border: 2px solid var(--ink);
  box-shadow: 4px 2px 0 var(--ink);
}
.game-grid h2 {
  width: 100%;
  min-height: 2rem;
  font-family: "Courier New", monospace;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}
.game-grid .bg-pink-300 {
  background: #ff79b8;
}
.game-grid .bg-green-300 {
  background: #7ee89d;
}
.game-grid .bg-blue-300 {
  background: #70c9ff;
}
.game-grid .bg-cyan-300 {
  background: var(--electric-mint);
}
.game-grid .bg-indigo-300 {
  background: #aaa7ff;
}
.game-grid .bg-orange-300 {
  background: #ffae57;
}
.game-grid .bg-purple-300 {
  background: #d99cff;
}
.game-grid .bg-red-300 {
  background: #ff7979;
}
.game-grid .bg-yellow-300 {
  background: var(--acid-yellow);
}
.game-grid .bg-gray-300 {
  background: #c8c8c8;
}
.link-list {
  margin: -2px 4px 4px 0;
  padding: 0.5rem;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}
.link-list a {
  position: relative;
  margin: 0 !important;
  padding: 0.45rem 1.5rem 0.45rem 0.5rem !important;
  border-bottom: 1px dashed #999;
  line-height: 1.25;
  transition:
    transform 100ms ease,
    background-color 100ms ease;
}
.link-list a:last-child {
  border-bottom: 0;
}
.link-list a:nth-child(even) {
  background: #f1f1f1;
}
.link-list a:nth-child(odd) {
  background: #fff;
}
.link-list a::after {
  position: absolute;
  right: 0.5rem;
  content: "↗";
  font-family: "Courier New", monospace;
  font-weight: 900;
}
.new-game-tag {
  margin-left: 8px;
  display: inline-flex;
  padding:4px;
  align-items: center;
  justify-content: center;
  margin-right: 0.4rem;
  border: 2px solid var(--ink);
  background: var(--hot-pink);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.625rem;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
  animation: new-game-blink 1.2s steps(2, end) infinite;
}
.new-game-tag[hidden],
.new-game-banner__badge[hidden] {
  display: none;
}
.link-list a:hover {
  z-index: 1;
  background: var(--acid-yellow);
  box-shadow: 3px 3px 0 var(--hot-pink);
  text-decoration: none;
  transform: translate(-2px, -2px);
}
.link-list a:focus-visible,
.site-footer a:focus-visible {
  z-index: 2;
  outline: 3px dashed var(--ink);
  outline-offset: 2px;
}
.site-footer {
  margin: 2rem 6px 6px 0;
  padding: 1rem;
  border: 3px solid var(--ink);
  background: var(--electric-mint);
  box-shadow: 6px 6px 0 var(--hot-pink);
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-weight: 700;
}
.site-footer a {
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.site-footer a:hover {
  background: var(--acid-yellow);
  color: var(--ink);
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.new-game-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 6px 1.25rem 0;
  padding: 0.75rem 1rem;
  overflow: hidden;
  border: 3px solid #000;
  background: #40f4d0;
  box-shadow: 6px 6px 0 #ff4fa3;
  color: #000;
  font-family: "Courier New", monospace;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}
.new-game-banner:hover {
  transform: translate(3px, 3px);
  background: #fff200;
  box-shadow: 3px 3px 0 #ff4fa3;
}
.new-game-banner:focus-visible {
  outline: 3px dashed #000;
  outline-offset: 5px;
}
.new-game-banner__badge {
  padding: 0.125rem 0.5rem;
  border: 2px solid #000;
  background: #ff4fa3;
  color: #000;
  animation: new-game-blink 1.2s steps(2, end) infinite;
}
.new-game-banner__arrow {
  font-size: 1.75rem;
  line-height: 1;
}
@keyframes new-game-blink {
  50% {
    background: #fff200;
    color: #000;
  }
}
@media (min-width: 36rem) {
  .game-grid {
    column-count: 2;
  }
}
@media (min-width: 68rem) {
  .game-grid {
    column-count: 4;
  }
}
@media (max-width: 420px) {
  body.bg-gray-100 {
    padding: 0.75rem;
  }
  .site-frame {
    padding: 0.75rem;
    box-shadow: 6px 6px 0 var(--ink);
  }
  .section-heading {
    padding: 0.875rem;
  }
  .section-heading h1 {
    font-size: 1.65rem;
  }
  .new-game-banner {
    gap: 0.5rem;
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .new-game-banner,
  .new-game-banner__badge,
  .new-game-tag,
  .game-grid > div,
  .link-list a {
    animation: none;
    transition: none;
  }
}
