/* ========================================
   ROOT VARIABLES & RESET
   ======================================== */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --pink: #f48fb1;
    --pink-hover: #f06292;
    --pink-glow: rgba(244, 143, 177, 0.4);
    --red: #e53935;
    --red-glow: rgba(229, 57, 53, 0.5);
    --green: #00e676;
    --green-glow: rgba(0, 230, 118, 0.4);
    --white: #ffffff;
    --white-dim: #cccccc;
    --gold: #ffd54f;
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.5s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ========================================
   SCREEN MANAGEMENT
   ======================================== */
.screen {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    min-height: 100vh;
}

.screen.active {
    display: block;
    opacity: 1;
}

.screen.fade-out {
    opacity: 0;
}

.screen.fade-in {
    opacity: 1;
}

/* ========================================
   IMAGE SLIDESHOW
   ======================================== */
.image-slideshow {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid rgba(255, 255, 255, 0.85);
    outline: 3px solid rgba(255, 255, 255, 0.15);
    outline-offset: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide-img.active {
    opacity: 1;
}

/* ========================================
   CONTENT AREA
   ======================================== */
.content-area {
    padding: 30px 20px;
}

.important-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px var(--red-glow),
                 0 0 40px var(--red-glow),
                 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    font-style: italic;
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from { text-shadow: 0 0 20px var(--red-glow), 0 0 40px var(--red-glow); }
    to   { text-shadow: 0 0 30px var(--red-glow), 0 0 60px var(--red-glow), 0 0 80px var(--red-glow); }
}

.subtitle {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.4;
}

.description {
    font-size: 0.95rem;
    color: var(--white-dim);
    line-height: 1.7;
    margin-bottom: 15px;
    max-width: 588px;
    margin-left: auto;
    margin-right: auto;
}

.good-luck {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pink);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(244, 143, 177, 0.3);
}

.sub-note {
    font-size: 0.85rem;
    color: var(--white-dim);
    font-style: italic;
    margin-bottom: 30px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-pink {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-hover) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 16px 60px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px var(--pink-glow),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-pink::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-pink:hover::before {
    left: 100%;
}

.btn-pink:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 35px var(--pink-glow);
    background: linear-gradient(135deg, var(--pink-hover) 0%, #ec407a 100%);
    color: var(--white);
}

.btn-pink:active {
    transform: translateY(0) scale(0.98);
}

.btn-group-custom {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-continue {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 30px auto 0;
    padding: 18px;
}

/* ========================================
   CHECKBOXES
   ======================================== */
.checkbox-grid {
    padding: 20px 10px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-checkbox:hover {
    transform: translateX(5px);
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--pink);
    border-color: var(--pink);
    box-shadow: 0 0 12px var(--pink-glow);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: 'âœ“';
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.label-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    user-select: none;
}

/* ========================================
   LOADING / PROGRESS BAR
   ======================================== */
.loading-area {
    padding: 40px 20px;
}

.progress-container {
    width: 100%;
    max-width: 600px;
    height: 40px;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    margin: 40px auto 30px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.progress-bar-custom {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--pink) 0%, var(--pink-hover) 50%, var(--pink) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    transition: width 0.4s ease;
    box-shadow: 0 0 15px var(--pink-glow);
}

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

.loading-steps {
    margin-top: 10px;
}

.loading-step {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white-dim);
    margin-bottom: 8px;
    opacity: 0.4;
    transition: all 0.5s ease;
}

.loading-step.active {
    opacity: 1;
    color: var(--white);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.loading-step.done {
    opacity: 0.6;
    color: var(--green);
}

/* ========================================
   FINAL / CONGRATULATIONS SCREEN
   ======================================== */
.congrats-title {
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px var(--green-glow),
                 0 0 40px var(--green-glow);
    margin-bottom: 15px;
    animation: congratsPulse 2s ease-in-out infinite alternate;
}

@keyframes congratsPulse {
    from { text-shadow: 0 0 20px var(--green-glow), 0 0 40px var(--green-glow); }
    to   { text-shadow: 0 0 30px var(--green-glow), 0 0 60px var(--green-glow), 0 0 80px rgba(0, 230, 118, 0.3); }
}

.authorized-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green);
    font-style: italic;
    text-decoration: underline;
    margin-bottom: 10px;
}

.rules-header-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--red);
    font-style: italic;
    text-decoration: underline;
    margin-bottom: 15px;
}

.rules-intro {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.rules-list {
    text-align: left;
    max-width: 603px;
    margin: 0 auto 20px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.rule-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--pink), var(--pink-hover));
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 2px 10px var(--pink-glow);
}

.rule-item p {
    font-size: 0.88rem;
    color: var(--white-dim);
    line-height: 1.5;
    font-weight: 600;
    margin: 0;
}

.failure-note {
    font-size: 0.8rem;
    color: var(--white-dim);
    line-height: 1.6;
    max-width: 627px;
    margin: 15px auto 0;
    font-style: italic;
}

/* ========================================
   RESPONSIVE - FIT EVERYTHING IN VIEWPORT
   ======================================== */

/* Force screens to fit viewport */
@media (max-width: 767px) {
    html, body {
        overflow: hidden;
        height: 100%;
    }

    .screen {
        height: 100dvh;
        overflow: hidden;
    }

    .screen > .container {
        height: 100dvh;
        padding: 0 10px;
    }

    .screen > .container > .row {
        min-height: 100dvh !important;
        height: 100dvh;
        flex-wrap: nowrap;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    .screen > .container > .row > [class*="col-"] {
        flex: 0 0 auto;
        width: 100%;
    }

    /* Compact image */
    .image-slideshow {
        max-width: 140px;
        aspect-ratio: 1/1;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
                    0 0 30px var(--pink-glow);
    }

    .mb-4.mb-md-0 {
        margin-bottom: 8px !important;
    }

    /* Compact text */
    .important-title,
    .congrats-title {
        font-size: 1.5rem;
        margin-bottom: 6px;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .description {
        font-size: 0.92rem;
        line-height: 1.4;
        margin-bottom: 5px;
    }

    .good-luck {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .question-text {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .sub-note {
        font-size: 0.88rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    /* Compact buttons */
    .btn-pink {
        padding: 10px 32px;
        font-size: 0.85rem;
        letter-spacing: 1px;
        border-radius: 30px;
    }

    .btn-group-custom {
        gap: 12px;
    }

    .btn-continue {
        padding: 12px;
        margin-top: 12px;
        max-width: 100%;
    }

    /* Compact content area */
    .content-area {
        padding: 8px 8px;
    }

    /* Compact checkboxes */
    .checkbox-grid {
        padding: 6px 4px;
    }

    .custom-checkbox {
        margin-bottom: 6px;
        gap: 8px;
    }

    .checkmark {
        width: 20px;
        height: 20px;
        min-width: 20px;
        border-radius: 4px;
    }

    .custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
        font-size: 12px;
    }

    .label-text {
        font-size: 0.85rem;
    }

    /* Compact loading */
    .loading-area {
        padding: 20px 10px;
    }

    .progress-container {
        height: 28px;
        margin: 20px auto 15px;
    }

    .loading-step {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    /* Compact final screen */
    .authorized-text {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .rules-header-text {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .rules-intro {
        font-size: 0.68rem;
        margin-bottom: 8px;
    }

    .rule-item {
        margin-bottom: 6px;
        gap: 8px;
    }

    .rule-number {
        min-width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .rule-item p {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .failure-note {
        font-size: 0.65rem;
        line-height: 1.3;
        margin: 6px auto 0;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .important-title,
    .congrats-title {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .image-slideshow {
        max-width: 188px;
    }

    .btn-group-custom {
        flex-direction: row;
        gap: 10px;
    }

    .btn-pink {
        padding: 12px 53px;
        font-size: 1.2rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .label-text {
        font-size: 0.78rem;
    }

    .checkmark {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }
}

/* Very short screens (landscape or small phones) */
@media (max-height: 700px) and (max-width: 767px) {
    .image-slideshow {
        max-width: 100px;
        border-width: 1px;
    }

    .mb-4.mb-md-0 {
        margin-bottom: 4px !important;
    }

    .important-title,
    .congrats-title {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .description {
        font-size: 0.65rem;
        margin-bottom: 3px;
        line-height: 1.3;
    }

    .good-luck {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }

    .question-text {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .sub-note {
        font-size: 0.6rem;
        margin-bottom: 6px;
    }

    .btn-pink {
        padding: 8px 20px;
        font-size: 0.75rem;
    }

    .btn-continue {
        padding: 10px;
        margin-top: 8px;
    }

    .custom-checkbox {
        margin-bottom: 4px;
    }

    .checkbox-grid {
        padding: 4px 2px;
    }

    .content-area {
        padding: 4px 6px;
    }

    .rule-item {
        margin-bottom: 3px;
    }

    .rule-item p {
        font-size: 0.62rem;
    }

    .failure-note {
        font-size: 0.58rem;
        margin: 4px auto 0;
    }

    .progress-container {
        height: 22px;
        margin: 12px auto 10px;
    }

    .loading-step {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
}
