* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: white;
    overflow: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

#loading {
    display: none;
}

#years {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.year {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    cursor: pointer;
    padding: 4px 8px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1);
    opacity: 1;
}

.year:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.year:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.year.active {
    background: yellow;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.year.expanding {
    animation: expandIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.year.collapsing {
    animation: collapseOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes expandIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes collapseOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
}
