        .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;
}

body.modal-open {
    overflow: hidden;
}


@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;
    }

    .streak-transfer-entry {
        flex-direction: column;
        align-items: stretch;
    }

    .streak-progress-item {
        flex-direction: column;
        align-items: flex-start;
    }

}

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

@media (max-width: 450px) {
    #settingsModal .modal-content,
    #patchNotesModal .modal-content,
    #howToPlayModal .modal-content,
    #streakIntroModal .modal-content,
    #streakStatusModal .modal-content,
    #streakTransferModal .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 .google-auto-placed,
.modal .adsbygoogle,
.modal .adsbygoogle-noablate,
.modal .prosper-slot-anchor,
.modal [id^="aswift_"],
.modal [id*="google_ads"],
.modal iframe[src*="googlesyndication"],
.modal iframe[src*="doubleclick"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !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,
#streakIntroModal .modal-content,
#streakStatusModal .modal-content,
#streakTransferModal .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;
}

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

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

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

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

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

#settingsModal .modal-header,
#howToPlayModal .modal-header,
#streakIntroModal .modal-header,
#streakStatusModal .modal-header,
#streakTransferModal .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,
#streakIntroModal .modal-header h2,
#streakStatusModal .modal-header h2,
#streakTransferModal .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,
#streakIntroModal .close-btn,
#streakStatusModal .close-btn,
#streakTransferModal .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,
#streakIntroModal .close-btn:hover,
#streakStatusModal .close-btn:hover,
#streakTransferModal .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 {
    position: relative;
    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);
}

#patchNotesBtn.has-new-patch-notes::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffd84d;
    box-shadow: 0 0 0 2px rgba(10, 12, 18, 0.95), 0 0 10px rgba(255, 216, 77, 0.85);
}

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

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

.header-profile-avatar {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 17px;
    height: 17px;
    border: 2px solid #151823;
    border-radius: 50%;
    object-fit: cover;
    box-sizing: content-box;
    pointer-events: none;
}

.settings-item {
    margin: 0 0 10px;
    padding: 14px 16px;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: inset 3px 0 0 rgba(255, 107, 157, 0.72);
}

#settingsModal .modal-body > .settings-item:nth-child(-n + 3) {
    box-shadow: inset 3px 0 0 rgba(229, 57, 53, 0.88);
}

#settingsModal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.settings-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 2px 0 0;
}

.settings-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    min-height: 52px;
    padding: 10px 13px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 12, 18, 0.42);
    color: #f5f7ff;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.2;
    transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.settings-actions .settings-bot-link {
    grid-column: 1 / -1;
    justify-content: center;
}

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

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

.settings-bot-icon {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.settings-action-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.settings-action-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 1px solid currentColor;
    border-radius: 7px;
    font-size: 1.1rem;
    line-height: 1;
}

#soundToggle:focus-visible,
#halloweenThemeToggle:focus-visible,
.settings-action-btn:focus-visible,
.settings-transfer-btn:focus-visible {
    outline: 2px solid #ffd166;
    outline-offset: 3px;
}

@media (max-width: 470px) {
    .settings-actions {
        grid-template-columns: 1fr;
    }
}

.streak-fire-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    color: currentColor;
}

.streak-header-btn {
    min-width: 34px;
    padding: 6px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 5px;
    transition: transform 0.14s ease, background-color 0.18s ease;
}

.streak-header-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.streak-header-btn.is-done .streak-header-icon {
    filter: grayscale(0);
    opacity: 1;
}

.streak-header-btn.is-missed .streak-header-icon {
    filter: grayscale(1);
    opacity: 0.6;
}

.streak-header-btn.is-bump {
    animation: streakHeaderPop 700ms cubic-bezier(.2, .9, .2, 1);
}

.streak-header-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    transform-origin: center;
}

#streakStatusModal .modal-content {
    max-width: 560px;
    max-height: 82vh;
    overflow: hidden;
    position: relative;
    transition: box-shadow 240ms ease;
}

#streakStatusModal .modal-content::before {
    content: "";
    position: absolute;
    inset: -25% auto -25% -30%;
    width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255, 245, 220, 0.32), transparent);
    opacity: 0;
    transform: skewX(-24deg) translateX(-220%);
    pointer-events: none;
}

#streakStatusModal.is-ramping .modal-content {
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.58),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 72px rgba(255, 112, 58, 0.18);
}

#streakStatusModal.is-ramping .modal-content::before {
    opacity: 1;
    animation: modalShine 950ms ease-out 1;
}

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

.streak-status-hero {
    margin-bottom: 16px;
    padding: 18px;
    border-radius: 16px;
    background: radial-gradient(circle at top, rgba(255, 127, 80, 0.28) 0%, rgba(137, 28, 21, 0.16) 42%, rgba(20, 22, 30, 0.9) 100%);
    border: 1px solid rgba(255, 146, 108, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transform-origin: center center;
}

.streak-status-hero::before,
.streak-status-hero::after {
    content: "";
    position: absolute;
    inset: -22%;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.streak-status-hero::before {
    background: radial-gradient(circle, rgba(255, 219, 154, 0.45) 0%, rgba(255, 113, 58, 0.18) 30%, transparent 62%);
    transform: scale(0.72);
}

.streak-status-hero::after {
    background: conic-gradient(from 90deg, transparent 0deg, rgba(255, 182, 92, 0.16) 74deg, transparent 180deg, rgba(255, 95, 58, 0.18) 250deg, transparent 360deg);
    filter: blur(10px);
    transform: scale(0.9) rotate(0deg);
}

.streak-status-hero.is-missed {
    background: radial-gradient(circle at top, rgba(143, 147, 159, 0.2) 0%, rgba(55, 58, 68, 0.18) 40%, rgba(20, 22, 30, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.streak-status-hero.is-celebrating .streak-status-flame {
    animation: streakFlameIgnite 900ms cubic-bezier(.18, .88, .22, 1);
}

.streak-status-hero.is-overdrive {
    animation: heroPulse 1100ms cubic-bezier(.16, .92, .18, 1) 1;
}

.streak-status-hero.is-overdrive::before {
    animation: heroAura 1100ms ease-out 1;
}

.streak-status-hero.is-overdrive::after {
    animation: heroSpin 1100ms ease-out 1;
}

.streak-status-hero.is-celebrating .streak-status-number:not(.is-rolling-number) {
    animation: streakNumberRise 900ms cubic-bezier(.18, .88, .22, 1);
}

.streak-status-flame {
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: 8px;
    transform-origin: center bottom;
}

.streak-status-flame.is-supercharged {
    animation: flameRoar 1550ms cubic-bezier(.16, .92, .18, 1) 1;
    filter:
        drop-shadow(0 0 18px rgba(255, 182, 95, 0.5))
        drop-shadow(0 0 30px rgba(255, 94, 58, 0.32));
}

.streak-status-hero.is-missed .streak-status-flame {
    filter: grayscale(1);
    opacity: 0.62;
}

.streak-status-number {
    font-size: 2rem;
    font-weight: bold;
    color: #fff7f1;
    position: relative;
    text-shadow:
        0 0 18px rgba(255, 177, 95, 0.14),
        0 0 42px rgba(255, 91, 53, 0.08);
}

.streak-status-number.is-rolling-number {
    line-height: 1;
}

.streak-status-number.is-impacting {
    animation: numberImpact 1550ms cubic-bezier(.16, .92, .18, 1) 1;
}

.streak-number-reel {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    height: 1.2em;
    overflow: hidden;
}

.streak-number-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(0);
    will-change: transform;
}

.streak-number-track.is-rolling {
    animation: streakNumberScroll 1350ms cubic-bezier(.22, .7, .18, 1) forwards;
}

.streak-number-track.is-rolling::before {
    content: "";
    position: absolute;
    top: 0.12em;
    left: 50%;
    width: 110%;
    height: 0.24em;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 224, 162, 0.8), transparent);
    pointer-events: none;
    animation: reelFlashTop 1100ms ease-out 1;
}

.streak-number-step {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.2em;
    line-height: 1.2;
    width: 100%;
}

.streak-status-text {
    margin-top: 8px;
    color: #f1d1c6;
    line-height: 1.5;
}

.streak-status-hero.is-missed .streak-status-text {
    color: #c7ccd8;
}

.streak-progress-list {
    display: grid;
    gap: 8px;
    margin: 0 0 18px 0;
}

.streak-progress-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.streak-progress-item.is-done {
    border-color: rgba(114, 215, 138, 0.26);
    background: rgba(62, 116, 73, 0.16);
}

.streak-progress-item.is-pending {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.streak-progress-item.is-over-limit {
    border-color: rgba(255, 87, 87, 0.38);
    background: rgba(143, 28, 28, 0.22);
}

.streak-header-btn {
    position: relative;
    overflow: visible;
}

.streak-header-btn::before,
.streak-header-btn::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.streak-header-btn::before {
    border: 2px solid rgba(255, 202, 110, 0.34);
}

.streak-header-btn::after {
    border: 1px solid rgba(255, 116, 70, 0.32);
}

.streak-header-btn.is-super-bump {
    animation: headerImpact 1550ms cubic-bezier(.16, .92, .18, 1) 1;
}

.streak-header-btn.is-super-bump::before {
    animation: ringBlast 1550ms ease-out 1;
}

.streak-header-btn.is-super-bump::after {
    animation: ringBlast 1550ms ease-out 180ms 1;
}

.ember-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.ember {
    position: absolute;
    left: 50%;
    bottom: 16%;
    width: var(--size, 8px);
    height: var(--size, 8px);
    margin-left: var(--offset, 0px);
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(circle, rgba(255, 235, 169, 0.95) 0%, rgba(255, 142, 72, 0.9) 45%, rgba(255, 88, 48, 0.16) 100%);
    box-shadow: 0 0 18px rgba(255, 146, 74, 0.32);
    transform: translate(-50%, 0) scale(0.2);
}

.ember-burst.is-live .ember {
    animation: emberBurst 1450ms ease-out forwards;
    animation-delay: var(--delay, 0ms);
}

.ember:nth-child(1) { --offset: -92px; --drift-x: -74px; --delay: 0ms; --size: 8px; }
.ember:nth-child(2) { --offset: -62px; --drift-x: -44px; --delay: 40ms; --size: 7px; }
.ember:nth-child(3) { --offset: -26px; --drift-x: -12px; --delay: 20ms; --size: 9px; }
.ember:nth-child(4) { --offset: 16px; --drift-x: 16px; --delay: 70ms; --size: 7px; }
.ember:nth-child(5) { --offset: 52px; --drift-x: 42px; --delay: 35ms; --size: 10px; }
.ember:nth-child(6) { --offset: 88px; --drift-x: 74px; --delay: 85ms; --size: 8px; }

.streak-progress-name {
    color: #edf1ff;
}

.streak-progress-state {
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 0.04em;
}

.streak-progress-item.is-done .streak-progress-state {
    color: #8df0ad;
}

.streak-progress-item.is-pending .streak-progress-state {
    color: #aeb6c6;
}

.streak-progress-item.is-over-limit .streak-progress-state {
    color: #ff7878;
}

.streak-intro-card {
    background: linear-gradient(180deg, rgba(194, 54, 54, 0.22) 0%, rgba(92, 19, 19, 0.16) 100%);
    border: 1px solid rgba(255, 122, 89, 0.28);
}

.streak-steps {
    text-align: left;
}

.streak-intro-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 147, 112, 0.45);
    border-radius: 12px;
    background: linear-gradient(135deg, #c73c2b 0%, #8c1d18 100%);
    color: #fff4ec;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.streak-intro-btn:hover {
    filter: brightness(1.06);
}

.streak-intro-btn::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -35%;
    width: 30%;
    height: 140%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 236, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-22deg) translateX(0);
    opacity: 0;
    pointer-events: none;
}

.streak-intro-btn:hover::before {
    opacity: 1;
    animation: streakButtonShine 700ms ease;
}

.streak-transfer-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.streak-transfer-entry-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.streak-transfer-entry-title {
    color: #f1f4ff;
    font-size: 0.98rem;
}

.streak-transfer-entry-text {
    color: #b8bfcc;
    font-size: 0.85rem;
    line-height: 1.45;
}

.streak-transfer-entry .settings-transfer-btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.82rem;
}

.settings-transfer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #f5f7ff;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.settings-transfer-btn[hidden] {
    display: none;
}

.settings-transfer-btn:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.settings-transfer-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.settings-transfer-btn.is-linked:disabled {
    opacity: 0.6;
    cursor: default;
}

.settings-transfer-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #b62f2b 0%, #7d1919 100%);
    border-color: rgba(255, 130, 104, 0.34);
}

.settings-transfer-btn-primary:hover {
    background: linear-gradient(135deg, #c53a34 0%, #8b1f1f 100%);
}

.streak-transfer-modal-content {
    max-width: 640px;
}

.streak-transfer-modal-body {
    display: grid;
    gap: 14px;
}

.streak-transfer-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
}

.streak-transfer-panel h3 {
    margin: 0 0 6px 0;
    color: #f5f7ff;
}

.streak-transfer-panel p {
    margin: 0 0 12px 0;
    color: #b8bfcc;
}

.streak-transfer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8f98ab;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
}

.streak-transfer-divider::before,
.streak-transfer-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.streak-transfer-divider span {
    padding: 0 10px;
}

.streak-transfer-code-card {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(182, 47, 43, 0.18) 0%, rgba(83, 15, 15, 0.18) 100%);
    border: 1px solid rgba(255, 130, 104, 0.2);
}

.streak-transfer-code-label {
    color: #ffd9ce;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.streak-transfer-code-value {
    margin: 8px 0 12px 0;
    color: #fff7f2;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 0.14em;
    text-align: center;
}

.streak-transfer-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
    color: #f5f7ff;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.streak-transfer-input:focus {
    outline: none;
    border-color: rgba(255, 130, 104, 0.45);
    box-shadow: 0 0 0 3px rgba(182, 47, 43, 0.12);
}

.streak-transfer-status {
    min-height: 20px;
    margin-top: 12px;
    color: #b8bfcc;
    line-height: 1.45;
}

.streak-transfer-status.success {
    color: #8df0ad;
}

.streak-transfer-status.error {
    color: #ff9a9a;
}

@keyframes streakHeaderPop {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.22) translateY(-2px);
    }
    55% {
        transform: scale(0.94);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes streakButtonShine {
    from {
        transform: skewX(-22deg) translateX(0);
    }
    to {
        transform: skewX(-22deg) translateX(420%);
    }
}

@keyframes streakFlameIgnite {
    0% {
        filter: grayscale(1);
        opacity: 0.55;
        transform: scale(0.88) translateY(4px);
    }
    45% {
        filter: grayscale(0.35);
        opacity: 0.95;
        transform: scale(1.22) translateY(-2px);
    }
    100% {
        filter: grayscale(0);
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes streakNumberRise {
    0% {
        transform: scale(0.82);
        opacity: 0.45;
    }
    45% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes streakNumberScroll {
    0% {
        transform: translateY(0);
        filter: blur(0);
    }
    100% {
        transform: translateY(-1.2em);
        filter: blur(0);
    }
}

@keyframes reelFlashTop {
    0% {
        opacity: 0;
        transform: translateX(-50%) scaleX(0.2);
    }
    22% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scaleX(0.4);
    }
}

@keyframes modalShine {
    0% {
        transform: skewX(-24deg) translateX(-220%);
    }
    100% {
        transform: skewX(-24deg) translateX(430%);
    }
}

@keyframes heroPulse {
    0% {
        transform: scale(0.96) translateY(10px);
    }
    28% {
        transform: scale(1.04) translateY(-2px);
    }
    64% {
        transform: scale(1.01);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes heroAura {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    28% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

@keyframes heroSpin {
    0% {
        opacity: 0;
        transform: scale(0.92) rotate(0deg);
    }
    28% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.16) rotate(128deg);
    }
}

@keyframes numberImpact {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.04);
    }
    82% {
        transform: scale(0.99);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes flameRoar {
    0% {
        transform: scale(0.88) rotate(-8deg) translateY(8px);
        opacity: 0.55;
    }
    32% {
        transform: scale(1.52) rotate(5deg) translateY(-8px);
        opacity: 1;
    }
    58% {
        transform: scale(1.12) rotate(-2deg) translateY(0);
    }
    100% {
        transform: scale(1) rotate(0deg) translateY(0);
        opacity: 1;
    }
}

@keyframes headerImpact {
    0% {
        transform: scale(1);
    }
    24% {
        transform: scale(1.34) translateY(-4px);
    }
    52% {
        transform: scale(0.86);
    }
    76% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes ringBlast {
    0% {
        opacity: 0.9;
        transform: scale(0.7);
    }
    100% {
        opacity: 0;
        transform: scale(1.68);
    }
}

@keyframes emberBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.2);
    }
    22% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--drift-x, 0px)), -180px) scale(1.12);
    }
}

.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:focus-visible {
    outline: 2px solid #ffd166;
    outline-offset: 3px;
}

.toggle-switch#halloweenThemeToggle {
    appearance: none;
    border: 0;
    padding: 0;
}

.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;
}

.countdown-roller {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown-digit-wrapper {
    display: inline-block;
    width: 0.62em;
    height: 1em;
    overflow: hidden;
}

.countdown-digit-reel {
    display: flex;
    flex-direction: column;
    transition: transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
    will-change: transform;
}

.countdown-digit-reel.no-transition {
    transition: none;
}

.countdown-digit-item {
    display: block;
    height: 1em;
    line-height: 1;
    text-align: center;
}

.countdown-separator {
    display: inline-block;
    width: 0.35em;
    line-height: 1;
    text-align: center;
}

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

.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>
