:root {
    /* Playful Primary Colors */
    --color-red: #FF4B4B;
    --color-red-dark: #D32F2F;
    --color-blue: #1E88E5;
    --color-blue-dark: #1565C0;
    --color-yellow: #FFCA28;
    --color-yellow-dark: #FFB300;
    
    /* Neutrals */
    --color-bg: #F4F7FB;
    --color-surface: #FFFFFF;
    --color-text-main: #2C3E50;
    --color-text-muted: #546E7A;
    --color-border: #E0E6ED;
    
    /* Typography */
    --font-heading: 'Fredoka', cursive;
    --font-body: 'Nunito', sans-serif;
    
    /* Shadows & Radii */
    --shadow-soft: 0 10px 30px rgba(30, 136, 229, 0.08);
    --shadow-hard: 4px 4px 0px rgba(0,0,0,0.1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Layout */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    overflow-x: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45vh;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/2s8rrp/site/media/69d5456ce7fb16.44531874.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(244, 247, 251, 1) 100%);
}

.main-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
.campaign-header {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.campaign-logo {
    max-width: 100%;
    height: auto;
    max-height: 140px;
    margin-bottom: 1rem;
    display: inline-block;
}

.campaign-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-blue-dark);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.8);
}

.campaign-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
}

/* Panels */
.card-panel {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft), 0 4px 6px rgba(0,0,0,0.02);
    border: 2px solid var(--color-border);
}

.status-panel {
    text-align: center;
    padding: 3rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
}

.status-panel h2 {
    color: var(--color-red-dark);
    font-family: var(--font-heading);
}

/* Countdown Timer */
.countdown-panel {
    text-align: center;
}

.countdown-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-blue-dark);
    margin-bottom: 1.25rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cd-item {
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cd-item span {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-red);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.cd-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--color-text-muted);
}

.ended-message {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-red-dark);
    font-weight: 700;
}

/* Voting UI */
.instructions {
    text-align: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-blue-dark);
}

.choices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.choice-btn {
    background: var(--color-blue);
    border: 3px solid var(--color-blue-dark);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}

.choice-btn:hover {
    transform: translateY(-5px);
    border-color: var(--color-yellow);
    background: #2196F3; /* slightly lighter blue on hover */
    box-shadow: 0 10px 20px rgba(30, 136, 229, 0.3);
}

.choice-btn.selected {
    border-color: var(--color-red-dark);
    background-color: var(--color-red);
    box-shadow: 0 0 0 4px rgba(255, 75, 75, 0.3);
    transform: translateY(-2px);
}

.choice-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    color: var(--color-red);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.choice-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg);
    border: 2px solid rgba(255,255,255,0.2);
}

.choice-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.choice-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #ffffff;
    width: 100%;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

.choice-description {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
    font-family: var(--font-body);
    font-weight: normal;
}

/* Form */
.form-container {
    background: rgba(255, 202, 40, 0.1);
    border: 2px dashed var(--color-yellow);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-container h3 {
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-text-main);
}

.vote-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.vote-form input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: white;
    transition: all 0.2s ease;
}

.vote-form input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

.btn {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background: var(--color-red);
    color: white;
    box-shadow: 0 4px 0px var(--color-red-dark);
}

.btn-primary:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0px var(--color-red-dark);
    background: #FF5C5C;
}

.btn-primary:disabled {
    background: #ccc;
    box-shadow: 0 4px 0px #aaa;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--color-blue);
    color: white;
    box-shadow: 0 4px 0px var(--color-blue-dark);
}

.btn-secondary:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0px var(--color-blue-dark);
}

.error-message {
    color: var(--color-red-dark);
    background: #ffebee;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Results UI */
.results-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.results-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-blue-dark);
    margin-bottom: 0.5rem;
}

.badge {
    background: var(--color-yellow);
    color: var(--color-text-main);
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.1rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-item {
    position: relative;
    z-index: 1;
}

.result-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.result-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.result-stats {
    color: var(--color-text-muted);
}

.result-bar-bg {
    width: 100%;
    height: 24px;
    background: var(--color-border);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.result-bar-fill {
    height: 100%;
    background: var(--color-blue);
    border-radius: 999px;
    width: 0%;
    transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-item.is-pick .result-bar-fill {
    background: var(--color-red);
}

.result-item.is-pick .result-title::after {
    content: ' (Your Vote)';
    color: var(--color-red);
    font-size: 0.85em;
}

.thanks-message {
    margin-bottom: 2.5rem;
    text-align: center;
    padding: 1.5rem;
    background: rgba(30, 136, 229, 0.05);
    border: 2px solid rgba(30, 136, 229, 0.2);
    border-radius: var(--radius-md);
}

.thanks-message h3 {
    font-family: var(--font-heading);
    color: var(--color-blue-dark);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.thanks-message p {
    font-weight: 600;
    color: var(--color-text-main);
}

/* Share Panel */
.share-panel {
    text-align: center;
    background: linear-gradient(135deg, var(--color-blue) 0%, #1565C0 100%);
    color: white;
    border: none;
}

.share-panel h2 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.share-panel p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.share-box {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.share-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    color: var(--color-text-main);
    background: white;
}

#wbx-powered-by-slot {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
    .card-panel {
        padding: 1.5rem;
    }
    
    .choices-grid {
        grid-template-columns: 1fr;
    }
    
    .share-box {
        flex-direction: column;
    }

    .countdown-timer {
        gap: 0.5rem;
    }
    
    .cd-item {
        min-width: 70px;
        padding: 1rem 0.5rem;
    }
    
    .cd-item span {
        font-size: 1.75rem;
    }
    
    .cd-label {
        font-size: 0.75rem;
    }
}