body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 50%, #e056fd 100%);
    color: #2c3e50;
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.home-btn {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #8e44ad;
    color: white;
    font-weight: 600;
}

.game-title {
    margin: 0;
}

.sentence-fixer-container {
    max-width: 1200px;
    margin: 1.5rem auto;
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem 2rem;
}

.instructions-card,
.game-area,
.stats-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.instructions-card h2 {
    margin-top: 0;
}

.instructions-card ul {
    padding-left: 1.2rem;
}

.difficulty-selector {
    margin-top: 1rem;
}

.difficulty-selector select {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.broken-box {
    background: #8e44ad;
    color: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.broken-box h3 {
    margin: 0 0 0.4rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.broken-sentence {
    font-size: 1.3rem;
    font-weight: 600;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.option {
    background: #ecf0f1;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option:hover {
    background: #d0e4ff;
}

.option.correct {
    background: #2ecc71;
    color: white;
}

.option.incorrect {
    background: #e74c3c;
    color: white;
}

.feedback {
    min-height: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.feedback.correct {
    color: #27ae60;
}

.feedback.incorrect {
    color: #c0392b;
}

.controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.control-btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.skip-btn {
    background: #bdc3c7;
}

.next-btn {
    background: #2ecc71;
    color: white;
}

.hint-btn {
    background: #f1c40f;
}

.hint-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #34495e;
}

.stats-card h3 {
    margin-top: 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #7f8c8d;
}

.stat-value {
    font-weight: 700;
}

.achievements-card {
    margin-top: 1rem;
}

.achievement {
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: #ecf0f1;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.achievement.unlocked {
    background: #2ecc71;
    color: white;
}

.reset-btn, .back-btn {
    margin-top: 0.6rem;
    display: block;
    width: 100%;
    padding: 0.5rem;
    text-align: center;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    text-decoration: none;
}

.reset-btn {
    background: #e74c3c;
    color: white;
}

.back-btn {
    background: #95a5a6;
    color: white;
}

@media (max-width: 1000px) {
    .sentence-fixer-container {
        grid-template-columns: 1fr;
    }
}
