@font-face {
    font-family: "VoxDot";
    src: url("../game/vox/font/DotGothic16-Regular.ttf") format("truetype");
    font-display: swap;
}

:root {
    color-scheme: dark;
    font-family: "VoxDot", sans-serif;
    background: #08111b;
    color: #eef7ff;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(rgba(4, 12, 20, 0.74), rgba(4, 12, 20, 0.9)),
        url("../game/vox/img/20250717_090849.jpg") center / cover fixed;
}

button,
input {
    font: inherit;
}

.shell {
    width: min(100%, 720px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel {
    width: min(100%, 520px);
    padding: 28px;
    border: 2px solid #6fdcff;
    border-radius: 12px;
    background: rgba(7, 21, 34, 0.94);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55), inset 0 0 32px rgba(53, 190, 255, 0.08);
}

.brand {
    margin: 0 0 8px;
    text-align: center;
    color: #88e7ff;
    font-size: clamp(34px, 10vw, 64px);
    letter-spacing: 0.16em;
    text-shadow: 0 0 18px rgba(62, 203, 255, 0.55);
}

.subtitle,
.status,
.help {
    line-height: 1.7;
    text-align: center;
}

.subtitle,
.help {
    color: #b7cad8;
}

.actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.button,
button {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #8be8ff;
    border-radius: 6px;
    background: linear-gradient(180deg, #237999, #12506c);
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary,
button.secondary {
    background: #172b3b;
}

button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.field {
    margin: 16px 0;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: #bfefff;
}

.field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #557489;
    border-radius: 5px;
    background: #091824;
    color: #fff;
}

.message {
    display: none;
    margin: 16px 0;
    padding: 12px;
    border: 1px solid #ff7d89;
    border-radius: 5px;
    background: rgba(146, 23, 39, 0.34);
    color: #ffdbe0;
    white-space: pre-wrap;
    line-height: 1.6;
}

.message.show {
    display: block;
}

.message.success {
    border-color: #69e8ab;
    background: rgba(22, 115, 75, 0.3);
    color: #d8ffec;
}

.links {
    margin-top: 20px;
    text-align: center;
    line-height: 2;
}

.links a {
    color: #9cecff;
}

.user-card {
    margin: 20px 0;
    padding: 18px;
    border: 1px solid #41647a;
    background: rgba(4, 13, 22, 0.75);
}

.stage-preview {
    position: relative;
    min-height: 220px;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid #527b92;
    background: linear-gradient(#123149 0 58%, #16251b 58%);
}

.stage-preview::before,
.stage-preview::after {
    content: "";
    position: absolute;
    bottom: 42px;
    width: 82px;
    height: 82px;
    background: url("../game/vox/vox/ow_tree_bl/ow_tree_bl.png") center / contain no-repeat;
    image-rendering: pixelated;
}

.stage-preview::before {
    left: 12%;
}

.stage-preview::after {
    right: 12%;
    transform: scaleX(-1);
}

.model-preview {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 34px;
    width: 112px;
    height: 112px;
    transform: translateX(-50%);
    background: url("../game/vox/vox/v_player-x32/v_player-x32.png") center / contain no-repeat;
    image-rendering: pixelated;
}

.loading-mark {
    width: 54px;
    height: 54px;
    margin: 24px auto;
    border: 5px solid rgba(135, 230, 255, 0.22);
    border-top-color: #87e6ff;
    border-radius: 50%;
    animation: vox-spin 1s linear infinite;
}

@keyframes vox-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
    .shell { padding: 12px; }
    .panel { padding: 22px 16px; }
}
