* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  background: #111216;
  color: #faf9f5;
  font:
    16px/1.45 system-ui,
    sans-serif;
  --lime: #c3fa54;
}
body,
h1,
h2,
h3,
p {
  margin: 0;
}
.wrap {
  width: min(1152px, 92%);
  margin: auto;
}
header {
  border-bottom: 1px solid #303137;
}
.bar,
.heading,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bar {
  height: 86px;
}
h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font: italic 1000 35px/1 system-ui;
  letter-spacing: -2.4px;
  text-transform: uppercase;
}
button:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--lime);
  color: #15200e;
  border: 0;
  border-radius: 99px;
  font: 750 15px system-ui;
  padding: 12px 19px;
  cursor: pointer;
}
button:hover {
  background: #dbff91;
}
.heading {
  justify-content: start;
  gap: 15px;
  margin: 30px 0 23px;
}
h2 {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.055em;
  line-height: 1.1;
}
.heading span,
small {
  font:
    800 12px/1.3 ui-monospace,
    monospace;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}
.heading span {
  color: #b9bbc4;
  border: 1px solid #42434c;
  border-radius: 30px;
  padding: 5px 10px;
}
.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
a {
  color: inherit;
  text-decoration: none;
  display: block;
  border: 1px solid #33353e;
  border-radius: 19px;
  overflow: hidden;
  background: #1c1e25;
  transition:
    transform 0.16s,
    border-color 0.16s;
}
a:hover,
a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
a img,
canvas {
  display: block;
  width: 100%;
  aspect-ratio: 5/3;
  object-fit: cover;
}
a div {
  padding: 20px 22px 24px;
  position: relative;
  flex: 1;
}
small {
  color: var(--accent);
  display: block;
}
h3 {
  font-size: clamp(23px, 2.2vw, 30px);
  letter-spacing: -0.04em;
  line-height: 1.16;
  margin: 6px 45px 10px 0;
}
p {
  font-size: 15px;
  color: #c1c4ce;
  line-height: 1.5;
}
a div:after {
  content: '';
  position: absolute;
  right: 20px;
  top: 24px;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #33353e
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M7 4v16l13-8z'/%3E%3C/svg%3E")
    center/21px no-repeat;
}
a:hover div:after,
a:focus-visible div:after {
  background-color: color-mix(in srgb, var(--accent) 48%, black);
}
.classic {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
}
.classic canvas {
  width: 30%;
  height: 160px;
}
footer.wrap {
  margin: 38px auto 24px;
  border-top: 1px solid #303137;
  padding-top: 18px;
  color: #9599a6;
  font-size: 13px;
}
@media (max-width: 940px) {
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
  }
  .classic canvas {
    width: 42%;
  }
}
@media (max-width: 620px) {
  .games {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bar {
    height: 69px;
  }
  h1 {
    font-size: 24px;
    gap: 8px;
    letter-spacing: -1.5px;
  }
  h1 img {
    width: 36px;
    height: 36px;
  }
  button:not([hidden]) {
    font-size: 13px;
    padding: 10px 13px;
    gap: 6px;
  }
  .heading {
    margin: 23px 0 17px;
  }
  .classic {
    display: block;
  }
  .classic canvas {
    width: 100%;
    height: auto;
  }
  a div {
    padding: 17px 19px 20px;
  }
  h3 {
    font-size: 27px;
  }
  footer.wrap {
    display: block;
  }
  footer span {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
.record {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
#share {
  margin-left: auto;
  border: 1px solid #50525c;
  color: #faf9f5;
  background: transparent;
  font-size: 14px;
  padding: 10px 15px;
}
#share:hover {
  border-color: var(--lime);
}
@media (max-width: 380px) {
  .heading { gap: 8px; }
  .heading span { font-size: 10px; padding: 4px 6px; }
  #share { font-size: 12px; padding: 10px; }
}
