/* Premium Dark Aesthetic for Passport Screen */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --uba-dark-bg: #1c1c1e;
    --uba-lime: #D4ED31;
    --uba-lime-hover: #e2f558;
    --uba-dark-panel: #262629;
    --uba-text-main: #ffffff;
    --uba-text-muted: #999999;
}

body.page-template-page-passport-screen {
    background-color: var(--uba-dark-bg);
    color: var(--uba-text-main);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hide header/footer on full screen display optionally */
.main-navigation,
.mobile-menu-container,
.site-footer {
    display: none !important;
}

.passport-screen-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

/* Typography */
.screen-header h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--uba-lime);
    text-transform: uppercase;
    line-height: 1.2;
}

.screen-header h1 .highlight-lime {
    color: var(--uba-lime);
}

.step-subtitle {
    font-size: 1.2rem;
    color: var(--uba-text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Steps logic */
.screen-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.screen-step.active {
    display: block;
}

/* Form Elements */
.prize-selection-box {
    margin-bottom: 30px;
}

.custom-select-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.screen-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border: 1px solid var(--uba-lime);
    border-radius: 8px;
    padding: 20px;
    font-size: 1.2rem;
    color: var(--uba-lime);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.screen-select:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(212, 237, 49, 0.3);
}

.screen-select option {
    background-color: var(--uba-dark-panel);
    color: var(--uba-text-main);
    padding: 15px;
}

.custom-select-wrapper::after {
    content: "▼";
    font-size: 0.8rem;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--uba-lime);
    pointer-events: none;
}

/* Buttons */
.btn-screen {
    background-color: var(--uba-lime);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 20px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    letter-spacing: 1px;
}

.btn-screen:hover:not(:disabled) {
    background-color: var(--uba-lime-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 237, 49, 0.2);
}

.btn-screen:disabled {
    background-color: #333;
    color: #666;
    cursor: not-allowed;
}

.btn-screen-secondary {
    background-color: transparent;
    color: var(--uba-lime);
    border: 1px solid var(--uba-lime);
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.btn-screen-secondary:hover {
    background-color: rgba(212, 237, 49, 0.1);
}

.btn-screen-redraw {
    background-color: transparent;
    color: #ff9f40;
    border: 1px solid #ff9f40;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 14px;
    letter-spacing: 0.5px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.4s ease forwards;
}

.btn-screen-redraw:hover {
    background-color: rgba(255, 159, 64, 0.12);
    transform: translateY(-1px);
}

/* Draw State */
.draw-prize-info {
    margin-bottom: 40px;
}

.drawing-label {
    color: var(--uba-text-muted);
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.draw-title {
    color: var(--uba-lime);
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-shadow: 0 0 20px rgba(212, 237, 49, 0.3);
}

.participants-count {
    font-size: 1.2rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
}

/* Animation Box */
.draw-animation-box {
    background: var(--uba-dark-panel);
    border: 2px solid var(--uba-lime);
    border-radius: 20px;
    padding: 40px;
    margin: 0 auto 40px;
    max-width: 600px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 40px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}

.draw-animation-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 30%;
    background: linear-gradient(to bottom, rgba(38, 38, 41, 1), rgba(38, 38, 41, 0));
    z-index: 2;
}

.draw-animation-box::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 30%;
    background: linear-gradient(to top, rgba(38, 38, 41, 1), rgba(38, 38, 41, 0));
    z-index: 2;
}

.draw-numbers-roller {
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 5px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Winner State */
.winner-label {
    font-size: 2rem;
    color: var(--uba-lime);
    margin-bottom: 30px;
    letter-spacing: 5px;
    animation: pulse 2s infinite;
}

.winner-ticket-card {
    background: linear-gradient(135deg, rgba(212, 237, 49, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border: 2px solid var(--uba-lime);
    border-radius: 20px;
    padding: 50px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 50px rgba(212, 237, 49, 0.2);
}

.winner-ticket-label {
    font-size: 1.2rem;
    color: var(--uba-text-muted);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.winner-ticket-value {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.winner-name {
    font-size: 2rem;
    color: var(--uba-lime);
    font-weight: 700;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Confetti canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}