body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.window-frame {
    width: 750px;
    height: 800px;
    background: transparent;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.window-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(224, 224, 224, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.window-controls {
    display: flex;
    gap: 7px;
    position: absolute;
    left: 10px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.close {
    background-color: #ff5f56;
}

.minimize {
    background-color: #ffbd2e;
}

.maximize {
    background-color: #27c93f;
}

.window-title {
    flex-grow: 1;
    text-align: center;
    font-weight: 600;
    color: #4a4a4a;
    font-size: 14px;
}

.window-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.window-content::-webkit-scrollbar {
    display: none;
}

.window-content.show-scrollbar {
    scrollbar-width: auto;
    -ms-overflow-style: auto;
}

.window-content.show-scrollbar::-webkit-scrollbar {
    display: block;
    width: 8px;
}

.window-content.show-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.window-content.show-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff69b4, #ff1493);
    border-radius: 4px;
}

.window-footer {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #666;
    text-align: center;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.source-credit {
    position: absolute;
    right: 20px;
    bottom: 15px;
    font-weight: bold;
    font-size: 14px;
    color: #ff1493;
    text-shadow: 0 0 5px rgba(255, 20, 147, 0.3);
}

/* Container cho nút Start */
.start-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    transition: opacity 0.5s ease;
}

/* Nút START với màu hồng trắng đan xen */
.pink-white-button {
    padding: 20px 50px;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(90deg, #ff69b4 0%, #ffffff 25%, #ff69b4 50%, #ffffff 75%, #ff69b4 100%);
    background-size: 200% 100%;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
    transition: all 0.3s ease;
    animation: pink-white-stripes 2s linear infinite;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.8), 0 0 20px rgba(255, 20, 147, 0.6);
}

@keyframes pink-white-stripes {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.pink-white-button:hover:not(.disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.8);
}

.pink-white-button:active:not(.disabled) {
    transform: scale(0.98);
}

/* Nút bị vô hiệu hóa */
.pink-white-button.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    animation: none;
    background: #ccc;
}

.pink-white-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Bộ đếm ngược */
.countdown-timer {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #ff1493;
    text-align: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
    animation: pulse-timer 2s ease-in-out infinite;
}

@keyframes pulse-timer {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 25px rgba(255, 20, 147, 0.5);
    }
}

/* Nút random wish */
.random-wish-btn {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
    transition: all 0.3s ease;
    animation: float-btn 3s ease-in-out infinite;
}

@keyframes float-btn {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.random-wish-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6);
}

.random-wish-btn:active {
    transform: scale(0.98);
}

/* Tin nhắn wish ngẫu nhiên */
.random-wish-message {
    font-size: 18px;
    font-weight: 600;
    color: #ff1493;
    text-align: center;
    padding: 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
    animation: fadeInWish 0.5s ease;
}

@keyframes fadeInWish {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Container cho nội dung lời chúc */
.message-container {
    padding: 20px;
    min-height: 300px;
}

.message-container p {
    margin: 10px 0;
    line-height: 1.8;
    font-size: 16px;
}

.completed-line {
    color: #ff1493;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 20, 147, 0.3);
}

.current-line {
    color: #ff1493;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

.typing-text {
    background: linear-gradient(90deg, #ff69b4, #ffffff, #ff1493);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 2s ease infinite;
    font-weight: 600;
    text-shadow: none;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 200% center;
    }
    100% {
        background-position: 0% center;
    }
}

.highlight {
    font-size: 18px;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 20, 147, 0.8), 0 0 30px rgba(255, 105, 180, 0.5);
    }
}

.completed-line {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popup hiển thị lời chúc khi click chuột */
.wish-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 240, 245, 0.95));
    padding: 25px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.4), 0 0 60px rgba(255, 105, 180, 0.2);
    font-size: 20px;
    font-weight: 600;
    color: #ff1493;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 105, 180, 0.3);
    max-width: 80%;
    word-wrap: break-word;
}

.wish-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: popup-bounce 0.3s ease;
}

@keyframes popup-bounce {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Hiệu ứng phát sáng cho popup */
.wish-popup::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff69b4, #ff1493, #ff69b4);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.5;
    animation: glow-border 2s ease-in-out infinite;
}

@keyframes glow-border {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}
