:root {
  color-scheme: dark;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #101510;
  color: #dce8dc;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  padding: 24px;
}

main {
  width: min(100%, 920px);
  margin: 0 auto;
}

header h1 {
  margin-bottom: 4px;
  color: #5ee86c;
}

header p,
.help {
  color: #93a793;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 28px 0;
}

label {
  display: grid;
  gap: 5px;
  color: #93a793;
  font-size: 13px;
}

input,
button {
  border: 1px solid #3b4b3b;
  border-radius: 4px;
  padding: 9px 11px;
  background: #182018;
  color: #dce8dc;
  font: inherit;
}

button {
  cursor: pointer;
}

button:hover {
  border-color: #5ee86c;
}

.rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room {
  display: flex;
  gap: 4px;
}

.rooms button span {
  color: #93a793;
  font-size: 12px;
}

.rooms .delete-room {
  color: #ff8f8f;
}

.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.game-actions {
  display: flex;
  gap: 8px;
}

#lobby-status,
#game-status {
  color: #ffd166;
  margin-bottom: 8px;
}

#share-link {
  min-height: 24px;
}

.share-link {
  color: #59b8ff;
  padding: 4px 0;
  border: 0;
  background: transparent;
}

#board {
  overflow-x: auto;
  font-size: clamp(10px, 2vw, 16px);
  line-height: 1.05;
  color: #586958;
}

.food {
  color: #fff3a3;
}

.locating {
  animation: locate-blink 400ms steps(1, end) infinite;
}

@keyframes locate-blink {
  50% {
    opacity: 0.15;
  }
}

#players {
  min-height: 24px;
}
