* {
  box-sizing: border-box;
}

:root {
  background: #242424;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  width: 100%;
  min-height: 150dvh;

  padding: 0;
  margin: 0;
}
.header { margin: 20px auto; max-width: 960px; color: #fff; }
.demo {  display: flex;
  justify-content: center;
  align-items: center;}
.container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  max-width: 500px;
  padding: 10px;
}

.second-row {
  display: flex;
  gap: 5px;
}

.slot {
  background: #111;
  flex: 1;
}

.slot.a {
  flex-basis: 150px;
  height: 150px;
}

.slot.b {
  flex: 2;
}

.second-row {
  height: 100px;
}

.slot.d {
  flex-basis: 120px;
  height: 120px;
}

.item {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.item.a {
  background: #b95050;
}

.item.b {
  background: #50b97f;
}

.item.c {
  background: #508db9;
}

.item.d {
  background: #b95096;
}

[data-swapy-highlighted] {
  background: #444;
}

.handle {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
