/* *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } */

/* ── Base ── */
html, body {
  height: 100%;
  background: #000;
  color: #fff;
  font-family: "Courier New", Courier, monospace;
}

/*a { color: #a0d080; }*/

/* ── Centered layout (login, register, invite-error) ── */
body.centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /*width: 30em;*/
}

/* ── Landing page ── */
body.landing {
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 480px;
  text-align: center;
  padding: 0 24px;
}

.landing-content h1 {
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.landing-content p {
  font-size: 0.95rem;
  color: #999;
  line-height: 1.7;
}

.play-btn {
  display: inline-block;
  padding: 12px 40px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.btn, button {
  background: #222;
  color: #eee;
  cursor: pointer;
}
.btn:hover, button:hover { background: #333; }

/* ── Form elements ── */
h1 {
  font-size: 1rem;
  color: #eee;
  letter-spacing: 0.08em;
}

input {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #eee;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: 3px;
  outline: none;
}
input::placeholder { color: #444 }
input:focus { border-color: #ccc; }

button {
  border: none;
  padding: 9px;
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: 3px;
}

.error { color: #e05050; font-size: 0.8rem; }
.hint  { color: #666;    font-size: 0.8rem; }

/* ── Invite error page ── */
.invite-error h1 { font-size: 1rem; color: #e05050; letter-spacing: 0.08em; }
.invite-error p  { font-size: 0.85rem; color: #888; line-height: 1.5; }

/* ── Play page ── */
body.play {
  width: 100%;
  margin: 0;
}
#terminal {
  width: 100%;
  height: 100%;
}
