:root {
    --bg-pink: #ffe6ea;
    --text-dark: #2c3e50;
    --btn-color: #27ae60;
    --btn-hover: #2ecc71;
    --btn-surrender: #e74c3c;
}

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

body,
html {
    width: 100%;
    height: 100dvh;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    overflow: hidden;
    background-color: var(--bg-pink);
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
}

.stage {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    padding: 20px;
    text-align: center;
}

.stage.active {
    opacity: 1;
    pointer-events: all;
}

.stage.hidden {
    display: none;
}

/* Decoy Stage Styles */
.title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: #e84393;
    margin-bottom: 10px;
}

.subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
    color: #636e72;
    margin-bottom: 5px;
}

.subtitle.fade {
    color: #b2bec3;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.button-area {
    position: relative;
    width: 100%;
    height: 50vh;
    /* Vùng cho nút bấm nhảy múa */
    max-width: 500px;
}

.tricky-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    background-color: var(--btn-color);
    border: none;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.4);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    user-select: none;
}

.tricky-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.tricky-btn.surrender {
    background-color: var(--btn-surrender);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.4);
    animation: shake 0.5s infinite alternate;
}

.taunt-text {
    margin-top: 20px;
    font-weight: bold;
    color: #d63031;
    font-size: 1.2rem;
    height: 20px;
    transition: opacity 0.3s;
}

.taunt-text.hidden {
    opacity: 0;
}

/* Surprise Stage Styles */
#surprise-stage {
    background: linear-gradient(135deg, #fce38a, #f38181);
}

.huge-text {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 3px 3px 0 #d63031, -1px -1px 0 #d63031, 1px -1px 0 #d63031, -1px 1px 0 #d63031, 1px 1px 0 #d63031;
    margin-bottom: 20px;
}

.bounce {
    animation: bounceIn 1s cubic-bezier(0.28, 0.84, 0.42, 1);
}

.meme-container {
    width: clamp(250px, 80vw, 400px);
    height: clamp(250px, 80vw, 400px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    background: #fff;
    border: 8px solid #fff;
    transform: rotate(-3deg);
    transition: transform 0.3s;
}

.meme-container:hover {
    transform: rotate(2deg) scale(1.05);
}

#meme-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    max-width: 90%;
    width: 500px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    line-height: 1.5;
}

.message-box p {
    margin-bottom: 10px;
}

.message-box p:last-child {
    margin-bottom: 0;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }

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

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

@keyframes shake {
    0% {
        transform: translate(-50%, -50%) rotate(-2deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(2deg);
    }
}