.ct-practice {
  --ct-accent: #a598ff;
  --ct-dim: #a3a3b6;
  --ct-line: #3b3a4b;
  color: #eeedf7;
  padding: clamp(15px, 2vw, 27px);
}

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

.ct-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ct-progress {
  color: var(--ct-dim);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ct-toggle {
  border: 1px solid var(--ct-line);
  border-radius: 7px;
  padding: 5px 9px;
  background: transparent;
  color: #d7d4ed;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.ct-toggle:hover, .ct-toggle:focus-visible {
  border-color: var(--ct-accent);
}

.ct-translation {
  color: #e8e7f0;
  margin: 18px 0 4px;
  line-height: 1.7;
}

#stage:not([hidden]) ~ #copyMount .ct-translation {
  display: none;
}

.ct-roles {
  margin: 12px 0 8px;
  color: var(--ct-dim);
  font-size: 12px;
}

.ct-entry {
  position: relative;
  min-height: 70px;
  padding: 14px 16px;
  border: 1px solid var(--ct-line);
  border-radius: 10px;
  background: #171722;
  cursor: text;
}

.ct-entry:focus-within {
  border-color: var(--ct-accent);
  box-shadow: 0 0 0 2px #a598ff28;
}

.ct-entry.ct-has-error {
  border-color: #ee8195;
}

.ct-line {
  font: 600 clamp(20px, 2.4vw, 34px)/1.55 "Inter", "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
  color: #9696ac;
  font-variant-ligatures: none;
}

.ct-word {
  display: inline-block;
  max-width: 100%;
}

.ct-space {
  display: inline;
}

.ct-glyph {
  position: relative;
}

.ct-typed {
  color: var(--ct-accent);
}

.ct-error {
  color: #ff95a6;
  text-decoration: underline wavy;
  text-underline-offset: .14em;
}

.ct-current::after {
  position: absolute;
  content: '';
  left: 0;
  bottom: -.07em;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: #ddd6ff;
}

.ct-mask {
  color: transparent;
}

.ct-mask::before {
  content: '';
  width: .19em;
  height: .19em;
  border-radius: 50%;
  background: #77778d;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ct-practice .ct-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  resize: none;
  cursor: text;
  font-size: 16px;
  overflow: hidden;
}

.ct-feedback {
  min-height: 28px;
  padding: 7px 0 3px;
  line-height: 1.55;
  font-size: 12px;
  color: var(--ct-dim);
}

.ct-done .ct-feedback {
  color: #8addc2;
}

.ct-keypanel {
  width: min(100%, 440px);
  margin: 8px auto 0;
  padding: 9px 5px;
  background: #191922;
  border-radius: 10px;
  border: 1px solid #30303c;
}

.ct-row {
  display: flex;
  justify-content: center;
  gap: clamp(2px, .5vw, 5px);
  margin: 3px 0;
}

.ct-key {
  display: inline-grid;
  place-items: center;
  width: clamp(15px, 6.7%, 32px);
  height: clamp(17px, 2.2vw, 23px);
  border: 1px solid #42414e;
  border-radius: 4px;
  color: #c9c9d6;
  background: #2c2b36;
  font: 600 10px/1 "Inter", "Segoe UI", sans-serif;
}

.ct-key.ct-spacekey {
  width: 40%;
}

.ct-key.ct-nextkey {
  color: #141121;
  border-color: #c0b5ff;
  background: var(--ct-accent);
}
@media (max-width: 540px) {
  .ct-line {
    font-size: 21px;
  }
  .ct-keypanel {
    padding-block: 6px;
  }
}
