.lottery-widget-section {
    width: 100%;
    display: block;
}

.lottery-widget-section--homepage {
    width: 100%;
    max-width: 1242px;
    margin: 0 auto;
    position: relative;
    z-index: 0;
}

.lottery-widget-section--homepage .sp-luck {
    width: 100%;
    max-width: 1242px;
    min-height: 335px;
    margin: 0 auto;
    box-sizing: border-box;
}

.sp-luck {
    background: #2c2d2e;
    border-radius: 32px;
    overflow: hidden;
    padding: 37px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

.sp-luck__content {
    flex: 0 0 318px;
    display: flex;
    flex-direction: column;
    gap: 141px;
    z-index: 1;
}

.sp-luck__content .sp-title {
    color: #fff;
}

.sp-luck__content .sp-text {
    color: #fff;
}

.sp-luck__reel-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
    min-width: 0;
}

.sp-luck__arrow {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sp-luck__arrow img {
    width: 52px;
    height: 52px;
    display: block;
}

.sp-luck__slots {
    flex: 1;
    position: relative;
    max-height: 335px;
    overflow: hidden;
}

.sp-luck__track {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    will-change: transform;
}

.sp-luck__slots-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #2c2d2e 0%, rgba(44, 45, 46, 0) 24.5%, rgba(44, 45, 46, 0) 76%, #2c2d2e 100%);
    z-index: 2;
}

.sp-luck__slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 24px;
    padding: 16px;
    font-family: Inter, system-ui, sans-serif;
    flex-shrink: 0;
}

.sp-luck__slot--active {
    box-shadow: 0 4px 74.6px 0 rgba(255, 255, 255, 1);
    z-index: 1;
}

.sp-luck__slot-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.sp-luck__slot-text {
    font-family: 'Inter Display', Inter, system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.6px;
    color: #2c2d2e;
}

.sp-luck__slot-platform {
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #2c2d2e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-luck__slot-platform img {
    width: 20px;
    height: 20px;
}

.sp-luck__slot-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.sp-luck__timer {
    flex: 0 0 192px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    z-index: 1;
}

.sp-luck__timer-circle {
    width: 153px;
    height: 153px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-luck__timer-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sp-luck__timer-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    color: #fff;
}

.sp-luck__timer-value {
    font-family: 'Inter Display', Inter, system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.6px;
}

.sp-luck__timer-label {
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.1;
    color: #fff;
}

.sp-btn--luck {
    width: 100%;
    height: 64px;
    border-radius: 9999px;
    font-size: 16px;
}

.sp-luck__progress {
    display: none;
    width: 100%;
    height: 6px;
    background: #fff;
    border-radius: 9999px;
    overflow: hidden;
}

.sp-luck__progress-fill {
    height: 100%;
    background: #0DC268;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.sp-luck__result {
    position: absolute;
    left: 40px;
    bottom: 24px;
    z-index: 4;
    max-width: 318px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.sp-luck__result[hidden] {
    display: none;
}

.sp-luck__result-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    font-family: 'Inter Display', Inter, system-ui, sans-serif;
    font-size: 12px;
    line-height: 1;
    margin-bottom: 12px;
}

.sp-luck__result-title {
    font-family: 'Inter Display', Inter, system-ui, sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}

.sp-luck__result-text {
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.sp-luck__result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.sp-luck__result-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 9999px;
    text-decoration: none;
    font-family: 'Inter Display', Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
}

.sp-luck__result-link--primary {
    background: #005ff9;
    color: #fff;
}

.sp-luck__result-link--ghost {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

.sp-luck__result-link:hover,
.sp-luck__result-link:focus {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 1360px) {
    .lottery-widget-section--homepage .sp-luck {
        max-width: calc(100% - 100px);
    }
}

@media (max-width: 1024px) {
    .sp-luck {
        gap: 24px;
        padding: 40px 24px;
        flex-direction: column;
        align-items: stretch;
    }

    .sp-luck__content {
        flex: none;
        gap: 24px;
    }

    .sp-luck__reel-wrap {
        width: 100%;
    }

    .sp-luck__timer {
        flex: none;
        width: 100%;
    }

    .sp-luck__result {
        position: static;
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .lottery-widget-section--homepage {
        width: 328px;
        max-width: 100%;
        margin: 0 auto;
    }

    .lottery-widget-section--homepage .sp-luck {
        max-width: 100%;
        min-height: 0;
        padding: 20px;
        gap: 24px;
        border-radius: 28px;
    }

    /* Content: title 28px, desc 14px, gap 10px */
    .sp-luck__content {
        gap: 10px;
    }

    .sp-luck__content .sp-title {
        font-size: 28px;
        line-height: 28px;
    }

    .sp-luck__content .sp-text {
        font-size: 14px;
    }

    /* Reel: horizontal card row */
    .sp-luck__reel-wrap {
        flex-direction: column;
        gap: 0;
        margin: 0 -20px;
        padding: 0 20px;
    }

    .sp-luck__arrow {
        display: none;
    }

    .sp-luck__slots {
        max-height: none;
        overflow: visible;
    }

    .sp-luck__track {
        flex-direction: row;
        gap: 10px;
        height: auto;
    }

    /* Gradient: horizontal, extended to widget edges */
    .sp-luck__slots-fade {
        left: -20px;
        right: -20px;
        background: linear-gradient(270deg, #2c2d2e 0%, rgba(44, 45, 46, 0) 25%, rgba(44, 45, 46, 0) 76%, #2c2d2e 100%);
    }

    /* Card: vertical layout, 120px wide */
    .sp-luck__slot {
        flex-direction: column;
        width: 120px;
        min-width: 120px;
        padding: 14px;
        gap: 12px;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .sp-luck__slot--active {
        box-shadow: 0 4px 55px 0 rgba(255, 255, 255, 1);
    }

    /* Icon moves to top */
    .sp-luck__slot-icon {
        order: -1;
    }

    .sp-luck__slot-info {
        order: 1;
        gap: 4px;
    }

    .sp-luck__slot-text {
        font-size: 16px;
        line-height: 16px;
    }

    .sp-luck__slot-platform {
        font-size: 12px;
    }

    .sp-luck__slot-platform img {
        display: none;
    }

    /* Timer: button first, then inline text + progress bar */
    .sp-luck__timer {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
    }

    .sp-btn--luck {
        order: -1;
        width: 192px;
        height: 54px;
        font-size: 14px;
        box-shadow: 0 4px 44px #005FF9;
    }

    .sp-luck__timer-circle {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .sp-luck__timer-ring {
        display: none;
    }

    .sp-luck__timer-text {
        position: static;
        flex-direction: row;
        gap: 4px;
        align-items: baseline;
    }

    .sp-luck__timer-value {
        font-size: 16px;
        line-height: 16px;
    }

    .sp-luck__timer-label {
        font-size: 12px;
        line-height: 1;
    }

    /* Arrow indicator below cards */
    .sp-luck__reel-wrap::after {
        content: '';
        display: block;
        width: 0;
        height: 0;
        margin: 2px auto 0;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-top: 15px solid #005FF9;
    }

    .sp-luck__progress {
        display: block;
        margin-top: -14px;
    }
}

/* Claim form (prize link input) */
.sp-luck__claim-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.sp-luck__claim-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    font-family: Inter, system-ui, sans-serif;
    outline: none;
    transition: border-color 0.15s;
}

.sp-luck__claim-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sp-luck__claim-input:focus {
    border-color: #005ff9;
}

.sp-luck__claim-error {
    font-size: 13px;
    color: #ff6b6b;
    font-family: Inter, system-ui, sans-serif;
}
