.tt {
  --r: #ff2a2a;
  --g: #22ff22;
  --y: #ffff2a;
  --b: #2a2aff;
  --m: #ff2aff;
  --c: #2affff;
  --w: #ffffff;
  position: relative;
  width: 540px;
  height: 540px;
  box-sizing: border-box;
  padding: 22px 24px;
  background: #000;
  color: var(--w);
  font-family: "VT323", monospace;
  font-size: 34px;
  line-height: 1;
  overflow: hidden;
}

.tt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, #0000 0 2px, #00000040 2px 3px);
  pointer-events: none;
}

.tt * { box-sizing: border-box; }

.tt-head { display: flex; gap: 18px; margin-bottom: 18px; }
.tt-p { color: var(--w); }
.tt-y { color: var(--y); }
.tt-t { margin-left: auto; color: var(--y); }

.tt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 14px;
  background: var(--b);
}

.tt-prompt { color: var(--y); }

.tt-input {
  flex: 1;
  border: 0;
  background: none;
  color: var(--w);
  font: inherit;
  text-transform: uppercase;
  caret-color: var(--y);
  outline: none;
}

.tt-list { margin-top: 10px; outline: none; }

.tt-item {
  display: flex;
  gap: 20px;
  height: 44px;
  align-items: center;
  padding: 0 14px;
  cursor: default;
}

.tt-num { color: var(--w); }
.tt-w .tt-label { color: var(--w); }
.tt-g .tt-label { color: var(--g); }
.tt-c .tt-label { color: var(--c); }
.tt-m .tt-label { color: var(--m); }
.tt-y .tt-label { color: var(--y); }

.tt-label mark { background: none; color: inherit; text-decoration: underline; text-underline-offset: 4px; }

.tt-item[data-highlighted] { background: var(--c); }
.tt-item[data-highlighted] .tt-num,
.tt-item[data-highlighted] .tt-label { color: #000; }

.tt-empty { padding: 12px 14px; color: var(--r); }

.tt-fast {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tt-fast .r { color: var(--r); }
.tt-fast .g { color: var(--g); }
.tt-fast .y { color: var(--y); }
.tt-fast .c { color: var(--c); }
