/* TI-99/4A. Flat cyan screen, blinking block cursor. Nothing else. */

:root {
    --bg: #5bdde8;   /* TI-99/4A BASIC screen cyan */
    --ink: #000000;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--bg);
}

body {
    font-family: "VT323", "Courier New", monospace;
    overflow: hidden;
}

#screen {
    position: absolute;
    inset: 0;
    padding: 4vmin 5vmin;
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--bg);
    font-size: clamp(22px, 3vmin, 34px);
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: text;
}

#prompt {
    color: var(--ink);
}

#screen::-webkit-scrollbar {
    width: 0;
    height: 0;
}

#screen {
    scrollbar-width: none;
}

#output,
.row,
#inputline {
    white-space: pre-wrap;
    word-break: break-word;
}

#columns {
    display: flex;
    gap: 3em;
}

.column {
    display: flex;
    flex-direction: column;
}

a,
a:visited {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover,
a:focus {
    background: var(--ink);
    color: var(--bg);
    outline: none;
}

#cursor {
    background: var(--ink);
    color: var(--bg);
    animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

/* offscreen real input: captures keystrokes, mobile keyboard, paste */
#cmd {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    #cursor { animation: none; }
}
