/* Herald · Chess — app tweaks. Base in glass-core.css (Meta frosted
   kit). On the additive see-through display pure black is invisible,
   so "black" pieces render in a luminous coral and "white" in bright
   white — both glow, instantly tell the sides apart. */

.ch-foot, .ch-hint {
  flex-shrink: 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 0 2px;
}
.ch-hint { position: absolute; bottom: 16px; left: 0; right: 0; }

.ch-board {
  width: 384px;
  height: 384px;
  margin: 6px auto 10px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--frost-border);
  box-shadow: var(--frost-inset), var(--frost-shadow);
  flex-shrink: 0;
}
.ch-sq {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  position: relative;
  user-select: none;
}
.ch-sq.lt { background: rgba(255, 255, 255, 0.13); }
.ch-sq.dk { background: rgba(255, 255, 255, 0.04); }
.ch-sq.wp { color: #f4f7ff; text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); }
.ch-sq.bp { color: #ff9f80; text-shadow: 0 0 10px rgba(255, 159, 128, 0.6); }
/* legal-move target marker */
.ch-sq.tgt::after {
  content: "";
  position: absolute;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: var(--app-accent, var(--accent));
  opacity: 0.55;
  box-shadow: 0 0 10px var(--aa-glow, rgba(201, 163, 106, 0.6));
}
.ch-sq.tgt:not(:empty)::after {
  width: 92%; height: 92%;
  background: transparent;
  border: 3px solid var(--app-accent, var(--accent));
  opacity: 0.7;
}
.ch-sq.sel {
  background: var(--aa-bloom2, rgba(201, 163, 106, 0.22));
  box-shadow: inset 0 0 0 3px var(--app-accent, var(--accent));
}
.ch-sq.cur {
  box-shadow: inset 0 0 0 3px var(--focus-ring), 0 0 16px var(--aa-glow, rgba(201, 163, 106, 0.5));
  z-index: 1;
}

.ch-status {
  flex-shrink: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--app-accent, var(--accent));
  text-shadow: 0 0 18px var(--aa-glow-soft, rgba(201, 163, 106, 0.3));
}
