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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000000;
    font-family: 'Outfit', sans-serif;
    position: relative;
}

/* Sender Label */
.sender-label {
    font-size: 90px;
    margin-bottom: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    animation: fade-in 2s ease forwards, shine 3s linear infinite;

    /* Shiny Text Effect */
    background: linear-gradient(to right,
            #999999 0%,
            #ffffff 20%,
            #999999 40%,
            #ffffff 60%,
            #999999 80%,
            #ffffff 100%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Interaction Hint - Hidden on desktop, shown on mobile */
.interaction-hint {
    display: none;
    position: fixed;
    bottom: 40px;
    /* Higher up on mobile */
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    /* More visible */
    font-size: 16px;
    /* Bigger */
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    pointer-events: none;
    z-index: 10;
    animation: breathe 3s ease-in-out infinite;
}

@media screen and (max-width: 768px) {
    .interaction-hint {
        display: block;
    }
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Love Stream Background */
#love-stream-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.3;
    /* Subtle background effect */
}

.love-stream-row {
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    /* Increased visibility */
    font-size: 24px;
    line-height: 1;
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    user-select: none;
    display: flex;
}

.love-unit {
    position: absolute;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    pointer-events: none;
    user-select: none;
    will-change: transform, opacity, color;
    transition: color 0.5s ease;
}

.love-unit.purple {
    color: rgba(160, 32, 240, 0.8);
    /* Vibrant purple */
    text-shadow: 0 0 8px rgba(160, 32, 240, 0.5);
}

/* Black Hole Visual */
.black-hole {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow:
        0 0 20px #000,
        0 0 40px rgba(160, 32, 240, 0.8),
        0 0 80px rgba(160, 32, 240, 0.4),
        inset 0 0 30px rgba(160, 32, 240, 1);
    pointer-events: none;
    transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1),
        height 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Accretion Disk - Glow only */
.black-hole::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160%;
    height: 160%;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
    background: radial-gradient(ellipse at center, rgba(160, 32, 240, 0.4) 0%, transparent 70%);
    box-shadow: 0 0 30px rgba(160, 32, 240, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.black-hole.active {
    width: 60px;
    height: 60px;
}

.black-hole.active::after {
    opacity: 1;
    animation: rotate-disk 1.5s linear infinite;
}

@keyframes rotate-disk {
    from {
        transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg);
    }
}


/* Floating hearts background */
.hearts-container {
    display: none;
}

.heart {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: float-up 6s ease-in infinite;
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    font-size: 16px;
}

.heart:nth-child(2) {
    left: 25%;
    animation-delay: 2s;
    font-size: 24px;
}

.heart:nth-child(3) {
    left: 40%;
    animation-delay: 4s;
    font-size: 18px;
}

.heart:nth-child(4) {
    left: 55%;
    animation-delay: 1s;
    font-size: 22px;
}

.heart:nth-child(5) {
    left: 70%;
    animation-delay: 3s;
    font-size: 20px;
}

.heart:nth-child(6) {
    left: 85%;
    animation-delay: 5s;
    font-size: 16px;
}

@keyframes float-up {
    0% {
        bottom: -50px;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }

    50% {
        opacity: 0.6;
        transform: translateX(20px) rotate(180deg);
    }

    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(-20px) rotate(360deg);
    }
}

/* Envelope Container */
.envelope-wrapper {
    position: relative;
    z-index: 10;
}

@keyframes envelope-entry {
    0% {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }

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

.envelope {
    width: 200px;
    height: 140px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.envelope:hover {
    transform: translateY(-10px) scale(1.05);
}

/* Envelope Back */
.envelope-back {
    width: 100%;
    height: 100%;
    background: #ffc9d9;
    border-radius: 8px;
    position: absolute;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.15);
}

/* Envelope Flap */
.envelope-flap {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-top: 70px solid #ffaac4;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top;
    z-index: 3;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    transition: transform 0.6s ease;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));
}

/* Flap pattern overlay - removed for plain white look */

/* Envelope Front Flaps (bottom triangles) */
.envelope-front-left,
.envelope-front-right {
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    z-index: 2;
}

.envelope-front-left {
    border-left: 100px solid #ffe0e9;
    border-top: 70px solid transparent;
    border-bottom: 70px solid transparent;
    left: 0;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.25));
}

.envelope-front-right {
    border-right: 100px solid #ffe0e9;
    border-top: 70px solid transparent;
    border-bottom: 70px solid transparent;
    right: 0;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.25));
}

/* Wax Seal Stamp */
.ribbon-stamp {
    position: absolute;
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 30% 30%, #ff9aad, #ff6b88);
    border-radius: 50%;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    box-shadow:
        0 4px 15px rgba(255, 107, 136, 0.4),
        inset 0 -2px 8px rgba(0, 0, 0, 0.15),
        inset 0 2px 5px rgba(255, 255, 255, 0.4);
    border: 3px solid #ff528c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Wax drips around seal */
.ribbon-stamp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    box-shadow:
        0 0 0 3px rgba(255, 107, 136, 0.25),
        0 0 0 6px rgba(255, 107, 136, 0.12);
}

/* Embossed pattern in center */
.ribbon-stamp::after {
    content: '♥';
    position: absolute;
    font-size: 16px;
    color: rgba(255, 82, 140, 0.6);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5),
        0 -1px 0 rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

/* Envelope Label/Seal - hidden */
.envelope-seal {
    display: none;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Floating particles */
.particle {
    display: none;
}

.particle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 40%;
    left: 85%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 90%;
    animation-delay: 1.5s;
}

@keyframes particle-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 1;
    }
}

/* Glow effect removed for minimal look */

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media screen and (max-width: 768px) {
    .sender-label {
        font-size: 12vw;
        /* Scales with screen width */
        margin-bottom: 60px;
        letter-spacing: 2px;
    }

    .envelope {
        transform: scale(0.8);
        /* "Zoom out" effect for the envelope */
    }

    .interaction-hint {
        bottom: 20px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .sender-label {
        font-size: 14vw;
        margin-bottom: 40px;
    }

    .envelope {
        transform: scale(0.7);
    }
}

/* Landscape mode optimization for phones */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .sender-label {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .envelope {
        transform: scale(0.6);
    }

    .interaction-hint {
        display: none;
        /* Hide hint in landscape to save space */
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Add active state for touch */
    .envelope:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Disable hover animation on touch devices */
    .envelope:hover {
        transform: none;
    }

    /* Add tap feedback */
    .envelope {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}