:root {
    --bg: #000;
    --fg: #0f0;
    --danger: #ff1a1a;
}

*{
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #021b02 0%, #000 45%, #000 100%);
    color: var(--fg);
    font-family: "Courier New",Courier,monospace;
    padding: 24px;
}

.shell-wrap {
    max-width: 960px;
    margin: 43px auto 0 auto;
}

.brand {
    margin: 0 0 22px 0;
    font-size: 21px;
    letter-spacing: 0.6px;
}

.controls {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 margin-bottom: 17px;
/* i hate flexbox so much its unreal */
}

.control label {
    margin-right: 12px;
}

.control input,
.control button,
.prompt-row input {
    background: #000;
    color: var(--fg);
border: 1px solid var(--fg);
    font: inherit;
}

.controls input {
    width: 96px;
    margin-right: 11px;
    padding: 6px 8px;
}

.controls button {
    padding: 6px 16px;
    cursor: pointer;
}

.status-grid {
    border: 1px solid var(--fg);
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(3, minimax(150px, 1fr));
    gap: 8px;
}
 
.terminal {
    border: 1px solid var(--fg);
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.terminal-log {
    flex: 1;
    overflow-y: auto;
    white-space: pre-wrap;
    padding: 12px;
}

.prompt-row {
    border-top: 1px solid var(--fg);
    display: flex;
    grid-template-columns: 20px 1fr;
    align-items: center;
    padding: 8px 10px;
}

.prompt-row input {
    border: 0;
    outline: none;
}

#penalty-overlay{
    position: fixed;
    inset: 0;
    background: rgba(255, 0, 0, 0.88);
    color: #fff;
    font-size: clamp(24px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: 1px;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index:  9999999 !important;
}

body.panic {
    animation: panicFlash 0.25s steps(2,jump-none) infinite;
}

body.panic #penalty-overlay {
    display: flex;
}

@keyframes panicFlash {
    0% { background-color: #180000; }
    50% { background-color: #950000; }
    100% { background-color: #180000; }
}

@media (max-width: 700px) {
    .shell-wrap {
        margin-top: 19px;
    }

.status-grid{
    grid-template-columns: 1fr;
}

.brand {
    font-size: 16px;
    line-height: 1.4;
}
}