.header-new .header-new__nav .headball-menu-item {
    display: flex;
    align-items: center;
}

.header-new .header-new__nav .headball-menu-item .headball-menu-link,
.fixed-menu .fixed-menu__list .headball-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #71aaff;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    white-space: nowrap;
}
.headball-menu-link img { flex: none; width: 24px; height: 24px; }
.header-new .header-new__nav .headball-menu-item .headball-menu-link:hover,
.fixed-menu .fixed-menu__list .headball-menu-link:hover { color: #a6caff; }
.headball-menu-link:focus-visible { outline: 2px solid #71aaff; outline-offset: 4px; }

.headball-modal {
    box-sizing: border-box;
    position: fixed;
    /* Figma: game bounds 37,30–1887,1040 in a 1920×1069 viewport. */
    inset: 2.806361vh 1.71875vw 2.712816vh 1.927083vw;
    inset: 2.806361dvh 1.71875vw 2.712816dvh 1.927083vw;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: #fff;
    font: 16px/1.4 Arial, sans-serif;
    z-index: 2147483647;
}
.headball-modal:not([open]) { display: none; }
.headball-modal[open] { display: block; }
.headball-modal::backdrop {
    background: rgba(0, 0, 0, .76);
    -webkit-backdrop-filter: blur(42.15px);
    backdrop-filter: blur(42.15px);
}
.headball-modal::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: url("./window-border.svg") center / 100% 100% no-repeat;
    pointer-events: none;
}
.headball-modal__stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #000;
    -webkit-mask: url("./window-mask.svg") center / 100% 100% no-repeat;
    mask: url("./window-mask.svg") center / 100% 100% no-repeat;
}
.headball-modal__close {
    box-sizing: border-box;
    position: absolute;
    top: -1.309635vh;
    top: -1.309635dvh;
    right: -.885417vw;
    z-index: 2;
    display: grid;
    place-items: center;
    width: clamp(44px, 3.333333vw, 64px);
    height: clamp(44px, 3.333333vw, 64px);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .16);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    cursor: pointer;
    touch-action: manipulation;
}
.headball-modal__close img { display: block; width: 24px; height: 24px; }
.headball-modal__close:hover { background: #f2f2f2; }
.headball-modal__close:focus-visible { outline: 2px solid #0d99ff; outline-offset: 3px; }
.headball-modal__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.headball-modal__loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }
.headball-modal__loading[hidden] { display: none; }
@media (max-width: 700px) {
    .headball-modal {
        inset: calc(env(safe-area-inset-top) + 36px) calc(env(safe-area-inset-right) + 12px)
            calc(env(safe-area-inset-bottom) + 12px) calc(env(safe-area-inset-left) + 12px);
    }
    .headball-modal__close { top: -28px; right: -4px; width: 44px; height: 44px; }
}
@media (min-width: 701px) and (max-height: 500px) {
    .headball-modal { inset: 16px; }
    .headball-modal__close { top: -8px; right: -8px; width: 44px; height: 44px; }
}
