/* Lucky Draw Page Specific Styles */
:root {
    --royal-blue: #0047AB;
    --royal-light: #1E90FF;
    --royal-red: #E60012;
    --royal-gold: #FFD700;
    --white: #ffffff;
    --dark: #1a1a1a;
    --light: #f8f9fa;
}

.lucky-draw-body {
    background-color: #0047AB;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(30, 144, 255, 0.4) 0%, transparent 70%),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, 0.03) 80px,
            rgba(255, 255, 255, 0.03) 160px);
    color: var(--white);
    overflow-x: hidden;
}

/* Hero Section */
.event-hero {
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.event-title-wrapper {
    margin-bottom: 0px;
    animation: fadeInUp 1s ease-out;
}

.event-label {
    background: var(--white);
    color: var(--royal-red);
    padding: 4px 20px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    display: inline-block;
    margin-bottom: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.main-event-title {
    font-size: 4rem;
    color: var(--white);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    margin-bottom: 10px;
}

.promo-ribbon {
    background: var(--royal-red);
    color: var(--white);
    padding: 10px 50px;
    font-size: 2rem;
    font-weight: 900;
    display: inline-block;
    position: relative;
    clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
    box-shadow: 0 10px 25px rgba(230, 0, 18, 0.4);
    margin: 10px 0;
}

/* Podium Scaling System */
.podium-viewport {
    container-type: inline-size;
    width: 100%;
    max-width: 850px;
    margin: 2cqw auto 6cqw;
    padding: 0 4cqw;
    position: relative;
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    width: 100%;
    perspective: 1000px;
}

.podium-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.podium-item.rank-1 {
    z-index: 5;
    margin: 0 -2cqw;
    /* Overlap others slightly */
}

/* Prize on top */
.prize-on-top {
    width: 100%;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
}

.prize-img {
    width: 65%;
    height: auto;
    transform: translateY(2cqw);
    transition: transform 0.3s ease;
}

.prize-img-main {
    width: 75%;
    height: auto;
    transform: translateY(3cqw);
    animation: floatMain 3s ease-in-out infinite;
}

@keyframes floatMain {

    0%,
    100% {
        transform: translateY(3cqw);
    }

    50% {
        transform: translateY(0cqw);
    }
}

/* Podium Body */
.podium-body {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 4cqw;
}

.podium-body::before {
    content: '';
    position: absolute;
    top: -2.5cqw;
    left: 0;
    width: 100%;
    height: 5cqw;
    border-radius: 50%;
    z-index: 1;
}

.rank-1 .podium-body {
    height: 28cqw;
    background: linear-gradient(to right, #fdb931, #ffde8a, #fdb931);
    box-shadow: 0 15px 45px rgba(253, 185, 49, 0.3);
}

.rank-1 .podium-body::before {
    background: linear-gradient(to bottom, #ffde8a, #fdb931);
}

.rank-2 .podium-body {
    height: 20cqw;
    background: linear-gradient(to right, #d1d1d1, #f0f0f0, #d1d1d1);
}

.rank-2 .podium-body::before {
    background: linear-gradient(to bottom, #f0f0f0, #d1d1d1);
}

.rank-3 .podium-body {
    height: 15cqw;
    background: linear-gradient(to right, #d38d5f, #f2ad8a, #d38d5f);
}

.rank-3 .podium-body::before {
    background: linear-gradient(to bottom, #f2ad8a, #d38d5f);
}

/* Badge and Name alignment */
.podium-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1cqw;
    z-index: 10;
    width: 100%;
}

.rank-badge-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-circle {
    width: 7cqw;
    height: 7cqw;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4cqw;
    font-weight: 900;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.rank-1 .badge-circle {
    border: 0.6cqw solid #fdb931;
    color: #b8860b;
}

.rank-2 .badge-circle {
    border: 0.6cqw solid #c0c0c0;
    color: #666;
}

.rank-3 .badge-circle {
    border: 0.6cqw solid #cd7f32;
    color: #8b4513;
}

.badge-ribbons {
    position: absolute;
    bottom: -1.5cqw;
    width: 100%;
    height: 3cqw;
    z-index: 1;
}

.badge-ribbons::before,
.badge-ribbons::after {
    content: '';
    position: absolute;
    width: 2cqw;
    height: 4cqw;
    background: #e60012;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}

.badge-ribbons::before {
    left: 0.5cqw;
    transform: rotate(15deg);
}

.badge-ribbons::after {
    right: 0.5cqw;
    transform: rotate(-15deg);
}

.prize-name {
    font-size: 3.5cqw;
    font-weight: 900;
    color: #333;
    white-space: nowrap;
}

/* Floating Secondary Prizes */
.floating-prizes-row {
    position: absolute;
    bottom: -20cqw;
    /* 向下移，避免與上方獎台文字交疊 */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 4cqw;
    align-items: center;
    pointer-events: none;
    padding: 0 4cqw;
    z-index: 20;
}

.floating-prize-item {
    position: relative;
    width: 18cqw;
    /* 放大獎品尺寸 */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    display: flex;
    justify-content: center;
}

.floating-prize-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.floating-prize-item.p1 {
    transform: translateY(-1cqw);
}

.floating-prize-item.p2 {
    transform: translateY(1cqw);
}

.floating-prize-item.p3 {
    transform: translateY(-1cqw);
}

.floating-prize-item.p4 {
    transform: translateY(1cqw);
}

@keyframes floatSmall {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-2cqw) rotate(2deg);
    }
}

/* Secondary Prizes */
.secondary-prizes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.prize-card {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.prize-card:hover {
    transform: scale(1.05);
}

.prize-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.prize-card h5 {
    color: var(--primary);
    margin-bottom: 5px;
}

/* Participation Steps */
.participation-section {
    padding: 80px 0;
    background: var(--white);
    color: var(--dark);
    border-radius: 50px 50px 0 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.step-card {
    background: var(--light);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--royal-red);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 900;
}

.step-card h4 {
    margin-top: 10px;
    margin-bottom: 15px;
    color: var(--primary);
}

.btn-reserve {
    display: block;
    margin-top: 20px;
    background: var(--royal-blue);
    color: var(--white);
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    transition: background 0.3s;
}

.btn-reserve:hover {
    background: var(--primary-light);
}

/* Prize List Table */
.prize-table-section {
    padding: 60px 0;
    background: #F0F4FF;
}

.prize-list-container {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.prize-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid #eee;
}

.prize-row:last-child {
    border-bottom: none;
}

.prize-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dark);
    flex: 1;
    padding-right: 15px;
}

.prize-info i {
    color: var(--primary);
    font-size: 1.2rem;
}

.prize-qty {
    color: var(--royal-red);
    font-weight: 900;
    font-size: 1.5rem;
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 4px;
}

/* Notes Section */
.notes-section {
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    margin: 40px 0;
    border: 1px dashed var(--primary);
}

.notes-list {
    list-style: decimal;
    padding-left: 20px;
}

.notes-list li {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .main-event-title {
        font-size: 3rem;
    }

    .promo-ribbon {
        font-size: 1.5rem;
        padding: 10px 30px;
        margin: 15px 0;
    }

    .prize-row {
        padding: 12px 15px;
    }

    .prize-info {
        gap: 10px;
        font-size: 0.95rem;
    }

    .prize-qty {
        min-width: 75px;
        font-size: 1.25rem;
        text-align: right;
    }
}