@keyframes timerBlink {
    0%, 100% {
        opacity: 1
    }
    50% {
        opacity: 0.45
    }
}

@keyframes winnerPop {
    0% {
        opacity: 0;
        transform: translateY(6px)
    }
    60% {
        transform: translateY(-2px)
    }
    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.container-raffle {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container-raffle {
        padding: 0 24px;
    }
}

.pb-8 {
    padding-bottom: 32px;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-center {
    text-align: center;
}


.header {
    padding: 20px 16px;
    text-align: center;
}

.header-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.header-subtitle {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}


.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 0;
    color: #6b7280;
    font-size: 12px;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid #222;
    border-top-color: #e53935;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.empty-raffles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 0;
    color: #333;
    font-size: 12px;
}

.empty-raffles svg {
    opacity: 0.25;
}


.raffles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}

@media (min-width: 1200px) {
    .raffles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .raffles-grid {
        grid-template-columns: 1fr;
    }
}


.raffle-col {
    background: #101010;
    border: 1px solid #1e1e1e;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.raffle-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rc, #e53935);
}


.skin-showcase {
    padding: 18px 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #1e1e1e;
}

.skin-img-wrap {
    width: 110px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.skin-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
}

.skin-img-placeholder {
    font-size: 36px;
    opacity: 0.15;
}

.skin-name {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.skin-weapon {
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
}

.skin-price {
    font-size: 13px;
    font-weight: 600;
    color: #eb4b4b;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(229, 57, 53, 0.15);
}


.raffle-meta {
    padding: 10px 14px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #1e1e1e;
}

.meta-item {
    flex: 1;
    background: #161616;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meta-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #333;
}

.meta-value {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.meta-value.accent {
    color: #e53935;
}

/* ── progress ── */
.progress-wrap {
    padding: 10px 14px 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.progress-label {
    font-size: 10px;
    color: #6b7280;
    font-weight: 600;
}

.progress-count {
    font-size: 11px;
    font-weight: 700;
    color: #e53935;
}

.progress-bar {
    height: 4px;
    background: #161616;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #e53935, #eb4b4b);
    transition: width 0.5s ease;
}

/* ── timer ── */
.timer-wrap {
    margin: 10px 14px 0;
    background: #161616;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* фиксированная высота чтобы все колонки были одной высоты */
    min-height: 42px;
}

.timer-placeholder {
    opacity: 0;
    pointer-events: none;
}

.timer-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #333;
}

.timer-value {
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    color: #eb4b4b;
}

.timer-dash {
    color: #333;
}

.timer-value.blink {
    animation: timerBlink 1s ease infinite;
}

/* ── button ── */
.btn-participate {
    margin: 10px 14px 0;
    padding: 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-participate.can-join {
    background: #e53935;
    color: #fff;
}

.btn-participate.can-join:hover {
    opacity: 0.88;
}

.btn-participate.can-join:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-participate.joined {
    background: rgba(229, 57, 53, 0.12);
    color: #eb4b4b;
    box-shadow: inset 0 0 0 1px #e53935;
    cursor: default;
}

.btn-participate.locked {
    background: #161616;
    color: #6b7280;
    box-shadow: inset 0 0 0 1px #1e1e1e;
    cursor: not-allowed;
}

/* ── winners ── */
.winners-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 14px 10px;
    min-height: 0;
}

.winners-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.winners-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 110px;
    max-height: 190px;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #161616;
    border: 1px solid #1e1e1e;
    border-radius: 7px;
    padding: 7px 9px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
    animation: winnerPop 0.3s ease both;
}

.winner-object img
{
    width: 60px !important;
}

.winner-item:hover {
    border-color: #2e2e2e;
}

.winner-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #1e1e1e;
}

.winner-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1c1c1c;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #333;
    border: 1px solid #1e1e1e;
}

.winner-info {
    flex: 1;
    min-width: 0;
}

.winner-name {
    font-size: 11px;
    font-weight: 600;
}

.winner-prize {
    font-size: 9px;
    color: #6b7280;
    margin-top: 1px;
}

.winner-date {
    font-size: 8px;
    color: #333;
    margin-top: 1px;
}

.winner-arrow {
    color: #333;
    font-size: 10px;
    flex-shrink: 0;
}

.winners-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #333;
    font-size: 11px;
    text-align: center;
    padding: 16px 0;
}

.winners-empty svg {
    opacity: 0.2;
}

.winners-pagination {
    padding-top: 8px;
    flex-shrink: 0;
}

/* ── scrollbar ── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
}