/* Claudia Spelling Trainer — phone-first layout */

* { -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  overscroll-behavior: none;
}

.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  min-height: 100vh;
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.screen.active {
  display: flex;
}

.btn-primary {
  padding: 1.1rem 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 0.85rem;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 0 #15803d;
  transition: transform 0.05s, box-shadow 0.05s, background 0.1s;
}
.btn-primary:active {
  background: #15803d;
  transform: translateY(2px);
  box-shadow: 0 2px 0 #15803d;
}

.btn-secondary {
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  background: white;
  color: #1e293b;
  border: 2px solid #cbd5e1;
  border-radius: 0.85rem;
  cursor: pointer;
  width: 100%;
  transition: background 0.1s;
}
.btn-secondary:active {
  background: #f1f5f9;
}

.voice-btn {
  padding: 1.1rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  background: white;
  color: #1e293b;
  border: 2px solid #cbd5e1;
  border-radius: 0.85rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.voice-btn:active {
  background: #f1f5f9;
}
.voice-btn.selected {
  border-color: #16a34a;
  background: #f0fdf4;
}

/* Word-too-long handling on the mark phase */
#mark-word, #mark-spelled {
  hyphens: none;
  word-break: keep-all;
}

/* Three-button mark phase: Right / Wrong / Easy */
.mark-actions {
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
  width: 100%;
  justify-content: stretch;
}
.mark-btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 1rem 0.4rem;
  border: none;
  border-radius: 0.85rem;
  cursor: pointer;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.05s, box-shadow 0.05s, filter 0.1s;
  min-height: 5.5rem;
}
.mark-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}
.mark-btn .mark-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.mark-btn .mark-label {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.mark-btn-right {
  background: #16a34a;  /* green */
}
.mark-btn-right:active { background: #15803d; }

.mark-btn-wrong {
  background: #dc2626;  /* red */
}
.mark-btn-wrong:active { background: #b91c1c; }

.mark-btn-easy {
  background: #d97706;  /* gold-amber */
}
.mark-btn-easy:active { background: #b45309; }

.hidden {
  display: none !important;
}
