/* Jackpot Status — Dark Orbit referans penceresi (476×388) */

.ui-panel.jackpot-status-window {
    pointer-events: auto;
    position: fixed;
    width: 476px;
    min-width: 476px;
    max-width: 476px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 26;
    cursor: default;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    border: 1px solid #3a6b84;
    background: #040810;
    box-shadow:
        0 0 0 1px #0a1520,
        0 4px 24px rgba(0, 0, 0, 0.65),
        inset 0 0 40px rgba(0, 40, 70, 0.12);
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0 100%
    );
}

.ui-panel.jackpot-status-window.hidden {
    display: none !important;
}

.ui-panel.jackpot-status-window.jackpot-status-window--scaled {
    transform-origin: top left;
}

/* Genel .ui-panel::before sürükleme katmanı başlık butonunu kapatmasın */
.ui-panel.jackpot-status-window::before {
    display: none !important;
    pointer-events: none !important;
}

/* —— Başlık çubuğu —— */
.jackpot-status-titlebar {
    flex-shrink: 0;
    height: 28px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px 0 5px;
    box-sizing: border-box;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.03) 0,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(180deg, #0c3a52 0%, #082838 55%, #061e2c 100%);
    border-bottom: 1px solid #2a6a88;
    box-shadow: inset 0 1px 0 rgba(90, 160, 200, 0.18);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.jackpot-status-titlebar:active {
    cursor: grabbing;
}

.jackpot-status-dollar {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: #e8f4fc;
    background: linear-gradient(180deg, #1a5a78 0%, #0e3d58 100%);
    border: 1px solid #3d8ab0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 4px rgba(0, 120, 180, 0.35);
}

.jackpot-status-tab {
    flex-shrink: 0;
    height: 18px;
    padding: 0 6px;
    margin: 0;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    line-height: 1;
    color: #c8dce8;
    letter-spacing: 0.01em;
    white-space: nowrap;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.jackpot-status-tab--status {
    flex: 1;
    min-width: 0;
    max-width: none;
    margin-right: 4px;
    padding-left: 0;
    font-size: 13px;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
}

.jackpot-status-tab--champions {
    max-width: 118px;
    margin: 0 2px 0 0;
    font-size: 9px;
    border: 1px solid #3d8ab0;
    background: linear-gradient(180deg, #1a5a78 0%, #0e3d58 100%);
    color: #e8f4fc;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 4px rgba(0, 120, 180, 0.25);
}

.jackpot-status-tab--champions:hover {
    background: linear-gradient(180deg, #227090 0%, #124a68 100%);
    border-color: #5aa8cc;
}

.jackpot-status-tab--active.jackpot-status-tab--status {
    color: #f2f8fc;
}

.jackpot-status-tab--active.jackpot-status-tab--champions {
    background: linear-gradient(180deg, #2a88aa 0%, #1a6080 100%);
    border-color: #7ec8e8;
    color: #fff;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 8px rgba(80, 180, 230, 0.45);
}

.jackpot-status-tab--status:hover {
    color: #fff;
}

.jackpot-status-champions {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
    min-height: 0;
    padding: 14px 12px 16px 14px;
    box-sizing: border-box;
    text-align: left;
}

.jackpot-status-champions.hidden {
    display: none !important;
}

.jackpot-champions-loading,
.jackpot-champions-empty {
    margin: 0;
    padding: 24px 8px;
    text-align: center;
    font-size: 13px;
    color: #b8d4e8;
    line-height: 1.45;
}

.jackpot-champions-loading.hidden,
.jackpot-champions-empty.hidden {
    display: none !important;
}

.jackpot-champions-list {
    list-style: none !important;
    margin: 0;
    padding: 0 4px 0 0;
    overflow-y: auto;
    max-height: 320px;
    flex: 1;
    width: 100%;
    text-align: left;
}

.jackpot-champions-list li {
    list-style: none !important;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0;
    padding: 6px 0;
    border-bottom: 1px solid rgba(60, 120, 160, 0.22);
    font-size: 13px;
    line-height: 1.4;
    color: #eef6fc;
    text-align: left;
}

.jackpot-champions-list li::marker {
    content: none;
}

.jackpot-champions-list li:last-child {
    border-bottom: none;
}

.jackpot-champions-list::-webkit-scrollbar {
    width: 6px;
}

.jackpot-champions-list::-webkit-scrollbar-thumb {
    background: rgba(80, 150, 190, 0.45);
    border-radius: 3px;
}

.jackpot-champions-list .jackpot-champion-date {
    flex: 0 0 auto;
    min-width: 88px;
    margin-right: 18px;
    font-variant-numeric: tabular-nums;
    color: #9ec8de;
    white-space: nowrap;
    text-align: left;
}

.jackpot-champions-list .jackpot-champion-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    color: #f4fafd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.jackpot-status-minimize {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0 2px 0 0;
    border: 1px solid #3d8ab0;
    background: linear-gradient(180deg, #1a5a78 0%, #0e3d58 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    pointer-events: auto;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 3px rgba(0, 100, 160, 0.3);
}

.jackpot-status-minimize span {
    display: block;
    width: 8px;
    height: 2px;
    background: #e8f0f8;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.jackpot-status-minimize:hover {
    filter: brightness(1.12);
}

/* —— Gövde —— */
.jackpot-status-body {
    position: relative;
    flex: 1;
    min-height: 360px;
    padding: 18px 16px 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 2px,
            rgba(0, 0, 0, 0.22) 2px,
            rgba(0, 0, 0, 0.22) 3px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.008) 0,
            rgba(255, 255, 255, 0.008) 1px,
            transparent 1px,
            transparent 4px
        ),
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(12, 48, 72, 0.35) 0%, transparent 55%),
        linear-gradient(180deg, #06101a 0%, #040810 45%, #03060c 100%);
}

.jackpot-status-body:has(#jackpotStatusChampions:not(.hidden)) {
    align-items: stretch;
}

.jackpot-status-body::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.015) 0,
        rgba(255, 255, 255, 0.015) 1px,
        transparent 1px,
        transparent 5px
    );
    opacity: 0.55;
}

.jackpot-status-remaining {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #eef4fa;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.02em;
}

.jackpot-status-round {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    font-size: 26px;
    font-weight: 800;
    color: #e8c228;
    text-align: center;
    text-shadow:
        0 0 8px rgba(232, 194, 40, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.85);
    letter-spacing: 0.04em;
}

/* —— VS bölümü —— */
.jackpot-status-matchup {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.jackpot-status-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    flex-shrink: 0;
}

.jackpot-status-player-name {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #dce8f2;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    line-height: 1.25;
    min-height: 28px;
    word-break: break-word;
}

.jackpot-status-player-frame {
    width: 110px;
    height: 120px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #060a12;
    border: 2px solid #1e2a38;
    box-shadow:
        inset 0 0 0 1px #4a6078,
        inset 3px 3px 12px rgba(0, 0, 0, 0.92),
        inset -2px -2px 0 rgba(255, 255, 255, 0.04),
        0 0 0 2px #0c121a,
        0 0 0 3px #3a5068,
        0 2px 8px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    box-sizing: content-box;
}

.jackpot-status-player-frame img.jackpot-status-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.jackpot-status-vs {
    flex-shrink: 0;
    font-size: 44px;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    color: #b8c8d8;
    letter-spacing: -0.02em;
    text-shadow:
        1px 1px 0 rgba(255, 255, 255, 0.55),
        -1px -1px 0 #3a4858,
        0 3px 6px rgba(0, 0, 0, 0.85),
        0 0 12px rgba(180, 200, 220, 0.25);
    margin-top: 22px;
    user-select: none;
}

/* —— Alt uyarı metni —— */
.jackpot-status-warp {
    position: relative;
    z-index: 1;
    margin: auto 0 0;
    padding-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #ff2a2a;
    text-align: center;
    text-shadow:
        0 0 6px rgba(255, 40, 40, 0.95),
        0 0 14px rgba(255, 20, 20, 0.65),
        0 0 24px rgba(255, 0, 0, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.02em;
}

.jackpot-status-eliminated {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    min-height: 280px;
    padding: 24px 20px 28px;
    box-sizing: border-box;
    text-align: left;
}

.jackpot-status-eliminated.hidden {
    display: none !important;
}

.jackpot-status-eliminated-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
    color: #ff4a4a;
    letter-spacing: 0.04em;
    text-shadow:
        0 0 10px rgba(255, 60, 60, 0.75),
        0 2px 4px rgba(0, 0, 0, 0.9);
}

.jackpot-status-eliminated-hint {
    margin: 0;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.45;
    color: #b8d4e8;
}

.jackpot-status-idle {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 280px;
    padding: 24px 28px;
    box-sizing: border-box;
}

.jackpot-status-idle.hidden {
    display: none !important;
}

.jackpot-status-active.hidden {
    display: none !important;
}

.jackpot-status-active {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.jackpot-status-idle-text {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: #dce8f2;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.02em;
}

/* Mobil: genel .ui-panel max-width:130–160px !important kurallarını geçersiz kıl */
@media (max-width: 768px) {
    .ui-panel.jackpot-status-window {
        width: min(476px, calc(100vw - 24px)) !important;
        min-width: unset !important;
        max-width: calc(100vw - 24px) !important;
        padding: 0 !important;
        font-size: inherit !important;
        border-radius: 0 !important;
    }

    .jackpot-status-body {
        min-height: min(360px, calc(100vh - 72px));
        padding: 14px 12px 18px;
    }

    .jackpot-status-idle {
        min-height: min(280px, calc(100vh - 120px));
        padding: 16px 14px;
    }

    .jackpot-status-idle-text {
        font-size: 14px;
    }
}

@media (max-width: 768px) and (orientation: landscape),
       (max-height: 500px) and (orientation: landscape) {
    .ui-panel.jackpot-status-window {
        width: min(476px, calc(100vw - 24px)) !important;
        min-width: unset !important;
        max-width: calc(100vw - 24px) !important;
        padding: 0 !important;
    }

    .jackpot-status-body {
        min-height: min(320px, calc(100vh - 48px));
    }

    .jackpot-status-matchup {
        gap: 6px;
        margin-bottom: 16px;
    }

    .jackpot-status-player {
        width: min(150px, 28vw);
    }

    .jackpot-status-player-frame {
        width: min(110px, 22vw);
        height: min(120px, 24vw);
    }

    .jackpot-status-vs {
        font-size: 32px;
        margin-top: 16px;
    }
}
