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

body {
    font-family: 'Inter', 'Arial', sans-serif;
    overflow: hidden;
    cursor: crosshair;
}

/* Основной контент сайта (скрыт под бумагой) */
.main-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #ff8787 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    overflow: hidden;
    /* Улучшенные тени */
    box-shadow:
        inset 0 0 100px rgba(0, 0, 0, 0.1),
        inset 0 0 200px rgba(0, 0, 0, 0.05),
        0 0 50px rgba(0, 0, 0, 0.2);
}

/* Эффект складок на фоне */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/paper-folds.png');
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
}

/* Узор на фоне с реальной текстурой */
.main-content-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url('images/paper-texture.png'),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 1px,
            rgba(255, 255, 255, 0.03) 1px,
            rgba(255, 255, 255, 0.03) 2px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 1px,
            rgba(255, 255, 255, 0.03) 1px,
            rgba(255, 255, 255, 0.03) 2px);
    background-size:
        cover,
        100% 100%,
        100% 100%;
    background-blend-mode: overlay, normal, normal;
    background-position: center;
    pointer-events: none;
    opacity: 0.9;
    z-index: 1;
}

/* Блеск на фоне */
.main-content-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 30%,
            transparent 70%,
            rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    animation: shineMove 3s ease-in-out infinite;
    z-index: 1;
}

.main-content.visible {
    opacity: 1;
    z-index: 10;
}

.content-wrapper {
    text-align: center;
    color: #ff0000;
    padding: 40px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.content-wrapper h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 900;
    color: #ff0000;
    -webkit-text-stroke: 2px #000000;
    text-stroke: 2px #000000;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.7),
        0 2px 15px rgba(255, 255, 255, 0.8),
        0 4px 25px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    font-style: italic;
    animation: celebrateTitle 1.2s ease-out forwards,
        titlePulse 2s ease-in-out 1.5s infinite;
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
}

@keyframes celebrateTitle {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg) translateY(-50px);
    }

    50% {
        transform: scale(1.1) rotate(5deg) translateY(0);
    }

    70% {
        transform: scale(0.95) rotate(-2deg);
    }

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

@keyframes titlePulse {

    0%,
    100% {
        transform: scale(1);
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.9),
            0 0 20px rgba(255, 255, 255, 0.7),
            0 2px 15px rgba(255, 255, 255, 0.8),
            0 4px 25px rgba(255, 255, 255, 0.6),
            0 0 40px rgba(255, 255, 255, 0.4);
    }

    50% {
        transform: scale(1.05);
        text-shadow:
            0 0 15px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 255, 255, 0.8),
            0 2px 20px rgba(255, 255, 255, 0.9),
            0 4px 35px rgba(255, 255, 255, 0.7),
            0 0 60px rgba(255, 255, 255, 0.5);
    }
}

.content-wrapper p {
    font-size: 24px;
    margin: 10px 0;
    font-weight: 400;
    color: #ff0000;
    -webkit-text-stroke: 1.5px #000000;
    text-stroke: 1.5px #000000;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 15px rgba(255, 255, 255, 0.7),
        0 2px 12px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 255, 255, 0.5);
    opacity: 0;
    animation: celebrateText 1s ease-out 0.4s forwards,
        textFloat 3s ease-in-out 1.5s infinite;
    transform: translateY(30px);
}

@keyframes celebrateText {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

    60% {
        transform: translateY(-5px) scale(1.05);
    }

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

@keyframes textFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.emoji-animated {
    display: inline-block;
    animation: emojiBounce 1.5s ease-in-out 1.5s infinite;
}

@keyframes emojiBounce {

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

    25% {
        transform: translateY(-10px) rotate(-15deg) scale(1.2);
    }

    50% {
        transform: translateY(-5px) rotate(15deg) scale(1.1);
    }

    75% {
        transform: translateY(-8px) rotate(-10deg) scale(1.15);
    }
}

.image-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image {
    max-width: 100%;
    max-height: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-image:hover {
    transform: scale(1.05);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 0, 0, 0.3);
}

.buy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    box-shadow:
        0 5px 20px rgba(102, 126, 234, 0.4),
        0 0 30px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.pumpfun-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.buy-link:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(102, 126, 234, 0.5),
        0 0 40px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.buy-link:active {
    transform: translateY(0);
}

/* Подарочная бумага покрывающая весь экран */
.wrapping-paper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #ff8787 100%);
    z-index: 5;
    overflow: hidden;
    cursor: crosshair;
    user-select: none;
    /* Улучшенные тени */
    box-shadow:
        inset 0 0 100px rgba(0, 0, 0, 0.1),
        inset 0 0 200px rgba(0, 0, 0, 0.05),
        0 0 50px rgba(0, 0, 0, 0.2),
        0 10px 60px rgba(0, 0, 0, 0.25),
        0 20px 80px rgba(0, 0, 0, 0.15);
    /* Добавляем глубину */
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.3));
}

.wrapping-paper.fade-out {
    opacity: 0;
    transition: opacity 1.5s ease-out;
    pointer-events: none;
}

/* Эффект складок на бумаге */
.wrapping-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/paper-folds.png');
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: multiply;
}

/* Узор на подарочной бумаге с реальной текстурой */
.paper-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url('images/paper-texture.png'),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 1px,
            rgba(255, 255, 255, 0.03) 1px,
            rgba(255, 255, 255, 0.03) 2px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 1px,
            rgba(255, 255, 255, 0.03) 1px,
            rgba(255, 255, 255, 0.03) 2px);
    background-size:
        cover,
        100% 100%,
        100% 100%;
    background-blend-mode: overlay, normal, normal;
    background-position: center;
    pointer-events: none;
    opacity: 0.9;
}

/* Блеск на бумаге */
.paper-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 30%,
            transparent 70%,
            rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    animation: shineMove 3s ease-in-out infinite;
}

@keyframes shineMove {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* Ленты на бумаге */
.ribbon {
    position: absolute;
    background: linear-gradient(180deg, #ffd93d 0%, #ffb347 50%, #ffd93d 100%);
    box-shadow:
        0 0 20px rgba(255, 217, 61, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 6;
}

.ribbon-horizontal {
    width: 100%;
    height: 40px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #ffd93d 0%, #ffb347 50%, #ffd93d 100%);
}

.ribbon-vertical {
    width: 40px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* Бант в центре */
.bow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 100px;
    z-index: 7;
    pointer-events: none;
    animation: bowPulse 2s ease-in-out infinite;
}

@keyframes bowPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.bow-left,
.bow-right {
    position: absolute;
    width: 60px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50% 50% 50% 0;
    top: 0;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset -5px -5px 10px rgba(0, 0, 0, 0.2),
        0 12px 30px rgba(0, 0, 0, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.25),
        inset 0 2px 5px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
}

.bow-left {
    left: 0;
    transform: rotate(-45deg);
}

.bow-right {
    right: 0;
    transform: rotate(45deg) scaleX(-1);
}

.bow-center {
    position: absolute;
    width: 30px;
    height: 50px;
    background: linear-gradient(180deg, #ff8787 0%, #ff6b6b 100%);
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    border-radius: 8px;
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.2),
        0 6px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.2),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}

.bow.fade-out {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(360deg);
    transition: all 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: blur(5px);
}

/* Подсказка */
.hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff0000;
    font-size: 20px;
    text-align: center;
    opacity: 0.95;
    font-weight: 600;
    letter-spacing: 0.5px;
    /* Многослойная тень для лучшей читаемости */
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        0 2px 15px rgba(0, 0, 0, 0.6),
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 0, 0, 0.3);
    /* Полупрозрачный фон для дополнительного контраста */
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 24px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 8;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

.hint.hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Canvas для эффекта разрыва */
#tearCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
}

/* Частицы бумаги */
.paper-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.paper-particle {
    position: absolute;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 2px;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

/* Улучшенные частицы с разными формами */
.paper-particle.particle-circle {
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

.paper-particle.particle-rect {
    border-radius: 2px;
    transform-origin: center;
}

.paper-particle.particle-triangle {
    width: 0;
    height: 0;
    border-style: solid;
    background: none !important;
}

/* Эффект разрыва (дыра в бумаге) */
.tear-hole {
    position: absolute;
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
    z-index: 4;
}

/* Эффект свечения при наведении */
.wrapping-paper:hover .paper-pattern {
    filter: brightness(1.1);
}

/* Анимация для частиц */
@keyframes particleFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) brightness(1);
    }

    50% {
        opacity: 0.8;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)) brightness(0.9);
    }

    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.2);
        filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)) brightness(0.7);
    }
}

/* Добавьте гравитацию для частиц */
@keyframes particleFlyWithGravity {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(var(--tx), calc(var(--ty) + 200px)) rotate(var(--rot)) scale(0.2);
    }
}

/* Эффект вспышки при разрыве */
.tear-flash {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 30%,
            transparent 70%);
    pointer-events: none;
    z-index: 11;
    animation: flashExpand 0.4s ease-out forwards;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

@keyframes flashExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Ripple effect */
@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
        border-width: 3px;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
        border-width: 1px;
    }
}

/* Эффект разрыва с трещинами */
.tear-crack {
    position: absolute;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
}