/* Kid-friendly forest theme; existing classes kept to match HTML structure */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Arial', sans-serif;
  background: #1a4731;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.02) 1px, transparent 1px),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(135deg, #1a4731 0%, #2d5016 50%, #1a4731 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.container { width: 100%; max-width: 500px; }
.card {
  background: #f7f9f7;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  text-align: center;
  border: 3px solid #2d5016;
}
h1 { color: #4a5568; font-size: 2.5rem; margin-bottom: 30px; font-weight: bold; }

.word-section, .saved-lists-section { margin-bottom: 30px; }
.saved-lists-section h3, .create-list-section h3 {
  color: #2e7d32; font-size: 1.4rem; margin-bottom: 15px; font-weight: bold;
}
.saved-lists-container {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px;
}
.saved-list-item {
  display: flex; justify-content: space-between; align-items: center;
  background: #e8f5e8; border: 2px solid #c8e6c9; border-radius: 8px; padding: 12px 15px;
}
.list-name { font-weight: bold; color: #2e7d32; font-size: 1.1rem; }
.list-actions { display: flex; gap: 8px; }

.load-btn, .delete-btn {
  padding: 6px 12px; border: none; border-radius: 6px; font-size: .9rem; font-weight: bold;
  cursor: pointer; transition: all .2s ease;
}
.load-btn { background: #4caf50; color: white; border: 1px solid #388e3c; }
.load-btn:hover { background: #388e3c; }
.delete-btn { background: #f44336; color: white; border: 1px solid #d32f2f; }
.delete-btn:hover { background: #d32f2f; }

.no-lists { color: #666; font-style: italic; text-align: center; padding: 20px; }
.divider { height: 2px; background: #c8e6c9; margin: 20px 0; border-radius: 1px; }

.list-name-input, #wordListInput, #userInput {
  width: 100%; padding: 12px; font-size: 1.1rem; border: 3px solid #c8e6c9; border-radius: 12px;
  transition: border-color .3s ease; font-weight: bold;
}
.list-name-input:focus, #wordListInput:focus, #userInput:focus {
  outline: none; border-color: #2e7d32; box-shadow: 0 0 0 3px rgba(46,125,50,.1);
}

.button-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 10px;}
.save-btn, .start-btn, .hear-btn, .check-btn, .next-btn, .new-list-btn {
  border: none; border-radius: 12px; cursor: pointer; transition: all .3s ease; font-weight: bold;
}
.save-btn { background: #689f38; color: white; padding: 15px 25px; border: 2px solid #558b2f; }
.save-btn:hover { background: #558b2f; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(104,159,56,.4); }
.start-btn, .hear-btn { background: #2f7d32; color: white; padding: 15px 30px; border: 2px solid #1b5e20; }
.start-btn:hover, .hear-btn:hover { background: #1b5e20; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(47,125,50,.4); }
.check-btn { background: #388e3c; color: white; padding: 15px 25px; border: 2px solid #2e7d32; }
.check-btn:hover { background: #2e7d32; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(56,142,60,.4); }
.next-btn { background: #4caf50; color: white; padding: 12px 25px; border: 2px solid #388e3c; }
.next-btn:hover { background: #388e3c; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(76,175,80,.4); }
.new-list-btn { background: #689f38; color: white; padding: 12px 20px; border: 2px solid #558b2f; }
.new-list-btn:hover { background: #558b2f; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(104,159,56,.4); }

.word-number { color: #718096; font-size: 1.1rem; font-weight: 600; margin-top: 8px; }

.input-section { display: flex; gap: 15px; margin: 20px 0; align-items: center; }
.feedback {
  min-height: 60px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: bold; margin-bottom: 20px; border-radius: 12px; padding: 15px;
  transition: all .3s ease;
}
.feedback.correct { background: #f0fff4; color: #22543d; border: 2px solid #68d391; }
.feedback.incorrect { background: #fef5e7; color: #c53030; border: 2px solid #f6ad55; }

.score {
  display: flex; justify-content: space-between; background: #e8f5e8; padding: 15px; margin-top: 10px;
  border-radius: 12px; font-size: 1.1rem; font-weight: bold; color: #2e7d32; border: 2px solid #c8e6c9;
}

@media (max-width: 600px) {
  .card { padding: 30px 20px; }
  h1 { font-size: 2rem; }
  .input-section { flex-direction: column; }
  .score { flex-direction: column; gap: 10px; text-align: center; }
  .button-group { flex-direction: column; }
  .saved-list-item { flex-direction: column; gap: 10px; text-align: center; }
}
