@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700&family=Noto+Serif:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif', serif;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 152, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 235, 59, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #fff8e1 0%, #ffecb3 25%, #ffe082 50%, #ffecb3 75%, #fff8e1 100%);
    min-height: 100vh;
    color: #3e2723;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff9800' fill-opacity='0.08'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.toggle-btn {
    background: linear-gradient(145deg, #ff9800, #f57c00);
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: all 0.4s ease;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 16px rgba(245, 124, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transform-style: preserve-3d;
    position: relative;
}

.toggle-btn:hover {
    transform: translateY(-4px) rotateY(15deg);
    box-shadow:
        0 12px 24px rgba(245, 124, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(145deg, #ff9800, #f57c00);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 1.4rem;
    box-shadow:
        0 8px 16px rgba(245, 124, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    z-index: 1000;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    transform: translateY(-6px) rotateY(15deg);
    box-shadow:
        0 12px 24px rgba(245, 124, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    background: url(image/rama-avatar.jpg) center/cover no-repeat;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.767);
    border-radius: 25px;
    padding: 80px;
    box-shadow:
        0 20px 40px rgba(245, 124, 0, 0.2),
        inset 0 4px 8px rgba(255, 255, 255, 0.5),
        0 0 0 3px rgba(255, 152, 0, 0.3);
    border: 2px solid rgba(255, 193, 7, 0.5);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '🏹';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 2rem;
    opacity: 0.4;
    animation: float 3s ease-in-out infinite;
}

.header::after {
    content: '🕉️';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    opacity: 0.4;
    animation: float 3s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.header h1 {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #f57c00, #ff9800, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow:
        2px 2px 0px rgba(245, 124, 0, 0.3),
        4px 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 700;
    transform: perspective(500px) rotateX(5deg);
    position: relative;
}

.header .subtitle {
    font-size: 1.3rem;
    color: #e65100;
    font-style: italic;
    margin-bottom: 15px;
}

.header .description {
    font-size: 1.1rem;
    color: #5d4037;
    line-height: 1.6;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #e65100;
    margin-bottom: 30px;
    font-family: 'Noto Sans Devanagari', sans-serif;
    background: linear-gradient(45deg, #e65100, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section {
    margin-bottom: 60px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 225, 0.8)),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ff9800' fill-opacity='0.05'%3E%3Cpath d='M40 10L45 25L60 25L48 35L53 50L40 43L27 50L32 35L20 25L35 25Z'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 25px;
    padding: 40px;
    box-shadow:
        0 15px 30px rgba(245, 124, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        0 0 0 2px rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.kands-grid,
.characters-grid,
.places-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.kands-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.characters-grid,
.places-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 225, 0.9)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ff9800' fill-opacity='0.08'%3E%3Cpath d='M30 5L35 20L50 20L38 30L43 45L30 38L17 45L22 30L10 20L25 20Z'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 12px 25px rgba(245, 124, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        0 0 0 2px rgba(255, 193, 7, 0.2);
    border-left: 6px solid #ff9800;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background:
        radial-gradient(circle, rgba(255, 152, 0, 0.2) 0%, transparent 70%),
        conic-gradient(from 45deg, #ff9800, #ffc107, #f57c00, #ff9800);
    border-radius: 50%;
    opacity: 0.4;
    animation: rotate 12s linear infinite;
}

.card:hover {
    transform: translateY(-8px) rotateY(3deg) rotateX(2deg);
    box-shadow:
        0 20px 40px rgba(245, 124, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        0 0 0 3px rgba(255, 193, 7, 0.4);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.card-number {
    font-size: 2.2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #e65100, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow:
        2px 2px 0px rgba(230, 81, 0, 0.3),
        4px 4px 8px rgba(0, 0, 0, 0.1);
    transform: perspective(300px) rotateX(10deg);
    display: inline-block;
}

.card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #3e2723;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #5d4037;
    margin-bottom: 20px;
}

.card-details {
    font-size: 0.9rem;
    color: #6d4c41;
    line-height: 1.5;
    margin-bottom: 15px;
}

.card-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    background: linear-gradient(45deg, #e65100, #d84315);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(230, 81, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 81, 0, 0.4);
}

.btn.secondary {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    text-decoration: none;
}

.timeline-container {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 225, 0.9)),
        url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ff9800' fill-opacity='0.05'%3E%3Cpath d='M60 10L70 40L100 40L78 60L88 90L60 75L32 90L42 60L20 40L50 40Z'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 25px;
    padding: 50px;
    box-shadow:
        0 20px 40px rgba(245, 124, 0, 0.15),
        inset 0 4px 8px rgba(255, 255, 255, 0.5),
        0 0 0 3px rgba(255, 193, 7, 0.3);
    border: 2px solid rgba(255, 152, 0, 0.3);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9800, #ffc107, #e65100, #f57c00);
    border-radius: 25px 25px 0 0;
}

.timeline {
    position: relative;
    margin: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ff9800, #e65100, #d84315);
    border-radius: 2px;
}

.timeline-event {
    position: relative;
    margin: 60px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-event:hover {
    transform: scale(1.02);
}

.timeline-event.left {
    text-align: right;
    padding-right: calc(50% + 40px);
}

.timeline-event.right {
    text-align: left;
    padding-left: calc(50% + 40px);
}

.event-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid white;
    z-index: 10;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #ff9800, #e65100);
    box-shadow: 0 4px 8px rgba(245, 124, 0, 0.3);
}

.timeline-event:hover .event-marker {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.5);
}

.event-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 225, 0.95)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ff9800' fill-opacity='0.08'%3E%3Cpath d='M30 5L35 20L50 20L38 30L43 45L30 38L17 45L22 30L10 20L25 20Z'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 18px;
    padding: 30px;
    box-shadow:
        0 12px 25px rgba(245, 124, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        0 0 0 2px rgba(255, 193, 7, 0.2);
    border-left: 6px solid #e65100;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.timeline-event:hover .event-card {
    transform: translateY(-3px) rotateY(2deg);
    box-shadow:
        0 18px 35px rgba(245, 124, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        0 0 0 3px rgba(255, 193, 7, 0.3);
}

.event-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #3e2723;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.event-kand {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #e65100, #d84315);
}

.event-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #5d4037;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.event-description.expanded {
    max-height: 400px;
    margin-top: 15px;
}

.expand-btn {
    background: none;
    border: none;
    color: #e65100;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.expand-btn:hover {
    color: #d84315;
}

.character-role {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff9800, #f57c00);
}

.place-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffc107, #ff8f00);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 225, 0.8));
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(245, 124, 0, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #e65100, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #5d4037;
    font-weight: 600;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .kands-grid,
    .characters-grid,
    .places-grid {
        grid-template-columns: 1fr;
    }

    .timeline-event.left,
    .timeline-event.right {
        text-align: center;
        padding: 0 20px;
    }

    .timeline-line {
        left: 20px;
    }

    .event-marker {
        left: 20px;
    }

    .controls {
        position: fixed;
        top: 15px;
        right: 15px;
        justify-content: right;
        margin-bottom: 20px;
    }
}






/* Family Tree Styles */
.family-tree {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 225, 0.9)),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ff9800' fill-opacity='0.05'%3E%3Cpath d='M50 10L60 30L80 30L66 45L71 65L50 55L29 65L34 45L20 30L40 30Z'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 25px;
    padding: 50px;
    box-shadow:
        0 20px 40px rgba(245, 124, 0, 0.15),
        inset 0 4px 8px rgba(255, 255, 255, 0.5),
        0 0 0 3px rgba(255, 193, 7, 0.3);
    border: 2px solid rgba(255, 152, 0, 0.3);
    position: relative;
    overflow-x: auto;
}

.tree-container {
    min-width: 1000px;
    position: relative;
    margin: 0 auto;
}

.tree-level {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    position: relative;
}

.tree-node {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 225, 0.9)),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ff9800' fill-opacity='0.1'%3E%3Cpath d='M20 5L25 15L35 15L27 22L30 32L20 27L10 32L13 22L5 15L15 15Z'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 15px;
    padding: 20px;
    margin: 0 15px;
    text-align: center;
    box-shadow:
        0 8px 16px rgba(245, 124, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        0 0 0 2px rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-width: 120px;
}

.tree-node:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 12px 24px rgba(245, 124, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        0 0 0 3px rgba(255, 193, 7, 0.3);
}

.tree-node.main-character {
    background:
        linear-gradient(145deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.15)),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e65100' fill-opacity='0.15'%3E%3Cpath d='M20 5L25 15L35 15L27 22L30 32L20 27L10 32L13 22L5 15L15 15Z'/%3E%3C/g%3E%3C/svg%3E");
    border: 3px solid #ff9800;
    font-weight: bold;
}

.tree-node.divine {
    background:
        linear-gradient(145deg, rgba(255, 235, 59, 0.3), rgba(255, 193, 7, 0.2)),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f57c00' fill-opacity='0.2'%3E%3Cpath d='M20 2L22 18L38 18L25 28L30 44L20 36L10 44L15 28L2 18L18 18Z'/%3E%3C/g%3E%3C/svg%3E");
    border: 2px solid #ffc107;
}

.node-name {
    font-size: 1rem;
    font-weight: bold;
    color: #3e2723;
    margin-bottom: 5px;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.node-title {
    font-size: 0.8rem;
    color: #6d4c41;
    font-style: italic;
}

.node-relation {
    font-size: 0.7rem;
    color: #8d6e63;
    margin-top: 5px;
    padding: 2px 8px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 10px;
}

.connection-line {
    position: absolute;
    background: linear-gradient(45deg, #ff9800, #e65100);
    z-index: 1;
}

.horizontal-line {
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.vertical-line {
    width: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.tree-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(245, 124, 0, 0.1);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
}

.legend-color.main {
    background: linear-gradient(45deg, #ff9800, #f57c00);
}

.legend-color.divine {
    background: linear-gradient(45deg, #ffc107, #ff8f00);
}

.legend-color.royal {
    background: linear-gradient(45deg, #e65100, #d84315);
}

.legend-color.sage {
    background: linear-gradient(45deg, #8bc34a, #689f38);
}

.hidden {
    display: none;
}









.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-left: 0.5rem;
}

/* Role colors */
.role-hero {
    background: #e6f4ff;
    color: #1166cc;
}

.role-ally {
    background: #e8f5e9;
    color: #2e7d32;
}

.role-sage {
    background: #fff8e1;
    color: #a17300;
}

.role-villain {
    background: #ffebee;
    color: #c62828;
}

.role-divine {
    background: #f3e5f5;
    color: #6a1b9a;
}

.role-neutral {
    background: #eceff1;
    color: #37474f;
}

/* SVG Family Tree */
#tree-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 16px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), transparent);
}

#tree-canvas {
    width: 1400px;
    height: 700px;
}

.node {
    cursor: pointer;
}


.node rect {
    rx: 12;
    ry: 12;
    fill: var(--node-fill, #ffffff);
    stroke: rgba(0, 0, 0, 0.2);
    stroke-width: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.node rect:hover {
    fill: var(--node-hover-fill, #f0f0f0);
    stroke: rgba(0, 0, 0, 0.3);
}

.node text {
    font-size: 12px;
    dominant-baseline: middle;
    text-anchor: middle;
}

.link {
    stroke: rgba(0, 0, 0, 0.3);
    stroke-width: 1.5;
    fill: none;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
    font-size: 0.85rem;
}

.legend span {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}


.footer {
    text-align: center;
    padding: 1rem 0;
    background: #ffe082;
    border-top: 1px solid #eee;
    color: #ff9800;
    border-radius: 50px 50px 0 0;
}