@font-face {
  font-family: "BetterPixels";
  src: url("fonts/BetterPixels.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

html {
  cursor: none;
}

body {
  --bg: #f4f1ec;
  --grid-line: #ebe7e0;
  --grid-size: 24px;

  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 31.125rem;
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.header-gif {
  display: block;
  width: 498px;
  height: 373px;
  margin: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.rainbow-text,
.version-tag,
.charset-heading,
.charset-grid {
  font-family: "BetterPixels", monospace;
  font-weight: normal;
  letter-spacing: 0;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
  text-rendering: geometricPrecision;
}

.page-header-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.version-tag {
  margin: 0;
  padding: 0.2em 0.65em;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #0969da;
  background-color: #ddf4ff;
  border: 1px solid #54aeff66;
  border-radius: 9999px;
  filter: drop-shadow(1px 1px 0 rgba(60, 60, 70, 0.2));
}

.rainbow-text {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff7f00,
    #ffff00,
    #00ff00,
    #0000ff,
    #4b0082,
    #9400d3,
    #ff0000
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(1px 1px 0 rgba(60, 60, 70, 0.35));
  animation: rainbow-cycle 4s linear infinite;
}

.charset {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.charset-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.charset-heading {
  margin: 0;
  font-size: 1rem;
  line-height: 1;
  color: #8a857c;
}

.charset-grid {
  display: grid;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  color: #3d3a36;
  filter: drop-shadow(1px 1px 0 rgba(60, 60, 70, 0.25));
}

.charset-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25em;
  min-height: 1.25em;
}

.charset-grid--13 {
  grid-template-columns: repeat(13, 1.25em);
}

.charset-grid--10 {
  grid-template-columns: repeat(10, 1.25em);
}

.charset-grid--symbols {
  grid-template-columns: repeat(13, 1.25em);
}

@keyframes rainbow-cycle {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 400% 50%;
  }
}
