/* Full-screen button tabletop */
.button-tabletop[hidden] {
  display: none;
}

.button-tabletop {
  position: fixed;
  inset: 0;
  z-index: 9000;

  display: grid;
  grid-template-rows: auto 1fr;

  color: #292315;
  background: #d8c6a4;
}

.button-tabletop-toolbar {
  position: relative;
  z-index: 10;

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;

  background: #eee3c9;
  border-bottom: 3px solid #292315;
  box-shadow: 0 4px 8px rgba(41, 35, 21, 0.2);

  font-family: monospace;
}

.button-tabletop-title {
  margin-right: auto;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.button-tabletop-toolbar button {
  min-width: 38px;
  min-height: 38px;

  color: #292315;
  background: #f8f0dd;
  border: 2px solid #292315;
  box-shadow: 2px 2px 0 #292315;

  font: bold 16px monospace;
  cursor: pointer;
}

.button-tabletop-toolbar button:active {
  translate: 2px 2px;
  box-shadow: none;
}

.button-zoom-readout {
  min-width: 55px;
  text-align: center;
}

.button-tabletop-close {
  margin-left: 10px;
}

.button-tabletop-viewport {
  position: relative;
  overflow: hidden;
  touch-action: none;
  cursor: grab;

  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(255, 255, 255, 0.2),
      transparent 28%
    ),
    repeating-linear-gradient(
      3deg,
      transparent 0 34px,
      rgba(79, 53, 27, 0.045) 35px,
      transparent 37px
    ),
    #c7aa78;
}
.button-tabletop-viewport:active {
  cursor: grabbing;
}

.button-tabletop-world {
  position: absolute;
  left: 0;
  top: 0;
  width: 1600px;
  height: 1000px;
outline: 7px solid #49351f;
outline-offset: -7px;

box-shadow:
  inset 0 0 0 11px rgba(244, 224, 180, 0.75),
  inset 0 0 0 14px #49351f,
  inset 0 0 28px rgba(57, 39, 23, 0.38);
  transform-origin: 0 0;
}

body.button-tabletop-open {
  overflow: hidden;
}
.sorting-button {
  appearance: none;
  position: absolute;
  padding: 0;

  border: 0;
  background: transparent;

  filter:
    drop-shadow(5px 7px 3px rgba(41, 35, 21, 0.35));

  transform: rotate(var(--button-rotation));
  cursor: grab;
  touch-action: none;
}

.sorting-button:active {
  cursor: grabbing;
}

.sorting-button svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sorting-button {
  transition:
    filter 0.12s ease,
    scale 0.12s ease;
}

.sorting-button.dragging {
  scale: 1.08;

  filter:
    drop-shadow(
      10px 15px 7px
      rgba(41, 35, 21, 0.38)
    );
}
.button-Set-control {
  display: flex;
  align-items: center;
  gap: 7px;

  margin-right: 12px;
  font: bold 11px monospace;
  letter-spacing: 0.08em;
}

.button-Set-select {
  min-height: 38px;
  padding: 5px 28px 5px 9px;

  color: #292315;
  background: #f8f0dd;
  border: 2px solid #292315;
  border-radius: 0;
  box-shadow: 2px 2px 0 #292315;

  font: bold 13px monospace;
  cursor: pointer;
}

@media (max-width: 600px) {
  .button-tabletop-title {
    display: none;
  }

  .button-set-control > span {
    display: none;
  }

  .button-set-control {
    margin-right: auto;
  }
}