.mobile-only { display: none; }

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .mobile-only {
        display: flex;
    }

    .cell {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}