/* Reversi — 8×8 dark green board with circular stones. */

.rv-status {
  font-size: 13px;
  opacity: 0.92;
  font-weight: 500;
}

.rv-wrap {
  margin: 16px auto;
  padding: 0 8px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rv-counters {
  display: flex;
  gap: 18px;
  align-items: center;
}
.rv-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.rv-counter.active {
  border-color: #ffd54f;
  box-shadow: 0 0 10px rgba(255, 213, 79, 0.4);
}
.rv-counter-label { opacity: 0.75; font-size: 12px; }
.rv-count { font-weight: 700; font-size: 20px; }
.rv-stone-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.rv-stone-icon.white { background: #f5f5f5; border-color: rgba(0, 0, 0, 0.3); }

.rv-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows:    repeat(8, 1fr);
  width: min(480px, calc(100vw - 16px));
  aspect-ratio: 1;
  background: #1a4a2a;
  padding: 4px;
  border: 4px solid #1a4a2a;
  border-radius: 4px;
  box-sizing: content-box;
  user-select: none;
  touch-action: manipulation;
  gap: 2px;
}
.rv-cell {
  background: #2a8050;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.rv-cell.legal::before {
  content: '';
  width: 25%;
  height: 25%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.rv-cell.legal:hover::before { background: rgba(255, 255, 255, 0.55); }

.rv-stone {
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: #1a1a1a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}
.rv-stone.white {
  background: #f5f5f5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.rv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.rv-overlay.hidden { display: none; }
.rv-overlay-card {
  background: white;
  color: #222;
  padding: 32px 40px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  min-width: 260px;
}
.rv-overlay-card h1 { margin: 0 0 8px;  font-size: 30px; }
.rv-overlay-card p  { margin: 0 0 20px; font-size: 16px; opacity: 0.85; }
