        .header-buttons {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 6px 8px;
            width: auto;
            background: rgba(10,12,18,0.45);
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.06);
            box-shadow: 0 6px 18px rgba(0,0,0,0.45);
            backdrop-filter: blur(6px);
            position: relative;
            left: 50%;
            transform: translateX(-50%);
        }

        .header-buttons-right {
            display: none;
        }



.modal {
    position: fixed;
    z-index: 2147483647;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 300ms cubic-bezier(.2,.9,.2,1), visibility 300ms ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: linear-gradient(135deg, #151823 0%, #0f1724 100%);
    padding: 22px;
    border-radius: 12px;
    width: 92%;
    max-width: 620px;
    max-height: 82vh;
    overflow-y: auto;
    color: #e8e8e8;
    position: relative;
    z-index: 2147483647;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255,107,157,0.12);
    font-family: 'Arial', 'Segoe UI', sans-serif;
    font-weight: normal;
    transform: translateY(-20px) scale(.94);
    opacity: 0;
    transition: transform 300ms cubic-bezier(.16,1,.3,1), opacity 260ms ease;
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@keyframes overlayPulse {
    0% { background-color: rgba(0,0,0,0.78); }
    50% { background-color: rgba(0,0,0,0.85); }
    100% { background-color: rgba(0,0,0,0.8); }
}

.modal.show {
    animation: overlayPulse 800ms ease-in-out 1;
}


@media (max-width: 700px) {
    .modal {
        
        align-items: flex-start;
        overflow-y: auto;
    }
    .modal-content {
        max-width: calc(100% - 72px); 
        margin: 24px auto;
        padding: 14px;
        border-radius: 8px;
        transform: translateY(0) scale(.98);
        font-size: 14px;
        box-sizing: border-box;
        max-height: calc(100vh - 36px);
        overflow-y: auto;
    }
    .modal-body p, .modal-body li, .modal-body h3 {
        font-size: 14px;
    }
    .modal-header h2 {
        font-size: 16px;
    }
    .header-btn svg.size-6 {
        width: 20px;
        height: 20px;
    }

}

@media (max-width: 630px) {
    #settingsModal .modal-content,
    #patchNotesModal .modal-content,
    #howToPlayModal .modal-content {
        width: calc(100% - 70px); 
        max-width: none;
    }
}

@media (max-width: 450px) {
    #settingsModal .modal-content,
    #patchNotesModal .modal-content,
    #howToPlayModal .modal-content {
        width: calc(100% - 70px); 
        max-width: none;
        padding: 12px;
    }
}

.modal-content * {
    font-family: 'Arial', 'Segoe UI', sans-serif !important;
    font-weight: normal !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff6b9d;
    padding-bottom: 15px;
}

.modal-header h2 {
    color: #ff6b9d;
    margin: 0;
    font-size: 1.8rem;
    font-weight: normal;
}

.close-btn {
    color: #ff6b9d;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: #ff5f92;
}

.modal-body {
    color: #e0e0e0;
}

.modal-body h3 {
    color: #ffa500;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body p {
    line-height: 1.6;
    margin-bottom: 12px;
}

.modal-body ul, .modal-body ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.patch-note {
    background: rgba(255, 107, 157, 0.1);
    border-left: 4px solid #ff6b9d;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
}

.patch-date {
    color: #ffa500;
    margin-bottom: 8px;
}


#patchNotesModal .modal-content {
    max-width: 560px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #151a27 0%, #0f121b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.58);
}

#patchNotesModal .modal-header {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 10px;
}

#patchNotesModal .modal-header h2 {
    color: #f4f6ff;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#patchNotesModal .close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #d5d8e5;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#patchNotesModal .close-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
}


#settingsModal .modal-content,
#howToPlayModal .modal-content {
    max-width: 560px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #151a27 0%, #0f121b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.58);
}

#howToPlayModal .modal-content {
    max-height: 82vh;
    overflow: hidden;
}

#howToPlayModal .modal-body {
    max-height: 58vh;
    overflow-y: auto;
    padding-right: 4px;
}

#settingsModal .modal-header,
#howToPlayModal .modal-header {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 10px;
}

#settingsModal .modal-header h2,
#howToPlayModal .modal-header h2 {
    color: #f4f6ff;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.modal-header-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-header-title svg {
    width: 22px;
    height: 22px;
}

#settingsModal .close-btn,
#howToPlayModal .close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #d5d8e5;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#settingsModal .close-btn:hover,
#howToPlayModal .close-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
}

.patch-intro {
    margin: 0 0 14px 0;
    color: #b8bfcc;
    font-size: 0.92rem;
}

.notes-container {
    max-height: 58vh;
    overflow-y: auto;
    padding-right: 4px;
}

.note-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.note-date {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    margin-bottom: 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 170, 92, 0.45);
    background: rgba(255, 170, 92, 0.14);
    color: #ffd19a;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.note-item ul {
    margin: 0;
    padding-left: 18px;
}

.note-item li {
    margin: 0 0 6px 0;
    color: #e6e9f0;
    line-height: 1.42;
}

.note-item li:last-child {
    margin-bottom: 0;
}

.header-btn {
    padding: 6px;
    background: none;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.12s;
}

.header-btn:hover {
    transform: scale(1.08);
}

.header-btn i {
    margin-right: 0;
}

.header-btn svg.size-6 {
    width: 28px;
    height: 28px;
    display: block;
}

.settings-item {
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#settingsModal .modal-body {
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.settings-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: auto;
}

.settings-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    text-decoration: none;
    transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}

.settings-action-btn:hover {
    transform: translateY(-1px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
}

.settings-action-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.toggle-switch {
    display: inline-block;
    width: 50px;
    height: 25px;
    background: #555;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    margin-left: 10px;
    vertical-align: middle;
}

.toggle-switch.active {
    background: #e53935;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: left 0.3s;
}

.toggle-switch.active .toggle-slider {
    left: 27px;
}


.modal-paragraph {
    margin-bottom: 15px;
    line-height: 1.6;
}

.next-champion {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.next-title {
    color: #e4e8ff;
    font-weight: bold;
    margin-bottom: 5px;
}

.modal-time {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin: 10px 0;
}

.modal-timezone {
    color: #b8bfcc;
    font-size: 0.9rem;
}

.modal-hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    margin: 20px 0;
}

.modal-title {
    color: #f4f6ff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.modal-sub-title {
    color: #ffd19a;
    font-weight: bold;
}

.modal-info {
    color: #b8bfcc;
    font-style: italic;
}

.modal-category {
    margin-bottom: 15px;
}

.modal-good {
    color: #4CAF50;
    font-weight: bold;
}

.modal-partial {
    color: #FF9800;
    font-weight: bold;
}

.modal-bad {
    color: #F44336;
    font-weight: bold;
}

    </style>
