* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    color: white;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat span:first-child {
    font-size: 0.9rem;
    opacity: 0.8;
}

.stat span:last-child {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 5px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

#progress-fill {
    height: 100%;
    background: linear-gradient(to right, #4cc9f0, #43e97b);
    width: 0%;
    transition: width 0.3s ease;
}

section {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

section h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#mission-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#mission-input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

#mission-form button {
    padding: 12px 20px;
    background: #4cc9f0;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

#mission-form button:hover {
    background: #3aafc5;
}

#missions-list, #achievements-list {
    list-style: none;
}

.mission-item, .achievement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.mission-item:hover, .achievement-item:hover {
    transform: translateY(-2px);
}

.mission-text, .achievement-text {
    flex: 1;
}

.mission-actions {
    display: flex;
    gap: 10px;
}

.mission-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.complete-btn {
    background: #43e97b;
    color: white;
}

.complete-btn:hover {
    background: #38c962;
}

.delete-btn {
    background: #ff6b6b;
    color: white;
}

.delete-btn:hover {
    background: #ff5252;
}

.achievement-item {
    opacity: 0.7;
}

.achievement-item.unlocked {
    opacity: 1;
    border: 2px solid #4cc9f0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    header h1 {
        font-size: 2rem;
    }
    header p {
        font-size: 1rem;
    }
    .game-stats {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .stat {
        align-items: flex-start;
    }
    .stat span:last-child {
        font-size: 1.3rem;
    }
    section h2 {
        font-size: 1.5rem;
    }
    #mission-form {
        flex-direction: column;
    }
    #mission-input {
        width: 100%;
    }
    #mission-form button {
        width: 100%;
    }
    .mission-item, .achievement-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .mission-actions {
        align-self: flex-end;
        width: 100%;
        justify-content: flex-end;
    }
    .mission-actions button {
        flex: 1;
        margin-top: 5px;
    }
}