.solo-duel-container {
    display: none;
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%) translateY(-5%);
    width: auto;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0;
}

body[data-mode="solo_duel"] .solo-duel-container {
    display: flex;
}

body[data-mode="solo_duel"] .solo-duel-container.is-ledger-hidden {
    transform: translateX(-50%) translateY(-50%);
}

.solo-duel-new-container {
    --left-color: #4169E1;
    --right-color: #FF3030;
    --left-text: #f8fafc;
    --right-text: #f8fafc;
    --left-text-shadow: 0 2px 8px rgba(0,0,0,0.42);
    --right-text-shadow: 0 2px 8px rgba(0,0,0,0.42);
    --left-glow: #4169E1;
    --right-glow: #FF3030;
    --left-pip-edge: rgba(255,255,255,0.78);
    --right-pip-edge: rgba(255,255,255,0.78);
    --left-pip-shadow: rgba(255,255,255,0.22);
    --right-pip-shadow: rgba(255,255,255,0.22);
    --sd-name-card-width: 108px;
    --sd-name-font-size: 25px;
    position: relative;
    display: grid;
    gap: 6px;
    justify-items: center;
    min-width: 820px;
    transform: scale(1.18);
    transform-origin: center bottom;
}

.sd-match-stage {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
}

.sd-col-blue,
.sd-col-red {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 3px;
}

.sd-col-blue {
    align-items: flex-end;
}

.sd-col-red {
    align-items: flex-start;
}

.sd-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin: 0 10px;
    padding-bottom: 2px;
    margin-top: 8px;
}

.sd-player-card {
    width: var(--sd-name-card-width);
    min-width: 0;
    min-height: 40px;
    padding: 5px 18px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.42);
}

.sd-player-card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sd-card-blue {
    background: var(--left-color);
    color: var(--left-text);
    clip-path: polygon(0 0, 84% 0, 100% 100%, 16% 100%);
}

.sd-card-red {
    background: var(--right-color);
    color: var(--right-text);
    clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
}

.sd-player-name {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: var(--font-card-ui);
    font-size: var(--sd-name-font-size);
    font-weight: 900;
    font-style: normal;
    letter-spacing: 0.01em;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.sd-pips {
    display: flex;
    gap: 6px;
}

.sd-pips-blue {
    flex-direction: row-reverse;
}

.sd-pips-red {
    flex-direction: row;
}

.sd-pip {
    width: 34px;
    height: 12px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 1px 2px rgba(0,0,0,0.56);
    border-radius: 1px;
}

.sd-pips-blue .sd-pip {
    transform: skewX(20deg);
}

.sd-pips-red .sd-pip {
    transform: skewX(-20deg);
}

.sd-pip-on-left {
    background: var(--left-color);
    border-color: var(--left-pip-edge);
    box-shadow: 0 1px 3px rgba(0,0,0,0.45), 0 0 0 1px var(--left-pip-edge), 0 0 8px var(--left-pip-shadow);
}

.sd-pip-on-right {
    background: var(--right-color);
    border-color: var(--right-pip-edge);
    box-shadow: 0 1px 3px rgba(0,0,0,0.45), 0 0 0 1px var(--right-pip-edge), 0 0 8px var(--right-pip-shadow);
}

.sd-rule-label {
    position: absolute;
    left: calc(50% + 10px);
    top: -9px;
    transform: translateX(-50%);
    font-size: 12px;
    font-family: var(--font-card-ui);
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(248,250,252,0.84);
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(8, 11, 17, 0.54);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    white-space: nowrap;
    line-height: 1.2;
    z-index: 3;
}

.sd-score-huge {
    display: grid;
    grid-template-columns: 1fr 96px 1fr;
    align-items: baseline;
    width: 274px;
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    line-height: 0.8;
}

.sd-val-blue,
.sd-val-red {
    font-size: 112px;
    font-variant-numeric: tabular-nums;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8));
}

.sd-val-blue {
    color: var(--left-color);
    text-align: right;
    justify-self: end;
}

.sd-val-red {
    color: var(--right-color);
    text-align: left;
    justify-self: start;
}

.sd-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.sd-vs-txt {
    font-size: 40px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.1em;
    color: #fff;
    text-shadow:
        -4px 0 15px var(--left-color),
        4px 0 15px var(--right-color),
        0 4px 8px rgba(0,0,0,0.9);
    position: relative;
    z-index: 2;
}

.sd-vs::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 58px;
    background: linear-gradient(to bottom, transparent 0%, var(--left-color) 20%, var(--right-color) 80%, transparent 100%);
    transform: rotate(25deg);
    opacity: 0.82;
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.sd-vs::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
}

.sd-global-bot-line {
    position: relative;
    width: 390px;
    height: 4px;
    display: flex;
    z-index: 10;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    overflow: hidden;
    margin-top: -2px;
}

.sd-gbl-blue,
.sd-gbl-red {
    transition: width 0.35s ease;
}

.sd-gbl-blue {
    width: 50%;
    background: var(--left-color);
    border-radius: 2px 0 0 2px;
}

.sd-gbl-red {
    width: 50%;
    background: var(--right-color);
    border-radius: 0 2px 2px 0;
}

.sd-history-ledger {
    width: fit-content;
    max-width: 860px;
    min-height: 52px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.56);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.sd-history-ledger.is-animated {
    width: 860px;
}

.sd-history-ledger[hidden] {
    display: none !important;
}

.sd-history-header {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.12em;
    border-right: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}

.sd-history-list {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    padding: 0 14px;
    overflow: hidden;
}

.his-empty {
    color: rgba(248,250,252,0.54);
    font-size: 14px;
    white-space: nowrap;
}

.sd-history-marquee {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.sd-history-marquee.is-centered {
    justify-content: center;
    width: auto;
}

.sd-history-marquee.is-animated {
    animation: sd-ledger-marquee 24s linear infinite;
}

.sd-history-track {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.his-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
    white-space: nowrap;
}

.his-players {
    display: flex;
    align-items: center;
    gap: 8px;
}

.his-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.his-name {
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
}

.his-score-box {
    min-width: 30px;
    height: 24px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}

.his-vs-colon {
    font-size: 15px;
    font-weight: 900;
    color: rgba(248,250,252,0.56);
}

body[data-profile="mobile"][data-mode="solo_duel"] .solo-duel-container {
    width: 96%;
    bottom: 14px;
}

body[data-profile="mobile"][data-mode="solo_duel"] .solo-duel-new-container {
    min-width: unset;
    width: 100%;
}

body[data-profile="mobile"][data-mode="solo_duel"] .sd-match-stage {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
}

body[data-profile="mobile"][data-mode="solo_duel"] .sd-score-huge {
    width: 196px;
    grid-template-columns: 1fr 56px 1fr;
}

body[data-profile="mobile"][data-mode="solo_duel"] .sd-val-blue,
body[data-profile="mobile"][data-mode="solo_duel"] .sd-val-red {
    font-size: 74px;
}

body[data-profile="mobile"][data-mode="solo_duel"] .sd-vs-txt {
    font-size: 26px;
}

body[data-profile="mobile"][data-mode="solo_duel"] .sd-player-name {
    font-size: 14px;
}

body[data-profile="mobile"][data-mode="solo_duel"] .sd-pip {
    width: 20px;
    height: 8px;
}

body[data-profile="mobile"][data-mode="solo_duel"] .sd-global-bot-line {
    width: 82%;
}

body[data-profile="mobile"][data-mode="solo_duel"] .sd-history-ledger {
    max-width: 100%;
}

@keyframes sd-ledger-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 6px));
    }
}
