* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 22% 18%,
            rgba(42, 120, 130, 0.22),
            transparent 24%
        ),
        radial-gradient(
            circle at 78% 78%,
            rgba(181, 83, 122, 0.18),
            transparent 26%
        ),
        #050711;
    color: #f4f7ff;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    letter-spacing: 0;
}

canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    cursor: grab;
}

canvas:active {
    cursor: grabbing;
}

.top-panel {
    position: fixed;
    z-index: 2;
    border: 1px solid rgba(219, 228, 255, 0.16);
    background: rgba(7, 10, 20, 0.18);
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.top-panel {
    top: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 12px 16px;
}

.home-link {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(219, 228, 255, 0.22);
    color: #f4f7ff;
    text-decoration: none;
    font-size: 24px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.04);
}

.home-link:hover {
    border-color: rgba(117, 217, 204, 0.8);
    color: #75d9cc;
}

h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 750;
}

p {
    margin: 2px 0 0;
    color: rgba(244, 247, 255, 0.25);
    font-size: 13px;
}

.hint {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 2;
    max-width: calc(100vw - 24px);
    transform: translateX(-50%);
    color: rgba(244, 247, 255, 0.25);
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 760px) {
    .top-panel {
        top: 12px;
        left: 12px;
        right: 12px;
        min-height: 56px;
    }

    h1 {
        font-size: 18px;
    }

    .hint {
        bottom: 10px;
        font-size: 11px;
        white-space: normal;
    }
}

.key {
    border: 1px solid;
    border-radius: 5px;
    padding: 2px 4px;
}
