/* cassino-populaires — native AMATIC trading zone */

/* ── Trading zone wrapper (ticker + chart) ── */
.cp-trading-zone {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 0 0 4px;
}

/* ── Compact promotions ── */
.promotions-block--compact {
    margin: 12px 0 14px;
}

.promotions-block--compact .promotions-head {
    margin-bottom: 6px;
}

.promotions-block--compact .promotions-head h2 {
    font-size: 1rem;
}

.promotions-block--compact .promo-carousel {
    gap: 6px;
}

.promotions-block--compact .promo-viewport {
    height: 140px;
    border-radius: 10px;
}

.promotions-block--compact .promo-slide {
    aspect-ratio: unset;
    height: 140px;
}

.promotions-block--compact .promo-slide img,
.promotions-block--compact .promo-slide a {
    height: 140px;
    object-fit: cover;
}

.promotions-block--compact .promo-nav {
    width: 32px;
    height: 32px;
    font-size: 11px;
}

@media (max-width: 768px) {
    .promotions-block--compact {
        margin: 8px 0 10px;
    }

    .promotions-block--compact .promotions-head {
        margin-bottom: 4px;
    }

    .promotions-block--compact .promo-viewport {
        height: 90px;
    }

    .promotions-block--compact .promo-slide {
        height: 90px;
    }

    .promotions-block--compact .promo-slide img,
    .promotions-block--compact .promo-slide a {
        height: 90px;
    }

    .promotions-block--compact .promo-nav {
        width: 28px;
        height: 28px;
    }
}

/* ── Crypto Ticker Bar ── */
.crypto-ticker-section {
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px;
    overflow: hidden;
}

.crypto-ticker-bar {
    width: 100%;
    background: linear-gradient(90deg, #081824 0%, #0d2233 35%, #10293d 50%, #0d2233 65%, #081824 100%);
    border: 1px solid rgba(47, 69, 83, 0.45);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(6, 18, 29, 0.4);
}

.crypto-ticker-viewport {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.crypto-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    padding: 11px 0;
    animation: crypto-ticker-scroll 40s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.crypto-ticker-bar:hover .crypto-ticker-track {
    animation-play-state: paused;
}

@keyframes crypto-ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.crypto-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    white-space: nowrap;
    flex-shrink: 0;
    border-right: 1px solid rgba(47, 69, 83, 0.35);
}

.crypto-ticker-icon {
    font-size: 11px;
    line-height: 1;
    flex-shrink: 0;
}

.crypto-ticker-sym {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-white);
}

.crypto-ticker-price {
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}

.crypto-ticker-pct {
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.crypto-ticker-pct.is-up {
    color: #00e701;
}

.crypto-ticker-pct.is-down {
    color: #ff4454;
}

/* ── BTC Area Chart ── */
.btc-area-section {
    width: 100%;
    max-width: 100%;
    margin: 0 0 28px;
    overflow: hidden;
    contain: layout style paint;
}

.btc-area-widget {
    width: 100%;
    max-width: 100%;
    height: min(72vh, 720px);
    min-height: 620px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #10293d 0%, #0d2233 40%, #081824 100%);
    border: 1px solid rgba(47, 69, 83, 0.5);
    border-radius: 0;
    overflow: hidden;
    box-shadow:
        0 0 24px rgba(51, 214, 255, 0.08),
        0 4px 28px rgba(6, 18, 29, 0.5);
}

/* ── DOGE/USDT chart header ── */
.cp-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    padding: 10px 14px 6px;
    border-bottom: 1px solid rgba(47, 69, 83, 0.35);
}

.cp-chart-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cp-chart-coin {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(194, 166, 51, 0.45);
}

.cp-chart-pair {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-white);
    flex-shrink: 0;
}

.cp-chart-live-price {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #33d6ff;
    text-shadow: 0 0 12px rgba(51, 214, 255, 0.45);
    text-align: right;
}

.btc-area-chart-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

/* Y-axis price badge */
.cp-y-price-badge {
    display: none;
    position: absolute;
    right: 4px;
    transform: translateY(-50%);
    z-index: 3;
    padding: 3px 7px;
    border-radius: 0;
    background: linear-gradient(135deg, #1a6fd4 0%, #0d4f9e 100%);
    border: 1px solid rgba(51, 214, 255, 0.55);
    box-shadow: 0 0 10px rgba(51, 214, 255, 0.35);
    font-size: 10px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #fff;
    letter-spacing: 0.02em;
    pointer-events: none;
    white-space: nowrap;
}

.btc-area-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
}

.btc-area-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, #0d2233 8%, #10293d 18%, #0d2233 33%);
    background-size: 200% 100%;
    animation: cp-shimmer 1.4s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.btc-area-loaded .btc-area-skeleton {
    display: none;
}

@keyframes cp-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (max-width: 768px) {
    .crypto-ticker-section {
        margin: 0 0 10px;
    }

    .crypto-ticker-track {
        padding: 9px 0;
    }

    .crypto-ticker-item {
        padding: 0 16px;
        gap: 6px;
    }

    .crypto-ticker-sym,
    .crypto-ticker-price,
    .crypto-ticker-pct {
        font-size: 11px;
    }

    .btc-area-section {
        margin: 0 0 20px;
    }

    .btc-area-widget {
        height: min(62vh, 560px);
        min-height: 480px;
        border-radius: 0;
    }

    .cp-chart-header {
        padding: 8px 10px 4px;
        gap: 8px;
    }

    .cp-chart-pair {
        font-size: 12px;
    }

    .cp-chart-live-price {
        font-size: 13px;
    }

    .cp-y-price-badge {
        font-size: 9px;
        padding: 2px 5px;
        right: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .crypto-ticker-track {
        animation: none;
    }

    .btc-area-skeleton {
        animation: none;
    }
}
