html,
body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.title {
    position: fixed;
    top: 24px;
    left: 28px;
    margin: 0;
    z-index: 10;
    pointer-events: none;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-size: 48px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.02em;
    color: #222;
    text-shadow: 0 0 4px #fff, 0 0 4px #fff;
}

.info-btn {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 20;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 3px solid #222;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}

.info-btn:hover {
    background: #222;
    color: #fff;
}

.info-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
}

.info-overlay.open {
    display: flex;
}

.info-box {
    position: relative;
    width: 480px;
    max-width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px 32px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
}

.info-box h2 {
    margin: 0 0 12px;
    font-family: "Inter", sans-serif;
    font-size: 28px;
}

.info-box h3 {
    margin: 24px 0 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
}

.info-box table {
    width: 100%;
    border-collapse: collapse;
}

.info-box td {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.info-box td:last-child {
    text-align: right;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    padding-left: 12px;
}

.info-note {
    color: #666;
    font-size: 13px;
}

.info-credits {
    margin-top: 24px;
    color: #999;
    font-size: 11px;
}

.info-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: #888;
    cursor: pointer;
}

.bubble {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
}

.bubble-box {
    position: relative;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 4px 8px;
    margin-bottom: 8px;
    opacity: 0;
    transform: scale(0.4);
    transform-origin: bottom center;
    transition: opacity 0.2s, transform 0.2s;
}

.bubble-box::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    margin-left: -6px;
    border: 6px solid transparent;
    border-bottom: 0;
    border-top-color: #fff;
}

.bubble.dots .bubble-box,
.bubble.open .bubble-box {
    opacity: 1;
    transform: scale(0.75);
}

.bubble.open .bubble-box {
    padding: 10px 14px;
    width: 220px;
}

.bubble-dots i {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 2px;
    border-radius: 50%;
    background: #000;
    animation: bounce 1s infinite;
}

.bubble-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.bubble-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

.bubble.open .bubble-dots {
    display: none;
}

.bubble-persona {
    display: none;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.bubble.open .bubble-persona {
    display: block;
}

.marker {
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    font-family: "Inter", sans-serif;
    animation: marker-in 0.3s;
}

.marker-label {
    font-size: 11px;
    white-space: nowrap;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}

.marker-x {
    font-size: 20px;
    font-weight: bold;
    line-height: 0.8;
}

.landmark {
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    font-family: "Inter", sans-serif;
}

.landmark-name {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}

.landmark.small .landmark-name {
    font-size: 10px;
    font-weight: normal;
}

.landmark-desc:empty {
    display: none;
}

.landmark-desc {
    max-width: 220px;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}

@keyframes marker-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%,
    60%,
    100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-4px);
    }
}