/* Crypto — Split Zone (horizontal half-screen).
 *
 * Mirrors the Main design end-to-end — chunky 3D button card, centered
 * logo+name header, three-column price row (mcap | price | change),
 * dashed white chart container with symbol/range labels at the bottom.
 * Sized for a roughly 50% zone; all container units so the proportions
 * hold at any resolution.
 */

.ck-split {
    width: 100%;
    height: 100%;
    container-type: size;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font, 'Roboto'), sans-serif;
}

.ck-split-card {
    position: relative;
    width: 80cqw;
    height: 80cqh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2cqmin;
    padding: 3.5cqmin 4.5cqmin;
    direction: ltr;

    background-color: var(--text);
    color: var(--bg);
    border-radius: 1cqmin;
    -webkit-box-shadow:
        inset 0 0.25cqmin 0 rgba(255, 255, 255, 0.22),
        0 1.5cqmin 0 #000;
    -moz-box-shadow:
        inset 0 0.25cqmin 0 rgba(255, 255, 255, 0.22),
        0 1.5cqmin 0 #000;
    box-shadow:
        inset 0 0.25cqmin 0 rgba(255, 255, 255, 0.22),
        0 1.5cqmin 0 #000;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.ck-split-card::after {
    content: "";
    position: absolute;
    bottom: -2.2cqmin;
    left: -0.6cqmin;
    width: 100%;
    height: 100%;
    padding: 0.6cqmin;
    z-index: -1;
    background-color: #000;
    border-radius: 1cqmin;
    box-sizing: content-box;
}

.ck-split-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5cqmin;
    flex-shrink: 0;
    width: 100%;
}

.ck-split-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2cqmin;
    flex-shrink: 0;
    width: 100%;
}

.ck-split-logo {
    width: 10cqmin !important;
    height: 10cqmin !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.ck-split-name {
    font-size: 6.5cqmin !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.01em !important;
    color: var(--bg) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ck-split-price {
    font-size: 14cqmin !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
    direction: ltr;
    unicode-bidi: embed;
    color: var(--bg) !important;
    text-align: center;
}

.ck-split-mcap {
    padding: 0.8cqmin 2cqmin;
    border-radius: 10cqmin;
    background: color-mix(in srgb, var(--bg) 25%, transparent);
    color: var(--bg) !important;
    font-size: 5cqmin !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.01em;
    direction: ltr;
    unicode-bidi: embed;
    white-space: nowrap;
}

.ck-split-change {
    padding: 0.8cqmin 2cqmin;
    border-radius: 10cqmin;
    color: #fff !important;
    font-size: 5cqmin !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    direction: ltr;
    unicode-bidi: embed;
    white-space: nowrap;
}
.ck-split-change.is-up   { background: #22c55e; }
.ck-split-change.is-down { background: #ef4444; }

.ck-split-chart {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 1.5cqmin;
    padding: 2cqmin 2.5cqmin;
    border: 0.8cqmin dashed color-mix(in srgb, var(--bg) 35%, transparent);
    box-sizing: border-box;
}
.ck-split-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}
.ck-split-chart-symbol {
    position: absolute;
    bottom: 1cqmin;
    left: 1.5cqmin;
    font-size: 5cqmin !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text) !important;
    opacity: 0.75;
    pointer-events: none;
}
.ck-split-chart-label {
    position: absolute;
    bottom: 1cqmin;
    right: 1.5cqmin;
    font-size: 5cqmin !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text) !important;
    opacity: 0.75;
    pointer-events: none;
}
