html, body { margin: 0; height: 100%; background: #000; overflow: hidden; font-family: "Comic Sans MS", "Comic Neue", monospace; color: #fff; }
canvas { display: block; position: absolute; image-rendering: pixelated; image-rendering: crisp-edges; cursor: crosshair; }
.screen { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(360px, calc(100vw - 32px));
  background: #224; border: 4px solid #f0f; box-shadow: 8px 8px 0 #0ff; padding: 16px; text-align: center; box-sizing: border-box; max-height: calc(100vh - 32px); overflow-y: auto; }
.hidden { display: none; }
h1 { margin: 0; font-size: 40px; color: #ff0; text-shadow: 3px 3px 0 #f00; letter-spacing: 2px; }
h2 { margin: 0 0 10px; color: #ff0; text-shadow: 2px 2px 0 #f00; }
.sub { margin: 4px 0 16px; color: #0ff; }
input, select, button { font: inherit; font-size: 16px; border: 3px solid #000; padding: 6px 8px; box-sizing: border-box; }
input { width: 100%; background: #ffe; margin-bottom: 8px; }
#code { text-transform: uppercase; margin: 0; }
button { background: #0c0; color: #000; cursor: pointer; box-shadow: 3px 3px 0 #000; }
button:hover { background: #3f3; }
button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
button.big { width: 100%; font-size: 22px; margin-top: 8px; background: #f80; }
button.small { margin-top: 12px; font-size: 13px; background: #888; }
#createBtn { width: 100%; margin-bottom: 8px; }
.row { display: flex; gap: 8px; align-items: center; justify-content: center; margin-bottom: 8px; }
.row input { margin: 0; flex: 1; min-width: 0; }
.err { color: #f66; min-height: 1em; margin: 6px 0 0; }
.help { font-size: 12px; color: #aaa; margin-bottom: 0; }
ul { list-style: none; padding: 0; margin: 8px 0; text-align: left; }
li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; background: #113; margin-bottom: 3px; }
li .sw { width: 12px; height: 12px; border: 2px solid #000; flex: none; }
li .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
li.off { opacity: 0.45; }
li button { padding: 0 6px; font-size: 13px; background: #c33; box-shadow: none; }
table { width: 100%; border-collapse: collapse; margin: 8px 0; }
td, th { padding: 3px 6px; text-align: left; }
th { color: #0ff; font-size: 13px; }
tr:nth-child(even) td { background: #113; }
