* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
}

body {
    background: #101018 url("background.jpg") center / 100% 100% no-repeat;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

main {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    height: 100dvh;
    padding: 20px;
}

.query {
    display: grid;
    gap: 20px;
    width: min(460px, 100%);
}

input,
button {
    width: 100%;
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-size: 22px;
}

input {
    min-width: 0;
    height: 64px;
    padding: 0 24px;
    color: #333;
    background: #f8f8f8;
    box-shadow: 0 0 6px #ffffff70;
    outline: none;
}

input::placeholder {
    color: #999;
}

input:focus-visible {
    outline: 2px solid #ff2395;
    outline-offset: 3px;
}

button {
    height: 76px;
    color: #fff;
    background: #ff2395;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: 0 0 15px #ff23954d;
}

button:hover {
    background: #ed1686;
}

button:active {
    background: #da0e77;
}

button:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

dialog {
    width: min(340px, calc(100% - 40px));
    padding: 28px 24px 22px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #333;
    text-align: center;
    box-shadow: 0 12px 48px #0005;
}

dialog::backdrop {
    background: #0007;
}

dialog p {
    margin: 0 0 26px;
    font-size: 22px;
    line-height: 1.5;
}

dialog button {
    height: 46px;
    border-radius: 9px;
    font-size: 17px;
}

@media (max-width: 600px) {
    .query {
        gap: 16px;
    }

    input {
        height: 56px;
        padding: 0 18px;
        font-size: 18px;
    }

    .query button {
        height: 62px;
        font-size: 20px;
    }
}
