.reversi-board {
  border-color:#235b46;
  background:#235b46;
  gap:1px;
}

.reversi-square {
  position:relative;
  display:grid;
  min-width:0;
  min-height:0;
  padding:0;
  place-items:center;
  border:0;
  border-radius:0;
  background:#347352;
  /* Keep the existing text hooks while drawing discs and hints in CSS. */
  font-size:0;
  touch-action:manipulation;
  cursor:pointer;
}

.reversi-square::after {
  content:"";
  width:76%;
  aspect-ratio:1;
  border-radius:50%;
  pointer-events:none;
}

.reversi-square.black::after,.reversi-disc.black {
  background:radial-gradient(circle at 35% 28%,#444c49,#151b18 65%,#080d0a);
  box-shadow:inset 0 1px 2px #ffffff40,0 2px 3px #071b1670;
}

.reversi-square.white::after,.reversi-disc.white {
  background:radial-gradient(circle at 35% 28%,#fff,#eeeee5 65%,#bec8bc);
  box-shadow:inset 0 1px 2px #fff,0 2px 3px #071b1670;
}

.reversi-square.legal::after {
  width:20%;
  background:#e3f4dd;
}

.reversi-square.legal:hover {background:#428762;}
.reversi-square.last-move {box-shadow:inset 0 0 0 2px #edce75;}
.reversi-square:focus-visible {outline:3px solid #fff;outline-offset:-4px;z-index:1;}
.reversi-square:disabled {opacity:1;cursor:default;}
.reversi-player {display:flex;min-width:0;align-items:center;gap:8px;}
.reversi-player > span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.reversi-ai-badge{flex-shrink:0;white-space:nowrap;}
.reversi-disc {width:17px;height:17px;flex-shrink:0;border-radius:50%;}
.reversi-counts strong {white-space:nowrap;font-size:10px;}
.reversi-spectator-side {width:100%;margin-bottom:10px;padding:8px;border:1px solid #d6e7f6;border-radius:6px;background:#f7fbff;color:inherit;font:inherit;}
.reversi-status,.reversi-pass,.reversi-notice {margin:0;overflow-wrap:anywhere;}
.reversi-pass,.reversi-notice {margin-top:8px;font-size:12px;line-height:1.55;}
.reversi-pass:empty,.reversi-notice:empty {display:none;}
.reversi-notice {color:#a32929;}
.reversi-actions {margin-top:auto;}
.reversi-actions .online-result {padding:0;border:0;}
.reversi-actions .online-result button {width:100%;margin:0;}
.reversi-actions .online-result ol:empty,.reversi-actions .online-result [role="alert"]:empty {display:none;}
.reversi-window [hidden] {display:none!important;}
.reversi-window .game-start-overlay {background:rgba(239,247,255,.65);backdrop-filter:blur(3px);}
