html,
body {
    height: 100%;
    margin: 0;
    background: #111;
    overflow: hidden;
    font-family: system-ui, Arial;
}

#wrap {
    position: relative;
    height: 100%;
}

/* HUD + popup UI */
.hud {
    position: absolute;
    left: 12px;
    bottom: 28px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.35;
    max-width: 360px;
}

.hud b {
    font-weight: 700;
}

.hint {
    opacity: .85;
    margin-top: 6px;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: #ffffff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

    z-index: 1000;
}

/* Close button */
.popup-close {
    position: absolute;
    top: 8px;
    right: 10px;

    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.popup a {
    word-break: break-all;
}

.row {
    margin: 6px 0;
}