:root {
  color: #1c1915;
  background: #f4efe6;
  font-family: Georgia, "Iowan Old Style", serif;
}

body {
  margin: 0;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
}

.rule,
#status,
.actions {
  margin: 0 0 14px;
  line-height: 1.4;
}

#board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: min(92vw, 520px);
  aspect-ratio: 1;
  border: 2px solid #2a241c;
  user-select: none;
  background: url(/board/brown.png) center / 100% 100% no-repeat;
}

.sq {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.sq img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.sq.sel { background: rgba(20, 85, 30, 0.5); }
.sq.last { background: rgba(155, 199, 0, 0.41); }
.sq.dest::after,
.sq.cap::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.sq.dest::after {
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
}
.sq.cap::after {
  width: 88%;
  height: 88%;
  border-radius: 50%;
  box-sizing: border-box;
  border: 6px solid rgba(0, 0, 0, 0.18);
}

.looks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.looks select,
#promo img {
  font: inherit;
}

#promo img {
  width: 36px;
  height: 36px;
  display: block;
}

#promo[hidden],
#invite-box[hidden] {
  display: none;
}

#promo {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

#invite-box {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}

#invite-url {
  flex: 1 1 220px;
  font: inherit;
  padding: 6px 8px;
  border: 1px solid #2a241c;
  background: #fff;
}

#promo button,
#restart,
#invite,
#copy {
  font: inherit;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #2a241c;
  cursor: pointer;
}
