* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f0f23 100%);
    --accent: #ffb6c1;
    --accent-light: #ffd1dc;
    --accent-dark: #ff8fa3;
    --pink: #ff6b9d;
    --pink-light: #ff8fb3;
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.8);
    --shadow: 0 0 30px rgba(255, 182, 193, 0.3);
    --photo-size: 340px;
    --photo-radius: 20px;
    --btn-radius: 50px;
    --font: 'Comfortaa', cursive;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg-gradient);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
}

#app {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}


/* Главное фото с розовой неоновой обводкой */
.main-photo {
    width: auto;
    max-width: 90vw;
    max-height: 50vh;
    object-fit: contain;
    border-radius: var(--photo-radius);
    border: 3px solid var(--pink);
    box-shadow: 0 0 30px var(--pink), 0 0 60px rgba(255, 107, 157, 0.3);
    margin-bottom: 25px;
}

.cat-photo,
.massage-photo,
.gameover-photo {
    width: var(--photo-size);
    max-width: 90vw;
    height: auto;
    border-radius: var(--photo-radius);
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
}

.massage-photo {
    margin-bottom: 40px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-small {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text);
    line-height: 1.4;
}

.subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 20px;
    font-style: italic;
}

.love-note {
    font-size: 1.3rem;
    color: var(--accent-light);
    margin-top: 30px;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.buttons-vertical {
    flex-direction: column;
    width: 100%;
}

.btn {
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 35px;
    border: none;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn:hover,
.btn:active {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent);
}

.btn-no,
.btn-option,
.btn-massage {
    background: rgba(128, 128, 128, 0.15);
    color: var(--text);
    border: 2px solid rgba(128, 128, 128, 0.3);
}

.btn-no:hover,
.btn-no:active,
.btn-option:hover,
.btn-option:active,
.btn-massage:hover,
.btn-massage:active {
    background: rgba(128, 128, 128, 0.25);
    border-color: var(--accent);
    box-shadow: none;
    transform: scale(1.02);
}

.btn-option {
    width: 100%;
}

.btn-massage {
    margin-top: 20px;
}

.btn-back {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.2);
    border: 2px solid rgba(128, 128, 128, 0.3);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.btn-back:hover,
.btn-back:active {
    background: rgba(128, 128, 128, 0.3);
    transform: scale(1.1);
}

@supports (padding: env(safe-area-inset-top)) {
    .btn-back {
        top: calc(20px + env(safe-area-inset-top));
    }

    .content {
        padding-top: env(safe-area-inset-top);
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}