.board {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
}
.square {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Georgia, "Segoe UI Symbol", "Noto Sans Symbols", serif;
}
.square span { transform: scale(1.08); filter: drop-shadow(0 3px 2px #0007); }
.piece-white { color: #f7f1df; -webkit-text-stroke: 1.3px #3c372f; }
.piece-black { color: #20242c; -webkit-text-stroke: 1px #080a0e; }
.square.legal-move::after {
  content: "";
  position: absolute;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #20283288;
  box-shadow: 0 0 0 2px #fff4;
}
.square.legal-capture::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 5px solid #d0ad5dcc;
  border-radius: 50%;
  box-shadow: inset 0 0 10px #0003;
}
.status-card, .moves, .invite-box, .visitors {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.visitors { display: flex; align-items: center; gap: 11px; padding: 13px 14px; }
.visitor-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #202633; color: var(--green); }
.visitors > div:nth-child(2) { display: flex; flex-direction: column; }
.visitors small { font-size: 9px; letter-spacing: 1.3px; color: #777e89; }
.visitors strong { font-size: 13px; }
.visitor-dots { display: flex; margin-left: auto; }
.visitor-dots i { width: 20px; height: 20px; border: 2px solid var(--panel); border-radius: 50%; background: linear-gradient(145deg, #6c7486, #242a36); margin-left: -6px; }
.result-modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: #05070bd9; backdrop-filter: blur(12px); }
.result-card { width: min(420px, 100%); text-align: center; background: linear-gradient(145deg, #191e29, #0e1118); border: 1px solid #514329; border-radius: 20px; padding: 32px; box-shadow: 0 30px 100px #000; }
.result-crown { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: #d8b56b18; border: 1px solid #8e7545; color: var(--gold2); font-size: 44px; }
.result-card p { font-size: 10px; letter-spacing: 2px; color: var(--gold); }
.result-card h2 { font: 500 30px Georgia, serif; margin: 8px 0; }
.result-card > span { display: block; color: #9298a4; margin-bottom: 25px; }
.result-card .primary { justify-content: center; gap: 20px; }
.toast { z-index: 30; }
