body {
  color: #e5e7eb;
  background-color: #0b1220;
  padding: 20px;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
  font-size: 16px; }
  body * {
    font-size: 16px; }

a {
  color: #516CD4; }
  a:visited {
    color: #929292; }
  a:hover {
    color: #E2FEDE; }

h1, h1 a {
  margin-top: 0;
  font-size: 39.6px;
  color: #CD7338; }

h1 {
  margin-bottom: 10px; }

h2 {
  margin-bottom: 15px;
  font-size: 25.2px;
  color: #CD7338; }

pre {
  font-family: "courier new", monospace;
  font-size: 90%;
  background-color: rgba(0, 0, 0, 0.35);
  color: #e5e7eb;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  overflow: auto; }

div.board {
  float: left;
  max-width: 500px;
  width: calc(100vw - 40px);
  margin-right: 20px;
  margin-bottom: 20px; }
  div.board.board-small {
    max-width: 320px; }

.theme-selector,
table {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(8px);
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  max-width: 820px;
  margin-bottom: 10px;
}

table tr {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

table td {
  padding: 0;
  display: flex;
  align-items: center;
}

.theme-selector {
  max-width: 820px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-selector label {
  color: #e5e7eb;
  font-weight: 600;
  margin-right: 0;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

button {
  padding: 9px 14px;
  font-size: 92%;
  margin-right: 10px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(148, 163, 184, 0.35);
}

button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

input[type=text] {
  font-size: 92%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input[type=text]::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

input[type=text]:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

select {
  padding: 9px 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  color-scheme: dark;
}

select option,
select optgroup {
  background-color: #0b1220;
  color: #e5e7eb;
}

select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: #60a5fa;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.toggle-text {
  font-weight: 600;
}

.toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.25);
  position: relative;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.toggle-switch::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e5e7eb;
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: left 120ms ease, background-color 120ms ease;
}

.toggle-input:checked + .toggle-switch {
  background: rgba(59, 130, 246, 0.55);
  border-color: rgba(59, 130, 246, 0.65);
}

.toggle-input:checked + .toggle-switch::after {
  left: 21px;
  background: #ffffff;
}

.toggle-input:focus-visible + .toggle-switch {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

input#room {
  width: 10rem;
}

input#name {
  width: 10rem;
}

input#message {
  width: min(34rem, 100%);
}

li {
  padding: 0.05rem;
}

.board-max-width {
  max-width: 640px;
}
