:root {
    --purple: #6b46c1;
    --purple-dark: #553c9a;
    --mustard: #d4a017;
    --mustard-hover: #b8860b;
    --teal: #0e7490;
    --teal-dark: #164e63;
    --cream: #fef3c7;
    --cream-light: #fffbeb;
    --text-dark: #1e1b4b;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Halftone/Grain Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography */
.anton {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.caveat {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: var(--mustard);
    transform: rotate(-3deg);
    display: inline-block;
}

.hidden {
    display: none !important;
}

/* Layout */
.poster-layout {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--cream-light);
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    background-color: var(--purple-dark);
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--purple-dark), transparent);
}

.hero-content {
    padding: 2rem 1.5rem 3rem;
    position: relative;
    z-index: 2;
    margin-top: -80px;
}

.subtitle {
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0px var(--purple-dark);
}

.title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--cream);
    line-height: 1.05;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0px var(--teal);
}

.tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mustard);
    letter-spacing: 0.5px;
}

/* Steps Strip */
.steps-strip {
    display: flex;
    flex-direction: column;
    background-color: var(--teal);
    color: var(--cream);
    border-top: 4px solid var(--mustard);
    border-bottom: 4px solid var(--mustard);
}

.step {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px dashed rgba(254, 243, 199, 0.3);
}

.steps-strip .step:last-child {
    border-bottom: none;
}

.step-num {
    font-size: 2.5rem;
    color: var(--mustard);
    margin-right: 1rem;
    line-height: 1;
    text-shadow: 2px 2px 0px var(--purple-dark);
}

.step-text {
    font-size: 1.1rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .steps-strip {
        flex-direction: row;
    }
    .step {
        border-bottom: none;
        border-right: 2px dashed rgba(254, 243, 199, 0.3);
        justify-content: center;
    }
    .steps-strip .step:last-child {
        border-right: none;
    }
}

/* Main Content Area */
.main-content {
    padding: 3rem 1.5rem;
}

/* Ticket Stub Form */
.ticket-stub {
    background-color: #fff;
    border: 3px dashed var(--teal);
    border-radius: 4px;
    padding: 2.5rem 2rem;
    max-width: 500px;
    margin: 0 auto 3rem;
    position: relative;
    box-shadow: 8px 8px 0px var(--purple);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--teal-dark);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid var(--purple);
    border-radius: 4px;
    background-color: var(--cream);
    color: var(--text-dark);
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 4px 4px 0px var(--mustard);
    background-color: #fff;
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.5rem;
    background-color: var(--mustard);
    color: var(--text-dark);
    border: 3px solid var(--text-dark);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px var(--text-dark);
    margin-top: 1rem;
}

.btn-submit:hover:not(:disabled) {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--text-dark);
    background-color: var(--mustard-hover);
}

.btn-submit:active:not(:disabled) {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-dark);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #ccc;
    box-shadow: none;
    transform: none;
}

.error-msg {
    color: #b91c1c;
    background-color: #fef2f2;
    padding: 1rem;
    border: 2px solid #b91c1c;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.ticket-footer {
    margin-top: 2rem;
    text-align: center;
}

.barcode {
    font-family: monospace;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--teal);
    display: block;
    margin-top: 0.5rem;
    opacity: 0.6;
}

/* Success Section */
.success-card {
    background-color: var(--teal);
    color: var(--cream);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 8px 8px 0px var(--mustard);
    max-width: 600px;
    margin: 0 auto 3rem;
    border: 3px solid var(--text-dark);
}

.success-card h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--mustard);
    text-shadow: 2px 2px 0px var(--text-dark);
}

.success-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.bonus-panel {
    background-color: var(--cream);
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 4px;
    border: 2px solid var(--text-dark);
    margin-top: 2rem;
}

.bonus-panel h3 {
    margin-bottom: 0.5rem;
}

.share-box {
    display: flex;
    margin-top: 1rem;
}

.share-box input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--text-dark);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-family: inherit;
    background: #fff;
}

.share-box button {
    padding: 0.75rem 1.5rem;
    background-color: var(--purple);
    color: white;
    border: 2px solid var(--text-dark);
    border-radius: 0 4px 4px 0;
    font-weight: bold;
    cursor: pointer;
}

.share-box button:hover {
    background-color: var(--purple-dark);
}

/* Prize Details */
.prize-card {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--cream-light);
    border: 3px solid var(--purple);
    padding: 2rem;
    position: relative;
}

.prize-card h3 {
    font-size: 2rem;
    color: var(--purple);
    margin-bottom: 1.5rem;
    text-align: center;
}

.prize-list {
    list-style: none;
}

.prize-list li {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
}

.check {
    color: var(--mustard);
    font-size: 1.5rem;
    margin-right: 1rem;
    line-height: 1;
    text-shadow: 1px 1px 0px var(--text-dark);
}

/* Footer */
.site-footer {
    background-color: var(--text-dark);
    color: var(--cream);
    padding: 4rem 1.5rem 2rem;
    text-align: center;
}

/* Countdown */
.countdown-wrapper {
    margin-bottom: 4rem;
}

.countdown-label {
    margin-bottom: 1rem;
}

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

.cd-box {
    background-color: var(--purple);
    border: 2px solid var(--mustard);
    padding: 1rem;
    min-width: 80px;
    border-radius: 4px;
    box-shadow: 4px 4px 0px var(--mustard);
}

.cd-box span {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
}

.cd-box small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    opacity: 0.8;
}

@media (max-width: 480px) {
    .countdown {
        gap: 0.5rem;
    }
    .cd-box {
        min-width: 60px;
        padding: 0.75rem 0.5rem;
    }
    .cd-box span {
        font-size: 2rem;
    }
}

/* Rules Accordion */
.rules-accordion {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: left;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
}

.rules-accordion summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--mustard);
    list-style: none;
    position: relative;
}

.rules-accordion summary::-webkit-details-marker {
    display: none;
}

.rules-accordion summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
}

.rules-accordion[open] summary::after {
    content: '−';
}

.rules-content {
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
    color: rgba(254, 243, 199, 0.7);
}

.rules-content p {
    margin-bottom: 0.75rem;
}

/* Status Message Display */
.status-message {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: #fff;
    border: 3px dashed var(--purple);
    max-width: 600px;
    margin: 0 auto 3rem;
    box-shadow: 8px 8px 0px var(--teal);
}

.status-message h3 {
    font-size: 2.5rem;
    color: var(--teal-dark);
    margin-bottom: 1rem;
}

.status-message p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Powered By */
#wbx-powered-by-slot {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}
