/* Base & layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
body {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* no text selection anywhere */
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  /* keep default arrow cursor */
  cursor: default;
}

#header-wrapper {
  display: grid;
  grid-template-columns: min-content;
  justify-content: center;
  gap: 10px;
}

#names {
  font-size: 4.1vw;
  line-height: 1;
  margin-bottom: -0.5em;
  text-align: center;
  white-space: nowrap;
  min-width: 0;
}

#word {
  margin: 0;
  display: inline-flex;
  gap: 0.05em;
  font-size: 18vw;
  line-height: 1;
  justify-self: center;
}

/* Individual letters */
.letter {
  display: inline-block;
  transition: color 160ms ease, transform 160ms ease;
  color: #111; /* base color */
  cursor: default; /* keep default cursor on letters too */
}

.letter:hover,
.letter.tapped {
  transform: scale(1.2);
}

.letter:nth-child(1):hover,
.letter:nth-child(1).tapped {
  color: #da3e3e;
}

.letter:nth-child(2):hover,
.letter:nth-child(2).tapped {
  color: #f1c02c;
}

.letter:nth-child(3):hover,
.letter:nth-child(3).tapped {
  color: #5ac611;
}

.letter:nth-child(4):hover,
.letter:nth-child(4).tapped {
  color: #4c80e9;
}

#debug-controls {
  position: fixed;
  bottom: 10rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
  z-index: 1000;
}

input {
  width: 100%;
}
