/* NUTS browser page: black, white text, console look */
html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #fff;
  font: 16px/1.5 Consolas, "Lucida Console", Menlo, monospace;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px;
}

h1 { font-size: 32px; letter-spacing: 4px; margin: 0 0 24px; }
h2 { font-size: 16px; letter-spacing: 2px; margin: 24px 0 4px; }
section { margin: 0 0 24px; }
p { margin: 4px 0; }
.dim { color: #888; }
.small { font-size: 13px; }
.bad { color: #f55; }

ul { list-style: none; margin: 8px 0; padding: 0; }
li { display: flex; align-items: center; gap: 12px; padding: 4px 0; border-bottom: 1px solid #222; }
li .wadname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
li .kind { color: #888; width: 56px; }
li label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; cursor: pointer; }

button {
  font: inherit;
  color: #000;
  background: #fff;
  border: 0;
  padding: 6px 16px;
  letter-spacing: 2px;
  cursor: pointer;
}
button:disabled { background: #444; color: #888; cursor: default; }
button.link { background: none; color: #888; padding: 0; margin-right: 16px; letter-spacing: 0; text-decoration: underline; }
button.link:hover { color: #fff; }
#play { font-size: 20px; padding: 8px 32px; margin-right: 16px; }

input[type=text] {
  font: inherit;
  color: #fff;
  background: #000;
  border: 1px solid #888;
  padding: 6px 8px;
  width: 240px;
}

#drop { border: 1px dashed #444; padding: 16px; display: flex; align-items: center; gap: 16px; }
#drop.over { border-color: #fff; }

#game { position: fixed; inset: 0; display: flex; flex-direction: column; background: #000; }
#game[hidden] { display: none; }
#view { flex: 1; min-height: 0; position: relative; }
/* (the game draws its own touch controls on it: a touch is never a scroll or a zoom) */
#canvas { position: absolute; inset: 0; width: 100%; height: 100%; outline: none; object-fit: contain; image-rendering: pixelated; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#stats { position: absolute; left: 8px; top: 60px; margin: 0; padding: 2px 6px; background: rgba(0, 0, 0, 0.6); color: #fff; pointer-events: none; z-index: 2; white-space: pre; }
#stats[hidden] { display: none; }

/* (touch controls T3) the text boxes the phone's keyboard types into, over the game's places for typing: there, but not seen */
.typebox { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0.01; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; z-index: 3; outline: none; -webkit-tap-highlight-color: transparent; }
.typebox[hidden] { display: none; }
/* (the switch an iPhone ticks for, flipped by the page: there, but not seen) */
.hapticswitch { position: fixed; left: -100px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#bar { padding: 4px 12px; font-size: 13px; }
#game:fullscreen #bar { display: none; }
#wadsbox[hidden] { display: none; }
