/* Shared board and piece styles. Sizes come from --c (one grid cell): px on screen, mm on paper. */
.board {
  position: relative;
  width: calc(var(--c) * 13.3333);
  height: calc(var(--c) * 13.3333);
  flex: none;
}
.board-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  user-select: none; -webkit-user-select: none;
  pointer-events: none;
}
.grid {
  position: absolute;
  left: calc(var(--c) * 2.6667);
  top: calc(var(--c) * 2.6667);
  width: calc(var(--c) * 8);
  height: calc(var(--c) * 8);
}
/* Colour boost for the fish artwork (game and print). 1 = original colours. */
:root {
  --fish-saturate: 1.4;
  --fish-contrast: 1.1;
  --fish-brightness: 1.04;
  --fish-filter: saturate(var(--fish-saturate)) contrast(var(--fish-contrast)) brightness(var(--fish-brightness));
}
.piece {
  position: absolute;
  flex: none;
}
.piece img {
  position: absolute;
  transform-origin: 50% 50%;
  user-select: none; -webkit-user-select: none;
  pointer-events: none;
  display: block;
  /* only ONE filter per fish: iPhone Safari can drop elements with nested filters */
  filter: var(--fish-filter);
}
.letter {
  position: absolute;
  width: var(--c); height: var(--c);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  font: 700 calc(var(--c) * 0.36) / 1 "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  color: #17384a;
  background: radial-gradient(circle, rgba(255, 253, 245, 0.95) 0 calc(var(--c) * 0.24), transparent calc(var(--c) * 0.25));
}
