/* ============================================
   Stake Site Takeover Styles
   ============================================ */

/* Prevent horizontal scrollbar from skins extending past viewport */
body.stake-takeover-active {
    overflow-x: hidden;
}

/* Clickable full-width background behind all content */
.stake-takeover-bg {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #0d1b2a;
    cursor: pointer;
}

/* Ensure main content sits above the background */
body.stake-takeover-active > div:not(#cyri-auth-modal):not(#cyri-upgrade-overlay) {
    position: relative;
    z-index: 2;
}

body.stake-takeover-active #main-table {
    position: relative;
    z-index: 2;
}

/* Top banner — full-width leaderboard */
#stake-takeover-banner {
    display: none;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 2;
}

.stake-banner-link {
    display: block;
    width: 100%;
}

.stake-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Rail columns — transparent, pass clicks through to skins */
.stake-skin-td {
    background-color: transparent !important;
    padding: 0 !important;
    pointer-events: none;
}

.stake-skin-td * {
    visibility: hidden;
}

/* Side skins — fixed overlays, vertically centered, positioned beside content */
.stake-skin-link {
    display: block;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    text-decoration: none;
    cursor: pointer;
}

.stake-skin-left {
    left: calc(50% - 660px - 300px);
    width: 300px;
}

.stake-skin-right {
    left: calc(50% + 660px);
    width: 300px;
}

.stake-skin-img {
    width: 300px;
    height: auto;
    display: block;
}
