:root {
    --laba-primary: #000;
    /* Fallback */
    --laba-radius: 12px;
    /* Fallback */
    --laba-bg: #fff;
    --laba-text: #1d1d1f;
    --laba-grey: #f5f5f7;
    --laba-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --laba-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Container */
#laba-quiz-app {
    max-width: 100%;
    width: 100%;
    margin: 60px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--laba-text);
    background: #fff;
    /* Optional: Remove white box if embedding in a clean page, but user screenshot shows clean white background */
    padding: 20px;
}

/* Progress Header */
.laba-progress-header {
    margin-bottom: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.laba-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    font-weight: 600;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.laba-progress-track {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.laba-progress-fill {
    height: 100%;
    background: var(--laba-primary);
    transition: width 0.4s ease;
}

/* Question Body */
.laba-quiz-body {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.laba-quiz-question {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 50px;
    color: #111;
}

/* Answer Grid */
.laba-quiz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media(max-width: 600px) {
    .laba-quiz-grid {
        grid-template-columns: 1fr;
    }
}

/* Answer Grid Keys */
.laba-quiz-card-btn {
    position: relative;
    /* existing styles... */
    appearance: none;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: var(--laba-radius);
    padding: 30px 30px 30px 50px;
    /* More padding left for letter */
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align text */
    text-align: left;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.laba-answer-key {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    color: var(--laba-primary);
    opacity: 0.2;
    font-size: 1.2rem;
}

.laba-quiz-card-btn:hover .laba-answer-key {
    opacity: 1;
}

.laba-quiz-card-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--laba-hover-shadow);
    border-color: var(--laba-primary);
}

/* Footer Nav */
.laba-quiz-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.laba-btn-text {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    transition: color 0.2s;
}

.laba-btn-text:hover {
    color: #333;
}

/* Animations */
.animate-next {
    animation: slideInRight 0.4s ease forwards;
}

.animate-prev {
    animation: slideInLeft 0.4s ease forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Winner Result */
#laba-quiz-app-container {
    max-width: 1100px;
    margin: 40px auto;
    background: #fff;
    border-radius: var(--laba-radius);
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-top: 5px solid transparent;
    /* Color set inline */
}

.laba-winner-card {
    padding: 60px;
    background: #fff;
    border-radius: var(--laba-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-top: 5px solid transparent;
    /* Color set inline */
}

.laba-btn-main {
    background: var(--laba-primary);
    /* Overwritten inline usually */
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.2s;
}

.laba-btn-main:hover {
    transform: scale(1.05);
}

/* Others Grid */
.laba-others-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.laba-mini-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* Podium Result */
.laba-podium-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    margin: 50px 0;
    min-height: 350px;
}

@media(max-width: 600px) {
    .laba-podium-container {
        flex-direction: column;
        align-items: center;
    }

    .laba-podium-place {
        width: 100% !important;
        margin-bottom: 20px;
        order: 2;
        /* Default order */
    }

    .laba-podium-place.rank-1 {
        order: 1;
        /* First on mobile */
    }
}

.laba-podium-place {
    background: #fff;
    border-radius: var(--laba-radius);
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    border-bottom: 5px solid transparent;
}

/* Rank 1 (Center) */
.laba-podium-place.rank-1 {
    width: 35%;
    height: 100%;
    padding-bottom: 60px;
    z-index: 2;
    transform: scale(1.05);
}

/* Rank 2 & 3 (Sides) */
.laba-podium-place.rank-2,
.laba-podium-place.rank-3 {
    width: 28%;
    padding-bottom: 40px;
    opacity: 0.9;
}

.laba-rank-badge {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.rank-1 .laba-rank-badge {
    background: #FFD700;
    color: #000;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.5rem;
}

.rank-2 .laba-rank-badge {
    background: #C0C0C0;
    color: #000;
}

.rank-3 .laba-rank-badge {
    background: #CD7F32;
    color: #fff;
}

.laba-podium-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.3;
}

.rank-1 .laba-podium-title {
    font-size: 1.6rem;
}

.laba-podium-percent {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
}

.rank-1 .laba-podium-percent {
    font-size: 3rem;
    color: var(--laba-primary);
}