:root {
    --bg: #0f0f0f;
    --card: #1a1a1a;
    --accent: #4f9cff;
    --correct: #2ecc71;
    --wrong: #e74c3c;
    --text: #eaeaea;
    --muted: #888;
}

* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 600px;
    background: var(--card);
    padding: 25px;
    border-radius: 16px;
}

h2 {
    font-size: 26px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.progress {
    color: var(--muted);
    margin-bottom: 15px;
}

.options button {
    width: 100%;
    margin: 8px 0;
    padding: 12px;
    border-radius: 10px;
    background: #2a2a2a;
    color: var(--text);
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.options button:hover {
    transform: scale(1.03);
    background: #3a3a3a;
}

.options button:active {
    transform: scale(0.96);
}

button.correct { background: var(--correct) !important; }
button.wrong { background: var(--wrong) !important; }

.controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.controls button {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.controls button:hover:not(:disabled) {
    transform: scale(1.05);
}

.controls button:disabled {
    background: #333;
    color: #777;
}

.controls .reset-btn {
    background: #922b21;
}

.controls .reset-btn:hover {
    background: #7b241c;
    transform: scale(1.04);
}

.top-bar {
    display: flex;
    justify-content: space-between;
}

.hint-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a2a2a;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.hint-btn:hover {
    transform: scale(1.1);
}

.hint {
    margin-top: 10px;
    color: #bbb;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 14px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.modal.show .modal-box {
    transform: scale(1);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.cancel-btn {
    flex: 1;
    background: #333;
    color: #ccc;
    border: none;
    padding: 10px;
}

.danger-btn {
    flex: 1;
    background: #922b21;
    color: white;
    border: none;
}

.review-card {
    background: #1f1f1f;
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;
    border-left: 4px solid;
}

.correct-card { border-color: #2ecc71; }
.wrong-card { border-color: #e74c3c; }

.save-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f9cff, #6ea8ff);
    color: white;
    border: none;
}

.footer {
    position: fixed;
    bottom: 10px;
    font-size: 12px;
}

.footer a {
    color: #666;
    text-decoration: none;
}

@media (max-width: 600px) {
    body {
        align-items: flex-start;
        padding: 15px;
    }

    .controls {
        flex-direction: column;
    }

    .modal-actions {
        flex-direction: column;
    }
}