.crossword-board {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 16px 0 28px;
  padding: 30px 20px 36px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0/22px 22px,
    linear-gradient(155deg, #2f5a44, #1f3f30 60%, #234a37);
  border: 16px solid #7a5230;
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 4px #5c3d22,
    inset 0 0 40px rgba(0, 0, 0, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.35);
}

.crossword-board::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -22px;
  height: 18px;
  background: #6b4527;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35);
}

.crossword-board::before {
  content: "";
  position: absolute;
  left: 40px;
  bottom: -14px;
  width: 34px;
  height: 10px;
  background: #f5f2e8;
  border-radius: 3px;
  box-shadow: 46px 0 0 #f5f2e8, 6px 0 0 rgba(255, 203, 61, 0.85);
  z-index: 1;
}

.crossword-grid {
  display: grid;
  gap: 6px;
}

.crossword-cell {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
  color: #f5f2e8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.06);
  border: 2px dashed rgba(245, 242, 232, 0.55);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}

.crossword-cell:active {
  transform: scale(0.94);
}

.crossword-cell.blocked {
  background: transparent;
  border: none;
  cursor: default;
}

.crossword-cell.filled {
  background: rgba(255, 203, 61, 0.25);
  border: 2px solid #ffcb3d;
  cursor: default;
}

.crossword-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 16px;
  padding: 0 8px;
}

.crossword-tile {
  width: 52px;
  height: 52px;
  font-size: 26px;
  font-weight: bold;
  color: #fff6e6;
  background: linear-gradient(180deg, #8a5a32, #6b4527);
  border: 3px solid #4a2f18;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}

.crossword-tile:active {
  transform: scale(0.92);
}

.crossword-tile.selected {
  background: linear-gradient(180deg, #ffcb3d, #d69f00);
  border-color: #fff6e6;
  color: #3a2a10;
  transform: scale(1.08);
}
