/* General Body Styling */
body { font-family: 'Fredoka One', cursive; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; padding: 20px 0; box-sizing: border-box; background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); overflow-y: auto; transition: all 0.5s ease; }
/* When this class is active on the body, it pushes the app container to the top */
body.game-active { align-items: flex-start; }

#app-container { width: 95%; max-width: 700px; /* Increased max-width */ background: rgba(255, 255, 255, 0.2); padding: 30px; border-radius: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); text-align: center; color: white; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); transition: color 0.5s ease; }
#app-container.dark-text { color: #444; text-shadow: 1px 1px 2px rgba(255,255,255,0.2); }

/* Screen Management & Text */
.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
h1 { font-size: 3rem; } h2 { font-size: 2.5rem; } p { font-size: 1.4rem; }

/* Buttons General */
button, .button { font-family: 'Fredoka One', cursive; font-size: 1.5rem; padding: 15px 35px; border: none; border-radius: 50px; color: #fff; cursor: pointer; margin: 10px; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.2); background: #ff758c; border-bottom: 5px solid #ff4b6e; }
button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
button:active { transform: translateY(1px); border-bottom-width: 2px; }
.player-btn .character { font-size: 2.5rem; }

/* HIGHLIGHTED START BUTTON */
#start-game-btn { background: #55E6C1; border-bottom-color: #1abc9c; font-size: 1.8rem; padding: 20px 45px; animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* Icon Buttons */
.icon-btn { font-size: 2rem; width: 60px; height: 60px; padding: 0; border-radius: 50%; line-height: 1; }
#settings-btn { position: absolute; top: 15px; right: 15px; }
#mic-btn.listening { background: #e74c3c; animation: pulse-red 1.5s infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); } }

/* Game Screen */
.game-header { display: flex; justify-content: space-between; align-items: center; font-size: 1.8rem; }
#question-container { background: rgba(0,0,0,0.1); padding: 40px 20px; border-radius: 20px; margin: 20px 0; }
#question-text { font-size: 4.5rem; letter-spacing: 5px; font-weight: bold; }
#character-helper { font-size: 2.5rem; margin-bottom: 15px; min-height: 50px; }
.crossed-out { text-decoration: line-through; opacity: 0.5; color: #ff5252; }
.answer-section { display: flex; justify-content: center; align-items: center; }
#answer-input { font-family: 'Fredoka One', cursive; width: 50%; padding: 20px; font-size: 2.5rem; text-align: center; border: 4px solid rgba(255,255,255,0.5); border-radius: 20px; background: rgba(255,255,255,0.3); color: white; outline: none; }
#app-container.dark-text #answer-input { color: #444; border-color: rgba(0,0,0,0.2); }

/* Other Styles... (Unchanged but included for completeness) */
.correct-answer { animation: correct 0.5s ease; }
@keyframes correct { 0% { transform: scale(1); } 50% { transform: scale(1.1); background: linear-gradient(135deg, #a8ff78, #78ffd6); } 100% { transform: scale(1); } }
.wrong-answer { animation: wrong 0.5s ease; }
@keyframes wrong { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-15px); } 40% { transform: translateX(15px); } 60% { transform: translateX(-15px); } 80% { transform: translateX(15px); } 100% { background: linear-gradient(135deg, #ff5f6d, #ffc371); } }
#results-character { font-size: 6rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-30px);} 60% {transform: translateY(-15px);} }
#review-details { margin-top: 20px; text-align: left; max-height: 45vh; overflow-y: auto; padding: 15px; background: rgba(0,0,0,0.1); border-radius: 15px; }
#review-details ul { list-style-type: none; padding: 0; margin: 0; }
#review-details li { padding: 15px; margin-bottom: 10px; border-radius: 10px; font-size: 1.4rem; }
.review-correct { background: rgba(46, 204, 113, 0.3); }
.review-wrong { background: rgba(231, 76, 60, 0.3); }
.settings-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin: 30px 0; font-size: 1.4rem; }
.settings-grid label { text-align: left; }
.settings-grid select { font-family: 'Fredoka One', cursive; padding: 8px; border-radius: 10px; font-size: 1.2rem; }
.toggle { width: 60px; height: 30px; appearance: none; background: #ccc; border-radius: 30px; position: relative; cursor: pointer; outline: none; }
.toggle:before { content: ''; position: absolute; width: 26px; height: 26px; background: white; border-radius: 50%; top: 2px; left: 2px; transition: 0.3s; }
.toggle:checked { background: #4cd137; }
.toggle:checked:before { transform: translateX(30px); }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center; z-index: 100; }
.overlay.active { display: flex; }
.overlay-content { background: rgba(255,255,255,0.2); padding: 40px; border-radius: 20px; text-align: center; }