/* modals.css — Sökö (Scandinavian Stud) */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 14, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--mid);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 20px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: var(--slate);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    min-width: auto;
}

.modal-close:hover {
    color: var(--accent);
    background: none;
}

/* Rules List */
.rules-list {
    list-style: none;
    padding: 0;
}

.rules-list li {
    font-size: 14px;
    color: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid var(--accent-dim);
    line-height: 1.4;
}

.rules-list li:last-child {
    border-bottom: none;
}

/* High Scores */
.high-scores {
    max-height: 300px;
    overflow-y: auto;
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--accent-dim);
}

.score-row .rank {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: var(--accent);
    width: 30px;
}

.score-row .initials {
    font-size: 16px;
    color: var(--white);
    flex: 1;
    text-align: center;
}

.score-row .score {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: var(--gold);
}

/* Menu Buttons */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-buttons .start-btn {
    width: 100%;
}
