html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

.font-noto {
    font-family: 'Noto Sans KR', sans-serif;
}

.oink-shadow {
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
}

.oink-shadow-selected {
    box-shadow: 4px 12px 10px -2px rgba(0, 0, 0, 0.3), 4px 12px 0px 0px rgba(0, 0, 0, 1);
}

.oink-shadow-btn {
    box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 1);
    transition: all 0.1s;
}

.oink-shadow-btn:active {
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 1);
    transform: translate(3px, 3px);
}

.text-stroke-white {
    color: #111;
    -webkit-text-stroke: 1.5px white;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

.circus-tent {
    background: repeating-linear-gradient(
        90deg,
        #ef8617,
        #ef8617 40px,
        #38237d 40px,
        #38237d 80px
    );
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fade-in 0.2s ease-out forwards;
}

.animate-bounce-in {
    animation: bounce-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-slide-up {
    animation: slide-up 0.5s ease-out forwards;
}

/* Scout Card Specifics */
.scout-card {
    transition: transform 0.2s;
    user-select: none;
    height: 8rem; /* 고정 크기로 복원하여 JS 스케일링이 정확히 작동하게 함 */
    aspect-ratio: 5 / 8;
    width: auto;
}

.scout-card:hover {
    transform: translateY(-5px);
}

.scout-card.selected {
    transform: translateY(-10px);
    box-shadow: 2px 8px 8px -2px rgba(0, 0, 0, 0.3), 2px 8px 0px 0px rgba(0, 0, 0, 1);
}

.scout-card.highlight {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(250, 204, 21, 0); }
    100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
    .scout-card {
        width: 3.5rem; /* 약 56px */
        height: 5.5rem; /* 약 88px */
        border-width: 3px;
        padding: 0.4rem;
    }
    .scout-card .text-2xl {
        font-size: 1.5rem;
    }
    .scout-card .text-sm {
        font-size: 0.875rem;
    }
    
    .oink-shadow {
        box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 1);
    }
    
    .oink-shadow-btn {
        box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 1);
    }
}

@media (max-height: 700px) {
    header.py-4 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    header h1 {
        font-size: 1.5rem !important;
    }
    #message-banner {
        min-height: 2.5rem !important;
        padding: 0.25rem !important;
    }
    #message-banner p {
        font-size: 0.875rem !important;
    }
    .scout-card {
        width: 3rem;
        height: 4.5rem;
    }
}

@media (max-height: 600px) {
    header {
        display: none !important;
    }
    .scout-card {
        width: 2.2rem;
        height: 3.4rem;
        padding: 0.15rem;
    }
    .scout-card .text-xl {
        font-size: 0.9rem;
    }
    .oink-shadow, .oink-shadow-btn {
        box-shadow: 1px 1px 0px 0px rgba(0, 0, 0, 1) !important;
    }
    #main-area {
        padding: 0.5rem !important;
    }
}
