.julie-echo-page {
    width: 100%;
}

.julie-echo-stage {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.julie-echo-decor {
    position: absolute;
    inset: -50px -80px;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
}

.julie-echo-decor-img {
    position: absolute;
    width: 144px;
    height: 144px;
    object-fit: cover;
    border-radius: 14px;
    opacity: 1;
    border: 2px solid rgba(254, 144, 145, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    animation: julie-echo-decor-in 0.5s ease forwards;
}

@keyframes julie-echo-decor-in {
    from {
        opacity: 0;
        transform: scale(0.6) rotate(-8deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(var(--decor-rotate, 0deg));
    }
}

.julie-echo-game {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 10px 0 30px;
}

.julie-echo-hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.julie-echo-character,
.julie-echo-speech,
.julie-echo-controls {
    position: relative;
}

.julie-echo-character {
    z-index: 0;
    width: 320px;
    height: auto;
    object-fit: contain;
    margin-bottom: -95px;
    filter: drop-shadow(0 4px 12px rgba(255, 0, 104, 0.35));
    transition: transform 0.2s ease;
    -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 98%);
    mask-image: linear-gradient(to bottom, #000 25%, transparent 98%);
}

.julie-echo-character.talking {
    transform: scale(1.04);
}

.julie-echo-speech {
    z-index: 2;
    width: 100%;
    min-height: 100px;
    padding: 16px 20px;
    border: 2px solid rgba(254, 144, 145, 0.8);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.85);
    box-sizing: border-box;
    text-align: center;
}

.julie-echo-speech h2 {
    font-family: 'Be My Glittertine', Arial, sans-serif;
    font-size: 36px;
    font-weight: normal;
    color: #FF0068;
    margin: 0 0 8px;
}

.julie-echo-speech p {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
    min-height: 50px;
}

.julie-echo-speech p.success {
    color: #FE9091;
}

.julie-echo-speech p.error {
    color: #ff4d6d;
}

.julie-echo-buttons {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}

.julie-echo-btn {
    aspect-ratio: 1;
    border: 3px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.6);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.julie-echo-btn:hover:not(:disabled) {
    transform: scale(1.06);
    border-color: #FE9091;
}

.julie-echo-btn:disabled {
    cursor: default;
    filter: brightness(0.8);
    border-color: rgba(255, 255, 255, 0.25);
}

.julie-echo-btn.active {
    transform: scale(1.1);
    border-color: #FF0068;
    box-shadow: 0 0 20px rgba(255, 0, 104, 0.7);
}

.julie-echo-btn.wrong {
    border-color: #ff4d6d;
    box-shadow: 0 0 16px rgba(255, 77, 109, 0.8);
}

.julie-echo-btn[data-id="feet"] {
    background-image: url(../images/Echo/feet.png);
}

.julie-echo-btn[data-id="ass"] {
    background-image: url(../images/Echo/ass.png);
}

.julie-echo-btn[data-id="boobs"] {
    background-image: url(../images/Echo/boobs.png);
}

.julie-echo-btn[data-id="armpit"] {
    background-image: url(../images/Echo/armpit.png);
}

.julie-echo-controls {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.julie-echo-start {
    font-family: 'Be My Glittertine', Arial, sans-serif;
    font-size: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff0068 0%, #fe9091 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 10px 36px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.julie-echo-start:hover {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(254, 144, 145, 0.6);
}

.julie-echo-score {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 520px) {
    .julie-echo-character {
        width: 250px;
        margin-bottom: -75px;
        -webkit-mask-image: linear-gradient(to bottom, #000 22%, transparent 97%);
        mask-image: linear-gradient(to bottom, #000 22%, transparent 97%);
    }

    .julie-echo-speech h2 {
        font-size: 28px;
    }

    .julie-echo-speech p {
        font-size: 16px;
    }

    .julie-echo-buttons {
        grid-template-columns: repeat(2, 1fr);
        max-width: 280px;
    }

    .julie-echo-decor {
        inset: -30px -20px;
    }

    .julie-echo-decor-img {
        width: 112px;
        height: 112px;
    }
}
