/* Game board: 1x crop cues (GAME_SPEC §4.2). On a narrow phone a picture fitted to
   the pane height is cropped at the sides; js/zoomPan.js sets data-edge-left /
   data-edge-right on each .pane while that side still hides part of it.
   Real elements with ids (web-ui-style.md §6): no pseudo-elements, no forced
   priority on visual properties. The cues never take a touch. */

.pane-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 30px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pane-edge--left {
  left: 0;
  justify-content: flex-start;
  background: linear-gradient(90deg, rgba(40, 24, 8, 0.32), rgba(40, 24, 8, 0));
}

.pane-edge--right {
  right: 0;
  justify-content: flex-end;
  background: linear-gradient(270deg, rgba(40, 24, 8, 0.32), rgba(40, 24, 8, 0));
}

.pane[data-edge-left="on"] .pane-edge--left,
.pane[data-edge-right="on"] .pane-edge--right {
  opacity: 1;
}

.pane-edge-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 3px;
  border-radius: 50%;
  background: rgba(40, 24, 8, 0.55);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .pane-edge { transition: none; }
}

/* The companion of this play (GAME_SPEC §4.18): a small round face with soft, still rays at the
   start of the board title; it never covers the pictures. */
.hud-companion {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  isolation: isolate;
}

.hud-companion-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  pointer-events: none;
}

.hud-companion-face {
  width: 100%;
  height: 100%;
  border: 2px solid #ffd34e;
  border-radius: 50%;
  background: #fff6dc;
  object-fit: cover;
  object-position: 50% 18%;
  box-sizing: border-box;
}
