* {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #111;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
}

.hud {
    flex-shrink: 0;
    padding: 8px 10px;
    font-size: clamp(12px, 2vw, 18px);
    background-color: #222;
    color: #ddd;
    border-bottom: 1px solid #444;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hud-main {
    position: relative;
    text-align: center;
    padding-right: 50px; /* место для кнопки */
}

.hud-info {
    white-space: nowrap;
    overflow-x: auto;
    display: inline-block;
    max-width: 100%;
}

.hud-regen {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.test-mode {
    color: #ffaa00;
    font-weight: bold;
    text-align: center;
    background-color: #332200;
    border-radius: 4px;
    padding: 2px 0;
    margin-top: 2px;
}

.hidden {
    display: none;
}

.ascii-canvas {
    flex-grow: 1;
    margin: 0;
    padding: 10px;
    overflow: hidden;
    white-space: pre;
    font-size: clamp(10px, 1.8vw, 16px);
    line-height: 1.2;
    background-color: #0f0f0f;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
}

#regenBtn {
    cursor: pointer;
    display: inline-block;
    padding: 2px 6px;
    background-color: #333;
    border-radius: 4px;
    user-select: none;
}
#regenBtn:hover {
    background-color: #555;
}