/* ATDT terminal page (SPEC §7.1): 640×400 canvas, integer-scaled,
   centered on black, pixelated. */

html, body {
    margin: 0;
    height: 100%;
    background: #000;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#term {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    transform-origin: center center;
    background: #000;
}

/* Hidden input summons the mobile keyboard (§7.7) without being seen. */
#kbd {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    border: 0;
    padding: 0;
}

/* Slim on-screen key row, shown only on coarse pointers (§7.7). */
#keyrow {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: #111;
    text-align: center;
}

#keyrow button {
    background: #222;
    color: #aaa;
    border: 1px solid #444;
    border-radius: 4px;
    font: 14px/1 monospace;
    padding: 8px 10px;
    margin: 0 2px;
}

#keyrow button:active {
    background: #333;
}

@media (pointer: coarse) {
    #keyrow {
        display: block;
    }
}

noscript pre {
    color: #aaaaaa;
    font: 16px/1.2 monospace;
}

/* Sysop broadcast strip (owner round 3): above the canvas, times itself out. */
#banner {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 20;
    background: #3a2a00;
    color: #ffd75f;
    border-bottom: 1px solid #7a5c00;
    font: 16px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace;
    text-align: center;
    padding: 6px 12px;
    text-shadow: 0 0 6px rgba(255, 215, 95, 0.45);
}
