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

body {
    min-height: 100vh;
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 50%, #0f0f1a 100%);
    font-family: 'Playfair Display', serif;
    overflow: hidden;
    position: relative;
}

/* Subtle pub ambiance overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 193, 7, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 69, 19, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    pointer-events: none;
}

.title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #d4a843;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(212, 168, 67, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 30px rgba(212, 168, 67, 0.3); }
    to { text-shadow: 0 0 50px rgba(212, 168, 67, 0.5), 0 0 80px rgba(212, 168, 67, 0.2); }
}

.subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #8b7355;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    font-weight: 400;
}

.countdown {
    display: flex;
    gap: clamp(1rem, 4vw, 3rem);
    margin-bottom: 3rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 700;
    color: #fef3c7;
    text-shadow: 
        0 0 40px rgba(254, 243, 199, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1;
    min-width: 2ch;
    text-align: center;
    background: linear-gradient(180deg, #fef3c7 0%, #d4a843 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.time-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.6rem, 1.5vw, 0.9rem);
    color: #6b5b4f;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
}

.separator {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(3rem, 12vw, 8rem);
    color: #d4a843;
    opacity: 0.5;
    animation: blink 1s ease-in-out infinite;
    align-self: flex-start;
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.2; }
}

.message {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #a08060;
    font-style: italic;
    text-align: center;
    max-width: 600px;
}

.celebration {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.celebration.active {
    display: flex;
}

.celebration-title {
    font-size: clamp(2rem, 8vw, 5rem);
    color: #fef3c7;
    text-shadow: 0 0 60px rgba(254, 243, 199, 0.6);
    animation: celebrate 0.5s ease-in-out infinite alternate;
}

@keyframes celebrate {
    from { transform: scale(1) rotate(-2deg); }
    to { transform: scale(1.05) rotate(2deg); }
}

.dry-january-check {
    margin-top: 3rem;
    text-align: center;
}

.dry-january-check .question {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #8b7355;
    font-style: italic;
}

.dry-january-check .answer {
    display: block;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    margin-top: 0.5rem;
    color: #d4a843;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dry-january-check .answer.yes {
    color: #2ecc71;
    animation: pulse-yes 1s ease-in-out infinite;
}

@keyframes pulse-yes {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Floating Guinness Pints */
.pint-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
}

.pint, .coffee, .manu {
    position: absolute;
    animation: float linear infinite;
    opacity: 0.85;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
}

.pint {
    pointer-events: none;
}

.coffee, .manu {
    pointer-events: all;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    z-index: 100;
}

.manu {
    border-radius: 50%;
    overflow: hidden;
}

.manu:hover {
    transform: scale(1.2);
}

.manu:active {
    transform: scale(0.95);
}

.manu img {
    border-radius: 50%;
}

.coffee:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 10px 30px rgba(139, 90, 43, 0.5));
}

.coffee:active {
    transform: scale(0.95);
}

.coffee.playing {
    animation: float linear infinite, pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3)); }
    50% { filter: drop-shadow(0 0 30px rgba(255, 200, 100, 0.8)); }
}

@keyframes float {
    0% {
        transform: translateY(110vh) rotate(0deg);
    }
    100% {
        transform: translateY(-150px) rotate(360deg);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.9;
    }
    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

.pint.clicked {
    animation: floatUp linear forwards;
}

.pint img, .coffee img, .manu img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Completed state */
.countdown-wrapper.completed .countdown {
    display: none;
}

.countdown-wrapper.completed .celebration {
    display: flex;
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .title {
        letter-spacing: 0.1em;
        text-align: center;
        line-height: 1.3;
        margin-bottom: 2rem;
    }

    .countdown {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .time-value {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }

    .separator {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }

    .time-label {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
    }
}

/* Very small screens - stack the countdown */
@media (max-width: 380px) {
    .countdown {
        flex-direction: column;
        gap: 1rem;
    }

    .separator {
        display: none;
    }

    .time-block {
        flex-direction: row;
        gap: 1rem;
        align-items: baseline;
    }

    .time-value {
        font-size: 3rem;
    }

    .time-label {
        font-size: 0.8rem;
        margin-top: 0;
    }
}

/* Celebration Effects */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 1000;
    will-change: transform, opacity;
    animation: confetti-fall linear forwards;
}

.confetti.square {
    border-radius: 2px;
}

.confetti.circle {
    border-radius: 50%;
}

.confetti.rectangle {
    width: 8px;
    height: 14px;
    border-radius: 1px;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

/* Falling Guinness for celebration */
.pint.falling {
    animation: guinness-fall linear forwards;
    will-change: transform, opacity;
}

@keyframes guinness-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}
