.dialog {
  background-color: #000;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 20px;
  text-align: center;
  width: 500px;
  height: 320px;
  overflow: visible;
  box-sizing: border-box;
}

.dialog h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-family: 'Star Wars', sans-serif;
}

.dialog .winner-text {
  position: absolute;
  top: -110px;
  left: 0px;
  width: 100%;
  font-size: 2rem;
  line-height: 3rem;
  background-color: #000;
  border-radius: 20px;
  border: 1px solid #fff;
  transition: all .2s;
}

.dialog .dice {
  margin-bottom: 7rem;
}

.dialog .die {
  display: inline-block;
  width: 40px;
  line-height: 40px;
  background-color: #fff;
  color: #000;
  font-size: 1.25rem;
  text-decoration: none;
  border-radius: 5px;
  transition: transform .2s;
  border: 1px solid #000;
}

.dialog .die:hover {
  transform: scale(1.25);
}

.dialog .die.selected {
  background-color: var(--neon-blue);
}

#thrownDie1 {
  margin-right: .5rem;
}

.dialog .results {
  display: flex;
  flex-direction: column;
  font-size: 1.25rem;
  gap: .5rem;
}

.dialog .results .place {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .2s;
}

.dialog .results .place.highlight {
  background-color: rgba(255, 255, 255, .1);
}

.dialog .results .name.out-of-play {
  text-decoration: line-through;
  text-decoration-color: red;
  text-decoration-thickness: 3px;
}

.dialog .results .place .min-chips {
  color: red;
  font-size: .9rem;
}

.dialog .results .place .plus-chips {
  color: green;
  font-size: .9rem;
}

.dialog .results .place .player-hand {
  display: flex;
  gap: .5rem;
}

.dialog .results .place .player-hand .card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 55px;
  border-radius: 5px;
}

.dialog .results .place .player-hand .card.sand {
  background-color: var(--kessel-yellow);
}

.dialog .results .place .player-hand .card.blood {
  background-color: var(--kessel-red);
}

.dialog .results .place .player-hand .card.sylop {
  background-image: url(../assets/cards/sylop.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 30px 30px;
}

.dialog .results .place .player-hand .card.imposter {
  background-image: url(../assets/cards/imposter.png);
  background-position: center 6px;
  background-repeat: no-repeat;
  background-size: 30px 20px;
  align-items: end;
  padding-bottom: 6px;
  box-sizing: border-box;
  font-size: 1rem;
}

.dialog .next-round-button-container {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: -80px;
  left: 0;
  width: 100%;
}

.dialog .next-round-button-container .next-round-button {
  width: 100%;
  font-family: 'Star Wars', sans-serif;
  padding-top: 4px;
}

#endGameDialog {
  justify-items: center;
}

#newGameButton {
  width: 300px;
}

.spinning {
  animation: spinner 1.5s linear infinite;
  pointer-events: none;
  cursor: default;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate90 {
  to {
    transform: rotate(90deg);
  }
}

#shiftDialog h2 {
  margin-bottom: 0;
}

#shiftDialog h3 {
  margin-top: 0;
  margin-bottom: 2rem;
}

#shiftDialog .confirmContainer {
  gap: 1rem;
}

#shiftDialog .shift-tokens {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

#shiftDialog .shift-description {
  margin-bottom: 1.5rem;
  min-height: 17px;
}

#shiftDialog .shift-description div {
  height: 17px;
}

.shift-tokens .shift-token {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
  border-radius: 5px;
  padding: .5rem;
  width: 45px;
  height: 92px;
  color: #fff;
  text-decoration: none;
  transition: bottom .2s;
  z-index: 9;
  bottom: 0;
  background-color: transparent;
  background-image: url(../assets/cards/assets_alpha.png);
  background-repeat: no-repeat;
  background-size: 750px;
  background-position: -38px -242px;
}

.shift-tokens .shift-token:hover {
  bottom: 10px;
}

.shift-tokens .shift-token.selected:hover,
.shift-tokens .shift-token.selected {
  bottom: 20px;
}

.shift-tokens .shift-token.disabled {
  pointer-events: none;
  cursor: default;
  opacity: .5;
}

.shift-tokens .shift-token .shift-label {
  font-size: .8rem;
  background-color: rgba(0, 0, 0, .5);
  border-radius: 5px;
}

#shiftDialog .target-players {
  display: flex;
  flex-direction: row;
  margin-bottom: 2rem;
}

#shiftDialog .target-players .player-display {
  flex: auto;
  flex-direction: column;
  color: #fff;
  text-decoration: none;
  padding: .5rem 0;
}

#shiftDialog .target-players .player-display:hover .avatar {
  box-shadow: 0 0 20px 15px var(--neon-blue);
  transition: box-shadow .2s;
}