:root {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --primary: #6200ea;
    --secondary: #03dac6;
    --text-main: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--bg-color);
    display: flex; justify-content: center; padding: 20px; margin: 0;
}

.container {
    max-width: 500px; width: 100%; background: var(--card-bg);
    padding: 25px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hidden { display: none !important; }

h1 { color: var(--primary); text-align: center; }

.input-group { margin-bottom: 20px; }

input, textarea {
    width: 100%; padding: 12px; border: 2px solid #eee;
    border-radius: 10px; box-sizing: border-box; font-size: 16px;
}

.primary-btn {
    width: 100%; padding: 15px; background: var(--primary);
    color: white; border: none; border-radius: 12px; font-size: 18px; cursor: pointer;
}

.answer-box {
    min-height: 80px; border: 2px dashed #ddd; border-radius: 15px;
    margin: 20px 0; padding: 15px; display: flex; flex-wrap: wrap; gap: 8px;
}

.words-container {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px;
}

.word-card {
    padding: 10px 15px; background: #fff; border: 2px solid var(--primary);
    border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.2s;
}

.word-card:active { transform: scale(0.9); }

.correct-word-tag {
    background: #e8eaf6; color: var(--primary); padding: 8px 12px;
    border-radius: 6px; border: 1px solid #c5cae9;
}

.secondary-btn {
    width: 100%; background: none; border: 1px solid #ccc; padding: 10px;
    border-radius: 10px; cursor: pointer; color: #777;
}

.modal {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center;
}

.modal-content { background: white; padding: 30px; border-radius: 20px; text-align: center; }
