/* Game B layout on the sheet: four square views in a 2x2 grid (third-angle order:
   PLAN, ISOMETRIC, FRONT, RIGHT SIDE), a mark-coordinates table in the side column.
   The sheet itself (frame, revisions, title block) is styled in ../styles.css. */
.views {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.view {
  position: relative;
  aspect-ratio: 1 / 1;
  outline: 1px solid var(--ink);
  background: #fff;
}
.view canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none; /* dragging the point must not scroll the page */
  cursor: crosshair;
}
.view canvas.locked { cursor: not-allowed; } /* guess locked: reveal or results review */
.view-label { /* top right: the corner no view's axis arrows use */
  position: absolute;
  right: 6px;
  top: 4px;
  padding: 0 3px;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  background: #fff;
  pointer-events: none;
}
.result3d {
  min-height: 1.3em; /* keeps the page from jumping when the line fills in */
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 1px;
  text-align: center;
}

/* Mark coordinates: one row per axis, the slider in the SET column. */
.coords { width: 100%; border: 1px solid var(--ink); font-size: 11px; }
.coords th, .coords td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.coords th { font-weight: 400; font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.coords tbody tr:last-child td { border-bottom: 0; }
.coords .ax { font-weight: 600; white-space: nowrap; }
.coords tr[data-axis="x"] .ax { color: #d23b3b; }
.coords tr[data-axis="y"] .ax { color: #2f9e44; }
.coords tr[data-axis="z"] .ax { color: #2f6fd6; }
.coords output { display: inline-block; min-width: 3.5em; font-variant-numeric: tabular-nums; }
.coords td:last-child { width: 45%; }
.coords input[type="range"] { display: block; width: 100%; margin: 0; accent-color: var(--ink); }
.coords input[type="range"]:disabled { opacity: 0.5; }
.axis-arrow { font-weight: 400; } /* hover an arrow for which way it moves the point */

.view-error {
  grid-column: 1 / -1;
  padding: 12px;
  font-size: 11px;
  color: var(--acc2);
  background: #fff3f3;
  border: 1px solid #e0b4b4;
  text-align: left;
}
.view-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}

@media (max-width: 640px) {
  .views { gap: 8px; }
  .coords { font-size: 12px; }
  .coords th, .coords td { padding: 6px 8px; }
  .coords input[type="range"] { height: 28px; } /* a bigger touch target */
  .result3d { font-size: 12px; }
}
