#enigmes .puzzle-diagram.puzzle-cut-square {
  padding: clamp(.65rem, 2vw, 1rem);
  border-color: #cabb9e;
  background: #f7f1e5;
  color: #263c4e;
}
.cut-square-caption { margin-block-end: .65rem; }
.cut-square-caption p, .cut-square-keys, .cut-square-status {
  margin: .25rem 0 0;
  font-size: .875rem;
  line-height: 1.45;
}
.cut-square-board {
  overflow: clip;
  border: 1px solid #cabb9e;
  border-radius: .55rem;
  background: #fffdf7;
}
.cut-square-board:focus-visible { outline: 3px solid #335f84; outline-offset: 3px; }
.cut-square-board svg { touch-action: none; cursor: crosshair; }
.cut-square-board[data-cut-mode="assemble"] svg { cursor: default; }
.cut-square-board [data-cut-tile] { cursor: grab; }
.cut-square-board [data-cut-tile]:active { cursor: grabbing; }
.cut-square-board pattern path { stroke: #bdb29d; stroke-width: .9; vector-effect: non-scaling-stroke; }
.cut-square-board [data-cut-cells] rect { fill: #ede5d5; stroke: #897d69; stroke-width: 1; vector-effect: non-scaling-stroke; }
.cut-square-board [data-cut-tile="0"] rect { fill: #a1bed8; stroke: #335f84; }
.cut-square-board [data-cut-tile="1"] rect { fill: #eac18a; stroke: #89562e; }
.cut-square-board .cut-square-active-tile rect { stroke-width: 1.7; }
.cut-square-board [data-cut-path] {
  stroke: #8f472e;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.cut-square-board [data-cut-end] { fill: #8f472e; pointer-events: none; }
.cut-square-board [data-cut-cursor] {
  fill: none;
  stroke: #335f84;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.cut-square-board:not(:focus-visible) [data-cut-cursor] { display: none; }
.cut-square-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-block-start: .65rem; }
.cut-square-actions[hidden] { display: none; }
.cut-square-actions .button { min-height: 44px; padding: .35rem .6rem; font-size: .875rem; white-space: normal; }
.cut-square-actions [data-cut-piece="0"][aria-pressed="true"] { border-color: #335f84; background: #dbeaf6; color: #173e5f; }
.cut-square-actions [data-cut-piece="1"][aria-pressed="true"] { border-color: #89562e; background: #f5e5cc; color: #613615; }
.cut-square-status:not(:empty) { margin-block-start: .65rem; }
.cut-square-status[data-cut-solved] { font-weight: 700; }
@media screen {
  #enigmes .puzzle-cut-square > img {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    clip-path: inset(50%);
  }
}
@media print {
  .puzzle-cut-square [data-cut-interface] { display: none; }
}
