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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
    padding-bottom: 60px;
    overflow-y: auto;
}

#app {
    max-width: 500px;
    width: 100%;
}

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

header h1 {
    font-size: 2rem;
    color: #e94560;
    margin-bottom: 10px;
}

#score-display {
    font-size: 1.1rem;
    color: #aaa;
}

#correct-count {
    color: #4ecca3;
}

#wrong-count {
    color: #e94560;
}

#streak-count {
    color: #f9a826;
}

#word-card {
    background: #16213e;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
    border: 2px solid #0f3460;
}

#word-card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#dutch-word {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

#tts-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    border: 2px solid #0f3460;
    background: #0f3460;
    color: #aaa;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

#tts-btn:hover {
    border-color: #e94560;
    color: #fff;
    background: #1a1a3e;
}

#tts-btn:active {
    transform: scale(0.9);
}

#tts-btn.speaking {
    border-color: #4ecca3;
    color: #4ecca3;
    background: #1a3a2e;
}

.question-block {
    margin-bottom: 24px;
}

.question-label {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 10px;
}

.options {
    display: flex;
    gap: 10px;
}

.article-options {
    display: flex;
    gap: 10px;
}

.meaning-options {
    flex-direction: column;
}

.option-btn {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #0f3460;
    border-radius: 10px;
    background: #16213e;
    color: #eee;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.option-btn:hover:not(.disabled) {
    border-color: #e94560;
    background: #1a1a3e;
}

.option-btn.correct {
    border-color: #4ecca3;
    background: #1a3a2e;
    color: #4ecca3;
}

.option-btn.wrong {
    border-color: #e94560;
    background: #3a1a1e;
    color: #e94560;
}

.option-btn.disabled {
    cursor: default;
    opacity: 0.6;
}

.option-btn.disabled.correct {
    opacity: 1;
}

.feedback {
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.feedback.hidden {
    display: none;
}

.feedback.wrong-feedback {
    background: #2a1520;
    border: 1px solid #e9456055;
    color: #f0a0a0;
}

.feedback.correct-feedback {
    background: #152a20;
    border: 1px solid #4ecca355;
    color: #a0f0c0;
}

.hint-toggle {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: #e9456088;
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
}

.hint-toggle:hover {
    background: #e94560;
}

.hint-text {
    display: none;
    margin-top: 8px;
    padding: 10px 14px;
    background: #0f3460;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
}

.hint-text.visible {
    display: block;
}

#next-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: #e94560;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 10px;
}

#next-btn:hover {
    background: #c73650;
}

#next-btn.hidden {
    display: none;
}

/* Toast notification */
#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #e94560;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    text-align: center;
    max-width: 90%;
}

#toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
