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

html, body {
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#canvas-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
}

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

#info {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 10px 14px;
    border-radius: 14px;
    min-width: 160px;
    max-width: min(420px, calc(100vw - 32px));
    width: auto;
    color: rgba(11, 15, 20, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34));
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 30px rgba(5, 10, 15, 0.12), inset 0 1px rgba(255, 255, 255, 0.12);
    z-index: 999;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    font-size: 14px;
    line-height: 1.1;
    display: inline-block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: rgba(13, 18, 23, 0.97);
    letter-spacing: -0.2px;
    text-shadow: 0 1px rgba(255, 255, 255, 0.45);
    margin-bottom: 4px;
}

#info span {
    display: block;
    font-size: 12px;
    color: rgba(13, 18, 23, 0.66);
}

#info small {
    display: block;
    font-size: 11px;
    color: rgba(13, 18, 23, 0.6);
    margin-top: 8px;
}

@media (max-width: 600px) {
    #info {
        left: 50%;
        transform: translateX(-50%);
        top: 12px;
        width: calc(100% - 32px);
        min-width: unset;
        border-radius: 10px;
        padding: 8px 12px;
        font-size: 13px;
    }
    #info strong { font-size: 14px; }
    #info span, #info small { font-size: 12px; }
    #info:hover { transform: translateX(-50%) translateY(-2px); }
}

#info:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(5, 10, 15, 0.18), inset 0 1px rgba(255, 255, 255, 0.14);
}

#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loading-spinner::after {
    content: '';
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}