* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f4f7f6; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.hidden { display: none !important; }

#setup-screen { text-align: center; margin-top: 100px; }
.mode-select button { padding: 15px 30px; font-size: 1.2rem; margin: 10px; cursor: pointer; border: none; border-radius: 8px; background: #007bff; color: white; transition: transform 0.2s; }
.mode-select button:hover { transform: scale(1.05); background: #0056b3; }

header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid #ddd; padding-bottom: 10px; }
.status-bar { display: flex; gap: 10px; align-items: center; }
.status-bar button { padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; color: white; }
#start-session-btn { background-color: #28a745; }
#start-session-btn:disabled { background-color: #ccc; cursor: not-allowed; }
#start-session-btn:hover:not(:disabled) { background-color: #218838; }

.teams-section { background: white; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
#team-controls input, #team-controls select { padding: 8px; margin-right: 10px; border: 1px solid #ccc; border-radius: 4px; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; background: white; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
th { background-color: #e9ecef; }

.active-word-display { margin-top: 30px; text-align: center; background: #fff3cd; padding: 20px; border-radius: 8px; border: 2px solid #ffeeba; }
.large-word { font-size: 3rem; font-weight: bold; color: #856404; margin-top: 10px; }

.centered-msg { text-align: center; font-size: 1.5rem; color: #666; margin-top: 50px; }
.instruction { font-size: 1.2rem; margin-bottom: 10px; text-align: center; }
.target-word { font-size: 2.5rem; font-weight: bold; text-align: center; margin: 20px 0; padding: 20px; background: #e2e6ea; border-radius: 10px; }

.vowel-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-top: 20px; }
.vowel-btn { padding: 20px 5px; font-size: 1.2rem; border: none; border-radius: 8px; cursor: pointer; background-color: #17a2b8; color: white; transition: background 0.3s, transform 0.1s; min-height: 80px; }
.vowel-btn:hover { background-color: #138496; }
.vowel-btn:active { transform: scale(0.95); }
.short { background-color: #6c757d; }
.long { background-color: #fd7e14; }

#feedback-msg { text-align: center; height: 30px; font-weight: bold; margin-top: 15px; }

@media (max-width: 768px) {
    .vowel-grid { grid-template-columns: repeat(3, 1fr); }
    .vowel-btn { font-size: 1rem; padding: 15px 2px; }
    header { flex-direction: column; align-items: flex-start; }
    .status-bar { flex-wrap: wrap; margin-top: 10px; }
}