* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #1a1a2e, #0f0f1a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 20px;
}

.story-card {
    width: 100%;
    max-width: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    animation: fadeUp 0.7s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
}

header span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.story {
    max-height: 45vh;
    overflow-y: auto;
    padding-right: 8px;
}

.story h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.story p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.story p.show {
    opacity: 1;
}

.story::-webkit-scrollbar {
    width: 4px;
}

.story::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

select, button {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

select {
    flex: 1 1 100%;
}

button {
    flex: 1 1 calc(50% - 8px);
}

button:hover, select:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6rem;
    }

    header span {
        font-size: 0.75rem;
    }

    .story h2 {
        font-size: 1rem;
    }

    .story p {
        font-size: 0.9rem;
    }

    .story-card {
        padding: 20px;
    }

    button, select {
        font-size: 13px;
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .story-card {
        padding: 24px;
    }

    .story h2 {
        font-size: 1.1rem;
    }

    .story p {
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    header h1 {
        font-size: 1.4rem;
    }

    header span {
        font-size: 0.7rem;
    }

    button, select {
        font-size: 12px;
        padding: 6px;
    }
}