* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden; 
    height: 100dvh; 
    width: 100vw;
}

.story-container {
    width: 100%;
    height: 100dvh; 
    max-width: 550px; 
    margin: 0 auto;
    position: relative;
    background: #000;
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
}

.slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: hidden; 
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.slide {
    flex: 0 0 100%; 
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.1) 0%, 
        rgba(0,0,0,0.4) 40%, 
        rgba(0,0,0,0.95) 90%);
    z-index: 2;
    pointer-events: none; 
}

.content {
    position: absolute;
    bottom: 40px; 
    left: 50%;
    transform: translateX(-50%);
    width: 92%; 
    max-height: 80%; 
    z-index: 3;
    background: transparent; 
    padding: 10px;
    opacity: 0;
    transform: translate(-50%, 30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slide.active .content {
    opacity: 1;
    transform: translate(-50%, 0);
}

h2 {
    font-size: 20px; 
    line-height: 1.35;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 800;
    color: #00AEEF; 
    text-align: center;
    text-shadow: 2px 2px 4px #000;
    width: 100%;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 174, 239, 0.4);
}

p {
    font-size: 15px;
    line-height: 1.6;
    color: #fff;
    text-align: justify; 
    font-weight: 400; 
    margin-bottom: 12px;
    text-shadow: 1px 1px 2px #000;
}

.chart-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.pie-chart {
    width: 200px;
    height: 200px;
    position: relative;
}

.chart-label {
    position: absolute;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 3px #000;
    pointer-events: none;
    white-space: nowrap;
}

.giant-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.giant-item {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.giant-img-container {
    width: 65px;
    height: 65px;
    position: relative;
    flex-shrink: 0;
}

.giant-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #00AEEF;
    transform: scale(2.5); 
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
}

.active .show .giant-img {
    transform: scale(1); 
    opacity: 1;
}

.giant-item.show { opacity: 1; }
.giant-item p { margin-bottom: 0; font-size: 13.5px; text-align: left; }
.giant-item b { color: #00AEEF; font-size: 15px; display: block; line-height: 1.2; margin-bottom: 2px; }

.progress-container {
    position: absolute; 
    top: 2.5cm; 
    left: 15px; 
    right: 15px;
    display: flex; 
    gap: 5px; 
    z-index: 50;
}

.progress-item {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #00AEEF;
    transition: width 0.3s linear;
}

.top-controls { 
    position: absolute; 
    top: calc(2.5cm + 15px); 
    right: 15px; 
    z-index: 60; 
}

.control-btn { 
    background: rgba(0,0,0,0.5); 
    border: 1px solid rgba(255,255,255,0.2); 
    color: #fff; 
    width: 38px; 
    height: 38px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(5px); 
    cursor: pointer; 
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-prev { left: 5px; }
.nav-next { right: 5px; }

@media (min-width: 768px) {
    h2 { font-size: 24px; }
    p { font-size: 16px; }
}