:root {
    --color-primary: #FBBF24;
    --color-secondary: #EC4899;
    --color-background: #1a0b2e;
    --color-dark: #111827;
    --color-light: #F9FAFB;
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-light);
    background-color: var(--color-background);
    background-image: url('https://offertabs.s3.amazonaws.com/offer/iucb4w/69c0648e165816.40849254.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    top: -150px;
    left: -150px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--color-secondary);
    bottom: -100px;
    right: -100px;
}

.container {
    width: 100%;
    max-width: 550px;
    background: rgba(26, 11, 46, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.main-header {
    margin-bottom: 2rem;
}

.main-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.75rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.slot-machine-container {
    position: relative;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.slot-machine {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: rgba(0,0,0,0.3);
    border: 6px solid;
    border-image: linear-gradient(135deg, #ffd700, #f7971e) 1;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.reel {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reel-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 4s cubic-bezier(0.25, 1, 0.5, 1);
}

.symbol {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    flex-shrink: 0;
}

.slot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 20px;
    box-shadow: inset 0 20px 20px -10px var(--color-background),
                inset 0 -20px 20px -10px var(--color-background);
}


.entry-form .form-instructions {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

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

.entry-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--color-light);
    transition: all 0.2s ease;
}

.entry-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.entry-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.4);
}

.spin-button {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-dark);
    background: linear-gradient(135deg, var(--color-primary), #f7971e);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

.spin-button:disabled {
    background: #999;
    cursor: wait;
    opacity: 0.7;
}


/* Result Section */
.result-card {
    padding: 2rem;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
}

.result-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}
.result-title.win {
    color: var(--color-primary);
}
.result-title.lose {
    color: #94a3b8;
}

.result-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

.prize-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.coupon-display {
    background: var(--color-light);
    color: var(--color-dark);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.coupon-qr {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    border-radius: 8px;
}
.scan-instruction {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.coupon-code-container {
    font-size: 1rem;
    background-color: #e5e7eb;
    padding: 0.5rem;
    border-radius: 6px;
}
.coupon-expiration {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.print-button {
    width: 100%;
    padding: 0.8rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    background-color: var(--color-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.print-button:hover {
    background-color: #fcd34d;
}

.error-message {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
}

.hidden {
    display: none !important;
}

/* For screen readers only */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    .container {
        padding: 2rem 1.5rem;
    }
    .main-title {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .reel {
        width: 80px;
        height: 80px;
    }
    .symbol {
        font-size: 3rem;
    }
}
