
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #030508;
    color: #e9fbff;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    user-select: none;
}

canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

#game {
    z-index: 1;
}

#camera {
    display: none;
}

#hud {
    position: fixed;
    z-index: 3;
    top: 35px;
    left: 45px;
    right: 45px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
}

.brand {
    font-size: 12px;
    letter-spacing: 4px;
    color: #78eaff;
}

.subtitle {
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #71818d;
}

.stats {
    display: flex;
    gap: 45px;
    text-align: right;
}

.stat-label {
    color: #6d8390;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 9px;
}

.stat-value {
    font-size: 27px;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
}

#bottom {
    position: fixed;
    z-index: 3;
    left: 45px;
    right: 45px;
    bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

#message {
    color: #a3c0cc;
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 2;
}

#tracking {
    color: #70eaff;
    font-size: 11px;
    letter-spacing: 2px;
}

#calmBar {
    width: 190px;
    height: 2px;
    background: #263640;
    margin-top: 14px;
    overflow: hidden;
}

#calmFill {
    width: 0%;
    height: 100%;
    background: #8bf4ff;
    box-shadow: 0 0 10px #8bf4ff;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(2, 5, 9, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
}

.panel {
    width: min(660px, 100%);
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 6px;
    color: #78eaff;
    margin-bottom: 28px;
}

h1 {
    font-size: clamp(40px, 7vw, 86px);
    font-weight: 200;
    line-height: 1.15;
    letter-spacing: 9px;
    margin: 0 0 18px;
}

.en {
    font-size: 12px;
    letter-spacing: 5px;
    color: #7d929e;
    margin-bottom: 36px;
}

.description {
    font-size: 14px;
    line-height: 2.5;
    color: #a6bac4;
    margin-bottom: 38px;
}

button {
    border: 1px solid #5acddd;
    background: rgba(67, 213, 233, 0.06);
    color: #b9f7ff;
    padding: 17px 40px;
    font-size: 12px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.25s;
}

button:hover {
    background: rgba(67, 213, 233, 0.18);
    box-shadow: 0 0 30px rgba(67, 213, 233, 0.16);
}

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

.small {
    margin-top: 25px;
    font-size: 11px;
    color: #6e828d;
    line-height: 2;
}

.hidden {
    display: none !important;
}

#flash {
    position: fixed;
    inset: 0;
    z-index: 5;
    background: #a4f8ff;
    opacity: 0;
    pointer-events: none;
}

#status {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 4;
    transform: translate(-50%, -50%);
    font-size: 13px;
    letter-spacing: 5px;
    color: #bafaff;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

@media (max-width: 650px) {
    #hud {
    top: 20px;
    left: 20px;
    right: 20px;
    }

    .stats {
    gap: 16px;
    }

    .stat-value {
    font-size: 20px;
    }

    .brand {
    font-size: 10px;
    letter-spacing: 2px;
    }

    #bottom {
    left: 20px;
    right: 20px;
    bottom: 20px;
    }

    h1 {
    letter-spacing: 3px;
    }
}
