/* clean effects page v180 */

.effects-header {
    min-height: 76px !important;
    display: grid !important;
    grid-template-columns: max-content minmax(220px, 300px) max-content !important;
    align-items: center !important;
    gap: 22px !important;
}

.effects-header .logo-small {
    white-space: nowrap !important;
}

.effects-header .back-link {
    justify-self: end !important;
}

.mini-profile-center {
    width: min(100%, 290px) !important;
    min-height: 52px !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 6px 10px !important;
    border: 4px solid var(--ink) !important;
    background: rgba(255,255,255,.14) !important;
    color: var(--ink) !important;
    box-shadow: 5px 5px 0 rgba(255,0,127,.18) !important;
}

.mini-profile-center:hover {
    background: rgba(255,255,255,.24) !important;
    transform: translate(2px, 2px) !important;
    box-shadow: 3px 3px 0 rgba(255,0,127,.22) !important;
}

.mini-avatar {
    width: 36px !important;
    height: 36px !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    grid-template-rows: repeat(5, 1fr) !important;
    border: 3px solid var(--ink) !important;
    background: rgba(255,255,255,.14) !important;
    overflow: hidden !important;
}

.mini-avatar i {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

.mini-profile-text {
    min-width: 0 !important;
    display: grid !important;
    gap: 4px !important;
}

.mini-profile-text small {
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: rgba(42,12,11,.72) !important;
    text-transform: none !important;
}

.mini-profile-text b {
    width: fit-content !important;
    min-width: 52px !important;
    min-height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 7px !important;
    border: 3px solid var(--ink) !important;
    background: var(--ink) !important;
    color: var(--peach-light) !important;
    font-family: 'Press Start 2P', monospace !important;
    font-size: 8px !important;
    line-height: 1 !important;
}

.rank-total-box,
.selected-player-stats,
.account-panel,
.account-panel-right,
.account-card,
.account-avatar,
.account-balance,
.mini-side-line {
    display: none !important;
}

.rank-panel {
    background: rgba(255,255,255,.13) !important;
}

.rank-title {
    padding-bottom: 10px !important;
    margin-bottom: 8px !important;
}

.rank-meta-line {
    padding: 8px 0 12px !important;
    border-bottom: 4px solid var(--ink) !important;
    margin-bottom: 10px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
    color: rgba(42,12,11,.78) !important;
}

.players-board {
    padding-bottom: 26px !important;
}

.player-grid {
    padding-bottom: 34px !important;
}

.player-card {
    box-shadow: 5px 5px 0 rgba(42,12,11,.14) !important;
}

.player-detail {
    width: min(940px, 100%) !important;
    gap: 22px !important;
}

.skin-stage-wrap {
    gap: 12px !important;
}

.selected-player {
    display: grid !important;
    gap: 6px !important;
    text-align: center !important;
}

.selected-player span {
    font-size: clamp(2.5rem, 6vw, 5.2rem) !important;
    line-height: .82 !important;
}

.selected-player small {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    color: rgba(42,12,11,.72) !important;
}

.effect-store-single {
    gap: 14px !important;
}

.effect-switch {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    border: 0 !important;
    background: transparent !important;
}

.effect-tab {
    min-height: 58px !important;
    display: grid !important;
    gap: 5px !important;
    align-content: center !important;
    padding: 10px !important;
    border: 4px solid var(--ink) !important;
    background: rgba(255,255,255,.13) !important;
    color: var(--ink) !important;
    box-shadow: 4px 4px 0 rgba(42,12,11,.12) !important;
}

.effect-tab.active {
    background: var(--ink) !important;
    color: var(--peach-light) !important;
    box-shadow: 4px 4px 0 var(--pink) !important;
}

.effect-tab span {
    font-family: 'Press Start 2P', monospace !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
}

.effect-tab b {
    font-family: 'Press Start 2P', monospace !important;
    font-size: 9px !important;
    line-height: 1 !important;
}

.effect-panel {
    gap: 10px !important;
}

.effect-card {
    min-height: 92px !important;
    padding: 13px 13px 42px 13px !important;
    border-width: 4px !important;
    background: rgba(255,255,255,.12) !important;
    box-shadow: 5px 5px 0 rgba(42,12,11,.12) !important;
}

.effect-card:hover {
    background: rgba(255,255,255,.22) !important;
}

.effect-name {
    padding-right: 84px !important;
    font-size: 13px !important;
}

.effect-desc {
    padding-right: 84px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.effect-progress-text {
    top: 11px !important;
    right: 11px !important;
    min-width: 70px !important;
    min-height: 28px !important;
    font-size: 8px !important;
}

.effect-progress-bar {
    left: 11px !important;
    right: 11px !important;
    bottom: 11px !important;
    height: 14px !important;
    border-width: 3px !important;
}

.player-selected .rank-panel-left {
    transform: translateX(-115%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.player-selected .rank-panel-right {
    transform: translateX(115%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 1260px) {
    .rank-panel {
        position: static !important;
        width: min(900px, calc(100% - 40px)) !important;
        margin: 18px auto 0 !important;
    }

    .player-selected .rank-panel-left,
    .player-selected .rank-panel-right {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .effects-header {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .effects-header .logo-small,
    .effects-header .back-link,
    .mini-profile-center {
        justify-self: start !important;
    }

    .mini-profile-center {
        width: min(280px, 100%) !important;
    }

    .effect-switch {
        grid-template-columns: 1fr !important;
    }
}

/* plus minus stats v181 */

.effect-tab:first-child b {
    color: #ff8abf !important;
}

.effect-tab:last-child b {
    color: #74d6ff !important;
}

.effect-tab.active:first-child b,
.effect-tab.active:last-child b {
    color: var(--peach-light) !important;
}

.rank-meta-line {
    letter-spacing: -.01em !important;
}

/* real Minecraft skin heads v210 */

.skin-head-real,
.player-head.skin-head-real,
.selected-skin-head.skin-head-real {
    background-repeat: no-repeat !important;
    background-size: 800% 800% !important;
    background-position: 14.285714% 14.285714% !important;
    image-rendering: pixelated !important;
    background-color: rgba(255, 255, 255, .18) !important;
}

.player-card .player-head.skin-head-real,
.rank-row .skin-head.skin-head-real {
    overflow: hidden !important;
}

.selected-skin-head.skin-head-real {
    overflow: hidden !important;
}

/* Default state: selected-player panel must not reserve invisible height */
body.effects-body:not(.player-selected) .player-detail {
    display: none !important;
    position: static !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Selected state: selected-player panel becomes real page content */
body.effects-body.player-selected .player-detail {
    display: grid !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 24px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}

body.effects-body.player-selected .players-board {
    display: none !important;
}

/* Ratings must keep space before footer */
body.effects-body .players-board,
body.effects-body .rating-board,
body.effects-body .ratings-grid,
body.effects-body .rating-grid,
body.effects-body .rating-section,
body.effects-body .leaderboard,
body.effects-body .leaderboards {
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 56px !important;
    padding-bottom: 16px !important;
    overflow: visible !important;
}

/* Footer is a normal bottom block, not overlay */
body.effects-body .site-footer,
.site-footer {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    clear: both !important;
    z-index: 0 !important;
    flex: none !important;
    margin: 36px 0 0 0 !important;
}

/* FINAL footer/effects cleanup v400 */

/* Chrome left gutter fix */
html {
    overflow-x: hidden !important;
    scrollbar-gutter: stable !important;
}

/* Footer must be a normal page block, never overlay */
.site-footer,
body.effects-body .site-footer,
body.shop-page .site-footer {
    display: block !important;
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;

    clear: both !important;
    float: none !important;
    flex: none !important;

    margin: 52px 0 0 0 !important;
    padding: 12px 0 !important;

    z-index: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    background: #050505 !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: none !important;
}

.site-footer-root,
.home-bottom .site-footer,
.admin .site-footer {
    position: static !important;
    inset: auto !important;
}

.site-footer-card {
    display: none !important;
}

.site-footer-inner {
    width: min(1120px, calc(100% - 32px)) !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px 18px !important;
}

.site-footer-link,
.site-footer-dev {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;

    font-size: 12px !important;
    line-height: 1.25 !important;
    color: rgba(255,255,255,.62) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.site-footer-link:hover,
.site-footer-dev:hover {
    color: rgba(255,255,255,.92) !important;
}

.site-footer-dev b {
    color: rgba(255,255,255,.9) !important;
    font-weight: 600 !important;
}

/* Effects page must not create fake empty scroll */
body.effects-body {
    display: block !important;
    min-height: 100vh !important;
    height: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 0 !important;
}

body.effects-body > .site-page.effects-center,
body.effects-body .effects-center,
body.effects-body .effects-page {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 28px !important;
}

/* On normal effects page selected-player panel must not reserve invisible space */
body.effects-body:not(.player-selected) .player-detail {
    display: none !important;
    position: static !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* When player selected, details become real content and footer goes below */
body.effects-body.player-selected .player-detail {
    display: grid !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 24px 0 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}

body.effects-body.player-selected .players-board {
    display: none !important;
}

/* Ratings must push footer down */
body.effects-body .players-board,
body.effects-body .rating-board,
body.effects-body .ratings-grid,
body.effects-body .rating-grid,
body.effects-body .rating-section,
body.effects-body .leaderboard,
body.effects-body .leaderboards {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    z-index: 1 !important;
    margin-bottom: 64px !important;
    padding-bottom: 24px !important;
}

/* Do not let old fixed-footer layout reserve giant invisible space */
body.effects-body .core,
body.effects-body .app,
body.effects-body .screen,
body.effects-body .page,
body.effects-body main {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
}

/* EMC effects desktop center final */

@media (min-width: 861px) {
    body.effects-body {
        overflow-x: hidden !important;
    }

    body.effects-body .site-page.effects-center {
        width: min(860px, calc(100% - 560px)) !important;
        min-width: 560px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.effects-body .effects-header {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 360px) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 18px !important;
    }

    body.effects-body .effects-header .logo-small {
        grid-column: 1 !important;
        justify-self: start !important;
    }

    body.effects-body .effects-header .mini-profile-center.emc-topup-balance-button {
        grid-column: 2 !important;
        justify-self: center !important;
    }

    body.effects-body .effects-header .back-link {
        grid-column: 3 !important;
        justify-self: end !important;
    }

    body.effects-body .players-board {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.effects-body .player-grid {
        width: 100% !important;
        justify-content: center !important;
        align-content: start !important;
    }

    body.effects-body .rank-panel {
        text-align: left !important;
    }
}

@media (min-width: 861px) and (max-width: 1240px) {
    body.effects-body .site-page.effects-center {
        width: min(900px, calc(100% - 48px)) !important;
        min-width: 0 !important;
    }

    body.effects-body .effects-header {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 360px) minmax(0, 1fr) !important;
    }
}

@media (min-width: 1480px) {
    body.effects-body:not(.player-selected) .site-page.effects-center {
        width: min(760px, max(600px, calc(100vw - 1040px))) !important;
        min-width: 600px !important;
    }
}
