.back { font-family: vga, monospace; font-size: 14px; }

h1 { color: #d8f5c0; }
#day { color: #5a5470; font-size: 20px; }

main { min-height: 360px; padding-bottom: 16px; }

.panel {
  margin: 24px auto;
  max-width: 460px;
  text-align: center;
}
.panel p { font-family: vga, monospace; color: #8a84a8; line-height: 1.4; }

button {
  font: 20px vga, monospace;
  padding: 7px 22px 5px;
  background: #d9d6cc;
  color: #1b1a1f;
  border: 3px outset #eeeae0;
  cursor: pointer;
}
button:active { border-style: inset; }
button.small {
  font-size: 14px;
  padding: 4px 12px 3px;
  background: #26252b;
  color: #8a84a8;
  border: 2px outset #4a4560;
}
button.small.armed { background: #8f1c22; color: #fff; border-color: #c0281f; }

/* hud */

#hud {
  display: flex;
  justify-content: space-between;
  align-items: end;
  font: 32px vga, monospace;
  margin-top: 12px;
}
#time.low { color: #ff5a4e; }
#score { color: #ffb43a; }

#bar {
  height: 8px;
  margin: 6px 0 28px;
  background: #000;
  border: 2px inset #333;
}
#bar i { display: block; height: 100%; width: 100%; background: #2f8a50; }
#bar.low i { background: #c0281f; }

/* tiles */

.tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.tile {
  width: 40px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 32px vga, monospace;
  text-transform: uppercase;
  background: #1b1a1f;
  color: #5a5470;
  border: 3px outset #3a3650;
}
.tile.carry { background: #ffb43a; color: #1b1a1f; border-color: #ffd58a; }

#word { margin-bottom: 18px; }
#word .tile { width: 32px; height: 38px; font-size: 26px; }

#entry {
  position: relative;
  min-height: 52px;
  padding: 8px;
  background: #000;
  border: 3px inset #444;
  cursor: text;
}
#entry .tile { color: #e8e0ff; border-color: #5a5470; }
#entry .tile.carry { color: #1b1a1f; border-color: #ffd58a; }
#entry .tile.cursor { background: none; border: 3px dashed #3a3650; }
#entry:focus-within .tile.cursor { border-color: #ad83ee; }

#rest {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  font-size: 16px;
  border: 0;
  cursor: text;
}

#msg { font: 16px vga, monospace; color: #ff5a4e; height: 24px; margin: 8px 0; text-align: center; }

#giveup { display: block; margin: 8px auto 0; }

/* done */

#final { font: 72px vga, monospace; color: #ffb43a; line-height: 1; }
#final small { display: block; font-size: 20px; color: #8a84a8; margin-top: 4px; }

#squares { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin: 16px 0; }
#squares i { width: 12px; height: 12px; }
.c1 { background: #2f8a50; }
.c2 { background: #ffb43a; }
.c3 { background: #e0702a; }
.c4 { background: #c0281f; }

#next { font-family: vga, monospace; color: #5a5470; }

/* chain */

#chain {
  list-style: none;
  padding: 12px 0 0;
  margin: 24px 0 0;
  border-top: 1px dashed #3a3650;
  font: 16px vga, monospace;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  color: #8a84a8;
}
#chain:empty { display: none; }
#chain li::after { content: ">"; color: #3a3650; margin: 0 8px; }
#chain li:last-child::after { content: none; }
#chain b { color: #ffb43a; font-weight: normal; }
