#element-flashcards-app {
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.eft-screen {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    background: #ffffff;
}

.eft-screen-number {
    background: radial-gradient(circle, #f5faff 0%, #e4f0ff 100%);
}

.eft-label {
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
}

#eft-number-display {
    font-size: 80px;
    font-weight: 700;
    margin: 20px 0;
}

.eft-status {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.eft-screen-blank {
    background: #111;
    color: #eee;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eft-blank-message {
    opacity: 0.4;
    font-size: 16px;
}

#eft-start-btn,
#eft-restart-btn {
    padding: 10px 24px;
    font-size: 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    color: white;
    cursor: pointer;
    margin-top: 15px;
}

#eft-start-btn:hover,
#eft-restart-btn:hover {
    opacity: 0.9;
}

.eft-screen-finished .eft-star {
    font-size: 96px;
    color: gold;
    margin-bottom: 10px;
}

#eft-top10-list {
    text-align: left;
    max-width: 420px;
    margin: 0 auto 15px auto;
}

.eft-actions {
    margin-top: 10px;
}

#eft-know-btn {
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #111;
    cursor: pointer;
}

#eft-know-btn:hover {
    opacity: 0.9;
}

.eft-answer {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

.eft-pause-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.eft-pause-box {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 320px;
}

.eft-speedometer {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 999px;
    margin-top: 10px;
    overflow: hidden;
}

#eft-speed-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e74c3c, #f1c40f, #2ecc71);
    transition: width 0.2s ease-out;
}

.eft-progress {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 999px;
    margin-top: 10px;
    overflow: hidden;
}

#eft-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e74c3c, #f1c40f, #2ecc71);
    transition: width 0.2s ease-out;
}

#eft-quit-btn {
    position: absolute !important;
    top: 12px !important;
    right: 20px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.8) !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 20 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-family: sans-serif !important;
}

#eft-quit-btn:hover {
    background: rgba(220, 53, 69, 0.9) !important;
    transform: scale(1.1);
}

.eft-screen-number {
    position: relative !important;  /* CRITICAL - makes X position work */
    background: radial-gradient(circle, #f5faff 0%, #e4f0ff 100%);
}
