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

body {
    font-family: 'Segoe UI', 'Poppins', system-ui, -apple-system, sans-serif;
    background: linear-gradient(145deg, #0a1a2a 0%, #031020 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 480px;
}

.card {
    background: rgba(15, 20, 30, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 30px 24px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: all 0.3s ease;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.sub {
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 30px;
    border-bottom: 1px dashed #2a4a5a;
    display: inline-block;
    padding-bottom: 5px;
}

.input-field {
    display: flex;
    align-items: center;
    background: #1a2a35;
    border-radius: 60px;
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid #2a5a6a;
    transition: all 0.2s;
}

.input-field:focus-within {
    border-color: #0ff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.input-field span {
    font-size: 1.4rem;
    margin-right: 12px;
    color: #0ff;
}

.input-field input {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    width: 100%;
    outline: none;
    font-family: monospace;
}

.input-field input::placeholder {
    color: #8aa;
}

.btn {
    background: linear-gradient(90deg, #005c6e, #0099b3);
    border: none;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 14px;
    border-radius: 60px;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0, 160, 180, 0.3);
    margin-bottom: 20px;
}

.btn:hover {
    transform: scale(1.02);
    background: linear-gradient(90deg, #00758a, #00b3cc);
    box-shadow: 0 6px 18px rgba(0, 200, 220, 0.4);
}

.gift-page {
    display: none;
}

.gift-message {
    font-size: 1.1rem;
    margin: 20px 0;
    line-height: 1.5;
    color: #ddd;
}

.highlight {
    color: #0ff;
    font-weight: bold;
    font-size: 1.2rem;
    background: rgba(0, 255, 255, 0.1);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 40px;
    margin: 5px;
}

.floating-gifts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: none;
}

.floating-gifts.active {
    display: block;
}

.gift-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    animation: floatUp 6s linear forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

.sparkle {
    position: fixed;
    width: 5px;
    height: 5px;
    background: #0ff;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleAnim 1s ease-out forwards;
}

@keyframes sparkleAnim {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #0ff;
    pointer-events: none;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.replay-btn {
    margin-top: 20px;
    background: linear-gradient(90deg, #2a6f7a, #1e5a66);
}

.replay-btn:hover {
    background: linear-gradient(90deg, #358a99, #26707e);
}