* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cinzel', serif;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 2;
    cursor: pointer;
}

body {
    background: #1a1a1a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #d4af37;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(212, 175, 55, 0.1) 1px, transparent 1px) 0 0 / 50px 50px,
        linear-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px) 0 0 / 50px 50px;
    animation: gridScroll 20s linear infinite;
    z-index: -1;
}

@keyframes gridScroll {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    border: 2px solid #d4af37;
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.3),
        inset 0 0 20px rgba(212, 175, 55, 0.1);
    animation: fadeIn 2s ease-in-out;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(212, 175, 55, 0.1) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(212, 175, 55, 0.1) 50%, transparent 52%);
    background-size: 20px 20px;
    opacity: 0.1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 20px;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: #d4af37;
    box-shadow: 0 0 10px #d4af37;
}

.timer-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    perspective: 1000px;
}

.time-block {
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    min-width: 120px;
    border: 1px solid #d4af37;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.time-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.time-block:hover {
    transform: translateY(-5px) rotateX(10deg);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.time-block:hover::before {
    transform: translateX(100%);
}

.time-block span {
    display: block;
}

.time-block span:first-child {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.time-block .label {
    font-size: 1rem;
    opacity: 0.8;
    color: #d4af37;
}

.start-time {
    font-size: 1.2rem;
    opacity: 0.8;
    color: #d4af37;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .timer-container {
        flex-wrap: wrap;
    }
    
    .time-block {
        min-width: 100px;
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
}

.applause-container {
    margin: 2rem 0;
    text-align: center;
}

.applause-count {
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.applause-button {
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid #d4af37;
    color: #d4af37;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    position: relative;
    overflow: hidden;
}

.applause-button:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.applause-button:active {
    transform: scale(0.95);
}

.applause-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.2),
        transparent
    );
    transition: 0.5s;
}

.applause-button:hover::before {
    left: 100%;
}

.jealous-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    animation: alertPop 0.5s ease-out;
    z-index: 1000;
}

@keyframes alertPop {
    0% {
        transform: translate(-50%, -100px);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
} 