* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
}
body {
  margin: 0;
  background: #0b1016;
  color: #ebf2eb;
  font-family: Arial, Helvetica, sans-serif;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 36px 42px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #253038;
  padding-bottom: 26px;
}
.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  color: inherit;
}
.brand span {
  color: #d0fa7b;
}
.status,
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  color: #98aba4;
}
.intro {
  padding: 58px 0 38px;
}
.eyebrow {
  color: #d0fa7b;
}
h1 {
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -3px;
  margin: 14px 0;
}
.intro > p:last-child {
  font-size: 18px;
  color: #9caaa6;
}
.games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.game {
  display: block;
  border: 1px solid #2c383d;
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #111920;
  transition:
    transform 0.16s,
    border-color 0.16s;
}
.game:hover {
  transform: translateY(-5px);
  border-color: var(--color);
}
.game:focus-visible {
  outline: 3px solid var(--color);
  outline-offset: 5px;
}
.gate {
  --color: #d0fa7b;
}
.split {
  --color: #76e1ef;
}
.hundred {
  --color: #c9b0ff;
}
.visual {
  height: 240px;
  position: relative;
  background: linear-gradient(135deg, #19272b, #0e171b);
  color: var(--color);
  border-bottom: 1px solid #263438;
}
.visual svg {
  width: 100%;
  height: 100%;
}
.number {
  position: absolute;
  left: 22px;
  top: 18px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #8da29b;
}
.mode {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-size: 12px;
  letter-spacing: 1.8px;
}
.copy {
  padding: 25px 23px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
  display: flex;
  justify-content: space-between;
}
h2 span {
  font-size: 23px;
  color: var(--color);
}
.copy p {
  font-size: 16px;
  line-height: 1.65;
  min-height: 80px;
  color: #a5b3b5;
}
.controls {
  font-size: 13px;
  color: #c4cfcf;
  line-height: 1.5;
  padding-bottom: 25px;
}
.copy strong {
  border-top: 1px solid #2c383d;
  padding-top: 20px;
  color: var(--color);
  font-size: 13px;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
}
footer {
  margin-top: 42px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: #8a9b9c;
  line-height: 1.6;
}
@media (max-width: 850px) {
  main {
    padding: 26px;
  }
  .games {
    gap: 14px;
  }
  .copy {
    padding: 19px 16px;
  }
  h2 {
    font-size: 19px;
  }
  .copy p {
    font-size: 15px;
    min-height: 100px;
  }
  .controls {
    min-height: 64px;
  }
  .status {
    font-size: 10px;
  }
}
@media (max-width: 650px) {
  main {
    padding: 23px 20px;
  }
  .status {
    display: none;
  }
  .intro {
    padding: 34px 0 25px;
  }
  .games {
    grid-template-columns: 1fr;
  }
  .game {
    margin-bottom: 10px;
  }
  .visual {
    height: 220px;
  }
  .copy p {
    min-height: 0;
  }
  .controls {
    min-height: 0;
  }
  .copy {
    padding: 25px;
  }
  footer {
    flex-direction: column;
    gap: 5px;
    margin: 24px 0;
  }
  .intro > p:last-child {
    font-size: 16px;
  }
}
