/* ===== My Story Layout ===== */

.story-steps {
  margin-top: 6px;
}


.story-progress {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 10px;
}

/* ===== Question Area ===== */

.story-prompt {
  font-size: 26px;
  font-weight: 900;
  margin: 18px 0 8px;
  color: #111827;
}

.story-help {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* ===== Input Area ===== */

.story-input {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 26px;
}

.story-input input {
  width: 100%;
  max-width: 260px;
  padding: 14px 16px;
  font-size: 18px;
  border-radius: 20px;
  border: 2px solid #f9a8d4;
  text-align: center;
  outline: none;
}

.story-input input:focus {
  border-color: #ec4899;
}

/* ===== Choice Buttons ===== */

.story-input .btn-soft {
  background: #fde2f3;
  border-radius: 22px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* ===== Actions ===== */

.story-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}


/* ===== Result Screen ===== */

.story-result {
  margin-top: 20px;
}

#storyTitle {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 18px;
  color: #7c3aed;
}

/* ===== Story Lines ===== */

.story-lines {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.story-line {
  background: #ffffff;
  border-radius: 24px;
  padding: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}.story-fill {
  color: #ec4899;
  background: #fde2f3;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 900;
}

/* ===== Speak Button ===== */

#sayBtn {
  background: #fde2f3;
  color: #7c2d12;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 18px;
  box-shadow: 0 3px 0 #f9a8d4;
}


#sayBtn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #f472b6;
}

/* ===== Next Button ===== */

#nextBtn {
  background: linear-gradient(135deg, #c7d2fe, #a5b4fc);
  color: #1e3a8a;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 18px;
  box-shadow: 0 3px 0 #818cf8;
  min-width: 120px;
}



#nextBtn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #818cf8;
}
.story-progress {
  background: rgba(255,255,255,0.75);
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: 700;
  color: #4c1d95;
  display: inline-block;
}

.story-prompt {
  background: rgba(255,255,255,0.8);
  padding: 16px 18px;
  border-radius: 22px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.story-actions .btn-soft,
.story-actions .btn-pink {
  min-width: 120px;
  font-size: 16px;
  font-weight: 900;
  border-radius: 24px;
}

#backStepBtn {
  background: #f1f5f9;
  color: #334155;
  box-shadow: 0 3px 0 #cbd5f5;
}

#backStepBtn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #cbd5f5;
}
#sayBtn {
  background: rgba(255,255,255,0.6);
  color: #7c3aed;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  box-shadow: none;
  margin-top: 8px;
}



#sayBtn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 8px rgba(124,58,237,0.25);
}
.story-prompt,
.story-help,
.story-input,
.story-actions,
.story-progress {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.story-prompt {
  font-size: 22px;
  line-height: 1.3;
}

.story-help {
  background: rgba(255,255,255,0.75);
  padding: 8px 12px;
  border-radius: 14px;
}
.choice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.choice-btn {
    flex: 1;
    text-align: center;
}

.choice-speak {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.75);
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.choice-speak:hover {
    background: #fde2f3;
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(236,72,153,0.35);
}
.choice-speak:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

