:root {
  --orange: #FB4C0D;
  --amber: #FFB84D;
  --black: #000000;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--black);
  color: var(--orange);
  font-family: "Courier New", Courier, monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.ascii-header {
  color: var(--orange);
  font-size: 10px;
  line-height: 1.1;
  white-space: pre;
  text-align: center;
  margin: 10px 0;
}

.settings {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

select {
  background: var(--black);
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
  padding: 4px;
}

.mode-switch {
  display: flex;
  align-items: center;
  border: 2px solid var(--orange);
  padding: 5px 10px;
  gap: 10px;
  margin-bottom: 10px;
}

.mode-switch span {
  font-weight: bold;
  width: 200px;
}

button {
  background: var(--orange);
  color: var(--black);
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-weight: bold;
  padding: 8px 16px;
  cursor: pointer;
}

button:hover {
  background: #ff6a33;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#chatbox {
  width: 610px;
  max-width: 100%;
  height: 400px;
  border: 2px solid var(--orange);
  overflow-y: auto;
  padding: 10px;
  white-space: pre-wrap;
  font-size: 14px;
}

#chatbox .author {
  color: var(--amber);
  font-weight: bold;
}

.input-row {
  width: 610px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

#entry {
  flex: 1;
  background: var(--black);
  color: var(--orange);
  border: 1px solid var(--orange);
  font-family: inherit;
  font-size: 14px;
  padding: 8px;
}

#status {
  margin-top: 10px;
  font-weight: bold;
  color: var(--amber);
  height: 20px;
}

.hint {
  margin-top: 20px;
  font-size: 11px;
  color: #886;
  text-align: center;
  max-width: 610px;
}
