* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1810 50%, #1a0a0a 100%);
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.story-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Progress bar */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #ff8e53 100%);
    width: 20%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.progress-text {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Image container */
.image-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 20px 10px 20px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.story-image.visible {
    opacity: 1;
}

/* Story text */
.story-text {
    position: absolute;
    bottom: 250px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 700px;
    width: 90%;
    padding: 25px 35px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    font-size: 19px;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 10;
    opacity: 0;
    animation: fadeInText 0.8s ease 0.3s forwards;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Choices container */
.choices-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 90%;
    max-width: 600px;
    z-index: 20;
}

.choice-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 107, 0.4);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInChoice 0.5s ease forwards;
}

.choice-btn:nth-child(1) { animation-delay: 0.5s; }
.choice-btn:nth-child(2) { animation-delay: 0.6s; }
.choice-btn:nth-child(3) { animation-delay: 0.7s; }

@keyframes slideInChoice {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.choice-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.8);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.choice-btn:active {
    transform: translateX(3px);
}

.choice-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.choice-text {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-align: left;
    font-family: 'Segoe UI', sans-serif;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease;
}

.modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1810 100%);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 550px;
    width: 90%;
    border: 2px solid rgba(255, 107, 107, 0.5);
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.4);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    font-size: 72px;
    margin-bottom: 25px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.modal-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    font-style: italic;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    margin-bottom: 15px;
    line-height: 1.7;
    font-family: 'Segoe UI', sans-serif;
}

.modal-highlight {
    font-size: 18px;
    font-weight: 600;
    color: #ff8e53;
    margin-bottom: 20px;
}

.modal-final {
    font-size: 19px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 35px;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-button {
    padding: 18px 35px;
    border-radius: 25px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-family: 'Segoe UI', sans-serif;
}

.modal-button-confirm {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.modal-button-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.6);
}

.modal-button-leave {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-button-leave:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.modal-button:active {
    transform: translateY(0);
}

/* Fade transition */
.fade-out {
    animation: fadeOut 0.6s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .image-container {
        padding: 40px 15px 10px 15px;
    }

    .image-wrapper {
        max-width: 400px;
        height: 450px;
    }

    .story-text {
        font-size: 17px;
        padding: 20px 25px;
        bottom: 200px;
    }

    .choice-text {
        font-size: 15px;
    }

    .choice-btn {
        padding: 15px 20px;
    }

    .modal-content {
        padding: 40px 30px;
    }

    .modal-content h2 {
        font-size: 26px;
    }

    .modal-content p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .image-container {
        padding: 30px 10px 5px 10px;
    }

    .image-wrapper {
        max-width: 100%;
        height: 350px;
    }

    .story-text {
        font-size: 15px;
        padding: 18px 22px;
        max-width: 95%;
        bottom: 180px;
    }

    .choices-container {
        bottom: 15px;
        gap: 10px;
    }

    .choice-btn {
        padding: 10px 16px;
        gap: 10px;
    }

    .choice-letter {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .choice-text {
        font-size: 13px;
    }

    .modal-content {
        padding: 35px 25px;
    }

    .modal-icon {
        font-size: 56px;
    }

    .modal-content h2 {
        font-size: 24px;
    }

    .modal-content p {
        font-size: 14px;
    }

    .modal-button {
        padding: 15px 25px;
        font-size: 15px;
    }
}
