* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration, 1s) infinite var(--delay, 0s);
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    padding: 20px;
    perspective: 1000px;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 25%);
    pointer-events: none;
}

.card-container {
    position: relative;
    width: 469.5px;
    height: 752.56px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-out;
    animation: floatCard 3s ease-in-out infinite;
    z-index: 1;
    max-width: 100%;
    max-height: 90vh;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 214, 0, 0.1);
    transition: all 0.3s ease;
}

.worker-number {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateZ(20px);
    color: #FFD700;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 8px;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 2;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0) rotateX(2deg) rotateY(5deg);
    }

    50% {
        transform: translateY(-20px) rotateX(-2deg) rotateY(-5deg);
    }
}

@media (min-width: 1200px) {
    .card-container {
        transform: scale(1);
    }
}

@media (max-width: 1199px) {
    .card-container {
        transform: scale(0.9);
    }
}

@media (max-width: 992px) {
    .card-container {
        transform: scale(0.8);
        height: auto;
        aspect-ratio: 469.5/752.56;
    }
}

@media (max-width: 768px) {
    .card-container {
        width: 90vw;
        transform: scale(1);
    }

    .worker-number {
        font-size: 12px;
        padding: 6px 12px;
    }

    @keyframes floatCard {

        0%,
        100% {
            transform: translateY(0) rotateX(1deg) rotateY(2deg);
        }

        50% {
            transform: translateY(-10px) rotateX(-1deg) rotateY(-2deg);
        }
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .card-container {
        width: 95vw;
    }

    .worker-number {
        font-size: 10px;
        padding: 4px 10px;
        bottom: 10px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .card-container {
        height: 85vh;
        width: auto;
        aspect-ratio: 469.5/752.56;
    }
}

@media (max-width: 320px) {
    .card-container {
        width: 100vw;
        transform: scale(0.95);
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-container {
        animation: none;
    }

    .star {
        animation: none;
        opacity: 0.5;
    }
}

@media (prefers-color-scheme: dark) {
    .worker-number {
        background-color: rgba(0, 0, 0, 0.8);
    }
}

@media (prefers-contrast: high) {
    .worker-number {
        background-color: black;
        color: white;
        text-shadow: none;
    }
}