:root {
    --st-red: #e71d23;
    --st-red-glow: #ff0000;
    --st-black: #050505;
    --st-dark-blue: #0a0c1f;
    --st-purple: #240b36;
    --st-upside-down: #1a1a1a;
    --font-main: 'Benguiat', 'serif'; /* Closest web safe or fallback */
    --font-mono: 'Courier New', monospace;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 64px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@font-face {
    font-family: 'Benguiat';
    src: local('Times New Roman'); /* Placeholder for specific ST font */
}

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

body {
    background-color: var(--st-black);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.upside-down-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--st-purple) 0%, var(--st-black) 100%);
    z-index: -2;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #ffffff33 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    z-index: -1;
    animation: floating 20s linear infinite;
}

@keyframes floating {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

/* Stranger Things Typography */
.st-title {
    font-family: 'Benguiat', serif;
    text-transform: uppercase;
    color: var(--st-red);
    text-shadow: 0 0 10px var(--st-red-glow), 0 0 20px var(--st-red-glow);
    letter-spacing: -2px;
    font-size: clamp(3rem, 10vw, 6rem);
    text-align: center;
    line-height: 0.8;
    margin-bottom: var(--space-lg);
    border-top: 4px solid var(--st-red);
    border-bottom: 4px solid var(--st-red);
    padding: 20px 0;
    position: relative;
}

.st-title::before, .st-title::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--st-red);
    box-shadow: 0 0 15px var(--st-red-glow);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
}

main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    text-align: center;
    width: 100%;
    padding: var(--space-xl) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-tag {
    font-family: var(--font-mono);
    color: var(--st-red);
    letter-spacing: 4px;
    margin-bottom: var(--space-md);
    font-weight: bold;
}

/* Character Dynamic Section */
.character-reveal {
    position: relative;
    width: 300px;
    height: 400px;
    margin: var(--space-xl) 0;
}

.placeholder-avatar.st-char {
    width: 100%;
    height: 100%;
    border: 3px solid var(--st-red);
    box-shadow: 0 0 30px rgba(231, 29, 35, 0.3);
    position: relative;
    overflow: hidden;
}

.placeholder-avatar.st-char::after {
    content: 'DECRYPTING IDENTITY...';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--st-red);
    font-family: var(--font-mono);
}

/* Countdown */
.countdown-container {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.timer-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--st-red);
    padding: var(--space-md);
    min-width: 80px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.timer-val {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--st-red);
    text-shadow: 0 0 10px var(--st-red);
}

.timer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* Event Grid */
.events-section {
    width: 100%;
    margin-top: var(--space-xl);
}

.section-label {
    font-family: var(--font-mono);
    color: var(--st-red);
    margin-bottom: var(--space-lg);
    text-align: center;
    font-size: 1.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.event-card {
    background: rgba(10, 12, 31, 0.8);
    border-left: 4px solid var(--st-red);
    padding: var(--space-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.event-card:hover {
    transform: translateX(10px);
    background: rgba(231, 29, 35, 0.1);
}

.event-card h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
    color: #eee;
}

.event-card p {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Invitation Variations */
.invite-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: var(--space-xl);
}

.btn-toggle {
    background: transparent;
    border: 1px solid var(--st-red);
    color: var(--st-red);
    padding: 10px 20px;
    text-decoration: none;
    font-family: var(--font-mono);
    transition: var(--transition);
}

.btn-toggle.active {
    background: var(--st-red);
    color: white;
}

/* Decorative Elements */
.demogorgon-shadow {
    position: fixed;
    bottom: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

.vines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 10%, rgba(231, 29, 35, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(231, 29, 35, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Footer */
footer {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    text-align: center;
    border-top: 1px solid rgba(231, 29, 35, 0.2);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Formal Invitation Styles */
.formal-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(231, 29, 35, 0.3);
    padding: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    backdrop-filter: blur(10px);
}

.seal {
    width: 80px;
    height: 80px;
    border: 2px solid var(--st-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 0.6rem;
    text-align: center;
    color: var(--st-red);
    font-weight: bold;
    text-transform: uppercase;
}

.formal-body {
    font-family: serif;
    font-size: 1.2rem;
    line-height: 2;
    color: #ccc;
}

.formal-title {
    font-family: var(--font-mono);
    color: var(--st-red);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.formal-details {
    margin: 40px 0;
    border-top: 1px solid rgba(231, 29, 35, 0.2);
    border-bottom: 1px solid rgba(231, 29, 35, 0.2);
    padding: 20px 0;
}

.formal-footer {
    margin-top: 40px;
    text-align: right;
}

/* Utility Classes */
.text-center { text-align: center; }
.margin-bottom-lg { margin-bottom: var(--space-lg); }
.margin-top-xl { margin-top: var(--space-xl); }
.mono { font-family: var(--font-mono); }
.st-red { color: var(--st-red); }
.opacity-low { opacity: 0.6; }

/* Responsive */
@media (max-width: 768px) {
    .st-title { font-size: 2.5rem; }
    .countdown-container { gap: 5px; }
    .timer-box { min-width: 65px; padding: 10px; }
    .timer-val { font-size: 1.5rem; }
}