
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px 20px 48px;
  background: #f7f7f2;
  color: #30312c;
  font-family: Arial, sans-serif;
}

.app {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 24px;
  border-bottom: 1px solid #e3e3d9;
}

.brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.progress {
  color: #858678;
  font-size: 11px;
  letter-spacing: 1px;
}

.exercise {
  padding-top: 48px;
}

.eyebrow,
.card-label,
.cue-label {
  color: #858678;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.eyebrow {
  margin-bottom: 12px;
  text-align: center;
}

h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
}

.verb-card {
  padding: 28px 20px;
  background: #e9eadb;
  border-radius: 16px;
  text-align: center;
}

.target-verb {
  margin-top: 12px;
  color: #555b39;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 3px;
}

.cue-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.cue {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 18px;
  border-radius: 14px;
}

.cue-subject {
  background: #e8eee2;
}

.cue-activity {
  background: #f1e9dd;
}

.cue-time {
  grid-column: 1 / -1;
  background: #e5ebef;
}

.cue-label {
  font-size: 10px;
  letter-spacing: 1.4px;
}

.cue-subject .cue-label {
  color: #65745c;
}

.cue-activity .cue-label {
  color: #927557;
}

.cue-time .cue-label {
  color: #627b8c;
}

.cue-value {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.cue-subject-value {
  color: #303b2b;
}

.cue-activity .cue-value {
  color: #493b2c;
}

.cue-time .cue-value {
  color: #354b59;
}

.record-section {
  margin-top: 32px;
}

.attempt-history {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.attempt-card {
  padding: 18px;
  background: #fff;
  border: 1px solid #e9e9e1;
  border-radius: 12px;
}

.attempt-label {
  display: block;
  margin-bottom: 10px;
  color: #858678;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.attempt-sentence {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.wrong-word {
  color: #b34b40;
  font-weight: 700;
}

.correct-word {
  color: #4f8a55;
  font-weight: 700;
}

.time-cue {
  color: inherit;
  font-weight: 700;
}

.transcription {
  margin: 16px 0 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #e9e9e1;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
}

.mic-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin: 28px auto 0;
  border: none;
  border-radius: 50%;
  background: #686d47;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, transform 0.2s;
}

.mic-button:hover {
  transform: scale(1.04);
}

.mic-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mic-button.recording {
  background: #a65b52;
  transform: scale(1.05);
}

.mic-icon {
  display: block;
  width: 30px;
  height: 30px;
}

.mic-instruction {
  margin: 14px 0 0;
  color: #555b39;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.primary-button,
.secondary-button {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.primary-button {
  border: none;
  background: #686d47;
  color: #fff;
}

.primary-button:hover {
  background: #555b39;
}

.secondary-button {
  border: 1px solid #686d47;
  background: transparent;
  color: #555b39;
}

.secondary-button:hover {
  background: #e9eadb;
}

.model-answer {
  margin-top: 24px;
  padding: 20px;
  background: #e9eadb;
  border-radius: 12px;
  text-align: left;
}

.model-answer p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  body {
    padding: 16px 18px 36px;
  }

  .exercise {
    padding-top: 36px;
  }

  h1 {
    font-size: 28px;
  }

  .target-verb {
    font-size: 38px;
  }

  .cue {
    padding: 15px;
  }

  .cue-value {
    font-size: 14px;
  }
}