/* Crypto — Banner Zone (wide, short top bar).
 *
 * Card is split into three horizontal columns — 25% / 50% / 25%.
 *   Left 25%:  logo on top, coin name below.
 *   Middle 50%: price sparkline / candlestick chart with the symbol and
 *               range label tucked into the bottom corners.
 *   Right 25%: two badges stacked — market cap and change pill.
 *
 * Same chunky 3D button card as the other crypto zones for visual
 * consistency; all units are container-relative so proportions hold.
 */

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

.ck-banner-card {
    position: relative;
    width: 80cqw;
    height: 80cqh;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 25% 50% 25%;
    align-items: center;
    gap: 2cqmin;
    padding: 2cqmin 3cqmin;
    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-banner-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;
}

/* Left 25% — logo stacked over name, centered in its column. */
.ck-banner-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5cqmin;
    min-width: 0;
    height: 100%;
    padding: 0 2.5% 0 5%;
    box-sizing: border-box;
}
.ck-banner-logo {
    width: 30cqh !important;
    height: 30cqh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.ck-banner-name {
    font-size: 14cqh !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.01em !important;
    color: var(--bg) !important;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Middle 50% — chart in white container, same dashed-border treatment as
 * the main zone. Wrapped in an outer margin so the 2.5% side padding is
 * applied consistently with the left/right columns. */
.ck-banner-chart {
    position: relative;
    height: 90%;
    overflow: hidden;
    background: #ffffff;
    border-radius: 1.5cqmin;
    padding: 1.5cqmin 2cqmin;
    margin: 0 2.5%;
    border: 0.8cqmin dashed color-mix(in srgb, var(--bg) 35%, transparent);
    box-sizing: border-box;
}
.ck-banner-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}
.ck-banner-chart-symbol {
    position: absolute;
    bottom: 1cqmin;
    left: 1.5cqmin;
    font-size: 12cqh !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-banner-chart-label {
    position: absolute;
    bottom: 1cqmin;
    right: 1.5cqmin;
    font-size: 12cqh !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;
}

/* Right 25% — two badges stacked vertically, equal width, centered. */
.ck-banner-badges {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8cqh;
    height: 100%;
    min-width: 0;
    padding: 0 5% 0 2.5%;
    box-sizing: border-box;
}
.ck-banner-mcap {
    padding: 1.2cqh 2cqmin;
    border-radius: 10cqmin;
    background: color-mix(in srgb, var(--bg) 25%, transparent);
    color: var(--bg) !important;
    font-size: 14cqh !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.01em;
    direction: ltr;
    unicode-bidi: embed;
    white-space: nowrap;
    text-align: center;
}
.ck-banner-change {
    padding: 1.2cqh 2cqmin;
    border-radius: 10cqmin;
    color: #fff !important;
    font-size: 14cqh !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    direction: ltr;
    unicode-bidi: embed;
    white-space: nowrap;
    text-align: center;
}
.ck-banner-change.is-up   { background: #22c55e; }
.ck-banner-change.is-down { background: #ef4444; }
