.tpr-page {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    var(--teach-bg);
}

.tpr-shell {
  min-height: calc(100vh - 40px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tpr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tpr-kicker {
  margin: 0 0 6px;
  color: var(--teach-primary);
  font-weight: 800;
  letter-spacing: 0;
}

.tpr-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.tpr-actions,
.tpr-bottom-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tpr-stage {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 18px;
  align-items: center;
}

.tpr-card {
  min-height: 42vh;
  border: 1px solid var(--teach-border);
  border-radius: var(--teach-radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--teach-shadow);
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}

.tpr-turn {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--teach-ink-500);
  font-weight: 800;
}

.tpr-count {
  color: var(--teach-primary);
}

.tpr-command {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.22em;
  color: var(--teach-ink-900);
  font-size: clamp(3rem, 9vw, 8.5rem);
  font-weight: 800;
  line-height: 1.06;
  text-align: center;
}

.tpr-command--spinning {
  color: var(--teach-primary);
}

.tpr-placeholder {
  color: var(--teach-ink-500);
}

.tpr-word {
  border: 0;
  border-radius: var(--teach-radius-sm);
  padding: 0 0.06em;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.08em;
}

.tpr-word:hover,
.tpr-word--active {
  background: rgba(19, 151, 191, 0.14);
}

.tpr-word:disabled {
  cursor: default;
  text-decoration: none;
}

.tpr-meaning {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--teach-ink-700);
  font-weight: 800;
  text-align: center;
}

.tpr-meaning:empty::before {
  content: "Kelimeye dokun, anlamını gör.";
  color: var(--teach-ink-500);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
}

.tpr-meaning__emoji {
  font-size: clamp(2.2rem, 6vw, 5rem);
}

.tpr-meaning__word {
  color: var(--teach-primary);
  font-size: clamp(1.4rem, 4vw, 3rem);
}

.tpr-meaning__tr {
  font-size: clamp(1.4rem, 4vw, 3rem);
}

.tpr-jackpot {
  width: min(560px, 92vw);
  min-height: 118px;
  justify-self: center;
  border: 0;
  border-radius: var(--teach-radius-md);
  background: var(--teach-accent);
  color: #fff;
  box-shadow: 0 22px 40px rgba(142, 82, 0, 0.24);
  cursor: pointer;
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 800;
}

.tpr-jackpot:hover:not(:disabled) {
  transform: translateY(-2px);
}

.tpr-jackpot:disabled {
  opacity: 0.7;
  cursor: wait;
}

.tpr-bottom-actions {
  justify-content: center;
}

.tpr-bottom-actions .teach-btn {
  min-width: 160px;
}

.tpr-error {
  justify-self: center;
  padding: 20px;
  border: 1px solid var(--teach-border);
  border-radius: var(--teach-radius-sm);
  background: #fff;
  color: var(--teach-danger);
  font-weight: 800;
}

@media (max-width: 760px) {
  .tpr-shell {
    padding: 14px;
  }

  .tpr-header {
    align-items: stretch;
    flex-direction: column;
  }

  .tpr-actions {
    width: 100%;
  }

  .tpr-actions .teach-btn {
    flex: 1;
  }

  .tpr-card {
    min-height: 46vh;
    padding: 16px;
  }

  .tpr-jackpot {
    min-height: 96px;
  }
}
