.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.landing__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.landing__logo {
  width: 7.5rem;
  height: auto;
}

.landing__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-decoration: none;
}

.landing__login:hover {
  background: var(--primary-hover);
}

button.account__name {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

button.account__name {
  display: block;
  margin: 0.25rem auto 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.reader__sentence {
  position: relative;
}

.reader__sentence-play {
  position: absolute;
  top: 0.85rem;
  left: calc(100% + 0.15rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.35rem;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}

.reader__sentence-play svg {
  width: 1.15rem;
  height: 1.15rem;
}

.reader__sentence-play:hover {
  color: var(--text);
}

.reader__sentence-play:disabled {
  cursor: wait;
}

.reader__sentence-play:focus-visible {
  outline: 2px solid #0b6fa8;
  outline-offset: 2px;
}

.is-spin {
  animation: reader-spin 0.8s linear infinite;
}

@keyframes reader-spin {
  to { transform: rotate(360deg); }
}

.reader__token[data-status="new"] {
  background: #fff3c4;
}

.reader__token[data-status="learning"] {
  background: #d5f0fc;
}

.reader__token[data-status="known"] {
  background: #d8f1e5;
}

@keyframes reader-token-pulse {
  0% { transform: scale(1); }
  42% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes reader-token-pulse-alt {
  0% { transform: scale(1); }
  42% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes reader-key-pulse {
  0% { transform: scale(1); background-color: #fff; }
  42% { transform: scale(1.08); background-color: var(--border); }
  100% { transform: scale(1); background-color: #fff; }
}

@keyframes reader-key-pulse-alt {
  0% { transform: scale(1); background-color: #fff; }
  42% { transform: scale(1.08); background-color: var(--border); }
  100% { transform: scale(1); background-color: #fff; }
}

.reader__token.is-status-pulse,
.reader-key.is-status-pulse {
  position: relative;
  z-index: 1;
  transform-origin: center;
  animation: reader-token-pulse 360ms ease forwards;
}

.reader-key.is-status-pulse {
  animation-name: reader-key-pulse;
}

@media (prefers-reduced-motion: reduce) {
  .reader__token.is-status-pulse,
  .reader-key.is-status-pulse {
    animation: none;
  }
}

.reader-float {
  height: auto;
}

.reader-float__box {
  position: relative;
  height: 32rem;
}

.reader-tip {
  margin-top: 1.15rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.4;
}

.reader-tip__title {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.reader-tip__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.45rem 0 0;
}

.reader-tip__keys {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  flex-shrink: 0;
}

.reader-tip__keys--arrows {
  display: grid;
  grid-template-columns: 1.35rem 0.95rem 1.35rem;
  grid-template-rows: 0.85rem 0.85rem;
  gap: 0.1rem;
}

.reader-key--up { grid-area: 1 / 2; }
.reader-key--left { grid-area: 2 / 1; }
.reader-key--down { grid-area: 2 / 2; }
.reader-key--right { grid-area: 2 / 3; }

.reader-tip__keys--arrows .reader-key {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border-radius: 0.2rem;
}

.reader-tip__keys--arrows .reader-key svg {
  width: 0.58rem;
  height: 0.58rem;
}

.reader-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  padding: 0 0.22rem;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 0.28rem;
  background: #fff;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1;
}

.reader-key svg {
  width: 0.7rem;
  height: 0.7rem;
  display: block;
}

.reader-key--wide {
  min-width: 2.75rem;
  padding-inline: 0.45rem;
  font-size: 0.68rem;
}

.reader__token.is-spoken:not(.is-selected) {
  background: rgba(87, 83, 78, 0.3);
}

.reader__english-word {
  border-radius: 0.2rem;
  background-color: transparent;
  color: inherit;
}

.reader__english-word.is-aligned {
  background-color: rgba(255, 200, 0, 0.3);
  color: var(--text);
}
