*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: sans-serif;
  text-align: center;
  background: #1a1a1a;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 1rem;
  padding: 1rem;
}

h1 {
  font-size: 1.8rem;
  letter-spacing: 0.06em;
}

.controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#status {
  font-size: 0.9rem;
  color: #aaa;
  min-width: 160px;
}

button {
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s;
}
button:hover { border-color: #aaa; color: white; }

#board {
  display: grid;
  grid-template-columns: repeat(8, 60px);
  grid-template-rows: repeat(8, 60px);
  border: 2px solid #333;
}

.square {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
}

.light { background: #f0d9b5; color: #333; }
.dark  { background: #b58863; color: #333; }

.selected { outline: 3px solid #f6f669; outline-offset: -3px; }

.valid-move::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Capture hint — square occupied by enemy */
.valid-move:not(:empty)::after {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
  border: 4px solid rgba(0,0,0,0.3);
}
