*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

/* Background layer */
.bg {
    position: fixed;
    inset: 0;
    background-image: url('../../image/bg/reservation.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: slowZoom 30s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

/* Dark overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.25) 0%,
            rgba(0, 0, 0, 0.45) 50%,
            rgba(0, 0, 0, 0.60) 100%);
    z-index: 1;
}

/* Fade-in wrapper */
.screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: fadeIn 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #ffffff;
    user-select: none;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clock */
.clock {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 200;
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow:
        0 2px 40px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(255, 255, 255, 0.08);
    margin-bottom: 0.1em;
}

/* Date */
.date {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.7);
    opacity: 0.92;
    margin-bottom: 2.5em;
}

/* Divider */
.divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin-bottom: 2em;
}

/* Title */
.title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.55;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

/* Subtitle */
.subtitle {
    font-size: clamp(0.65rem, 1.4vw, 0.82rem);
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.55;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 0.75;
    }
}

/* Bottom status bar (Windows-like) */
.statusbar {
    position: fixed;
    bottom: 32px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px;
    gap: 18px;
    z-index: 3;
    opacity: 0;
    animation: fadeIn 1.4s 0.5s forwards;
}

.status-icon {
    width: 18px;
    height: 18px;
    opacity: 0.75;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

/* Fade-out class applied on click */
.fade-out {
    opacity: 0 !important;
    transform: translateY(-10px);
}

.bg.fade-out,
.overlay.fade-out {
    opacity: 0 !important;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}