.board-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.tabletop-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: #7a8370;
}
.tabletop-badge > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7e9864;
}
.view-options {
  display: flex;
  gap: 3px;
  border: 1px solid #dfe2d5;
  background: #eceee4;
  padding: 3px;
  border-radius: 8px;
}
.view-option {
  padding: 6px 11px;
  font-size: 10px;
  color: #909782;
  border-radius: 5px;
}
.view-option.is-active {
  background: #fffef9;
  color: #40543a;
  box-shadow: 0 1px 4px #273a3210;
}
.board3d-shell {
  position: relative;
  border: 1px solid #deded0;
  border-radius: 20px;
  overflow: hidden;
  background: #efede6;
  box-shadow:
    0 4px 0 #e2e1d7,
    0 15px 35px -25px #383d2c44;
}
.board3d-viewport {
  width: 100%;
  height: clamp(460px, 51vw, 760px);
}
.board3d-viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
  touch-action: pan-y;
  outline-offset: -4px;
}
.board3d-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 1px;
  border: 1px solid #deded2;
  border-radius: 9px;
  padding: 3px;
  background: #fffdf4ee;
  box-shadow: 0 3px 9px #48493508;
}
.board3d-controls button {
  width: 32px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #66715b;
  border-radius: 5px;
  font-size: 18px;
}
.board3d-controls button:hover {
  background: #e8ecdd;
}
.board3d-controls .icon {
  width: 13px;
  height: 13px;
}
.board3d-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 19px;
  font-size: 9px;
  color: #8b8d7b;
  background: linear-gradient(transparent, #efede6e6);
  pointer-events: none;
}
.board3d-caption > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.board3d-caption .icon {
  width: 13px;
  height: 13px;
}
.board3d-hover {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 7px 11px;
  border: 1px solid #dddfd1;
  border-radius: 7px;
  color: #5e6b50;
  background: #fffef6e8;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}
.board-heading {
  margin-bottom: 14px;
}
body[data-board-view="3d"] .board-tip {
  margin-top: 20px;
}
@media (max-width: 1150px) {
  .board3d-viewport {
    height: 540px;
  }
}
@media (max-width: 930px) {
  .board3d-viewport {
    height: 430px;
  }
  .board3d-caption {
    font-size: 8px;
    padding: 12px;
  }
  .board3d-controls {
    top: 12px;
    right: 12px;
  }
  .board3d-controls button {
    width: 27px;
    height: 27px;
  }
}
@media (max-width: 700px) {
  .board3d-viewport {
    height: 430px;
  }
  .board3d-shell {
    border-radius: 15px;
  }
  .board3d-caption {
    font-size: 7px;
  }
  .tabletop-badge {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .view-option {
    font-size: 9px;
    padding: 6px 10px;
  }
  .board3d-hover {
    top: 12px;
    left: 12px;
    font-size: 9px;
  }
  .board-heading p {
    max-width: 225px;
    line-height: 1.6;
  }
}
