html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* ---- Controls (top-left) ---- */
#controls {
    position: fixed;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    z-index: 9999;
}

#controls button {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

#controls button.active {
    background: rgba(0, 150, 255, 0.8);
}

/* ---- Visit counter (bottom-right) ---- */
#globalCountBox {
    position: fixed;
    bottom: 10px;
    right: 10px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    z-index: 9999;
}

/* ---- Floating circles ---- */
.circle {
    position: absolute;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7),
                0 0 30px rgba(0, 255, 255, 0.7);
    transition: transform 0.15s ease-out;
}

.circle:hover {
    transform: scale(1.05);
}

/* ---- Sub-links panel ---- */
#panel {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80%;
    max-width: 320px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    z-index: 9998;

    /* hidden state */
    display: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

#panel.visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#panel h3 {
    margin: 0 0 10px;
    font-size: 20px;
    text-align: center;
}

#panel a {
    display: block;
    margin: 8px 0;
    color: #00e5ff;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

#panel a:hover {
    text-decoration: underline;
}
